Class 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.GeneratedMessageV3.Builder<ReviewDocumentResponse.Builder>
    implements ReviewDocumentResponseOrBuilder
     Response message for the
     [ReviewDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ReviewDocument]
     method.
     
    Protobuf type google.cloud.documentai.v1beta3.ReviewDocumentResponse
    • Method Detail

      • getDescriptor

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

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

        public 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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public ReviewDocumentResponse.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<ReviewDocumentResponse.Builder>
      • clearField

        public ReviewDocumentResponse.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ReviewDocumentResponse.Builder>
      • clearOneof

        public ReviewDocumentResponse.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ReviewDocumentResponse.Builder>
      • setRepeatedField

        public ReviewDocumentResponse.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                               int index,
                                                               Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ReviewDocumentResponse.Builder>
      • addRepeatedField

        public ReviewDocumentResponse.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                               Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ReviewDocumentResponse.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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.v1beta3.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.v1beta3.ReviewDocumentResponse.State state = 2;
        Parameters:
        value - The enum numeric value on the wire for state to set.
        Returns:
        This builder for chaining.
      • clearState

        public ReviewDocumentResponse.Builder clearState()
         The state of the review operation.
         
        .google.cloud.documentai.v1beta3.ReviewDocumentResponse.State state = 2;
        Returns:
        This builder for chaining.
      • 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.
      • setUnknownFields

        public final ReviewDocumentResponse.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ReviewDocumentResponse.Builder>
      • mergeUnknownFields

        public final ReviewDocumentResponse.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ReviewDocumentResponse.Builder>