public class TranslateOptions extends com.google.cloud.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 |
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 com.google.cloud.http.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() |
TranslateOptions.Builder |
toBuilder() |
baseEquals, baseHashCode, defaultRetrySettings, getAppEngineAppId, getAppEngineProjectId, getAppEngineProjectIdFromAppId, getApplicationName, getClientLibToken, getClock, getCredentials, getDefaultProject, getDefaultProjectId, getDefaultRetrySettings, getFromServiceLoader, getGoogApiClientLibName, getGoogleCloudProjectId, getHost, getLibraryName, getLibraryVersion, getMergedHeaderProvider, getNoRetrySettings, getProjectId, getRetrySettings, getRpc, getScopedCredentials, getService, getServiceAccountProjectId, getTransportOptions, getUserAgent, newInstance, shouldRefreshRpc, shouldRefreshService
public static final String API_KEY_ENV_NAME
public static com.google.cloud.http.HttpTransportOptions getDefaultHttpTransportOptions()
public static String getDefaultApiKey()
protected boolean projectIdRequired()
projectIdRequired
in class com.google.cloud.ServiceOptions<Translate,TranslateOptions>
protected Set<String> getScopes()
getScopes
in class com.google.cloud.ServiceOptions<Translate,TranslateOptions>
protected TranslateRpc getTranslateRpcV2()
protected String getDefaultHost()
getDefaultHost
in class com.google.cloud.ServiceOptions<Translate,TranslateOptions>
public String getApiKey()
public String getTargetLanguage()
public TranslateOptions.Builder toBuilder()
toBuilder
in class com.google.cloud.ServiceOptions<Translate,TranslateOptions>
public static TranslateOptions getDefaultInstance()
TranslateOptions
instance.public static TranslateOptions.Builder newBuilder()
TranslateOptions
objects.Copyright © 2019 Google LLC. All rights reserved.