Class BatchTranslateDocumentRequest.Builder (2.9.0)

Stay organized with collections Save and categorize content based on your preferences.
public static final class BatchTranslateDocumentRequest.Builder extends GeneratedMessageV3.Builder<BatchTranslateDocumentRequest.Builder> implements BatchTranslateDocumentRequestOrBuilder

The BatchTranslateDocument request.

Protobuf type google.cloud.translation.v3beta1.BatchTranslateDocumentRequest

Static Methods

getDescriptor()

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

Methods

addAllInputConfigs(Iterable<? extends BatchDocumentInputConfig> values)

public BatchTranslateDocumentRequest.Builder addAllInputConfigs(Iterable<? extends BatchDocumentInputConfig> values)

Required. Input configurations. The total number of files matched should be <= 100. The total content size to translate should be <= 100M Unicode codepoints. The files must use UTF-8 encoding.

repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.translate.v3beta1.BatchDocumentInputConfig>
Returns
TypeDescription
BatchTranslateDocumentRequest.Builder

addAllTargetLanguageCodes(Iterable<String> values)

public BatchTranslateDocumentRequest.Builder addAllTargetLanguageCodes(Iterable<String> values)

Required. The BCP-47 language code to use for translation of the input document. 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
BatchTranslateDocumentRequest.Builder

This builder for chaining.

addInputConfigs(BatchDocumentInputConfig value)

public BatchTranslateDocumentRequest.Builder addInputConfigs(BatchDocumentInputConfig value)

Required. Input configurations. The total number of files matched should be <= 100. The total content size to translate should be <= 100M Unicode codepoints. The files must use UTF-8 encoding.

repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueBatchDocumentInputConfig
Returns
TypeDescription
BatchTranslateDocumentRequest.Builder

addInputConfigs(BatchDocumentInputConfig.Builder builderForValue)

public BatchTranslateDocumentRequest.Builder addInputConfigs(BatchDocumentInputConfig.Builder builderForValue)

Required. Input configurations. The total number of files matched should be <= 100. The total content size to translate should be <= 100M Unicode codepoints. The files must use UTF-8 encoding.

repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueBatchDocumentInputConfig.Builder
Returns
TypeDescription
BatchTranslateDocumentRequest.Builder

addInputConfigs(int index, BatchDocumentInputConfig value)

public BatchTranslateDocumentRequest.Builder addInputConfigs(int index, BatchDocumentInputConfig value)

Required. Input configurations. The total number of files matched should be <= 100. The total content size to translate should be <= 100M Unicode codepoints. The files must use UTF-8 encoding.

repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
valueBatchDocumentInputConfig
Returns
TypeDescription
BatchTranslateDocumentRequest.Builder

addInputConfigs(int index, BatchDocumentInputConfig.Builder builderForValue)

public BatchTranslateDocumentRequest.Builder addInputConfigs(int index, BatchDocumentInputConfig.Builder builderForValue)

Required. Input configurations. The total number of files matched should be <= 100. The total content size to translate should be <= 100M Unicode codepoints. The files must use UTF-8 encoding.

repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
builderForValueBatchDocumentInputConfig.Builder
Returns
TypeDescription
BatchTranslateDocumentRequest.Builder

addInputConfigsBuilder()

public BatchDocumentInputConfig.Builder addInputConfigsBuilder()

Required. Input configurations. The total number of files matched should be <= 100. The total content size to translate should be <= 100M Unicode codepoints. The files must use UTF-8 encoding.

repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
BatchDocumentInputConfig.Builder

addInputConfigsBuilder(int index)

public BatchDocumentInputConfig.Builder addInputConfigsBuilder(int index)

Required. Input configurations. The total number of files matched should be <= 100. The total content size to translate should be <= 100M Unicode codepoints. The files must use UTF-8 encoding.

repeated .google.cloud.translation.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
BatchDocumentInputConfig.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addTargetLanguageCodes(String value)

public BatchTranslateDocumentRequest.Builder addTargetLanguageCodes(String value)

Required. The BCP-47 language code to use for translation of the input document. Specify up to 10 language codes here.

repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The targetLanguageCodes to add.

Returns
TypeDescription
BatchTranslateDocumentRequest.Builder

This builder for chaining.