Class StorageLayout (2.34.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
TypeDescription
int

HIERARCHICAL_NAMESPACE_FIELD_NUMBER

public static final int HIERARCHICAL_NAMESPACE_FIELD_NUMBER
Field Value
TypeDescription
int

LOCATION_FIELD_NUMBER

public static final int LOCATION_FIELD_NUMBER
Field Value
TypeDescription
int

LOCATION_TYPE_FIELD_NUMBER

public static final int LOCATION_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static StorageLayout getDefaultInstance()
Returns
TypeDescription
StorageLayout

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static StorageLayout.Builder newBuilder()
Returns
TypeDescription
StorageLayout.Builder

newBuilder(StorageLayout prototype)

public static StorageLayout.Builder newBuilder(StorageLayout prototype)
Parameter
NameDescription
prototypeStorageLayout
Returns
TypeDescription
StorageLayout.Builder

parseDelimitedFrom(InputStream input)

public static StorageLayout parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
StorageLayout
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static StorageLayout parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StorageLayout
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static StorageLayout parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
StorageLayout
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static StorageLayout parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StorageLayout
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static StorageLayout parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
StorageLayout
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static StorageLayout parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StorageLayout
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static StorageLayout parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
StorageLayout
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static StorageLayout parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StorageLayout
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static StorageLayout parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
StorageLayout
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static StorageLayout parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StorageLayout
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static StorageLayout parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
StorageLayout
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static StorageLayout parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StorageLayout
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<StorageLayout> parser()
Returns
TypeDescription
Parser<StorageLayout>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
StorageLayout.CustomPlacementConfigOrBuilder

getDefaultInstanceForType()

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

getParserForType()

public Parser<StorageLayout> getParserForType()
Returns
TypeDescription
Parser<StorageLayout>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public StorageLayout.Builder newBuilderForType()
Returns
TypeDescription
StorageLayout.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected StorageLayout.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
StorageLayout.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public StorageLayout.Builder toBuilder()
Returns
TypeDescription
StorageLayout.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException