Class BatchProcessRequest.BatchInputConfig (2.6.2)

public static final class BatchProcessRequest.BatchInputConfig extends GeneratedMessageV3 implements BatchProcessRequest.BatchInputConfigOrBuilder

The message for input config in batch process.

Protobuf type google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > BatchProcessRequest.BatchInputConfig

Static Fields

GCS_SOURCE_FIELD_NUMBER

public static final int GCS_SOURCE_FIELD_NUMBER
Field Value
TypeDescription
int

MIME_TYPE_FIELD_NUMBER

public static final int MIME_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static BatchProcessRequest.BatchInputConfig getDefaultInstance()
Returns
TypeDescription
BatchProcessRequest.BatchInputConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static BatchProcessRequest.BatchInputConfig.Builder newBuilder()
Returns
TypeDescription
BatchProcessRequest.BatchInputConfig.Builder

newBuilder(BatchProcessRequest.BatchInputConfig prototype)

public static BatchProcessRequest.BatchInputConfig.Builder newBuilder(BatchProcessRequest.BatchInputConfig prototype)
Parameter
NameDescription
prototypeBatchProcessRequest.BatchInputConfig
Returns
TypeDescription
BatchProcessRequest.BatchInputConfig.Builder

parseDelimitedFrom(InputStream input)

public static BatchProcessRequest.BatchInputConfig parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
BatchProcessRequest.BatchInputConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BatchProcessRequest.BatchInputConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchProcessRequest.BatchInputConfig
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static BatchProcessRequest.BatchInputConfig parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
BatchProcessRequest.BatchInputConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static BatchProcessRequest.BatchInputConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchProcessRequest.BatchInputConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static BatchProcessRequest.BatchInputConfig parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
BatchProcessRequest.BatchInputConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static BatchProcessRequest.BatchInputConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchProcessRequest.BatchInputConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static BatchProcessRequest.BatchInputConfig parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
BatchProcessRequest.BatchInputConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static BatchProcessRequest.BatchInputConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchProcessRequest.BatchInputConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static BatchProcessRequest.BatchInputConfig parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
BatchProcessRequest.BatchInputConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BatchProcessRequest.BatchInputConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchProcessRequest.BatchInputConfig
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static BatchProcessRequest.BatchInputConfig parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
BatchProcessRequest.BatchInputConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static BatchProcessRequest.BatchInputConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchProcessRequest.BatchInputConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<BatchProcessRequest.BatchInputConfig> parser()
Returns
TypeDescription
Parser<BatchInputConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public BatchProcessRequest.BatchInputConfig getDefaultInstanceForType()
Returns
TypeDescription
BatchProcessRequest.BatchInputConfig

getGcsSource()

public String getGcsSource()

The Cloud Storage location as the source of the document.

string gcs_source = 1;

Returns
TypeDescription
String

The gcsSource.

getGcsSourceBytes()

public ByteString getGcsSourceBytes()

The Cloud Storage location as the source of the document.

string gcs_source = 1;

Returns
TypeDescription
ByteString

The bytes for gcsSource.

getMimeType()

public String getMimeType()

Mimetype of the input. If the input is a raw document, the supported mimetypes are application/pdf, image/tiff, and image/gif. If the input is a [Document] proto, the type should be application/json.

string mime_type = 2;

Returns
TypeDescription
String

The mimeType.

getMimeTypeBytes()

public ByteString getMimeTypeBytes()

Mimetype of the input. If the input is a raw document, the supported mimetypes are application/pdf, image/tiff, and image/gif. If the input is a [Document] proto, the type should be application/json.

string mime_type = 2;

Returns
TypeDescription
ByteString

The bytes for mimeType.

getParserForType()

public Parser<BatchProcessRequest.BatchInputConfig> getParserForType()
Returns
TypeDescription
Parser<BatchInputConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public BatchProcessRequest.BatchInputConfig.Builder newBuilderForType()
Returns
TypeDescription
BatchProcessRequest.BatchInputConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected BatchProcessRequest.BatchInputConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
BatchProcessRequest.BatchInputConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public BatchProcessRequest.BatchInputConfig.Builder toBuilder()
Returns
TypeDescription
BatchProcessRequest.BatchInputConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException