/* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.component.google.sheets;

import javax.annotation.processing.Generated;
import java.util.Map;

import org.apache.camel.CamelContext;
import org.apache.camel.spi.ExtendedPropertyConfigurerGetter;
import org.apache.camel.spi.PropertyConfigurerGetter;
import org.apache.camel.spi.ConfigurerStrategy;
import org.apache.camel.spi.GeneratedPropertyConfigurer;
import org.apache.camel.util.CaseInsensitiveMap;
import org.apache.camel.component.google.sheets.SheetsSpreadsheetsValuesEndpointConfiguration;

/**
 * Generated by camel build tools - do NOT edit this file!
 */
@Generated("org.apache.camel.maven.packaging.GenerateConfigurerMojo")
@SuppressWarnings("unchecked")
public class SheetsSpreadsheetsValuesEndpointConfigurationConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {

    private static final Map<String, Object> ALL_OPTIONS;
    static {
        Map<String, Object> map = new CaseInsensitiveMap();
        map.put("AccessToken", java.lang.String.class);
        map.put("ApiName", org.apache.camel.component.google.sheets.internal.GoogleSheetsApiName.class);
        map.put("ApplicationName", java.lang.String.class);
        map.put("BatchClearValuesRequest", com.google.api.services.sheets.v4.model.BatchClearValuesRequest.class);
        map.put("BatchGetValuesByDataFilterRequest", com.google.api.services.sheets.v4.model.BatchGetValuesByDataFilterRequest.class);
        map.put("BatchUpdateValuesByDataFilterRequest", com.google.api.services.sheets.v4.model.BatchUpdateValuesByDataFilterRequest.class);
        map.put("BatchUpdateValuesRequest", com.google.api.services.sheets.v4.model.BatchUpdateValuesRequest.class);
        map.put("ClearValuesRequest", com.google.api.services.sheets.v4.model.ClearValuesRequest.class);
        map.put("ClientId", java.lang.String.class);
        map.put("ClientSecret", java.lang.String.class);
        map.put("Content", com.google.api.services.sheets.v4.model.BatchClearValuesByDataFilterRequest.class);
        map.put("DateTimeRenderOption", java.lang.String.class);
        map.put("Delegate", java.lang.String.class);
        map.put("IncludeValuesInResponse", java.lang.Boolean.class);
        map.put("InsertDataOption", java.lang.String.class);
        map.put("MajorDimension", java.lang.String.class);
        map.put("MethodName", java.lang.String.class);
        map.put("Range", java.lang.String.class);
        map.put("Ranges", java.util.List.class);
        map.put("RefreshToken", java.lang.String.class);
        map.put("ResponseDateTimeRenderOption", java.lang.String.class);
        map.put("ResponseValueRenderOption", java.lang.String.class);
        map.put("Scopes", java.lang.String.class);
        map.put("ServiceAccountKey", java.lang.String.class);
        map.put("SplitResult", boolean.class);
        map.put("SpreadsheetId", java.lang.String.class);
        map.put("ValueInputOption", java.lang.String.class);
        map.put("ValueRenderOption", java.lang.String.class);
        map.put("Values", com.google.api.services.sheets.v4.model.ValueRange.class);
        ALL_OPTIONS = map;
    }

