Class Bucket.Lifecycle.Builder (2.39.0)

public static final class Bucket.Lifecycle.Builder extends GeneratedMessageV3.Builder<Bucket.Lifecycle.Builder> implements Bucket.LifecycleOrBuilder

Lifecycle properties of a bucket. For more information, see https://cloud.google.com/storage/docs/lifecycle.

Protobuf type google.storage.v2.Bucket.Lifecycle

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllRule(Iterable<? extends Bucket.Lifecycle.Rule> values)

public Bucket.Lifecycle.Builder addAllRule(Iterable<? extends Bucket.Lifecycle.Rule> values)

A lifecycle management rule, which is made of an action to take and the condition(s) under which the action will be taken.

repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1;

Parameter
Name Description
values Iterable<? extends com.google.storage.v2.Bucket.Lifecycle.Rule>
Returns
Type Description
Bucket.Lifecycle.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Bucket.Lifecycle.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Bucket.Lifecycle.Builder
Overrides

addRule(Bucket.Lifecycle.Rule value)

public Bucket.Lifecycle.Builder addRule(Bucket.Lifecycle.Rule value)

A lifecycle management rule, which is made of an action to take and the condition(s) under which the action will be taken.

repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1;

Parameter
Name Description
value Bucket.Lifecycle.Rule
Returns
Type Description
Bucket.Lifecycle.Builder

addRule(Bucket.Lifecycle.Rule.Builder builderForValue)

public Bucket.Lifecycle.Builder addRule(Bucket.Lifecycle.Rule.Builder builderForValue)

A lifecycle management rule, which is made of an action to take and the condition(s) under which the action will be taken.

repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1;

Parameter
Name Description
builderForValue Bucket.Lifecycle.Rule.Builder
Returns
Type Description
Bucket.Lifecycle.Builder

addRule(int index, Bucket.Lifecycle.Rule value)

public Bucket.Lifecycle.Builder addRule(int index, Bucket.Lifecycle.Rule value)

A lifecycle management rule, which is made of an action to take and the condition(s) under which the action will be taken.

repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1;

Parameters
Name Description
index int
value Bucket.Lifecycle.Rule
Returns
Type Description
Bucket.Lifecycle.Builder

addRule(int index, Bucket.Lifecycle.Rule.Builder builderForValue)

public Bucket.Lifecycle.Builder addRule(int index, Bucket.Lifecycle.Rule.Builder builderForValue)

A lifecycle management rule, which is made of an action to take and the condition(s) under which the action will be taken.

repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1;

Parameters
Name Description
index int
builderForValue Bucket.Lifecycle.Rule.Builder
Returns
Type Description
Bucket.Lifecycle.Builder

addRuleBuilder()

public Bucket.Lifecycle.Rule.Builder addRuleBuilder()

A lifecycle management rule, which is made of an action to take and the condition(s) under which the action will be taken.

repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1;

Returns
Type Description
Bucket.Lifecycle.Rule.Builder

addRuleBuilder(int index)

public Bucket.Lifecycle.Rule.Builder addRuleBuilder(int index)

A lifecycle management rule, which is made of an action to take and the condition(s) under which the action will be taken.

repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1;

Parameter
Name Description
index int
Returns
Type Description
Bucket.Lifecycle.Rule.Builder

build()

public Bucket.Lifecycle build()
Returns
Type Description
Bucket.Lifecycle

buildPartial()

public Bucket.Lifecycle buildPartial()
Returns
Type Description
Bucket.Lifecycle

clear()

public Bucket.Lifecycle.Builder clear()
Returns
Type Description
Bucket.Lifecycle.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Bucket.Lifecycle.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Bucket.Lifecycle.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Bucket.Lifecycle.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Bucket.Lifecycle.Builder
Overrides

clearRule()

public Bucket.Lifecycle.Builder clearRule()

A lifecycle management rule, which is made of an action to take and the condition(s) under which the action will be taken.

repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1;

Returns
Type Description
Bucket.Lifecycle.Builder

clone()

public Bucket.Lifecycle.Builder clone()
Returns
Type Description
Bucket.Lifecycle.Builder
Overrides

getDefaultInstanceForType()

public Bucket.Lifecycle getDefaultInstanceForType()
Returns
Type Description
Bucket.Lifecycle

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getRule(int index)

public Bucket.Lifecycle.Rule getRule(int index)

A lifecycle management rule, which is made of an action to take and the condition(s) under which the action will be taken.

repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1;

Parameter
Name Description
index int
Returns
Type Description
Bucket.Lifecycle.Rule

getRuleBuilder(int index)

public Bucket.Lifecycle.Rule.Builder getRuleBuilder(int index)

A lifecycle management rule, which is made of an action to take and the condition(s) under which the action will be taken.

repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1;

Parameter
Name Description
index int
Returns
Type Description
Bucket.Lifecycle.Rule.Builder

getRuleBuilderList()

public List<Bucket.Lifecycle.Rule.Builder> getRuleBuilderList()

A lifecycle management rule, which is made of an action to take and the condition(s) under which the action will be taken.

repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1;

Returns
Type Description
List<Builder>

getRuleCount()

public int getRuleCount()

A lifecycle management rule, which is made of an action to take and the condition(s) under which the action will be taken.

repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1;

Returns
Type Description