Class Bucket.Lifecycle.Rule.Condition.Builder

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

public static final class Bucket.Lifecycle.Rule.Condition.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Lifecycle.Rule.Condition.Builder> implements Bucket.Lifecycle.Rule.ConditionOrBuilder
 A condition of an object which triggers some action.
 
Protobuf type google.storage.v2.Bucket.Lifecycle.Rule.Condition
  • 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.Rule.Condition.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.Rule.Condition.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.Rule.Condition.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

      public boolean hasAgeDays()
       Age of an object (in days). This condition is satisfied when an
       object reaches the specified age.
       A value of 0 indicates that all objects immediately match this
       condition.
       
      optional int32 age_days = 1;
      Specified by:
      hasAgeDays in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
      Returns:
      Whether the ageDays field is set.
    • getAgeDays

      public int getAgeDays()
       Age of an object (in days). This condition is satisfied when an
       object reaches the specified age.
       A value of 0 indicates that all objects immediately match this
       condition.
       
      optional int32 age_days = 1;
      Specified by:
      getAgeDays in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
      Returns:
      The ageDays.
    • setAgeDays

      public Bucket.Lifecycle.Rule.Condition.Builder setAgeDays(int value)
       Age of an object (in days). This condition is satisfied when an
       object reaches the specified age.
       A value of 0 indicates that all objects immediately match this
       condition.
       
      optional int32 age_days = 1;
      Parameters:
      value - The ageDays to set.
      Returns:
      This builder for chaining.
    • clearAgeDays

       Age of an object (in days). This condition is satisfied when an
       object reaches the specified age.
       A value of 0 indicates that all objects immediately match this
       condition.
       
      optional int32 age_days = 1;
      Returns:
      This builder for chaining.
    • hasCreatedBefore

      public boolean hasCreatedBefore()
       This condition is satisfied when an object is created before midnight
       of the specified date in UTC.
       
      .google.type.Date created_before = 2;
      Specified by:
      hasCreatedBefore in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
      Returns:
      Whether the createdBefore field is set.
    • getCreatedBefore

      public com.google.type.Date getCreatedBefore()
       This condition is satisfied when an object is created before midnight
       of the specified date in UTC.
       
      .google.type.Date created_before = 2;
      Specified by:
      getCreatedBefore in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
      Returns:
      The createdBefore.
    • setCreatedBefore

      public Bucket.Lifecycle.Rule.Condition.Builder setCreatedBefore(com.google.type.Date value)
       This condition is satisfied when an object is created before midnight
       of the specified date in UTC.
       
      .google.type.Date created_before = 2;
    • setCreatedBefore

      public Bucket.Lifecycle.Rule.Condition.Builder setCreatedBefore(com.google.type.Date.Builder builderForValue)
       This condition is satisfied when an object is created before midnight
       of the specified date in UTC.
       
      .google.type.Date created_before = 2;
    • mergeCreatedBefore

      public Bucket.Lifecycle.Rule.Condition.Builder mergeCreatedBefore(com.google.type.Date value)
       This condition is satisfied when an object is created before midnight
       of the specified date in UTC.
       
      .google.type.Date created_before = 2;
    • clearCreatedBefore

      public Bucket.Lifecycle.Rule.Condition.Builder clearCreatedBefore()
       This condition is satisfied when an object is created before midnight
       of the specified date in UTC.
       
      .google.type.Date created_before = 2;
    • getCreatedBeforeBuilder

      public com.google.type.Date.Builder getCreatedBeforeBuilder()
       This condition is satisfied when an object is created before midnight
       of the specified date in UTC.
       
      .google.type.Date created_before = 2;
    • getCreatedBeforeOrBuilder

      public com.google.type.DateOrBuilder getCreatedBeforeOrBuilder()
       This condition is satisfied when an object is created before midnight
       of the specified date in UTC.
       
      .google.type.Date created_before = 2;
      Specified by:
      getCreatedBeforeOrBuilder in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
    • hasIsLive

      public boolean hasIsLive()
       Relevant only for versioned objects. If the value is
       `true`, this condition matches live objects; if the value
       is `false`, it matches archived objects.
       
      optional bool is_live = 3;
      Specified by:
      hasIsLive in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
      Returns:
      Whether the isLive field is set.
    • getIsLive

      public boolean getIsLive()
       Relevant only for versioned objects. If the value is
       `true`, this condition matches live objects; if the value
       is `false`, it matches archived objects.
       
      optional bool is_live = 3;
      Specified by:
      getIsLive in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
      Returns:
      The isLive.
    • setIsLive

      public Bucket.Lifecycle.Rule.Condition.Builder setIsLive(boolean value)
       Relevant only for versioned objects. If the value is
       `true`, this condition matches live objects; if the value
       is `false`, it matches archived objects.
       
      optional bool is_live = 3;
      Parameters:
      value - The isLive to set.
      Returns:
      This builder for chaining.
    • clearIsLive

       Relevant only for versioned objects. If the value is
       `true`, this condition matches live objects; if the value
       is `false`, it matches archived objects.
       
      optional bool is_live = 3;
      Returns:
      This builder for chaining.
    • hasNumNewerVersions

      public boolean hasNumNewerVersions()
       Relevant only for versioned objects. If the value is N, this
       condition is satisfied when there are at least N versions (including
       the live version) newer than this version of the object.
       
      optional int32 num_newer_versions = 4;
      Specified by:
      hasNumNewerVersions in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
      Returns:
      Whether the numNewerVersions field is set.
    • getNumNewerVersions

      public int getNumNewerVersions()
       Relevant only for versioned objects. If the value is N, this
       condition is satisfied when there are at least N versions (including
       the live version) newer than this version of the object.
       
      optional int32 num_newer_versions = 4;
      Specified by:
      getNumNewerVersions in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
      Returns:
      The numNewerVersions.
    • setNumNewerVersions

      public Bucket.Lifecycle.Rule.Condition.Builder setNumNewerVersions(int value)
       Relevant only for versioned objects. If the value is N, this
       condition is satisfied when there are at least N versions (including
       the live version) newer than this version of the object.
       
      optional int32 num_newer_versions = 4;
      Parameters:
      value - The numNewerVersions to set.
      Returns:
      This builder for chaining.
    • clearNumNewerVersions

      public Bucket.Lifecycle.Rule.Condition.Builder clearNumNewerVersions()
       Relevant only for versioned objects. If the value is N, this
       condition is satisfied when there are at least N versions (including
       the live version) newer than this version of the object.
       
      optional int32 num_newer_versions = 4;
      Returns:
      This builder for chaining.
    • getMatchesStorageClassList

      public com.google.protobuf.ProtocolStringList getMatchesStorageClassList()
       Objects having any of the storage classes specified by this condition
       will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
       `NEARLINE`, `COLDLINE`, `STANDARD`, and
       `DURABLE_REDUCED_AVAILABILITY`.
       
      repeated string matches_storage_class = 5;
      Specified by:
      getMatchesStorageClassList in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
      Returns:
      A list containing the matchesStorageClass.
    • getMatchesStorageClassCount

      public int getMatchesStorageClassCount()
       Objects having any of the storage classes specified by this condition
       will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
       `NEARLINE`, `COLDLINE`, `STANDARD`, and
       `DURABLE_REDUCED_AVAILABILITY`.
       
      repeated string matches_storage_class = 5;
      Specified by:
      getMatchesStorageClassCount in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
      Returns:
      The count of matchesStorageClass.
    • getMatchesStorageClass

      public String getMatchesStorageClass(int index)
       Objects having any of the storage classes specified by this condition
       will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
       `NEARLINE`, `COLDLINE`, `STANDARD`, and
       `DURABLE_REDUCED_AVAILABILITY`.
       
      repeated string matches_storage_class = 5;
      Specified by:
      getMatchesStorageClass in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The matchesStorageClass at the given index.
    • getMatchesStorageClassBytes

      public com.google.protobuf.ByteString getMatchesStorageClassBytes(int index)
       Objects having any of the storage classes specified by this condition
       will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
       `NEARLINE`, `COLDLINE`, `STANDARD`, and
       `DURABLE_REDUCED_AVAILABILITY`.
       
      repeated string matches_storage_class = 5;
      Specified by:
      getMatchesStorageClassBytes in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the matchesStorageClass at the given index.
    • setMatchesStorageClass

      public Bucket.Lifecycle.Rule.Condition.Builder setMatchesStorageClass(int index, String value)
       Objects having any of the storage classes specified by this condition
       will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
       `NEARLINE`, `COLDLINE`, `STANDARD`, and
       `DURABLE_REDUCED_AVAILABILITY`.
       
      repeated string matches_storage_class = 5;
      Parameters:
      index - The index to set the value at.
      value - The matchesStorageClass to set.
      Returns:
      This builder for chaining.
    • addMatchesStorageClass

      public Bucket.Lifecycle.Rule.Condition.Builder addMatchesStorageClass(String value)
       Objects having any of the storage classes specified by this condition
       will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
       `NEARLINE`, `COLDLINE`, `STANDARD`, and
       `DURABLE_REDUCED_AVAILABILITY`.
       
      repeated string matches_storage_class = 5;
      Parameters:
      value - The matchesStorageClass to add.
      Returns:
      This builder for chaining.
    • addAllMatchesStorageClass

      public Bucket.Lifecycle.Rule.Condition.Builder addAllMatchesStorageClass(Iterable<String> values)
       Objects having any of the storage classes specified by this condition
       will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
       `NEARLINE`, `COLDLINE`, `STANDARD`, and
       `DURABLE_REDUCED_AVAILABILITY`.
       
      repeated string matches_storage_class = 5;
      Parameters:
      values - The matchesStorageClass to add.
      Returns:
      This builder for chaining.
    • clearMatchesStorageClass

      public Bucket.Lifecycle.Rule.Condition.Builder clearMatchesStorageClass()
       Objects having any of the storage classes specified by this condition
       will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
       `NEARLINE`, `COLDLINE`, `STANDARD`, and
       `DURABLE_REDUCED_AVAILABILITY`.
       
      repeated string matches_storage_class = 5;
      Returns:
      This builder for chaining.
    • addMatchesStorageClassBytes

      public Bucket.Lifecycle.Rule.Condition.Builder addMatchesStorageClassBytes(com.google.protobuf.ByteString value)
       Objects having any of the storage classes specified by this condition
       will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
       `NEARLINE`, `COLDLINE`, `STANDARD`, and
       `DURABLE_REDUCED_AVAILABILITY`.
       
      repeated string matches_storage_class = 5;
      Parameters:
      value - The bytes of the matchesStorageClass to add.
      Returns:
      This builder for chaining.
    • hasDaysSinceCustomTime

      public boolean hasDaysSinceCustomTime()
       Number of days that have elapsed since the custom timestamp set on an
       object.
       The value of the field must be a nonnegative integer.
       
      optional int32 days_since_custom_time = 7;
      Specified by:
      hasDaysSinceCustomTime in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
      Returns:
      Whether the daysSinceCustomTime field is set.
    • getDaysSinceCustomTime

      public int getDaysSinceCustomTime()
       Number of days that have elapsed since the custom timestamp set on an
       object.
       The value of the field must be a nonnegative integer.
       
      optional int32 days_since_custom_time = 7;
      Specified by:
      getDaysSinceCustomTime in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
      Returns:
      The daysSinceCustomTime.
    • setDaysSinceCustomTime

      public Bucket.Lifecycle.Rule.Condition.Builder setDaysSinceCustomTime(int value)
       Number of days that have elapsed since the custom timestamp set on an
       object.
       The value of the field must be a nonnegative integer.
       
      optional int32 days_since_custom_time = 7;
      Parameters:
      value - The daysSinceCustomTime to set.
      Returns:
      This builder for chaining.
    • clearDaysSinceCustomTime

      public Bucket.Lifecycle.Rule.Condition.Builder clearDaysSinceCustomTime()
       Number of days that have elapsed since the custom timestamp set on an
       object.
       The value of the field must be a nonnegative integer.
       
      optional int32 days_since_custom_time = 7;
      Returns:
      This builder for chaining.
    • hasCustomTimeBefore

      public boolean hasCustomTimeBefore()
       An object matches this condition if the custom timestamp set on the
       object is before the specified date in UTC.
       
      .google.type.Date custom_time_before = 8;
      Specified by:
      hasCustomTimeBefore in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
      Returns:
      Whether the customTimeBefore field is set.
    • getCustomTimeBefore

      public com.google.type.Date getCustomTimeBefore()
       An object matches this condition if the custom timestamp set on the
       object is before the specified date in UTC.
       
      .google.type.Date custom_time_before = 8;
      Specified by:
      getCustomTimeBefore in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
      Returns:
      The customTimeBefore.
    • setCustomTimeBefore

      public Bucket.Lifecycle.Rule.Condition.Builder setCustomTimeBefore(com.google.type.Date value)
       An object matches this condition if the custom timestamp set on the
       object is before the specified date in UTC.
       
      .google.type.Date custom_time_before = 8;
    • setCustomTimeBefore

      public Bucket.Lifecycle.Rule.Condition.Builder setCustomTimeBefore(com.google.type.Date.Builder builderForValue)
       An object matches this condition if the custom timestamp set on the
       object is before the specified date in UTC.
       
      .google.type.Date custom_time_before = 8;
    • mergeCustomTimeBefore

      public Bucket.Lifecycle.Rule.Condition.Builder mergeCustomTimeBefore(com.google.type.Date value)
       An object matches this condition if the custom timestamp set on the
       object is before the specified date in UTC.
       
      .google.type.Date custom_time_before = 8;
    • clearCustomTimeBefore

      public Bucket.Lifecycle.Rule.Condition.Builder clearCustomTimeBefore()
       An object matches this condition if the custom timestamp set on the
       object is before the specified date in UTC.
       
      .google.type.Date custom_time_before = 8;
    • getCustomTimeBeforeBuilder

      public com.google.type.Date.Builder getCustomTimeBeforeBuilder()
       An object matches this condition if the custom timestamp set on the
       object is before the specified date in UTC.
       
      .google.type.Date custom_time_before = 8;
    • getCustomTimeBeforeOrBuilder

      public com.google.type.DateOrBuilder getCustomTimeBeforeOrBuilder()
       An object matches this condition if the custom timestamp set on the
       object is before the specified date in UTC.
       
      .google.type.Date custom_time_before = 8;
      Specified by:
      getCustomTimeBeforeOrBuilder in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
    • hasDaysSinceNoncurrentTime

      public boolean hasDaysSinceNoncurrentTime()
       This condition is relevant only for versioned objects. An object
       version satisfies this condition only if these many days have been
       passed since it became noncurrent. The value of the field must be a
       nonnegative integer. If it's zero, the object version will become
       eligible for Lifecycle action as soon as it becomes noncurrent.
       
      optional int32 days_since_noncurrent_time = 9;
      Specified by:
      hasDaysSinceNoncurrentTime in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
      Returns:
      Whether the daysSinceNoncurrentTime field is set.
    • getDaysSinceNoncurrentTime

      public int getDaysSinceNoncurrentTime()
       This condition is relevant only for versioned objects. An object
       version satisfies this condition only if these many days have been
       passed since it became noncurrent. The value of the field must be a
       nonnegative integer. If it's zero, the object version will become
       eligible for Lifecycle action as soon as it becomes noncurrent.
       
      optional int32 days_since_noncurrent_time = 9;
      Specified by:
      getDaysSinceNoncurrentTime in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
      Returns:
      The daysSinceNoncurrentTime.
    • setDaysSinceNoncurrentTime

      public Bucket.Lifecycle.Rule.Condition.Builder setDaysSinceNoncurrentTime(int value)
       This condition is relevant only for versioned objects. An object
       version satisfies this condition only if these many days have been
       passed since it became noncurrent. The value of the field must be a
       nonnegative integer. If it's zero, the object version will become
       eligible for Lifecycle action as soon as it becomes noncurrent.
       
      optional int32 days_since_noncurrent_time = 9;
      Parameters:
      value - The daysSinceNoncurrentTime to set.
      Returns:
      This builder for chaining.
    • clearDaysSinceNoncurrentTime

      public Bucket.Lifecycle.Rule.Condition.Builder clearDaysSinceNoncurrentTime()
       This condition is relevant only for versioned objects. An object
       version satisfies this condition only if these many days have been
       passed since it became noncurrent. The value of the field must be a
       nonnegative integer. If it's zero, the object version will become
       eligible for Lifecycle action as soon as it becomes noncurrent.
       
      optional int32 days_since_noncurrent_time = 9;
      Returns:
      This builder for chaining.
    • hasNoncurrentTimeBefore

      public boolean hasNoncurrentTimeBefore()
       This condition is relevant only for versioned objects. An object
       version satisfies this condition only if it became noncurrent before
       the specified date in UTC.
       
      .google.type.Date noncurrent_time_before = 10;
      Specified by:
      hasNoncurrentTimeBefore in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
      Returns:
      Whether the noncurrentTimeBefore field is set.
    • getNoncurrentTimeBefore

      public com.google.type.Date getNoncurrentTimeBefore()
       This condition is relevant only for versioned objects. An object
       version satisfies this condition only if it became noncurrent before
       the specified date in UTC.
       
      .google.type.Date noncurrent_time_before = 10;
      Specified by:
      getNoncurrentTimeBefore in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
      Returns:
      The noncurrentTimeBefore.
    • setNoncurrentTimeBefore

      public Bucket.Lifecycle.Rule.Condition.Builder setNoncurrentTimeBefore(com.google.type.Date value)
       This condition is relevant only for versioned objects. An object
       version satisfies this condition only if it became noncurrent before
       the specified date in UTC.
       
      .google.type.Date noncurrent_time_before = 10;
    • setNoncurrentTimeBefore

      public Bucket.Lifecycle.Rule.Condition.Builder setNoncurrentTimeBefore(com.google.type.Date.Builder builderForValue)
       This condition is relevant only for versioned objects. An object
       version satisfies this condition only if it became noncurrent before
       the specified date in UTC.
       
      .google.type.Date noncurrent_time_before = 10;
    • mergeNoncurrentTimeBefore

      public Bucket.Lifecycle.Rule.Condition.Builder mergeNoncurrentTimeBefore(com.google.type.Date value)
       This condition is relevant only for versioned objects. An object
       version satisfies this condition only if it became noncurrent before
       the specified date in UTC.
       
      .google.type.Date noncurrent_time_before = 10;
    • clearNoncurrentTimeBefore

      public Bucket.Lifecycle.Rule.Condition.Builder clearNoncurrentTimeBefore()
       This condition is relevant only for versioned objects. An object
       version satisfies this condition only if it became noncurrent before
       the specified date in UTC.
       
      .google.type.Date noncurrent_time_before = 10;
    • getNoncurrentTimeBeforeBuilder

      public com.google.type.Date.Builder getNoncurrentTimeBeforeBuilder()
       This condition is relevant only for versioned objects. An object
       version satisfies this condition only if it became noncurrent before
       the specified date in UTC.
       
      .google.type.Date noncurrent_time_before = 10;
    • getNoncurrentTimeBeforeOrBuilder

      public com.google.type.DateOrBuilder getNoncurrentTimeBeforeOrBuilder()
       This condition is relevant only for versioned objects. An object
       version satisfies this condition only if it became noncurrent before
       the specified date in UTC.
       
      .google.type.Date noncurrent_time_before = 10;
      Specified by:
      getNoncurrentTimeBeforeOrBuilder in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
    • getMatchesPrefixList

      public com.google.protobuf.ProtocolStringList getMatchesPrefixList()
       List of object name prefixes. If any prefix exactly matches the
       beginning of the object name, the condition evaluates to true.
       
      repeated string matches_prefix = 11;
      Specified by:
      getMatchesPrefixList in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
      Returns:
      A list containing the matchesPrefix.
    • getMatchesPrefixCount

      public int getMatchesPrefixCount()
       List of object name prefixes. If any prefix exactly matches the
       beginning of the object name, the condition evaluates to true.
       
      repeated string matches_prefix = 11;
      Specified by:
      getMatchesPrefixCount in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
      Returns:
      The count of matchesPrefix.
    • getMatchesPrefix

      public String getMatchesPrefix(int index)
       List of object name prefixes. If any prefix exactly matches the
       beginning of the object name, the condition evaluates to true.
       
      repeated string matches_prefix = 11;
      Specified by:
      getMatchesPrefix in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The matchesPrefix at the given index.
    • getMatchesPrefixBytes

      public com.google.protobuf.ByteString getMatchesPrefixBytes(int index)
       List of object name prefixes. If any prefix exactly matches the
       beginning of the object name, the condition evaluates to true.
       
      repeated string matches_prefix = 11;
      Specified by:
      getMatchesPrefixBytes in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the matchesPrefix at the given index.
    • setMatchesPrefix

      public Bucket.Lifecycle.Rule.Condition.Builder setMatchesPrefix(int index, String value)
       List of object name prefixes. If any prefix exactly matches the
       beginning of the object name, the condition evaluates to true.
       
      repeated string matches_prefix = 11;
      Parameters:
      index - The index to set the value at.
      value - The matchesPrefix to set.
      Returns:
      This builder for chaining.
    • addMatchesPrefix

      public Bucket.Lifecycle.Rule.Condition.Builder addMatchesPrefix(String value)
       List of object name prefixes. If any prefix exactly matches the
       beginning of the object name, the condition evaluates to true.
       
      repeated string matches_prefix = 11;
      Parameters:
      value - The matchesPrefix to add.
      Returns:
      This builder for chaining.
    • addAllMatchesPrefix

      public Bucket.Lifecycle.Rule.Condition.Builder addAllMatchesPrefix(Iterable<String> values)
       List of object name prefixes. If any prefix exactly matches the
       beginning of the object name, the condition evaluates to true.
       
      repeated string matches_prefix = 11;
      Parameters:
      values - The matchesPrefix to add.
      Returns:
      This builder for chaining.
    • clearMatchesPrefix

      public Bucket.Lifecycle.Rule.Condition.Builder clearMatchesPrefix()
       List of object name prefixes. If any prefix exactly matches the
       beginning of the object name, the condition evaluates to true.
       
      repeated string matches_prefix = 11;
      Returns:
      This builder for chaining.
    • addMatchesPrefixBytes

      public Bucket.Lifecycle.Rule.Condition.Builder addMatchesPrefixBytes(com.google.protobuf.ByteString value)
       List of object name prefixes. If any prefix exactly matches the
       beginning of the object name, the condition evaluates to true.
       
      repeated string matches_prefix = 11;
      Parameters:
      value - The bytes of the matchesPrefix to add.
      Returns:
      This builder for chaining.
    • getMatchesSuffixList

      public com.google.protobuf.ProtocolStringList getMatchesSuffixList()
       List of object name suffixes. If any suffix exactly matches the
       end of the object name, the condition evaluates to true.
       
      repeated string matches_suffix = 12;
      Specified by:
      getMatchesSuffixList in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
      Returns:
      A list containing the matchesSuffix.
    • getMatchesSuffixCount

      public int getMatchesSuffixCount()
       List of object name suffixes. If any suffix exactly matches the
       end of the object name, the condition evaluates to true.
       
      repeated string matches_suffix = 12;
      Specified by:
      getMatchesSuffixCount in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
      Returns:
      The count of matchesSuffix.
    • getMatchesSuffix

      public String getMatchesSuffix(int index)
       List of object name suffixes. If any suffix exactly matches the
       end of the object name, the condition evaluates to true.
       
      repeated string matches_suffix = 12;
      Specified by:
      getMatchesSuffix in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The matchesSuffix at the given index.
    • getMatchesSuffixBytes

      public com.google.protobuf.ByteString getMatchesSuffixBytes(int index)
       List of object name suffixes. If any suffix exactly matches the
       end of the object name, the condition evaluates to true.
       
      repeated string matches_suffix = 12;
      Specified by:
      getMatchesSuffixBytes in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the matchesSuffix at the given index.
    • setMatchesSuffix

      public Bucket.Lifecycle.Rule.Condition.Builder setMatchesSuffix(int index, String value)
       List of object name suffixes. If any suffix exactly matches the
       end of the object name, the condition evaluates to true.
       
      repeated string matches_suffix = 12;
      Parameters:
      index - The index to set the value at.
      value - The matchesSuffix to set.
      Returns:
      This builder for chaining.
    • addMatchesSuffix

      public Bucket.Lifecycle.Rule.Condition.Builder addMatchesSuffix(String value)
       List of object name suffixes. If any suffix exactly matches the
       end of the object name, the condition evaluates to true.
       
      repeated string matches_suffix = 12;
      Parameters:
      value - The matchesSuffix to add.
      Returns:
      This builder for chaining.
    • addAllMatchesSuffix

      public Bucket.Lifecycle.Rule.Condition.Builder addAllMatchesSuffix(Iterable<String> values)
       List of object name suffixes. If any suffix exactly matches the
       end of the object name, the condition evaluates to true.
       
      repeated string matches_suffix = 12;
      Parameters:
      values - The matchesSuffix to add.
      Returns:
      This builder for chaining.
    • clearMatchesSuffix

      public Bucket.Lifecycle.Rule.Condition.Builder clearMatchesSuffix()
       List of object name suffixes. If any suffix exactly matches the
       end of the object name, the condition evaluates to true.
       
      repeated string matches_suffix = 12;
      Returns:
      This builder for chaining.
    • addMatchesSuffixBytes

      public Bucket.Lifecycle.Rule.Condition.Builder addMatchesSuffixBytes(com.google.protobuf.ByteString value)
       List of object name suffixes. If any suffix exactly matches the
       end of the object name, the condition evaluates to true.
       
      repeated string matches_suffix = 12;
      Parameters:
      value - The bytes of the matchesSuffix to add.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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