Class GoogleSheetsStreamConfiguration
java.lang.Object
org.apache.camel.component.google.sheets.stream.GoogleSheetsStreamConfiguration
- All Implemented Interfaces:
Cloneable
Component configuration for GoogleSheets stream component.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()
int
getRange()
boolean
boolean
void
setAccessToken
(String accessToken) OAuth 2 access token.void
setApplicationName
(String applicationName) Google Sheets application name.void
setClientId
(String clientId) Client ID of the sheets applicationvoid
setClientSecret
(String clientSecret) Client secret of the sheets applicationvoid
setDelegate
(String delegate) Delegate for wide-domain service accountvoid
setIncludeGridData
(boolean includeGridData) True if grid data should be returned.void
setMajorDimension
(String majorDimension) Specifies the major dimension that results should use..void
setMaxResults
(int maxResults) Specify the maximum number of returned results.void
Specifies the range of rows and columns in a sheet to get data from.void
setRefreshToken
(String refreshToken) OAuth 2 refresh token.void
setScopes
(Collection<String> scopes) Specifies the level of permissions you want a sheets application to have to a user account.void
setServiceAccountKey
(String serviceAccountKey) Sets "*.json" file with credentials for Service accountvoid
setSplitResults
(boolean splitResults) True if value range result should be split into rows or columns to process each of them individually.void
setSpreadsheetId
(String spreadsheetId) Specifies the spreadsheet identifier that is used to identify the target to obtain.void
setValueRenderOption
(String valueRenderOption) Determines how values should be rendered in the output.
-
Constructor Details
-
GoogleSheetsStreamConfiguration
public GoogleSheetsStreamConfiguration()
-
-
Method Details
-
getClientId
-
setClientId
Client ID of the sheets application -
getClientSecret
-
setClientSecret
Client secret of the sheets application -
getAccessToken
-
setAccessToken
OAuth 2 access token. This typically expires after an hour so refreshToken is recommended for long term usage. -
getRefreshToken
-
setRefreshToken
OAuth 2 refresh token. Using this, the Google Sheets component can obtain a new accessToken whenever the current one expires - a necessity if the application is long-lived. -
getApplicationName
-
setApplicationName
Google Sheets application name. Example would be "camel-google-sheets/1.0" -
getScopes
-
setScopes
Specifies the level of permissions you want a sheets application to have to a user account. See https://developers.google.com/identity/protocols/googlescopes for more info.- See Also:
-
getSpreadsheetId
-
setSpreadsheetId
Specifies the spreadsheet identifier that is used to identify the target to obtain. -
getMaxResults
public int getMaxResults() -
setMaxResults
public void setMaxResults(int maxResults) Specify the maximum number of returned results. This will limit the number of rows in a returned value range data set or the number of returned value ranges in a batch request. -
getRange
-
setRange
Specifies the range of rows and columns in a sheet to get data from. -
getMajorDimension
-
setMajorDimension
Specifies the major dimension that results should use.. -
getValueRenderOption
-
setValueRenderOption
Determines how values should be rendered in the output. -
isIncludeGridData
public boolean isIncludeGridData() -
setIncludeGridData
public void setIncludeGridData(boolean includeGridData) True if grid data should be returned. -
isSplitResults
public boolean isSplitResults() -
setSplitResults
public void setSplitResults(boolean splitResults) True if value range result should be split into rows or columns to process each of them individually. When true each row or column is represented with a separate exchange in batch processing. Otherwise value range object is used as exchange junk size. -
getServiceAccountKey
-
setServiceAccountKey
Sets "*.json" file with credentials for Service account- Parameters:
serviceAccountKey
- String file, classpath, or http url
-
getDelegate
-
setDelegate
Delegate for wide-domain service account -
copy
-