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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Bucket.Lifecycle.Rule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public Bucket.Lifecycle.Rule build()
Returns
buildPartial()
public Bucket.Lifecycle.Rule buildPartial()
Returns
clear()
public Bucket.Lifecycle.Rule.Builder clear()
Returns
Overrides
clearAction()
public Bucket.Lifecycle.Rule.Builder clearAction()
The action to take.
.google.storage.v2.Bucket.Lifecycle.Rule.Action action = 1;
Returns
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
clearField(Descriptors.FieldDescriptor field)
public Bucket.Lifecycle.Rule.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Bucket.Lifecycle.Rule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public Bucket.Lifecycle.Rule.Builder clone()
Returns
Overrides
getAction()
public Bucket.Lifecycle.Rule.Action getAction()
The action to take.
.google.storage.v2.Bucket.Lifecycle.Rule.Action action = 1;
Returns
getActionBuilder()
public Bucket.Lifecycle.Rule.Action.Builder getActionBuilder()
The action to take.
.google.storage.v2.Bucket.Lifecycle.Rule.Action action = 1;
Returns
getActionOrBuilder()
public Bucket.Lifecycle.Rule.ActionOrBuilder getActionOrBuilder()
The action to take.
.google.storage.v2.Bucket.Lifecycle.Rule.Action action = 1;
Returns
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
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
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
getDefaultInstanceForType()
public Bucket.Lifecycle.Rule getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
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
Returns
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
Returns
public Bucket.Lifecycle.Rule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Bucket.Lifecycle.Rule.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeFrom(Bucket.Lifecycle.Rule other)
public Bucket.Lifecycle.Rule.Builder mergeFrom(Bucket.Lifecycle.Rule other)
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Bucket.Lifecycle.Rule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
Returns
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
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public Bucket.Lifecycle.Rule.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Bucket.Lifecycle.Rule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Bucket.Lifecycle.Rule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides