Class ProcessDocumentResponse (2.15.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
TypeDescription
int

OUTPUT_CONFIG_FIELD_NUMBER

public static final int OUTPUT_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ProcessDocumentResponse getDefaultInstance()
Returns
TypeDescription
ProcessDocumentResponse

getDescriptor()

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

newBuilder()

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

newBuilder(ProcessDocumentResponse prototype)

public static ProcessDocumentResponse.Builder newBuilder(ProcessDocumentResponse prototype)
Parameter
NameDescription
prototypeProcessDocumentResponse
Returns
TypeDescription
ProcessDocumentResponse.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public ProcessDocumentResponse getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
OutputConfigOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
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
TypeDescription
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
TypeDescription
boolean

Whether the outputConfig field is set.

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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