Class ReviewDocumentOperationMetadata.Builder

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

public static final class ReviewDocumentOperationMetadata.Builder extends com.google.protobuf.GeneratedMessage.Builder<ReviewDocumentOperationMetadata.Builder> implements ReviewDocumentOperationMetadataOrBuilder
 The long-running operation metadata for the
 [ReviewDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ReviewDocument]
 method.
 
Protobuf type google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata
  • 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<ReviewDocumentOperationMetadata.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<ReviewDocumentOperationMetadata.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<ReviewDocumentOperationMetadata.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public ReviewDocumentOperationMetadata.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<ReviewDocumentOperationMetadata.Builder>
      Throws:
      IOException
    • getStateValue

      public int getStateValue()
       Used only when Operation.done is false.
       
      .google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata.State state = 1;
      Specified by:
      getStateValue in interface ReviewDocumentOperationMetadataOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public ReviewDocumentOperationMetadata.Builder setStateValue(int value)
       Used only when Operation.done is false.
       
      .google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata.State state = 1;
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

       Used only when Operation.done is false.
       
      .google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata.State state = 1;
      Specified by:
      getState in interface ReviewDocumentOperationMetadataOrBuilder
      Returns:
      The state.
    • setState

       Used only when Operation.done is false.
       
      .google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata.State state = 1;
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

       Used only when Operation.done is false.
       
      .google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata.State state = 1;
      Returns:
      This builder for chaining.
    • getStateMessage

      public String getStateMessage()
       A message providing more details about the current state of processing.
       For example, the error message if the operation is failed.
       
      string state_message = 2;
      Specified by:
      getStateMessage in interface ReviewDocumentOperationMetadataOrBuilder
      Returns:
      The stateMessage.
    • getStateMessageBytes

      public com.google.protobuf.ByteString getStateMessageBytes()
       A message providing more details about the current state of processing.
       For example, the error message if the operation is failed.
       
      string state_message = 2;
      Specified by:
      getStateMessageBytes in interface ReviewDocumentOperationMetadataOrBuilder
      Returns:
      The bytes for stateMessage.
    • setStateMessage

      public ReviewDocumentOperationMetadata.Builder setStateMessage(String value)
       A message providing more details about the current state of processing.
       For example, the error message if the operation is failed.
       
      string state_message = 2;
      Parameters:
      value - The stateMessage to set.
      Returns:
      This builder for chaining.
    • clearStateMessage

      public ReviewDocumentOperationMetadata.Builder clearStateMessage()
       A message providing more details about the current state of processing.
       For example, the error message if the operation is failed.
       
      string state_message = 2;
      Returns:
      This builder for chaining.
    • setStateMessageBytes

      public ReviewDocumentOperationMetadata.Builder setStateMessageBytes(com.google.protobuf.ByteString value)
       A message providing more details about the current state of processing.
       For example, the error message if the operation is failed.
       
      string state_message = 2;
      Parameters:
      value - The bytes for stateMessage to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       The creation time of the operation.
       
      .google.protobuf.Timestamp create_time = 3;
      Specified by:
      hasCreateTime in interface ReviewDocumentOperationMetadataOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       The creation time of the operation.
       
      .google.protobuf.Timestamp create_time = 3;
      Specified by:
      getCreateTime in interface ReviewDocumentOperationMetadataOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public ReviewDocumentOperationMetadata.Builder setCreateTime(com.google.protobuf.Timestamp value)
       The creation time of the operation.
       
      .google.protobuf.Timestamp create_time = 3;
    • setCreateTime

      public ReviewDocumentOperationMetadata.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       The creation time of the operation.
       
      .google.protobuf.Timestamp create_time = 3;
    • mergeCreateTime

      public ReviewDocumentOperationMetadata.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       The creation time of the operation.
       
      .google.protobuf.Timestamp create_time = 3;
    • clearCreateTime

      public ReviewDocumentOperationMetadata.Builder clearCreateTime()
       The creation time of the operation.
       
      .google.protobuf.Timestamp create_time = 3;
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       The creation time of the operation.
       
      .google.protobuf.Timestamp create_time = 3;
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       The creation time of the operation.
       
      .google.protobuf.Timestamp create_time = 3;
      Specified by:
      getCreateTimeOrBuilder in interface ReviewDocumentOperationMetadataOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       The last update time of the operation.
       
      .google.protobuf.Timestamp update_time = 4;
      Specified by:
      hasUpdateTime in interface ReviewDocumentOperationMetadataOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       The last update time of the operation.
       
      .google.protobuf.Timestamp update_time = 4;
      Specified by:
      getUpdateTime in interface ReviewDocumentOperationMetadataOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public ReviewDocumentOperationMetadata.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       The last update time of the operation.
       
      .google.protobuf.Timestamp update_time = 4;
    • setUpdateTime

      public ReviewDocumentOperationMetadata.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       The last update time of the operation.
       
      .google.protobuf.Timestamp update_time = 4;
    • mergeUpdateTime

      public ReviewDocumentOperationMetadata.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       The last update time of the operation.
       
      .google.protobuf.Timestamp update_time = 4;
    • clearUpdateTime

      public ReviewDocumentOperationMetadata.Builder clearUpdateTime()
       The last update time of the operation.
       
      .google.protobuf.Timestamp update_time = 4;
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       The last update time of the operation.
       
      .google.protobuf.Timestamp update_time = 4;
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       The last update time of the operation.
       
      .google.protobuf.Timestamp update_time = 4;
      Specified by:
      getUpdateTimeOrBuilder in interface ReviewDocumentOperationMetadataOrBuilder
    • hasCommonMetadata

      public boolean hasCommonMetadata()
       The basic metadata of the long-running operation.
       
      .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5;
      Specified by:
      hasCommonMetadata in interface ReviewDocumentOperationMetadataOrBuilder
      Returns:
      Whether the commonMetadata field is set.
    • getCommonMetadata

      public CommonOperationMetadata getCommonMetadata()
       The basic metadata of the long-running operation.
       
      .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5;
      Specified by:
      getCommonMetadata in interface ReviewDocumentOperationMetadataOrBuilder
      Returns:
      The commonMetadata.
    • setCommonMetadata

       The basic metadata of the long-running operation.
       
      .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5;
    • setCommonMetadata

       The basic metadata of the long-running operation.
       
      .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5;
    • mergeCommonMetadata

       The basic metadata of the long-running operation.
       
      .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5;
    • clearCommonMetadata

      public ReviewDocumentOperationMetadata.Builder clearCommonMetadata()
       The basic metadata of the long-running operation.
       
      .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5;
    • getCommonMetadataBuilder

      public CommonOperationMetadata.Builder getCommonMetadataBuilder()
       The basic metadata of the long-running operation.
       
      .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5;
    • getCommonMetadataOrBuilder

      public CommonOperationMetadataOrBuilder getCommonMetadataOrBuilder()
       The basic metadata of the long-running operation.
       
      .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5;
      Specified by:
      getCommonMetadataOrBuilder in interface ReviewDocumentOperationMetadataOrBuilder
    • getQuestionId

      public String getQuestionId()
       The Crowd Compute question ID.
       
      string question_id = 6;
      Specified by:
      getQuestionId in interface ReviewDocumentOperationMetadataOrBuilder
      Returns:
      The questionId.
    • getQuestionIdBytes

      public com.google.protobuf.ByteString getQuestionIdBytes()
       The Crowd Compute question ID.
       
      string question_id = 6;
      Specified by:
      getQuestionIdBytes in interface ReviewDocumentOperationMetadataOrBuilder
      Returns:
      The bytes for questionId.
    • setQuestionId

      public ReviewDocumentOperationMetadata.Builder setQuestionId(String value)
       The Crowd Compute question ID.
       
      string question_id = 6;
      Parameters:
      value - The questionId to set.
      Returns:
      This builder for chaining.
    • clearQuestionId

      public ReviewDocumentOperationMetadata.Builder clearQuestionId()
       The Crowd Compute question ID.
       
      string question_id = 6;
      Returns:
      This builder for chaining.
    • setQuestionIdBytes

      public ReviewDocumentOperationMetadata.Builder setQuestionIdBytes(com.google.protobuf.ByteString value)
       The Crowd Compute question ID.
       
      string question_id = 6;
      Parameters:
      value - The bytes for questionId to set.
      Returns:
      This builder for chaining.