Class StorageLayout (2.46.0)

public final class StorageLayout extends GeneratedMessageV3 implements StorageLayoutOrBuilder

The storage layout configuration of a bucket.

Protobuf type google.storage.control.v2.StorageLayout

Static Fields

CUSTOM_PLACEMENT_CONFIG_FIELD_NUMBER

public static final int CUSTOM_PLACEMENT_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

HIERARCHICAL_NAMESPACE_FIELD_NUMBER

public static final int HIERARCHICAL_NAMESPACE_FIELD_NUMBER
Field Value
Type Description
int

LOCATION_FIELD_NUMBER

public static final int LOCATION_FIELD_NUMBER
Field Value
Type Description
int

LOCATION_TYPE_FIELD_NUMBER

public static final int LOCATION_TYPE_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static StorageLayout getDefaultInstance()
Returns
Type Description
StorageLayout

getDescriptor()

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

newBuilder()

public static StorageLayout.Builder newBuilder()
Returns
Type Description
StorageLayout.Builder

newBuilder(StorageLayout prototype)

public static StorageLayout.Builder newBuilder(StorageLayout prototype)
Parameter
Name Description
prototype StorageLayout
Returns
Type Description
StorageLayout.Builder

parseDelimitedFrom(InputStream input)

public static StorageLayout parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
StorageLayout
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static StorageLayout parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StorageLayout
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static StorageLayout parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
StorageLayout
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static StorageLayout parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StorageLayout
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static StorageLayout parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
StorageLayout
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static StorageLayout parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StorageLayout
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static StorageLayout parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
StorageLayout
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static StorageLayout parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StorageLayout
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static StorageLayout parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
StorageLayout
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static StorageLayout parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StorageLayout
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static StorageLayout parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
StorageLayout
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static StorageLayout parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StorageLayout
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<StorageLayout> parser()
Returns
Type Description
Parser<StorageLayout>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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.

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

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.

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.

getParserForType()

public Parser<StorageLayout> getParserForType()
Returns
Type Description
Parser<StorageLayout>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public StorageLayout.Builder newBuilderForType()
Returns
Type Description
StorageLayout.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected StorageLayout.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
StorageLayout.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public StorageLayout.Builder toBuilder()
Returns
Type Description
StorageLayout.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException