Class TranslateOptions (2.13.0)

public class TranslateOptions extends ServiceOptions<Translate,TranslateOptions>

Inheritance

Object > com.google.cloud.ServiceOptions > TranslateOptions

Static Fields

API_KEY_ENV_NAME

public static final String API_KEY_ENV_NAME
Field Value
TypeDescription
String

Static Methods

getDefaultApiKey()

public static String getDefaultApiKey()
Returns
TypeDescription
String

getDefaultHttpTransportOptions()

public static HttpTransportOptions getDefaultHttpTransportOptions()
Returns
TypeDescription
com.google.cloud.http.HttpTransportOptions

getDefaultInstance()

public static TranslateOptions getDefaultInstance()

Returns a default TranslateOptions instance.

Returns
TypeDescription
TranslateOptions

newBuilder()

public static TranslateOptions.Builder newBuilder()

Returns a builder for TranslateOptions objects.

Returns
TypeDescription
TranslateOptions.Builder

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getApiKey()

public String getApiKey()

Returns the API key to be used to send requests.

Returns
TypeDescription
String

getDefaultHost()

protected String getDefaultHost()
Returns
TypeDescription
String
Overrides
com.google.cloud.ServiceOptions.getDefaultHost()

getScopes()

protected Set<String> getScopes()
Returns
TypeDescription
Set<String>
Overrides
com.google.cloud.ServiceOptions.getScopes()

getTargetLanguage()

public String getTargetLanguage()

Returns the code for the default target language.

Returns
TypeDescription
String

getTranslateRpcV2()

protected TranslateRpc getTranslateRpcV2()
Returns
TypeDescription
TranslateRpc

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

projectIdRequired()

protected boolean projectIdRequired()
Returns
TypeDescription
boolean
Overrides
com.google.cloud.ServiceOptions.projectIdRequired()

toBuilder()

public TranslateOptions.Builder toBuilder()
Returns
TypeDescription
TranslateOptions.Builder
Overrides
com.google.cloud.ServiceOptions.<B>toBuilder()