Class Bucket.Lifecycle (2.22.5)

public static final class Bucket.Lifecycle extends GeneratedMessageV3 implements Bucket.LifecycleOrBuilder

Lifecycle properties of a bucket. For more information, see https://cloud.google.com/storage/docs/lifecycle.

Protobuf type google.storage.v2.Bucket.Lifecycle

Static Fields

RULE_FIELD_NUMBER

public static final int RULE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

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

getDescriptor()

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

newBuilder()

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

newBuilder(Bucket.Lifecycle prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public Bucket.Lifecycle getDefaultInstanceForType()
Returns
TypeDescription
Bucket.Lifecycle

getParserForType()

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

getRule(int index)

public Bucket.Lifecycle.Rule getRule(int index)

A lifecycle management rule, which is made of an action to take and the condition(s) under which the action will be taken.

repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Bucket.Lifecycle.Rule

getRuleCount()

public int getRuleCount()

A lifecycle management rule, which is made of an action to take and the condition(s) under which the action will be taken.

repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1;

Returns
TypeDescription
int

getRuleList()

public List<Bucket.Lifecycle.Rule> getRuleList()

A lifecycle management rule, which is made of an action to take and the condition(s) under which the action will be taken.

repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1;

Returns
TypeDescription
List<Rule>

getRuleOrBuilder(int index)

public Bucket.Lifecycle.RuleOrBuilder getRuleOrBuilder(int index)

A lifecycle management rule, which is made of an action to take and the condition(s) under which the action will be taken.

repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Bucket.Lifecycle.RuleOrBuilder

getRuleOrBuilderList()

public List<? extends Bucket.Lifecycle.RuleOrBuilder> getRuleOrBuilderList()

A lifecycle management rule, which is made of an action to take and the condition(s) under which the action will be taken.

repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1;

Returns
TypeDescription
List<? extends com.google.storage.v2.Bucket.Lifecycle.RuleOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.Builder newBuilderForType()
Returns
TypeDescription
Bucket.Lifecycle.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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