Class Bucket.Autoclass.Builder

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

public static final class Bucket.Autoclass.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Autoclass.Builder> implements Bucket.AutoclassOrBuilder
 Configuration for a bucket's Autoclass feature.
 
Protobuf type google.storage.v2.Bucket.Autoclass
  • 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<Bucket.Autoclass.Builder>
    • clear

      public Bucket.Autoclass.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<Bucket.Autoclass.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<Bucket.Autoclass.Builder>
    • getDefaultInstanceForType

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

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

      public Bucket.Autoclass buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

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

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

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

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

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

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

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

      public Bucket.Autoclass.Builder mergeFrom(Bucket.Autoclass other)
    • isInitialized

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

      public Bucket.Autoclass.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<Bucket.Autoclass.Builder>
      Throws:
      IOException
    • getEnabled

      public boolean getEnabled()
       Optional. Enables Autoclass.
       
      bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEnabled in interface Bucket.AutoclassOrBuilder
      Returns:
      The enabled.
    • setEnabled

      public Bucket.Autoclass.Builder setEnabled(boolean value)
       Optional. Enables Autoclass.
       
      bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enabled to set.
      Returns:
      This builder for chaining.
    • clearEnabled

      public Bucket.Autoclass.Builder clearEnabled()
       Optional. Enables Autoclass.
       
      bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasToggleTime

      public boolean hasToggleTime()
       Output only. Latest instant at which the `enabled` field was set to true
       after being disabled/unconfigured or set to false after being enabled. If
       Autoclass is enabled when the bucket is created, the toggle_time is set
       to the bucket creation time.
       
      .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasToggleTime in interface Bucket.AutoclassOrBuilder
      Returns:
      Whether the toggleTime field is set.
    • getToggleTime

      public com.google.protobuf.Timestamp getToggleTime()
       Output only. Latest instant at which the `enabled` field was set to true
       after being disabled/unconfigured or set to false after being enabled. If
       Autoclass is enabled when the bucket is created, the toggle_time is set
       to the bucket creation time.
       
      .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getToggleTime in interface Bucket.AutoclassOrBuilder
      Returns:
      The toggleTime.
    • setToggleTime

      public Bucket.Autoclass.Builder setToggleTime(com.google.protobuf.Timestamp value)
       Output only. Latest instant at which the `enabled` field was set to true
       after being disabled/unconfigured or set to false after being enabled. If
       Autoclass is enabled when the bucket is created, the toggle_time is set
       to the bucket creation time.
       
      .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setToggleTime

      public Bucket.Autoclass.Builder setToggleTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Latest instant at which the `enabled` field was set to true
       after being disabled/unconfigured or set to false after being enabled. If
       Autoclass is enabled when the bucket is created, the toggle_time is set
       to the bucket creation time.
       
      .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeToggleTime

      public Bucket.Autoclass.Builder mergeToggleTime(com.google.protobuf.Timestamp value)
       Output only. Latest instant at which the `enabled` field was set to true
       after being disabled/unconfigured or set to false after being enabled. If
       Autoclass is enabled when the bucket is created, the toggle_time is set
       to the bucket creation time.
       
      .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearToggleTime

      public Bucket.Autoclass.Builder clearToggleTime()
       Output only. Latest instant at which the `enabled` field was set to true
       after being disabled/unconfigured or set to false after being enabled. If
       Autoclass is enabled when the bucket is created, the toggle_time is set
       to the bucket creation time.
       
      .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getToggleTimeBuilder

      public com.google.protobuf.Timestamp.Builder getToggleTimeBuilder()
       Output only. Latest instant at which the `enabled` field was set to true
       after being disabled/unconfigured or set to false after being enabled. If
       Autoclass is enabled when the bucket is created, the toggle_time is set
       to the bucket creation time.
       
      .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getToggleTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getToggleTimeOrBuilder()
       Output only. Latest instant at which the `enabled` field was set to true
       after being disabled/unconfigured or set to false after being enabled. If
       Autoclass is enabled when the bucket is created, the toggle_time is set
       to the bucket creation time.
       
      .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getToggleTimeOrBuilder in interface Bucket.AutoclassOrBuilder
    • hasTerminalStorageClass

      public boolean hasTerminalStorageClass()
       An object in an Autoclass bucket will eventually cool down to the
       terminal storage class if there is no access to the object.
       The only valid values are NEARLINE and ARCHIVE.
       
      optional string terminal_storage_class = 3;
      Specified by:
      hasTerminalStorageClass in interface Bucket.AutoclassOrBuilder
      Returns:
      Whether the terminalStorageClass field is set.
    • getTerminalStorageClass

      public String getTerminalStorageClass()
       An object in an Autoclass bucket will eventually cool down to the
       terminal storage class if there is no access to the object.
       The only valid values are NEARLINE and ARCHIVE.
       
      optional string terminal_storage_class = 3;
      Specified by:
      getTerminalStorageClass in interface Bucket.AutoclassOrBuilder
      Returns:
      The terminalStorageClass.
    • getTerminalStorageClassBytes

      public com.google.protobuf.ByteString getTerminalStorageClassBytes()
       An object in an Autoclass bucket will eventually cool down to the
       terminal storage class if there is no access to the object.
       The only valid values are NEARLINE and ARCHIVE.
       
      optional string terminal_storage_class = 3;
      Specified by:
      getTerminalStorageClassBytes in interface Bucket.AutoclassOrBuilder
      Returns:
      The bytes for terminalStorageClass.
    • setTerminalStorageClass

      public Bucket.Autoclass.Builder setTerminalStorageClass(String value)
       An object in an Autoclass bucket will eventually cool down to the
       terminal storage class if there is no access to the object.
       The only valid values are NEARLINE and ARCHIVE.
       
      optional string terminal_storage_class = 3;
      Parameters:
      value - The terminalStorageClass to set.
      Returns:
      This builder for chaining.
    • clearTerminalStorageClass

      public Bucket.Autoclass.Builder clearTerminalStorageClass()
       An object in an Autoclass bucket will eventually cool down to the
       terminal storage class if there is no access to the object.
       The only valid values are NEARLINE and ARCHIVE.
       
      optional string terminal_storage_class = 3;
      Returns:
      This builder for chaining.
    • setTerminalStorageClassBytes

      public Bucket.Autoclass.Builder setTerminalStorageClassBytes(com.google.protobuf.ByteString value)
       An object in an Autoclass bucket will eventually cool down to the
       terminal storage class if there is no access to the object.
       The only valid values are NEARLINE and ARCHIVE.
       
      optional string terminal_storage_class = 3;
      Parameters:
      value - The bytes for terminalStorageClass to set.
      Returns:
      This builder for chaining.
    • hasTerminalStorageClassUpdateTime

      public boolean hasTerminalStorageClassUpdateTime()
       Output only. Latest instant at which the autoclass terminal storage class
       was updated.
       
      optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasTerminalStorageClassUpdateTime in interface Bucket.AutoclassOrBuilder
      Returns:
      Whether the terminalStorageClassUpdateTime field is set.
    • getTerminalStorageClassUpdateTime

      public com.google.protobuf.Timestamp getTerminalStorageClassUpdateTime()
       Output only. Latest instant at which the autoclass terminal storage class
       was updated.
       
      optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTerminalStorageClassUpdateTime in interface Bucket.AutoclassOrBuilder
      Returns:
      The terminalStorageClassUpdateTime.
    • setTerminalStorageClassUpdateTime

      public Bucket.Autoclass.Builder setTerminalStorageClassUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Latest instant at which the autoclass terminal storage class
       was updated.
       
      optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setTerminalStorageClassUpdateTime

      public Bucket.Autoclass.Builder setTerminalStorageClassUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Latest instant at which the autoclass terminal storage class
       was updated.
       
      optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeTerminalStorageClassUpdateTime

      public Bucket.Autoclass.Builder mergeTerminalStorageClassUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Latest instant at which the autoclass terminal storage class
       was updated.
       
      optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearTerminalStorageClassUpdateTime

      public Bucket.Autoclass.Builder clearTerminalStorageClassUpdateTime()
       Output only. Latest instant at which the autoclass terminal storage class
       was updated.
       
      optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getTerminalStorageClassUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getTerminalStorageClassUpdateTimeBuilder()
       Output only. Latest instant at which the autoclass terminal storage class
       was updated.
       
      optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getTerminalStorageClassUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getTerminalStorageClassUpdateTimeOrBuilder()
       Output only. Latest instant at which the autoclass terminal storage class
       was updated.
       
      optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTerminalStorageClassUpdateTimeOrBuilder in interface Bucket.AutoclassOrBuilder
    • setUnknownFields

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

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