Class GoogleSheetsStreamConfiguration
- java.lang.Object
-
- org.apache.camel.component.google.sheets.stream.GoogleSheetsStreamConfiguration
-
-
Constructor Summary
Constructors Constructor Description GoogleSheetsStreamConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GoogleSheetsStreamConfiguration
copy()
String
getAccessToken()
String
getApplicationName()
String
getClientId()
String
getClientSecret()
String
getDelegate()
String
getMajorDimension()
int
getMaxResults()
String
getRange()
String
getRefreshToken()
List<String>
getScopes()
String
getServiceAccountKey()
String
getSpreadsheetId()
String
getValueRenderOption()
boolean
isIncludeGridData()
boolean
isSplitResults()
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
setRange(String range)
Specifies the range of rows and columns in a sheet to get data from.void
setRefreshToken(String refreshToken)
OAuth 2 refresh token.void
setScopes(List<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.
-
-
-
Method Detail
-
getClientId
public String getClientId()
-
setClientId
public void setClientId(String clientId)
Client ID of the sheets application
-
getClientSecret
public String getClientSecret()
-
setClientSecret
public void setClientSecret(String clientSecret)
Client secret of the sheets application
-
getAccessToken
public String getAccessToken()
-
setAccessToken
public void setAccessToken(String accessToken)
OAuth 2 access token. This typically expires after an hour so refreshToken is recommended for long term usage.
-
getRefreshToken
public String getRefreshToken()
-
setRefreshToken
public void setRefreshToken(String refreshToken)
OAuth 2 refresh token. Using this, the Google Calendar component can obtain a new accessToken whenever the current one expires - a necessity if the application is long-lived.
-
getApplicationName
public String getApplicationName()
-
setApplicationName
public void setApplicationName(String applicationName)
Google sheets application name. Example would be "camel-google-sheets/1.0"
-
setScopes
public void setScopes(List<String> scopes)
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.
-
getSpreadsheetId
public String getSpreadsheetId()
-
setSpreadsheetId
public void setSpreadsheetId(String spreadsheetId)
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
public String getRange()
-
setRange
public void setRange(String range)
Specifies the range of rows and columns in a sheet to get data from.
-
getMajorDimension
public String getMajorDimension()
-
setMajorDimension
public void setMajorDimension(String majorDimension)
Specifies the major dimension that results should use..
-
getValueRenderOption
public String getValueRenderOption()
-
setValueRenderOption
public void setValueRenderOption(String valueRenderOption)
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
public String getServiceAccountKey()
-
setServiceAccountKey
public void setServiceAccountKey(String serviceAccountKey)
Sets "*.json" file with credentials for Service account- Parameters:
serviceAccountKey
- String file, classpath, or http url
-
getDelegate
public String getDelegate()
-
setDelegate
public void setDelegate(String delegate)
Delegate for wide-domain service account
-
copy
public GoogleSheetsStreamConfiguration copy()
-
-