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 |
getMatchesPrefix(int index)
List of object name prefixes.
|
com.google.protobuf.ByteString |
getMatchesPrefixBytes(int index)
List of object name prefixes.
|
int |
getMatchesPrefixCount()
List of object name prefixes.
|
List<String> |
getMatchesPrefixList()
List of object name prefixes.
|
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.
|
String |
getMatchesSuffix(int index)
List of object name suffixes.
|
com.google.protobuf.ByteString |
getMatchesSuffixBytes(int index)
List of object name suffixes.
|
int |
getMatchesSuffixCount()
List of object name suffixes.
|
List<String> |
getMatchesSuffixList()
List of object name suffixes.
|
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, hasOneof
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;
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;
List<String> 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;
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;
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;
index
- The index of the element to return.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;
index
- The index of the value to return.List<String> 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;
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;
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;
index
- The index of the element to return.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;
index
- The index of the value to return.Copyright © 2023 Google LLC. All rights reserved.