Class BatchProcessDocumentsResponse (2.24.0)

public final class BatchProcessDocumentsResponse extends GeneratedMessageV3 implements BatchProcessDocumentsResponseOrBuilder

Response to an batch document processing request. This is returned in the LRO Operation after the operation is complete.

Protobuf type google.cloud.documentai.v1beta1.BatchProcessDocumentsResponse

Static Fields

RESPONSES_FIELD_NUMBER

public static final int RESPONSES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static BatchProcessDocumentsResponse getDefaultInstance()
Returns
TypeDescription
BatchProcessDocumentsResponse

getDescriptor()

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

newBuilder()

public static BatchProcessDocumentsResponse.Builder newBuilder()
Returns
TypeDescription
BatchProcessDocumentsResponse.Builder

newBuilder(BatchProcessDocumentsResponse prototype)

public static BatchProcessDocumentsResponse.Builder newBuilder(BatchProcessDocumentsResponse prototype)
Parameter
NameDescription
prototypeBatchProcessDocumentsResponse
Returns
TypeDescription
BatchProcessDocumentsResponse.Builder

parseDelimitedFrom(InputStream input)

public static BatchProcessDocumentsResponse parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
BatchProcessDocumentsResponse
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static BatchProcessDocumentsResponse parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
BatchProcessDocumentsResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static BatchProcessDocumentsResponse parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
BatchProcessDocumentsResponse
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static BatchProcessDocumentsResponse parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
BatchProcessDocumentsResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static BatchProcessDocumentsResponse parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
BatchProcessDocumentsResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<BatchProcessDocumentsResponse> parser()
Returns
TypeDescription
Parser<BatchProcessDocumentsResponse>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public BatchProcessDocumentsResponse getDefaultInstanceForType()
Returns
TypeDescription
BatchProcessDocumentsResponse

getParserForType()

public Parser<BatchProcessDocumentsResponse> getParserForType()
Returns
TypeDescription
Parser<BatchProcessDocumentsResponse>
Overrides

getResponses(int index)

public ProcessDocumentResponse getResponses(int index)

Responses for each individual document.

repeated .google.cloud.documentai.v1beta1.ProcessDocumentResponse responses = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ProcessDocumentResponse

getResponsesCount()

public int getResponsesCount()

Responses for each individual document.

repeated .google.cloud.documentai.v1beta1.ProcessDocumentResponse responses = 1;

Returns
TypeDescription
int

getResponsesList()

public List<ProcessDocumentResponse> getResponsesList()

Responses for each individual document.

repeated .google.cloud.documentai.v1beta1.ProcessDocumentResponse responses = 1;

Returns
TypeDescription
List<ProcessDocumentResponse>

getResponsesOrBuilder(int index)

public ProcessDocumentResponseOrBuilder getResponsesOrBuilder(int index)

Responses for each individual document.

repeated .google.cloud.documentai.v1beta1.ProcessDocumentResponse responses = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ProcessDocumentResponseOrBuilder

getResponsesOrBuilderList()

public List<? extends ProcessDocumentResponseOrBuilder> getResponsesOrBuilderList()

Responses for each individual document.

repeated .google.cloud.documentai.v1beta1.ProcessDocumentResponse responses = 1;

Returns
TypeDescription
List<? extends com.google.cloud.documentai.v1beta1.ProcessDocumentResponseOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
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 BatchProcessDocumentsResponse.Builder newBuilderForType()
Returns
TypeDescription
BatchProcessDocumentsResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public BatchProcessDocumentsResponse.Builder toBuilder()
Returns
TypeDescription
BatchProcessDocumentsResponse.Builder

writeTo(CodedOutputStream output)

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