Package com.google.storage.v2
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 Summary
Modifier and TypeMethodDescriptionintAge of an object (in days).com.google.type.DateThis condition is satisfied when an object is created before midnight of the specified date in UTC.com.google.type.DateOrBuilderThis condition is satisfied when an object is created before midnight of the specified date in UTC.com.google.type.DateAn object matches this condition if the custom timestamp set on the object is before the specified date in UTC.com.google.type.DateOrBuilderAn object matches this condition if the custom timestamp set on the object is before the specified date in UTC.intNumber of days that have elapsed since the custom timestamp set on an object.intThis condition is relevant only for versioned objects.booleanRelevant only for versioned objects.getMatchesPrefix(int index) List of object name prefixes.com.google.protobuf.ByteStringgetMatchesPrefixBytes(int index) List of object name prefixes.intList of object name prefixes.List of object name prefixes.getMatchesStorageClass(int index) Objects having any of the storage classes specified by this condition will be matched.com.google.protobuf.ByteStringgetMatchesStorageClassBytes(int index) Objects having any of the storage classes specified by this condition will be matched.intObjects having any of the storage classes specified by this condition will be matched.Objects having any of the storage classes specified by this condition will be matched.getMatchesSuffix(int index) List of object name suffixes.com.google.protobuf.ByteStringgetMatchesSuffixBytes(int index) List of object name suffixes.intList of object name suffixes.List of object name suffixes.com.google.type.DateThis condition is relevant only for versioned objects.com.google.type.DateOrBuilderThis condition is relevant only for versioned objects.intRelevant only for versioned objects.booleanAge of an object (in days).booleanThis condition is satisfied when an object is created before midnight of the specified date in UTC.booleanAn object matches this condition if the custom timestamp set on the object is before the specified date in UTC.booleanNumber of days that have elapsed since the custom timestamp set on an object.booleanThis condition is relevant only for versioned objects.booleanRelevant only for versioned objects.booleanThis condition is relevant only for versioned objects.booleanRelevant only for versioned objects.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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()This condition is satisfied when an object is created before midnight of the specified date in UTC.
.google.type.Date created_before = 2;- Returns:
- Whether the createdBefore field is set.
-
getCreatedBefore
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;- Returns:
- The createdBefore.
-
getCreatedBeforeOrBuilder
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; -
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
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:
- A list containing the matchesStorageClass.
-
getMatchesStorageClassCount
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;- Returns:
- The count of matchesStorageClass.
-
getMatchesStorageClass
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 of the element to return.- Returns:
- The matchesStorageClass at the given index.
-
getMatchesStorageClassBytes
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;- 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()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;- Returns:
- Whether the customTimeBefore field is set.
-
getCustomTimeBefore
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;- Returns:
- The customTimeBefore.
-
getCustomTimeBeforeOrBuilder
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; -
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()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;- Returns:
- Whether the noncurrentTimeBefore field is set.
-
getNoncurrentTimeBefore
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;- Returns:
- The noncurrentTimeBefore.
-
getNoncurrentTimeBeforeOrBuilder
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; -
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;- Returns:
- A list containing the matchesPrefix.
-
getMatchesPrefixCount
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;- Returns:
- The count of matchesPrefix.
-
getMatchesPrefix
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 of the element to return.- Returns:
- The matchesPrefix at the given index.
-
getMatchesPrefixBytes
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;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the matchesPrefix at the given index.
-
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;- Returns:
- A list containing the matchesSuffix.
-
getMatchesSuffixCount
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;- Returns:
- The count of matchesSuffix.
-
getMatchesSuffix
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 of the element to return.- Returns:
- The matchesSuffix at the given index.
-
getMatchesSuffixBytes
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;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the matchesSuffix at the given index.
-