Package com.google.storage.v2
Class Bucket.Lifecycle.Rule.Condition.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Lifecycle.Rule.Condition.Builder>
com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Bucket.Lifecycle.Rule.ConditionOrBuilder,Cloneable
- Enclosing class:
- Bucket.Lifecycle.Rule.Condition
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-
Method Summary
Modifier and TypeMethodDescriptionaddAllMatchesPrefix(Iterable<String> values) List of object name prefixes.addAllMatchesStorageClass(Iterable<String> values) Objects having any of the storage classes specified by this condition will be matched.addAllMatchesSuffix(Iterable<String> values) List of object name suffixes.addMatchesPrefix(String value) List of object name prefixes.addMatchesPrefixBytes(com.google.protobuf.ByteString value) List of object name prefixes.addMatchesStorageClass(String value) Objects having any of the storage classes specified by this condition will be matched.addMatchesStorageClassBytes(com.google.protobuf.ByteString value) Objects having any of the storage classes specified by this condition will be matched.addMatchesSuffix(String value) List of object name suffixes.addMatchesSuffixBytes(com.google.protobuf.ByteString value) List of object name suffixes.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Age of an object (in days).This condition is satisfied when an object is created before midnight of the specified date in UTC.An object matches this condition if the custom timestamp set on the object is before the specified date in UTC.Number of days that have elapsed since the custom timestamp set on an object.This condition is relevant only for versioned objects.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Relevant only for versioned objects.List of object name prefixes.Objects having any of the storage classes specified by this condition will be matched.List of object name suffixes.This condition is relevant only for versioned objects.Relevant only for versioned objects.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()intAge 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.Date.BuilderThis 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.Date.BuilderAn 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.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanRelevant 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.com.google.protobuf.ProtocolStringListList 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.com.google.protobuf.ProtocolStringListObjects 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.com.google.protobuf.ProtocolStringListList of object name suffixes.com.google.type.DateThis condition is relevant only for versioned objects.com.google.type.Date.BuilderThis 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.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeCreatedBefore(com.google.type.Date value) This condition is satisfied when an object is created before midnight of the specified date in UTC.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.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeNoncurrentTimeBefore(com.google.type.Date value) This condition is relevant only for versioned objects.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setAgeDays(int value) Age of an object (in days).setCreatedBefore(com.google.type.Date value) This condition is satisfied when an object is created before midnight of the specified date in UTC.setCreatedBefore(com.google.type.Date.Builder builderForValue) This condition is satisfied when an object is created before midnight of the specified date in UTC.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.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.setDaysSinceCustomTime(int value) Number of days that have elapsed since the custom timestamp set on an object.setDaysSinceNoncurrentTime(int value) This condition is relevant only for versioned objects.setIsLive(boolean value) Relevant only for versioned objects.setMatchesPrefix(int index, String value) List of object name prefixes.setMatchesStorageClass(int index, String value) Objects having any of the storage classes specified by this condition will be matched.setMatchesSuffix(int index, String value) List of object name suffixes.setNoncurrentTimeBefore(com.google.type.Date value) This condition is relevant only for versioned objects.setNoncurrentTimeBefore(com.google.type.Date.Builder builderForValue) This condition is relevant only for versioned objects.setNumNewerVersions(int value) Relevant only for versioned objects.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Bucket.Lifecycle.Rule.Condition.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Bucket.Lifecycle.Rule.Condition.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Bucket.Lifecycle.Rule.Condition.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Bucket.Lifecycle.Rule.Condition.Builder>
-
setField
public Bucket.Lifecycle.Rule.Condition.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Bucket.Lifecycle.Rule.Condition.Builder>
-
clearField
public Bucket.Lifecycle.Rule.Condition.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Bucket.Lifecycle.Rule.Condition.Builder>
-
clearOneof
public Bucket.Lifecycle.Rule.Condition.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Bucket.Lifecycle.Rule.Condition.Builder>
-
setRepeatedField
public Bucket.Lifecycle.Rule.Condition.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Bucket.Lifecycle.Rule.Condition.Builder>
-
addRepeatedField
public Bucket.Lifecycle.Rule.Condition.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Bucket.Lifecycle.Rule.Condition.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Bucket.Lifecycle.Rule.Condition.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Bucket.Lifecycle.Rule.Condition.Builder>
-
mergeFrom
public Bucket.Lifecycle.Rule.Condition.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Bucket.Lifecycle.Rule.Condition.Builder>- Throws:
IOException
-
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;- Specified by:
hasAgeDaysin interfaceBucket.Lifecycle.Rule.ConditionOrBuilder- Returns:
- Whether the ageDays field is set.
-
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;- Specified by:
getAgeDaysin interfaceBucket.Lifecycle.Rule.ConditionOrBuilder- Returns:
- The ageDays.
-
setAgeDays
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;- Parameters:
value- The ageDays to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
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;- Specified by:
hasCreatedBeforein interfaceBucket.Lifecycle.Rule.ConditionOrBuilder- Returns:
- Whether the createdBefore field is set.
-
getCreatedBefore
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;- Specified by:
getCreatedBeforein interfaceBucket.Lifecycle.Rule.ConditionOrBuilder- Returns:
- The createdBefore.
-
setCreatedBefore
This condition is satisfied when an object is created before midnight of the specified date in UTC.
.google.type.Date created_before = 2; -
setCreatedBefore
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; -
mergeCreatedBefore
This condition is satisfied when an object is created before midnight of the specified date in UTC.
.google.type.Date created_before = 2; -
clearCreatedBefore
This condition is satisfied when an object is created before midnight of the specified date in UTC.
.google.type.Date created_before = 2; -
getCreatedBeforeBuilder
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; -
getCreatedBeforeOrBuilder
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;- Specified by:
getCreatedBeforeOrBuilderin interfaceBucket.Lifecycle.Rule.ConditionOrBuilder
-
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;- Specified by:
hasIsLivein interfaceBucket.Lifecycle.Rule.ConditionOrBuilder- Returns:
- Whether the isLive field is set.
-
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;- Specified by:
getIsLivein interfaceBucket.Lifecycle.Rule.ConditionOrBuilder- Returns:
- The isLive.
-
setIsLive
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;- Parameters:
value- The isLive to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
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;- Specified by:
hasNumNewerVersionsin interfaceBucket.Lifecycle.Rule.ConditionOrBuilder- Returns:
- Whether the numNewerVersions field is set.
-
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;- Specified by:
getNumNewerVersionsin interfaceBucket.Lifecycle.Rule.ConditionOrBuilder- Returns:
- The numNewerVersions.
-
setNumNewerVersions
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;- Parameters:
value- The numNewerVersions to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
getMatchesStorageClassList
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;- Specified by:
getMatchesStorageClassListin interfaceBucket.Lifecycle.Rule.ConditionOrBuilder- Returns:
- A list containing the matchesStorageClass.
-
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;- Specified by:
getMatchesStorageClassCountin interfaceBucket.Lifecycle.Rule.ConditionOrBuilder- 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;- Specified by:
getMatchesStorageClassin interfaceBucket.Lifecycle.Rule.ConditionOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The matchesStorageClass at the given index.
-
getMatchesStorageClassBytes
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;- Specified by:
getMatchesStorageClassBytesin interfaceBucket.Lifecycle.Rule.ConditionOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the matchesStorageClass at the given index.
-
setMatchesStorageClass
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 to set the value at.value- The matchesStorageClass to set.- Returns:
- This builder for chaining.
-
addMatchesStorageClass
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:
value- The matchesStorageClass to add.- Returns:
- This builder for chaining.
-
addAllMatchesStorageClass
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:
values- The matchesStorageClass to add.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
addMatchesStorageClassBytes
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;- Parameters:
value- The bytes of the matchesStorageClass to add.- Returns:
- This builder for chaining.
-
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;- Specified by:
hasDaysSinceCustomTimein interfaceBucket.Lifecycle.Rule.ConditionOrBuilder- Returns:
- Whether the daysSinceCustomTime field is set.
-
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;- Specified by:
getDaysSinceCustomTimein interfaceBucket.Lifecycle.Rule.ConditionOrBuilder- Returns:
- The daysSinceCustomTime.
-
setDaysSinceCustomTime
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;- Parameters:
value- The daysSinceCustomTime to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
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;- Specified by:
hasCustomTimeBeforein interfaceBucket.Lifecycle.Rule.ConditionOrBuilder- Returns:
- Whether the customTimeBefore field is set.
-
getCustomTimeBefore
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;- Specified by:
getCustomTimeBeforein interfaceBucket.Lifecycle.Rule.ConditionOrBuilder- Returns:
- The customTimeBefore.
-
setCustomTimeBefore
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; -
setCustomTimeBefore
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; -
mergeCustomTimeBefore
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; -
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; -
getCustomTimeBeforeBuilder
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; -
getCustomTimeBeforeOrBuilder
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;- Specified by:
getCustomTimeBeforeOrBuilderin interfaceBucket.Lifecycle.Rule.ConditionOrBuilder
-
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;- Specified by:
hasDaysSinceNoncurrentTimein interfaceBucket.Lifecycle.Rule.ConditionOrBuilder- Returns:
- Whether the daysSinceNoncurrentTime field is set.
-
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;- Specified by:
getDaysSinceNoncurrentTimein interfaceBucket.Lifecycle.Rule.ConditionOrBuilder- Returns:
- The daysSinceNoncurrentTime.
-
setDaysSinceNoncurrentTime
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;- Parameters:
value- The daysSinceNoncurrentTime to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
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;- Specified by:
hasNoncurrentTimeBeforein interfaceBucket.Lifecycle.Rule.ConditionOrBuilder- Returns:
- Whether the noncurrentTimeBefore field is set.
-
getNoncurrentTimeBefore
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;- Specified by:
getNoncurrentTimeBeforein interfaceBucket.Lifecycle.Rule.ConditionOrBuilder- Returns:
- The noncurrentTimeBefore.
-
setNoncurrentTimeBefore
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; -
setNoncurrentTimeBefore
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; -
mergeNoncurrentTimeBefore
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; -
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; -
getNoncurrentTimeBeforeBuilder
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; -
getNoncurrentTimeBeforeOrBuilder
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;- Specified by:
getNoncurrentTimeBeforeOrBuilderin interfaceBucket.Lifecycle.Rule.ConditionOrBuilder
-
getMatchesPrefixList
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;- Specified by:
getMatchesPrefixListin interfaceBucket.Lifecycle.Rule.ConditionOrBuilder- Returns:
- A list containing the matchesPrefix.
-
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;- Specified by:
getMatchesPrefixCountin interfaceBucket.Lifecycle.Rule.ConditionOrBuilder- 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;- Specified by:
getMatchesPrefixin interfaceBucket.Lifecycle.Rule.ConditionOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The matchesPrefix at the given index.
-
getMatchesPrefixBytes
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;- Specified by:
getMatchesPrefixBytesin interfaceBucket.Lifecycle.Rule.ConditionOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the matchesPrefix at the given index.
-
setMatchesPrefix
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 to set the value at.value- The matchesPrefix to set.- Returns:
- This builder for chaining.
-
addMatchesPrefix
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:
value- The matchesPrefix to add.- Returns:
- This builder for chaining.
-
addAllMatchesPrefix
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:
values- The matchesPrefix to add.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
addMatchesPrefixBytes
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;- Parameters:
value- The bytes of the matchesPrefix to add.- Returns:
- This builder for chaining.
-
getMatchesSuffixList
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;- Specified by:
getMatchesSuffixListin interfaceBucket.Lifecycle.Rule.ConditionOrBuilder- Returns:
- A list containing the matchesSuffix.
-
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;- Specified by:
getMatchesSuffixCountin interfaceBucket.Lifecycle.Rule.ConditionOrBuilder- 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;- Specified by:
getMatchesSuffixin interfaceBucket.Lifecycle.Rule.ConditionOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The matchesSuffix at the given index.
-
getMatchesSuffixBytes
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;- Specified by:
getMatchesSuffixBytesin interfaceBucket.Lifecycle.Rule.ConditionOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the matchesSuffix at the given index.
-
setMatchesSuffix
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 to set the value at.value- The matchesSuffix to set.- Returns:
- This builder for chaining.
-
addMatchesSuffix
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:
value- The matchesSuffix to add.- Returns:
- This builder for chaining.
-
addAllMatchesSuffix
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:
values- The matchesSuffix to add.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
addMatchesSuffixBytes
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;- Parameters:
value- The bytes of the matchesSuffix to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Bucket.Lifecycle.Rule.Condition.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Bucket.Lifecycle.Rule.Condition.Builder>
-
mergeUnknownFields
public final Bucket.Lifecycle.Rule.Condition.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Bucket.Lifecycle.Rule.Condition.Builder>
-