Package com.google.cloud.translate.v3
Class BatchTranslateTextRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<BatchTranslateTextRequest.Builder>
-
- com.google.cloud.translate.v3.BatchTranslateTextRequest.Builder
-
- All Implemented Interfaces:
BatchTranslateTextRequestOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- BatchTranslateTextRequest
public static final class BatchTranslateTextRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BatchTranslateTextRequest.Builder> implements BatchTranslateTextRequestOrBuilder
The batch translation request.
Protobuf typegoogle.cloud.translation.v3.BatchTranslateTextRequest
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchTranslateTextRequest.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchTranslateTextRequest.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchTranslateTextRequest.Builder>
-
clear
public BatchTranslateTextRequest.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchTranslateTextRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchTranslateTextRequest.Builder>
-
getDefaultInstanceForType
public BatchTranslateTextRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public BatchTranslateTextRequest build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public BatchTranslateTextRequest buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public BatchTranslateTextRequest.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchTranslateTextRequest.Builder>
-
setField
public BatchTranslateTextRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchTranslateTextRequest.Builder>
-
clearField
public BatchTranslateTextRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchTranslateTextRequest.Builder>
-
clearOneof
public BatchTranslateTextRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchTranslateTextRequest.Builder>
-
setRepeatedField
public BatchTranslateTextRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchTranslateTextRequest.Builder>
-
addRepeatedField
public BatchTranslateTextRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchTranslateTextRequest.Builder>
-
mergeFrom
public BatchTranslateTextRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<BatchTranslateTextRequest.Builder>
-
mergeFrom
public BatchTranslateTextRequest.Builder mergeFrom(BatchTranslateTextRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchTranslateTextRequest.Builder>
-
mergeFrom
public BatchTranslateTextRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<BatchTranslateTextRequest.Builder>
- Throws:
IOException
-
getParent
public String getParent()
Required. Location to make a call. Must refer to a caller's project. Format: `projects/{project-number-or-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 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Specified by:
getParent
in interfaceBatchTranslateTextRequestOrBuilder
- Returns:
- The parent.
-
getParentBytes
public com.google.protobuf.ByteString getParentBytes()
Required. Location to make a call. Must refer to a caller's project. Format: `projects/{project-number-or-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 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Specified by:
getParentBytes
in interfaceBatchTranslateTextRequestOrBuilder
- Returns:
- The bytes for parent.
-
setParent
public BatchTranslateTextRequest.Builder setParent(String value)
Required. Location to make a call. Must refer to a caller's project. Format: `projects/{project-number-or-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 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Parameters:
value
- The parent to set.- Returns:
- This builder for chaining.
-
clearParent
public BatchTranslateTextRequest.Builder clearParent()
Required. Location to make a call. Must refer to a caller's project. Format: `projects/{project-number-or-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 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Returns:
- This builder for chaining.
-
setParentBytes
public BatchTranslateTextRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
Required. Location to make a call. Must refer to a caller's project. Format: `projects/{project-number-or-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 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Parameters:
value
- The bytes for parent to set.- Returns:
- This builder for chaining.
-
getSourceLanguageCode
public String getSourceLanguageCode()
Required. Source language code.
string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getSourceLanguageCode
in interfaceBatchTranslateTextRequestOrBuilder
- Returns:
- The sourceLanguageCode.
-
getSourceLanguageCodeBytes
public com.google.protobuf.ByteString getSourceLanguageCodeBytes()
Required. Source language code.
string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getSourceLanguageCodeBytes
in interfaceBatchTranslateTextRequestOrBuilder
- Returns:
- The bytes for sourceLanguageCode.
-
setSourceLanguageCode
public BatchTranslateTextRequest.Builder setSourceLanguageCode(String value)
Required. Source language code.
string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED];
- Parameters:
value
- The sourceLanguageCode to set.- Returns:
- This builder for chaining.
-
clearSourceLanguageCode
public BatchTranslateTextRequest.Builder clearSourceLanguageCode()
Required. Source language code.
string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- This builder for chaining.
-
setSourceLanguageCodeBytes
public BatchTranslateTextRequest.Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value)
Required. Source language code.
string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED];
- Parameters:
value
- The bytes for sourceLanguageCode to set.- Returns:
- This builder for chaining.
-
getTargetLanguageCodesList
public com.google.protobuf.ProtocolStringList getTargetLanguageCodesList()
Required. Specify up to 10 language codes here.
repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getTargetLanguageCodesList
in interfaceBatchTranslateTextRequestOrBuilder
- Returns:
- A list containing the targetLanguageCodes.
-
getTargetLanguageCodesCount
public int getTargetLanguageCodesCount()
Required. Specify up to 10 language codes here.
repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getTargetLanguageCodesCount
in interfaceBatchTranslateTextRequestOrBuilder
- Returns:
- The count of targetLanguageCodes.
-
getTargetLanguageCodes
public String getTargetLanguageCodes(int index)
Required. Specify up to 10 language codes here.
repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getTargetLanguageCodes
in interfaceBatchTranslateTextRequestOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The targetLanguageCodes at the given index.
-
getTargetLanguageCodesBytes
public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index)
Required. Specify up to 10 language codes here.
repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getTargetLanguageCodesBytes
in interfaceBatchTranslateTextRequestOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the targetLanguageCodes at the given index.
-
setTargetLanguageCodes
public BatchTranslateTextRequest.Builder setTargetLanguageCodes(int index, String value)
Required. Specify up to 10 language codes here.
repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED];
- Parameters:
index
- The index to set the value at.value
- The targetLanguageCodes to set.- Returns:
- This builder for chaining.
-
addTargetLanguageCodes
public BatchTranslateTextRequest.Builder addTargetLanguageCodes(String value)
Required. Specify up to 10 language codes here.
repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED];
- Parameters:
value
- The targetLanguageCodes to add.- Returns:
- This builder for chaining.
-
addAllTargetLanguageCodes
public BatchTranslateTextRequest.Builder addAllTargetLanguageCodes(Iterable<String> values)
Required. Specify up to 10 language codes here.
repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED];
- Parameters:
values
- The targetLanguageCodes to add.- Returns:
- This builder for chaining.
-
clearTargetLanguageCodes
public BatchTranslateTextRequest.Builder clearTargetLanguageCodes()
Required. Specify up to 10 language codes here.
repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- This builder for chaining.
-
addTargetLanguageCodesBytes
public BatchTranslateTextRequest.Builder addTargetLanguageCodesBytes(com.google.protobuf.ByteString value)
Required. Specify up to 10 language codes here.
repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED];
- Parameters:
value
- The bytes of the targetLanguageCodes to add.- Returns:
- This builder for chaining.
-
getModelsCount
public int getModelsCount()
Description copied from interface:BatchTranslateTextRequestOrBuilder
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-number-or-id}/locations/{location-id}/models/{model-id}` - General (built-in) models: `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, 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 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getModelsCount
in interfaceBatchTranslateTextRequestOrBuilder
-
containsModels
public 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-number-or-id}/locations/{location-id}/models/{model-id}` - General (built-in) models: `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, 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 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
containsModels
in interfaceBatchTranslateTextRequestOrBuilder
-
getModels
@Deprecated public Map<String,String> getModels()
Deprecated.UsegetModelsMap()
instead.- Specified by:
getModels
in interfaceBatchTranslateTextRequestOrBuilder
-
getModelsMap
public 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-number-or-id}/locations/{location-id}/models/{model-id}` - General (built-in) models: `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, 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 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getModelsMap
in interfaceBatchTranslateTextRequestOrBuilder
-
getModelsOrDefault
public 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-number-or-id}/locations/{location-id}/models/{model-id}` - General (built-in) models: `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, 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 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getModelsOrDefault
in interfaceBatchTranslateTextRequestOrBuilder
-
getModelsOrThrow
public 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-number-or-id}/locations/{location-id}/models/{model-id}` - General (built-in) models: `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, 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 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getModelsOrThrow
in interfaceBatchTranslateTextRequestOrBuilder
-
clearModels
public BatchTranslateTextRequest.Builder clearModels()
-
removeModels
public BatchTranslateTextRequest.Builder removeModels(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-number-or-id}/locations/{location-id}/models/{model-id}` - General (built-in) models: `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, 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 [(.google.api.field_behavior) = OPTIONAL];
-
getMutableModels
@Deprecated public Map<String,String> getMutableModels()
Deprecated.Use alternate mutation accessors instead.
-
putModels
public BatchTranslateTextRequest.Builder putModels(String key, String value)
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-number-or-id}/locations/{location-id}/models/{model-id}` - General (built-in) models: `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, 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 [(.google.api.field_behavior) = OPTIONAL];
-
putAllModels
public BatchTranslateTextRequest.Builder putAllModels(Map<String,String> values)
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-number-or-id}/locations/{location-id}/models/{model-id}` - General (built-in) models: `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, 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 [(.google.api.field_behavior) = OPTIONAL];
-
getInputConfigsList
public List<InputConfig> getInputConfigsList()
Required. Input configurations. The total number of files matched should be <= 100. The total content size should be <= 100M Unicode codepoints. The files must use UTF-8 encoding.
repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getInputConfigsList
in interfaceBatchTranslateTextRequestOrBuilder
-
getInputConfigsCount
public int getInputConfigsCount()
Required. Input configurations. The total number of files matched should be <= 100. The total content size should be <= 100M Unicode codepoints. The files must use UTF-8 encoding.
repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getInputConfigsCount
in interfaceBatchTranslateTextRequestOrBuilder
-
getInputConfigs
public InputConfig getInputConfigs(int index)
Required. Input configurations. The total number of files matched should be <= 100. The total content size should be <= 100M Unicode codepoints. The files must use UTF-8 encoding.
repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getInputConfigs
in interfaceBatchTranslateTextRequestOrBuilder
-
setInputConfigs
public BatchTranslateTextRequest.Builder setInputConfigs(int index, InputConfig value)
Required. Input configurations. The total number of files matched should be <= 100. The total content size should be <= 100M Unicode codepoints. The files must use UTF-8 encoding.
repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED];
-
setInputConfigs
public BatchTranslateTextRequest.Builder setInputConfigs(int index, InputConfig.Builder builderForValue)
Required. Input configurations. The total number of files matched should be <= 100. The total content size should be <= 100M Unicode codepoints. The files must use UTF-8 encoding.
repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED];
-
addInputConfigs
public BatchTranslateTextRequest.Builder addInputConfigs(InputConfig value)
Required. Input configurations. The total number of files matched should be <= 100. The total content size should be <= 100M Unicode codepoints. The files must use UTF-8 encoding.
repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED];
-
addInputConfigs
public BatchTranslateTextRequest.Builder addInputConfigs(int index, InputConfig value)
Required. Input configurations. The total number of files matched should be <= 100. The total content size should be <= 100M Unicode codepoints. The files must use UTF-8 encoding.
repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED];
-
addInputConfigs
public BatchTranslateTextRequest.Builder addInputConfigs(InputConfig.Builder builderForValue)
Required. Input configurations. The total number of files matched should be <= 100. The total content size should be <= 100M Unicode codepoints. The files must use UTF-8 encoding.
repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED];
-
addInputConfigs
public BatchTranslateTextRequest.Builder addInputConfigs(int index, InputConfig.Builder builderForValue)
Required. Input configurations. The total number of files matched should be <= 100. The total content size should be <= 100M Unicode codepoints. The files must use UTF-8 encoding.
repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED];
-
addAllInputConfigs
public BatchTranslateTextRequest.Builder addAllInputConfigs(Iterable<? extends InputConfig> values)
Required. Input configurations. The total number of files matched should be <= 100. The total content size should be <= 100M Unicode codepoints. The files must use UTF-8 encoding.
repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED];
-
clearInputConfigs
public BatchTranslateTextRequest.Builder clearInputConfigs()
Required. Input configurations. The total number of files matched should be <= 100. The total content size should be <= 100M Unicode codepoints. The files must use UTF-8 encoding.
repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED];
-
removeInputConfigs
public BatchTranslateTextRequest.Builder removeInputConfigs(int index)
Required. Input configurations. The total number of files matched should be <= 100. The total content size should be <= 100M Unicode codepoints. The files must use UTF-8 encoding.
repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED];
-
getInputConfigsBuilder
public InputConfig.Builder getInputConfigsBuilder(int index)
Required. Input configurations. The total number of files matched should be <= 100. The total content size should be <= 100M Unicode codepoints. The files must use UTF-8 encoding.
repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED];
-
getInputConfigsOrBuilder
public InputConfigOrBuilder getInputConfigsOrBuilder(int index)
Required. Input configurations. The total number of files matched should be <= 100. The total content size should be <= 100M Unicode codepoints. The files must use UTF-8 encoding.
repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getInputConfigsOrBuilder
in interfaceBatchTranslateTextRequestOrBuilder
-
getInputConfigsOrBuilderList
public List<? extends InputConfigOrBuilder> getInputConfigsOrBuilderList()
Required. Input configurations. The total number of files matched should be <= 100. The total content size should be <= 100M Unicode codepoints. The files must use UTF-8 encoding.
repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getInputConfigsOrBuilderList
in interfaceBatchTranslateTextRequestOrBuilder
-
addInputConfigsBuilder
public InputConfig.Builder addInputConfigsBuilder()
Required. Input configurations. The total number of files matched should be <= 100. The total content size should be <= 100M Unicode codepoints. The files must use UTF-8 encoding.
repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED];
-
addInputConfigsBuilder
public InputConfig.Builder addInputConfigsBuilder(int index)
Required. Input configurations. The total number of files matched should be <= 100. The total content size should be <= 100M Unicode codepoints. The files must use UTF-8 encoding.
repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED];
-
getInputConfigsBuilderList
public List<InputConfig.Builder> getInputConfigsBuilderList()
Required. Input configurations. The total number of files matched should be <= 100. The total content size should be <= 100M Unicode codepoints. The files must use UTF-8 encoding.
repeated .google.cloud.translation.v3.InputConfig input_configs = 5 [(.google.api.field_behavior) = REQUIRED];
-
hasOutputConfig
public 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.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
hasOutputConfig
in interfaceBatchTranslateTextRequestOrBuilder
- Returns:
- Whether the outputConfig field is set.
-
getOutputConfig
public 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.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getOutputConfig
in interfaceBatchTranslateTextRequestOrBuilder
- Returns:
- The outputConfig.
-
setOutputConfig
public BatchTranslateTextRequest.Builder setOutputConfig(OutputConfig value)
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.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED];
-
setOutputConfig
public BatchTranslateTextRequest.Builder setOutputConfig(OutputConfig.Builder builderForValue)
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.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED];
-
mergeOutputConfig
public BatchTranslateTextRequest.Builder mergeOutputConfig(OutputConfig value)
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.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED];
-
clearOutputConfig
public BatchTranslateTextRequest.Builder clearOutputConfig()
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.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED];
-
getOutputConfigBuilder
public OutputConfig.Builder getOutputConfigBuilder()
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.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED];
-
getOutputConfigOrBuilder
public 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.v3.OutputConfig output_config = 6 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getOutputConfigOrBuilder
in interfaceBatchTranslateTextRequestOrBuilder
-
getGlossariesCount
public int getGlossariesCount()
Description copied from interface:BatchTranslateTextRequestOrBuilder
Optional. Glossaries to be applied for translation. It's keyed by target language code.
map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getGlossariesCount
in interfaceBatchTranslateTextRequestOrBuilder
-
containsGlossaries
public boolean containsGlossaries(String key)
Optional. Glossaries to be applied for translation. It's keyed by target language code.
map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
containsGlossaries
in interfaceBatchTranslateTextRequestOrBuilder
-
getGlossaries
@Deprecated public Map<String,TranslateTextGlossaryConfig> getGlossaries()
Deprecated.UsegetGlossariesMap()
instead.- Specified by:
getGlossaries
in interfaceBatchTranslateTextRequestOrBuilder
-
getGlossariesMap
public Map<String,TranslateTextGlossaryConfig> getGlossariesMap()
Optional. Glossaries to be applied for translation. It's keyed by target language code.
map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getGlossariesMap
in interfaceBatchTranslateTextRequestOrBuilder
-
getGlossariesOrDefault
public 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.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getGlossariesOrDefault
in interfaceBatchTranslateTextRequestOrBuilder
-
getGlossariesOrThrow
public TranslateTextGlossaryConfig getGlossariesOrThrow(String key)
Optional. Glossaries to be applied for translation. It's keyed by target language code.
map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getGlossariesOrThrow
in interfaceBatchTranslateTextRequestOrBuilder
-
clearGlossaries
public BatchTranslateTextRequest.Builder clearGlossaries()
-
removeGlossaries
public BatchTranslateTextRequest.Builder removeGlossaries(String key)
Optional. Glossaries to be applied for translation. It's keyed by target language code.
map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL];
-
getMutableGlossaries
@Deprecated public Map<String,TranslateTextGlossaryConfig> getMutableGlossaries()
Deprecated.Use alternate mutation accessors instead.
-
putGlossaries
public BatchTranslateTextRequest.Builder putGlossaries(String key, TranslateTextGlossaryConfig value)
Optional. Glossaries to be applied for translation. It's keyed by target language code.
map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL];
-
putAllGlossaries
public BatchTranslateTextRequest.Builder putAllGlossaries(Map<String,TranslateTextGlossaryConfig> values)
Optional. Glossaries to be applied for translation. It's keyed by target language code.
map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL];
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:BatchTranslateTextRequestOrBuilder
Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. See https://cloud.google.com/translate/docs/advanced/labels for more information.
map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getLabelsCount
in interfaceBatchTranslateTextRequestOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. See https://cloud.google.com/translate/docs/advanced/labels for more information.
map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
containsLabels
in interfaceBatchTranslateTextRequestOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in interfaceBatchTranslateTextRequestOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. See https://cloud.google.com/translate/docs/advanced/labels for more information.
map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getLabelsMap
in interfaceBatchTranslateTextRequestOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. See https://cloud.google.com/translate/docs/advanced/labels for more information.
map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getLabelsOrDefault
in interfaceBatchTranslateTextRequestOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. See https://cloud.google.com/translate/docs/advanced/labels for more information.
map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getLabelsOrThrow
in interfaceBatchTranslateTextRequestOrBuilder
-
clearLabels
public BatchTranslateTextRequest.Builder clearLabels()
-
removeLabels
public BatchTranslateTextRequest.Builder removeLabels(String key)
Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. See https://cloud.google.com/translate/docs/advanced/labels for more information.
map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
-
getMutableLabels
@Deprecated public Map<String,String> getMutableLabels()
Deprecated.Use alternate mutation accessors instead.
-
putLabels
public BatchTranslateTextRequest.Builder putLabels(String key, String value)
Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. See https://cloud.google.com/translate/docs/advanced/labels for more information.
map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
-
putAllLabels
public BatchTranslateTextRequest.Builder putAllLabels(Map<String,String> values)
Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. See https://cloud.google.com/translate/docs/advanced/labels for more information.
map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
-
setUnknownFields
public final BatchTranslateTextRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchTranslateTextRequest.Builder>
-
mergeUnknownFields
public final BatchTranslateTextRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchTranslateTextRequest.Builder>
-
-