Class Bucket.Versioning.Builder (2.29.0)

public static final class Bucket.Versioning.Builder extends GeneratedMessageV3.Builder<Bucket.Versioning.Builder> implements Bucket.VersioningOrBuilder

Properties of a bucket related to versioning. For more on Cloud Storage versioning, see https://cloud.google.com/storage/docs/object-versioning.

Protobuf type google.storage.v2.Bucket.Versioning

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Bucket.Versioning.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Bucket.Versioning.Builder
Overrides

build()

public Bucket.Versioning build()
Returns
TypeDescription
Bucket.Versioning

buildPartial()

public Bucket.Versioning buildPartial()
Returns
TypeDescription
Bucket.Versioning

clear()

public Bucket.Versioning.Builder clear()
Returns
TypeDescription
Bucket.Versioning.Builder
Overrides

clearEnabled()

public Bucket.Versioning.Builder clearEnabled()

While set to true, versioning is fully enabled for this bucket.

bool enabled = 1;

Returns
TypeDescription
Bucket.Versioning.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Bucket.Versioning.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Bucket.Versioning.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Bucket.Versioning.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Bucket.Versioning.Builder
Overrides

clone()

public Bucket.Versioning.Builder clone()
Returns
TypeDescription
Bucket.Versioning.Builder
Overrides

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnabled()

public boolean getEnabled()

While set to true, versioning is fully enabled for this bucket.

bool enabled = 1;

Returns
TypeDescription
boolean

The enabled.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Bucket.Versioning.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Bucket.Versioning.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Bucket.Versioning.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Bucket.Versioning.Builder
Overrides

mergeFrom(Bucket.Versioning other)

public Bucket.Versioning.Builder mergeFrom(Bucket.Versioning other)
Parameter
NameDescription
otherBucket.Versioning
Returns
TypeDescription
Bucket.Versioning.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Bucket.Versioning.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Bucket.Versioning.Builder
Overrides

setEnabled(boolean value)

public Bucket.Versioning.Builder setEnabled(boolean value)

While set to true, versioning is fully enabled for this bucket.

bool enabled = 1;

Parameter
NameDescription
valueboolean

The enabled to set.

Returns
TypeDescription
Bucket.Versioning.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Bucket.Versioning.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Bucket.Versioning.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Bucket.Versioning.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Bucket.Versioning.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Bucket.Versioning.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Bucket.Versioning.Builder
Overrides