Package com.google.cloud.translate
Class TranslateOptions
- java.lang.Object
-
- com.google.cloud.ServiceOptions<Translate,TranslateOptions>
-
- com.google.cloud.translate.TranslateOptions
-
- All Implemented Interfaces:
Serializable
public class TranslateOptions extends com.google.cloud.ServiceOptions<Translate,TranslateOptions>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTranslateOptions.Builderstatic classTranslateOptions.DefaultTranslateFactorystatic classTranslateOptions.DefaultTranslateRpcFactory
-
Field Summary
Fields Modifier and Type Field Description static StringAPI_KEY_ENV_NAME
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetApiKey()Returns the API key to be used to send requests.static StringgetDefaultApiKey()protected StringgetDefaultHost()static com.google.cloud.http.HttpTransportOptionsgetDefaultHttpTransportOptions()static TranslateOptionsgetDefaultInstance()Returns a defaultTranslateOptionsinstance.protected Set<String>getScopes()StringgetTargetLanguage()Returns the code for the default target language.protected TranslateRpcgetTranslateRpcV2()inthashCode()static TranslateOptions.BuildernewBuilder()Returns a builder forTranslateOptionsobjects.protected booleanprojectIdRequired()TranslateOptions.BuildertoBuilder()-
Methods inherited from class com.google.cloud.ServiceOptions
baseEquals, baseHashCode, defaultRetrySettings, getAppEngineAppId, getAppEngineProjectId, getAppEngineProjectIdFromAppId, getApplicationName, getClientLibToken, getClock, getCredentials, getDefaultProject, getDefaultProjectId, getDefaultRetrySettings, getFromServiceLoader, getGoogApiClientLibName, getGoogleCloudProjectId, getHost, getLibraryName, getLibraryVersion, getMergedHeaderProvider, getNoRetrySettings, getProjectId, getQuotaProjectId, getRetrySettings, getRpc, getScopedCredentials, getService, getServiceAccountProjectId, getTransportOptions, getUserAgent, newInstance, shouldRefreshRpc, shouldRefreshService
-
-
-
-
Field Detail
-
API_KEY_ENV_NAME
public static final String API_KEY_ENV_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDefaultHttpTransportOptions
public static com.google.cloud.http.HttpTransportOptions getDefaultHttpTransportOptions()
-
getDefaultApiKey
public static String getDefaultApiKey()
-
projectIdRequired
protected boolean projectIdRequired()
- Overrides:
projectIdRequiredin classcom.google.cloud.ServiceOptions<Translate,TranslateOptions>
-
getScopes
protected Set<String> getScopes()
- Specified by:
getScopesin classcom.google.cloud.ServiceOptions<Translate,TranslateOptions>
-
getTranslateRpcV2
protected TranslateRpc getTranslateRpcV2()
-
getDefaultHost
protected String getDefaultHost()
- Overrides:
getDefaultHostin classcom.google.cloud.ServiceOptions<Translate,TranslateOptions>
-
getApiKey
public String getApiKey()
Returns the API key to be used to send requests.
-
getTargetLanguage
public String getTargetLanguage()
Returns the code for the default target language.
-
toBuilder
public TranslateOptions.Builder toBuilder()
- Specified by:
toBuilderin classcom.google.cloud.ServiceOptions<Translate,TranslateOptions>
-
getDefaultInstance
public static TranslateOptions getDefaultInstance()
Returns a defaultTranslateOptionsinstance.
-
newBuilder
public static TranslateOptions.Builder newBuilder()
Returns a builder forTranslateOptionsobjects.
-
-