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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<HumanReviewStatus.Builder>
    • clear

      public HumanReviewStatus.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<HumanReviewStatus.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<HumanReviewStatus.Builder>
    • getDefaultInstanceForType

      public HumanReviewStatus getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public HumanReviewStatus build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public HumanReviewStatus buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public HumanReviewStatus.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<HumanReviewStatus.Builder>
    • mergeFrom

      public HumanReviewStatus.Builder mergeFrom(HumanReviewStatus other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      getStateValue in interface HumanReviewStatusOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public HumanReviewStatus.Builder setStateValue(int value)
       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

      public HumanReviewStatus.State getState()
       The state of human review on the processing request.
       
      .google.cloud.documentai.v1.HumanReviewStatus.State state = 1;
      Specified by:
      getState in interface HumanReviewStatusOrBuilder
      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

      public HumanReviewStatus.Builder clearState()
       The state of human review on the processing request.
       
      .google.cloud.documentai.v1.HumanReviewStatus.State state = 1;
      Returns:
      This builder for chaining.
    • getStateMessage

      public String getStateMessage()
       A message providing more details about the human review state.
       
      string state_message = 2;
      Specified by:
      getStateMessage in interface HumanReviewStatusOrBuilder
      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:
      getStateMessageBytes in interface HumanReviewStatusOrBuilder
      Returns:
      The bytes for stateMessage.
    • setStateMessage

      public HumanReviewStatus.Builder setStateMessage(String value)
       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

      public HumanReviewStatus.Builder clearStateMessage()
       A message providing more details about the human review state.
       
      string state_message = 2;
      Returns:
      This builder for chaining.
    • setStateMessageBytes

      public HumanReviewStatus.Builder setStateMessageBytes(com.google.protobuf.ByteString value)
       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

      public String 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:
      getHumanReviewOperation in interface HumanReviewStatusOrBuilder
      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:
      getHumanReviewOperationBytes in interface HumanReviewStatusOrBuilder
      Returns:
      The bytes for humanReviewOperation.
    • setHumanReviewOperation

      public HumanReviewStatus.Builder setHumanReviewOperation(String value)
       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

      public HumanReviewStatus.Builder 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

      public HumanReviewStatus.Builder setHumanReviewOperationBytes(com.google.protobuf.ByteString value)
       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.