org.apache.camel.component.google.sheets.SheetsSpreadsheetsValuesEndpointConfigurationConfigurer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of camel-google-sheets Show documentation
Show all versions of camel-google-sheets Show documentation
Camel Component for Google Sheets
/* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.component.google.sheets;
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!
*/
@SuppressWarnings("unchecked")
public class SheetsSpreadsheetsValuesEndpointConfigurationConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
private static final Map ALL_OPTIONS;
static {
Map 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("Delegate", java.lang.String.class);
map.put("MethodName", java.lang.String.class);
map.put("Range", java.lang.String.class);
map.put("RefreshToken", java.lang.String.class);
map.put("Scopes", java.util.Collection.class);
map.put("ServiceAccountKey", java.lang.String.class);
map.put("SplitResult", boolean.class);
map.put("SpreadsheetId", 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":
case "Content": target.setContent(property(camelContext, com.google.api.services.sheets.v4.model.BatchClearValuesByDataFilterRequest.class, value)); return true;
case "delegate":
case "Delegate": target.setDelegate(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":
case "Range": target.setRange(property(camelContext, java.lang.String.class, value)); return true;
case "refreshtoken":
case "RefreshToken": target.setRefreshToken(property(camelContext, java.lang.String.class, value)); return true;
case "scopes":
case "Scopes": target.setScopes(property(camelContext, java.util.Collection.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 "values":
case "Values": target.setValues(property(camelContext, com.google.api.services.sheets.v4.model.ValueRange.class, value)); return true;
default: return false;
}
}
@Override
public Map 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":
case "Content": return com.google.api.services.sheets.v4.model.BatchClearValuesByDataFilterRequest.class;
case "delegate":
case "Delegate": return java.lang.String.class;
case "methodname":
case "MethodName": return java.lang.String.class;
case "range":
case "Range": return java.lang.String.class;
case "refreshtoken":
case "RefreshToken": return java.lang.String.class;
case "scopes":
case "Scopes": return java.util.Collection.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 "values":
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":
case "Content": return target.getContent();
case "delegate":
case "Delegate": return target.getDelegate();
case "methodname":
case "MethodName": return target.getMethodName();
case "range":
case "Range": return target.getRange();
case "refreshtoken":
case "RefreshToken": return target.getRefreshToken();
case "scopes":
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 "values":
case "Values": return target.getValues();
default: return null;
}
}
@Override
public Object getCollectionValueType(Object target, String name, boolean ignoreCase) {
switch (ignoreCase ? name.toLowerCase() : name) {
case "scopes":
case "Scopes": return java.lang.String.class;
default: return null;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy