Class BatchProcessDocumentsResponse (2.52.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.v1beta2.BatchProcessDocumentsResponse

Static Fields

RESPONSES_FIELD_NUMBER

public static final int RESPONSES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static BatchProcessDocumentsResponse getDefaultInstance()
Returns
Type Description
BatchProcessDocumentsResponse

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static BatchProcessDocumentsResponse.Builder newBuilder()
Returns
Type Description
BatchProcessDocumentsResponse.Builder

newBuilder(BatchProcessDocumentsResponse prototype)

public static BatchProcessDocumentsResponse.Builder newBuilder(BatchProcessDocumentsResponse prototype)
Parameter
Name Description
prototype BatchProcessDocumentsResponse
Returns
Type Description
BatchProcessDocumentsResponse.Builder

parseDelimitedFrom(InputStream input)

public static BatchProcessDocumentsResponse parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
BatchProcessDocumentsResponse
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BatchProcessDocumentsResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchProcessDocumentsResponse
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static BatchProcessDocumentsResponse parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
BatchProcessDocumentsResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static BatchProcessDocumentsResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchProcessDocumentsResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static BatchProcessDocumentsResponse parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
BatchProcessDocumentsResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static BatchProcessDocumentsResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchProcessDocumentsResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static BatchProcessDocumentsResponse parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
BatchProcessDocumentsResponse
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static BatchProcessDocumentsResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchProcessDocumentsResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static BatchProcessDocumentsResponse parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
BatchProcessDocumentsResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BatchProcessDocumentsResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchProcessDocumentsResponse
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static BatchProcessDocumentsResponse parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
BatchProcessDocumentsResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static BatchProcessDocumentsResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchProcessDocumentsResponse
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<BatchProcessDocumentsResponse> parser()
Returns
Type Description
Parser<BatchProcessDocumentsResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public BatchProcessDocumentsResponse getDefaultInstanceForType()
Returns
Type Description
BatchProcessDocumentsResponse

getParserForType()

public Parser<BatchProcessDocumentsResponse> getParserForType()
Returns
Type Description
Parser<BatchProcessDocumentsResponse>
Overrides

getResponses(int index)

public ProcessDocumentResponse getResponses(int index)

Responses for each individual document.

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

Parameter
Name Description
index int
Returns
Type Description
ProcessDocumentResponse

getResponsesCount()

public int getResponsesCount()

Responses for each individual document.

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

Returns
Type Description
int

getResponsesList()

public List<ProcessDocumentResponse> getResponsesList()

Responses for each individual document.

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

Returns
Type Description
List<ProcessDocumentResponse>

getResponsesOrBuilder(int index)

public ProcessDocumentResponseOrBuilder getResponsesOrBuilder(int index)

Responses for each individual document.

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

Parameter
Name Description
index int
Returns
Type Description
ProcessDocumentResponseOrBuilder

getResponsesOrBuilderList()

public List<? extends ProcessDocumentResponseOrBuilder> getResponsesOrBuilderList()

Responses for each individual document.

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

Returns
Type Description
List<? extends com.google.cloud.documentai.v1beta2.ProcessDocumentResponseOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public BatchProcessDocumentsResponse.Builder newBuilderForType()
Returns
Type Description
BatchProcessDocumentsResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected BatchProcessDocumentsResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
BatchProcessDocumentsResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public BatchProcessDocumentsResponse.Builder toBuilder()
Returns
Type Description
BatchProcessDocumentsResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException