Class ReviewDocumentRequest.Builder

  • All Implemented Interfaces:
    ReviewDocumentRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    ReviewDocumentRequest

    public static final class ReviewDocumentRequest.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ReviewDocumentRequest.Builder>
    implements ReviewDocumentRequestOrBuilder
     Request message for the
     [ReviewDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ReviewDocument]
     method.
     
    Protobuf type google.cloud.documentai.v1beta3.ReviewDocumentRequest
    • 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<ReviewDocumentRequest.Builder>
      • clear

        public ReviewDocumentRequest.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<ReviewDocumentRequest.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<ReviewDocumentRequest.Builder>
      • getDefaultInstanceForType

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

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

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

        public ReviewDocumentRequest.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<ReviewDocumentRequest.Builder>
      • clearField

        public ReviewDocumentRequest.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<ReviewDocumentRequest.Builder>
      • clearOneof

        public ReviewDocumentRequest.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<ReviewDocumentRequest.Builder>
      • setRepeatedField

        public ReviewDocumentRequest.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<ReviewDocumentRequest.Builder>
      • addRepeatedField

        public ReviewDocumentRequest.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<ReviewDocumentRequest.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ReviewDocumentRequest.Builder>
      • mergeFrom

        public ReviewDocumentRequest.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<ReviewDocumentRequest.Builder>
        Throws:
        IOException
      • hasInlineDocument

        public boolean hasInlineDocument()
         An inline document proto.
         
        .google.cloud.documentai.v1beta3.Document inline_document = 4;
        Specified by:
        hasInlineDocument in interface ReviewDocumentRequestOrBuilder
        Returns:
        Whether the inlineDocument field is set.
      • setInlineDocument

        public ReviewDocumentRequest.Builder setInlineDocument​(Document value)
         An inline document proto.
         
        .google.cloud.documentai.v1beta3.Document inline_document = 4;
      • mergeInlineDocument

        public ReviewDocumentRequest.Builder mergeInlineDocument​(Document value)
         An inline document proto.
         
        .google.cloud.documentai.v1beta3.Document inline_document = 4;
      • clearInlineDocument

        public ReviewDocumentRequest.Builder clearInlineDocument()
         An inline document proto.
         
        .google.cloud.documentai.v1beta3.Document inline_document = 4;
      • getInlineDocumentBuilder

        public Document.Builder getInlineDocumentBuilder()
         An inline document proto.
         
        .google.cloud.documentai.v1beta3.Document inline_document = 4;
      • getHumanReviewConfig

        public String getHumanReviewConfig()
         Required. The resource name of the
         [HumanReviewConfig][google.cloud.documentai.v1beta3.HumanReviewConfig] that
         the document will be reviewed with.
         
        string human_review_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getHumanReviewConfig in interface ReviewDocumentRequestOrBuilder
        Returns:
        The humanReviewConfig.
      • getHumanReviewConfigBytes

        public com.google.protobuf.ByteString getHumanReviewConfigBytes()
         Required. The resource name of the
         [HumanReviewConfig][google.cloud.documentai.v1beta3.HumanReviewConfig] that
         the document will be reviewed with.
         
        string human_review_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getHumanReviewConfigBytes in interface ReviewDocumentRequestOrBuilder
        Returns:
        The bytes for humanReviewConfig.
      • setHumanReviewConfig

        public ReviewDocumentRequest.Builder setHumanReviewConfig​(String value)
         Required. The resource name of the
         [HumanReviewConfig][google.cloud.documentai.v1beta3.HumanReviewConfig] that
         the document will be reviewed with.
         
        string human_review_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The humanReviewConfig to set.
        Returns:
        This builder for chaining.
      • clearHumanReviewConfig

        public ReviewDocumentRequest.Builder clearHumanReviewConfig()
         Required. The resource name of the
         [HumanReviewConfig][google.cloud.documentai.v1beta3.HumanReviewConfig] that
         the document will be reviewed with.
         
        string human_review_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setHumanReviewConfigBytes

        public ReviewDocumentRequest.Builder setHumanReviewConfigBytes​(com.google.protobuf.ByteString value)
         Required. The resource name of the
         [HumanReviewConfig][google.cloud.documentai.v1beta3.HumanReviewConfig] that
         the document will be reviewed with.
         
        string human_review_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for humanReviewConfig to set.
        Returns:
        This builder for chaining.
      • hasDocument

        @Deprecated
        public boolean hasDocument()
        Deprecated.
        google.cloud.documentai.v1beta3.ReviewDocumentRequest.document is deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=1099
         The document that needs human review.
         
        .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true];
        Specified by:
        hasDocument in interface ReviewDocumentRequestOrBuilder
        Returns:
        Whether the document field is set.
      • getDocument

        @Deprecated
        public Document getDocument()
        Deprecated.
        google.cloud.documentai.v1beta3.ReviewDocumentRequest.document is deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=1099
         The document that needs human review.
         
        .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true];
        Specified by:
        getDocument in interface ReviewDocumentRequestOrBuilder
        Returns:
        The document.
      • clearDocument

        @Deprecated
        public ReviewDocumentRequest.Builder clearDocument()
        Deprecated.
         The document that needs human review.
         
        .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true];
      • getDocumentBuilder

        @Deprecated
        public Document.Builder getDocumentBuilder()
        Deprecated.
         The document that needs human review.
         
        .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true];
      • getEnableSchemaValidation

        public boolean getEnableSchemaValidation()
         Whether the validation should be performed on the ad-hoc review request.
         
        bool enable_schema_validation = 3;
        Specified by:
        getEnableSchemaValidation in interface ReviewDocumentRequestOrBuilder
        Returns:
        The enableSchemaValidation.
      • setEnableSchemaValidation

        public ReviewDocumentRequest.Builder setEnableSchemaValidation​(boolean value)
         Whether the validation should be performed on the ad-hoc review request.
         
        bool enable_schema_validation = 3;
        Parameters:
        value - The enableSchemaValidation to set.
        Returns:
        This builder for chaining.
      • clearEnableSchemaValidation

        public ReviewDocumentRequest.Builder clearEnableSchemaValidation()
         Whether the validation should be performed on the ad-hoc review request.
         
        bool enable_schema_validation = 3;
        Returns:
        This builder for chaining.
      • getPriorityValue

        public int getPriorityValue()
         The priority of the human review task.
         
        .google.cloud.documentai.v1beta3.ReviewDocumentRequest.Priority priority = 5;
        Specified by:
        getPriorityValue in interface ReviewDocumentRequestOrBuilder
        Returns:
        The enum numeric value on the wire for priority.
      • setPriorityValue

        public ReviewDocumentRequest.Builder setPriorityValue​(int value)
         The priority of the human review task.
         
        .google.cloud.documentai.v1beta3.ReviewDocumentRequest.Priority priority = 5;
        Parameters:
        value - The enum numeric value on the wire for priority to set.
        Returns:
        This builder for chaining.
      • setPriority

        public ReviewDocumentRequest.Builder setPriority​(ReviewDocumentRequest.Priority value)
         The priority of the human review task.
         
        .google.cloud.documentai.v1beta3.ReviewDocumentRequest.Priority priority = 5;
        Parameters:
        value - The priority to set.
        Returns:
        This builder for chaining.
      • clearPriority

        public ReviewDocumentRequest.Builder clearPriority()
         The priority of the human review task.
         
        .google.cloud.documentai.v1beta3.ReviewDocumentRequest.Priority priority = 5;
        Returns:
        This builder for chaining.
      • hasDocumentSchema

        public boolean hasDocumentSchema()
         The document schema of the human review task.
         
        .google.cloud.documentai.v1beta3.DocumentSchema document_schema = 6;
        Specified by:
        hasDocumentSchema in interface ReviewDocumentRequestOrBuilder
        Returns:
        Whether the documentSchema field is set.
      • setDocumentSchema

        public ReviewDocumentRequest.Builder setDocumentSchema​(DocumentSchema value)
         The document schema of the human review task.
         
        .google.cloud.documentai.v1beta3.DocumentSchema document_schema = 6;
      • mergeDocumentSchema

        public ReviewDocumentRequest.Builder mergeDocumentSchema​(DocumentSchema value)
         The document schema of the human review task.
         
        .google.cloud.documentai.v1beta3.DocumentSchema document_schema = 6;
      • clearDocumentSchema

        public ReviewDocumentRequest.Builder clearDocumentSchema()
         The document schema of the human review task.
         
        .google.cloud.documentai.v1beta3.DocumentSchema document_schema = 6;
      • getDocumentSchemaBuilder

        public DocumentSchema.Builder getDocumentSchemaBuilder()
         The document schema of the human review task.
         
        .google.cloud.documentai.v1beta3.DocumentSchema document_schema = 6;
      • setUnknownFields

        public final ReviewDocumentRequest.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<ReviewDocumentRequest.Builder>
      • mergeUnknownFields

        public final ReviewDocumentRequest.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<ReviewDocumentRequest.Builder>