public static final class DocumentInputConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DocumentInputConfig.Builder> implements DocumentInputConfigOrBuilder
A document translation request input config.Protobuf type
google.cloud.translation.v3.DocumentInputConfig| Modifier and Type | Method and Description |
|---|---|
DocumentInputConfig.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
DocumentInputConfig |
build() |
DocumentInputConfig |
buildPartial() |
DocumentInputConfig.Builder |
clear() |
DocumentInputConfig.Builder |
clearContent()
Document's content represented as a stream of bytes.
|
DocumentInputConfig.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
DocumentInputConfig.Builder |
clearGcsSource()
Google Cloud Storage location.
|
DocumentInputConfig.Builder |
clearMimeType()
Specifies the input document's mime_type.
|
DocumentInputConfig.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
DocumentInputConfig.Builder |
clearSource() |
DocumentInputConfig.Builder |
clone() |
com.google.protobuf.ByteString |
getContent()
Document's content represented as a stream of bytes.
|
DocumentInputConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
GcsSource |
getGcsSource()
Google Cloud Storage location.
|
GcsSource.Builder |
getGcsSourceBuilder()
Google Cloud Storage location.
|
GcsSourceOrBuilder |
getGcsSourceOrBuilder()
Google Cloud Storage location.
|
String |
getMimeType()
Specifies the input document's mime_type.
|
com.google.protobuf.ByteString |
getMimeTypeBytes()
Specifies the input document's mime_type.
|
DocumentInputConfig.SourceCase |
getSourceCase() |
boolean |
hasContent()
Document's content represented as a stream of bytes.
|
boolean |
hasGcsSource()
Google Cloud Storage location.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
DocumentInputConfig.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
DocumentInputConfig.Builder |
mergeFrom(DocumentInputConfig other) |
DocumentInputConfig.Builder |
mergeFrom(com.google.protobuf.Message other) |
DocumentInputConfig.Builder |
mergeGcsSource(GcsSource value)
Google Cloud Storage location.
|
DocumentInputConfig.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
DocumentInputConfig.Builder |
setContent(com.google.protobuf.ByteString value)
Document's content represented as a stream of bytes.
|
DocumentInputConfig.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
DocumentInputConfig.Builder |
setGcsSource(GcsSource.Builder builderForValue)
Google Cloud Storage location.
|
DocumentInputConfig.Builder |
setGcsSource(GcsSource value)
Google Cloud Storage location.
|
DocumentInputConfig.Builder |
setMimeType(String value)
Specifies the input document's mime_type.
|
DocumentInputConfig.Builder |
setMimeTypeBytes(com.google.protobuf.ByteString value)
Specifies the input document's mime_type.
|
DocumentInputConfig.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
DocumentInputConfig.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentInputConfig.Builder>public DocumentInputConfig.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentInputConfig.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentInputConfig.Builder>public DocumentInputConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic DocumentInputConfig build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic DocumentInputConfig buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic DocumentInputConfig.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentInputConfig.Builder>public DocumentInputConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentInputConfig.Builder>public DocumentInputConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentInputConfig.Builder>public DocumentInputConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentInputConfig.Builder>public DocumentInputConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentInputConfig.Builder>public DocumentInputConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentInputConfig.Builder>public DocumentInputConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<DocumentInputConfig.Builder>public DocumentInputConfig.Builder mergeFrom(DocumentInputConfig other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentInputConfig.Builder>public DocumentInputConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<DocumentInputConfig.Builder>IOExceptionpublic DocumentInputConfig.SourceCase getSourceCase()
getSourceCase in interface DocumentInputConfigOrBuilderpublic DocumentInputConfig.Builder clearSource()
public boolean hasContent()
Document's content represented as a stream of bytes.
bytes content = 1;hasContent in interface DocumentInputConfigOrBuilderpublic com.google.protobuf.ByteString getContent()
Document's content represented as a stream of bytes.
bytes content = 1;getContent in interface DocumentInputConfigOrBuilderpublic DocumentInputConfig.Builder setContent(com.google.protobuf.ByteString value)
Document's content represented as a stream of bytes.
bytes content = 1;value - The content to set.public DocumentInputConfig.Builder clearContent()
Document's content represented as a stream of bytes.
bytes content = 1;public boolean hasGcsSource()
Google Cloud Storage location. This must be a single file. For example: gs://example_bucket/example_file.pdf
.google.cloud.translation.v3.GcsSource gcs_source = 2;hasGcsSource in interface DocumentInputConfigOrBuilderpublic GcsSource getGcsSource()
Google Cloud Storage location. This must be a single file. For example: gs://example_bucket/example_file.pdf
.google.cloud.translation.v3.GcsSource gcs_source = 2;getGcsSource in interface DocumentInputConfigOrBuilderpublic DocumentInputConfig.Builder setGcsSource(GcsSource value)
Google Cloud Storage location. This must be a single file. For example: gs://example_bucket/example_file.pdf
.google.cloud.translation.v3.GcsSource gcs_source = 2;public DocumentInputConfig.Builder setGcsSource(GcsSource.Builder builderForValue)
Google Cloud Storage location. This must be a single file. For example: gs://example_bucket/example_file.pdf
.google.cloud.translation.v3.GcsSource gcs_source = 2;public DocumentInputConfig.Builder mergeGcsSource(GcsSource value)
Google Cloud Storage location. This must be a single file. For example: gs://example_bucket/example_file.pdf
.google.cloud.translation.v3.GcsSource gcs_source = 2;public DocumentInputConfig.Builder clearGcsSource()
Google Cloud Storage location. This must be a single file. For example: gs://example_bucket/example_file.pdf
.google.cloud.translation.v3.GcsSource gcs_source = 2;public GcsSource.Builder getGcsSourceBuilder()
Google Cloud Storage location. This must be a single file. For example: gs://example_bucket/example_file.pdf
.google.cloud.translation.v3.GcsSource gcs_source = 2;public GcsSourceOrBuilder getGcsSourceOrBuilder()
Google Cloud Storage location. This must be a single file. For example: gs://example_bucket/example_file.pdf
.google.cloud.translation.v3.GcsSource gcs_source = 2;getGcsSourceOrBuilder in interface DocumentInputConfigOrBuilderpublic String getMimeType()
Specifies the input document's mime_type. If not specified it will be determined using the file extension for gcs_source provided files. For a file provided through bytes content the mime_type must be provided. Currently supported mime types are: - application/pdf - application/vnd.openxmlformats-officedocument.wordprocessingml.document - application/vnd.openxmlformats-officedocument.presentationml.presentation - application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
string mime_type = 4;getMimeType in interface DocumentInputConfigOrBuilderpublic com.google.protobuf.ByteString getMimeTypeBytes()
Specifies the input document's mime_type. If not specified it will be determined using the file extension for gcs_source provided files. For a file provided through bytes content the mime_type must be provided. Currently supported mime types are: - application/pdf - application/vnd.openxmlformats-officedocument.wordprocessingml.document - application/vnd.openxmlformats-officedocument.presentationml.presentation - application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
string mime_type = 4;getMimeTypeBytes in interface DocumentInputConfigOrBuilderpublic DocumentInputConfig.Builder setMimeType(String value)
Specifies the input document's mime_type. If not specified it will be determined using the file extension for gcs_source provided files. For a file provided through bytes content the mime_type must be provided. Currently supported mime types are: - application/pdf - application/vnd.openxmlformats-officedocument.wordprocessingml.document - application/vnd.openxmlformats-officedocument.presentationml.presentation - application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
string mime_type = 4;value - The mimeType to set.public DocumentInputConfig.Builder clearMimeType()
Specifies the input document's mime_type. If not specified it will be determined using the file extension for gcs_source provided files. For a file provided through bytes content the mime_type must be provided. Currently supported mime types are: - application/pdf - application/vnd.openxmlformats-officedocument.wordprocessingml.document - application/vnd.openxmlformats-officedocument.presentationml.presentation - application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
string mime_type = 4;public DocumentInputConfig.Builder setMimeTypeBytes(com.google.protobuf.ByteString value)
Specifies the input document's mime_type. If not specified it will be determined using the file extension for gcs_source provided files. For a file provided through bytes content the mime_type must be provided. Currently supported mime types are: - application/pdf - application/vnd.openxmlformats-officedocument.wordprocessingml.document - application/vnd.openxmlformats-officedocument.presentationml.presentation - application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
string mime_type = 4;value - The bytes for mimeType to set.public final DocumentInputConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentInputConfig.Builder>public final DocumentInputConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentInputConfig.Builder>Copyright © 2022 Google LLC. All rights reserved.