Class ProcessDocumentResponse (2.47.0)

public final class ProcessDocumentResponse extends GeneratedMessageV3 implements ProcessDocumentResponseOrBuilder

Response to a single document processing request.

Protobuf type google.cloud.documentai.v1beta1.ProcessDocumentResponse

Static Fields

INPUT_CONFIG_FIELD_NUMBER

public static final int INPUT_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

OUTPUT_CONFIG_FIELD_NUMBER

public static final int OUTPUT_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ProcessDocumentResponse getDefaultInstance()
Returns
Type Description
ProcessDocumentResponse

getDescriptor()

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

newBuilder()

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

newBuilder(ProcessDocumentResponse prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public ProcessDocumentResponse getDefaultInstanceForType()
Returns
Type Description
ProcessDocumentResponse

getInputConfig()

public InputConfig getInputConfig()

Information about the input file. This is the same as the corresponding input config in the request.

.google.cloud.documentai.v1beta1.InputConfig input_config = 1;

Returns
Type Description
InputConfig

The inputConfig.

getInputConfigOrBuilder()

public InputConfigOrBuilder getInputConfigOrBuilder()

Information about the input file. This is the same as the corresponding input config in the request.

.google.cloud.documentai.v1beta1.InputConfig input_config = 1;

Returns
Type Description
InputConfigOrBuilder

getOutputConfig()

public OutputConfig getOutputConfig()

The output location of the parsed responses. The responses are written to this location as JSON-serialized Document objects.

.google.cloud.documentai.v1beta1.OutputConfig output_config = 2;

Returns
Type Description
OutputConfig

The outputConfig.

getOutputConfigOrBuilder()

public OutputConfigOrBuilder getOutputConfigOrBuilder()

The output location of the parsed responses. The responses are written to this location as JSON-serialized Document objects.

.google.cloud.documentai.v1beta1.OutputConfig output_config = 2;

Returns
Type Description
OutputConfigOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasInputConfig()

public boolean hasInputConfig()

Information about the input file. This is the same as the corresponding input config in the request.

.google.cloud.documentai.v1beta1.InputConfig input_config = 1;

Returns
Type Description
boolean

Whether the inputConfig field is set.

hasOutputConfig()

public boolean hasOutputConfig()

The output location of the parsed responses. The responses are written to this location as JSON-serialized Document objects.

.google.cloud.documentai.v1beta1.OutputConfig output_config = 2;

Returns
Type Description
boolean

Whether the outputConfig field is set.

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 ProcessDocumentResponse.Builder newBuilderForType()
Returns
Type Description
ProcessDocumentResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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