Class StoragePoolDisk.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<StoragePoolDisk.Builder>
com.google.cloud.compute.v1.StoragePoolDisk.Builder
All Implemented Interfaces:
StoragePoolDiskOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
StoragePoolDisk

public static final class StoragePoolDisk.Builder extends com.google.protobuf.GeneratedMessage.Builder<StoragePoolDisk.Builder> implements StoragePoolDiskOrBuilder
 
Protobuf type google.cloud.compute.v1.StoragePoolDisk
  • 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.Builder<StoragePoolDisk.Builder>
    • clear

      public StoragePoolDisk.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<StoragePoolDisk.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<StoragePoolDisk.Builder>
    • getDefaultInstanceForType

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

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

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

      public StoragePoolDisk.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<StoragePoolDisk.Builder>
    • mergeFrom

      public StoragePoolDisk.Builder mergeFrom(StoragePoolDisk other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<StoragePoolDisk.Builder>
    • mergeFrom

      public StoragePoolDisk.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<StoragePoolDisk.Builder>
      Throws:
      IOException
    • 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.
    • setAttachedInstances

      public StoragePoolDisk.Builder setAttachedInstances(int index, String value)
       Output only. [Output Only] Instances this disk is attached to.
       
      repeated string attached_instances = 65255843;
      Parameters:
      index - The index to set the value at.
      value - The attachedInstances to set.
      Returns:
      This builder for chaining.
    • addAttachedInstances

      public StoragePoolDisk.Builder addAttachedInstances(String value)
       Output only. [Output Only] Instances this disk is attached to.
       
      repeated string attached_instances = 65255843;
      Parameters:
      value - The attachedInstances to add.
      Returns:
      This builder for chaining.
    • addAllAttachedInstances

      public StoragePoolDisk.Builder addAllAttachedInstances(Iterable<String> values)
       Output only. [Output Only] Instances this disk is attached to.
       
      repeated string attached_instances = 65255843;
      Parameters:
      values - The attachedInstances to add.
      Returns:
      This builder for chaining.
    • clearAttachedInstances

      public StoragePoolDisk.Builder clearAttachedInstances()
       Output only. [Output Only] Instances this disk is attached to.
       
      repeated string attached_instances = 65255843;
      Returns:
      This builder for chaining.
    • addAttachedInstancesBytes

      public StoragePoolDisk.Builder addAttachedInstancesBytes(com.google.protobuf.ByteString value)
       Output only. [Output Only] Instances this disk is attached to.
       
      repeated string attached_instances = 65255843;
      Parameters:
      value - The bytes of the attachedInstances to add.
      Returns:
      This builder for chaining.
    • 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.
    • setCreationTimestamp

      public StoragePoolDisk.Builder setCreationTimestamp(String value)
       Output only. [Output Only] Creation timestamp inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Parameters:
      value - The creationTimestamp to set.
      Returns:
      This builder for chaining.
    • clearCreationTimestamp

      public StoragePoolDisk.Builder clearCreationTimestamp()
       Output only. [Output Only] Creation timestamp inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Returns:
      This builder for chaining.
    • setCreationTimestampBytes

      public StoragePoolDisk.Builder setCreationTimestampBytes(com.google.protobuf.ByteString value)
       Output only. [Output Only] Creation timestamp inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Parameters:
      value - The bytes for creationTimestamp to set.
      Returns:
      This builder for chaining.
    • 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.
    • setDisk

      public StoragePoolDisk.Builder setDisk(String value)
       Output only. [Output Only] The URL of the disk.
       
      optional string disk = 3083677;
      Parameters:
      value - The disk to set.
      Returns:
      This builder for chaining.
    • clearDisk

      public StoragePoolDisk.Builder clearDisk()
       Output only. [Output Only] The URL of the disk.
       
      optional string disk = 3083677;
      Returns:
      This builder for chaining.
    • setDiskBytes

      public StoragePoolDisk.Builder setDiskBytes(com.google.protobuf.ByteString value)
       Output only. [Output Only] The URL of the disk.
       
      optional string disk = 3083677;
      Parameters:
      value - The bytes for disk to set.
      Returns:
      This builder for chaining.
    • 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.
    • setName

      public StoragePoolDisk.Builder setName(String value)
       Output only. [Output Only] The name of the disk.
       
      optional string name = 3373707;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public StoragePoolDisk.Builder clearName()
       Output only. [Output Only] The name of the disk.
       
      optional string name = 3373707;
      Returns:
      This builder for chaining.
    • setNameBytes

      public StoragePoolDisk.Builder setNameBytes(com.google.protobuf.ByteString value)
       Output only. [Output Only] The name of the disk.
       
      optional string name = 3373707;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • 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.
    • setProvisionedIops

      public StoragePoolDisk.Builder setProvisionedIops(long value)
       Output only. [Output Only] The number of IOPS provisioned for the disk.
       
      optional int64 provisioned_iops = 186769108;
      Parameters:
      value - The provisionedIops to set.
      Returns:
      This builder for chaining.
    • clearProvisionedIops

      public StoragePoolDisk.Builder clearProvisionedIops()
       Output only. [Output Only] The number of IOPS provisioned for the disk.
       
      optional int64 provisioned_iops = 186769108;
      Returns:
      This builder for chaining.
    • 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.
    • setProvisionedThroughput

      public StoragePoolDisk.Builder setProvisionedThroughput(long value)
       Output only. [Output Only] The throughput provisioned for the disk.
       
      optional int64 provisioned_throughput = 526524181;
      Parameters:
      value - The provisionedThroughput to set.
      Returns:
      This builder for chaining.
    • clearProvisionedThroughput

      public StoragePoolDisk.Builder clearProvisionedThroughput()
       Output only. [Output Only] The throughput provisioned for the disk.
       
      optional int64 provisioned_throughput = 526524181;
      Returns:
      This builder for chaining.
    • 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.
    • setResourcePolicies

      public StoragePoolDisk.Builder setResourcePolicies(int index, String value)
       Output only. [Output Only] Resource policies applied to disk for automatic snapshot
       creations.
       
      repeated string resource_policies = 22220385;
      Parameters:
      index - The index to set the value at.
      value - The resourcePolicies to set.
      Returns:
      This builder for chaining.
    • addResourcePolicies

      public StoragePoolDisk.Builder addResourcePolicies(String value)
       Output only. [Output Only] Resource policies applied to disk for automatic snapshot
       creations.
       
      repeated string resource_policies = 22220385;
      Parameters:
      value - The resourcePolicies to add.
      Returns:
      This builder for chaining.
    • addAllResourcePolicies

      public StoragePoolDisk.Builder addAllResourcePolicies(Iterable<String> values)
       Output only. [Output Only] Resource policies applied to disk for automatic snapshot
       creations.
       
      repeated string resource_policies = 22220385;
      Parameters:
      values - The resourcePolicies to add.
      Returns:
      This builder for chaining.
    • clearResourcePolicies

      public StoragePoolDisk.Builder clearResourcePolicies()
       Output only. [Output Only] Resource policies applied to disk for automatic snapshot
       creations.
       
      repeated string resource_policies = 22220385;
      Returns:
      This builder for chaining.
    • addResourcePoliciesBytes

      public StoragePoolDisk.Builder addResourcePoliciesBytes(com.google.protobuf.ByteString value)
       Output only. [Output Only] Resource policies applied to disk for automatic snapshot
       creations.
       
      repeated string resource_policies = 22220385;
      Parameters:
      value - The bytes of the resourcePolicies to add.
      Returns:
      This builder for chaining.
    • 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.
    • setSizeGb

      public StoragePoolDisk.Builder setSizeGb(long value)
       Output only. [Output Only] The disk size, in GB.
       
      optional int64 size_gb = 494929369;
      Parameters:
      value - The sizeGb to set.
      Returns:
      This builder for chaining.
    • clearSizeGb

      public StoragePoolDisk.Builder clearSizeGb()
       Output only. [Output Only] The disk size, in GB.
       
      optional int64 size_gb = 494929369;
      Returns:
      This builder for chaining.
    • 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.
    • setStatus

      public StoragePoolDisk.Builder setStatus(String value)
       Output only. [Output Only] The disk status.
       Check the Status enum for the list of possible values.
       
      optional string status = 181260274;
      Parameters:
      value - The status to set.
      Returns:
      This builder for chaining.
    • clearStatus

      public StoragePoolDisk.Builder clearStatus()
       Output only. [Output Only] The disk status.
       Check the Status enum for the list of possible values.
       
      optional string status = 181260274;
      Returns:
      This builder for chaining.
    • setStatusBytes

      public StoragePoolDisk.Builder setStatusBytes(com.google.protobuf.ByteString value)
       Output only. [Output Only] The disk status.
       Check the Status enum for the list of possible values.
       
      optional string status = 181260274;
      Parameters:
      value - The bytes for status to set.
      Returns:
      This builder for chaining.
    • 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.
    • setType

      public StoragePoolDisk.Builder setType(String value)
       Output only. [Output Only] The disk type.
       
      optional string type = 3575610;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public StoragePoolDisk.Builder clearType()
       Output only. [Output Only] The disk type.
       
      optional string type = 3575610;
      Returns:
      This builder for chaining.
    • setTypeBytes

      public StoragePoolDisk.Builder setTypeBytes(com.google.protobuf.ByteString value)
       Output only. [Output Only] The disk type.
       
      optional string type = 3575610;
      Parameters:
      value - The bytes for type to set.
      Returns:
      This builder for chaining.
    • 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.
    • setUsedBytes

      public StoragePoolDisk.Builder setUsedBytes(long value)
       Output only. [Output Only] Amount of disk space used.
       
      optional int64 used_bytes = 231640425;
      Parameters:
      value - The usedBytes to set.
      Returns:
      This builder for chaining.
    • clearUsedBytes

      public StoragePoolDisk.Builder clearUsedBytes()
       Output only. [Output Only] Amount of disk space used.
       
      optional int64 used_bytes = 231640425;
      Returns:
      This builder for chaining.