Class StoragePoolDisk.Builder (1.63.0)

public static final class StoragePoolDisk.Builder extends GeneratedMessageV3.Builder<StoragePoolDisk.Builder> implements StoragePoolDiskOrBuilder

Protobuf type google.cloud.compute.v1.StoragePoolDisk

Static Methods

getDescriptor()

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

Methods

addAllAttachedInstances(Iterable<String> values)

public StoragePoolDisk.Builder addAllAttachedInstances(Iterable<String> values)

[Output Only] Instances this disk is attached to.

repeated string attached_instances = 65255843;

Parameter
Name Description
values Iterable<String>

The attachedInstances to add.

Returns
Type Description
StoragePoolDisk.Builder

This builder for chaining.

addAllResourcePolicies(Iterable<String> values)

public StoragePoolDisk.Builder addAllResourcePolicies(Iterable<String> values)

[Output Only] Resource policies applied to disk for automatic snapshot creations.

repeated string resource_policies = 22220385;

Parameter
Name Description
values Iterable<String>

The resourcePolicies to add.

Returns
Type Description
StoragePoolDisk.Builder

This builder for chaining.

addAttachedInstances(String value)

public StoragePoolDisk.Builder addAttachedInstances(String value)

[Output Only] Instances this disk is attached to.

repeated string attached_instances = 65255843;

Parameter
Name Description
value String

The attachedInstances to add.

Returns
Type Description
StoragePoolDisk.Builder

This builder for chaining.

addAttachedInstancesBytes(ByteString value)

public StoragePoolDisk.Builder addAttachedInstancesBytes(ByteString value)

[Output Only] Instances this disk is attached to.

repeated string attached_instances = 65255843;

Parameter
Name Description
value ByteString

The bytes of the attachedInstances to add.

Returns
Type Description
StoragePoolDisk.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addResourcePolicies(String value)

public StoragePoolDisk.Builder addResourcePolicies(String value)

[Output Only] Resource policies applied to disk for automatic snapshot creations.

repeated string resource_policies = 22220385;

Parameter
Name Description
value String

The resourcePolicies to add.

Returns
Type Description
StoragePoolDisk.Builder

This builder for chaining.

addResourcePoliciesBytes(ByteString value)

public StoragePoolDisk.Builder addResourcePoliciesBytes(ByteString value)

[Output Only] Resource policies applied to disk for automatic snapshot creations.

repeated string resource_policies = 22220385;

Parameter
Name Description
value ByteString

The bytes of the resourcePolicies to add.

Returns
Type Description
StoragePoolDisk.Builder

This builder for chaining.

build()

public StoragePoolDisk build()
Returns
Type Description
StoragePoolDisk

buildPartial()

public StoragePoolDisk buildPartial()
Returns
Type Description
StoragePoolDisk

clear()

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

clearAttachedInstances()

public StoragePoolDisk.Builder clearAttachedInstances()

[Output Only] Instances this disk is attached to.

repeated string attached_instances = 65255843;

Returns
Type Description
StoragePoolDisk.Builder

This builder for chaining.

clearCreationTimestamp()

public StoragePoolDisk.Builder clearCreationTimestamp()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
Type Description
StoragePoolDisk.Builder

This builder for chaining.

clearDisk()

public StoragePoolDisk.Builder clearDisk()

[Output Only] The URL of the disk.

optional string disk = 3083677;

Returns
Type Description
StoragePoolDisk.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public StoragePoolDisk.Builder clearName()

[Output Only] The name of the disk.

optional string name = 3373707;

Returns
Type Description
StoragePoolDisk.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProvisionedIops()

public StoragePoolDisk.Builder clearProvisionedIops()

[Output Only] The number of IOPS provisioned for the disk.

optional int64 provisioned_iops = 186769108;

Returns
Type Description
StoragePoolDisk.Builder

This builder for chaining.

clearProvisionedThroughput()

public StoragePoolDisk.Builder clearProvisionedThroughput()

[Output Only] The throughput provisioned for the disk.

optional int64 provisioned_throughput = 526524181;

Returns
Type Description
StoragePoolDisk.Builder

This builder for chaining.

clearResourcePolicies()

public StoragePoolDisk.Builder clearResourcePolicies()

[Output Only] Resource policies applied to disk for automatic snapshot creations.

repeated string resource_policies = 22220385;

Returns
Type Description
StoragePoolDisk.Builder

This builder for chaining.

clearSizeGb()

public StoragePoolDisk.Builder clearSizeGb()

[Output Only] The disk size, in GB.

optional int64 size_gb = 494929369;

Returns
Type Description
StoragePoolDisk.Builder

This builder for chaining.

clearStatus()

public StoragePoolDisk.Builder clearStatus()

[Output Only] The disk status. Check the Status enum for the list of possible values.

optional string status = 181260274;

Returns
Type Description
StoragePoolDisk.Builder

This builder for chaining.

clearType()

public StoragePoolDisk.Builder clearType()

[Output Only] The disk type.

optional string type = 3575610;

Returns
Type Description
StoragePoolDisk.Builder

This builder for chaining.

clearUsedBytes()

