Class TranslateOptions (2.42.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
Type Description
String

Static Methods

getDefaultApiKey()

public static String getDefaultApiKey()
Returns
Type Description
String

getDefaultHttpTransportOptions()

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

getDefaultInstance()

public static TranslateOptions getDefaultInstance()

Returns a default TranslateOptions instance.

Returns
Type Description
TranslateOptions

newBuilder()

public static TranslateOptions.Builder newBuilder()

Returns a builder for TranslateOptions objects.

Returns
Type Description
TranslateOptions.Builder

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getApiKey()

public String getApiKey()

Returns the API key to be used to send requests.

Returns
Type Description
String

getDefaultHost()

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

getScopes()

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

getTargetLanguage()

public String getTargetLanguage()

Returns the code for the default target language.

Returns
Type Description
String

getTranslateRpcV2()

protected TranslateRpc getTranslateRpcV2()
Returns
Type Description
TranslateRpc

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

projectIdRequired()

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

toBuilder()

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