Class StoragePool (0.33.0)

public final class StoragePool extends GeneratedMessageV3 implements StoragePoolOrBuilder

StoragePool is a container for volumes with a service level and capacity. Volumes can be created in a pool of sufficient available capacity. StoragePool capacity is what you are billed for.

Protobuf type google.cloud.netapp.v1.StoragePool

Static Fields

ACTIVE_DIRECTORY_FIELD_NUMBER

public static final int ACTIVE_DIRECTORY_FIELD_NUMBER
Field Value
Type Description
int

ALLOW_AUTO_TIERING_FIELD_NUMBER

public static final int ALLOW_AUTO_TIERING_FIELD_NUMBER
Field Value
Type Description
int

CAPACITY_GIB_FIELD_NUMBER

public static final int CAPACITY_GIB_FIELD_NUMBER
Field Value
Type Description
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
Type Description
int

ENCRYPTION_TYPE_FIELD_NUMBER

public static final int ENCRYPTION_TYPE_FIELD_NUMBER
Field Value
Type Description
int

GLOBAL_ACCESS_ALLOWED_FIELD_NUMBER

public static final int GLOBAL_ACCESS_ALLOWED_FIELD_NUMBER
Field Value
Type Description
int

KMS_CONFIG_FIELD_NUMBER

public static final int KMS_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

LABELS_FIELD_NUMBER

public static final int LABELS_FIELD_NUMBER
Field Value
Type Description
int

LDAP_ENABLED_FIELD_NUMBER

public static final int LDAP_ENABLED_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

NETWORK_FIELD_NUMBER

public static final int NETWORK_FIELD_NUMBER
Field Value
Type Description
int

PSA_RANGE_FIELD_NUMBER

public static final int PSA_RANGE_FIELD_NUMBER
Field Value
Type Description
int

REPLICA_ZONE_FIELD_NUMBER

public static final int REPLICA_ZONE_FIELD_NUMBER
Field Value
Type Description
int

SERVICE_LEVEL_FIELD_NUMBER

public static final int SERVICE_LEVEL_FIELD_NUMBER
Field Value
Type Description
int

STATE_DETAILS_FIELD_NUMBER

public static final int STATE_DETAILS_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

VOLUME_CAPACITY_GIB_FIELD_NUMBER

public static final int VOLUME_CAPACITY_GIB_FIELD_NUMBER
Field Value
Type Description
int

VOLUME_COUNT_FIELD_NUMBER

public static final int VOLUME_COUNT_FIELD_NUMBER
Field Value
Type Description
int

ZONE_FIELD_NUMBER

public static final int ZONE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static StoragePool getDefaultInstance()
Returns
Type Description
StoragePool

getDescriptor()

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

newBuilder()

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

newBuilder(StoragePool prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

containsLabels(String key)

public boolean containsLabels(String key)

Optional. Labels as key value pairs

map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getActiveDirectory()

public String getActiveDirectory()

Optional. Specifies the Active Directory to be used for creating a SMB volume.

string active_directory = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The activeDirectory.

getActiveDirectoryBytes()

public ByteString getActiveDirectoryBytes()

Optional. Specifies the Active Directory to be used for creating a SMB volume.

string active_directory = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for activeDirectory.

getAllowAutoTiering()

public boolean getAllowAutoTiering()

Optional. True if the storage pool supports Auto Tiering enabled volumes. Default is false. Auto-tiering can be enabled after storage pool creation but it can't be disabled once enabled.

bool allow_auto_tiering = 18 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The allowAutoTiering.

getCapacityGib()

public long getCapacityGib()

Required. Capacity in GIB of the pool

int64 capacity_gib = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
long

The capacityGib.

getCreateTime()

public Timestamp getCreateTime()

Output only. Create time of the storage pool

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Create time of the storage pool

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public StoragePool getDefaultInstanceForType()
Returns
Type Description
StoragePool

getDescription()

public String getDescription()

Optional. Description of the storage pool

string description = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. Description of the storage pool

string description = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for description.

getEncryptionType()

public EncryptionType getEncryptionType()

Output only. Specifies the current pool encryption key source.

.google.cloud.netapp.v1.EncryptionType encryption_type = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EncryptionType

The encryptionType.

getEncryptionTypeValue()

public int getEncryptionTypeValue()

Output only. Specifies the current pool encryption key source.

.google.cloud.netapp.v1.EncryptionType encryption_type = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for encryptionType.

getGlobalAccessAllowed() (deprecated)

public boolean getGlobalAccessAllowed()

Deprecated. google.cloud.netapp.v1.StoragePool.global_access_allowed is deprecated. See google/cloud/netapp/v1/storage_pool.proto;l=243

Deprecated. Used to allow SO pool to access AD or DNS server from other regions.

optional bool global_access_allowed = 17 [deprecated = true];

Returns
Type Description
boolean

The globalAccessAllowed.

getKmsConfig()

public String getKmsConfig()

Optional. Specifies the KMS config to be used for volume encryption.

string kms_config = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The kmsConfig.

getKmsConfigBytes()

public ByteString getKmsConfigBytes()

Optional. Specifies the KMS config to be used for volume encryption.

string kms_config = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for kmsConfig.

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Optional. Labels as key value pairs

map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Optional. Labels as key value pairs

map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Optional. Labels as key value pairs

map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Optional. Labels as key value pairs

map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String

getLdapEnabled()

public boolean getLdapEnabled()

Optional. Flag indicating if the pool is NFS LDAP enabled or not.

bool ldap_enabled = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The ldapEnabled.

getName()

public String getName()

Identifier. Name of the storage pool

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. Name of the storage pool

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

Returns
Type Description
ByteString

The bytes for name.

getNetwork()

public String getNetwork()

Required. VPC Network name. Format: projects/{project}/global/networks/{network}

string network = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The network.

getNetworkBytes()

public ByteString getNetworkBytes()

Required. VPC Network name. Format: projects/{project}/global/networks/{network}

string network = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for network.

getParserForType()

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

getPsaRange()

public String getPsaRange()

Optional. This field is not implemented. The values provided in this field are ignored.

string psa_range = 15 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The psaRange.

getPsaRangeBytes()

public ByteString getPsaRangeBytes()

Optional. This field is not implemented. The values provided in this field are ignored.

string psa_range = 15 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for psaRange.

getReplicaZone()

public String getReplicaZone()

Optional. Specifies the replica zone for regional storagePool.

string replica_zone = 20 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The replicaZone.

getReplicaZoneBytes()

public ByteString getReplicaZoneBytes()

Optional. Specifies the replica zone for regional storagePool.

string replica_zone = 20 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for replicaZone.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getServiceLevel()

public ServiceLevel getServiceLevel()

Required. Service level of the storage pool

.google.cloud.netapp.v1.ServiceLevel service_level = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ServiceLevel

The serviceLevel.

getServiceLevelValue()

public int getServiceLevelValue()

Required. Service level of the storage pool

.google.cloud.netapp.v1.ServiceLevel service_level = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for serviceLevel.

getState()

public StoragePool.State getState()

Output only. State of the storage pool

.google.cloud.netapp.v1.StoragePool.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
StoragePool.State

The state.

getStateDetails()

public String getStateDetails()

Output only. State details of the storage pool

string state_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The stateDetails.

getStateDetailsBytes()

public ByteString getStateDetailsBytes()

Output only. State details of the storage pool

string state_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for stateDetails.

getStateValue()

public int getStateValue()

Output only. State of the storage pool

.google.cloud.netapp.v1.StoragePool.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getVolumeCapacityGib()

public long getVolumeCapacityGib()

Output only. Allocated size of all volumes in GIB in the storage pool

int64 volume_capacity_gib = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The volumeCapacityGib.

getVolumeCount()

public int getVolumeCount()

Output only. Volume count of the storage pool

int32 volume_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The volumeCount.

getZone()

public String getZone()

Optional. Specifies the active zone for regional storagePool.

string zone = 21 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The zone.

getZoneBytes()

public ByteString getZoneBytes()

Optional. Specifies the active zone for regional storagePool.

string zone = 21 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for zone.

hasCreateTime()

public boolean hasCreateTime()

Output only. Create time of the storage pool

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasGlobalAccessAllowed() (deprecated)

public boolean hasGlobalAccessAllowed()

Deprecated. google.cloud.netapp.v1.StoragePool.global_access_allowed is deprecated. See google/cloud/netapp/v1/storage_pool.proto;l=243

Deprecated. Used to allow SO pool to access AD or DNS server from other regions.

optional bool global_access_allowed = 17 [deprecated = true];

Returns
Type Description
boolean

Whether the globalAccessAllowed field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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