public static final class Bucket.Lifecycle.Rule.Condition.Builder extends GeneratedMessageV3.Builder<Bucket.Lifecycle.Rule.Condition.Builder> implements Bucket.Lifecycle.Rule.ConditionOrBuilder
A condition of an object which triggers some action.
Protobuf type google.storage.v2.Bucket.Lifecycle.Rule.Condition
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Bucket.Lifecycle.Rule.Condition.BuilderImplements
Bucket.Lifecycle.Rule.ConditionOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllMatchesPrefix(Iterable<String> values)
public Bucket.Lifecycle.Rule.Condition.Builder addAllMatchesPrefix(Iterable<String> values)
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;
Name | Description |
values | Iterable<String> The matchesPrefix to add. |
Type | Description |
Bucket.Lifecycle.Rule.Condition.Builder | This builder for chaining. |
addAllMatchesStorageClass(Iterable<String> values)
public Bucket.Lifecycle.Rule.Condition.Builder addAllMatchesStorageClass(Iterable<String> values)
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;
Name | Description |
values | Iterable<String> The matchesStorageClass to add. |
Type | Description |
Bucket.Lifecycle.Rule.Condition.Builder | This builder for chaining. |
addAllMatchesSuffix(Iterable<String> values)
public Bucket.Lifecycle.Rule.Condition.Builder addAllMatchesSuffix(Iterable<String> values)
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;
Name | Description |
values | Iterable<String> The matchesSuffix to add. |
Type | Description |
Bucket.Lifecycle.Rule.Condition.Builder | This builder for chaining. |
addMatchesPrefix(String value)
public Bucket.Lifecycle.Rule.Condition.Builder addMatchesPrefix(String value)
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;
Name | Description |
value | String The matchesPrefix to add. |
Type | Description |
Bucket.Lifecycle.Rule.Condition.Builder | This builder for chaining. |
addMatchesPrefixBytes(ByteString value)
public Bucket.Lifecycle.Rule.Condition.Builder addMatchesPrefixBytes(ByteString value)
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;
Name | Description |
value | ByteString The bytes of the matchesPrefix to add. |
Type | Description |
Bucket.Lifecycle.Rule.Condition.Builder | This builder for chaining. |
addMatchesStorageClass(String value)
public Bucket.Lifecycle.Rule.Condition.Builder addMatchesStorageClass(String value)
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;
Name | Description |
value | String The matchesStorageClass to add. |
Type | Description |
Bucket.Lifecycle.Rule.Condition.Builder | This builder for chaining. |
addMatchesStorageClassBytes(ByteString value)
public Bucket.Lifecycle.Rule.Condition.Builder addMatchesStorageClassBytes(ByteString value)
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;
Name | Description |
value | ByteString The bytes of the matchesStorageClass to add. |
Type | Description |
Bucket.Lifecycle.Rule.Condition.Builder | This builder for chaining. |
addMatchesSuffix(String value)
public Bucket.Lifecycle.Rule.Condition.Builder addMatchesSuffix(String value)
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;
Name | Description |
value | String The matchesSuffix to add. |
Type | Description |
Bucket.Lifecycle.Rule.Condition.Builder | This builder for chaining. |
addMatchesSuffixBytes(ByteString value)
public Bucket.Lifecycle.Rule.Condition.Builder addMatchesSuffixBytes(ByteString value)
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;
Name | Description |
value | ByteString The bytes of the matchesSuffix to add. |
Type | Description |
Bucket.Lifecycle.Rule.Condition.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Bucket.Lifecycle.Rule.Condition.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Bucket.Lifecycle.Rule.Condition.Builder |
build()
public Bucket.Lifecycle.Rule.Condition build()
Type | Description |
Bucket.Lifecycle.Rule.Condition |
buildPartial()
public Bucket.Lifecycle.Rule.Condition buildPartial()
Type | Description |
Bucket.Lifecycle.Rule.Condition |
clear()
public Bucket.Lifecycle.Rule.Condition.Builder clear()
Type | Description |
Bucket.Lifecycle.Rule.Condition.Builder |
clearAgeDays()
public Bucket.Lifecycle.Rule.Condition.Builder clearAgeDays()
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;
Type | Description |
Bucket.Lifecycle.Rule.Condition.Builder | This builder for chaining. |
clearCreatedBefore()
public Bucket.Lifecycle.Rule.Condition.Builder clearCreatedBefore()
This condition is satisfied when an object is created before midnight of the specified date in UTC.
.google.type.Date created_before = 2;
Type | Description |
Bucket.Lifecycle.Rule.Condition.Builder |
clearCustomTimeBefore()
public Bucket.Lifecycle.Rule.Condition.Builder clearCustomTimeBefore()
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;
Type | Description |
Bucket.Lifecycle.Rule.Condition.Builder |
clearDaysSinceCustomTime()
public Bucket.Lifecycle.Rule.Condition.Builder clearDaysSinceCustomTime()
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;
Type | Description |
Bucket.Lifecycle.Rule.Condition.Builder | This builder for chaining. |
clearDaysSinceNoncurrentTime()
public Bucket.Lifecycle.Rule.Condition.Builder clearDaysSinceNoncurrentTime()
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;
Type | Description |
Bucket.Lifecycle.Rule.Condition.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Bucket.Lifecycle.Rule.Condition.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Bucket.Lifecycle.Rule.Condition.Builder |
clearIsLive()
public Bucket.Lifecycle.Rule.Condition.Builder clearIsLive()
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;
Type | Description |
Bucket.Lifecycle.Rule.Condition.Builder | This builder for chaining. |
clearMatchesPrefix()
public Bucket.Lifecycle.Rule.Condition.Builder clearMatchesPrefix()
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;
Type | Description |
Bucket.Lifecycle.Rule.Condition.Builder | This builder for chaining. |
clearMatchesStorageClass()
public Bucket.Lifecycle.Rule.Condition.Builder clearMatchesStorageClass()
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;
Type | Description |
Bucket.Lifecycle.Rule.Condition.Builder | This builder for chaining. |
clearMatchesSuffix()
public Bucket.Lifecycle.Rule.Condition.Builder clearMatchesSuffix()
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;
Type | Description |
Bucket.Lifecycle.Rule.Condition.Builder | This builder for chaining. |
clearNoncurrentTimeBefore()
public Bucket.Lifecycle.Rule.Condition.Builder clearNoncurrentTimeBefore()
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;
Type | Description |
Bucket.Lifecycle.Rule.Condition.Builder |
clearNumNewerVersions()
public Bucket.Lifecycle.Rule.Condition.Builder clearNumNewerVersions()
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;
Type | Description |
Bucket.Lifecycle.Rule.Condition.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Bucket.Lifecycle.Rule.Condition.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Bucket.Lifecycle.Rule.Condition.Builder |
clone()
public Bucket.Lifecycle.Rule.Condition.Builder clone()
Type | Description |
Bucket.Lifecycle.Rule.Condition.Builder |
getAgeDays()
public 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;
Type | Description |
int | The ageDays. |
getCreatedBefore()
public 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;
Type | Description |
com.google.type.Date | The createdBefore. |
getCreatedBeforeBuilder()
public Date.Builder getCreatedBeforeBuilder()
This condition is satisfied when an object is created before midnight of the specified date in UTC.
.google.type.Date created_before = 2;
Type | Description |
com.google.type.Date.Builder |
getCreatedBeforeOrBuilder()
public 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;
Type | Description |
com.google.type.DateOrBuilder |
getCustomTimeBefore()
public 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;
Type | Description |
com.google.type.Date | The customTimeBefore. |
getCustomTimeBeforeBuilder()
public Date.Builder getCustomTimeBeforeBuilder()
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;
Type | Description |
com.google.type.Date.Builder |
getCustomTimeBeforeOrBuilder()
public 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;
Type | Description |
com.google.type.DateOrBuilder |
getDaysSinceCustomTime()
public 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;
Type | Description |
int | The daysSinceCustomTime. |
getDaysSinceNoncurrentTime()
public 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;
Type | Description |
int | The daysSinceNoncurrentTime. |
getDefaultInstanceForType()
public Bucket.Lifecycle.Rule.Condition getDefaultInstanceForType()
Type | Description |
Bucket.Lifecycle.Rule.Condition |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getIsLive()
public 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;
Type | Description |
boolean | The isLive. |
getMatchesPrefix(int index)
public 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;
Name | Description |
index | int The index of the element to return. |
Type | Description |
String | The matchesPrefix at the given index. |
getMatchesPrefixBytes(int index)
public 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;
Name | Description |
index | int The index of the value to return. |
Type | Description |
ByteString | The bytes of the matchesPrefix at the given index. |
getMatchesPrefixCount()
public 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;
Type | Description |
int | The count of matchesPrefix. |
getMatchesPrefixList()
public ProtocolStringList 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;
Type | Description |
ProtocolStringList | A list containing the matchesPrefix. |
getMatchesStorageClass(int index)
public 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;
Name | Description |
index | int The index of the element to return. |
Type | Description |
String | The matchesStorageClass at the given index. |
getMatchesStorageClassBytes(int index)
public 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;
Name | Description |
index | int The index of the value to return. |
Type | Description |
ByteString | The bytes of the matchesStorageClass at the given index. |
getMatchesStorageClassCount()
public 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;
Type | Description |
int | The count of matchesStorageClass. |
getMatchesStorageClassList()
public ProtocolStringList 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;
Type | Description |
ProtocolStringList | A list containing the matchesStorageClass. |
getMatchesSuffix(int index)
public 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;
Name | Description |
index | int The index of the element to return. |
Type | Description |
String | The matchesSuffix at the given index. |
getMatchesSuffixBytes(int index)
public 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;
Name | Description |
index | int The index of the value to return. |
Type | Description |
ByteString | The bytes of the matchesSuffix at the given index. |
getMatchesSuffixCount()
public 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;
Type | Description |
int | The count of matchesSuffix. |
getMatchesSuffixList()
public ProtocolStringList 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;
Type | Description |
ProtocolStringList | A list containing the matchesSuffix. |
getNoncurrentTimeBefore()
public 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;
Type | Description |
com.google.type.Date | The noncurrentTimeBefore. |
getNoncurrentTimeBeforeBuilder()
public Date.Builder getNoncurrentTimeBeforeBuilder()
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;
Type | Description |
com.google.type.Date.Builder |
getNoncurrentTimeBeforeOrBuilder()
public 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;
Type | Description |
com.google.type.DateOrBuilder |
getNumNewerVersions()
public 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;
Type | Description |
int | The numNewerVersions. |
hasAgeDays()
public 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;
Type | Description |
boolean | Whether the ageDays field is set. |
hasCreatedBefore()
public 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;
Type | Description |
boolean | Whether the createdBefore field is set. |
hasCustomTimeBefore()
public 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;
Type | Description |
boolean | Whether the customTimeBefore field is set. |
hasDaysSinceCustomTime()
public 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;
Type | Description |
boolean | Whether the daysSinceCustomTime field is set. |
hasDaysSinceNoncurrentTime()
public 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;
Type | Description |
boolean | Whether the daysSinceNoncurrentTime field is set. |
hasIsLive()
public 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;
Type | Description |
boolean | Whether the isLive field is set. |
hasNoncurrentTimeBefore()
public 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;
Type | Description |
boolean | Whether the noncurrentTimeBefore field is set. |
hasNumNewerVersions()
public 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;
Type | Description |
boolean | Whether the numNewerVersions field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeCreatedBefore(Date value)
public Bucket.Lifecycle.Rule.Condition.Builder mergeCreatedBefore(Date value)
This condition is satisfied when an object is created before midnight of the specified date in UTC.
.google.type.Date created_before = 2;
Name | Description |
value | com.google.type.Date |
Type | Description |
Bucket.Lifecycle.Rule.Condition.Builder |
mergeCustomTimeBefore(Date value)
public Bucket.Lifecycle.Rule.Condition.Builder mergeCustomTimeBefore(Date value)
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;
Name | Description |
value | com.google.type.Date |
Type | Description |
Bucket.Lifecycle.Rule.Condition.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Bucket.Lifecycle.Rule.Condition.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Bucket.Lifecycle.Rule.Condition.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Bucket.Lifecycle.Rule.Condition.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Bucket.Lifecycle.Rule.Condition.Builder |
mergeFrom(Bucket.Lifecycle.Rule.Condition other)
public Bucket.Lifecycle.Rule.Condition.Builder mergeFrom(Bucket.Lifecycle.Rule.Condition other)
Name | Description |
other | Bucket.Lifecycle.Rule.Condition |
Type | Description |
Bucket.Lifecycle.Rule.Condition.Builder |
mergeNoncurrentTimeBefore(Date value)
public Bucket.Lifecycle.Rule.Condition.Builder mergeNoncurrentTimeBefore(Date value)
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;
Name | Description |
value | com.google.type.Date |
Type | Description |
Bucket.Lifecycle.Rule.Condition.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Bucket.Lifecycle.Rule.Condition.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Bucket.Lifecycle.Rule.Condition.Builder |
setAgeDays(int value)
public Bucket.Lifecycle.Rule.Condition.Builder setAgeDays(int value)
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;
Name | Description |
value | int The ageDays to set. |
Type | Description |
Bucket.Lifecycle.Rule.Condition.Builder | This builder for chaining. |
setCreatedBefore(Date value)
public Bucket.Lifecycle.Rule.Condition.Builder setCreatedBefore(Date value)
This condition is satisfied when an object is created before midnight of the specified date in UTC.
.google.type.Date created_before = 2;
Name | Description |
value | com.google.type.Date |
Type | Description |
Bucket.Lifecycle.Rule.Condition.Builder |
setCreatedBefore(Date.Builder builderForValue)
public Bucket.Lifecycle.Rule.Condition.Builder setCreatedBefore(Date.Builder builderForValue)
This condition is satisfied when an object is created before midnight of the specified date in UTC.
.google.type.Date created_before = 2;
Name | Description |
builderForValue | com.google.type.Date.Builder |
Type | Description |
Bucket.Lifecycle.Rule.Condition.Builder |
setCustomTimeBefore(Date value)
public Bucket.Lifecycle.Rule.Condition.Builder setCustomTimeBefore(Date value)
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;
Name | Description |
value | com.google.type.Date |
Type | Description |
Bucket.Lifecycle.Rule.Condition.Builder |
setCustomTimeBefore(Date.Builder builderForValue)
public Bucket.Lifecycle.Rule.Condition.Builder setCustomTimeBefore(Date.Builder builderForValue)
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;
Name | Description |
builderForValue | com.google.type.Date.Builder |
Type | Description |
Bucket.Lifecycle.Rule.Condition.Builder |
setDaysSinceCustomTime(int value)
public Bucket.Lifecycle.Rule.Condition.Builder setDaysSinceCustomTime(int value)
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;
Name | Description |
value | int The daysSinceCustomTime to set. |
Type | Description |
Bucket.Lifecycle.Rule.Condition.Builder | This builder for chaining. |
setDaysSinceNoncurrentTime(int value)
public Bucket.Lifecycle.Rule.Condition.Builder setDaysSinceNoncurrentTime(int value)
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;
Name | Description |
value | int The daysSinceNoncurrentTime to set. |
Type | Description |
Bucket.Lifecycle.Rule.Condition.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Bucket.Lifecycle.Rule.Condition.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Bucket.Lifecycle.Rule.Condition.Builder |
setIsLive(boolean value)
public Bucket.Lifecycle.Rule.Condition.Builder setIsLive(boolean value)
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;
Name | Description |
value | boolean The isLive to set. |
Type | Description |
Bucket.Lifecycle.Rule.Condition.Builder | This builder for chaining. |
setMatchesPrefix(int index, String value)
public Bucket.Lifecycle.Rule.Condition.Builder setMatchesPrefix(int index, String value)
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;
Name | Description |
index | int The index to set the value at. |
value | String The matchesPrefix to set. |
Type | Description |
Bucket.Lifecycle.Rule.Condition.Builder | This builder for chaining. |
setMatchesStorageClass(int index, String value)
public Bucket.Lifecycle.Rule.Condition.Builder setMatchesStorageClass(int index, String value)
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;
Name | Description |
index | int The index to set the value at. |
value | String The matchesStorageClass to set. |
Type | Description |
Bucket.Lifecycle.Rule.Condition.Builder | This builder for chaining. |
setMatchesSuffix(int index, String value)
public Bucket.Lifecycle.Rule.Condition.Builder setMatchesSuffix(int index, String value)
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;
Name | Description |
index | int The index to set the value at. |
value | String The matchesSuffix to set. |
Type | Description |
Bucket.Lifecycle.Rule.Condition.Builder | This builder for chaining. |
setNoncurrentTimeBefore(Date value)
public Bucket.Lifecycle.Rule.Condition.Builder setNoncurrentTimeBefore(Date value)
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;
Name | Description |
value | com.google.type.Date |
Type | Description |
Bucket.Lifecycle.Rule.Condition.Builder |
setNoncurrentTimeBefore(Date.Builder builderForValue)
public Bucket.Lifecycle.Rule.Condition.Builder setNoncurrentTimeBefore(Date.Builder builderForValue)
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;
Name | Description |
builderForValue | com.google.type.Date.Builder |
Type | Description |
Bucket.Lifecycle.Rule.Condition.Builder |
setNumNewerVersions(int value)
public Bucket.Lifecycle.Rule.Condition.Builder setNumNewerVersions(int value)
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;
Name | Description |
value | int The numNewerVersions to set. |
Type | Description |
Bucket.Lifecycle.Rule.Condition.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Bucket.Lifecycle.Rule.Condition.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Bucket.Lifecycle.Rule.Condition.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final Bucket.Lifecycle.Rule.Condition.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Bucket.Lifecycle.Rule.Condition.Builder |