Package com.google.cloud.compute.v1
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 Summary
Modifier and TypeMethodDescriptionaddAllAttachedInstances(Iterable<String> values) Output only.addAllResourcePolicies(Iterable<String> values) Output only.addAttachedInstances(String value) Output only.addAttachedInstancesBytes(com.google.protobuf.ByteString value) Output only.addResourcePolicies(String value) Output only.addResourcePoliciesBytes(com.google.protobuf.ByteString value) Output only.build()clear()Output only.Output only.Output only.Output only.Output only.Output only.Output only.Output only.Output only.Output only.Output only.getAttachedInstances(int index) Output only.com.google.protobuf.ByteStringgetAttachedInstancesBytes(int index) Output only.intOutput only.com.google.protobuf.ProtocolStringListOutput only.Output only.com.google.protobuf.ByteStringOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetDisk()Output only.com.google.protobuf.ByteStringOutput only.getName()Output only.com.google.protobuf.ByteStringOutput only.longOutput only.longOutput only.getResourcePolicies(int index) Output only.com.google.protobuf.ByteStringgetResourcePoliciesBytes(int index) Output only.intOutput only.com.google.protobuf.ProtocolStringListOutput only.longOutput only.Output only.com.google.protobuf.ByteStringOutput only.getType()Output only.com.google.protobuf.ByteStringOutput only.longOutput only.booleanOutput only.booleanhasDisk()Output only.booleanhasName()Output only.booleanOutput only.booleanOutput only.booleanOutput only.booleanOutput only.booleanhasType()Output only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(StoragePoolDisk other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAttachedInstances(int index, String value) Output only.setCreationTimestamp(String value) Output only.setCreationTimestampBytes(com.google.protobuf.ByteString value) Output only.Output only.setDiskBytes(com.google.protobuf.ByteString value) Output only.Output only.setNameBytes(com.google.protobuf.ByteString value) Output only.setProvisionedIops(long value) Output only.setProvisionedThroughput(long value) Output only.setResourcePolicies(int index, String value) Output only.setSizeGb(long value) Output only.Output only.setStatusBytes(com.google.protobuf.ByteString value) Output only.Output only.setTypeBytes(com.google.protobuf.ByteString value) Output only.setUsedBytes(long value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<StoragePoolDisk.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<StoragePoolDisk.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<StoragePoolDisk.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<StoragePoolDisk.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getAttachedInstancesListin interfaceStoragePoolDiskOrBuilder- 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:
getAttachedInstancesCountin interfaceStoragePoolDiskOrBuilder- Returns:
- The count of attachedInstances.
-
getAttachedInstances
Output only. [Output Only] Instances this disk is attached to.
repeated string attached_instances = 65255843;- Specified by:
getAttachedInstancesin interfaceStoragePoolDiskOrBuilder- 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:
getAttachedInstancesBytesin interfaceStoragePoolDiskOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the attachedInstances at the given index.
-
setAttachedInstances
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
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
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
Output only. [Output Only] Instances this disk is attached to.
repeated string attached_instances = 65255843;- Returns:
- This builder for chaining.
-
addAttachedInstancesBytes
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:
hasCreationTimestampin interfaceStoragePoolDiskOrBuilder- Returns:
- Whether the creationTimestamp field is set.
-
getCreationTimestamp
Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
getCreationTimestampin interfaceStoragePoolDiskOrBuilder- 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:
getCreationTimestampBytesin interfaceStoragePoolDiskOrBuilder- Returns:
- The bytes for creationTimestamp.
-
setCreationTimestamp
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
Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Returns:
- This builder for chaining.
-
setCreationTimestampBytes
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:
hasDiskin interfaceStoragePoolDiskOrBuilder- Returns:
- Whether the disk field is set.
-
getDisk
Output only. [Output Only] The URL of the disk.
optional string disk = 3083677;- Specified by:
getDiskin interfaceStoragePoolDiskOrBuilder- 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:
getDiskBytesin interfaceStoragePoolDiskOrBuilder- Returns:
- The bytes for disk.
-
setDisk
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
Output only. [Output Only] The URL of the disk.
optional string disk = 3083677;- Returns:
- This builder for chaining.
-
setDiskBytes
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:
hasNamein interfaceStoragePoolDiskOrBuilder- Returns:
- Whether the name field is set.
-
getName
Output only. [Output Only] The name of the disk.
optional string name = 3373707;- Specified by:
getNamein interfaceStoragePoolDiskOrBuilder- 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:
getNameBytesin interfaceStoragePoolDiskOrBuilder- Returns:
- The bytes for name.
-
setName
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
Output only. [Output Only] The name of the disk.
optional string name = 3373707;- Returns:
- This builder for chaining.
-
setNameBytes
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:
hasProvisionedIopsin interfaceStoragePoolDiskOrBuilder- 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:
getProvisionedIopsin interfaceStoragePoolDiskOrBuilder- Returns:
- The provisionedIops.
-
setProvisionedIops
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
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:
hasProvisionedThroughputin interfaceStoragePoolDiskOrBuilder- 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:
getProvisionedThroughputin interfaceStoragePoolDiskOrBuilder- Returns:
- The provisionedThroughput.
-
setProvisionedThroughput
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
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:
getResourcePoliciesListin interfaceStoragePoolDiskOrBuilder- 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:
getResourcePoliciesCountin interfaceStoragePoolDiskOrBuilder- Returns:
- The count of resourcePolicies.
-
getResourcePolicies
Output only. [Output Only] Resource policies applied to disk for automatic snapshot creations.
repeated string resource_policies = 22220385;- Specified by:
getResourcePoliciesin interfaceStoragePoolDiskOrBuilder- 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:
getResourcePoliciesBytesin interfaceStoragePoolDiskOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the resourcePolicies at the given index.
-
setResourcePolicies
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
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
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
Output only. [Output Only] Resource policies applied to disk for automatic snapshot creations.
repeated string resource_policies = 22220385;- Returns:
- This builder for chaining.
-
addResourcePoliciesBytes
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:
hasSizeGbin interfaceStoragePoolDiskOrBuilder- 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:
getSizeGbin interfaceStoragePoolDiskOrBuilder- Returns:
- The sizeGb.
-
setSizeGb
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
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:
hasStatusin interfaceStoragePoolDiskOrBuilder- Returns:
- Whether the status field is set.
-
getStatus
Output only. [Output Only] The disk status. Check the Status enum for the list of possible values.
optional string status = 181260274;- Specified by:
getStatusin interfaceStoragePoolDiskOrBuilder- 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:
getStatusBytesin interfaceStoragePoolDiskOrBuilder- Returns:
- The bytes for status.
-
setStatus
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
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
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:
hasTypein interfaceStoragePoolDiskOrBuilder- Returns:
- Whether the type field is set.
-
getType
Output only. [Output Only] The disk type.
optional string type = 3575610;- Specified by:
getTypein interfaceStoragePoolDiskOrBuilder- Returns:
- The type.
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()Output only. [Output Only] The disk type.
optional string type = 3575610;- Specified by:
getTypeBytesin interfaceStoragePoolDiskOrBuilder- Returns:
- The bytes for type.
-
setType
Output only. [Output Only] The disk type.
optional string type = 3575610;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
Output only. [Output Only] The disk type.
optional string type = 3575610;- Returns:
- This builder for chaining.
-
setTypeBytes
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:
hasUsedBytesin interfaceStoragePoolDiskOrBuilder- 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:
getUsedBytesin interfaceStoragePoolDiskOrBuilder- Returns:
- The usedBytes.
-
setUsedBytes
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
Output only. [Output Only] Amount of disk space used.
optional int64 used_bytes = 231640425;- Returns:
- This builder for chaining.
-