Class Bucket.Versioning.Builder (2.8.1)

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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Bucket.Versioning.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Bucket.Versioning.Builder
Overrides

build()

public Bucket.Versioning build()
Returns
Type Description
Bucket.Versioning

buildPartial()

public Bucket.Versioning buildPartial()
Returns
Type Description
Bucket.Versioning

clear()

public Bucket.Versioning.Builder clear()
Returns
Type Description
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
Type Description
Bucket.Versioning.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Bucket.Versioning.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Bucket.Versioning.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Bucket.Versioning.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Bucket.Versioning.Builder
Overrides

clone()

public Bucket.Versioning.Builder clone()
Returns
Type Description
Bucket.Versioning.Builder
Overrides

getDefaultInstanceForType()

public Bucket.Versioning getDefaultInstanceForType()
Returns
Type Description
Bucket.Versioning

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEnabled()

public boolean getEnabled()

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

bool enabled = 1;

Returns
Type Description
boolean

The enabled.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Bucket.Versioning.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Bucket.Versioning.Builder
Overrides Exceptions
Type Description
IOException

mergeFrom(Message other)

public Bucket.Versioning.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Bucket.Versioning.Builder
Overrides

mergeFrom(Bucket.Versioning other)

public Bucket.Versioning.Builder mergeFrom(Bucket.Versioning other)
Parameter
Name Description
other Bucket.Versioning
Returns
Type Description
Bucket.Versioning.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Bucket.Versioning.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value boolean

The enabled to set.

Returns
Type Description
Bucket.Versioning.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Bucket.Versioning.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Bucket.Versioning.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Bucket.Versioning.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Bucket.Versioning.Builder
Overrides