Class ProcessResponse.Builder

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

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

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

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

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

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

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

      public ProcessResponse.Builder mergeFrom(ProcessResponse other)
    • isInitialized

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

      public ProcessResponse.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<ProcessResponse.Builder>
      Throws:
      IOException
    • hasDocument

      public boolean hasDocument()
       The document payload, will populate fields based on the processor's
       behavior.
       
      .google.cloud.documentai.v1.Document document = 1;
      Specified by:
      hasDocument in interface ProcessResponseOrBuilder
      Returns:
      Whether the document field is set.
    • getDocument

      public Document getDocument()
       The document payload, will populate fields based on the processor's
       behavior.
       
      .google.cloud.documentai.v1.Document document = 1;
      Specified by:
      getDocument in interface ProcessResponseOrBuilder
      Returns:
      The document.
    • setDocument

      public ProcessResponse.Builder setDocument(Document value)
       The document payload, will populate fields based on the processor's
       behavior.
       
      .google.cloud.documentai.v1.Document document = 1;
    • setDocument

      public ProcessResponse.Builder setDocument(Document.Builder builderForValue)
       The document payload, will populate fields based on the processor's
       behavior.
       
      .google.cloud.documentai.v1.Document document = 1;
    • mergeDocument

      public ProcessResponse.Builder mergeDocument(Document value)
       The document payload, will populate fields based on the processor's
       behavior.
       
      .google.cloud.documentai.v1.Document document = 1;
    • clearDocument

      public ProcessResponse.Builder clearDocument()
       The document payload, will populate fields based on the processor's
       behavior.
       
      .google.cloud.documentai.v1.Document document = 1;
    • getDocumentBuilder

      public Document.Builder getDocumentBuilder()
       The document payload, will populate fields based on the processor's
       behavior.
       
      .google.cloud.documentai.v1.Document document = 1;
    • getDocumentOrBuilder

      public DocumentOrBuilder getDocumentOrBuilder()
       The document payload, will populate fields based on the processor's
       behavior.
       
      .google.cloud.documentai.v1.Document document = 1;
      Specified by:
      getDocumentOrBuilder in interface ProcessResponseOrBuilder
    • hasHumanReviewStatus

      public boolean hasHumanReviewStatus()
       The status of human review on the processed document.
       
      .google.cloud.documentai.v1.HumanReviewStatus human_review_status = 3;
      Specified by:
      hasHumanReviewStatus in interface ProcessResponseOrBuilder
      Returns:
      Whether the humanReviewStatus field is set.
    • getHumanReviewStatus

      public HumanReviewStatus getHumanReviewStatus()
       The status of human review on the processed document.
       
      .google.cloud.documentai.v1.HumanReviewStatus human_review_status = 3;
      Specified by:
      getHumanReviewStatus in interface ProcessResponseOrBuilder
      Returns:
      The humanReviewStatus.
    • setHumanReviewStatus

      public ProcessResponse.Builder setHumanReviewStatus(HumanReviewStatus value)
       The status of human review on the processed document.
       
      .google.cloud.documentai.v1.HumanReviewStatus human_review_status = 3;
    • setHumanReviewStatus

      public ProcessResponse.Builder setHumanReviewStatus(HumanReviewStatus.Builder builderForValue)
       The status of human review on the processed document.
       
      .google.cloud.documentai.v1.HumanReviewStatus human_review_status = 3;
    • mergeHumanReviewStatus

      public ProcessResponse.Builder mergeHumanReviewStatus(HumanReviewStatus value)
       The status of human review on the processed document.
       
      .google.cloud.documentai.v1.HumanReviewStatus human_review_status = 3;
    • clearHumanReviewStatus

      public ProcessResponse.Builder clearHumanReviewStatus()
       The status of human review on the processed document.
       
      .google.cloud.documentai.v1.HumanReviewStatus human_review_status = 3;
    • getHumanReviewStatusBuilder

      public HumanReviewStatus.Builder getHumanReviewStatusBuilder()
       The status of human review on the processed document.
       
      .google.cloud.documentai.v1.HumanReviewStatus human_review_status = 3;
    • getHumanReviewStatusOrBuilder

      public HumanReviewStatusOrBuilder getHumanReviewStatusOrBuilder()
       The status of human review on the processed document.
       
      .google.cloud.documentai.v1.HumanReviewStatus human_review_status = 3;
      Specified by:
      getHumanReviewStatusOrBuilder in interface ProcessResponseOrBuilder