Class ProcessResponse.Builder (2.50.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.v1.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.v1.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

clearHumanReviewStatus()

public ProcessResponse.Builder clearHumanReviewStatus()

The status of human review on the processed document.

.google.cloud.documentai.v1.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.v1.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.v1.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.v1.Document document = 1;

Returns
Type Description
DocumentOrBuilder

getHumanReviewStatus()

public HumanReviewStatus getHumanReviewStatus()

The status of human review on the processed document.

.google.cloud.documentai.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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

setHumanReviewStatus(HumanReviewStatus value)

public ProcessResponse.Builder setHumanReviewStatus(HumanReviewStatus value)

The status of human review on the processed document.

.google.cloud.documentai.v1.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.v1.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