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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Bucket.Versioning.BuilderImplements
Bucket.VersioningOrBuilderMethods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Bucket.Versioning.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Bucket.Versioning.Builder |
build()
public Bucket.Versioning build()
Type | Description |
Bucket.Versioning |
buildPartial()
public Bucket.Versioning buildPartial()
Type | Description |
Bucket.Versioning |
clear()
public Bucket.Versioning.Builder clear()
Type | Description |
Bucket.Versioning.Builder |
clearEnabled()
public Bucket.Versioning.Builder clearEnabled()
While set to true, versioning is fully enabled for this bucket.
bool enabled = 1;
Type | Description |
Bucket.Versioning.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Bucket.Versioning.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Bucket.Versioning.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public Bucket.Versioning.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Bucket.Versioning.Builder |
clone()
public Bucket.Versioning.Builder clone()
Type | Description |
Bucket.Versioning.Builder |
getDefaultInstanceForType()
public Bucket.Versioning getDefaultInstanceForType()
Type | Description |
Bucket.Versioning |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getEnabled()
public boolean getEnabled()
While set to true, versioning is fully enabled for this bucket.
bool enabled = 1;
Type | Description |
boolean | The enabled. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Bucket.Versioning.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Bucket.Versioning.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Bucket.Versioning.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Bucket.Versioning.Builder |
mergeFrom(Bucket.Versioning other)
public Bucket.Versioning.Builder mergeFrom(Bucket.Versioning other)
Name | Description |
other | Bucket.Versioning |
Type | Description |
Bucket.Versioning.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Bucket.Versioning.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Bucket.Versioning.Builder |
setEnabled(boolean value)
public Bucket.Versioning.Builder setEnabled(boolean value)
While set to true, versioning is fully enabled for this bucket.
bool enabled = 1;
Name | Description |
value | boolean The enabled to set. |
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)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Bucket.Versioning.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Bucket.Versioning.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Bucket.Versioning.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final Bucket.Versioning.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Bucket.Versioning.Builder |