public StoragePoolDisk.Builder clearUsedBytes()

[Output Only] Amount of disk space used.

optional int64 used_bytes = 231640425;

Returns
Type Description
StoragePoolDisk.Builder

This builder for chaining.

clone()

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

getAttachedInstances(int index)

public String getAttachedInstances(int index)

[Output Only] Instances this disk is attached to.

repeated string attached_instances = 65255843;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The attachedInstances at the given index.

getAttachedInstancesBytes(int index)

public ByteString getAttachedInstancesBytes(int index)

[Output Only] Instances this disk is attached to.

repeated string attached_instances = 65255843;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the attachedInstances at the given index.

getAttachedInstancesCount()

public int getAttachedInstancesCount()

[Output Only] Instances this disk is attached to.

repeated string attached_instances = 65255843;

Returns
Type Description
int

The count of attachedInstances.

getAttachedInstancesList()

public ProtocolStringList getAttachedInstancesList()

[Output Only] Instances this disk is attached to.

repeated string attached_instances = 65255843;

Returns
Type Description
ProtocolStringList

A list containing the attachedInstances.

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 StoragePoolDisk getDefaultInstanceForType()
Returns
Type Description
StoragePoolDisk

getDescriptorForType()

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

getDisk()

public String getDisk()

[Output Only] The URL of the disk.

optional string disk = 3083677;

Returns
Type Description
String

The disk.

getDiskBytes()

public ByteString getDiskBytes()

[Output Only] The URL of the disk.

optional string disk = 3083677;

Returns
Type Description
ByteString

The bytes for disk.

getName()

public String getName()

[Output Only] The name of the disk.

optional string name = 3373707;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

[Output Only] The name of the disk.

optional string name = 3373707;

Returns
Type Description
ByteString

The bytes for name.

getProvisionedIops()

public long getProvisionedIops()

[Output Only] The number of IOPS provisioned for the disk.

optional int64 provisioned_iops = 186769108;

Returns
Type Description
long

The provisionedIops.

getProvisionedThroughput()

public long getProvisionedThroughput()

[Output Only] The throughput provisioned for the disk.

optional int64 provisioned_throughput = 526524181;

Returns
Type Description
long

The provisionedThroughput.

getResourcePolicies(int index)

public String getResourcePolicies(int index)

[Output Only] Resource policies applied to disk for automatic snapshot creations.

repeated string resource_policies = 22220385;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The resourcePolicies at the given index.

getResourcePoliciesBytes(int index)

public ByteString getResourcePoliciesBytes(int index)

[Output Only] Resource policies applied to disk for automatic snapshot creations.

repeated string resource_policies = 22220385;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the resourcePolicies at the given index.

getResourcePoliciesCount()

public int getResourcePoliciesCount()

[Output Only] Resource policies applied to disk for automatic snapshot creations.

repeated string resource_policies = 22220385;

Returns
Type Description
int

The count of resourcePolicies.

getResourcePoliciesList()

public ProtocolStringList getResourcePoliciesList()

[Output Only] Resource policies applied to disk for automatic snapshot creations.

repeated string resource_policies = 22220385;

Returns
Type Description
ProtocolStringList

A list containing the resourcePolicies.

getSizeGb()

public long getSizeGb()

[Output Only] The disk size, in GB.

optional int64 size_gb = 494929369;

Returns
Type Description
long

The sizeGb.

getStatus()

public String getStatus()

[Output Only] The disk status. Check the Status enum for the list of possible values.

optional string status = 181260274;

Returns
Type Description
String

The status.

getStatusBytes()

public ByteString getStatusBytes()

[Output Only] The disk status. Check the Status enum for the list of possible values.

optional string status = 181260274;

Returns
Type Description
ByteString

The bytes for status.

getType()

public String getType()

[Output Only] The disk type.

optional string type = 3575610;

Returns
Type Description
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

[Output Only] The disk type.

optional string type = 3575610;

Returns
Type Description
ByteString

The bytes for type.

getUsedBytes()

public long getUsedBytes()

[Output Only] Amount of disk space used.

optional int64 used_bytes = 231640425;

Returns
Type Description
long

The usedBytes.

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.

hasDisk()

public boolean hasDisk()

[Output Only] The URL of the disk.

optional string disk = 3083677;

Returns
Type Description
boolean

Whether the disk field is set.

hasName()

public boolean hasName()

[Output Only] The name of the disk.

optional string name = 3373707;

Returns
Type Description
boolean

Whether the name field is set.

hasProvisionedIops()

public boolean hasProvisionedIops()

[Output Only] The number of IOPS provisioned for the disk.

optional int64 provisioned_iops = 186769108;

Returns
Type Description
boolean

Whether the provisionedIops field is set.

hasProvisionedThroughput()

public boolean hasProvisionedThroughput()

[Output Only] The throughput provisioned for the disk.

optional int64 provisioned_throughput = 526524181;

Returns
Type Description
boolean

Whether the provisionedThroughput field is set.

hasSizeGb()

public boolean hasSizeGb()

[Output Only] The disk size, in GB.

optional int64 size_gb = 494929369;

Returns
Type Description
boolean

Whether the sizeGb field is set.

