/*
 * Camel ApiMethod Enumeration generated by camel-api-component-maven-plugin
 */
package org.apache.camel.component.google.mail.internal;

import java.lang.reflect.Method;
import java.util.List;
import javax.annotation.processing.Generated;

import com.google.api.services.gmail.Gmail.Users.Messages;

import org.apache.camel.support.component.ApiMethod;
import org.apache.camel.support.component.ApiMethodArg;
import org.apache.camel.support.component.ApiMethodImpl;

import static org.apache.camel.support.component.ApiMethodArg.arg;
import static org.apache.camel.support.component.ApiMethodArg.setter;

/**
 * Camel {@link ApiMethod} Enumeration for com.google.api.services.gmail.Gmail$Users$Messages
 */
@Generated("org.apache.camel.maven.ApiComponentGeneratorMojo")
public enum GmailUsersMessagesApiMethod implements ApiMethod {

    ATTACHMENTS(
        com.google.api.services.gmail.Gmail.Users.Messages.Attachments.class,
        "attachments"),

    BATCH_DELETE(
        com.google.api.services.gmail.Gmail.Users.Messages.BatchDelete.class,
        "batchDelete",
        arg("userId", String.class),
        arg("batchDeleteMessagesRequest", com.google.api.services.gmail.model.BatchDeleteMessagesRequest.class)),

    BATCH_MODIFY(
        com.google.api.services.gmail.Gmail.Users.Messages.BatchModify.class,
        "batchModify",
        arg("userId", String.class),
        arg("batchModifyMessagesRequest", com.google.api.services.gmail.model.BatchModifyMessagesRequest.class)),

    DELETE(
        com.google.api.services.gmail.Gmail.Users.Messages.Delete.class,
        "delete",
        arg("userId", String.class),
        arg("id", String.class)),

    GET(
        com.google.api.services.gmail.Gmail.Users.Messages.Get.class,
        "get",
        arg("userId", String.class),
        arg("id", String.class),
        setter("format", String.class),
        setter("metadataHeaders", java.util.List.class)),

    GMAIL_IMPORT(
        com.google.api.services.gmail.Gmail.Users.Messages.GmailImport.class,
        "gmailImport",
        arg("userId", String.class),
        arg("content", com.google.api.services.gmail.model.Message.class),
        setter("deleted", Boolean.class),
        setter("internalDateSource", String.class),
        setter("neverMarkSpam", Boolean.class),
        setter("processForCalendar", Boolean.class)),

    GMAIL_IMPORT_1(
        com.google.api.services.gmail.Gmail.Users.Messages.GmailImport.class,
        "gmailImport",
        arg("userId", String.class),
        arg("content", com.google.api.services.gmail.model.Message.class),
        arg("mediaContent", com.google.api.client.http.AbstractInputStreamContent.class),
        setter("deleted", Boolean.class),
        setter("internalDateSource", String.class),
        setter("neverMarkSpam", Boolean.class),
        setter("processForCalendar", Boolean.class)),

    INSERT(
        com.google.api.services.gmail.Gmail.Users.Messages.Insert.class,
        "insert",
        arg("userId", String.class),
        arg("content", com.google.api.services.gmail.model.Message.class),
        setter("deleted", Boolean.class),
        setter("internalDateSource", String.class)),

    INSERT_1(
        com.google.api.services.gmail.Gmail.Users.Messages.Insert.class,
        "insert",
        arg("userId", String.class),
        arg("content", com.google.api.services.gmail.model.Message.class),
        arg("mediaContent", com.google.api.client.http.AbstractInputStreamContent.class),
        setter("deleted", Boolean.class),
        setter("internalDateSource", String.class)),

    LIST(
        com.google.api.services.gmail.Gmail.Users.Messages.List.class,
        "list",
        arg("userId", String.class),
        setter("includeSpamTrash", Boolean.class),
        setter("labelIds", java.util.List.class),
        setter("maxResults", Long.class),
        setter("pageToken", String.class),
        setter("q", String.class)),

    MODIFY(
        com.google.api.services.gmail.Gmail.Users.Messages.Modify.class,
        "modify",
        arg("userId", String.class),
        arg("id", String.class),
        arg("modifyMessageRequest", com.google.api.services.gmail.model.ModifyMessageRequest.class)),

    SEND(
        com.google.api.services.gmail.Gmail.Users.Messages.Send.class,
        "send",
        arg("userId", String.class),
        arg("content", com.google.api.services.gmail.model.Message.class)),

    SEND_1(
        com.google.api.services.gmail.Gmail.Users.Messages.Send.class,
        "send",
        arg("userId", String.class),
        arg("content", com.google.api.services.gmail.model.Message.class),
        arg("mediaContent", com.google.api.client.http.AbstractInputStreamContent.class)),

    TRASH(
        com.google.api.services.gmail.Gmail.Users.Messages.Trash.class,
        "trash",
        arg("userId", String.class),
        arg("id", String.class)),

    UNTRASH(
        com.google.api.services.gmail.Gmail.Users.Messages.Untrash.class,
        "untrash",
        arg("userId", String.class),
        arg("id", String.class));

    private final ApiMethod apiMethod;

    GmailUsersMessagesApiMethod(Class<?> resultType, String name, ApiMethodArg... args) {
        this.apiMethod = new ApiMethodImpl(Messages.class, resultType, name, args);
    }

    @Override
    public String getName() { return apiMethod.getName(); }

    @Override
    public Class<?> getResultType() { return apiMethod.getResultType(); }

    @Override
    public List<String> getArgNames() { return apiMethod.getArgNames(); }

    @Override
    public List<String> getSetterArgNames() { return apiMethod.getSetterArgNames(); }

    @Override
    public List<Class<?>> getArgTypes() { return apiMethod.getArgTypes(); }

    @Override
    public Method getMethod() { return apiMethod.getMethod(); }
}
