public static final class Bucket.Lifecycle.Rule.Condition.Builder extends com.google.protobuf.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
Modifier and Type | Method and Description |
---|---|
Bucket.Lifecycle.Rule.Condition.Builder |
addAllMatchesPrefix(Iterable<String> values)
List of object name prefixes.
|
Bucket.Lifecycle.Rule.Condition.Builder |
addAllMatchesStorageClass(Iterable<String> values)
Objects having any of the storage classes specified by this condition
will be matched.
|
Bucket.Lifecycle.Rule.Condition.Builder |
addAllMatchesSuffix(Iterable<String> values)
List of object name suffixes.
|
Bucket.Lifecycle.Rule.Condition.Builder |
addMatchesPrefix(String value)
List of object name prefixes.
|
Bucket.Lifecycle.Rule.Condition.Builder |
addMatchesPrefixBytes(com.google.protobuf.ByteString value)
List of object name prefixes.
|
Bucket.Lifecycle.Rule.Condition.Builder |
addMatchesStorageClass(String value)
Objects having any of the storage classes specified by this condition
will be matched.
|
Bucket.Lifecycle.Rule.Condition.Builder |
addMatchesStorageClassBytes(com.google.protobuf.ByteString value)
Objects having any of the storage classes specified by this condition
will be matched.
|
Bucket.Lifecycle.Rule.Condition.Builder |
addMatchesSuffix(String value)
List of object name suffixes.
|
Bucket.Lifecycle.Rule.Condition.Builder |
addMatchesSuffixBytes(com.google.protobuf.ByteString value)
List of object name suffixes.
|
Bucket.Lifecycle.Rule.Condition.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Bucket.Lifecycle.Rule.Condition |
build() |
Bucket.Lifecycle.Rule.Condition |
buildPartial() |
Bucket.Lifecycle.Rule.Condition.Builder |
clear() |
Bucket.Lifecycle.Rule.Condition.Builder |
clearAgeDays()
Age of an object (in days).
|
Bucket.Lifecycle.Rule.Condition.Builder |
clearCreatedBefore()
This condition is satisfied when an object is created before midnight
of the specified date in UTC.
|
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.
|
Bucket.Lifecycle.Rule.Condition.Builder |
clearDaysSinceCustomTime()
Number of days that have elapsed since the custom timestamp set on an
object.
|
Bucket.Lifecycle.Rule.Condition.Builder |
clearDaysSinceNoncurrentTime()
This condition is relevant only for versioned objects.
|
Bucket.Lifecycle.Rule.Condition.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Bucket.Lifecycle.Rule.Condition.Builder |
clearIsLive()
Relevant only for versioned objects.
|
Bucket.Lifecycle.Rule.Condition.Builder |
clearMatchesPrefix()
List of object name prefixes.
|
Bucket.Lifecycle.Rule.Condition.Builder |
clearMatchesStorageClass()
Objects having any of the storage classes specified by this condition
will be matched.
|
Bucket.Lifecycle.Rule.Condition.Builder |
clearMatchesSuffix()
List of object name suffixes.
|
Bucket.Lifecycle.Rule.Condition.Builder |
clearNoncurrentTimeBefore()
This condition is relevant only for versioned objects.
|
Bucket.Lifecycle.Rule.Condition.Builder |
clearNumNewerVersions()
Relevant only for versioned objects.
|
Bucket.Lifecycle.Rule.Condition.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Bucket.Lifecycle.Rule.Condition.Builder |
clone() |
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.Date.Builder |
getCreatedBeforeBuilder()
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.Date.Builder |
getCustomTimeBeforeBuilder()
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.
|
Bucket.Lifecycle.Rule.Condition |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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.
|
com.google.protobuf.ProtocolStringList |
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.
|
com.google.protobuf.ProtocolStringList |
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.
|
com.google.protobuf.ProtocolStringList |
getMatchesSuffixList()
List of object name suffixes.
|
com.google.type.Date |
getNoncurrentTimeBefore()
This condition is relevant only for versioned objects.
|
com.google.type.Date.Builder |
getNoncurrentTimeBeforeBuilder()
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.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Bucket.Lifecycle.Rule.Condition.Builder |
mergeCreatedBefore(com.google.type.Date value)
This condition is satisfied when an object is created before midnight
of the specified date in UTC.
|
Bucket.Lifecycle.Rule.Condition.Builder |
mergeCustomTimeBefore(com.google.type.Date value)
An object matches this condition if the custom timestamp set on the
object is before the specified date in UTC.
|
Bucket.Lifecycle.Rule.Condition.Builder |
mergeFrom(Bucket.Lifecycle.Rule.Condition other) |
Bucket.Lifecycle.Rule.Condition.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Bucket.Lifecycle.Rule.Condition.Builder |
mergeFrom(com.google.protobuf.Message other) |
Bucket.Lifecycle.Rule.Condition.Builder |
mergeNoncurrentTimeBefore(com.google.type.Date value)
This condition is relevant only for versioned objects.
|
Bucket.Lifecycle.Rule.Condition.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Bucket.Lifecycle.Rule.Condition.Builder |
setAgeDays(int value)
Age of an object (in days).
|
Bucket.Lifecycle.Rule.Condition.Builder |
setCreatedBefore(com.google.type.Date.Builder builderForValue)
This condition is satisfied when an object is created before midnight
of the specified date in UTC.
|
Bucket.Lifecycle.Rule.Condition.Builder |
setCreatedBefore(com.google.type.Date value)
This condition is satisfied when an object is created before midnight
of the specified date in UTC.
|
Bucket.Lifecycle.Rule.Condition.Builder |
setCustomTimeBefore(com.google.type.Date.Builder builderForValue)
An object matches this condition if the custom timestamp set on the
object is before the specified date in UTC.
|
Bucket.Lifecycle.Rule.Condition.Builder |
setCustomTimeBefore(com.google.type.Date value)
An object matches this condition if the custom timestamp set on the
object is before the specified date in UTC.
|
Bucket.Lifecycle.Rule.Condition.Builder |
setDaysSinceCustomTime(int value)
Number of days that have elapsed since the custom timestamp set on an
object.
|
Bucket.Lifecycle.Rule.Condition.Builder |
setDaysSinceNoncurrentTime(int value)
This condition is relevant only for versioned objects.
|
Bucket.Lifecycle.Rule.Condition.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Bucket.Lifecycle.Rule.Condition.Builder |
setIsLive(boolean value)
Relevant only for versioned objects.
|
Bucket.Lifecycle.Rule.Condition.Builder |
setMatchesPrefix(int index,
String value)
List of object name prefixes.
|
Bucket.Lifecycle.Rule.Condition.Builder |
setMatchesStorageClass(int index,
String value)
Objects having any of the storage classes specified by this condition
will be matched.
|
Bucket.Lifecycle.Rule.Condition.Builder |
setMatchesSuffix(int index,
String value)
List of object name suffixes.
|
Bucket.Lifecycle.Rule.Condition.Builder |
setNoncurrentTimeBefore(com.google.type.Date.Builder builderForValue)
This condition is relevant only for versioned objects.
|
Bucket.Lifecycle.Rule.Condition.Builder |
setNoncurrentTimeBefore(com.google.type.Date value)
This condition is relevant only for versioned objects.
|
Bucket.Lifecycle.Rule.Condition.Builder |
setNumNewerVersions(int value)
Relevant only for versioned objects.
|
Bucket.Lifecycle.Rule.Condition.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Bucket.Lifecycle.Rule.Condition.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Lifecycle.Rule.Condition.Builder>
public Bucket.Lifecycle.Rule.Condition.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Lifecycle.Rule.Condition.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Lifecycle.Rule.Condition.Builder>
public Bucket.Lifecycle.Rule.Condition getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Bucket.Lifecycle.Rule.Condition build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Bucket.Lifecycle.Rule.Condition buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Bucket.Lifecycle.Rule.Condition.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Lifecycle.Rule.Condition.Builder>
public Bucket.Lifecycle.Rule.Condition.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Lifecycle.Rule.Condition.Builder>
public Bucket.Lifecycle.Rule.Condition.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Lifecycle.Rule.Condition.Builder>
public Bucket.Lifecycle.Rule.Condition.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Lifecycle.Rule.Condition.Builder>
public Bucket.Lifecycle.Rule.Condition.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Lifecycle.Rule.Condition.Builder>
public Bucket.Lifecycle.Rule.Condition.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Lifecycle.Rule.Condition.Builder>
public Bucket.Lifecycle.Rule.Condition.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Bucket.Lifecycle.Rule.Condition.Builder>
public Bucket.Lifecycle.Rule.Condition.Builder mergeFrom(Bucket.Lifecycle.Rule.Condition other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Lifecycle.Rule.Condition.Builder>
public Bucket.Lifecycle.Rule.Condition.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Bucket.Lifecycle.Rule.Condition.Builder>
IOException
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;
hasAgeDays
in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
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;
getAgeDays
in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
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;
value
- The ageDays to set.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;
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;
hasCreatedBefore
in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
public 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;
getCreatedBefore
in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
public Bucket.Lifecycle.Rule.Condition.Builder setCreatedBefore(com.google.type.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;
public Bucket.Lifecycle.Rule.Condition.Builder setCreatedBefore(com.google.type.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;
public Bucket.Lifecycle.Rule.Condition.Builder mergeCreatedBefore(com.google.type.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;
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;
public com.google.type.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;
public 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;
getCreatedBeforeOrBuilder
in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
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;
hasIsLive
in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
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;
getIsLive
in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
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;
value
- The isLive to set.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;
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;
hasNumNewerVersions
in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
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;
getNumNewerVersions
in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
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;
value
- The numNewerVersions to set.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;
public com.google.protobuf.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;
getMatchesStorageClassList
in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
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;
getMatchesStorageClassCount
in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
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;
getMatchesStorageClass
in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
index
- The index of the element to return.public 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;
getMatchesStorageClassBytes
in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
index
- The index of the value to return.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;
index
- The index to set the value at.value
- The matchesStorageClass to set.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;
value
- The matchesStorageClass to add.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;
values
- The matchesStorageClass to add.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;
public Bucket.Lifecycle.Rule.Condition.Builder addMatchesStorageClassBytes(com.google.protobuf.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;
value
- The bytes of the matchesStorageClass to add.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;
hasDaysSinceCustomTime
in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
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;
getDaysSinceCustomTime
in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
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;
value
- The daysSinceCustomTime to set.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;
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;
hasCustomTimeBefore
in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
public 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;
getCustomTimeBefore
in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
public Bucket.Lifecycle.Rule.Condition.Builder setCustomTimeBefore(com.google.type.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;
public Bucket.Lifecycle.Rule.Condition.Builder setCustomTimeBefore(com.google.type.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;
public Bucket.Lifecycle.Rule.Condition.Builder mergeCustomTimeBefore(com.google.type.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;
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;
public com.google.type.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;
public 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;
getCustomTimeBeforeOrBuilder
in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
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;
hasDaysSinceNoncurrentTime
in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
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;
getDaysSinceNoncurrentTime
in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
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;
value
- The daysSinceNoncurrentTime to set.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;
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;
hasNoncurrentTimeBefore
in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
public 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;
getNoncurrentTimeBefore
in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
public Bucket.Lifecycle.Rule.Condition.Builder setNoncurrentTimeBefore(com.google.type.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;
public Bucket.Lifecycle.Rule.Condition.Builder setNoncurrentTimeBefore(com.google.type.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;
public Bucket.Lifecycle.Rule.Condition.Builder mergeNoncurrentTimeBefore(com.google.type.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;
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;
public com.google.type.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;
public 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;
getNoncurrentTimeBeforeOrBuilder
in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
public com.google.protobuf.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;
getMatchesPrefixList
in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
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;
getMatchesPrefixCount
in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
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;
getMatchesPrefix
in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
index
- The index of the element to return.public 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;
getMatchesPrefixBytes
in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
index
- The index of the value to return.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;
index
- The index to set the value at.value
- The matchesPrefix to set.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;
value
- The matchesPrefix to add.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;
values
- The matchesPrefix to add.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;
public Bucket.Lifecycle.Rule.Condition.Builder addMatchesPrefixBytes(com.google.protobuf.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;
value
- The bytes of the matchesPrefix to add.public com.google.protobuf.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;
getMatchesSuffixList
in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
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;
getMatchesSuffixCount
in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
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;
getMatchesSuffix
in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
index
- The index of the element to return.public 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;
getMatchesSuffixBytes
in interface Bucket.Lifecycle.Rule.ConditionOrBuilder
index
- The index of the value to return.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;
index
- The index to set the value at.value
- The matchesSuffix to set.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;
value
- The matchesSuffix to add.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;
values
- The matchesSuffix to add.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;
public Bucket.Lifecycle.Rule.Condition.Builder addMatchesSuffixBytes(com.google.protobuf.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;
value
- The bytes of the matchesSuffix to add.public final Bucket.Lifecycle.Rule.Condition.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Lifecycle.Rule.Condition.Builder>
public final Bucket.Lifecycle.Rule.Condition.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Lifecycle.Rule.Condition.Builder>
Copyright © 2023 Google LLC. All rights reserved.