Class ProcessResponse.Builder (2.46.0)

public static final class ProcessResponse.Builder extends GeneratedMessageV3.Builder<ProcessResponse.Builder> implements ProcessResponseOrBuilder

Response message for the ProcessDocument method.

Protobuf type google.cloud.documentai.v1beta3.ProcessResponse

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ProcessResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ProcessResponse.Builder
Overrides

build()

public ProcessResponse build()
Returns
Type Description
ProcessResponse

buildPartial()

public ProcessResponse buildPartial()
Returns
Type Description
ProcessResponse

clear()

public ProcessResponse.Builder clear()
Returns
Type Description
ProcessResponse.Builder
Overrides

clearDocument()

public ProcessResponse.Builder clearDocument()

The document payload, will populate fields based on the processor's behavior.

.google.cloud.documentai.v1beta3.Document document = 1;

Returns
Type Description
ProcessResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public ProcessResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ProcessResponse.Builder
Overrides

clearHumanReviewOperation() (deprecated)

public ProcessResponse.Builder clearHumanReviewOperation()

Deprecated. google.cloud.documentai.v1beta3.ProcessResponse.human_review_operation is deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=522

The name of the operation triggered by the processed document. If the human review process isn't triggered, this field is empty. It has the same response type and metadata as the long-running operation returned by ReviewDocument.

string human_review_operation = 2 [deprecated = true];

Returns
Type Description
ProcessResponse.Builder

This builder for chaining.

clearHumanReviewStatus()

public ProcessResponse.Builder clearHumanReviewStatus()

The status of human review on the processed document.

.google.cloud.documentai.v1beta3.HumanReviewStatus human_review_status = 3;

Returns
Type Description
ProcessResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ProcessResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ProcessResponse.Builder
Overrides

clone()

public ProcessResponse.Builder clone()
Returns
Type Description
ProcessResponse.Builder
Overrides

getDefaultInstanceForType()

public ProcessResponse getDefaultInstanceForType()
Returns
Type Description
ProcessResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDocument()

public Document getDocument()

The document payload, will populate fields based on the processor's behavior.

.google.cloud.documentai.v1beta3.Document document = 1;

Returns
Type Description
Document

The document.

getDocumentBuilder()

public Document.Builder getDocumentBuilder()

The document payload, will populate fields based on the processor's behavior.

.google.cloud.documentai.v1beta3.Document document = 1;

Returns
Type Description
Document.Builder

getDocumentOrBuilder()

public DocumentOrBuilder getDocumentOrBuilder()

The document payload, will populate fields based on the processor's behavior.

.google.cloud.documentai.v1beta3.Document document = 1;

Returns
Type Description
DocumentOrBuilder

getHumanReviewOperation() (deprecated)

public String getHumanReviewOperation()

Deprecated. google.cloud.documentai.v1beta3.ProcessResponse.human_review_operation is deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=522

The name of the operation triggered by the processed document. If the human review process isn't triggered, this field is empty. It has the same response type and metadata as the long-running operation returned by ReviewDocument.

string human_review_operation = 2 [deprecated = true];

Returns
Type Description
String

The humanReviewOperation.

getHumanReviewOperationBytes() (deprecated)

public ByteString getHumanReviewOperationBytes()

Deprecated. google.cloud.documentai.v1beta3.ProcessResponse.human_review_operation is deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=522

The name of the operation triggered by the processed document. If the human review process isn't triggered, this field is empty. It has the same response type and metadata as the long-running operation returned by ReviewDocument.

string human_review_operation = 2 [deprecated = true];

Returns
Type Description
ByteString

The bytes for humanReviewOperation.

getHumanReviewStatus()

public HumanReviewStatus getHumanReviewStatus()

The status of human review on the processed document.

.google.cloud.documentai.v1beta3.HumanReviewStatus human_review_status = 3;

Returns
Type Description
HumanReviewStatus

The humanReviewStatus.

getHumanReviewStatusBuilder()

public HumanReviewStatus.Builder getHumanReviewStatusBuilder()

The status of human review on the processed document.

.google.cloud.documentai.v1beta3.HumanReviewStatus human_review_status = 3;

Returns
Type Description
HumanReviewStatus.Builder

getHumanReviewStatusOrBuilder()

public HumanReviewStatusOrBuilder getHumanReviewStatusOrBuilder()

The status of human review on the processed document.

