Package com.google.cloud.documentai.v1
Class HumanReviewStatus.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<HumanReviewStatus.Builder>
com.google.cloud.documentai.v1.HumanReviewStatus.Builder
- All Implemented Interfaces:
HumanReviewStatusOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- HumanReviewStatus
public static final class HumanReviewStatus.Builder
extends com.google.protobuf.GeneratedMessage.Builder<HumanReviewStatus.Builder>
implements HumanReviewStatusOrBuilder
The status of human review on a processed document.Protobuf type
google.cloud.documentai.v1.HumanReviewStatus-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The name of the operation triggered by the processed document.The state of human review on the processing request.A message providing more details about the human review state.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe name of the operation triggered by the processed document.com.google.protobuf.ByteStringThe name of the operation triggered by the processed document.getState()The state of human review on the processing request.A message providing more details about the human review state.com.google.protobuf.ByteStringA message providing more details about the human review state.intThe state of human review on the processing request.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(HumanReviewStatus other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setHumanReviewOperation(String value) The name of the operation triggered by the processed document.setHumanReviewOperationBytes(com.google.protobuf.ByteString value) The name of the operation triggered by the processed document.setState(HumanReviewStatus.State value) The state of human review on the processing request.setStateMessage(String value) A message providing more details about the human review state.setStateMessageBytes(com.google.protobuf.ByteString value) A message providing more details about the human review state.setStateValue(int value) The state of human review on the processing request.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<HumanReviewStatus.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<HumanReviewStatus.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<HumanReviewStatus.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<HumanReviewStatus.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<HumanReviewStatus.Builder>
-
mergeFrom
public HumanReviewStatus.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<HumanReviewStatus.Builder>- Throws:
IOException
-
getStateValue
public int getStateValue()The state of human review on the processing request.
.google.cloud.documentai.v1.HumanReviewStatus.State state = 1;- Specified by:
getStateValuein interfaceHumanReviewStatusOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
The state of human review on the processing request.
.google.cloud.documentai.v1.HumanReviewStatus.State state = 1;- Parameters:
value- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
The state of human review on the processing request.
.google.cloud.documentai.v1.HumanReviewStatus.State state = 1;- Specified by:
getStatein interfaceHumanReviewStatusOrBuilder- Returns:
- The state.
-
setState
The state of human review on the processing request.
.google.cloud.documentai.v1.HumanReviewStatus.State state = 1;- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
The state of human review on the processing request.
.google.cloud.documentai.v1.HumanReviewStatus.State state = 1;- Returns:
- This builder for chaining.
-
getStateMessage
A message providing more details about the human review state.
string state_message = 2;- Specified by:
getStateMessagein interfaceHumanReviewStatusOrBuilder- Returns:
- The stateMessage.
-
getStateMessageBytes
public com.google.protobuf.ByteString getStateMessageBytes()A message providing more details about the human review state.
string state_message = 2;- Specified by:
getStateMessageBytesin interfaceHumanReviewStatusOrBuilder- Returns:
- The bytes for stateMessage.
-
setStateMessage
A message providing more details about the human review state.
string state_message = 2;- Parameters:
value- The stateMessage to set.- Returns:
- This builder for chaining.
-
clearStateMessage
A message providing more details about the human review state.
string state_message = 2;- Returns:
- This builder for chaining.
-
setStateMessageBytes
A message providing more details about the human review state.
string state_message = 2;- Parameters:
value- The bytes for stateMessage to set.- Returns:
- This builder for chaining.
-
getHumanReviewOperation
The name of the operation triggered by the processed document. This field is populated only when the [state][google.cloud.documentai.v1.HumanReviewStatus.state] is `HUMAN_REVIEW_IN_PROGRESS`. It has the same response type and metadata as the long-running operation returned by [ReviewDocument][google.cloud.documentai.v1.DocumentProcessorService.ReviewDocument].
string human_review_operation = 3;- Specified by:
getHumanReviewOperationin interfaceHumanReviewStatusOrBuilder- Returns:
- The humanReviewOperation.
-
getHumanReviewOperationBytes
public com.google.protobuf.ByteString getHumanReviewOperationBytes()The name of the operation triggered by the processed document. This field is populated only when the [state][google.cloud.documentai.v1.HumanReviewStatus.state] is `HUMAN_REVIEW_IN_PROGRESS`. It has the same response type and metadata as the long-running operation returned by [ReviewDocument][google.cloud.documentai.v1.DocumentProcessorService.ReviewDocument].
string human_review_operation = 3;- Specified by:
getHumanReviewOperationBytesin interfaceHumanReviewStatusOrBuilder- Returns:
- The bytes for humanReviewOperation.
-
setHumanReviewOperation
The name of the operation triggered by the processed document. This field is populated only when the [state][google.cloud.documentai.v1.HumanReviewStatus.state] is `HUMAN_REVIEW_IN_PROGRESS`. It has the same response type and metadata as the long-running operation returned by [ReviewDocument][google.cloud.documentai.v1.DocumentProcessorService.ReviewDocument].
string human_review_operation = 3;- Parameters:
value- The humanReviewOperation to set.- Returns:
- This builder for chaining.
-
clearHumanReviewOperation
The name of the operation triggered by the processed document. This field is populated only when the [state][google.cloud.documentai.v1.HumanReviewStatus.state] is `HUMAN_REVIEW_IN_PROGRESS`. It has the same response type and metadata as the long-running operation returned by [ReviewDocument][google.cloud.documentai.v1.DocumentProcessorService.ReviewDocument].
string human_review_operation = 3;- Returns:
- This builder for chaining.
-
setHumanReviewOperationBytes
The name of the operation triggered by the processed document. This field is populated only when the [state][google.cloud.documentai.v1.HumanReviewStatus.state] is `HUMAN_REVIEW_IN_PROGRESS`. It has the same response type and metadata as the long-running operation returned by [ReviewDocument][google.cloud.documentai.v1.DocumentProcessorService.ReviewDocument].
string human_review_operation = 3;- Parameters:
value- The bytes for humanReviewOperation to set.- Returns:
- This builder for chaining.
-