Class Bucket.Lifecycle.Rule.Builder (2.29.1)

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

A lifecycle Rule, combining an action to take on an object and a condition which will trigger that action.

Protobuf type google.storage.v2.Bucket.Lifecycle.Rule

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearAction()

public Bucket.Lifecycle.Rule.Builder clearAction()

The action to take.

.google.storage.v2.Bucket.Lifecycle.Rule.Action action = 1;

Returns
Type Description
Bucket.Lifecycle.Rule.Builder

clearCondition()

public Bucket.Lifecycle.Rule.Builder clearCondition()

The condition(s) under which the action will be taken.

.google.storage.v2.Bucket.Lifecycle.Rule.Condition condition = 2;

Returns
Type Description
Bucket.Lifecycle.Rule.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAction()

public Bucket.Lifecycle.Rule.Action getAction()

The action to take.

.google.storage.v2.Bucket.Lifecycle.Rule.Action action = 1;

Returns
Type Description
Bucket.Lifecycle.Rule.Action

The action.

getActionBuilder()

public Bucket.Lifecycle.Rule.Action.Builder getActionBuilder()

The action to take.

.google.storage.v2.Bucket.Lifecycle.Rule.Action action = 1;

Returns
Type Description
Bucket.Lifecycle.Rule.Action.Builder

getActionOrBuilder()

public Bucket.Lifecycle.Rule.ActionOrBuilder getActionOrBuilder()

The action to take.

.google.storage.v2.Bucket.Lifecycle.Rule.Action action = 1;

Returns
Type Description
Bucket.Lifecycle.Rule.ActionOrBuilder

getCondition()

public Bucket.Lifecycle.Rule.Condition getCondition()

The condition(s) under which the action will be taken.

.google.storage.v2.Bucket.Lifecycle.Rule.Condition condition = 2;

Returns
Type Description
Bucket.Lifecycle.Rule.Condition

The condition.

getConditionBuilder()

public Bucket.Lifecycle.Rule.Condition.Builder getConditionBuilder()

The condition(s) under which the action will be taken.

.google.storage.v2.Bucket.Lifecycle.Rule.Condition condition = 2;

Returns
Type Description
Bucket.Lifecycle.Rule.Condition.Builder

getConditionOrBuilder()

public Bucket.Lifecycle.Rule.ConditionOrBuilder getConditionOrBuilder()

The condition(s) under which the action will be taken.

.google.storage.v2.Bucket.Lifecycle.Rule.Condition condition = 2;

Returns
Type Description
Bucket.Lifecycle.Rule.ConditionOrBuilder

getDefaultInstanceForType()

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

getDescriptorForType()

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

hasAction()

public boolean hasAction()

The action to take.

.google.storage.v2.Bucket.Lifecycle.Rule.Action action = 1;

Returns
Type Description
boolean

Whether the action field is set.

hasCondition()

public boolean hasCondition()

The condition(s) under which the action will be taken.

.google.storage.v2.Bucket.Lifecycle.Rule.Condition condition = 2;

Returns
Type Description
boolean

Whether the condition field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAction(Bucket.Lifecycle.Rule.Action value)

public Bucket.Lifecycle.Rule.Builder mergeAction(Bucket.Lifecycle.Rule.Action value)

The action to take.

.google.storage.v2.Bucket.Lifecycle.Rule.Action action = 1;

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

mergeCondition(Bucket.Lifecycle.Rule.Condition value)

public Bucket.Lifecycle.Rule.Builder mergeCondition(Bucket.Lifecycle.Rule.Condition value)

The condition(s) under which the action will be taken.

.google.storage.v2.Bucket.Lifecycle.Rule.Condition condition = 2;

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Bucket.Lifecycle.Rule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Bucket.Lifecycle.Rule.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Bucket.Lifecycle.Rule.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Bucket.Lifecycle.Rule.Builder
Overrides

mergeFrom(Bucket.Lifecycle.Rule other)

public Bucket.Lifecycle.Rule.Builder mergeFrom(Bucket.Lifecycle.Rule other)
Parameter
Name Description
other Bucket.Lifecycle.Rule
Returns
Type Description
Bucket.Lifecycle.Rule.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Bucket.Lifecycle.Rule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Bucket.Lifecycle.Rule.Builder
Overrides

setAction(Bucket.Lifecycle.Rule.Action value)

public Bucket.Lifecycle.Rule.Builder setAction(Bucket.Lifecycle.Rule.Action value)

The action to take.

.google.storage.v2.Bucket.Lifecycle.Rule.Action action = 1;

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

setAction(Bucket.Lifecycle.Rule.Action.Builder builderForValue)

public Bucket.Lifecycle.Rule.Builder setAction(Bucket.Lifecycle.Rule.Action.Builder builderForValue)

The action to take.

.google.storage.v2.Bucket.Lifecycle.Rule.Action action = 1;

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

setCondition(Bucket.Lifecycle.Rule.Condition value)

public Bucket.Lifecycle.Rule.Builder setCondition(Bucket.Lifecycle.Rule.Condition value)

The condition(s) under which the action will be taken.

.google.storage.v2.Bucket.Lifecycle.Rule.Condition condition = 2;

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

setCondition(Bucket.Lifecycle.Rule.Condition.Builder builderForValue)

public Bucket.Lifecycle.Rule.Builder setCondition(Bucket.Lifecycle.Rule.Condition.Builder builderForValue)

The condition(s) under which the action will be taken.

.google.storage.v2.Bucket.Lifecycle.Rule.Condition condition = 2;

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public Bucket.Lifecycle.Rule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Bucket.Lifecycle.Rule.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Bucket.Lifecycle.Rule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Bucket.Lifecycle.Rule.Builder
Overrides