Class BatchProcessRequest.BatchInputConfig.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<BatchProcessRequest.BatchInputConfig.Builder>
-
- com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig.Builder
-
- All Implemented Interfaces:
BatchProcessRequest.BatchInputConfigOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- BatchProcessRequest.BatchInputConfig
public static final class BatchProcessRequest.BatchInputConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BatchProcessRequest.BatchInputConfig.Builder> implements BatchProcessRequest.BatchInputConfigOrBuilder
The message for input config in batch process.
Protobuf typegoogle.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BatchProcessRequest.BatchInputConfig.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
BatchProcessRequest.BatchInputConfig
build()
BatchProcessRequest.BatchInputConfig
buildPartial()
BatchProcessRequest.BatchInputConfig.Builder
clear()
BatchProcessRequest.BatchInputConfig.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
BatchProcessRequest.BatchInputConfig.Builder
clearGcsSource()
The Cloud Storage location as the source of the document.BatchProcessRequest.BatchInputConfig.Builder
clearMimeType()
An IANA published [media type (MIME type)](https://www.iana.org/assignments/media-types/media-types.xhtml) of the input.BatchProcessRequest.BatchInputConfig.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
BatchProcessRequest.BatchInputConfig.Builder
clone()
BatchProcessRequest.BatchInputConfig
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getGcsSource()
The Cloud Storage location as the source of the document.com.google.protobuf.ByteString
getGcsSourceBytes()
The Cloud Storage location as the source of the document.String
getMimeType()
An IANA published [media type (MIME type)](https://www.iana.org/assignments/media-types/media-types.xhtml) of the input.com.google.protobuf.ByteString
getMimeTypeBytes()
An IANA published [media type (MIME type)](https://www.iana.org/assignments/media-types/media-types.xhtml) of the input.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
BatchProcessRequest.BatchInputConfig.Builder
mergeFrom(BatchProcessRequest.BatchInputConfig other)
BatchProcessRequest.BatchInputConfig.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
BatchProcessRequest.BatchInputConfig.Builder
mergeFrom(com.google.protobuf.Message other)
BatchProcessRequest.BatchInputConfig.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
BatchProcessRequest.BatchInputConfig.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
BatchProcessRequest.BatchInputConfig.Builder
setGcsSource(String value)
The Cloud Storage location as the source of the document.BatchProcessRequest.BatchInputConfig.Builder
setGcsSourceBytes(com.google.protobuf.ByteString value)
The Cloud Storage location as the source of the document.BatchProcessRequest.BatchInputConfig.Builder
setMimeType(String value)
An IANA published [media type (MIME type)](https://www.iana.org/assignments/media-types/media-types.xhtml) of the input.BatchProcessRequest.BatchInputConfig.Builder
setMimeTypeBytes(com.google.protobuf.ByteString value)
An IANA published [media type (MIME type)](https://www.iana.org/assignments/media-types/media-types.xhtml) of the input.BatchProcessRequest.BatchInputConfig.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
BatchProcessRequest.BatchInputConfig.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchProcessRequest.BatchInputConfig.Builder>
-
clear
public BatchProcessRequest.BatchInputConfig.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchProcessRequest.BatchInputConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchProcessRequest.BatchInputConfig.Builder>
-
getDefaultInstanceForType
public BatchProcessRequest.BatchInputConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public BatchProcessRequest.BatchInputConfig build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public BatchProcessRequest.BatchInputConfig buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public BatchProcessRequest.BatchInputConfig.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchProcessRequest.BatchInputConfig.Builder>
-
setField
public BatchProcessRequest.BatchInputConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchProcessRequest.BatchInputConfig.Builder>
-
clearField
public BatchProcessRequest.BatchInputConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchProcessRequest.BatchInputConfig.Builder>
-
clearOneof
public BatchProcessRequest.BatchInputConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchProcessRequest.BatchInputConfig.Builder>
-
setRepeatedField
public BatchProcessRequest.BatchInputConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchProcessRequest.BatchInputConfig.Builder>
-
addRepeatedField
public BatchProcessRequest.BatchInputConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchProcessRequest.BatchInputConfig.Builder>
-
mergeFrom
public BatchProcessRequest.BatchInputConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<BatchProcessRequest.BatchInputConfig.Builder>
-
mergeFrom
public BatchProcessRequest.BatchInputConfig.Builder mergeFrom(BatchProcessRequest.BatchInputConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchProcessRequest.BatchInputConfig.Builder>
-
mergeFrom
public BatchProcessRequest.BatchInputConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<BatchProcessRequest.BatchInputConfig.Builder>
- Throws:
IOException
-
getGcsSource
public String getGcsSource()
The Cloud Storage location as the source of the document.
string gcs_source = 1;
- Specified by:
getGcsSource
in interfaceBatchProcessRequest.BatchInputConfigOrBuilder
- Returns:
- The gcsSource.
-
getGcsSourceBytes
public com.google.protobuf.ByteString getGcsSourceBytes()
The Cloud Storage location as the source of the document.
string gcs_source = 1;
- Specified by:
getGcsSourceBytes
in interfaceBatchProcessRequest.BatchInputConfigOrBuilder
- Returns:
- The bytes for gcsSource.
-
setGcsSource
public BatchProcessRequest.BatchInputConfig.Builder setGcsSource(String value)
The Cloud Storage location as the source of the document.
string gcs_source = 1;
- Parameters:
value
- The gcsSource to set.- Returns:
- This builder for chaining.
-
clearGcsSource
public BatchProcessRequest.BatchInputConfig.Builder clearGcsSource()
The Cloud Storage location as the source of the document.
string gcs_source = 1;
- Returns:
- This builder for chaining.
-
setGcsSourceBytes
public BatchProcessRequest.BatchInputConfig.Builder setGcsSourceBytes(com.google.protobuf.ByteString value)
The Cloud Storage location as the source of the document.
string gcs_source = 1;
- Parameters:
value
- The bytes for gcsSource to set.- Returns:
- This builder for chaining.
-
getMimeType
public String getMimeType()
An IANA published [media type (MIME type)](https://www.iana.org/assignments/media-types/media-types.xhtml) of the input. If the input is a raw document, refer to [supported file types](https://cloud.google.com/document-ai/docs/file-types) for the list of media types. If the input is a [Document][google.cloud.documentai.v1beta3.Document], the type should be `application/json`.
string mime_type = 2;
- Specified by:
getMimeType
in interfaceBatchProcessRequest.BatchInputConfigOrBuilder
- Returns:
- The mimeType.
-
getMimeTypeBytes
public com.google.protobuf.ByteString getMimeTypeBytes()
An IANA published [media type (MIME type)](https://www.iana.org/assignments/media-types/media-types.xhtml) of the input. If the input is a raw document, refer to [supported file types](https://cloud.google.com/document-ai/docs/file-types) for the list of media types. If the input is a [Document][google.cloud.documentai.v1beta3.Document], the type should be `application/json`.
string mime_type = 2;
- Specified by:
getMimeTypeBytes
in interfaceBatchProcessRequest.BatchInputConfigOrBuilder
- Returns:
- The bytes for mimeType.
-
setMimeType
public BatchProcessRequest.BatchInputConfig.Builder setMimeType(String value)
An IANA published [media type (MIME type)](https://www.iana.org/assignments/media-types/media-types.xhtml) of the input. If the input is a raw document, refer to [supported file types](https://cloud.google.com/document-ai/docs/file-types) for the list of media types. If the input is a [Document][google.cloud.documentai.v1beta3.Document], the type should be `application/json`.
string mime_type = 2;
- Parameters:
value
- The mimeType to set.- Returns:
- This builder for chaining.
-
clearMimeType
public BatchProcessRequest.BatchInputConfig.Builder clearMimeType()
An IANA published [media type (MIME type)](https://www.iana.org/assignments/media-types/media-types.xhtml) of the input. If the input is a raw document, refer to [supported file types](https://cloud.google.com/document-ai/docs/file-types) for the list of media types. If the input is a [Document][google.cloud.documentai.v1beta3.Document], the type should be `application/json`.
string mime_type = 2;
- Returns:
- This builder for chaining.
-
setMimeTypeBytes
public BatchProcessRequest.BatchInputConfig.Builder setMimeTypeBytes(com.google.protobuf.ByteString value)
An IANA published [media type (MIME type)](https://www.iana.org/assignments/media-types/media-types.xhtml) of the input. If the input is a raw document, refer to [supported file types](https://cloud.google.com/document-ai/docs/file-types) for the list of media types. If the input is a [Document][google.cloud.documentai.v1beta3.Document], the type should be `application/json`.
string mime_type = 2;
- Parameters:
value
- The bytes for mimeType to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final BatchProcessRequest.BatchInputConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchProcessRequest.BatchInputConfig.Builder>
-
mergeUnknownFields
public final BatchProcessRequest.BatchInputConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchProcessRequest.BatchInputConfig.Builder>
-
-