Class ProcessResponse.Builder (2.6.2)

Stay organized with collections Save and categorize content based on your preferences.
public static final class ProcessResponse.Builder extends GeneratedMessageV3.Builder<ProcessResponse.Builder> implements ProcessResponseOrBuilder

Response message for the process document method.

Protobuf type google.cloud.documentai.v1beta3.ProcessResponse

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ProcessResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ProcessResponse.Builder
Overrides

build()

public ProcessResponse build()
Returns
TypeDescription
ProcessResponse

buildPartial()

public ProcessResponse buildPartial()
Returns
TypeDescription
ProcessResponse

clear()

public ProcessResponse.Builder clear()
Returns
TypeDescription
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
TypeDescription
ProcessResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public ProcessResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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=235

The name of the operation triggered by the processed document. If the human review process is not triggered, this field will be empty. It has the same response type and metadata as the long running operation returned by ReviewDocument method.

string human_review_operation = 2 [deprecated = true];

Returns
TypeDescription
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
TypeDescription
ProcessResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ProcessResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ProcessResponse.Builder
Overrides

clone()

public ProcessResponse.Builder clone()
Returns
TypeDescription
ProcessResponse.Builder
Overrides

getDefaultInstanceForType()

public ProcessResponse getDefaultInstanceForType()
Returns
TypeDescription
ProcessResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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=235

The name of the operation triggered by the processed document. If the human review process is not triggered, this field will be empty. It has the same response type and metadata as the long running operation returned by ReviewDocument method.

string human_review_operation = 2 [deprecated = true];

Returns
TypeDescription
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=235

The name of the operation triggered by the processed document. If the human review process is not triggered, this field will be empty. It has the same response type and metadata as the long running operation returned by ReviewDocument method.

string human_review_operation = 2 [deprecated = true];

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the humanReviewStatus field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueDocument
Returns
TypeDescription
ProcessResponse.Builder

mergeFrom(ProcessResponse other)

public ProcessResponse.Builder mergeFrom(ProcessResponse other)
Parameter
NameDescription
otherProcessResponse
Returns
TypeDescription
ProcessResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ProcessResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ProcessResponse.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ProcessResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueHumanReviewStatus
Returns
TypeDescription
ProcessResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ProcessResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueDocument
Returns
TypeDescription
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
NameDescription
builderForValueDocument.Builder
Returns
TypeDescription
ProcessResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ProcessResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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=235

The name of the operation triggered by the processed document. If the human review process is not triggered, this field will be empty. It has the same response type and metadata as the long running operation returned by ReviewDocument method.

string human_review_operation = 2 [deprecated = true];

Parameter
NameDescription
valueString

The humanReviewOperation to set.

Returns
TypeDescription
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=235

The name of the operation triggered by the processed document. If the human review process is not triggered, this field will be empty. It has the same response type and metadata as the long running operation returned by ReviewDocument method.

string human_review_operation = 2 [deprecated = true];

Parameter
NameDescription
valueByteString

The bytes for humanReviewOperation to set.

Returns
TypeDescription
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
NameDescription
valueHumanReviewStatus
Returns
TypeDescription
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
NameDescription
builderForValueHumanReviewStatus.Builder
Returns
TypeDescription
ProcessResponse.Builder

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

public ProcessResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ProcessResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ProcessResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ProcessResponse.Builder
Overrides