hasStatus()

public boolean hasStatus()

[Output Only] The disk status. Check the Status enum for the list of possible values.

optional string status = 181260274;

Returns
Type Description
boolean

Whether the status field is set.

hasType()

public boolean hasType()

[Output Only] The disk type.

optional string type = 3575610;

Returns
Type Description
boolean

Whether the type field is set.

hasUsedBytes()

public boolean hasUsedBytes()

[Output Only] Amount of disk space used.

optional int64 used_bytes = 231640425;

Returns
Type Description
boolean

Whether the usedBytes field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(StoragePoolDisk other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAttachedInstances(int index, String value)

public StoragePoolDisk.Builder setAttachedInstances(int index, String value)

[Output Only] Instances this disk is attached to.

repeated string attached_instances = 65255843;

Parameters
Name Description
index int

The index to set the value at.

value String

The attachedInstances to set.

Returns
Type Description
StoragePoolDisk.Builder

This builder for chaining.

setCreationTimestamp(String value)

public StoragePoolDisk.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
StoragePoolDisk.Builder

This builder for chaining.

setCreationTimestampBytes(ByteString value)

public StoragePoolDisk.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
StoragePoolDisk.Builder

This builder for chaining.

setDisk(String value)

public StoragePoolDisk.Builder setDisk(String value)

[Output Only] The URL of the disk.

optional string disk = 3083677;

Parameter
Name Description
value String

The disk to set.

Returns
Type Description
StoragePoolDisk.Builder

This builder for chaining.

setDiskBytes(ByteString value)

public StoragePoolDisk.Builder setDiskBytes(ByteString value)

[Output Only] The URL of the disk.

optional string disk = 3083677;

Parameter
Name Description
value ByteString

The bytes for disk to set.

Returns
Type Description
StoragePoolDisk.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public StoragePoolDisk.Builder setName(String value)

[Output Only] The name of the disk.

optional string name = 3373707;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
StoragePoolDisk.Builder

This builder for chaining.

setNameBytes(ByteString value)

public StoragePoolDisk.Builder setNameBytes(ByteString value)

[Output Only] The name of the disk.

optional string name = 3373707;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
StoragePoolDisk.Builder

This builder for chaining.

setProvisionedIops(long value)

public StoragePoolDisk.Builder setProvisionedIops(long value)

[Output Only] The number of IOPS provisioned for the disk.

optional int64 provisioned_iops = 186769108;

Parameter
Name Description
value long

The provisionedIops to set.

Returns
Type Description
StoragePoolDisk.Builder

This builder for chaining.

setProvisionedThroughput(long value)

public StoragePoolDisk.Builder setProvisionedThroughput(long value)

[Output Only] The throughput provisioned for the disk.

optional int64 provisioned_throughput = 526524181;

Parameter
Name Description
value long

The provisionedThroughput to set.

Returns
Type Description
StoragePoolDisk.Builder

This builder for chaining.

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

public StoragePoolDisk.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
StoragePoolDisk.Builder
Overrides

setResourcePolicies(int index, String value)

public StoragePoolDisk.Builder setResourcePolicies(int index, String value)

[Output Only] Resource policies applied to disk for automatic snapshot creations.

repeated string resource_policies = 22220385;

Parameters
Name Description
index int

The index to set the value at.

value String

The resourcePolicies to set.

Returns
Type Description
StoragePoolDisk.Builder

This builder for chaining.

setSizeGb(long value)

public StoragePoolDisk.Builder setSizeGb(long value)

[Output Only] The disk size, in GB.

optional int64 size_gb = 494929369;

Parameter
Name Description
value long

The sizeGb to set.

Returns
Type Description
StoragePoolDisk.Builder

This builder for chaining.

setStatus(String value)

public StoragePoolDisk.Builder setStatus(String value)

[Output Only] The disk status. Check the Status enum for the list of possible values.

optional string status = 181260274;

Parameter
Name Description
value String

The status to set.

Returns
Type Description
StoragePoolDisk.Builder

This builder for chaining.

setStatusBytes(ByteString value)

public StoragePoolDisk.Builder setStatusBytes(ByteString value)

[Output Only] The disk status. Check the Status enum for the list of possible values.

optional string status = 181260274;

Parameter
Name Description
value ByteString

The bytes for status to set.

Returns
Type Description
StoragePoolDisk.Builder

This builder for chaining.

setType(String value)

public StoragePoolDisk.Builder setType(String value)

[Output Only] The disk type.

optional string type = 3575610;

Parameter
Name Description
value String

The type to set.

Returns
Type Description
StoragePoolDisk.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public StoragePoolDisk.Builder setTypeBytes(ByteString value)

[Output Only] The disk type.

optional string type = 3575610;

Parameter
Name Description
value ByteString

The bytes for type to set.

Returns
Type Description
StoragePoolDisk.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUsedBytes(long value)

public StoragePoolDisk.Builder setUsedBytes(long value)

[Output Only] Amount of disk space used.

optional int64 used_bytes = 231640425;

Parameter
Name Description
value long

The usedBytes to set.

Returns
Type Description
StoragePoolDisk.Builder

This builder for chaining.