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) Optional.addAllMatchesStorageClass(Iterable<String> values) Optional.addAllMatchesSuffix(Iterable<String> values) Optional.addMatchesPrefix(String value) Optional.addMatchesPrefixBytes(com.google.protobuf.ByteString value) Optional.addMatchesStorageClass(String value) Optional.addMatchesStorageClassBytes(com.google.protobuf.ByteString value) Optional.addMatchesSuffix(String value) Optional.addMatchesSuffixBytes(com.google.protobuf.ByteString value) Optional.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Age of an object (in days).Optional.Optional.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.Optional.Optional.Optional.Optional.Relevant only for versioned objects.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()intAge of an object (in days).com.google.type.DateOptional.com.google.type.Date.BuilderOptional.com.google.type.DateOrBuilderOptional.com.google.type.DateOptional.com.google.type.Date.BuilderOptional.com.google.type.DateOrBuilderOptional.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) Optional.com.google.protobuf.ByteStringgetMatchesPrefixBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.getMatchesStorageClass(int index) Optional.com.google.protobuf.ByteStringgetMatchesStorageClassBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.getMatchesSuffix(int index) Optional.com.google.protobuf.ByteStringgetMatchesSuffixBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.com.google.type.DateOptional.com.google.type.Date.BuilderOptional.com.google.type.DateOrBuilderOptional.intRelevant only for versioned objects.booleanAge of an object (in days).booleanOptional.booleanOptional.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.booleanOptional.booleanRelevant only for versioned objects.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeCreatedBefore(com.google.type.Date value) Optional.mergeCustomTimeBefore(com.google.type.Date value) Optional.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeNoncurrentTimeBefore(com.google.type.Date value) Optional.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setAgeDays(int value) Age of an object (in days).setCreatedBefore(com.google.type.Date value) Optional.setCreatedBefore(com.google.type.Date.Builder builderForValue) Optional.setCustomTimeBefore(com.google.type.Date value) Optional.setCustomTimeBefore(com.google.type.Date.Builder builderForValue) Optional.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) Optional.setMatchesStorageClass(int index, String value) Optional.setMatchesSuffix(int index, String value) Optional.setNoncurrentTimeBefore(com.google.type.Date value) Optional.setNoncurrentTimeBefore(com.google.type.Date.Builder builderForValue) Optional.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, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, 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()Optional. This condition is satisfied when an object is created before midnight of the specified date in UTC.
.google.type.Date created_before = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasCreatedBeforein interfaceBucket.Lifecycle.Rule.ConditionOrBuilder- Returns:
- Whether the createdBefore field is set.
-
getCreatedBefore
public com.google.type.Date getCreatedBefore()Optional. This condition is satisfied when an object is created before midnight of the specified date in UTC.
.google.type.Date created_before = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCreatedBeforein interfaceBucket.Lifecycle.Rule.ConditionOrBuilder- Returns:
- The createdBefore.
-
setCreatedBefore
Optional. This condition is satisfied when an object is created before midnight of the specified date in UTC.
.google.type.Date created_before = 2 [(.google.api.field_behavior) = OPTIONAL]; -
setCreatedBefore
public Bucket.Lifecycle.Rule.Condition.Builder setCreatedBefore(com.google.type.Date.Builder builderForValue) Optional. This condition is satisfied when an object is created before midnight of the specified date in UTC.
.google.type.Date created_before = 2 [(.google.api.field_behavior) = OPTIONAL]; -
mergeCreatedBefore
Optional. This condition is satisfied when an object is created before midnight of the specified date in UTC.
.google.type.Date created_before = 2 [(.google.api.field_behavior) = OPTIONAL]; -
clearCreatedBefore
Optional. This condition is satisfied when an object is created before midnight of the specified date in UTC.
.google.type.Date created_before = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getCreatedBeforeBuilder
public com.google.type.Date.Builder getCreatedBeforeBuilder()Optional. This condition is satisfied when an object is created before midnight of the specified date in UTC.
.google.type.Date created_before = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getCreatedBeforeOrBuilder
public com.google.type.DateOrBuilder getCreatedBeforeOrBuilder()Optional. This condition is satisfied when an object is created before midnight of the specified date in UTC.
.google.type.Date created_before = 2 [(.google.api.field_behavior) = OPTIONAL];- 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()Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMatchesStorageClassListin interfaceBucket.Lifecycle.Rule.ConditionOrBuilder- Returns:
- A list containing the matchesStorageClass.
-
getMatchesStorageClassCount
public int getMatchesStorageClassCount()Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMatchesStorageClassCountin interfaceBucket.Lifecycle.Rule.ConditionOrBuilder- Returns:
- The count of matchesStorageClass.
-
getMatchesStorageClass
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- 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) Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- 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
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The matchesStorageClass to set.- Returns:
- This builder for chaining.
-
addMatchesStorageClass
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The matchesStorageClass to add.- Returns:
- This builder for chaining.
-
addAllMatchesStorageClass
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The matchesStorageClass to add.- Returns:
- This builder for chaining.
-
clearMatchesStorageClass
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
addMatchesStorageClassBytes
public Bucket.Lifecycle.Rule.Condition.Builder addMatchesStorageClassBytes(com.google.protobuf.ByteString value) Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- 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()Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasCustomTimeBeforein interfaceBucket.Lifecycle.Rule.ConditionOrBuilder- Returns:
- Whether the customTimeBefore field is set.
-
getCustomTimeBefore
public com.google.type.Date getCustomTimeBefore()Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCustomTimeBeforein interfaceBucket.Lifecycle.Rule.ConditionOrBuilder- Returns:
- The customTimeBefore.
-
setCustomTimeBefore
Optional. 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 [(.google.api.field_behavior) = OPTIONAL]; -
setCustomTimeBefore
public Bucket.Lifecycle.Rule.Condition.Builder setCustomTimeBefore(com.google.type.Date.Builder builderForValue) Optional. 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 [(.google.api.field_behavior) = OPTIONAL]; -
mergeCustomTimeBefore
Optional. 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 [(.google.api.field_behavior) = OPTIONAL]; -
clearCustomTimeBefore
Optional. 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 [(.google.api.field_behavior) = OPTIONAL]; -
getCustomTimeBeforeBuilder
public com.google.type.Date.Builder getCustomTimeBeforeBuilder()Optional. 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 [(.google.api.field_behavior) = OPTIONAL]; -
getCustomTimeBeforeOrBuilder
public com.google.type.DateOrBuilder getCustomTimeBeforeOrBuilder()Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- 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()Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasNoncurrentTimeBeforein interfaceBucket.Lifecycle.Rule.ConditionOrBuilder- Returns:
- Whether the noncurrentTimeBefore field is set.
-
getNoncurrentTimeBefore
public com.google.type.Date getNoncurrentTimeBefore()Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getNoncurrentTimeBeforein interfaceBucket.Lifecycle.Rule.ConditionOrBuilder- Returns:
- The noncurrentTimeBefore.
-
setNoncurrentTimeBefore
Optional. 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 [(.google.api.field_behavior) = OPTIONAL]; -
setNoncurrentTimeBefore
public Bucket.Lifecycle.Rule.Condition.Builder setNoncurrentTimeBefore(com.google.type.Date.Builder builderForValue) Optional. 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 [(.google.api.field_behavior) = OPTIONAL]; -
mergeNoncurrentTimeBefore
public Bucket.Lifecycle.Rule.Condition.Builder mergeNoncurrentTimeBefore(com.google.type.Date value) Optional. 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 [(.google.api.field_behavior) = OPTIONAL]; -
clearNoncurrentTimeBefore
Optional. 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 [(.google.api.field_behavior) = OPTIONAL]; -
getNoncurrentTimeBeforeBuilder
public com.google.type.Date.Builder getNoncurrentTimeBeforeBuilder()Optional. 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 [(.google.api.field_behavior) = OPTIONAL]; -
getNoncurrentTimeBeforeOrBuilder
public com.google.type.DateOrBuilder getNoncurrentTimeBeforeOrBuilder()Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getNoncurrentTimeBeforeOrBuilderin interfaceBucket.Lifecycle.Rule.ConditionOrBuilder
-
getMatchesPrefixList
public com.google.protobuf.ProtocolStringList getMatchesPrefixList()Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMatchesPrefixListin interfaceBucket.Lifecycle.Rule.ConditionOrBuilder- Returns:
- A list containing the matchesPrefix.
-
getMatchesPrefixCount
public int getMatchesPrefixCount()Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMatchesPrefixCountin interfaceBucket.Lifecycle.Rule.ConditionOrBuilder- Returns:
- The count of matchesPrefix.
-
getMatchesPrefix
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- 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) Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- 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
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The matchesPrefix to set.- Returns:
- This builder for chaining.
-
addMatchesPrefix
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The matchesPrefix to add.- Returns:
- This builder for chaining.
-
addAllMatchesPrefix
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The matchesPrefix to add.- Returns:
- This builder for chaining.
-
clearMatchesPrefix
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
addMatchesPrefixBytes
public Bucket.Lifecycle.Rule.Condition.Builder addMatchesPrefixBytes(com.google.protobuf.ByteString value) Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes of the matchesPrefix to add.- Returns:
- This builder for chaining.
-
getMatchesSuffixList
public com.google.protobuf.ProtocolStringList getMatchesSuffixList()Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMatchesSuffixListin interfaceBucket.Lifecycle.Rule.ConditionOrBuilder- Returns:
- A list containing the matchesSuffix.
-
getMatchesSuffixCount
public int getMatchesSuffixCount()Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMatchesSuffixCountin interfaceBucket.Lifecycle.Rule.ConditionOrBuilder- Returns:
- The count of matchesSuffix.
-
getMatchesSuffix
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- 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) Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- 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
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The matchesSuffix to set.- Returns:
- This builder for chaining.
-
addMatchesSuffix
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The matchesSuffix to add.- Returns:
- This builder for chaining.
-
addAllMatchesSuffix
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The matchesSuffix to add.- Returns:
- This builder for chaining.
-
clearMatchesSuffix
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
addMatchesSuffixBytes
public Bucket.Lifecycle.Rule.Condition.Builder addMatchesSuffixBytes(com.google.protobuf.ByteString value) Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- 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>
-