    @Override
    public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
        org.apache.camel.component.google.sheets.SheetsSpreadsheetsValuesEndpointConfiguration target = (org.apache.camel.component.google.sheets.SheetsSpreadsheetsValuesEndpointConfiguration) obj;
        switch (ignoreCase ? name.toLowerCase() : name) {
        case "accesstoken":
        case "accessToken": target.setAccessToken(property(camelContext, java.lang.String.class, value)); return true;
        case "apiname":
        case "apiName": target.setApiName(property(camelContext, org.apache.camel.component.google.sheets.internal.GoogleSheetsApiName.class, value)); return true;
        case "applicationname":
        case "applicationName": target.setApplicationName(property(camelContext, java.lang.String.class, value)); return true;
        case "batchclearvaluesrequest":
        case "batchClearValuesRequest": target.setBatchClearValuesRequest(property(camelContext, com.google.api.services.sheets.v4.model.BatchClearValuesRequest.class, value)); return true;
        case "batchgetvaluesbydatafilterrequest":
        case "batchGetValuesByDataFilterRequest": target.setBatchGetValuesByDataFilterRequest(property(camelContext, com.google.api.services.sheets.v4.model.BatchGetValuesByDataFilterRequest.class, value)); return true;
        case "batchupdatevaluesbydatafilterrequest":
        case "batchUpdateValuesByDataFilterRequest": target.setBatchUpdateValuesByDataFilterRequest(property(camelContext, com.google.api.services.sheets.v4.model.BatchUpdateValuesByDataFilterRequest.class, value)); return true;
        case "batchupdatevaluesrequest":
        case "batchUpdateValuesRequest": target.setBatchUpdateValuesRequest(property(camelContext, com.google.api.services.sheets.v4.model.BatchUpdateValuesRequest.class, value)); return true;
        case "clearvaluesrequest":
        case "clearValuesRequest": target.setClearValuesRequest(property(camelContext, com.google.api.services.sheets.v4.model.ClearValuesRequest.class, value)); return true;
        case "clientid":
        case "clientId": target.setClientId(property(camelContext, java.lang.String.class, value)); return true;
        case "clientsecret":
        case "clientSecret": target.setClientSecret(property(camelContext, java.lang.String.class, value)); return true;
        case "content": target.setContent(property(camelContext, com.google.api.services.sheets.v4.model.BatchClearValuesByDataFilterRequest.class, value)); return true;
        case "datetimerenderoption":
        case "dateTimeRenderOption": target.setDateTimeRenderOption(property(camelContext, java.lang.String.class, value)); return true;
        case "delegate": target.setDelegate(property(camelContext, java.lang.String.class, value)); return true;
        case "includevaluesinresponse":
        case "includeValuesInResponse": target.setIncludeValuesInResponse(property(camelContext, java.lang.Boolean.class, value)); return true;
        case "insertdataoption":
        case "insertDataOption": target.setInsertDataOption(property(camelContext, java.lang.String.class, value)); return true;
        case "majordimension":
        case "majorDimension": target.setMajorDimension(property(camelContext, java.lang.String.class, value)); return true;
        case "methodname":
        case "methodName": target.setMethodName(property(camelContext, java.lang.String.class, value)); return true;
        case "range": target.setRange(property(camelContext, java.lang.String.class, value)); return true;
        case "ranges": target.setRanges(property(camelContext, java.util.List.class, value)); return true;
        case "refreshtoken":
        case "refreshToken": target.setRefreshToken(property(camelContext, java.lang.String.class, value)); return true;
        case "responsedatetimerenderoption":
        case "responseDateTimeRenderOption": target.setResponseDateTimeRenderOption(property(camelContext, java.lang.String.class, value)); return true;
        case "responsevaluerenderoption":
        case "responseValueRenderOption": target.setResponseValueRenderOption(property(camelContext, java.lang.String.class, value)); return true;
        case "scopes": target.setScopes(property(camelContext, java.lang.String.class, value)); return true;
        case "serviceaccountkey":
        case "serviceAccountKey": target.setServiceAccountKey(property(camelContext, java.lang.String.class, value)); return true;
        case "splitresult":
        case "splitResult": target.setSplitResult(property(camelContext, boolean.class, value)); return true;
        case "spreadsheetid":
        case "spreadsheetId": target.setSpreadsheetId(property(camelContext, java.lang.String.class, value)); return true;
        case "valueinputoption":
        case "valueInputOption": target.setValueInputOption(property(camelContext, java.lang.String.class, value)); return true;
        case "valuerenderoption":
        case "valueRenderOption": target.setValueRenderOption(property(camelContext, java.lang.String.class, value)); return true;
        case "values": target.setValues(property(camelContext, com.google.api.services.sheets.v4.model.ValueRange.class, value)); return true;
        default: return false;
        }
    }

    @Override
    public Map<String, Object> getAllOptions(Object target) {
        return ALL_OPTIONS;
    }

    @Override
    public Class<?> getOptionType(String name, boolean ignoreCase) {
        switch (ignoreCase ? name.toLowerCase() : name) {
        case "accesstoken":
        case "accessToken": return java.lang.String.class;
        case "apiname":
        case "apiName": return org.apache.camel.component.google.sheets.internal.GoogleSheetsApiName.class;
        case "applicationname":
        case "applicationName": return java.lang.String.class;
        case "batchclearvaluesrequest":
        case "batchClearValuesRequest": return com.google.api.services.sheets.v4.model.BatchClearValuesRequest.class;
        case "batchgetvaluesbydatafilterrequest":
        case "batchGetValuesByDataFilterRequest": return com.google.api.services.sheets.v4.model.BatchGetValuesByDataFilterRequest.class;
        case "batchupdatevaluesbydatafilterrequest":
        case "batchUpdateValuesByDataFilterRequest": return com.google.api.services.sheets.v4.model.BatchUpdateValuesByDataFilterRequest.class;
        case "batchupdatevaluesrequest":
        case "batchUpdateValuesRequest": return com.google.api.services.sheets.v4.model.BatchUpdateValuesRequest.class;
        case "clearvaluesrequest":
        case "clearValuesRequest": return com.google.api.services.sheets.v4.model.ClearValuesRequest.class;
        case "clientid":
        case "clientId": return java.lang.String.class;
        case "clientsecret":
        case "clientSecret": return java.lang.String.class;
        case "content": return com.google.api.services.sheets.v4.model.BatchClearValuesByDataFilterRequest.class;
        case "datetimerenderoption":
        case "dateTimeRenderOption": return java.lang.String.class;
        case "delegate": return java.lang.String.class;
        case "includevaluesinresponse":
        case "includeValuesInResponse": return java.lang.Boolean.class;
        case "insertdataoption":
        case "insertDataOption": return java.lang.String.class;
        case "majordimension":
        case "majorDimension": return java.lang.String.class;
        case "methodname":
        case "methodName": return java.lang.String.class;
        case "range": return java.lang.String.class;
        case "ranges": return java.util.List.class;
        case "refreshtoken":
        case "refreshToken": return java.lang.String.class;
        case "responsedatetimerenderoption":
        case "responseDateTimeRenderOption": return java.lang.String.class;
        case "responsevaluerenderoption":
        case "responseValueRenderOption": return java.lang.String.class;
        case "scopes": return java.lang.String.class;
        case "serviceaccountkey":
        case "serviceAccountKey": return java.lang.String.class;
        case "splitresult":
        case "splitResult": return boolean.class;
        case "spreadsheetid":
        case "spreadsheetId": return java.lang.String.class;
        case "valueinputoption":
        case "valueInputOption": return java.lang.String.class;
        case "valuerenderoption":
        case "valueRenderOption": return java.lang.String.class;
        case "values": return com.google.api.services.sheets.v4.model.ValueRange.class;
        default: return null;
        }
    }

    @Override
    public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
        org.apache.camel.component.google.sheets.SheetsSpreadsheetsValuesEndpointConfiguration target = (org.apache.camel.component.google.sheets.SheetsSpreadsheetsValuesEndpointConfiguration) obj;
        switch (ignoreCase ? name.toLowerCase() : name) {
        case "accesstoken":
        case "accessToken": return target.getAccessToken();
        case "apiname":
        case "apiName": return target.getApiName();
        case "applicationname":
        case "applicationName": return target.getApplicationName();
        case "batchclearvaluesrequest":
        case "batchClearValuesRequest": return target.getBatchClearValuesRequest();
        case "batchgetvaluesbydatafilterrequest":
        case "batchGetValuesByDataFilterRequest": return target.getBatchGetValuesByDataFilterRequest();
        case "batchupdatevaluesbydatafilterrequest":
        case "batchUpdateValuesByDataFilterRequest": return target.getBatchUpdateValuesByDataFilterRequest();
        case "batchupdatevaluesrequest":
        case "batchUpdateValuesRequest": return target.getBatchUpdateValuesRequest();
        case "clearvaluesrequest":
        case "clearValuesRequest": return target.getClearValuesRequest();
        case "clientid":
        case "clientId": return target.getClientId();
        case "clientsecret":
        case "clientSecret": return target.getClientSecret();
        case "content": return target.getContent();
        case "datetimerenderoption":
        case "dateTimeRenderOption": return target.getDateTimeRenderOption();
        case "delegate": return target.getDelegate();
        case "includevaluesinresponse":
        case "includeValuesInResponse": return target.getIncludeValuesInResponse();
        case "insertdataoption":
        case "insertDataOption": return target.getInsertDataOption();
        case "majordimension":
        case "majorDimension": return target.getMajorDimension();
        case "methodname":
        case "methodName": return target.getMethodName();
        case "range": return target.getRange();
        case "ranges": return target.getRanges();
        case "refreshtoken":
        case "refreshToken": return target.getRefreshToken();
        case "responsedatetimerenderoption":
        case "responseDateTimeRenderOption": return target.getResponseDateTimeRenderOption();
        case "responsevaluerenderoption":
        case "responseValueRenderOption": return target.getResponseValueRenderOption();
        case "scopes": return target.getScopes();
        case "serviceaccountkey":
        case "serviceAccountKey": return target.getServiceAccountKey();
        case "splitresult":
        case "splitResult": return target.isSplitResult();
        case "spreadsheetid":
        case "spreadsheetId": return target.getSpreadsheetId();
        case "valueinputoption":
        case "valueInputOption": return target.getValueInputOption();
        case "valuerenderoption":
        case "valueRenderOption": return target.getValueRenderOption();
        case "values": return target.getValues();
        default: return null;
        }
    }
}

