Class StoragePoolDisk

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.compute.v1.StoragePoolDisk
All Implemented Interfaces:
StoragePoolDiskOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class StoragePoolDisk extends com.google.protobuf.GeneratedMessage implements StoragePoolDiskOrBuilder
 
Protobuf type google.cloud.compute.v1.StoragePoolDisk
See Also:
  • Field Details

    • ATTACHED_INSTANCES_FIELD_NUMBER

      public static final int ATTACHED_INSTANCES_FIELD_NUMBER
      See Also:
    • CREATION_TIMESTAMP_FIELD_NUMBER

      public static final int CREATION_TIMESTAMP_FIELD_NUMBER
      See Also:
    • DISK_FIELD_NUMBER

      public static final int DISK_FIELD_NUMBER
      See Also:
    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • PROVISIONED_IOPS_FIELD_NUMBER

      public static final int PROVISIONED_IOPS_FIELD_NUMBER
      See Also:
    • PROVISIONED_THROUGHPUT_FIELD_NUMBER

      public static final int PROVISIONED_THROUGHPUT_FIELD_NUMBER
      See Also:
    • RESOURCE_POLICIES_FIELD_NUMBER

      public static final int RESOURCE_POLICIES_FIELD_NUMBER
      See Also:
    • SIZE_GB_FIELD_NUMBER

      public static final int SIZE_GB_FIELD_NUMBER
      See Also:
    • STATUS_FIELD_NUMBER

      public static final int STATUS_FIELD_NUMBER
      See Also:
    • TYPE_FIELD_NUMBER

      public static final int TYPE_FIELD_NUMBER
      See Also:
    • USED_BYTES_FIELD_NUMBER

      public static final int USED_BYTES_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getAttachedInstancesList

      public com.google.protobuf.ProtocolStringList getAttachedInstancesList()
       Output only. [Output Only] Instances this disk is attached to.
       
      repeated string attached_instances = 65255843;
      Specified by:
      getAttachedInstancesList in interface StoragePoolDiskOrBuilder
      Returns:
      A list containing the attachedInstances.
    • getAttachedInstancesCount

      public int getAttachedInstancesCount()
       Output only. [Output Only] Instances this disk is attached to.
       
      repeated string attached_instances = 65255843;
      Specified by:
      getAttachedInstancesCount in interface StoragePoolDiskOrBuilder
      Returns:
      The count of attachedInstances.
    • getAttachedInstances

      public String getAttachedInstances(int index)
       Output only. [Output Only] Instances this disk is attached to.
       
      repeated string attached_instances = 65255843;
      Specified by:
      getAttachedInstances in interface StoragePoolDiskOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The attachedInstances at the given index.
    • getAttachedInstancesBytes

      public com.google.protobuf.ByteString getAttachedInstancesBytes(int index)
       Output only. [Output Only] Instances this disk is attached to.
       
      repeated string attached_instances = 65255843;
      Specified by:
      getAttachedInstancesBytes in interface StoragePoolDiskOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the attachedInstances at the given index.
    • hasCreationTimestamp

      public boolean hasCreationTimestamp()
       Output only. [Output Only] Creation timestamp inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Specified by:
      hasCreationTimestamp in interface StoragePoolDiskOrBuilder
      Returns:
      Whether the creationTimestamp field is set.
    • getCreationTimestamp

      public String getCreationTimestamp()
       Output only. [Output Only] Creation timestamp inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Specified by:
      getCreationTimestamp in interface StoragePoolDiskOrBuilder
      Returns:
      The creationTimestamp.
    • getCreationTimestampBytes

      public com.google.protobuf.ByteString getCreationTimestampBytes()
       Output only. [Output Only] Creation timestamp inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Specified by:
      getCreationTimestampBytes in interface StoragePoolDiskOrBuilder
      Returns:
      The bytes for creationTimestamp.
    • hasDisk

      public boolean hasDisk()
       Output only. [Output Only] The URL of the disk.
       
      optional string disk = 3083677;
      Specified by:
      hasDisk in interface StoragePoolDiskOrBuilder
      Returns:
      Whether the disk field is set.
    • getDisk

      public String getDisk()
       Output only. [Output Only] The URL of the disk.
       
      optional string disk = 3083677;
      Specified by:
      getDisk in interface StoragePoolDiskOrBuilder
      Returns:
      The disk.
    • getDiskBytes

      public com.google.protobuf.ByteString getDiskBytes()
       Output only. [Output Only] The URL of the disk.
       
      optional string disk = 3083677;
      Specified by:
      getDiskBytes in interface StoragePoolDiskOrBuilder
      Returns:
      The bytes for disk.
    • hasName

      public boolean hasName()
       Output only. [Output Only] The name of the disk.
       
      optional string name = 3373707;
      Specified by:
      hasName in interface StoragePoolDiskOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       Output only. [Output Only] The name of the disk.
       
      optional string name = 3373707;
      Specified by:
      getName in interface StoragePoolDiskOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. [Output Only] The name of the disk.
       
      optional string name = 3373707;
      Specified by:
      getNameBytes in interface StoragePoolDiskOrBuilder
      Returns:
      The bytes for name.
    • hasProvisionedIops

      public boolean hasProvisionedIops()
       Output only. [Output Only] The number of IOPS provisioned for the disk.
       
      optional int64 provisioned_iops = 186769108;
      Specified by:
      hasProvisionedIops in interface StoragePoolDiskOrBuilder
      Returns:
      Whether the provisionedIops field is set.
    • getProvisionedIops

      public long getProvisionedIops()
       Output only. [Output Only] The number of IOPS provisioned for the disk.
       
      optional int64 provisioned_iops = 186769108;
      Specified by:
      getProvisionedIops in interface StoragePoolDiskOrBuilder
      Returns:
      The provisionedIops.
    • hasProvisionedThroughput

      public boolean hasProvisionedThroughput()
       Output only. [Output Only] The throughput provisioned for the disk.
       
      optional int64 provisioned_throughput = 526524181;
      Specified by:
      hasProvisionedThroughput in interface StoragePoolDiskOrBuilder
      Returns:
      Whether the provisionedThroughput field is set.
    • getProvisionedThroughput

      public long getProvisionedThroughput()
       Output only. [Output Only] The throughput provisioned for the disk.
       
      optional int64 provisioned_throughput = 526524181;
      Specified by:
      getProvisionedThroughput in interface StoragePoolDiskOrBuilder
      Returns:
      The provisionedThroughput.
    • getResourcePoliciesList

      public com.google.protobuf.ProtocolStringList getResourcePoliciesList()
       Output only. [Output Only] Resource policies applied to disk for automatic snapshot
       creations.
       
      repeated string resource_policies = 22220385;
      Specified by:
      getResourcePoliciesList in interface StoragePoolDiskOrBuilder
      Returns:
      A list containing the resourcePolicies.
    • getResourcePoliciesCount

      public int getResourcePoliciesCount()
       Output only. [Output Only] Resource policies applied to disk for automatic snapshot
       creations.
       
      repeated string resource_policies = 22220385;
      Specified by:
      getResourcePoliciesCount in interface StoragePoolDiskOrBuilder
      Returns:
      The count of resourcePolicies.
    • getResourcePolicies

      public String getResourcePolicies(int index)
       Output only. [Output Only] Resource policies applied to disk for automatic snapshot
       creations.
       
      repeated string resource_policies = 22220385;
      Specified by:
      getResourcePolicies in interface StoragePoolDiskOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The resourcePolicies at the given index.
    • getResourcePoliciesBytes

      public com.google.protobuf.ByteString getResourcePoliciesBytes(int index)
       Output only. [Output Only] Resource policies applied to disk for automatic snapshot
       creations.
       
      repeated string resource_policies = 22220385;
      Specified by:
      getResourcePoliciesBytes in interface StoragePoolDiskOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the resourcePolicies at the given index.
    • hasSizeGb

      public boolean hasSizeGb()
       Output only. [Output Only] The disk size, in GB.
       
      optional int64 size_gb = 494929369;
      Specified by:
      hasSizeGb in interface StoragePoolDiskOrBuilder
      Returns:
      Whether the sizeGb field is set.
    • getSizeGb

      public long getSizeGb()
       Output only. [Output Only] The disk size, in GB.
       
      optional int64 size_gb = 494929369;
      Specified by:
      getSizeGb in interface StoragePoolDiskOrBuilder
      Returns:
      The sizeGb.
    • hasStatus

      public boolean hasStatus()
       Output only. [Output Only] The disk status.
       Check the Status enum for the list of possible values.
       
      optional string status = 181260274;
      Specified by:
      hasStatus in interface StoragePoolDiskOrBuilder
      Returns:
      Whether the status field is set.
    • getStatus

      public String getStatus()
       Output only. [Output Only] The disk status.
       Check the Status enum for the list of possible values.
       
      optional string status = 181260274;
      Specified by:
      getStatus in interface StoragePoolDiskOrBuilder
      Returns:
      The status.
    • getStatusBytes

      public com.google.protobuf.ByteString getStatusBytes()
       Output only. [Output Only] The disk status.
       Check the Status enum for the list of possible values.
       
      optional string status = 181260274;
      Specified by:
      getStatusBytes in interface StoragePoolDiskOrBuilder
      Returns:
      The bytes for status.
    • hasType

      public boolean hasType()
       Output only. [Output Only] The disk type.
       
      optional string type = 3575610;
      Specified by:
      hasType in interface StoragePoolDiskOrBuilder
      Returns:
      Whether the type field is set.
    • getType

      public String getType()
       Output only. [Output Only] The disk type.
       
      optional string type = 3575610;
      Specified by:
      getType in interface StoragePoolDiskOrBuilder
      Returns:
      The type.
    • getTypeBytes

      public com.google.protobuf.ByteString getTypeBytes()
       Output only. [Output Only] The disk type.
       
      optional string type = 3575610;
      Specified by:
      getTypeBytes in interface StoragePoolDiskOrBuilder
      Returns:
      The bytes for type.
    • hasUsedBytes

      public boolean hasUsedBytes()
       Output only. [Output Only] Amount of disk space used.
       
      optional int64 used_bytes = 231640425;
      Specified by:
      hasUsedBytes in interface StoragePoolDiskOrBuilder
      Returns:
      Whether the usedBytes field is set.
    • getUsedBytes

      public long getUsedBytes()
       Output only. [Output Only] Amount of disk space used.
       
      optional int64 used_bytes = 231640425;
      Specified by:
      getUsedBytes in interface StoragePoolDiskOrBuilder
      Returns:
      The usedBytes.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static StoragePoolDisk parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static StoragePoolDisk parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static StoragePoolDisk parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static StoragePoolDisk parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static StoragePoolDisk parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static StoragePoolDisk parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static StoragePoolDisk parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static StoragePoolDisk parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static StoragePoolDisk parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static StoragePoolDisk parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static StoragePoolDisk parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static StoragePoolDisk parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public StoragePoolDisk.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static StoragePoolDisk.Builder newBuilder()
    • newBuilder

      public static StoragePoolDisk.Builder newBuilder(StoragePoolDisk prototype)
    • toBuilder

      public StoragePoolDisk.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected StoragePoolDisk.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static StoragePoolDisk getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<StoragePoolDisk> parser()
    • getParserForType

      public com.google.protobuf.Parser<StoragePoolDisk> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public StoragePoolDisk getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder