Class StoragePool.Builder (1.55.0)

public static final class StoragePool.Builder extends GeneratedMessageV3.Builder<StoragePool.Builder> implements StoragePoolOrBuilder

Represents a zonal storage pool resource.

Protobuf type google.cloud.compute.v1.StoragePool

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public StoragePool.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StoragePool.Builder
Overrides

build()

public StoragePool build()
Returns
Type Description
StoragePool

buildPartial()

public StoragePool buildPartial()
Returns
Type Description
StoragePool

clear()

public StoragePool.Builder clear()
Returns
Type Description
StoragePool.Builder
Overrides

clearCapacityProvisioningType()

public StoragePool.Builder clearCapacityProvisioningType()

Provisioning type of the byte capacity of the pool. Check the CapacityProvisioningType enum for the list of possible values.

optional string capacity_provisioning_type = 251610375;

Returns
Type Description
StoragePool.Builder

This builder for chaining.

clearCreationTimestamp()

public StoragePool.Builder clearCreationTimestamp()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
Type Description
StoragePool.Builder

This builder for chaining.

clearDescription()

public StoragePool.Builder clearDescription()

An optional description of this resource. Provide this property when you create the resource.

optional string description = 422937596;

Returns
Type Description
StoragePool.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public StoragePool.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
StoragePool.Builder
Overrides

clearId()

public StoragePool.Builder clearId()

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

optional uint64 id = 3355;

Returns
Type Description
StoragePool.Builder

This builder for chaining.

clearKind()

public StoragePool.Builder clearKind()

[Output Only] Type of the resource. Always compute#storagePool for storage pools.

optional string kind = 3292052;

Returns
Type Description
StoragePool.Builder

This builder for chaining.

clearLabelFingerprint()

public StoragePool.Builder clearLabelFingerprint()

A fingerprint for the labels being applied to this storage pool, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a storage pool.

optional string label_fingerprint = 178124825;

Returns
Type Description
StoragePool.Builder

This builder for chaining.

clearLabels()

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

clearName()

public StoragePool.Builder clearName()

Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string name = 3373707;

Returns
Type Description
StoragePool.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public StoragePool.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
StoragePool.Builder
Overrides

clearPerformanceProvisioningType()

public StoragePool.Builder clearPerformanceProvisioningType()

Provisioning type of the performance-related parameters of the pool, such as throughput and IOPS. Check the PerformanceProvisioningType enum for the list of possible values.

optional string performance_provisioning_type = 468553469;

Returns
Type Description
StoragePool.Builder

This builder for chaining.

clearPoolProvisionedCapacityGb()

public StoragePool.Builder clearPoolProvisionedCapacityGb()

Size, in GiB, of the storage pool.

optional int64 pool_provisioned_capacity_gb = 478537682;

Returns
Type Description
StoragePool.Builder

This builder for chaining.

clearPoolProvisionedIops()

public StoragePool.Builder clearPoolProvisionedIops()

Provisioned IOPS of the storage pool. Only relevant if the storage pool type is hyperdisk-balanced.

optional int64 pool_provisioned_iops = 112092311;

Returns
Type Description
StoragePool.Builder

This builder for chaining.

clearPoolProvisionedThroughput()

public StoragePool.Builder clearPoolProvisionedThroughput()

Provisioned throughput of the storage pool. Only relevant if the storage pool type is hyperdisk-balanced or hyperdisk-throughput.

optional int64 pool_provisioned_throughput = 169215640;

Returns
Type Description
StoragePool.Builder

This builder for chaining.

clearResourceStatus()

public StoragePool.Builder clearResourceStatus()

[Output Only] Status information for the storage pool resource.

optional .google.cloud.compute.v1.StoragePoolResourceStatus resource_status = 249429315;

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

[Output Only] Server-defined fully-qualified URL for this resource.

optional string self_link = 456214797;

Returns
Type Description
StoragePool.Builder

This builder for chaining.

clearSelfLinkWithId()

public StoragePool.Builder clearSelfLinkWithId()

[Output Only] Server-defined URL for this resource's resource id.

optional string self_link_with_id = 44520962;

Returns
Type Description
StoragePool.Builder

This builder for chaining.

clearState()

public StoragePool.Builder clearState()

[Output Only] The status of storage pool creation. - CREATING: Storage pool is provisioning. storagePool. - FAILED: Storage pool creation failed. - READY: Storage pool is ready for use. - DELETING: Storage pool is deleting. Check the State enum for the list of possible values.

optional string state = 109757585;

Returns
Type Description
StoragePool.Builder

This builder for chaining.

clearStatus()

public StoragePool.Builder clearStatus()

[Output Only] Status information for the storage pool resource.

optional .google.cloud.compute.v1.StoragePoolResourceStatus status = 181260274;

Returns
Type Description
StoragePool.Builder

clearStoragePoolType()

public StoragePool.Builder clearStoragePoolType()

Type of the storage pool.

optional string storage_pool_type = 285999289;

Returns
Type Description
StoragePool.Builder

This builder for chaining.

clearZone()

public StoragePool.Builder clearZone()

[Output Only] URL of the zone where the storage pool resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.

optional string zone = 3744684;

Returns
Type Description
StoragePool.Builder

This builder for chaining.

clone()

public StoragePool.Builder clone()
Returns
Type Description
StoragePool.Builder
Overrides

containsLabels(String key)

public boolean containsLabels(String key)

Labels to apply to this storage pool. These can be later modified by the setLabels method.

map<string, string> labels = 500195327;

Parameter
Name Description
key String
Returns
Type Description
boolean

getCapacityProvisioningType()

public String getCapacityProvisioningType()

Provisioning type of the byte capacity of the pool. Check the CapacityProvisioningType enum for the list of possible values.

optional string capacity_provisioning_type = 251610375;

Returns
Type Description
String

The capacityProvisioningType.

getCapacityProvisioningTypeBytes()

public ByteString getCapacityProvisioningTypeBytes()

Provisioning type of the byte capacity of the pool. Check the CapacityProvisioningType enum for the list of possible values.

optional string capacity_provisioning_type = 251610375;

Returns
Type Description
ByteString

The bytes for capacityProvisioningType.

getCreationTimestamp()

public String getCreationTimestamp()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
Type Description
String

The creationTimestamp.

getCreationTimestampBytes()

public ByteString getCreationTimestampBytes()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
Type Description
ByteString

The bytes for creationTimestamp.

getDefaultInstanceForType()

public StoragePool getDefaultInstanceForType()
Returns
Type Description
StoragePool

getDescription()

public String getDescription()

An optional description of this resource. Provide this property when you create the resource.

optional string description = 422937596;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

An optional description of this resource. Provide this property when you create the resource.

optional string description = 422937596;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getId()

public long getId()

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

optional uint64 id = 3355;

Returns
Type Description
long

The id.

getKind()

public String getKind()

[Output Only] Type of the resource. Always compute#storagePool for storage pools.

optional string kind = 3292052;

Returns
Type Description
String

The kind.

getKindBytes()

public ByteString getKindBytes()

[Output Only] Type of the resource. Always compute#storagePool for storage pools.

optional string kind = 3292052;

Returns
Type Description
ByteString

The bytes for kind.

getLabelFingerprint()

public String getLabelFingerprint()

A fingerprint for the labels being applied to this storage pool, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a storage pool.

optional string label_fingerprint = 178124825;

Returns
Type Description
String

The labelFingerprint.

getLabelFingerprintBytes()

public ByteString getLabelFingerprintBytes()

A fingerprint for the labels being applied to this storage pool, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a storage pool.

optional string label_fingerprint = 178124825;

Returns
Type Description
ByteString

The bytes for labelFingerprint.

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Labels to apply to this storage pool. These can be later modified by the setLabels method.

map<string, string> labels = 500195327;

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Labels to apply to this storage pool. These can be later modified by the setLabels method.

map<string, string> labels = 500195327;

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Labels to apply to this storage pool. These can be later modified by the setLabels method.

map<string, string> labels = 500195327;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Labels to apply to this storage pool. These can be later modified by the setLabels method.

map<string, string> labels = 500195327;

Parameter
Name Description
key String
Returns
Type Description
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string name = 3373707;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string name = 3373707;

Returns
Type Description
ByteString

The bytes for name.

getPerformanceProvisioningType()

public String getPerformanceProvisioningType()

Provisioning type of the performance-related parameters of the pool, such as throughput and IOPS. Check the PerformanceProvisioningType enum for the list of possible values.

optional string performance_provisioning_type = 468553469;

Returns
Type Description
String

The performanceProvisioningType.

getPerformanceProvisioningTypeBytes()

public ByteString getPerformanceProvisioningTypeBytes()

Provisioning type of the performance-related parameters of the pool, such as throughput and IOPS. Check the PerformanceProvisioningType enum for the list of possible values.

optional string performance_provisioning_type = 468553469;

Returns
Type Description
ByteString

The bytes for performanceProvisioningType.

getPoolProvisionedCapacityGb()

public long getPoolProvisionedCapacityGb()

Size, in GiB, of the storage pool.

optional int64 pool_provisioned_capacity_gb = 478537682;

Returns
Type Description
long

The poolProvisionedCapacityGb.

getPoolProvisionedIops()

public long getPoolProvisionedIops()

Provisioned IOPS of the storage pool. Only relevant if the storage pool type is hyperdisk-balanced.

optional int64 pool_provisioned_iops = 112092311;

Returns
Type Description
long

The poolProvisionedIops.

getPoolProvisionedThroughput()

public long getPoolProvisionedThroughput()

Provisioned throughput of the storage pool. Only relevant if the storage pool type is hyperdisk-balanced or hyperdisk-throughput.

optional int64 pool_provisioned_throughput = 169215640;

Returns
Type Description
long

The poolProvisionedThroughput.

getResourceStatus()

public StoragePoolResourceStatus getResourceStatus()

[Output Only] Status information for the storage pool resource.

optional .google.cloud.compute.v1.StoragePoolResourceStatus resource_status = 249429315;

Returns
Type Description
StoragePoolResourceStatus

The resourceStatus.

getResourceStatusBuilder()

public StoragePoolResourceStatus.Builder getResourceStatusBuilder()

[Output Only] Status information for the storage pool resource.

optional .google.cloud.compute.v1.StoragePoolResourceStatus resource_status = 249429315;

Returns
Type Description
StoragePoolResourceStatus.Builder

getResourceStatusOrBuilder()

public StoragePoolResourceStatusOrBuilder getResourceStatusOrBuilder()

[Output Only] Status information for the storage pool resource.

optional .google.cloud.compute.v1.StoragePoolResourceStatus resource_status = 249429315;

Returns
Type Description
StoragePoolResourceStatusOrBuilder
public String getSelfLink()

[Output Only] Server-defined fully-qualified URL for this resource.

optional string self_link = 456214797;

Returns
Type Description
String

The selfLink.

getSelfLinkBytes()

public ByteString getSelfLinkBytes()

[Output Only] Server-defined fully-qualified URL for this resource.

optional string self_link = 456214797;

Returns
Type Description
ByteString

The bytes for selfLink.

getSelfLinkWithId()

public String getSelfLinkWithId()

[Output Only] Server-defined URL for this resource's resource id.

optional string self_link_with_id = 44520962;

Returns
Type Description
String

The selfLinkWithId.

getSelfLinkWithIdBytes()

public ByteString getSelfLinkWithIdBytes()

[Output Only] Server-defined URL for this resource's resource id.

optional string self_link_with_id = 44520962;

Returns
Type Description
ByteString

The bytes for selfLinkWithId.

getState()

public String getState()

[Output Only] The status of storage pool creation. - CREATING: Storage pool is provisioning. storagePool. - FAILED: Storage pool creation failed. - READY: Storage pool is ready for use. - DELETING: Storage pool is deleting. Check the State enum for the list of possible values.

optional string state = 109757585;

Returns
Type Description
String

The state.

getStateBytes()

public ByteString getStateBytes()

[Output Only] The status of storage pool creation. - CREATING: Storage pool is provisioning. storagePool. - FAILED: Storage pool creation failed. - READY: Storage pool is ready for use. - DELETING: Storage pool is deleting. Check the State enum for the list of possible values.

optional string state = 109757585;

Returns
Type Description
ByteString

The bytes for state.

getStatus()

public StoragePoolResourceStatus getStatus()

[Output Only] Status information for the storage pool resource.

optional .google.cloud.compute.v1.StoragePoolResourceStatus status = 181260274;

Returns
Type Description
StoragePoolResourceStatus

The status.

getStatusBuilder()

public StoragePoolResourceStatus.Builder getStatusBuilder()

[Output Only] Status information for the storage pool resource.

optional .google.cloud.compute.v1.StoragePoolResourceStatus status = 181260274;

Returns
Type Description
StoragePoolResourceStatus.Builder

getStatusOrBuilder()

public StoragePoolResourceStatusOrBuilder getStatusOrBuilder()

[Output Only] Status information for the storage pool resource.

optional .google.cloud.compute.v1.StoragePoolResourceStatus status = 181260274;

Returns
Type Description
StoragePoolResourceStatusOrBuilder

getStoragePoolType()

public String getStoragePoolType()

Type of the storage pool.

optional string storage_pool_type = 285999289;

Returns
Type Description
String

The storagePoolType.

getStoragePoolTypeBytes()

public ByteString getStoragePoolTypeBytes()

Type of the storage pool.

optional string storage_pool_type = 285999289;

Returns
Type Description
ByteString

The bytes for storagePoolType.

getZone()

public String getZone()

[Output Only] URL of the zone where the storage pool resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.

optional string zone = 3744684;

Returns
Type Description
String

The zone.

getZoneBytes()

public ByteString getZoneBytes()

[Output Only] URL of the zone where the storage pool resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.

optional string zone = 3744684;

Returns
Type Description
ByteString

The bytes for zone.

hasCapacityProvisioningType()

public boolean hasCapacityProvisioningType()

Provisioning type of the byte capacity of the pool. Check the CapacityProvisioningType enum for the list of possible values.

optional string capacity_provisioning_type = 251610375;

Returns
Type Description
boolean

Whether the capacityProvisioningType field is set.

hasCreationTimestamp()

public boolean hasCreationTimestamp()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
Type Description
boolean

Whether the creationTimestamp field is set.

hasDescription()

public boolean hasDescription()

An optional description of this resource. Provide this property when you create the resource.

optional string description = 422937596;

Returns
Type Description
boolean

Whether the description field is set.

hasId()

public boolean hasId()

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

optional uint64 id = 3355;

Returns
Type Description
boolean

Whether the id field is set.

hasKind()

public boolean hasKind()

[Output Only] Type of the resource. Always compute#storagePool for storage pools.

optional string kind = 3292052;

Returns
Type Description
boolean

Whether the kind field is set.

hasLabelFingerprint()

public boolean hasLabelFingerprint()

A fingerprint for the labels being applied to this storage pool, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a storage pool.

optional string label_fingerprint = 178124825;

Returns
Type Description
boolean

Whether the labelFingerprint field is set.

hasName()

public boolean hasName()

Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string name = 3373707;

Returns
Type Description
boolean

Whether the name field is set.

hasPerformanceProvisioningType()

public boolean hasPerformanceProvisioningType()

Provisioning type of the performance-related parameters of the pool, such as throughput and IOPS. Check the PerformanceProvisioningType enum for the list of possible values.

optional string performance_provisioning_type = 468553469;

Returns
Type Description
boolean

Whether the performanceProvisioningType field is set.

hasPoolProvisionedCapacityGb()

public boolean hasPoolProvisionedCapacityGb()

Size, in GiB, of the storage pool.

optional int64 pool_provisioned_capacity_gb = 478537682;

Returns
Type Description
boolean

Whether the poolProvisionedCapacityGb field is set.

hasPoolProvisionedIops()

public boolean hasPoolProvisionedIops()

Provisioned IOPS of the storage pool. Only relevant if the storage pool type is hyperdisk-balanced.

optional int64 pool_provisioned_iops = 112092311;

Returns
Type Description
boolean

Whether the poolProvisionedIops field is set.

hasPoolProvisionedThroughput()

public boolean hasPoolProvisionedThroughput()

Provisioned throughput of the storage pool. Only relevant if the storage pool type is hyperdisk-balanced or hyperdisk-throughput.

optional int64 pool_provisioned_throughput = 169215640;

Returns
Type Description
boolean

Whether the poolProvisionedThroughput field is set.

hasResourceStatus()

public boolean hasResourceStatus()

[Output Only] Status information for the storage pool resource.

optional .google.cloud.compute.v1.StoragePoolResourceStatus resource_status = 249429315;

Returns
Type Description
boolean

Whether the resourceStatus field is set.

public boolean hasSelfLink()

[Output Only] Server-defined fully-qualified URL for this resource.

optional string self_link = 456214797;

Returns
Type Description
boolean

Whether the selfLink field is set.

hasSelfLinkWithId()

public boolean hasSelfLinkWithId()

[Output Only] Server-defined URL for this resource's resource id.

optional string self_link_with_id = 44520962;

Returns
Type Description
boolean

Whether the selfLinkWithId field is set.

hasState()

public boolean hasState()

[Output Only] The status of storage pool creation. - CREATING: Storage pool is provisioning. storagePool. - FAILED: Storage pool creation failed. - READY: Storage pool is ready for use. - DELETING: Storage pool is deleting. Check the State enum for the list of possible values.

optional string state = 109757585;

Returns
Type Description
boolean

Whether the state field is set.

hasStatus()

public boolean hasStatus()

[Output Only] Status information for the storage pool resource.

optional .google.cloud.compute.v1.StoragePoolResourceStatus status = 181260274;

Returns
Type Description
boolean

Whether the status field is set.

hasStoragePoolType()

public boolean hasStoragePoolType()

Type of the storage pool.

optional string storage_pool_type = 285999289;

Returns
Type Description
boolean

Whether the storagePoolType field is set.

hasZone()

public boolean hasZone()

[Output Only] URL of the zone where the storage pool resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.

optional string zone = 3744684;

Returns
Type Description
boolean

Whether the zone field is set.

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.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(StoragePool other)

public StoragePool.Builder mergeFrom(StoragePool other)
Parameter
Name Description
other StoragePool
Returns
Type Description
StoragePool.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public StoragePool.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StoragePool.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public StoragePool.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
StoragePool.Builder
Overrides

mergeResourceStatus(StoragePoolResourceStatus value)

public StoragePool.Builder mergeResourceStatus(StoragePoolResourceStatus value)

[Output Only] Status information for the storage pool resource.

optional .google.cloud.compute.v1.StoragePoolResourceStatus resource_status = 249429315;

Parameter
Name Description
value StoragePoolResourceStatus
Returns
Type Description
StoragePool.Builder

mergeStatus(StoragePoolResourceStatus value)

public StoragePool.Builder mergeStatus(StoragePoolResourceStatus value)

[Output Only] Status information for the storage pool resource.

optional .google.cloud.compute.v1.StoragePoolResourceStatus status = 181260274;

Parameter
Name Description
value StoragePoolResourceStatus
Returns
Type Description
StoragePool.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StoragePool.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StoragePool.Builder
Overrides

putAllLabels(Map<String,String> values)

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

Labels to apply to this storage pool. These can be later modified by the setLabels method.

map<string, string> labels = 500195327;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
StoragePool.Builder

putLabels(String key, String value)

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

Labels to apply to this storage pool. These can be later modified by the setLabels method.

map<string, string> labels = 500195327;

Parameters
Name Description
key String
value String
Returns
Type Description
StoragePool.Builder

removeLabels(String key)

public StoragePool.Builder removeLabels(String key)

Labels to apply to this storage pool. These can be later modified by the setLabels method.

map<string, string> labels = 500195327;

Parameter
Name Description
key String
Returns
Type Description
StoragePool.Builder

setCapacityProvisioningType(String value)

public StoragePool.Builder setCapacityProvisioningType(String value)

Provisioning type of the byte capacity of the pool. Check the CapacityProvisioningType enum for the list of possible values.

optional string capacity_provisioning_type = 251610375;

Parameter
Name Description
value String

The capacityProvisioningType to set.

Returns
Type Description
StoragePool.Builder

This builder for chaining.

setCapacityProvisioningTypeBytes(ByteString value)

public StoragePool.Builder setCapacityProvisioningTypeBytes(ByteString value)

Provisioning type of the byte capacity of the pool. Check the CapacityProvisioningType enum for the list of possible values.

optional string capacity_provisioning_type = 251610375;

Parameter
Name Description
value ByteString

The bytes for capacityProvisioningType to set.

Returns
Type Description
StoragePool.Builder

This builder for chaining.

setCreationTimestamp(String value)

public StoragePool.Builder setCreationTimestamp(String value)

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Parameter
Name Description
value String

The creationTimestamp to set.

Returns
Type Description
StoragePool.Builder

This builder for chaining.

setCreationTimestampBytes(ByteString value)

public StoragePool.Builder setCreationTimestampBytes(ByteString value)

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Parameter
Name Description
value ByteString

The bytes for creationTimestamp to set.

Returns
Type Description
StoragePool.Builder

This builder for chaining.

setDescription(String value)

public StoragePool.Builder setDescription(String value)

An optional description of this resource. Provide this property when you create the resource.

optional string description = 422937596;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
StoragePool.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public StoragePool.Builder setDescriptionBytes(ByteString value)

An optional description of this resource. Provide this property when you create the resource.

optional string description = 422937596;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
StoragePool.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public StoragePool.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StoragePool.Builder
Overrides

setId(long value)

public StoragePool.Builder setId(long value)

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

optional uint64 id = 3355;

Parameter
Name Description
value long

The id to set.

Returns
Type Description
StoragePool.Builder

This builder for chaining.

setKind(String value)

public StoragePool.Builder setKind(String value)

[Output Only] Type of the resource. Always compute#storagePool for storage pools.

optional string kind = 3292052;

Parameter
Name Description
value String

The kind to set.

Returns
Type Description
StoragePool.Builder

This builder for chaining.

setKindBytes(ByteString value)

public StoragePool.Builder setKindBytes(ByteString value)

[Output Only] Type of the resource. Always compute#storagePool for storage pools.

optional string kind = 3292052;

Parameter
Name Description
value ByteString

The bytes for kind to set.

Returns
Type Description
StoragePool.Builder

This builder for chaining.

setLabelFingerprint(String value)

public StoragePool.Builder setLabelFingerprint(String value)

A fingerprint for the labels being applied to this storage pool, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a storage pool.

optional string label_fingerprint = 178124825;

Parameter
Name Description
value String

The labelFingerprint to set.

Returns
Type Description
StoragePool.Builder

This builder for chaining.

setLabelFingerprintBytes(ByteString value)

public StoragePool.Builder setLabelFingerprintBytes(ByteString value)

A fingerprint for the labels being applied to this storage pool, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a storage pool.

optional string label_fingerprint = 178124825;

Parameter
Name Description
value ByteString

The bytes for labelFingerprint to set.

Returns
Type Description
StoragePool.Builder

This builder for chaining.

setName(String value)

public StoragePool.Builder setName(String value)

Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string name = 3373707;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
StoragePool.Builder

This builder for chaining.

setNameBytes(ByteString value)

public StoragePool.Builder setNameBytes(ByteString value)

Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string name = 3373707;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
StoragePool.Builder

This builder for chaining.

setPerformanceProvisioningType(String value)

public StoragePool.Builder setPerformanceProvisioningType(String value)

Provisioning type of the performance-related parameters of the pool, such as throughput and IOPS. Check the PerformanceProvisioningType enum for the list of possible values.

optional string performance_provisioning_type = 468553469;

Parameter
Name Description
value String

The performanceProvisioningType to set.

Returns
Type Description
StoragePool.Builder

This builder for chaining.

setPerformanceProvisioningTypeBytes(ByteString value)

public StoragePool.Builder setPerformanceProvisioningTypeBytes(ByteString value)

Provisioning type of the performance-related parameters of the pool, such as throughput and IOPS. Check the PerformanceProvisioningType enum for the list of possible values.

optional string performance_provisioning_type = 468553469;

Parameter
Name Description
value ByteString

The bytes for performanceProvisioningType to set.

Returns
Type Description
StoragePool.Builder

This builder for chaining.

setPoolProvisionedCapacityGb(long value)

public StoragePool.Builder setPoolProvisionedCapacityGb(long value)

Size, in GiB, of the storage pool.

optional int64 pool_provisioned_capacity_gb = 478537682;

Parameter
Name Description
value long

The poolProvisionedCapacityGb to set.

Returns
Type Description
StoragePool.Builder

This builder for chaining.

setPoolProvisionedIops(long value)

public StoragePool.Builder setPoolProvisionedIops(long value)

Provisioned IOPS of the storage pool. Only relevant if the storage pool type is hyperdisk-balanced.

optional int64 pool_provisioned_iops = 112092311;

Parameter
Name Description
value long

The poolProvisionedIops to set.

Returns
Type Description
StoragePool.Builder

This builder for chaining.

setPoolProvisionedThroughput(long value)

public StoragePool.Builder setPoolProvisionedThroughput(long value)

Provisioned throughput of the storage pool. Only relevant if the storage pool type is hyperdisk-balanced or hyperdisk-throughput.

optional int64 pool_provisioned_throughput = 169215640;

Parameter
Name Description
value long

The poolProvisionedThroughput to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
StoragePool.Builder
Overrides

setResourceStatus(StoragePoolResourceStatus value)

public StoragePool.Builder setResourceStatus(StoragePoolResourceStatus value)

[Output Only] Status information for the storage pool resource.

optional .google.cloud.compute.v1.StoragePoolResourceStatus resource_status = 249429315;

Parameter
Name Description
value StoragePoolResourceStatus
Returns
Type Description
StoragePool.Builder

setResourceStatus(StoragePoolResourceStatus.Builder builderForValue)

public StoragePool.Builder setResourceStatus(StoragePoolResourceStatus.Builder builderForValue)

[Output Only] Status information for the storage pool resource.

optional .google.cloud.compute.v1.StoragePoolResourceStatus resource_status = 249429315;

Parameter
Name Description
builderForValue StoragePoolResourceStatus.Builder
Returns
Type Description
StoragePool.Builder
public StoragePool.Builder setSelfLink(String value)

[Output Only] Server-defined fully-qualified URL for this resource.

optional string self_link = 456214797;

Parameter
Name Description
value String

The selfLink to set.

Returns
Type Description
StoragePool.Builder

This builder for chaining.

setSelfLinkBytes(ByteString value)

public StoragePool.Builder setSelfLinkBytes(ByteString value)

[Output Only] Server-defined fully-qualified URL for this resource.

optional string self_link = 456214797;

Parameter
Name Description
value ByteString

The bytes for selfLink to set.

Returns
Type Description
StoragePool.Builder

This builder for chaining.

setSelfLinkWithId(String value)

public StoragePool.Builder setSelfLinkWithId(String value)

[Output Only] Server-defined URL for this resource's resource id.

optional string self_link_with_id = 44520962;

Parameter
Name Description
value String

The selfLinkWithId to set.

Returns
Type Description
StoragePool.Builder

This builder for chaining.

setSelfLinkWithIdBytes(ByteString value)

public StoragePool.Builder setSelfLinkWithIdBytes(ByteString value)

[Output Only] Server-defined URL for this resource's resource id.

optional string self_link_with_id = 44520962;

Parameter
Name Description
value ByteString

The bytes for selfLinkWithId to set.

Returns
Type Description
StoragePool.Builder

This builder for chaining.

setState(String value)

public StoragePool.Builder setState(String value)

[Output Only] The status of storage pool creation. - CREATING: Storage pool is provisioning. storagePool. - FAILED: Storage pool creation failed. - READY: Storage pool is ready for use. - DELETING: Storage pool is deleting. Check the State enum for the list of possible values.

optional string state = 109757585;

Parameter
Name Description
value String

The state to set.

Returns
Type Description
StoragePool.Builder

This builder for chaining.

setStateBytes(ByteString value)

public StoragePool.Builder setStateBytes(ByteString value)

[Output Only] The status of storage pool creation. - CREATING: Storage pool is provisioning. storagePool. - FAILED: Storage pool creation failed. - READY: Storage pool is ready for use. - DELETING: Storage pool is deleting. Check the State enum for the list of possible values.

optional string state = 109757585;

Parameter
Name Description
value ByteString

The bytes for state to set.

Returns
Type Description
StoragePool.Builder

This builder for chaining.

setStatus(StoragePoolResourceStatus value)

public StoragePool.Builder setStatus(StoragePoolResourceStatus value)

[Output Only] Status information for the storage pool resource.

optional .google.cloud.compute.v1.StoragePoolResourceStatus status = 181260274;

Parameter
Name Description
value StoragePoolResourceStatus
Returns
Type Description
StoragePool.Builder

setStatus(StoragePoolResourceStatus.Builder builderForValue)

public StoragePool.Builder setStatus(StoragePoolResourceStatus.Builder builderForValue)

[Output Only] Status information for the storage pool resource.

optional .google.cloud.compute.v1.StoragePoolResourceStatus status = 181260274;

Parameter
Name Description
builderForValue StoragePoolResourceStatus.Builder
Returns
Type Description
StoragePool.Builder

setStoragePoolType(String value)

public StoragePool.Builder setStoragePoolType(String value)

Type of the storage pool.

optional string storage_pool_type = 285999289;

Parameter
Name Description
value String

The storagePoolType to set.

Returns
Type Description
StoragePool.Builder

This builder for chaining.

setStoragePoolTypeBytes(ByteString value)

public StoragePool.Builder setStoragePoolTypeBytes(ByteString value)

Type of the storage pool.

optional string storage_pool_type = 285999289;

Parameter
Name Description
value ByteString

The bytes for storagePoolType to set.

Returns
Type Description
StoragePool.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final StoragePool.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StoragePool.Builder
Overrides

setZone(String value)

public StoragePool.Builder setZone(String value)

[Output Only] URL of the zone where the storage pool resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.

optional string zone = 3744684;

Parameter
Name Description
value String

The zone to set.

Returns
Type Description
StoragePool.Builder

This builder for chaining.

setZoneBytes(ByteString value)

public StoragePool.Builder setZoneBytes(ByteString value)

[Output Only] URL of the zone where the storage pool resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.

optional string zone = 3744684;

Parameter
Name Description
value ByteString

The bytes for zone to set.

Returns
Type Description
StoragePool.Builder

This builder for chaining.