Class BatchOperationMetadata.Builder

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

public static final class BatchOperationMetadata.Builder extends com.google.protobuf.GeneratedMessage.Builder<BatchOperationMetadata.Builder> implements BatchOperationMetadataOrBuilder
 Metadata for the batch operations such as the current state.

 This is included in the `metadata` field of the `Operation` returned by the
 `GetOperation` call of the `google::longrunning::Operations` service.
 
Protobuf type google.cloud.vision.v1.BatchOperationMetadata
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    The time when the batch request is finished and [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
    The current state of the batch operation.
    The time when the batch request was submitted to the server.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Timestamp
    The time when the batch request is finished and [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
    com.google.protobuf.Timestamp.Builder
    The time when the batch request is finished and [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
    com.google.protobuf.TimestampOrBuilder
    The time when the batch request is finished and [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
    The current state of the batch operation.
    int
    The current state of the batch operation.
    com.google.protobuf.Timestamp
    The time when the batch request was submitted to the server.
    com.google.protobuf.Timestamp.Builder
    The time when the batch request was submitted to the server.
    com.google.protobuf.TimestampOrBuilder
    The time when the batch request was submitted to the server.
    boolean
    The time when the batch request is finished and [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
    boolean
    The time when the batch request was submitted to the server.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
    mergeEndTime(com.google.protobuf.Timestamp value)
    The time when the batch request is finished and [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    mergeSubmitTime(com.google.protobuf.Timestamp value)
    The time when the batch request was submitted to the server.
    setEndTime(com.google.protobuf.Timestamp value)
    The time when the batch request is finished and [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
    setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
    The time when the batch request is finished and [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
    The current state of the batch operation.
    setStateValue(int value)
    The current state of the batch operation.
    setSubmitTime(com.google.protobuf.Timestamp value)
    The time when the batch request was submitted to the server.
    setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue)
    The time when the batch request was submitted to the server.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 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<BatchOperationMetadata.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<BatchOperationMetadata.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<BatchOperationMetadata.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

      public int getStateValue()
       The current state of the batch operation.
       
      .google.cloud.vision.v1.BatchOperationMetadata.State state = 1;
      Specified by:
      getStateValue in interface BatchOperationMetadataOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public BatchOperationMetadata.Builder setStateValue(int value)
       The current state of the batch operation.
       
      .google.cloud.vision.v1.BatchOperationMetadata.State state = 1;
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

      public BatchOperationMetadata.State getState()
       The current state of the batch operation.
       
      .google.cloud.vision.v1.BatchOperationMetadata.State state = 1;
      Specified by:
      getState in interface BatchOperationMetadataOrBuilder
      Returns:
      The state.
    • setState

       The current state of the batch operation.
       
      .google.cloud.vision.v1.BatchOperationMetadata.State state = 1;
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public BatchOperationMetadata.Builder clearState()
       The current state of the batch operation.
       
      .google.cloud.vision.v1.BatchOperationMetadata.State state = 1;
      Returns:
      This builder for chaining.
    • hasSubmitTime

      public boolean hasSubmitTime()
       The time when the batch request was submitted to the server.
       
      .google.protobuf.Timestamp submit_time = 2;
      Specified by:
      hasSubmitTime in interface BatchOperationMetadataOrBuilder
      Returns:
      Whether the submitTime field is set.
    • getSubmitTime

      public com.google.protobuf.Timestamp getSubmitTime()
       The time when the batch request was submitted to the server.
       
      .google.protobuf.Timestamp submit_time = 2;
      Specified by:
      getSubmitTime in interface BatchOperationMetadataOrBuilder
      Returns:
      The submitTime.
    • setSubmitTime

      public BatchOperationMetadata.Builder setSubmitTime(com.google.protobuf.Timestamp value)
       The time when the batch request was submitted to the server.
       
      .google.protobuf.Timestamp submit_time = 2;
    • setSubmitTime

      public BatchOperationMetadata.Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue)
       The time when the batch request was submitted to the server.
       
      .google.protobuf.Timestamp submit_time = 2;
    • mergeSubmitTime

      public BatchOperationMetadata.Builder mergeSubmitTime(com.google.protobuf.Timestamp value)
       The time when the batch request was submitted to the server.
       
      .google.protobuf.Timestamp submit_time = 2;
    • clearSubmitTime

      public BatchOperationMetadata.Builder clearSubmitTime()
       The time when the batch request was submitted to the server.
       
      .google.protobuf.Timestamp submit_time = 2;
    • getSubmitTimeBuilder

      public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder()
       The time when the batch request was submitted to the server.
       
      .google.protobuf.Timestamp submit_time = 2;
    • getSubmitTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder()
       The time when the batch request was submitted to the server.
       
      .google.protobuf.Timestamp submit_time = 2;
      Specified by:
      getSubmitTimeOrBuilder in interface BatchOperationMetadataOrBuilder
    • hasEndTime

      public boolean hasEndTime()
       The time when the batch request is finished and
       [google.longrunning.Operation.done][google.longrunning.Operation.done] is
       set to true.
       
      .google.protobuf.Timestamp end_time = 3;
      Specified by:
      hasEndTime in interface BatchOperationMetadataOrBuilder
      Returns:
      Whether the endTime field is set.
    • getEndTime

      public com.google.protobuf.Timestamp getEndTime()
       The time when the batch request is finished and
       [google.longrunning.Operation.done][google.longrunning.Operation.done] is
       set to true.
       
      .google.protobuf.Timestamp end_time = 3;
      Specified by:
      getEndTime in interface BatchOperationMetadataOrBuilder
      Returns:
      The endTime.
    • setEndTime

      public BatchOperationMetadata.Builder setEndTime(com.google.protobuf.Timestamp value)
       The time when the batch request is finished and
       [google.longrunning.Operation.done][google.longrunning.Operation.done] is
       set to true.
       
      .google.protobuf.Timestamp end_time = 3;
    • setEndTime

      public BatchOperationMetadata.Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
       The time when the batch request is finished and
       [google.longrunning.Operation.done][google.longrunning.Operation.done] is
       set to true.
       
      .google.protobuf.Timestamp end_time = 3;
    • mergeEndTime

      public BatchOperationMetadata.Builder mergeEndTime(com.google.protobuf.Timestamp value)
       The time when the batch request is finished and
       [google.longrunning.Operation.done][google.longrunning.Operation.done] is
       set to true.
       
      .google.protobuf.Timestamp end_time = 3;
    • clearEndTime

      public BatchOperationMetadata.Builder clearEndTime()
       The time when the batch request is finished and
       [google.longrunning.Operation.done][google.longrunning.Operation.done] is
       set to true.
       
      .google.protobuf.Timestamp end_time = 3;
    • getEndTimeBuilder

      public com.google.protobuf.Timestamp.Builder getEndTimeBuilder()
       The time when the batch request is finished and
       [google.longrunning.Operation.done][google.longrunning.Operation.done] is
       set to true.
       
      .google.protobuf.Timestamp end_time = 3;
    • getEndTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()
       The time when the batch request is finished and
       [google.longrunning.Operation.done][google.longrunning.Operation.done] is
       set to true.
       
      .google.protobuf.Timestamp end_time = 3;
      Specified by:
      getEndTimeOrBuilder in interface BatchOperationMetadataOrBuilder