Class Document.Revision.HumanReview.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Document.Revision.HumanReview.Builder>
com.google.cloud.documentai.v1.Document.Revision.HumanReview.Builder
All Implemented Interfaces:
Document.Revision.HumanReviewOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Document.Revision.HumanReview

public static final class Document.Revision.HumanReview.Builder extends com.google.protobuf.GeneratedMessage.Builder<Document.Revision.HumanReview.Builder> implements Document.Revision.HumanReviewOrBuilder
 Human Review information of the document.
 
Protobuf type google.cloud.documentai.v1.Document.Revision.HumanReview
  • 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<Document.Revision.HumanReview.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<Document.Revision.HumanReview.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<Document.Revision.HumanReview.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public Document.Revision.HumanReview.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<Document.Revision.HumanReview.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Document.Revision.HumanReview.Builder>
    • mergeFrom

      public Document.Revision.HumanReview.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<Document.Revision.HumanReview.Builder>
      Throws:
      IOException
    • getState

      public String getState()
       Human review state. For example, `requested`, `succeeded`, `rejected`.
       
      string state = 1;
      Specified by:
      getState in interface Document.Revision.HumanReviewOrBuilder
      Returns:
      The state.
    • getStateBytes

      public com.google.protobuf.ByteString getStateBytes()
       Human review state. For example, `requested`, `succeeded`, `rejected`.
       
      string state = 1;
      Specified by:
      getStateBytes in interface Document.Revision.HumanReviewOrBuilder
      Returns:
      The bytes for state.
    • setState

       Human review state. For example, `requested`, `succeeded`, `rejected`.
       
      string state = 1;
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

       Human review state. For example, `requested`, `succeeded`, `rejected`.
       
      string state = 1;
      Returns:
      This builder for chaining.
    • setStateBytes

      public Document.Revision.HumanReview.Builder setStateBytes(com.google.protobuf.ByteString value)
       Human review state. For example, `requested`, `succeeded`, `rejected`.
       
      string state = 1;
      Parameters:
      value - The bytes for state to set.
      Returns:
      This builder for chaining.
    • getStateMessage

      public String getStateMessage()
       A message providing more details about the current state of processing.
       For example, the rejection reason when the state is `rejected`.
       
      string state_message = 2;
      Specified by:
      getStateMessage in interface Document.Revision.HumanReviewOrBuilder
      Returns:
      The stateMessage.
    • getStateMessageBytes

      public com.google.protobuf.ByteString getStateMessageBytes()
       A message providing more details about the current state of processing.
       For example, the rejection reason when the state is `rejected`.
       
      string state_message = 2;
      Specified by:
      getStateMessageBytes in interface Document.Revision.HumanReviewOrBuilder
      Returns:
      The bytes for stateMessage.
    • setStateMessage

      public Document.Revision.HumanReview.Builder setStateMessage(String value)
       A message providing more details about the current state of processing.
       For example, the rejection reason when the state is `rejected`.
       
      string state_message = 2;
      Parameters:
      value - The stateMessage to set.
      Returns:
      This builder for chaining.
    • clearStateMessage

      public Document.Revision.HumanReview.Builder clearStateMessage()
       A message providing more details about the current state of processing.
       For example, the rejection reason when the state is `rejected`.
       
      string state_message = 2;
      Returns:
      This builder for chaining.
    • setStateMessageBytes

      public Document.Revision.HumanReview.Builder setStateMessageBytes(com.google.protobuf.ByteString value)
       A message providing more details about the current state of processing.
       For example, the rejection reason when the state is `rejected`.
       
      string state_message = 2;
      Parameters:
      value - The bytes for stateMessage to set.
      Returns:
      This builder for chaining.