Class BatchTranslateTextRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<BatchTranslateTextRequest.Builder> implements BatchTranslateTextRequestOrBuilder
 The batch translation request.
 
Protobuf type google.cloud.translation.v3.BatchTranslateTextRequest
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<BatchTranslateTextRequest.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<BatchTranslateTextRequest.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<BatchTranslateTextRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<BatchTranslateTextRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<BatchTranslateTextRequest.Builder>
    • getDefaultInstanceForType

      public BatchTranslateTextRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public BatchTranslateTextRequest build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public BatchTranslateTextRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public BatchTranslateTextRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<BatchTranslateTextRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<BatchTranslateTextRequest.Builder>
    • mergeFrom

      public BatchTranslateTextRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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 interface BatchTranslateTextRequestOrBuilder
      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 interface BatchTranslateTextRequestOrBuilder
      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. Supported language codes are listed in
       [Language
       Support](https://cloud.google.com/translate/docs/languages).
       
      string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSourceLanguageCode in interface BatchTranslateTextRequestOrBuilder
      Returns:
      The sourceLanguageCode.
    • getSourceLanguageCodeBytes

      public com.google.protobuf.ByteString getSourceLanguageCodeBytes()
       Required. Source language code. Supported language codes are listed in
       [Language
       Support](https://cloud.google.com/translate/docs/languages).
       
      string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSourceLanguageCodeBytes in interface BatchTranslateTextRequestOrBuilder
      Returns:
      The bytes for sourceLanguageCode.
    • setSourceLanguageCode

      public BatchTranslateTextRequest.Builder setSourceLanguageCode(String value)
       Required. Source language code. Supported language codes are listed in
       [Language
       Support](https://cloud.google.com/translate/docs/languages).
       
      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. Supported language codes are listed in
       [Language
       Support](https://cloud.google.com/translate/docs/languages).
       
      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. Supported language codes are listed in
       [Language
       Support](https://cloud.google.com/translate/docs/languages).
       
      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. Supported language codes
       are listed in [Language
       Support](https://cloud.google.com/translate/docs/languages).
       
      repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTargetLanguageCodesList in interface BatchTranslateTextRequestOrBuilder
      Returns:
      A list containing the targetLanguageCodes.
    • getTargetLanguageCodesCount

      public int getTargetLanguageCodesCount()
       Required. Specify up to 10 language codes here. Supported language codes
       are listed in [Language
       Support](https://cloud.google.com/translate/docs/languages).
       
      repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTargetLanguageCodesCount in interface BatchTranslateTextRequestOrBuilder
      Returns:
      The count of targetLanguageCodes.
    • getTargetLanguageCodes

      public String getTargetLanguageCodes(int index)
       Required. Specify up to 10 language codes here. Supported language codes
       are listed in [Language
       Support](https://cloud.google.com/translate/docs/languages).
       
      repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTargetLanguageCodes in interface BatchTranslateTextRequestOrBuilder
      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. Supported language codes
       are listed in [Language
       Support](https://cloud.google.com/translate/docs/languages).
       
      repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTargetLanguageCodesBytes in interface BatchTranslateTextRequestOrBuilder
      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. Supported language codes
       are listed in [Language
       Support](https://cloud.google.com/translate/docs/languages).
       
      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. Supported language codes
       are listed in [Language
       Support](https://cloud.google.com/translate/docs/languages).
       
      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. Supported language codes
       are listed in [Language
       Support](https://cloud.google.com/translate/docs/languages).
       
      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. Supported language codes
       are listed in [Language
       Support](https://cloud.google.com/translate/docs/languages).
       
      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. Supported language codes
       are listed in [Language
       Support](https://cloud.google.com/translate/docs/languages).
       
      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 interface BatchTranslateTextRequestOrBuilder
    • 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 interface BatchTranslateTextRequestOrBuilder
    • getModels

      @Deprecated public Map<String,String> getModels()
      Deprecated.
      Use getModelsMap() instead.
      Specified by:
      getModels in interface BatchTranslateTextRequestOrBuilder
    • 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 interface BatchTranslateTextRequestOrBuilder
    • 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 interface BatchTranslateTextRequestOrBuilder
    • 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 interface BatchTranslateTextRequestOrBuilder
    • 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 interface BatchTranslateTextRequestOrBuilder
    • 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 interface BatchTranslateTextRequestOrBuilder
    • 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 interface BatchTranslateTextRequestOrBuilder
    • 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 interface BatchTranslateTextRequestOrBuilder
    • 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 interface BatchTranslateTextRequestOrBuilder
    • 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 interface BatchTranslateTextRequestOrBuilder
      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 interface BatchTranslateTextRequestOrBuilder
      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 interface BatchTranslateTextRequestOrBuilder
    • 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 interface BatchTranslateTextRequestOrBuilder
    • 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 interface BatchTranslateTextRequestOrBuilder
    • getGlossaries

      Deprecated.
      Use getGlossariesMap() instead.
      Specified by:
      getGlossaries in interface BatchTranslateTextRequestOrBuilder
    • 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 interface BatchTranslateTextRequestOrBuilder
    • 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 interface BatchTranslateTextRequestOrBuilder
    • 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 interface BatchTranslateTextRequestOrBuilder
    • 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

       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

       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];
    • putGlossariesBuilderIfAbsent

      public TranslateTextGlossaryConfig.Builder putGlossariesBuilderIfAbsent(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];
    • 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 interface BatchTranslateTextRequestOrBuilder
    • 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 interface BatchTranslateTextRequestOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface BatchTranslateTextRequestOrBuilder
    • 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 interface BatchTranslateTextRequestOrBuilder
    • 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 interface BatchTranslateTextRequestOrBuilder
    • 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 interface BatchTranslateTextRequestOrBuilder
    • 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];