public static final class DocumentInputConfig.Builder extends GeneratedMessageV3.Builder<DocumentInputConfig.Builder> implements DocumentInputConfigOrBuilder
A document translation request input config.Protobuf type
google.cloud.translation.v3beta1.DocumentInputConfig
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<DocumentInputConfig.Builder>
public DocumentInputConfig.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<DocumentInputConfig.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<DocumentInputConfig.Builder>
public DocumentInputConfig getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public DocumentInputConfig build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public DocumentInputConfig buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public DocumentInputConfig.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<DocumentInputConfig.Builder>
public DocumentInputConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<DocumentInputConfig.Builder>
public DocumentInputConfig.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<DocumentInputConfig.Builder>
public DocumentInputConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<DocumentInputConfig.Builder>
public DocumentInputConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<DocumentInputConfig.Builder>
public DocumentInputConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<DocumentInputConfig.Builder>
public DocumentInputConfig.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<DocumentInputConfig.Builder>
public DocumentInputConfig.Builder mergeFrom(DocumentInputConfig other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<DocumentInputConfig.Builder>
public DocumentInputConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<DocumentInputConfig.Builder>
IOException
public DocumentInputConfig.SourceCase getSourceCase()
getSourceCase
in interface DocumentInputConfigOrBuilder
public DocumentInputConfig.Builder clearSource()
public boolean hasContent()
Document's content represented as a stream of bytes.
bytes content = 1;
hasContent
in interface DocumentInputConfigOrBuilder
public ByteString getContent()
Document's content represented as a stream of bytes.
bytes content = 1;
getContent
in interface DocumentInputConfigOrBuilder
public DocumentInputConfig.Builder setContent(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.v3beta1.GcsSource gcs_source = 2;
hasGcsSource
in interface DocumentInputConfigOrBuilder
public GcsSource getGcsSource()
Google Cloud Storage location. This must be a single file. For example: gs://example_bucket/example_file.pdf
.google.cloud.translation.v3beta1.GcsSource gcs_source = 2;
getGcsSource
in interface DocumentInputConfigOrBuilder
public 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.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.GcsSource gcs_source = 2;
getGcsSourceOrBuilder
in interface DocumentInputConfigOrBuilder
public 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 DocumentInputConfigOrBuilder
public 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 DocumentInputConfigOrBuilder
public 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(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(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<DocumentInputConfig.Builder>
public final DocumentInputConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<DocumentInputConfig.Builder>
Copyright © 2022 Google LLC. All rights reserved.