Class ProcessResponse.Builder (2.3.1)

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.v1.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.v1.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

clearHumanReviewStatus()

public ProcessResponse.Builder clearHumanReviewStatus()

The status of human review on the processed document.

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

Returns
TypeDescription
DocumentOrBuilder

getHumanReviewStatus()

public HumanReviewStatus getHumanReviewStatus()

The status of human review on the processed document.

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

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
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.v1.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