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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Bucket.Lifecycle.Rule.BuilderImplements
Bucket.Lifecycle.RuleOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Bucket.Lifecycle.Rule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Bucket.Lifecycle.Rule.Builder |
build()
public Bucket.Lifecycle.Rule build()
Type | Description |
Bucket.Lifecycle.Rule |
buildPartial()
public Bucket.Lifecycle.Rule buildPartial()
Type | Description |
Bucket.Lifecycle.Rule |
clear()
public Bucket.Lifecycle.Rule.Builder clear()
Type | Description |
Bucket.Lifecycle.Rule.Builder |
clearAction()
public Bucket.Lifecycle.Rule.Builder clearAction()
The action to take.
.google.storage.v2.Bucket.Lifecycle.Rule.Action action = 1;
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;
Type | Description |
Bucket.Lifecycle.Rule.Builder |
clearField(Descriptors.FieldDescriptor field)
public Bucket.Lifecycle.Rule.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Bucket.Lifecycle.Rule.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public Bucket.Lifecycle.Rule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Bucket.Lifecycle.Rule.Builder |
clone()
public Bucket.Lifecycle.Rule.Builder clone()
Type | Description |
Bucket.Lifecycle.Rule.Builder |
getAction()
public Bucket.Lifecycle.Rule.Action getAction()
The action to take.
.google.storage.v2.Bucket.Lifecycle.Rule.Action action = 1;
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;
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;
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;
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;
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;
Type | Description |
Bucket.Lifecycle.Rule.ConditionOrBuilder |
getDefaultInstanceForType()
public Bucket.Lifecycle.Rule getDefaultInstanceForType()
Type | Description |
Bucket.Lifecycle.Rule |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
hasAction()
public boolean hasAction()
The action to take.
.google.storage.v2.Bucket.Lifecycle.Rule.Action action = 1;
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;
Type | Description |
boolean | Whether the condition field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
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;
Name | Description |
value | Bucket.Lifecycle.Rule.Action |
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;
Name | Description |
value | Bucket.Lifecycle.Rule.Condition |
Type | Description |
Bucket.Lifecycle.Rule.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Bucket.Lifecycle.Rule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Bucket.Lifecycle.Rule.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Bucket.Lifecycle.Rule.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Bucket.Lifecycle.Rule.Builder |
mergeFrom(Bucket.Lifecycle.Rule other)
public Bucket.Lifecycle.Rule.Builder mergeFrom(Bucket.Lifecycle.Rule other)
Name | Description |
other | Bucket.Lifecycle.Rule |
Type | Description |
Bucket.Lifecycle.Rule.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Bucket.Lifecycle.Rule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Bucket.Lifecycle.Rule.Builder |
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;
Name | Description |
value | Bucket.Lifecycle.Rule.Action |
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;
Name | Description |
builderForValue | Bucket.Lifecycle.Rule.Action.Builder |
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;
Name | Description |
value | Bucket.Lifecycle.Rule.Condition |
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;
Name | Description |
builderForValue | Bucket.Lifecycle.Rule.Condition.Builder |
Type | Description |
Bucket.Lifecycle.Rule.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public Bucket.Lifecycle.Rule.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Bucket.Lifecycle.Rule.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Bucket.Lifecycle.Rule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Bucket.Lifecycle.Rule.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final Bucket.Lifecycle.Rule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Bucket.Lifecycle.Rule.Builder |