Class StoragePoolDisk (1.55.0)

public final class StoragePoolDisk extends GeneratedMessageV3 implements StoragePoolDiskOrBuilder

Protobuf type google.cloud.compute.v1.StoragePoolDisk

Static Fields

ATTACHED_INSTANCES_FIELD_NUMBER

public static final int ATTACHED_INSTANCES_FIELD_NUMBER
Field Value
Type Description
int

CREATION_TIMESTAMP_FIELD_NUMBER

public static final int CREATION_TIMESTAMP_FIELD_NUMBER
Field Value
Type Description
int

DISK_FIELD_NUMBER

public static final int DISK_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

PROVISIONED_IOPS_FIELD_NUMBER

public static final int PROVISIONED_IOPS_FIELD_NUMBER
Field Value
Type Description
int

PROVISIONED_THROUGHPUT_FIELD_NUMBER

public static final int PROVISIONED_THROUGHPUT_FIELD_NUMBER
Field Value
Type Description
int

RESOURCE_POLICIES_FIELD_NUMBER

public static final int RESOURCE_POLICIES_FIELD_NUMBER
Field Value
Type Description
int

SIZE_GB_FIELD_NUMBER

public static final int SIZE_GB_FIELD_NUMBER
Field Value
Type Description
int

STATUS_FIELD_NUMBER

public static final int STATUS_FIELD_NUMBER
Field Value
Type Description
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
Type Description
int

USED_BYTES_FIELD_NUMBER

public static final int USED_BYTES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static StoragePoolDisk getDefaultInstance()
Returns
Type Description
StoragePoolDisk

getDescriptor()

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

newBuilder()

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

newBuilder(StoragePoolDisk prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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

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.

getParserForType()

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

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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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