- 2.52.0 (latest)
- 2.51.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.5
- 2.2.0
- 2.1.13
public static final class InputConfig.Builder extends GeneratedMessageV3.Builder<InputConfig.Builder> implements InputConfigOrBuilder
Input configuration for BatchTranslateText request.
Protobuf type google.cloud.translation.v3beta1.InputConfig
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > InputConfig.BuilderImplements
InputConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public InputConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
InputConfig.Builder |
build()
public InputConfig build()
Returns | |
---|---|
Type | Description |
InputConfig |
buildPartial()
public InputConfig buildPartial()
Returns | |
---|---|
Type | Description |
InputConfig |
clear()
public InputConfig.Builder clear()
Returns | |
---|---|
Type | Description |
InputConfig.Builder |
clearField(Descriptors.FieldDescriptor field)
public InputConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
InputConfig.Builder |
clearGcsSource()
public InputConfig.Builder clearGcsSource()
Required. Google Cloud Storage location for the source input.
This can be a single file (for example,
gs://translation-test/input.tsv
) or a wildcard (for example,
gs://translation-test/*
). If a file extension is .tsv
, it can
contain either one or two columns. The first column (optional) is the id
of the text request. If the first column is missing, we use the row
number (0-based) from the input file as the ID in the output file. The
second column is the actual text to be
translated. We recommend each row be <= 10K Unicode codepoints,
otherwise an error might be returned.
Note that the input tsv must be RFC 4180 compliant.
You could use https://github.com/Clever/csvlint to check potential formatting errors in your tsv file. csvlint --delimiter='\t' your_input_file.tsv
The other supported file extensions are .txt
or .html
, which is
treated as a single large chunk of text.
.google.cloud.translation.v3beta1.GcsSource gcs_source = 2;
Returns | |
---|---|
Type | Description |
InputConfig.Builder |
clearMimeType()
public InputConfig.Builder clearMimeType()
Optional. Can be "text/plain" or "text/html".
For .tsv
, "text/html" is used if mime_type is missing.
For .html
, this field must be "text/html" or empty.
For .txt
, this field must be "text/plain" or empty.
string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
InputConfig.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public InputConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
InputConfig.Builder |
clearSource()
public InputConfig.Builder clearSource()
Returns | |
---|---|
Type | Description |
InputConfig.Builder |
clone()
public InputConfig.Builder clone()
Returns | |
---|---|
Type | Description |
InputConfig.Builder |
getDefaultInstanceForType()
public InputConfig getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
InputConfig |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getGcsSource()
public GcsSource getGcsSource()
Required. Google Cloud Storage location for the source input.
This can be a single file (for example,
gs://translation-test/input.tsv
) or a wildcard (for example,
gs://translation-test/*
). If a file extension is .tsv
, it can
contain either one or two columns. The first column (optional) is the id
of the text request. If the first column is missing, we use the row
number (0-based) from the input file as the ID in the output file. The
second column is the actual text to be
translated. We recommend each row be <= 10K Unicode codepoints,
otherwise an error might be returned.
Note that the input tsv must be RFC 4180 compliant.
You could use https://github.com/Clever/csvlint to check potential formatting errors in your tsv file. csvlint --delimiter='\t' your_input_file.tsv
The other supported file extensions are .txt
or .html
, which is
treated as a single large chunk of text.
.google.cloud.translation.v3beta1.GcsSource gcs_source = 2;
Returns | |
---|---|
Type | Description |
GcsSource | The gcsSource. |
getGcsSourceBuilder()
public GcsSource.Builder getGcsSourceBuilder()
Required. Google Cloud Storage location for the source input.
This can be a single file (for example,
gs://translation-test/input.tsv
) or a wildcard (for example,
gs://translation-test/*
). If a file extension is .tsv
, it can
contain either one or two columns. The first column (optional) is the id
of the text request. If the first column is missing, we use the row
number (0-based) from the input file as the ID in the output file. The
second column is the actual text to be
translated. We recommend each row be <= 10K Unicode codepoints,
otherwise an error might be returned.
Note that the input tsv must be RFC 4180 compliant.
You could use https://github.com/Clever/csvlint to check potential formatting errors in your tsv file. csvlint --delimiter='\t' your_input_file.tsv
The other supported file extensions are .txt
or .html
, which is
treated as a single large chunk of text.
.google.cloud.translation.v3beta1.GcsSource gcs_source = 2;
Returns | |
---|---|
Type | Description |
GcsSource.Builder |
getGcsSourceOrBuilder()
public GcsSourceOrBuilder getGcsSourceOrBuilder()
Required. Google Cloud Storage location for the source input.
This can be a single file (for example,
gs://translation-test/input.tsv
) or a wildcard (for example,
gs://translation-test/*
). If a file extension is .tsv
, it can
contain either one or two columns. The first column (optional) is the id
of the text request. If the first column is missing, we use the row
number (0-based) from the input file as the ID in the output file. The
second column is the actual text to be
translated. We recommend each row be <= 10K Unicode codepoints,
otherwise an error might be returned.
Note that the input tsv must be RFC 4180 compliant.
You could use https://github.com/Clever/csvlint to check potential formatting errors in your tsv file. csvlint --delimiter='\t' your_input_file.tsv
The other supported file extensions are .txt
or .html
, which is
treated as a single large chunk of text.
.google.cloud.translation.v3beta1.GcsSource gcs_source = 2;
Returns | |
---|---|
Type | Description |
GcsSourceOrBuilder |
getMimeType()
public String getMimeType()
Optional. Can be "text/plain" or "text/html".
For .tsv
, "text/html" is used if mime_type is missing.
For .html
, this field must be "text/html" or empty.
For .txt
, this field must be "text/plain" or empty.
string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
String | The mimeType. |
getMimeTypeBytes()
public ByteString getMimeTypeBytes()
Optional. Can be "text/plain" or "text/html".
For .tsv
, "text/html" is used if mime_type is missing.
For .html
, this field must be "text/html" or empty.
For .txt
, this field must be "text/plain" or empty.
string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ByteString | The bytes for mimeType. |
getSourceCase()
public InputConfig.SourceCase getSourceCase()
Returns | |
---|---|
Type | Description |
InputConfig.SourceCase |
hasGcsSource()
public boolean hasGcsSource()
Required. Google Cloud Storage location for the source input.
This can be a single file (for example,
gs://translation-test/input.tsv
) or a wildcard (for example,
gs://translation-test/*
). If a file extension is .tsv
, it can
contain either one or two columns. The first column (optional) is the id
of the text request. If the first column is missing, we use the row
number (0-based) from the input file as the ID in the output file. The
second column is the actual text to be
translated. We recommend each row be <= 10K Unicode codepoints,
otherwise an error might be returned.
Note that the input tsv must be RFC 4180 compliant.
You could use https://github.com/Clever/csvlint to check potential formatting errors in your tsv file. csvlint --delimiter='\t' your_input_file.tsv
The other supported file extensions are .txt
or .html
, which is
treated as a single large chunk of text.
.google.cloud.translation.v3beta1.GcsSource gcs_source = 2;
Returns | |
---|---|
Type | Description |
boolean | Whether the gcsSource field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(InputConfig other)
public InputConfig.Builder mergeFrom(InputConfig other)
Parameter | |
---|---|
Name | Description |
other | InputConfig |
Returns | |
---|---|
Type | Description |
InputConfig.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public InputConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
InputConfig.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public InputConfig.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
InputConfig.Builder |
mergeGcsSource(GcsSource value)
public InputConfig.Builder mergeGcsSource(GcsSource value)
Required. Google Cloud Storage location for the source input.
This can be a single file (for example,
gs://translation-test/input.tsv
) or a wildcard (for example,
gs://translation-test/*
). If a file extension is .tsv
, it can
contain either one or two columns. The first column (optional) is the id
of the text request. If the first column is missing, we use the row
number (0-based) from the input file as the ID in the output file. The
second column is the actual text to be
translated. We recommend each row be <= 10K Unicode codepoints,
otherwise an error might be returned.
Note that the input tsv must be RFC 4180 compliant.
You could use https://github.com/Clever/csvlint to check potential formatting errors in your tsv file. csvlint --delimiter='\t' your_input_file.tsv
The other supported file extensions are .txt
or .html
, which is
treated as a single large chunk of text.
.google.cloud.translation.v3beta1.GcsSource gcs_source = 2;
Parameter | |
---|---|
Name | Description |
value | GcsSource |
Returns | |
---|---|
Type | Description |
InputConfig.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final InputConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
InputConfig.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public InputConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
InputConfig.Builder |
setGcsSource(GcsSource value)
public InputConfig.Builder setGcsSource(GcsSource value)
Required. Google Cloud Storage location for the source input.
This can be a single file (for example,
gs://translation-test/input.tsv
) or a wildcard (for example,
gs://translation-test/*
). If a file extension is .tsv
, it can
contain either one or two columns. The first column (optional) is the id
of the text request. If the first column is missing, we use the row
number (0-based) from the input file as the ID in the output file. The
second column is the actual text to be
translated. We recommend each row be <= 10K Unicode codepoints,
otherwise an error might be returned.
Note that the input tsv must be RFC 4180 compliant.
You could use https://github.com/Clever/csvlint to check potential formatting errors in your tsv file. csvlint --delimiter='\t' your_input_file.tsv
The other supported file extensions are .txt
or .html
, which is
treated as a single large chunk of text.
.google.cloud.translation.v3beta1.GcsSource gcs_source = 2;
Parameter | |
---|---|
Name | Description |
value | GcsSource |
Returns | |
---|---|
Type | Description |
InputConfig.Builder |
setGcsSource(GcsSource.Builder builderForValue)
public InputConfig.Builder setGcsSource(GcsSource.Builder builderForValue)
Required. Google Cloud Storage location for the source input.
This can be a single file (for example,
gs://translation-test/input.tsv
) or a wildcard (for example,
gs://translation-test/*
). If a file extension is .tsv
, it can
contain either one or two columns. The first column (optional) is the id
of the text request. If the first column is missing, we use the row
number (0-based) from the input file as the ID in the output file. The
second column is the actual text to be
translated. We recommend each row be <= 10K Unicode codepoints,
otherwise an error might be returned.
Note that the input tsv must be RFC 4180 compliant.
You could use https://github.com/Clever/csvlint to check potential formatting errors in your tsv file. csvlint --delimiter='\t' your_input_file.tsv
The other supported file extensions are .txt
or .html
, which is
treated as a single large chunk of text.
.google.cloud.translation.v3beta1.GcsSource gcs_source = 2;
Parameter | |
---|---|
Name | Description |
builderForValue | GcsSource.Builder |
Returns | |
---|---|
Type | Description |
InputConfig.Builder |
setMimeType(String value)
public InputConfig.Builder setMimeType(String value)
Optional. Can be "text/plain" or "text/html".
For .tsv
, "text/html" is used if mime_type is missing.
For .html
, this field must be "text/html" or empty.
For .txt
, this field must be "text/plain" or empty.
string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value | String The mimeType to set. |
Returns | |
---|---|
Type | Description |
InputConfig.Builder | This builder for chaining. |
setMimeTypeBytes(ByteString value)
public InputConfig.Builder setMimeTypeBytes(ByteString value)
Optional. Can be "text/plain" or "text/html".
For .tsv
, "text/html" is used if mime_type is missing.
For .html
, this field must be "text/html" or empty.
For .txt
, this field must be "text/plain" or empty.
string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for mimeType to set. |
Returns | |
---|---|
Type | Description |
InputConfig.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public InputConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
InputConfig.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final InputConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
InputConfig.Builder |