Class Bucket.Lifecycle.Builder (2.17.1)

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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.storage.v2.Bucket.Lifecycle.Rule>
Returns
TypeDescription
Bucket.Lifecycle.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Bucket.Lifecycle.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueBucket.Lifecycle.Rule
Returns
TypeDescription
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
NameDescription
builderForValueBucket.Lifecycle.Rule.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueBucket.Lifecycle.Rule
Returns
TypeDescription
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
NameDescription
indexint
builderForValueBucket.Lifecycle.Rule.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Bucket.Lifecycle.Rule.Builder

build()

public Bucket.Lifecycle build()
Returns
TypeDescription
Bucket.Lifecycle

buildPartial()

public Bucket.Lifecycle buildPartial()
Returns
TypeDescription
Bucket.Lifecycle

clear()

public Bucket.Lifecycle.Builder clear()
Returns
TypeDescription
Bucket.Lifecycle.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Bucket.Lifecycle.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Bucket.Lifecycle.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Bucket.Lifecycle.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
Bucket.Lifecycle.Builder

clone()

public Bucket.Lifecycle.Builder clone()
Returns
TypeDescription
Bucket.Lifecycle.Builder
Overrides

getDefaultInstanceForType()

public Bucket.Lifecycle getDefaultInstanceForType()
Returns
TypeDescription
Bucket.Lifecycle

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
int

getRuleList()

public List<Bucket.Lifecycle.Rule> getRuleList()

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
TypeDescription
List<Rule>

getRuleOrBuilder(int index)

public Bucket.Lifecycle.RuleOrBuilder getRuleOrBuilder(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
NameDescription
indexint
Returns
TypeDescription
Bucket.Lifecycle.RuleOrBuilder

getRuleOrBuilderList()

public List<? extends Bucket.Lifecycle.RuleOrBuilder> getRuleOrBuilderList()

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
TypeDescription
List<? extends com.google.storage.v2.Bucket.Lifecycle.RuleOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Bucket.Lifecycle.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Bucket.Lifecycle.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Bucket.Lifecycle.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Bucket.Lifecycle.Builder
Overrides

mergeFrom(Bucket.Lifecycle other)

public Bucket.Lifecycle.Builder mergeFrom(Bucket.Lifecycle other)
Parameter
NameDescription
otherBucket.Lifecycle
Returns
TypeDescription
Bucket.Lifecycle.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Bucket.Lifecycle.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Bucket.Lifecycle.Builder
Overrides

removeRule(int index)

public Bucket.Lifecycle.Builder removeRule(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
NameDescription
indexint
Returns
TypeDescription
Bucket.Lifecycle.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Bucket.Lifecycle.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Bucket.Lifecycle.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Bucket.Lifecycle.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Bucket.Lifecycle.Builder
Overrides

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

public Bucket.Lifecycle.Builder setRule(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
NameDescription
indexint
valueBucket.Lifecycle.Rule
Returns
TypeDescription
Bucket.Lifecycle.Builder

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

public Bucket.Lifecycle.Builder setRule(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
NameDescription
indexint
builderForValueBucket.Lifecycle.Rule.Builder
Returns
TypeDescription
Bucket.Lifecycle.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Bucket.Lifecycle.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Bucket.Lifecycle.Builder
Overrides