Class StorageLayout.Builder (2.41.0)

public static final class StorageLayout.Builder extends GeneratedMessageV3.Builder<StorageLayout.Builder> implements StorageLayoutOrBuilder

The storage layout configuration of a bucket.

Protobuf type google.storage.control.v2.StorageLayout

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public StorageLayout build()
Returns
Type Description
StorageLayout

buildPartial()

public StorageLayout buildPartial()
Returns
Type Description
StorageLayout

clear()

public StorageLayout.Builder clear()
Returns
Type Description
StorageLayout.Builder
Overrides

clearCustomPlacementConfig()

public StorageLayout.Builder clearCustomPlacementConfig()

Output only. The data placement configuration for custom dual region. If there is no configuration, this is not a custom dual region bucket.

.google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
StorageLayout.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearHierarchicalNamespace()

public StorageLayout.Builder clearHierarchicalNamespace()

Output only. The bucket's hierarchical namespace configuration. If there is no configuration, the hierarchical namespace is disabled.

.google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
StorageLayout.Builder

clearLocation()

public StorageLayout.Builder clearLocation()

Output only. The location of the bucket.

string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
StorageLayout.Builder

This builder for chaining.

clearLocationType()

public StorageLayout.Builder clearLocationType()

Output only. The location type of the bucket (region, dual-region, multi-region, etc).

string location_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
StorageLayout.Builder

This builder for chaining.

clearName()

public StorageLayout.Builder clearName()

Output only. The name of the StorageLayout resource. Format: projects/{project}/buckets/{bucket}/storageLayout

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
StorageLayout.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public StorageLayout.Builder clone()
Returns
Type Description
StorageLayout.Builder
Overrides

getCustomPlacementConfig()

public StorageLayout.CustomPlacementConfig getCustomPlacementConfig()

Output only. The data placement configuration for custom dual region. If there is no configuration, this is not a custom dual region bucket.

.google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
StorageLayout.CustomPlacementConfig

The customPlacementConfig.

getCustomPlacementConfigBuilder()

public StorageLayout.CustomPlacementConfig.Builder getCustomPlacementConfigBuilder()

Output only. The data placement configuration for custom dual region. If there is no configuration, this is not a custom dual region bucket.

.google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
StorageLayout.CustomPlacementConfig.Builder

getCustomPlacementConfigOrBuilder()

public StorageLayout.CustomPlacementConfigOrBuilder getCustomPlacementConfigOrBuilder()

Output only. The data placement configuration for custom dual region. If there is no configuration, this is not a custom dual region bucket.

.google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
StorageLayout.CustomPlacementConfigOrBuilder

getDefaultInstanceForType()

public StorageLayout getDefaultInstanceForType()
Returns
Type Description
StorageLayout

getDescriptorForType()

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

getHierarchicalNamespace()

public StorageLayout.HierarchicalNamespace getHierarchicalNamespace()

Output only. The bucket's hierarchical namespace configuration. If there is no configuration, the hierarchical namespace is disabled.

.google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
StorageLayout.HierarchicalNamespace

The hierarchicalNamespace.

getHierarchicalNamespaceBuilder()

public StorageLayout.HierarchicalNamespace.Builder getHierarchicalNamespaceBuilder()

Output only. The bucket's hierarchical namespace configuration. If there is no configuration, the hierarchical namespace is disabled.

.google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
StorageLayout.HierarchicalNamespace.Builder

getHierarchicalNamespaceOrBuilder()

public StorageLayout.HierarchicalNamespaceOrBuilder getHierarchicalNamespaceOrBuilder()

Output only. The bucket's hierarchical namespace configuration. If there is no configuration, the hierarchical namespace is disabled.

.google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
StorageLayout.HierarchicalNamespaceOrBuilder

getLocation()

public String getLocation()

Output only. The location of the bucket.

string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The location.

getLocationBytes()

public ByteString getLocationBytes()

Output only. The location of the bucket.

string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for location.

getLocationType()

public String getLocationType()

Output only. The location type of the bucket (region, dual-region, multi-region, etc).

string location_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The locationType.

getLocationTypeBytes()

public ByteString getLocationTypeBytes()

Output only. The location type of the bucket (region, dual-region, multi-region, etc).

string location_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for locationType.

getName()

public String getName()

Output only. The name of the StorageLayout resource. Format: projects/{project}/buckets/{bucket}/storageLayout

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The name of the StorageLayout resource. Format: projects/{project}/buckets/{bucket}/storageLayout

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

