Interface Bucket.Lifecycle.Rule.ConditionOrBuilder (2.5.1)

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.

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.

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.