Class Bucket.Lifecycle.Rule.Builder (2.22.3)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

public Bucket.Lifecycle.Rule.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Bucket.Lifecycle.Rule.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public Bucket.Lifecycle.Rule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Bucket.Lifecycle.Rule.Builder
Overrides

clone()

public Bucket.Lifecycle.Rule.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Bucket.Lifecycle.Rule.ConditionOrBuilder

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

hasAction()

public boolean hasAction()

The action to take.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the condition field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueBucket.Lifecycle.Rule.Action
Returns
TypeDescription
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
NameDescription
valueBucket.Lifecycle.Rule.Condition
Returns
TypeDescription
Bucket.Lifecycle.Rule.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(Bucket.Lifecycle.Rule other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Bucket.Lifecycle.Rule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueBucket.Lifecycle.Rule.Action
Returns
TypeDescription
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
NameDescription
builderForValueBucket.Lifecycle.Rule.Action.Builder
Returns
TypeDescription
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
NameDescription
valueBucket.Lifecycle.Rule.Condition
Returns
TypeDescription
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
NameDescription
builderForValueBucket.Lifecycle.Rule.Condition.Builder
Returns
TypeDescription
Bucket.Lifecycle.Rule.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setUnknownFields(UnknownFieldSet unknownFields)

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