Class Bucket.Lifecycle.Builder

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

public static final class Bucket.Lifecycle.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Lifecycle.Builder> implements Bucket.LifecycleOrBuilder
 Lifecycle properties of a bucket.
 For more information, see https://cloud.google.com/storage/docs/lifecycle.
 
Protobuf type google.storage.v2.Bucket.Lifecycle
  • 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.Lifecycle.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

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

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

      public List<Bucket.Lifecycle.Rule> getRuleList()
       Optional. A lifecycle management rule, which is made of an action to take
       and the condition(s) under which the action will be taken.
       
      repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRuleList in interface Bucket.LifecycleOrBuilder
    • getRuleCount

      public int getRuleCount()
       Optional. A lifecycle management rule, which is made of an action to take
       and the condition(s) under which the action will be taken.
       
      repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRuleCount in interface Bucket.LifecycleOrBuilder
    • getRule

      public Bucket.Lifecycle.Rule getRule(int index)
       Optional. A lifecycle management rule, which is made of an action to take
       and the condition(s) under which the action will be taken.
       
      repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRule in interface Bucket.LifecycleOrBuilder
    • setRule

      public Bucket.Lifecycle.Builder setRule(int index, Bucket.Lifecycle.Rule value)
       Optional. A lifecycle management rule, which is made of an action to take
       and the condition(s) under which the action will be taken.
       
      repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1 [(.google.api.field_behavior) = OPTIONAL];
    • setRule

      public Bucket.Lifecycle.Builder setRule(int index, Bucket.Lifecycle.Rule.Builder builderForValue)
       Optional. A lifecycle management rule, which is made of an action to take
       and the condition(s) under which the action will be taken.
       
      repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addRule

       Optional. A lifecycle management rule, which is made of an action to take
       and the condition(s) under which the action will be taken.
       
      repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addRule

      public Bucket.Lifecycle.Builder addRule(int index, Bucket.Lifecycle.Rule value)
       Optional. A lifecycle management rule, which is made of an action to take
       and the condition(s) under which the action will be taken.
       
      repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addRule

      public Bucket.Lifecycle.Builder addRule(Bucket.Lifecycle.Rule.Builder builderForValue)
       Optional. A lifecycle management rule, which is made of an action to take
       and the condition(s) under which the action will be taken.
       
      repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addRule

      public Bucket.Lifecycle.Builder addRule(int index, Bucket.Lifecycle.Rule.Builder builderForValue)
       Optional. A lifecycle management rule, which is made of an action to take
       and the condition(s) under which the action will be taken.
       
      repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addAllRule

      public Bucket.Lifecycle.Builder addAllRule(Iterable<? extends Bucket.Lifecycle.Rule> values)
       Optional. A lifecycle management rule, which is made of an action to take
       and the condition(s) under which the action will be taken.
       
      repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1 [(.google.api.field_behavior) = OPTIONAL];
    • clearRule

      public Bucket.Lifecycle.Builder clearRule()
       Optional. A lifecycle management rule, which is made of an action to take
       and the condition(s) under which the action will be taken.
       
      repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1 [(.google.api.field_behavior) = OPTIONAL];
    • removeRule

      public Bucket.Lifecycle.Builder removeRule(int index)
       Optional. A lifecycle management rule, which is made of an action to take
       and the condition(s) under which the action will be taken.
       
      repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getRuleBuilder

      public Bucket.Lifecycle.Rule.Builder getRuleBuilder(int index)
       Optional. A lifecycle management rule, which is made of an action to take
       and the condition(s) under which the action will be taken.
       
      repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getRuleOrBuilder

      public Bucket.Lifecycle.RuleOrBuilder getRuleOrBuilder(int index)
       Optional. A lifecycle management rule, which is made of an action to take
       and the condition(s) under which the action will be taken.
       
      repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRuleOrBuilder in interface Bucket.LifecycleOrBuilder
    • getRuleOrBuilderList

      public List<? extends Bucket.Lifecycle.RuleOrBuilder> getRuleOrBuilderList()
       Optional. A lifecycle management rule, which is made of an action to take
       and the condition(s) under which the action will be taken.
       
      repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRuleOrBuilderList in interface Bucket.LifecycleOrBuilder
    • addRuleBuilder

      public Bucket.Lifecycle.Rule.Builder addRuleBuilder()
       Optional. A lifecycle management rule, which is made of an action to take
       and the condition(s) under which the action will be taken.
       
      repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addRuleBuilder

      public Bucket.Lifecycle.Rule.Builder addRuleBuilder(int index)
       Optional. A lifecycle management rule, which is made of an action to take
       and the condition(s) under which the action will be taken.
       
      repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getRuleBuilderList

      public List<Bucket.Lifecycle.Rule.Builder> getRuleBuilderList()
       Optional. A lifecycle management rule, which is made of an action to take
       and the condition(s) under which the action will be taken.
       
      repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1 [(.google.api.field_behavior) = OPTIONAL];
    • setUnknownFields

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

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