Class CommonLongRunningOperationMetadata.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<CommonLongRunningOperationMetadata.Builder>
com.google.storage.control.v2.CommonLongRunningOperationMetadata.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, CommonLongRunningOperationMetadataOrBuilder, Cloneable
Enclosing class:
CommonLongRunningOperationMetadata

public static final class CommonLongRunningOperationMetadata.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CommonLongRunningOperationMetadata.Builder> implements CommonLongRunningOperationMetadataOrBuilder
 The message contains metadata that is common to all Storage Control
 long-running operations, present in its `google.longrunning.Operation`
 messages, and accessible via `metadata.common_metadata`.
 
Protobuf type google.storage.control.v2.CommonLongRunningOperationMetadata
  • Method Details

    • 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<CommonLongRunningOperationMetadata.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<CommonLongRunningOperationMetadata.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<CommonLongRunningOperationMetadata.Builder>
    • getDefaultInstanceForType

      public CommonLongRunningOperationMetadata 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 CommonLongRunningOperationMetadata buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<CommonLongRunningOperationMetadata.Builder>
    • setField

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

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

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

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

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

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

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<CommonLongRunningOperationMetadata.Builder>
    • mergeFrom

      public CommonLongRunningOperationMetadata.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<CommonLongRunningOperationMetadata.Builder>
      Throws:
      IOException
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The time the operation was created.
       
      .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface CommonLongRunningOperationMetadataOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The time the operation was created.
       
      .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface CommonLongRunningOperationMetadataOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public CommonLongRunningOperationMetadata.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time the operation was created.
       
      .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public CommonLongRunningOperationMetadata.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time the operation was created.
       
      .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public CommonLongRunningOperationMetadata.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time the operation was created.
       
      .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

       Output only. The time the operation was created.
       
      .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. The time the operation was created.
       
      .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The time the operation was created.
       
      .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface CommonLongRunningOperationMetadataOrBuilder
    • hasEndTime

      public boolean hasEndTime()
       Output only. The time the operation finished running.
       
      .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasEndTime in interface CommonLongRunningOperationMetadataOrBuilder
      Returns:
      Whether the endTime field is set.
    • getEndTime

      public com.google.protobuf.Timestamp getEndTime()
       Output only. The time the operation finished running.
       
      .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEndTime in interface CommonLongRunningOperationMetadataOrBuilder
      Returns:
      The endTime.
    • setEndTime

      public CommonLongRunningOperationMetadata.Builder setEndTime(com.google.protobuf.Timestamp value)
       Output only. The time the operation finished running.
       
      .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setEndTime

      public CommonLongRunningOperationMetadata.Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time the operation finished running.
       
      .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeEndTime

      public CommonLongRunningOperationMetadata.Builder mergeEndTime(com.google.protobuf.Timestamp value)
       Output only. The time the operation finished running.
       
      .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearEndTime

       Output only. The time the operation finished running.
       
      .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getEndTimeBuilder

      public com.google.protobuf.Timestamp.Builder getEndTimeBuilder()
       Output only. The time the operation finished running.
       
      .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getEndTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()
       Output only. The time the operation finished running.
       
      .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEndTimeOrBuilder in interface CommonLongRunningOperationMetadataOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. The time the operation was last modified.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface CommonLongRunningOperationMetadataOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. The time the operation was last modified.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface CommonLongRunningOperationMetadataOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public CommonLongRunningOperationMetadata.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The time the operation was last modified.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public CommonLongRunningOperationMetadata.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time the operation was last modified.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public CommonLongRunningOperationMetadata.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The time the operation was last modified.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

       Output only. The time the operation was last modified.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. The time the operation was last modified.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. The time the operation was last modified.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface CommonLongRunningOperationMetadataOrBuilder
    • getType

      public String getType()
       Output only. The type of operation invoked.
       
      string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getType in interface CommonLongRunningOperationMetadataOrBuilder
      Returns:
      The type.
    • getTypeBytes

      public com.google.protobuf.ByteString getTypeBytes()
       Output only. The type of operation invoked.
       
      string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTypeBytes in interface CommonLongRunningOperationMetadataOrBuilder
      Returns:
      The bytes for type.
    • setType

       Output only. The type of operation invoked.
       
      string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

       Output only. The type of operation invoked.
       
      string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setTypeBytes

      public CommonLongRunningOperationMetadata.Builder setTypeBytes(com.google.protobuf.ByteString value)
       Output only. The type of operation invoked.
       
      string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for type to set.
      Returns:
      This builder for chaining.
    • getRequestedCancellation

      public boolean getRequestedCancellation()
       Output only. Identifies whether the user has requested cancellation.
       
      bool requested_cancellation = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRequestedCancellation in interface CommonLongRunningOperationMetadataOrBuilder
      Returns:
      The requestedCancellation.
    • setRequestedCancellation

      public CommonLongRunningOperationMetadata.Builder setRequestedCancellation(boolean value)
       Output only. Identifies whether the user has requested cancellation.
       
      bool requested_cancellation = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The requestedCancellation to set.
      Returns:
      This builder for chaining.
    • clearRequestedCancellation

      public CommonLongRunningOperationMetadata.Builder clearRequestedCancellation()
       Output only. Identifies whether the user has requested cancellation.
       
      bool requested_cancellation = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getProgressPercent

      public int getProgressPercent()
       Output only. The estimated progress of the operation in percentage [0,
       100]. The value -1 means the progress is unknown.
       
      int32 progress_percent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getProgressPercent in interface CommonLongRunningOperationMetadataOrBuilder
      Returns:
      The progressPercent.
    • setProgressPercent

      public CommonLongRunningOperationMetadata.Builder setProgressPercent(int value)
       Output only. The estimated progress of the operation in percentage [0,
       100]. The value -1 means the progress is unknown.
       
      int32 progress_percent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The progressPercent to set.
      Returns:
      This builder for chaining.
    • clearProgressPercent

      public CommonLongRunningOperationMetadata.Builder clearProgressPercent()
       Output only. The estimated progress of the operation in percentage [0,
       100]. The value -1 means the progress is unknown.
       
      int32 progress_percent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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