Interface Bucket.Lifecycle.Rule.ConditionOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Bucket.Lifecycle.Rule.Condition, Bucket.Lifecycle.Rule.Condition.Builder
Enclosing class:
Bucket.Lifecycle.Rule

public static interface Bucket.Lifecycle.Rule.ConditionOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • hasAgeDays

      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;
      Returns:
      Whether the ageDays field is set.
    • getAgeDays

      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;
      Returns:
      The ageDays.
    • hasCreatedBefore

      boolean hasCreatedBefore()
       Optional. This condition is satisfied when an object is created
       before midnight of the specified date in UTC.
       
      .google.type.Date created_before = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      Whether the createdBefore field is set.
    • getCreatedBefore

      com.google.type.Date getCreatedBefore()
       Optional. This condition is satisfied when an object is created
       before midnight of the specified date in UTC.
       
      .google.type.Date created_before = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The createdBefore.
    • getCreatedBeforeOrBuilder

      com.google.type.DateOrBuilder getCreatedBeforeOrBuilder()
       Optional. This condition is satisfied when an object is created
       before midnight of the specified date in UTC.
       
      .google.type.Date created_before = 2 [(.google.api.field_behavior) = OPTIONAL];
    • hasIsLive

      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;
      Returns:
      Whether the isLive field is set.
    • getIsLive

      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;
      Returns:
      The isLive.
    • hasNumNewerVersions

      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;
      Returns:
      Whether the numNewerVersions field is set.
    • getNumNewerVersions

      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;
      Returns:
      The numNewerVersions.
    • getMatchesStorageClassList

      List<String> getMatchesStorageClassList()
       Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      A list containing the matchesStorageClass.
    • getMatchesStorageClassCount

      int getMatchesStorageClassCount()
       Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The count of matchesStorageClass.
    • getMatchesStorageClass

      String getMatchesStorageClass(int index)
       Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index of the element to return.
      Returns:
      The matchesStorageClass at the given index.
    • getMatchesStorageClassBytes

      com.google.protobuf.ByteString getMatchesStorageClassBytes(int index)
       Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the matchesStorageClass at the given index.
    • hasDaysSinceCustomTime

      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;
      Returns:
      Whether the daysSinceCustomTime field is set.
    • getDaysSinceCustomTime

      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;
      Returns:
      The daysSinceCustomTime.
    • hasCustomTimeBefore

      boolean hasCustomTimeBefore()
       Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      Whether the customTimeBefore field is set.
    • getCustomTimeBefore

      com.google.type.Date getCustomTimeBefore()
       Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The customTimeBefore.
    • getCustomTimeBeforeOrBuilder

      com.google.type.DateOrBuilder getCustomTimeBeforeOrBuilder()
       Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
    • hasDaysSinceNoncurrentTime

      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;
      Returns:
      Whether the daysSinceNoncurrentTime field is set.
    • getDaysSinceNoncurrentTime

      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;
      Returns:
      The daysSinceNoncurrentTime.
    • hasNoncurrentTimeBefore

      boolean hasNoncurrentTimeBefore()
       Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      Whether the noncurrentTimeBefore field is set.
    • getNoncurrentTimeBefore

      com.google.type.Date getNoncurrentTimeBefore()
       Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The noncurrentTimeBefore.
    • getNoncurrentTimeBeforeOrBuilder

      com.google.type.DateOrBuilder getNoncurrentTimeBeforeOrBuilder()
       Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
    • getMatchesPrefixList

      List<String> getMatchesPrefixList()
       Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      A list containing the matchesPrefix.
    • getMatchesPrefixCount

      int getMatchesPrefixCount()
       Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The count of matchesPrefix.
    • getMatchesPrefix

      String getMatchesPrefix(int index)
       Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index of the element to return.
      Returns:
      The matchesPrefix at the given index.
    • getMatchesPrefixBytes

      com.google.protobuf.ByteString getMatchesPrefixBytes(int index)
       Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the matchesPrefix at the given index.
    • getMatchesSuffixList

      List<String> getMatchesSuffixList()
       Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      A list containing the matchesSuffix.
    • getMatchesSuffixCount

      int getMatchesSuffixCount()
       Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The count of matchesSuffix.
    • getMatchesSuffix

      String getMatchesSuffix(int index)
       Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index of the element to return.
      Returns:
      The matchesSuffix at the given index.
    • getMatchesSuffixBytes

      com.google.protobuf.ByteString getMatchesSuffixBytes(int index)
       Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the matchesSuffix at the given index.