public class TranslateOptions extends ServiceOptions<Translate,TranslateOptions>
Modifier and Type | Class and Description |
---|---|
static class |
TranslateOptions.Builder |
static class |
TranslateOptions.DefaultTranslateFactory |
static class |
TranslateOptions.DefaultTranslateRpcFactory |
Modifier and Type | Field and Description |
---|---|
static String |
API_KEY_ENV_NAME |
CREDENTIAL_ENV_NAME, credentials
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getApiKey()
Returns the API key to be used to send requests.
|
static String |
getDefaultApiKey() |
protected String |
getDefaultHost() |
static HttpTransportOptions |
getDefaultHttpTransportOptions() |
static TranslateOptions |
getDefaultInstance()
Returns a default
TranslateOptions instance. |
protected Set<String> |
getScopes() |
String |
getTargetLanguage()
Returns the code for the default target language.
|
protected TranslateRpc |
getTranslateRpcV2() |
int |
hashCode() |
static TranslateOptions.Builder |
newBuilder()
Returns a builder for
TranslateOptions objects. |
protected boolean |
projectIdRequired()
Returns whether a service requires a project ID.
|
TranslateOptions.Builder |
toBuilder() |
baseEquals, baseHashCode, defaultRetrySettings, getAppEngineAppId, getAppEngineProjectId, getAppEngineProjectIdFromAppId, getApplicationName, getClock, getCredentials, getDefaultProject, getDefaultProjectId, getDefaultRetrySettings, getFromServiceLoader, getGoogApiClientLibName, getGoogleCloudProjectId, getHost, getLibraryName, getLibraryVersion, getMergedHeaderProvider, getNoRetrySettings, getProjectId, getRetrySettings, getRpc, getScopedCredentials, getService, getServiceAccountProjectId, getTransportOptions, getUserAgent, newInstance
public static final String API_KEY_ENV_NAME
public static HttpTransportOptions getDefaultHttpTransportOptions()
public static String getDefaultApiKey()
protected boolean projectIdRequired()
ServiceOptions
projectIdRequired
in class ServiceOptions<Translate,TranslateOptions>
protected Set<String> getScopes()
getScopes
in class ServiceOptions<Translate,TranslateOptions>
protected TranslateRpc getTranslateRpcV2()
protected String getDefaultHost()
getDefaultHost
in class ServiceOptions<Translate,TranslateOptions>
public String getApiKey()
public String getTargetLanguage()
public TranslateOptions.Builder toBuilder()
toBuilder
in class ServiceOptions<Translate,TranslateOptions>
public static TranslateOptions getDefaultInstance()
TranslateOptions
instance.public static TranslateOptions.Builder newBuilder()
TranslateOptions
objects.Copyright © 2019 Google LLC. All rights reserved.