public static interface Bucket.Lifecycle.Rule.ConditionOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
int |
getAgeDays()
Age of an object (in days).
|
com.google.type.Date |
getCreatedBefore()
This condition is satisfied when an object is created before midnight
of the specified date in UTC.
|
com.google.type.DateOrBuilder |
getCreatedBeforeOrBuilder()
This condition is satisfied when an object is created before midnight
of the specified date in UTC.
|
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.
|
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.
|
int |
getDaysSinceCustomTime()
Number of days that have elapsed since the custom timestamp set on an
object.
|
int |
getDaysSinceNoncurrentTime()
This condition is relevant only for versioned objects.
|
boolean |
getIsLive()
Relevant only for versioned objects.
|
String |
getMatchesStorageClass(int index)
Objects having any of the storage classes specified by this condition
will be matched.
|
com.google.protobuf.ByteString |
getMatchesStorageClassBytes(int index)
Objects having any of the storage classes specified by this condition
will be matched.
|
int |
getMatchesStorageClassCount()
Objects having any of the storage classes specified by this condition
will be matched.
|
List<String> |
getMatchesStorageClassList()
Objects having any of the storage classes specified by this condition
will be matched.
|
com.google.type.Date |
getNoncurrentTimeBefore()
This condition is relevant only for versioned objects.
|
com.google.type.DateOrBuilder |
getNoncurrentTimeBeforeOrBuilder()
This condition is relevant only for versioned objects.
|
int |
getNumNewerVersions()
Relevant only for versioned objects.
|
boolean |
hasAgeDays()
Age of an object (in days).
|
boolean |
hasCreatedBefore()
This condition is satisfied when an object is created before midnight
of the specified date in UTC.
|
boolean |
hasCustomTimeBefore()
An object matches this condition if the custom timestamp set on the
object is before the specified date in UTC.
|
boolean |
hasDaysSinceCustomTime()
Number of days that have elapsed since the custom timestamp set on an
object.
|
boolean |
hasDaysSinceNoncurrentTime()
This condition is relevant only for versioned objects.
|
boolean |
hasIsLive()
Relevant only for versioned objects.
|
boolean |
hasNoncurrentTimeBefore()
This condition is relevant only for versioned objects.
|
boolean |
hasNumNewerVersions()
Relevant only for versioned objects.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofboolean 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;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;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;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;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;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;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;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;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;List<String> 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;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;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;index - The index of the element to return.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;index - The index of the value to return.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;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;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;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;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;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;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;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;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;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;Copyright © 2021 Google LLC. All rights reserved.