hasCustomPlacementConfig()

public boolean hasCustomPlacementConfig()

Output only. The data placement configuration for custom dual region. If there is no configuration, this is not a custom dual region bucket.

.google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the customPlacementConfig field is set.

hasHierarchicalNamespace()

public boolean hasHierarchicalNamespace()

Output only. The bucket's hierarchical namespace configuration. If there is no configuration, the hierarchical namespace is disabled.

.google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the hierarchicalNamespace field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCustomPlacementConfig(StorageLayout.CustomPlacementConfig value)

public StorageLayout.Builder mergeCustomPlacementConfig(StorageLayout.CustomPlacementConfig value)

Output only. The data placement configuration for custom dual region. If there is no configuration, this is not a custom dual region bucket.

.google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value StorageLayout.CustomPlacementConfig
Returns
Type Description
StorageLayout.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(StorageLayout other)

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

mergeHierarchicalNamespace(StorageLayout.HierarchicalNamespace value)

public StorageLayout.Builder mergeHierarchicalNamespace(StorageLayout.HierarchicalNamespace value)

Output only. The bucket's hierarchical namespace configuration. If there is no configuration, the hierarchical namespace is disabled.

.google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value StorageLayout.HierarchicalNamespace
Returns
Type Description
StorageLayout.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCustomPlacementConfig(StorageLayout.CustomPlacementConfig value)

public StorageLayout.Builder setCustomPlacementConfig(StorageLayout.CustomPlacementConfig value)

Output only. The data placement configuration for custom dual region. If there is no configuration, this is not a custom dual region bucket.

.google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value StorageLayout.CustomPlacementConfig
Returns
Type Description
StorageLayout.Builder

setCustomPlacementConfig(StorageLayout.CustomPlacementConfig.Builder builderForValue)

public StorageLayout.Builder setCustomPlacementConfig(StorageLayout.CustomPlacementConfig.Builder builderForValue)

Output only. The data placement configuration for custom dual region. If there is no configuration, this is not a custom dual region bucket.

.google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue StorageLayout.CustomPlacementConfig.Builder
Returns
Type Description
StorageLayout.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setHierarchicalNamespace(StorageLayout.HierarchicalNamespace value)

public StorageLayout.Builder setHierarchicalNamespace(StorageLayout.HierarchicalNamespace value)

Output only. The bucket's hierarchical namespace configuration. If there is no configuration, the hierarchical namespace is disabled.

.google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value StorageLayout.HierarchicalNamespace
Returns
Type Description
StorageLayout.Builder

setHierarchicalNamespace(StorageLayout.HierarchicalNamespace.Builder builderForValue)

public StorageLayout.Builder setHierarchicalNamespace(StorageLayout.HierarchicalNamespace.Builder builderForValue)

Output only. The bucket's hierarchical namespace configuration. If there is no configuration, the hierarchical namespace is disabled.

.google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue StorageLayout.HierarchicalNamespace.Builder
Returns
Type Description
StorageLayout.Builder

setLocation(String value)

public StorageLayout.Builder setLocation(String value)

Output only. The location of the bucket.

string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The location to set.

Returns
Type Description
StorageLayout.Builder

This builder for chaining.

setLocationBytes(ByteString value)

public StorageLayout.Builder setLocationBytes(ByteString value)

Output only. The location of the bucket.

string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for location to set.

Returns
Type Description
StorageLayout.Builder

This builder for chaining.

setLocationType(String value)

public StorageLayout.Builder setLocationType(String value)

Output only. The location type of the bucket (region, dual-region, multi-region, etc).

string location_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The locationType to set.

Returns
Type Description
StorageLayout.Builder

This builder for chaining.

setLocationTypeBytes(ByteString value)

public StorageLayout.Builder setLocationTypeBytes(ByteString value)

Output only. The location type of the bucket (region, dual-region, multi-region, etc).

string location_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for locationType to set.

Returns
Type Description
StorageLayout.Builder

This builder for chaining.

setName(String value)

public StorageLayout.Builder setName(String value)

Output only. The name of the StorageLayout resource. Format: projects/{project}/buckets/{bucket}/storageLayout

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
StorageLayout.Builder

This builder for chaining.

setNameBytes(ByteString value)

public StorageLayout.Builder setNameBytes(ByteString value)

Output only. The name of the StorageLayout resource. Format: projects/{project}/buckets/{bucket}/storageLayout

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
StorageLayout.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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