.google.cloud.documentai.v1beta3.HumanReviewStatus human_review_status = 3;

Returns
Type Description
HumanReviewStatusOrBuilder

hasDocument()

public boolean hasDocument()

The document payload, will populate fields based on the processor's behavior.

.google.cloud.documentai.v1beta3.Document document = 1;

Returns
Type Description
boolean

Whether the document field is set.

hasHumanReviewStatus()

public boolean hasHumanReviewStatus()

The status of human review on the processed document.

.google.cloud.documentai.v1beta3.HumanReviewStatus human_review_status = 3;

Returns
Type Description
boolean

Whether the humanReviewStatus field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDocument(Document value)

public ProcessResponse.Builder mergeDocument(Document value)

The document payload, will populate fields based on the processor's behavior.

.google.cloud.documentai.v1beta3.Document document = 1;

Parameter
Name Description
value Document
Returns
Type Description
ProcessResponse.Builder

mergeFrom(ProcessResponse other)

public ProcessResponse.Builder mergeFrom(ProcessResponse other)
Parameter
Name Description
other ProcessResponse
Returns
Type Description
ProcessResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ProcessResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProcessResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ProcessResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ProcessResponse.Builder
Overrides

mergeHumanReviewStatus(HumanReviewStatus value)

public ProcessResponse.Builder mergeHumanReviewStatus(HumanReviewStatus value)

The status of human review on the processed document.

.google.cloud.documentai.v1beta3.HumanReviewStatus human_review_status = 3;

Parameter
Name Description
value HumanReviewStatus
Returns
Type Description
ProcessResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ProcessResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ProcessResponse.Builder
Overrides

setDocument(Document value)

public ProcessResponse.Builder setDocument(Document value)

The document payload, will populate fields based on the processor's behavior.

.google.cloud.documentai.v1beta3.Document document = 1;

Parameter
Name Description
value Document
Returns
Type Description
ProcessResponse.Builder

setDocument(Document.Builder builderForValue)

public ProcessResponse.Builder setDocument(Document.Builder builderForValue)

The document payload, will populate fields based on the processor's behavior.

.google.cloud.documentai.v1beta3.Document document = 1;

Parameter
Name Description
builderForValue Document.Builder
Returns
Type Description
ProcessResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ProcessResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ProcessResponse.Builder
Overrides

setHumanReviewOperation(String value) (deprecated)

public ProcessResponse.Builder setHumanReviewOperation(String value)

Deprecated. google.cloud.documentai.v1beta3.ProcessResponse.human_review_operation is deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=522

The name of the operation triggered by the processed document. If the human review process isn't triggered, this field is empty. It has the same response type and metadata as the long-running operation returned by ReviewDocument.

string human_review_operation = 2 [deprecated = true];

Parameter
Name Description
value String

The humanReviewOperation to set.

Returns
Type Description
ProcessResponse.Builder

This builder for chaining.

setHumanReviewOperationBytes(ByteString value) (deprecated)

public ProcessResponse.Builder setHumanReviewOperationBytes(ByteString value)

Deprecated. google.cloud.documentai.v1beta3.ProcessResponse.human_review_operation is deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=522

The name of the operation triggered by the processed document. If the human review process isn't triggered, this field is empty. It has the same response type and metadata as the long-running operation returned by ReviewDocument.

string human_review_operation = 2 [deprecated = true];

Parameter
Name Description
value ByteString

The bytes for humanReviewOperation to set.

Returns
Type Description
ProcessResponse.Builder

This builder for chaining.

setHumanReviewStatus(HumanReviewStatus value)

public ProcessResponse.Builder setHumanReviewStatus(HumanReviewStatus value)

The status of human review on the processed document.

.google.cloud.documentai.v1beta3.HumanReviewStatus human_review_status = 3;

Parameter
Name Description
value HumanReviewStatus
Returns
Type Description
ProcessResponse.Builder

setHumanReviewStatus(HumanReviewStatus.Builder builderForValue)

public ProcessResponse.Builder setHumanReviewStatus(HumanReviewStatus.Builder builderForValue)

The status of human review on the processed document.

.google.cloud.documentai.v1beta3.HumanReviewStatus human_review_status = 3;

Parameter
Name Description
builderForValue HumanReviewStatus.Builder
Returns
Type Description
ProcessResponse.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ProcessResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ProcessResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ProcessResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ProcessResponse.Builder
Overrides