Class ReviewDocumentResponse.Builder

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

public static final class ReviewDocumentResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<ReviewDocumentResponse.Builder> implements ReviewDocumentResponseOrBuilder
 Response message for the
 [ReviewDocument][google.cloud.documentai.v1.DocumentProcessorService.ReviewDocument]
 method.
 
Protobuf type google.cloud.documentai.v1.ReviewDocumentResponse
  • 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<ReviewDocumentResponse.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<ReviewDocumentResponse.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<ReviewDocumentResponse.Builder>
    • getDefaultInstanceForType

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

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

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

      public ReviewDocumentResponse.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<ReviewDocumentResponse.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<ReviewDocumentResponse.Builder>
    • mergeFrom

      public ReviewDocumentResponse.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<ReviewDocumentResponse.Builder>
      Throws:
      IOException
    • getGcsDestination

      public String getGcsDestination()
       The Cloud Storage uri for the human reviewed document if the review is
       succeeded.
       
      string gcs_destination = 1;
      Specified by:
      getGcsDestination in interface ReviewDocumentResponseOrBuilder
      Returns:
      The gcsDestination.
    • getGcsDestinationBytes

      public com.google.protobuf.ByteString getGcsDestinationBytes()
       The Cloud Storage uri for the human reviewed document if the review is
       succeeded.
       
      string gcs_destination = 1;
      Specified by:
      getGcsDestinationBytes in interface ReviewDocumentResponseOrBuilder
      Returns:
      The bytes for gcsDestination.
    • setGcsDestination

      public ReviewDocumentResponse.Builder setGcsDestination(String value)
       The Cloud Storage uri for the human reviewed document if the review is
       succeeded.
       
      string gcs_destination = 1;
      Parameters:
      value - The gcsDestination to set.
      Returns:
      This builder for chaining.
    • clearGcsDestination

      public ReviewDocumentResponse.Builder clearGcsDestination()
       The Cloud Storage uri for the human reviewed document if the review is
       succeeded.
       
      string gcs_destination = 1;
      Returns:
      This builder for chaining.
    • setGcsDestinationBytes

      public ReviewDocumentResponse.Builder setGcsDestinationBytes(com.google.protobuf.ByteString value)
       The Cloud Storage uri for the human reviewed document if the review is
       succeeded.
       
      string gcs_destination = 1;
      Parameters:
      value - The bytes for gcsDestination to set.
      Returns:
      This builder for chaining.
    • getStateValue

      public int getStateValue()
       The state of the review operation.
       
      .google.cloud.documentai.v1.ReviewDocumentResponse.State state = 2;
      Specified by:
      getStateValue in interface ReviewDocumentResponseOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public ReviewDocumentResponse.Builder setStateValue(int value)
       The state of the review operation.
       
      .google.cloud.documentai.v1.ReviewDocumentResponse.State state = 2;
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

      public ReviewDocumentResponse.State getState()
       The state of the review operation.
       
      .google.cloud.documentai.v1.ReviewDocumentResponse.State state = 2;
      Specified by:
      getState in interface ReviewDocumentResponseOrBuilder
      Returns:
      The state.
    • setState

       The state of the review operation.
       
      .google.cloud.documentai.v1.ReviewDocumentResponse.State state = 2;
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public ReviewDocumentResponse.Builder clearState()
       The state of the review operation.
       
      .google.cloud.documentai.v1.ReviewDocumentResponse.State state = 2;
      Returns:
      This builder for chaining.
    • getRejectionReason

      public String getRejectionReason()
       The reason why the review is rejected by reviewer.
       
      string rejection_reason = 3;
      Specified by:
      getRejectionReason in interface ReviewDocumentResponseOrBuilder
      Returns:
      The rejectionReason.
    • getRejectionReasonBytes

      public com.google.protobuf.ByteString getRejectionReasonBytes()
       The reason why the review is rejected by reviewer.
       
      string rejection_reason = 3;
      Specified by:
      getRejectionReasonBytes in interface ReviewDocumentResponseOrBuilder
      Returns:
      The bytes for rejectionReason.
    • setRejectionReason

      public ReviewDocumentResponse.Builder setRejectionReason(String value)
       The reason why the review is rejected by reviewer.
       
      string rejection_reason = 3;
      Parameters:
      value - The rejectionReason to set.
      Returns:
      This builder for chaining.
    • clearRejectionReason

      public ReviewDocumentResponse.Builder clearRejectionReason()
       The reason why the review is rejected by reviewer.
       
      string rejection_reason = 3;
      Returns:
      This builder for chaining.
    • setRejectionReasonBytes

      public ReviewDocumentResponse.Builder setRejectionReasonBytes(com.google.protobuf.ByteString value)
       The reason why the review is rejected by reviewer.
       
      string rejection_reason = 3;
      Parameters:
      value - The bytes for rejectionReason to set.
      Returns:
      This builder for chaining.