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()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Bucket.Lifecycle.Rule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public Bucket.Lifecycle.Rule build()
buildPartial()
public Bucket.Lifecycle.Rule buildPartial()
clear()
public Bucket.Lifecycle.Rule.Builder clear()
Overrides
clearAction()
public Bucket.Lifecycle.Rule.Builder clearAction()
The action to take.
.google.storage.v2.Bucket.Lifecycle.Rule.Action action = 1;
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;
clearField(Descriptors.FieldDescriptor field)
public Bucket.Lifecycle.Rule.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Bucket.Lifecycle.Rule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public Bucket.Lifecycle.Rule.Builder clone()
Overrides
getAction()
public Bucket.Lifecycle.Rule.Action getAction()
The action to take.
.google.storage.v2.Bucket.Lifecycle.Rule.Action action = 1;
getActionBuilder()
public Bucket.Lifecycle.Rule.Action.Builder getActionBuilder()
The action to take.
.google.storage.v2.Bucket.Lifecycle.Rule.Action action = 1;
getActionOrBuilder()
public Bucket.Lifecycle.Rule.ActionOrBuilder getActionOrBuilder()
The action to take.
.google.storage.v2.Bucket.Lifecycle.Rule.Action action = 1;
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;
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;
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;
getDefaultInstanceForType()
public Bucket.Lifecycle.Rule getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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()
Overrides
isInitialized()
public final boolean isInitialized()
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;
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;
public Bucket.Lifecycle.Rule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Bucket.Lifecycle.Rule.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeFrom(Bucket.Lifecycle.Rule other)
public Bucket.Lifecycle.Rule.Builder mergeFrom(Bucket.Lifecycle.Rule other)
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Bucket.Lifecycle.Rule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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;
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;
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;
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;
setField(Descriptors.FieldDescriptor field, Object value)
public Bucket.Lifecycle.Rule.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Bucket.Lifecycle.Rule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Bucket.Lifecycle.Rule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides