Class Bucket.Lifecycle.Rule (2.22.0)

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

Static Fields

ACTION_FIELD_NUMBER

public static final int ACTION_FIELD_NUMBER
Field Value
TypeDescription
int

CONDITION_FIELD_NUMBER

public static final int CONDITION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Bucket.Lifecycle.Rule getDefaultInstance()
Returns
TypeDescription
Bucket.Lifecycle.Rule

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Bucket.Lifecycle.Rule.Builder newBuilder()
Returns
TypeDescription
Bucket.Lifecycle.Rule.Builder

newBuilder(Bucket.Lifecycle.Rule prototype)

public static Bucket.Lifecycle.Rule.Builder newBuilder(Bucket.Lifecycle.Rule prototype)
Parameter
NameDescription
prototypeBucket.Lifecycle.Rule
Returns
TypeDescription
Bucket.Lifecycle.Rule.Builder

parseDelimitedFrom(InputStream input)

public static Bucket.Lifecycle.Rule parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Bucket.Lifecycle.Rule
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Bucket.Lifecycle.Rule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Bucket.Lifecycle.Rule
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Bucket.Lifecycle.Rule parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Bucket.Lifecycle.Rule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Bucket.Lifecycle.Rule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Bucket.Lifecycle.Rule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Bucket.Lifecycle.Rule parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Bucket.Lifecycle.Rule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Bucket.Lifecycle.Rule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Bucket.Lifecycle.Rule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Bucket.Lifecycle.Rule parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Bucket.Lifecycle.Rule
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static Bucket.Lifecycle.Rule parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Bucket.Lifecycle.Rule
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Bucket.Lifecycle.Rule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Bucket.Lifecycle.Rule
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Bucket.Lifecycle.Rule parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Bucket.Lifecycle.Rule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Bucket.Lifecycle.Rule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Bucket.Lifecycle.Rule
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Bucket.Lifecycle.Rule> parser()
Returns
TypeDescription
Parser<Rule>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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.

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.

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

getParserForType()

public Parser<Bucket.Lifecycle.Rule> getParserForType()
Returns
TypeDescription
Parser<Rule>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Bucket.Lifecycle.Rule.Builder newBuilderForType()
Returns
TypeDescription
Bucket.Lifecycle.Rule.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Bucket.Lifecycle.Rule.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Bucket.Lifecycle.Rule.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Bucket.Lifecycle.Rule.Builder toBuilder()
Returns
TypeDescription
Bucket.Lifecycle.Rule.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException