Class StoragePool.Builder (0.18.0)

public static final class StoragePool.Builder extends GeneratedMessageV3.Builder<StoragePool.Builder> 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 Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public StoragePool build()
Returns
TypeDescription
StoragePool

buildPartial()

public StoragePool buildPartial()
Returns
TypeDescription
StoragePool

clear()

public StoragePool.Builder clear()
Returns
TypeDescription
StoragePool.Builder
Overrides

clearActiveDirectory()

public StoragePool.Builder clearActiveDirectory()

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
TypeDescription
StoragePool.Builder

This builder for chaining.

clearCapacityGib()

public StoragePool.Builder clearCapacityGib()

Required. Capacity in GIB of the pool

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

Returns
TypeDescription
StoragePool.Builder

This builder for chaining.

clearCreateTime()

public StoragePool.Builder clearCreateTime()

Output only. Create time of the storage pool

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

Returns
TypeDescription
StoragePool.Builder

clearDescription()

public StoragePool.Builder clearDescription()

Optional. Description of the storage pool

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

Returns
TypeDescription
StoragePool.Builder

This builder for chaining.

clearEncryptionType()

public StoragePool.Builder clearEncryptionType()

Output only. Specifies the current pool encryption key source.

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

Returns
TypeDescription
StoragePool.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public StoragePool.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
StoragePool.Builder
Overrides

clearGlobalAccessAllowed() (deprecated)

public StoragePool.Builder clearGlobalAccessAllowed()

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

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

optional bool global_access_allowed = 17 [deprecated = true];

Returns
TypeDescription
StoragePool.Builder

This builder for chaining.

clearKmsConfig()

public StoragePool.Builder clearKmsConfig()

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
TypeDescription
StoragePool.Builder

This builder for chaining.

clearLabels()

public StoragePool.Builder clearLabels()
Returns
TypeDescription
StoragePool.Builder

clearLdapEnabled()

public StoragePool.Builder clearLdapEnabled()

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

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

Returns
TypeDescription
StoragePool.Builder

This builder for chaining.

clearName()

public StoragePool.Builder clearName()

Identifier. Name of the storage pool

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

Returns
TypeDescription
StoragePool.Builder

This builder for chaining.

clearNetwork()

public StoragePool.Builder clearNetwork()

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

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

Returns
TypeDescription
StoragePool.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPsaRange()

public StoragePool.Builder clearPsaRange()

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

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

Returns
TypeDescription
StoragePool.Builder

This builder for chaining.

clearServiceLevel()

public StoragePool.Builder clearServiceLevel()

Required. Service level of the storage pool

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

Returns
TypeDescription
StoragePool.Builder

This builder for chaining.

clearState()

public StoragePool.Builder clearState()

Output only. State of the storage pool

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

Returns
TypeDescription
StoragePool.Builder

This builder for chaining.

clearStateDetails()

public StoragePool.Builder clearStateDetails()

Output only. State details of the storage pool

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

Returns
TypeDescription
StoragePool.Builder

This builder for chaining.

clearVolumeCapacityGib()

public StoragePool.Builder clearVolumeCapacityGib()

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
TypeDescription
StoragePool.Builder

This builder for chaining.

clearVolumeCount()

public StoragePool.Builder clearVolumeCount()

Output only. Volume count of the storage pool

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

Returns
TypeDescription
StoragePool.Builder

This builder for chaining.

clone()

public StoragePool.Builder clone()
Returns
TypeDescription
StoragePool.Builder
Overrides

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

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

The bytes for activeDirectory.

getCapacityGib()

public long getCapacityGib()

Required. Capacity in GIB of the pool

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

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

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Create time of the storage pool

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

Returns
TypeDescription
Builder

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

getDefaultInstanceForType()

public StoragePool getDefaultInstanceForType()
Returns
TypeDescription
StoragePool

getDescription()

public String getDescription()

Optional. Description of the storage pool

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

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. Description of the storage pool

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

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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
TypeDescription
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
TypeDescription
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=230

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

optional bool global_access_allowed = 17 [deprecated = true];

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

The bytes for kmsConfig.

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Optional. Labels as key value pairs

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

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Optional. Labels as key value pairs

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

Returns
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
TypeDescription
boolean

The ldapEnabled.

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

Identifier. Name of the storage pool

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. Name of the storage pool

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

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

The bytes for network.

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

The bytes for psaRange.

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

The volumeCount.

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
TypeDescription
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=230

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

optional bool global_access_allowed = 17 [deprecated = true];

Returns
TypeDescription
boolean

Whether the globalAccessAllowed field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public StoragePool.Builder mergeCreateTime(Timestamp value)

Output only. Create time of the storage pool

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
StoragePool.Builder

mergeFrom(StoragePool other)

public StoragePool.Builder mergeFrom(StoragePool other)
Parameter
NameDescription
otherStoragePool
Returns
TypeDescription
StoragePool.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StoragePool.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
StoragePool.Builder
Overrides

putAllLabels(Map<String,String> values)

public StoragePool.Builder putAllLabels(Map<String,String> values)

Optional. Labels as key value pairs

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

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
StoragePool.Builder

putLabels(String key, String value)

public StoragePool.Builder putLabels(String key, String value)

Optional. Labels as key value pairs

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

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
StoragePool.Builder

removeLabels(String key)

public StoragePool.Builder removeLabels(String key)

Optional. Labels as key value pairs

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

Parameter
NameDescription
keyString
Returns
TypeDescription
StoragePool.Builder

setActiveDirectory(String value)

public StoragePool.Builder setActiveDirectory(String value)

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) = { ... }

Parameter
NameDescription
valueString

The activeDirectory to set.

Returns
TypeDescription
StoragePool.Builder

This builder for chaining.

setActiveDirectoryBytes(ByteString value)

public StoragePool.Builder setActiveDirectoryBytes(ByteString value)

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) = { ... }

Parameter
NameDescription
valueByteString

The bytes for activeDirectory to set.

Returns
TypeDescription
StoragePool.Builder

This builder for chaining.

setCapacityGib(long value)

public StoragePool.Builder setCapacityGib(long value)

Required. Capacity in GIB of the pool

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

Parameter
NameDescription
valuelong

The capacityGib to set.

Returns
TypeDescription
StoragePool.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public StoragePool.Builder setCreateTime(Timestamp value)

Output only. Create time of the storage pool

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
StoragePool.Builder

setCreateTime(Timestamp.Builder builderForValue)

public StoragePool.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Create time of the storage pool

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

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
StoragePool.Builder

setDescription(String value)

public StoragePool.Builder setDescription(String value)

Optional. Description of the storage pool

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

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
StoragePool.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public StoragePool.Builder setDescriptionBytes(ByteString value)

Optional. Description of the storage pool

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

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
StoragePool.Builder

This builder for chaining.

setEncryptionType(EncryptionType value)

public StoragePool.Builder setEncryptionType(EncryptionType value)

Output only. Specifies the current pool encryption key source.

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

Parameter
NameDescription
valueEncryptionType

The encryptionType to set.

Returns
TypeDescription
StoragePool.Builder

This builder for chaining.

setEncryptionTypeValue(int value)

public StoragePool.Builder setEncryptionTypeValue(int value)

Output only. Specifies the current pool encryption key source.

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

Parameter
NameDescription
valueint

The enum numeric value on the wire for encryptionType to set.

Returns
TypeDescription
StoragePool.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setGlobalAccessAllowed(boolean value) (deprecated)

public StoragePool.Builder setGlobalAccessAllowed(boolean value)

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

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

optional bool global_access_allowed = 17 [deprecated = true];

Parameter
NameDescription
valueboolean

The globalAccessAllowed to set.

Returns
TypeDescription
StoragePool.Builder

This builder for chaining.

setKmsConfig(String value)

public StoragePool.Builder setKmsConfig(String value)

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

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

Parameter
NameDescription
valueString

The kmsConfig to set.

Returns
TypeDescription
StoragePool.Builder

This builder for chaining.

setKmsConfigBytes(ByteString value)

