Class ReviewDocumentRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ReviewDocumentRequest.Builder>
com.google.cloud.documentai.v1.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.GeneratedMessage.Builder<ReviewDocumentRequest.Builder> implements ReviewDocumentRequestOrBuilder
 Request message for the
 [ReviewDocument][google.cloud.documentai.v1.DocumentProcessorService.ReviewDocument]
 method.
 
Protobuf type google.cloud.documentai.v1.ReviewDocumentRequest
  • 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<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.GeneratedMessage.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.GeneratedMessage.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
    • mergeFrom

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

      public ReviewDocumentRequest.SourceCase getSourceCase()
      Specified by:
      getSourceCase in interface ReviewDocumentRequestOrBuilder
    • clearSource

      public ReviewDocumentRequest.Builder clearSource()
    • hasInlineDocument

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

      public Document getInlineDocument()
       An inline document proto.
       
      .google.cloud.documentai.v1.Document inline_document = 4;
      Specified by:
      getInlineDocument in interface ReviewDocumentRequestOrBuilder
      Returns:
      The inlineDocument.
    • setInlineDocument

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

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

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

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

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

      public DocumentOrBuilder getInlineDocumentOrBuilder()
       An inline document proto.
       
      .google.cloud.documentai.v1.Document inline_document = 4;
      Specified by:
      getInlineDocumentOrBuilder in interface ReviewDocumentRequestOrBuilder
    • getHumanReviewConfig

      public String getHumanReviewConfig()
       Required. The resource name of the
       [HumanReviewConfig][google.cloud.documentai.v1.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.v1.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.v1.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.v1.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.v1.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.
    • 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.v1.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.v1.ReviewDocumentRequest.Priority priority = 5;
      Parameters:
      value - The enum numeric value on the wire for priority to set.
      Returns:
      This builder for chaining.
    • getPriority

      public ReviewDocumentRequest.Priority getPriority()
       The priority of the human review task.
       
      .google.cloud.documentai.v1.ReviewDocumentRequest.Priority priority = 5;
      Specified by:
      getPriority in interface ReviewDocumentRequestOrBuilder
      Returns:
      The priority.
    • setPriority

       The priority of the human review task.
       
      .google.cloud.documentai.v1.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.v1.ReviewDocumentRequest.Priority priority = 5;
      Returns:
      This builder for chaining.
    • hasDocumentSchema

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

      public DocumentSchema getDocumentSchema()
       The document schema of the human review task.
       
      .google.cloud.documentai.v1.DocumentSchema document_schema = 6;
      Specified by:
      getDocumentSchema in interface ReviewDocumentRequestOrBuilder
      Returns:
      The documentSchema.
    • setDocumentSchema

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

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

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

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

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

      public DocumentSchemaOrBuilder getDocumentSchemaOrBuilder()
       The document schema of the human review task.
       
      .google.cloud.documentai.v1.DocumentSchema document_schema = 6;
      Specified by:
      getDocumentSchemaOrBuilder in interface ReviewDocumentRequestOrBuilder