public interface BatchTranslateTextRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofString getParent()
Required. Location to make a regional call.
Format: `projects/{project-id}/locations/{location-id}`.
The `global` location is not supported for batch translation.
Only AutoML Translation models or glossaries within the same region (have
the same location-id) can be used, otherwise an INVALID_ARGUMENT (400)
error is returned.
string parent = 1;com.google.protobuf.ByteString getParentBytes()
Required. Location to make a regional call.
Format: `projects/{project-id}/locations/{location-id}`.
The `global` location is not supported for batch translation.
Only AutoML Translation models or glossaries within the same region (have
the same location-id) can be used, otherwise an INVALID_ARGUMENT (400)
error is returned.
string parent = 1;String getSourceLanguageCode()
Required. Source language code.
string source_language_code = 2;com.google.protobuf.ByteString getSourceLanguageCodeBytes()
Required. Source language code.
string source_language_code = 2;List<String> getTargetLanguageCodesList()
Required. Specify up to 10 language codes here.
repeated string target_language_codes = 3;int getTargetLanguageCodesCount()
Required. Specify up to 10 language codes here.
repeated string target_language_codes = 3;String getTargetLanguageCodes(int index)
Required. Specify up to 10 language codes here.
repeated string target_language_codes = 3;com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index)
Required. Specify up to 10 language codes here.
repeated string target_language_codes = 3;int getModelsCount()
Optional. The models to use for translation. Map's key is target language
code. Map's value is model name. Value can be a built-in general model,
or an AutoML Translation model.
The value format depends on model type:
- AutoML Translation models:
`projects/{project-id}/locations/{location-id}/models/{model-id}`
- General (built-in) models:
`projects/{project-id}/locations/{location-id}/models/general/nmt`,
`projects/{project-id}/locations/{location-id}/models/general/base`
If the map is empty or a specific model is
not requested for a language pair, then default google model (nmt) is used.
map<string, string> models = 4;boolean containsModels(String key)
Optional. The models to use for translation. Map's key is target language
code. Map's value is model name. Value can be a built-in general model,
or an AutoML Translation model.
The value format depends on model type:
- AutoML Translation models:
`projects/{project-id}/locations/{location-id}/models/{model-id}`
- General (built-in) models:
`projects/{project-id}/locations/{location-id}/models/general/nmt`,
`projects/{project-id}/locations/{location-id}/models/general/base`
If the map is empty or a specific model is
not requested for a language pair, then default google model (nmt) is used.
map<string, string> models = 4;@Deprecated Map<String,String> getModels()
getModelsMap() instead.Map<String,String> getModelsMap()
Optional. The models to use for translation. Map's key is target language
code. Map's value is model name. Value can be a built-in general model,
or an AutoML Translation model.
The value format depends on model type:
- AutoML Translation models:
`projects/{project-id}/locations/{location-id}/models/{model-id}`
- General (built-in) models:
`projects/{project-id}/locations/{location-id}/models/general/nmt`,
`projects/{project-id}/locations/{location-id}/models/general/base`
If the map is empty or a specific model is
not requested for a language pair, then default google model (nmt) is used.
map<string, string> models = 4;String getModelsOrDefault(String key, String defaultValue)
Optional. The models to use for translation. Map's key is target language
code. Map's value is model name. Value can be a built-in general model,
or an AutoML Translation model.
The value format depends on model type:
- AutoML Translation models:
`projects/{project-id}/locations/{location-id}/models/{model-id}`
- General (built-in) models:
`projects/{project-id}/locations/{location-id}/models/general/nmt`,
`projects/{project-id}/locations/{location-id}/models/general/base`
If the map is empty or a specific model is
not requested for a language pair, then default google model (nmt) is used.
map<string, string> models = 4;String getModelsOrThrow(String key)
Optional. The models to use for translation. Map's key is target language
code. Map's value is model name. Value can be a built-in general model,
or an AutoML Translation model.
The value format depends on model type:
- AutoML Translation models:
`projects/{project-id}/locations/{location-id}/models/{model-id}`
- General (built-in) models:
`projects/{project-id}/locations/{location-id}/models/general/nmt`,
`projects/{project-id}/locations/{location-id}/models/general/base`
If the map is empty or a specific model is
not requested for a language pair, then default google model (nmt) is used.
map<string, string> models = 4;List<InputConfig> getInputConfigsList()
Required. Input configurations. The total number of files matched should be <= 1000. The total content size should be <= 100M Unicode codepoints. The files must use UTF-8 encoding.
repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5;InputConfig getInputConfigs(int index)
Required. Input configurations. The total number of files matched should be <= 1000. The total content size should be <= 100M Unicode codepoints. The files must use UTF-8 encoding.
repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5;int getInputConfigsCount()
Required. Input configurations. The total number of files matched should be <= 1000. The total content size should be <= 100M Unicode codepoints. The files must use UTF-8 encoding.
repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5;List<? extends InputConfigOrBuilder> getInputConfigsOrBuilderList()
Required. Input configurations. The total number of files matched should be <= 1000. The total content size should be <= 100M Unicode codepoints. The files must use UTF-8 encoding.
repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5;InputConfigOrBuilder getInputConfigsOrBuilder(int index)
Required. Input configurations. The total number of files matched should be <= 1000. The total content size should be <= 100M Unicode codepoints. The files must use UTF-8 encoding.
repeated .google.cloud.translation.v3beta1.InputConfig input_configs = 5;boolean hasOutputConfig()
Required. Output configuration. If 2 input configs match to the same file (that is, same input path), we don't generate output for duplicate inputs.
.google.cloud.translation.v3beta1.OutputConfig output_config = 6;OutputConfig getOutputConfig()
Required. Output configuration. If 2 input configs match to the same file (that is, same input path), we don't generate output for duplicate inputs.
.google.cloud.translation.v3beta1.OutputConfig output_config = 6;OutputConfigOrBuilder getOutputConfigOrBuilder()
Required. Output configuration. If 2 input configs match to the same file (that is, same input path), we don't generate output for duplicate inputs.
.google.cloud.translation.v3beta1.OutputConfig output_config = 6;int getGlossariesCount()
Optional. Glossaries to be applied for translation. It's keyed by target language code.
map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7;
boolean containsGlossaries(String key)
Optional. Glossaries to be applied for translation. It's keyed by target language code.
map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7;
@Deprecated Map<String,TranslateTextGlossaryConfig> getGlossaries()
getGlossariesMap() instead.Map<String,TranslateTextGlossaryConfig> getGlossariesMap()
Optional. Glossaries to be applied for translation. It's keyed by target language code.
map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7;
TranslateTextGlossaryConfig getGlossariesOrDefault(String key, TranslateTextGlossaryConfig defaultValue)
Optional. Glossaries to be applied for translation. It's keyed by target language code.
map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7;
TranslateTextGlossaryConfig getGlossariesOrThrow(String key)
Optional. Glossaries to be applied for translation. It's keyed by target language code.
map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7;
Copyright © 2019 Google LLC. All rights reserved.