public static final class Bucket.Lifecycle.Builder extends GeneratedMessage.Builder<Bucket.Lifecycle.Builder> implements Bucket.LifecycleOrBuilder
Lifecycle properties of a bucket.
For more information, see Object Lifecycle
Management.
Protobuf type google.storage.v2.Bucket.Lifecycle
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllRule(Iterable<? extends Bucket.Lifecycle.Rule> values)
public Bucket.Lifecycle.Builder addAllRule(Iterable<? extends Bucket.Lifecycle.Rule> values)
Optional. A lifecycle management rule, which is made of an action to take
and the condition under which the action is taken.
repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
values |
Iterable<? extends com.google.storage.v2.Bucket.Lifecycle.Rule>
|
addRule(Bucket.Lifecycle.Rule value)
public Bucket.Lifecycle.Builder addRule(Bucket.Lifecycle.Rule value)
Optional. A lifecycle management rule, which is made of an action to take
and the condition under which the action is taken.
repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1 [(.google.api.field_behavior) = OPTIONAL];
addRule(Bucket.Lifecycle.Rule.Builder builderForValue)
public Bucket.Lifecycle.Builder addRule(Bucket.Lifecycle.Rule.Builder builderForValue)
Optional. A lifecycle management rule, which is made of an action to take
and the condition under which the action is taken.
repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1 [(.google.api.field_behavior) = OPTIONAL];
addRule(int index, Bucket.Lifecycle.Rule value)
public Bucket.Lifecycle.Builder addRule(int index, Bucket.Lifecycle.Rule value)
Optional. A lifecycle management rule, which is made of an action to take
and the condition under which the action is taken.
repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1 [(.google.api.field_behavior) = OPTIONAL];
addRule(int index, Bucket.Lifecycle.Rule.Builder builderForValue)
public Bucket.Lifecycle.Builder addRule(int index, Bucket.Lifecycle.Rule.Builder builderForValue)
Optional. A lifecycle management rule, which is made of an action to take
and the condition under which the action is taken.
repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1 [(.google.api.field_behavior) = OPTIONAL];
addRuleBuilder()
public Bucket.Lifecycle.Rule.Builder addRuleBuilder()
Optional. A lifecycle management rule, which is made of an action to take
and the condition under which the action is taken.
repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1 [(.google.api.field_behavior) = OPTIONAL];
addRuleBuilder(int index)
public Bucket.Lifecycle.Rule.Builder addRuleBuilder(int index)
Optional. A lifecycle management rule, which is made of an action to take
and the condition under which the action is taken.
repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
|
build()
public Bucket.Lifecycle build()
buildPartial()
public Bucket.Lifecycle buildPartial()
clear()
public Bucket.Lifecycle.Builder clear()
Overrides
clearRule()
public Bucket.Lifecycle.Builder clearRule()
Optional. A lifecycle management rule, which is made of an action to take
and the condition under which the action is taken.
repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1 [(.google.api.field_behavior) = OPTIONAL];
getDefaultInstanceForType()
public Bucket.Lifecycle getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getRule(int index)
public Bucket.Lifecycle.Rule getRule(int index)
Optional. A lifecycle management rule, which is made of an action to take
and the condition under which the action is taken.
repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
|
getRuleBuilder(int index)
public Bucket.Lifecycle.Rule.Builder getRuleBuilder(int index)
Optional. A lifecycle management rule, which is made of an action to take
and the condition under which the action is taken.
repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
|
getRuleBuilderList()
public List<Bucket.Lifecycle.Rule.Builder> getRuleBuilderList()
Optional. A lifecycle management rule, which is made of an action to take
and the condition under which the action is taken.
repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1 [(.google.api.field_behavior) = OPTIONAL];
getRuleCount()
public int getRuleCount()
Optional. A lifecycle management rule, which is made of an action to take
and the condition under which the action is taken.
repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
int |
|
getRuleList()
public List<Bucket.Lifecycle.Rule> getRuleList()
Optional. A lifecycle management rule, which is made of an action to take
and the condition under which the action is taken.
repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1 [(.google.api.field_behavior) = OPTIONAL];
getRuleOrBuilder(int index)
public Bucket.Lifecycle.RuleOrBuilder getRuleOrBuilder(int index)
Optional. A lifecycle management rule, which is made of an action to take
and the condition under which the action is taken.
repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
|
getRuleOrBuilderList()
public List<? extends Bucket.Lifecycle.RuleOrBuilder> getRuleOrBuilderList()
Optional. A lifecycle management rule, which is made of an action to take
and the condition under which the action is taken.
repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
List<? extends com.google.storage.v2.Bucket.Lifecycle.RuleOrBuilder> |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
public Bucket.Lifecycle.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Bucket.Lifecycle.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
mergeFrom(Bucket.Lifecycle other)
public Bucket.Lifecycle.Builder mergeFrom(Bucket.Lifecycle other)
removeRule(int index)
public Bucket.Lifecycle.Builder removeRule(int index)
Optional. A lifecycle management rule, which is made of an action to take
and the condition under which the action is taken.
repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
|
setRule(int index, Bucket.Lifecycle.Rule value)
public Bucket.Lifecycle.Builder setRule(int index, Bucket.Lifecycle.Rule value)
Optional. A lifecycle management rule, which is made of an action to take
and the condition under which the action is taken.
repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1 [(.google.api.field_behavior) = OPTIONAL];
setRule(int index, Bucket.Lifecycle.Rule.Builder builderForValue)
public Bucket.Lifecycle.Builder setRule(int index, Bucket.Lifecycle.Rule.Builder builderForValue)
Optional. A lifecycle management rule, which is made of an action to take
and the condition under which the action is taken.
repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1 [(.google.api.field_behavior) = OPTIONAL];