Class Bucket.HierarchicalNamespace.Builder (2.42.0)

public static final class Bucket.HierarchicalNamespace.Builder extends GeneratedMessageV3.Builder<Bucket.HierarchicalNamespace.Builder> implements Bucket.HierarchicalNamespaceOrBuilder

Configuration for a bucket's hierarchical namespace feature.

Protobuf type google.storage.v2.Bucket.HierarchicalNamespace

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

public Bucket.HierarchicalNamespace.Builder clear()
Returns
Type Description
Bucket.HierarchicalNamespace.Builder
Overrides

clearEnabled()

public Bucket.HierarchicalNamespace.Builder clearEnabled()

Optional. Enables the hierarchical namespace feature.

bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Bucket.HierarchicalNamespace.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

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

getEnabled()

public boolean getEnabled()

Optional. Enables the hierarchical namespace feature.

bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL];

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.HierarchicalNamespace.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Bucket.HierarchicalNamespace.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeFrom(Bucket.HierarchicalNamespace other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Bucket.HierarchicalNamespace.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Bucket.HierarchicalNamespace.Builder
Overrides

setEnabled(boolean value)

public Bucket.HierarchicalNamespace.Builder setEnabled(boolean value)

Optional. Enables the hierarchical namespace feature.

bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The enabled to set.

Returns
Type Description
Bucket.HierarchicalNamespace.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public Bucket.HierarchicalNamespace.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Bucket.HierarchicalNamespace.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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