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

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

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

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

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

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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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;
      • 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=451
         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=451
         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=451
         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=451
         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=451
         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;
      • setUnknownFields

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

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