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.v1beta3.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.v1beta3.DocumentProcessorService.ProcessDocument]
 method.
 
Protobuf type google.cloud.documentai.v1beta3.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.v1beta3.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.v1beta3.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.v1beta3.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.v1beta3.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.v1beta3.Document document = 1;
    • clearDocument

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

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

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

      @Deprecated public String getHumanReviewOperation()
      Deprecated.
      google.cloud.documentai.v1beta3.ProcessResponse.human_review_operation is deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=555
       The name of the operation triggered by the processed document. If the human
       review process isn't triggered, this field is empty. It has the same
       response type and metadata as the long-running operation returned by
       [ReviewDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ReviewDocument].
       
      string human_review_operation = 2 [deprecated = true];
      Specified by:
      getHumanReviewOperation in interface ProcessResponseOrBuilder
      Returns:
      The humanReviewOperation.
    • getHumanReviewOperationBytes

      @Deprecated public com.google.protobuf.ByteString getHumanReviewOperationBytes()
      Deprecated.
      google.cloud.documentai.v1beta3.ProcessResponse.human_review_operation is deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=555
       The name of the operation triggered by the processed document. If the human
       review process isn't triggered, this field is empty. It has the same
       response type and metadata as the long-running operation returned by
       [ReviewDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ReviewDocument].
       
      string human_review_operation = 2 [deprecated = true];
      Specified by:
      getHumanReviewOperationBytes in interface ProcessResponseOrBuilder
      Returns:
      The bytes for humanReviewOperation.
    • setHumanReviewOperation

      @Deprecated public ProcessResponse.Builder setHumanReviewOperation(String value)
      Deprecated.
      google.cloud.documentai.v1beta3.ProcessResponse.human_review_operation is deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=555
       The name of the operation triggered by the processed document. If the human
       review process isn't triggered, this field is empty. It has the same
       response type and metadata as the long-running operation returned by
       [ReviewDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ReviewDocument].
       
      string human_review_operation = 2 [deprecated = true];
      Parameters:
      value - The humanReviewOperation to set.
      Returns:
      This builder for chaining.
    • clearHumanReviewOperation

      @Deprecated public ProcessResponse.Builder clearHumanReviewOperation()
      Deprecated.
      google.cloud.documentai.v1beta3.ProcessResponse.human_review_operation is deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=555
       The name of the operation triggered by the processed document. If the human
       review process isn't triggered, this field is empty. It has the same
       response type and metadata as the long-running operation returned by
       [ReviewDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ReviewDocument].
       
      string human_review_operation = 2 [deprecated = true];
      Returns:
      This builder for chaining.
    • setHumanReviewOperationBytes

      @Deprecated public ProcessResponse.Builder setHumanReviewOperationBytes(com.google.protobuf.ByteString value)
      Deprecated.
      google.cloud.documentai.v1beta3.ProcessResponse.human_review_operation is deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=555
       The name of the operation triggered by the processed document. If the human
       review process isn't triggered, this field is empty. It has the same
       response type and metadata as the long-running operation returned by
       [ReviewDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ReviewDocument].
       
      string human_review_operation = 2 [deprecated = true];
      Parameters:
      value - The bytes for humanReviewOperation to set.
      Returns:
      This builder for chaining.
    • hasHumanReviewStatus

      public boolean hasHumanReviewStatus()
       The status of human review on the processed document.
       
      .google.cloud.documentai.v1beta3.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.v1beta3.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.v1beta3.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.v1beta3.HumanReviewStatus human_review_status = 3;
    • mergeHumanReviewStatus

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

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

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

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