Class ReviewDocumentResponse.Builder (2.7.2)

public static final class ReviewDocumentResponse.Builder extends GeneratedMessageV3.Builder<ReviewDocumentResponse.Builder> implements ReviewDocumentResponseOrBuilder

Response message for review document method.

Protobuf type google.cloud.documentai.v1.ReviewDocumentResponse

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ReviewDocumentResponse build()
Returns
TypeDescription
ReviewDocumentResponse

buildPartial()

public ReviewDocumentResponse buildPartial()
Returns
TypeDescription
ReviewDocumentResponse

clear()

public ReviewDocumentResponse.Builder clear()
Returns
TypeDescription
ReviewDocumentResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ReviewDocumentResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ReviewDocumentResponse.Builder
Overrides

clearGcsDestination()

public ReviewDocumentResponse.Builder clearGcsDestination()

The Cloud Storage uri for the human reviewed document if the review is succeeded.

string gcs_destination = 1;

Returns
TypeDescription
ReviewDocumentResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRejectionReason()

public ReviewDocumentResponse.Builder clearRejectionReason()

The reason why the review is rejected by reviewer.

string rejection_reason = 3;

Returns
TypeDescription
ReviewDocumentResponse.Builder

This builder for chaining.

clearState()

public ReviewDocumentResponse.Builder clearState()

The state of the review operation.

.google.cloud.documentai.v1.ReviewDocumentResponse.State state = 2;

Returns
TypeDescription
ReviewDocumentResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ReviewDocumentResponse getDefaultInstanceForType()
Returns
TypeDescription
ReviewDocumentResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGcsDestination()

public String getGcsDestination()

The Cloud Storage uri for the human reviewed document if the review is succeeded.

string gcs_destination = 1;

Returns
TypeDescription
String

The gcsDestination.

getGcsDestinationBytes()

public ByteString getGcsDestinationBytes()

The Cloud Storage uri for the human reviewed document if the review is succeeded.

string gcs_destination = 1;

Returns
TypeDescription
ByteString

The bytes for gcsDestination.

getRejectionReason()

public String getRejectionReason()

The reason why the review is rejected by reviewer.

string rejection_reason = 3;

Returns
TypeDescription
String

The rejectionReason.

getRejectionReasonBytes()

public ByteString getRejectionReasonBytes()

The reason why the review is rejected by reviewer.

string rejection_reason = 3;

Returns
TypeDescription
ByteString

The bytes for rejectionReason.

getState()

public ReviewDocumentResponse.State getState()

The state of the review operation.

.google.cloud.documentai.v1.ReviewDocumentResponse.State state = 2;

Returns
TypeDescription
ReviewDocumentResponse.State

The state.

getStateValue()

public int getStateValue()

The state of the review operation.

.google.cloud.documentai.v1.ReviewDocumentResponse.State state = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for state.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ReviewDocumentResponse other)

public ReviewDocumentResponse.Builder mergeFrom(ReviewDocumentResponse other)
Parameter
NameDescription
otherReviewDocumentResponse
Returns
TypeDescription
ReviewDocumentResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ReviewDocumentResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ReviewDocumentResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ReviewDocumentResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ReviewDocumentResponse.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setGcsDestination(String value)

public ReviewDocumentResponse.Builder setGcsDestination(String value)

The Cloud Storage uri for the human reviewed document if the review is succeeded.

string gcs_destination = 1;

Parameter
NameDescription
valueString

The gcsDestination to set.

Returns
TypeDescription
ReviewDocumentResponse.Builder

This builder for chaining.

setGcsDestinationBytes(ByteString value)

public ReviewDocumentResponse.Builder setGcsDestinationBytes(ByteString value)

The Cloud Storage uri for the human reviewed document if the review is succeeded.

string gcs_destination = 1;

Parameter
NameDescription
valueByteString

The bytes for gcsDestination to set.

Returns
TypeDescription
ReviewDocumentResponse.Builder

This builder for chaining.

setRejectionReason(String value)

public ReviewDocumentResponse.Builder setRejectionReason(String value)

The reason why the review is rejected by reviewer.

string rejection_reason = 3;

Parameter
NameDescription
valueString

The rejectionReason to set.

Returns
TypeDescription
ReviewDocumentResponse.Builder

This builder for chaining.

setRejectionReasonBytes(ByteString value)

public ReviewDocumentResponse.Builder setRejectionReasonBytes(ByteString value)

The reason why the review is rejected by reviewer.

string rejection_reason = 3;

Parameter
NameDescription
valueByteString

The bytes for rejectionReason to set.

Returns
TypeDescription
ReviewDocumentResponse.Builder

This builder for chaining.

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

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

setState(ReviewDocumentResponse.State value)

public ReviewDocumentResponse.Builder setState(ReviewDocumentResponse.State value)

The state of the review operation.

.google.cloud.documentai.v1.ReviewDocumentResponse.State state = 2;

Parameter
NameDescription
valueReviewDocumentResponse.State

The state to set.

Returns
TypeDescription
ReviewDocumentResponse.Builder

This builder for chaining.

setStateValue(int value)

public ReviewDocumentResponse.Builder setStateValue(int value)

The state of the review operation.

.google.cloud.documentai.v1.ReviewDocumentResponse.State state = 2;

Parameter
NameDescription
valueint

The enum numeric value on the wire for state to set.

Returns
TypeDescription
ReviewDocumentResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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