Class BatchTranslateTextRequest.Builder (2.30.0)

public static final class BatchTranslateTextRequest.Builder extends GeneratedMessageV3.Builder<BatchTranslateTextRequest.Builder> implements BatchTranslateTextRequestOrBuilder

The batch translation request.

Protobuf type google.cloud.translation.v3.BatchTranslateTextRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllInputConfigs(Iterable<? extends InputConfig> values)

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

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.translate.v3.InputConfig>
Returns
TypeDescription
BatchTranslateTextRequest.Builder

addAllTargetLanguageCodes(Iterable<String> values)

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

Parameter
NameDescription
valuesIterable<String>

The targetLanguageCodes to add.

Returns
TypeDescription
BatchTranslateTextRequest.Builder

This builder for chaining.

addInputConfigs(InputConfig value)

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

Parameter
NameDescription
valueInputConfig
Returns
TypeDescription
BatchTranslateTextRequest.Builder

addInputConfigs(InputConfig.Builder builderForValue)

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

Parameter
NameDescription
builderForValueInputConfig.Builder
Returns
TypeDescription
BatchTranslateTextRequest.Builder

addInputConfigs(int index, InputConfig value)

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

Parameters
NameDescription
indexint
valueInputConfig
Returns
TypeDescription
BatchTranslateTextRequest.Builder

addInputConfigs(int index, InputConfig.Builder builderForValue)

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

Parameters
NameDescription
indexint
builderForValueInputConfig.Builder
Returns
TypeDescription
BatchTranslateTextRequest.Builder

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

Returns
TypeDescription
InputConfig.Builder

addInputConfigsBuilder(int index)

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

Parameter
NameDescription
indexint
Returns
TypeDescription
InputConfig.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BatchTranslateTextRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BatchTranslateTextRequest.Builder
Overrides