Class 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.GeneratedMessageV3.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.v1p4beta1.BatchOperationMetadata
    • 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<BatchOperationMetadata.Builder>
      • clear

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

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

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

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

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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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.v1p4beta1.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.v1p4beta1.BatchOperationMetadata.State state = 1;
        Parameters:
        value - The enum numeric value on the wire for state to set.
        Returns:
        This builder for chaining.
      • clearState

        public BatchOperationMetadata.Builder clearState()
         The current state of the batch operation.
         
        .google.cloud.vision.v1p4beta1.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
      • setUnknownFields

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

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