- 1.86.0 (latest)
 - 1.85.0
 - 1.84.0
 - 1.83.0
 - 1.82.0
 - 1.80.0
 - 1.78.0
 - 1.77.0
 - 1.74.0
 - 1.73.0
 - 1.72.0
 - 1.70.0
 - 1.69.0
 - 1.68.0
 - 1.67.0
 - 1.66.0
 - 1.65.0
 - 1.64.0
 - 1.63.0
 - 1.62.0
 - 1.61.0
 - 1.59.0
 - 1.58.0
 - 1.57.0
 - 1.56.0
 - 1.55.0
 - 1.54.0
 - 1.53.0
 - 1.52.0
 - 1.51.0
 - 1.50.0
 - 1.49.0
 - 1.47.0
 - 1.46.0
 - 1.45.0
 - 1.44.0
 - 1.43.0
 - 1.42.0
 - 1.41.0
 - 1.40.0
 - 1.39.0
 - 1.38.0
 - 1.37.0
 - 1.34.0
 - 1.33.0
 - 1.32.0
 - 1.31.0
 - 1.30.0
 - 1.29.0
 - 1.28.0
 - 1.27.0
 - 1.26.0
 - 1.25.0
 - 1.24.0
 - 1.23.0
 - 1.22.0
 - 1.21.0
 - 1.20.0
 - 1.19.0
 - 1.18.0
 - 1.17.0
 - 1.16.0
 - 1.15.0
 - 1.14.0
 - 1.13.0
 - 1.12.1
 - 1.11.0
 - 1.9.1
 - 1.8.1
 - 1.7.2
 - 1.6.0-beta
 
public static final class StoragePoolDisk.Builder extends GeneratedMessageV3.Builder<StoragePoolDisk.Builder> implements StoragePoolDiskOrBuilder Protobuf type google.cloud.compute.v1.StoragePoolDisk
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > StoragePoolDisk.BuilderImplements
StoragePoolDiskOrBuilderStatic 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 | 
        StringThe 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 | 
        ByteStringThe 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 | 
        |
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 | 
        StringThe 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 | 
        ByteStringThe 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 | 
        |
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 | 
        |
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 | 
        |
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 | 
        |
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 | 
        intThe 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 | 
        intThe 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 | 
        |
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 | 
        intThe 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 | 
        intThe 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 | 
        |
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description | 
boolean | 
        |
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 | 
        |
| Exceptions | |
|---|---|
| Type | Description | 
IOException | 
        |
mergeFrom(Message other)
public StoragePoolDisk.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description | 
other | 
        Message | 
      
| Returns | |
|---|---|
| Type | Description | 
StoragePoolDisk.Builder | 
        |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final StoragePoolDisk.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
unknownFields | 
        UnknownFieldSet | 
      
| Returns | |
|---|---|
| Type | Description | 
StoragePoolDisk.Builder | 
        |
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 | 
        intThe index to set the value at.  | 
      
value | 
        StringThe 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 | 
        StringThe 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 | 
        ByteStringThe 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 | 
        StringThe 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 | 
        ByteStringThe 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 | 
        |
setName(String value)
public StoragePoolDisk.Builder setName(String value)[Output Only] The name of the disk.
 optional string name = 3373707;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        StringThe 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 | 
        ByteStringThe 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 | 
        longThe 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 | 
        longThe 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 | 
        |
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 | 
        intThe index to set the value at.  | 
      
value | 
        StringThe 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 | 
        longThe 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 | 
        StringThe 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 | 
        ByteStringThe 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 | 
        StringThe 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 | 
        ByteStringThe 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 | 
        |
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 | 
        longThe usedBytes to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
StoragePoolDisk.Builder | 
        This builder for chaining.  |