public StoragePool.Builder setKmsConfigBytes(ByteString value)

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

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

Parameter
NameDescription
valueByteString

The bytes for kmsConfig to set.

Returns
TypeDescription
StoragePool.Builder

This builder for chaining.

setLdapEnabled(boolean value)

public StoragePool.Builder setLdapEnabled(boolean value)

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

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

Parameter
NameDescription
valueboolean

The ldapEnabled to set.

Returns
TypeDescription
StoragePool.Builder

This builder for chaining.

setName(String value)

public StoragePool.Builder setName(String value)

Identifier. Name of the storage pool

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
StoragePool.Builder

This builder for chaining.

setNameBytes(ByteString value)

public StoragePool.Builder setNameBytes(ByteString value)

Identifier. Name of the storage pool

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
StoragePool.Builder

This builder for chaining.

setNetwork(String value)

public StoragePool.Builder setNetwork(String value)

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

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

Parameter
NameDescription
valueString

The network to set.

Returns
TypeDescription
StoragePool.Builder

This builder for chaining.

setNetworkBytes(ByteString value)

public StoragePool.Builder setNetworkBytes(ByteString value)

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

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

Parameter
NameDescription
valueByteString

The bytes for network to set.

Returns
TypeDescription
StoragePool.Builder

This builder for chaining.

setPsaRange(String value)

public StoragePool.Builder setPsaRange(String value)

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

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

Parameter
NameDescription
valueString

The psaRange to set.

Returns
TypeDescription
StoragePool.Builder

This builder for chaining.

setPsaRangeBytes(ByteString value)

public StoragePool.Builder setPsaRangeBytes(ByteString value)

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

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

Parameter
NameDescription
valueByteString

The bytes for psaRange to set.

Returns
TypeDescription
StoragePool.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public StoragePool.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
StoragePool.Builder
Overrides

setServiceLevel(ServiceLevel value)

public StoragePool.Builder setServiceLevel(ServiceLevel value)

Required. Service level of the storage pool

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

Parameter
NameDescription
valueServiceLevel

The serviceLevel to set.

Returns
TypeDescription
StoragePool.Builder

This builder for chaining.

setServiceLevelValue(int value)

public StoragePool.Builder setServiceLevelValue(int value)

Required. Service level of the storage pool

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

Parameter
NameDescription
valueint

The enum numeric value on the wire for serviceLevel to set.

Returns
TypeDescription
StoragePool.Builder

This builder for chaining.

setState(StoragePool.State value)

public StoragePool.Builder setState(StoragePool.State value)

Output only. State of the storage pool

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

Parameter
NameDescription
valueStoragePool.State

The state to set.

Returns
TypeDescription
StoragePool.Builder

This builder for chaining.

setStateDetails(String value)

public StoragePool.Builder setStateDetails(String value)

Output only. State details of the storage pool

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

Parameter
NameDescription
valueString

The stateDetails to set.

Returns
TypeDescription
StoragePool.Builder

This builder for chaining.

setStateDetailsBytes(ByteString value)

public StoragePool.Builder setStateDetailsBytes(ByteString value)

Output only. State details of the storage pool

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

Parameter
NameDescription
valueByteString

The bytes for stateDetails to set.

Returns
TypeDescription
StoragePool.Builder

This builder for chaining.

setStateValue(int value)

public StoragePool.Builder setStateValue(int value)

Output only. State of the storage pool

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

Parameter
NameDescription
valueint

The enum numeric value on the wire for state to set.

Returns
TypeDescription
StoragePool.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setVolumeCapacityGib(long value)

public StoragePool.Builder setVolumeCapacityGib(long value)

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

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

Parameter
NameDescription
valuelong

The volumeCapacityGib to set.

Returns
TypeDescription
StoragePool.Builder

This builder for chaining.

setVolumeCount(int value)

public StoragePool.Builder setVolumeCount(int value)

Output only. Volume count of the storage pool

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

Parameter
NameDescription
valueint

The volumeCount to set.

Returns
TypeDescription
StoragePool.Builder

This builder for chaining.