Class StorageLayout.Builder (2.36.1)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public StorageLayout.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
StorageLayout.Builder
Overrides

build()

public StorageLayout build()
Returns
TypeDescription
StorageLayout

buildPartial()

public StorageLayout buildPartial()
Returns
TypeDescription
StorageLayout

clear()

public StorageLayout.Builder clear()
Returns
TypeDescription
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
TypeDescription
StorageLayout.Builder

clearField(Descriptors.FieldDescriptor field)

public StorageLayout.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
StorageLayout.Builder

clearLocation()

public StorageLayout.Builder clearLocation()

Output only. The location of the bucket.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
StorageLayout.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public StorageLayout.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
StorageLayout.Builder
Overrides

clone()

public StorageLayout.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
StorageLayout.CustomPlacementConfigOrBuilder

getDefaultInstanceForType()

public StorageLayout getDefaultInstanceForType()
Returns
TypeDescription
StorageLayout

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
StorageLayout.HierarchicalNamespaceOrBuilder

getLocation()

public String getLocation()

Output only. The location of the bucket.

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

Returns
TypeDescription
String

The location.

getLocationBytes()

public ByteString getLocationBytes()

Output only. The location of the bucket.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the hierarchicalNamespace field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueStorageLayout.CustomPlacementConfig
Returns
TypeDescription
StorageLayout.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public StorageLayout.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StorageLayout.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public StorageLayout.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
StorageLayout.Builder
Overrides

mergeFrom(StorageLayout other)

public StorageLayout.Builder mergeFrom(StorageLayout other)
Parameter
NameDescription
otherStorageLayout
Returns
TypeDescription
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
NameDescription
valueStorageLayout.HierarchicalNamespace
Returns
TypeDescription
StorageLayout.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StorageLayout.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueStorageLayout.CustomPlacementConfig
Returns
TypeDescription
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
NameDescription
builderForValueStorageLayout.CustomPlacementConfig.Builder
Returns
TypeDescription
StorageLayout.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public StorageLayout.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueStorageLayout.HierarchicalNamespace
Returns
TypeDescription
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
NameDescription
builderForValueStorageLayout.HierarchicalNamespace.Builder
Returns
TypeDescription
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
NameDescription
valueString

The location to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for location to set.

Returns
TypeDescription
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
NameDescription
valueString

The locationType to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for locationType to set.

Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
StorageLayout.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final StorageLayout.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
StorageLayout.Builder
Overrides