public static final class Bucket.Lifecycle.Rule extends GeneratedMessageV3 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<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > Bucket.Lifecycle.RuleImplements
Bucket.Lifecycle.RuleOrBuilderStatic Fields
ACTION_FIELD_NUMBER
public static final int ACTION_FIELD_NUMBER
Type | Description |
int |
CONDITION_FIELD_NUMBER
public static final int CONDITION_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static Bucket.Lifecycle.Rule getDefaultInstance()
Type | Description |
Bucket.Lifecycle.Rule |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static Bucket.Lifecycle.Rule.Builder newBuilder()
Type | Description |
Bucket.Lifecycle.Rule.Builder |
newBuilder(Bucket.Lifecycle.Rule prototype)
public static Bucket.Lifecycle.Rule.Builder newBuilder(Bucket.Lifecycle.Rule prototype)
Name | Description |
prototype | Bucket.Lifecycle.Rule |
Type | Description |
Bucket.Lifecycle.Rule.Builder |
parseDelimitedFrom(InputStream input)
public static Bucket.Lifecycle.Rule parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
Bucket.Lifecycle.Rule |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Bucket.Lifecycle.Rule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Bucket.Lifecycle.Rule |
Type | Description |
IOException |
parseFrom(byte[] data)
public static Bucket.Lifecycle.Rule parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
Bucket.Lifecycle.Rule |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Bucket.Lifecycle.Rule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Bucket.Lifecycle.Rule |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static Bucket.Lifecycle.Rule parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
Bucket.Lifecycle.Rule |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Bucket.Lifecycle.Rule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Bucket.Lifecycle.Rule |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static Bucket.Lifecycle.Rule parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
Bucket.Lifecycle.Rule |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Bucket.Lifecycle.Rule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Bucket.Lifecycle.Rule |
Type | Description |
IOException |
parseFrom(InputStream input)
public static Bucket.Lifecycle.Rule parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
Bucket.Lifecycle.Rule |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Bucket.Lifecycle.Rule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Bucket.Lifecycle.Rule |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static Bucket.Lifecycle.Rule parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
Bucket.Lifecycle.Rule |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Bucket.Lifecycle.Rule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Bucket.Lifecycle.Rule |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<Bucket.Lifecycle.Rule> parser()
Type | Description |
Parser<Rule> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
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. |
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. |
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 |
getParserForType()
public Parser<Bucket.Lifecycle.Rule> getParserForType()
Type | Description |
Parser<Rule> |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
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. |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public Bucket.Lifecycle.Rule.Builder newBuilderForType()
Type | Description |
Bucket.Lifecycle.Rule.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Bucket.Lifecycle.Rule.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
Bucket.Lifecycle.Rule.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public Bucket.Lifecycle.Rule.Builder toBuilder()
Type | Description |
Bucket.Lifecycle.Rule.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |