Interface Bucket.Lifecycle.Rule.ConditionOrBuilder (2.20.2)

public static interface Bucket.Lifecycle.Rule.ConditionOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAgeDays()

public abstract 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
Type Description
int

The ageDays.

getCreatedBefore()

public abstract 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
Type Description
com.google.type.Date

The createdBefore.

getCreatedBeforeOrBuilder()

public abstract 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;

Returns
Type Description
com.google.type.DateOrBuilder

getCustomTimeBefore()

public abstract 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
Type Description
com.google.type.Date

The customTimeBefore.

getCustomTimeBeforeOrBuilder()

public abstract 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;

Returns
Type Description
com.google.type.DateOrBuilder

getDaysSinceCustomTime()

public abstract 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
Type Description
int

The daysSinceCustomTime.

getDaysSinceNoncurrentTime()

public abstract 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
Type Description
int

The daysSinceNoncurrentTime.

getIsLive()

public abstract 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
Type Description
boolean

The isLive.

getMatchesPrefix(int index)

public abstract 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;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The matchesPrefix at the given index.

getMatchesPrefixBytes(int index)

public abstract 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;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the matchesPrefix at the given index.

getMatchesPrefixCount()

public abstract 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
Type Description
int

The count of matchesPrefix.

getMatchesPrefixList()

public abstract 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;

Returns
Type Description
List<String>

A list containing the matchesPrefix.

getMatchesStorageClass(int index)

public abstract 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;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The matchesStorageClass at the given index.

getMatchesStorageClassBytes(int index)

public abstract 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;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the matchesStorageClass at the given index.

getMatchesStorageClassCount()

public abstract 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
Type Description
int

The count of matchesStorageClass.

getMatchesStorageClassList()

public abstract 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;

Returns
Type Description
List<String>

A list containing the matchesStorageClass.

getMatchesSuffix(int index)

public abstract 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;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The matchesSuffix at the given index.

getMatchesSuffixBytes(int index)

public abstract 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;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the matchesSuffix at the given index.

getMatchesSuffixCount()

public abstract 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
Type Description
int

The count of matchesSuffix.

getMatchesSuffixList()

public abstract 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;

Returns
Type Description
List<String>

A list containing the matchesSuffix.

getNoncurrentTimeBefore()

public abstract 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
Type Description
com.google.type.Date

The noncurrentTimeBefore.

getNoncurrentTimeBeforeOrBuilder()

public abstract 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;

Returns
Type Description
com.google.type.DateOrBuilder

getNumNewerVersions()

public abstract 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
Type Description
int

The numNewerVersions.

hasAgeDays()

public abstract 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
Type Description
boolean

Whether the ageDays field is set.

hasCreatedBefore()

public abstract 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
Type Description
boolean

Whether the createdBefore field is set.

hasCustomTimeBefore()

public abstract 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
Type Description
boolean

Whether the customTimeBefore field is set.

hasDaysSinceCustomTime()

public abstract 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
Type Description
boolean

Whether the daysSinceCustomTime field is set.

hasDaysSinceNoncurrentTime()

public abstract 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
Type Description
boolean

Whether the daysSinceNoncurrentTime field is set.

hasIsLive()

public abstract 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
Type Description
boolean

Whether the isLive field is set.

hasNoncurrentTimeBefore()

public abstract 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
Type Description
boolean

Whether the noncurrentTimeBefore field is set.

hasNumNewerVersions()

public abstract 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
Type Description
boolean

Whether the numNewerVersions field is set.