Class StorageLayout.Builder (2.62.1)

public static final class StorageLayout.Builder extends GeneratedMessage.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

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

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.

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 GeneratedMessage.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

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

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.