public static final class BatchTranslateDocumentRequest.Builder extends GeneratedMessageV3.Builder<BatchTranslateDocumentRequest.Builder> implements BatchTranslateDocumentRequestOrBuilder
The BatchTranslateDocument request.
Protobuf type google.cloud.translation.v3.BatchTranslateDocumentRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > BatchTranslateDocumentRequest.BuilderImplements
BatchTranslateDocumentRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
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.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
values | Iterable<? extends com.google.cloud.translate.v3.BatchDocumentInputConfig> |
Type | Description |
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];
Name | Description |
values | Iterable<String> The targetLanguageCodes to add. |
Type | Description |
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.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | BatchDocumentInputConfig |
Type | Description |
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.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
builderForValue | BatchDocumentInputConfig.Builder |
Type | Description |
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.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
index | int |
value | BatchDocumentInputConfig |
Type | Description |
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.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
index | int |
builderForValue | BatchDocumentInputConfig.Builder |
Type | Description |
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.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
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.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
index | int |
Type | Description |
BatchDocumentInputConfig.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BatchTranslateDocumentRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
BatchTranslateDocumentRequest.Builder |
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];
Name | Description |
value | String The targetLanguageCodes to add. |
Type | Description |
BatchTranslateDocumentRequest.Builder | This builder for chaining. |
addTargetLanguageCodesBytes(ByteString value)
public BatchTranslateD