Package com.google.cloud.compute.v1
Class SavedAttachedDisk.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<SavedAttachedDisk.Builder>
-
- com.google.cloud.compute.v1.SavedAttachedDisk.Builder
-
- All Implemented Interfaces:
SavedAttachedDiskOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- SavedAttachedDisk
public static final class SavedAttachedDisk.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SavedAttachedDisk.Builder> implements SavedAttachedDiskOrBuilder
DEPRECATED: Please use compute#savedDisk instead. An instance-attached disk resource.
Protobuf typegoogle.cloud.compute.v1.SavedAttachedDisk
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SavedAttachedDisk.Builder
addAllGuestOsFeatures(Iterable<? extends GuestOsFeature> values)
A list of features to enable on the guest operating system.SavedAttachedDisk.Builder
addAllLicenses(Iterable<String> values)
[Output Only] Any valid publicly visible licenses.SavedAttachedDisk.Builder
addGuestOsFeatures(int index, GuestOsFeature value)
A list of features to enable on the guest operating system.SavedAttachedDisk.Builder
addGuestOsFeatures(int index, GuestOsFeature.Builder builderForValue)
A list of features to enable on the guest operating system.SavedAttachedDisk.Builder
addGuestOsFeatures(GuestOsFeature value)
A list of features to enable on the guest operating system.SavedAttachedDisk.Builder
addGuestOsFeatures(GuestOsFeature.Builder builderForValue)
A list of features to enable on the guest operating system.GuestOsFeature.Builder
addGuestOsFeaturesBuilder()
A list of features to enable on the guest operating system.GuestOsFeature.Builder
addGuestOsFeaturesBuilder(int index)
A list of features to enable on the guest operating system.SavedAttachedDisk.Builder
addLicenses(String value)
[Output Only] Any valid publicly visible licenses.SavedAttachedDisk.Builder
addLicensesBytes(com.google.protobuf.ByteString value)
[Output Only] Any valid publicly visible licenses.SavedAttachedDisk.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
SavedAttachedDisk
build()
SavedAttachedDisk
buildPartial()
SavedAttachedDisk.Builder
clear()
SavedAttachedDisk.Builder
clearAutoDelete()
Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).SavedAttachedDisk.Builder
clearBoot()
Indicates that this is a boot disk.SavedAttachedDisk.Builder
clearDeviceName()
Specifies the name of the disk attached to the source instance.SavedAttachedDisk.Builder
clearDiskEncryptionKey()
The encryption key for the disk.SavedAttachedDisk.Builder
clearDiskSizeGb()
The size of the disk in base-2 GB.SavedAttachedDisk.Builder
clearDiskType()
[Output Only] URL of the disk type resource.SavedAttachedDisk.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
SavedAttachedDisk.Builder
clearGuestOsFeatures()
A list of features to enable on the guest operating system.SavedAttachedDisk.Builder
clearIndex()
Specifies zero-based index of the disk that is attached to the source instance.SavedAttachedDisk.Builder
clearInterface()
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME.SavedAttachedDisk.Builder
clearKind()
[Output Only] Type of the resource.SavedAttachedDisk.Builder
clearLicenses()
[Output Only] Any valid publicly visible licenses.SavedAttachedDisk.Builder
clearMode()
The mode in which this disk is attached to the source instance, either READ_WRITE or READ_ONLY.SavedAttachedDisk.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
SavedAttachedDisk.Builder
clearSource()
Specifies a URL of the disk attached to the source instance.SavedAttachedDisk.Builder
clearStorageBytes()
[Output Only] A size of the storage used by the disk's snapshot by this machine image.SavedAttachedDisk.Builder
clearStorageBytesStatus()
[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation.SavedAttachedDisk.Builder
clearType()
Specifies the type of the attached disk, either SCRATCH or PERSISTENT.SavedAttachedDisk.Builder
clone()
boolean
getAutoDelete()
Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).boolean
getBoot()
Indicates that this is a boot disk.SavedAttachedDisk
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getDeviceName()
Specifies the name of the disk attached to the source instance.com.google.protobuf.ByteString
getDeviceNameBytes()
Specifies the name of the disk attached to the source instance.CustomerEncryptionKey
getDiskEncryptionKey()
The encryption key for the disk.CustomerEncryptionKey.Builder
getDiskEncryptionKeyBuilder()
The encryption key for the disk.CustomerEncryptionKeyOrBuilder
getDiskEncryptionKeyOrBuilder()
The encryption key for the disk.long
getDiskSizeGb()
The size of the disk in base-2 GB.String
getDiskType()
[Output Only] URL of the disk type resource.com.google.protobuf.ByteString
getDiskTypeBytes()
[Output Only] URL of the disk type resource.GuestOsFeature
getGuestOsFeatures(int index)
A list of features to enable on the guest operating system.GuestOsFeature.Builder
getGuestOsFeaturesBuilder(int index)
A list of features to enable on the guest operating system.List<GuestOsFeature.Builder>
getGuestOsFeaturesBuilderList()
A list of features to enable on the guest operating system.int
getGuestOsFeaturesCount()
A list of features to enable on the guest operating system.List<GuestOsFeature>
getGuestOsFeaturesList()
A list of features to enable on the guest operating system.GuestOsFeatureOrBuilder
getGuestOsFeaturesOrBuilder(int index)
A list of features to enable on the guest operating system.List<? extends GuestOsFeatureOrBuilder>
getGuestOsFeaturesOrBuilderList()
A list of features to enable on the guest operating system.int
getIndex()
Specifies zero-based index of the disk that is attached to the source instance.String
getInterface()
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME.com.google.protobuf.ByteString
getInterfaceBytes()
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME.String
getKind()
[Output Only] Type of the resource.com.google.protobuf.ByteString
getKindBytes()
[Output Only] Type of the resource.String
getLicenses(int index)
[Output Only] Any valid publicly visible licenses.com.google.protobuf.ByteString
getLicensesBytes(int index)
[Output Only] Any valid publicly visible licenses.int
getLicensesCount()
[Output Only] Any valid publicly visible licenses.com.google.protobuf.ProtocolStringList
getLicensesList()
[Output Only] Any valid publicly visible licenses.String
getMode()
The mode in which this disk is attached to the source instance, either READ_WRITE or READ_ONLY.com.google.protobuf.ByteString
getModeBytes()
The mode in which this disk is attached to the source instance, either READ_WRITE or READ_ONLY.String
getSource()
Specifies a URL of the disk attached to the source instance.com.google.protobuf.ByteString
getSourceBytes()
Specifies a URL of the disk attached to the source instance.long
getStorageBytes()
[Output Only] A size of the storage used by the disk's snapshot by this machine image.String
getStorageBytesStatus()
[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation.com.google.protobuf.ByteString
getStorageBytesStatusBytes()
[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation.String
getType()
Specifies the type of the attached disk, either SCRATCH or PERSISTENT.com.google.protobuf.ByteString
getTypeBytes()
Specifies the type of the attached disk, either SCRATCH or PERSISTENT.boolean
hasAutoDelete()
Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).boolean
hasBoot()
Indicates that this is a boot disk.boolean
hasDeviceName()
Specifies the name of the disk attached to the source instance.boolean
hasDiskEncryptionKey()
The encryption key for the disk.boolean
hasDiskSizeGb()
The size of the disk in base-2 GB.boolean
hasDiskType()
[Output Only] URL of the disk type resource.boolean
hasIndex()
Specifies zero-based index of the disk that is attached to the source instance.boolean
hasInterface()
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME.boolean
hasKind()
[Output Only] Type of the resource.boolean
hasMode()
The mode in which this disk is attached to the source instance, either READ_WRITE or READ_ONLY.boolean
hasSource()
Specifies a URL of the disk attached to the source instance.boolean
hasStorageBytes()
[Output Only] A size of the storage used by the disk's snapshot by this machine image.boolean
hasStorageBytesStatus()
[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation.boolean
hasType()
Specifies the type of the attached disk, either SCRATCH or PERSISTENT.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
SavedAttachedDisk.Builder
mergeDiskEncryptionKey(CustomerEncryptionKey value)
The encryption key for the disk.SavedAttachedDisk.Builder
mergeFrom(SavedAttachedDisk other)
SavedAttachedDisk.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
SavedAttachedDisk.Builder
mergeFrom(com.google.protobuf.Message other)
SavedAttachedDisk.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
SavedAttachedDisk.Builder
removeGuestOsFeatures(int index)
A list of features to enable on the guest operating system.SavedAttachedDisk.Builder
setAutoDelete(boolean value)
Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).SavedAttachedDisk.Builder
setBoot(boolean value)
Indicates that this is a boot disk.SavedAttachedDisk.Builder
setDeviceName(String value)
Specifies the name of the disk attached to the source instance.SavedAttachedDisk.Builder
setDeviceNameBytes(com.google.protobuf.ByteString value)
Specifies the name of the disk attached to the source instance.SavedAttachedDisk.Builder
setDiskEncryptionKey(CustomerEncryptionKey value)
The encryption key for the disk.SavedAttachedDisk.Builder
setDiskEncryptionKey(CustomerEncryptionKey.Builder builderForValue)
The encryption key for the disk.SavedAttachedDisk.Builder
setDiskSizeGb(long value)
The size of the disk in base-2 GB.SavedAttachedDisk.Builder
setDiskType(String value)
[Output Only] URL of the disk type resource.SavedAttachedDisk.Builder
setDiskTypeBytes(com.google.protobuf.ByteString value)
[Output Only] URL of the disk type resource.SavedAttachedDisk.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
SavedAttachedDisk.Builder
setGuestOsFeatures(int index, GuestOsFeature value)
A list of features to enable on the guest operating system.SavedAttachedDisk.Builder
setGuestOsFeatures(int index, GuestOsFeature.Builder builderForValue)
A list of features to enable on the guest operating system.SavedAttachedDisk.Builder
setIndex(int value)
Specifies zero-based index of the disk that is attached to the source instance.SavedAttachedDisk.Builder
setInterface(String value)
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME.SavedAttachedDisk.Builder
setInterfaceBytes(com.google.protobuf.ByteString value)
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME.SavedAttachedDisk.Builder
setKind(String value)
[Output Only] Type of the resource.SavedAttachedDisk.Builder
setKindBytes(com.google.protobuf.ByteString value)
[Output Only] Type of the resource.SavedAttachedDisk.Builder
setLicenses(int index, String value)
[Output Only] Any valid publicly visible licenses.SavedAttachedDisk.Builder
setMode(String value)
The mode in which this disk is attached to the source instance, either READ_WRITE or READ_ONLY.SavedAttachedDisk.Builder
setModeBytes(com.google.protobuf.ByteString value)
The mode in which this disk is attached to the source instance, either READ_WRITE or READ_ONLY.SavedAttachedDisk.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
SavedAttachedDisk.Builder
setSource(String value)
Specifies a URL of the disk attached to the source instance.SavedAttachedDisk.Builder
setSourceBytes(com.google.protobuf.ByteString value)
Specifies a URL of the disk attached to the source instance.SavedAttachedDisk.Builder
setStorageBytes(long value)
[Output Only] A size of the storage used by the disk's snapshot by this machine image.SavedAttachedDisk.Builder
setStorageBytesStatus(String value)
[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation.SavedAttachedDisk.Builder
setStorageBytesStatusBytes(com.google.protobuf.ByteString value)
[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation.SavedAttachedDisk.Builder
setType(String value)
Specifies the type of the attached disk, either SCRATCH or PERSISTENT.SavedAttachedDisk.Builder
setTypeBytes(com.google.protobuf.ByteString value)
Specifies the type of the attached disk, either SCRATCH or PERSISTENT.SavedAttachedDisk.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<SavedAttachedDisk.Builder>
-
clear
public SavedAttachedDisk.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<SavedAttachedDisk.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<SavedAttachedDisk.Builder>
-
getDefaultInstanceForType
public SavedAttachedDisk getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public SavedAttachedDisk build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SavedAttachedDisk buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SavedAttachedDisk.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<SavedAttachedDisk.Builder>
-
setField
public SavedAttachedDisk.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SavedAttachedDisk.Builder>
-
clearField
public SavedAttachedDisk.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SavedAttachedDisk.Builder>
-
clearOneof
public SavedAttachedDisk.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<SavedAttachedDisk.Builder>
-
setRepeatedField
public SavedAttachedDisk.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SavedAttachedDisk.Builder>
-
addRepeatedField
public SavedAttachedDisk.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SavedAttachedDisk.Builder>
-
mergeFrom
public SavedAttachedDisk.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SavedAttachedDisk.Builder>
-
mergeFrom
public SavedAttachedDisk.Builder mergeFrom(SavedAttachedDisk other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<SavedAttachedDisk.Builder>
-
mergeFrom
public SavedAttachedDisk.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SavedAttachedDisk.Builder>
- Throws:
IOException
-
hasAutoDelete
public boolean hasAutoDelete()
Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
optional bool auto_delete = 464761403;
- Specified by:
hasAutoDelete
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- Whether the autoDelete field is set.
-
getAutoDelete
public boolean getAutoDelete()
Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
optional bool auto_delete = 464761403;
- Specified by:
getAutoDelete
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- The autoDelete.
-
setAutoDelete
public SavedAttachedDisk.Builder setAutoDelete(boolean value)
Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
optional bool auto_delete = 464761403;
- Parameters:
value
- The autoDelete to set.- Returns:
- This builder for chaining.
-
clearAutoDelete
public SavedAttachedDisk.Builder clearAutoDelete()
Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
optional bool auto_delete = 464761403;
- Returns:
- This builder for chaining.
-
hasBoot
public boolean hasBoot()
Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
optional bool boot = 3029746;
- Specified by:
hasBoot
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- Whether the boot field is set.
-
getBoot
public boolean getBoot()
Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
optional bool boot = 3029746;
- Specified by:
getBoot
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- The boot.
-
setBoot
public SavedAttachedDisk.Builder setBoot(boolean value)
Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
optional bool boot = 3029746;
- Parameters:
value
- The boot to set.- Returns:
- This builder for chaining.
-
clearBoot
public SavedAttachedDisk.Builder clearBoot()
Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
optional bool boot = 3029746;
- Returns:
- This builder for chaining.
-
hasDeviceName
public boolean hasDeviceName()
Specifies the name of the disk attached to the source instance.
optional string device_name = 67541716;
- Specified by:
hasDeviceName
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- Whether the deviceName field is set.
-
getDeviceName
public String getDeviceName()
Specifies the name of the disk attached to the source instance.
optional string device_name = 67541716;
- Specified by:
getDeviceName
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- The deviceName.
-
getDeviceNameBytes
public com.google.protobuf.ByteString getDeviceNameBytes()
Specifies the name of the disk attached to the source instance.
optional string device_name = 67541716;
- Specified by:
getDeviceNameBytes
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- The bytes for deviceName.
-
setDeviceName
public SavedAttachedDisk.Builder setDeviceName(String value)
Specifies the name of the disk attached to the source instance.
optional string device_name = 67541716;
- Parameters:
value
- The deviceName to set.- Returns:
- This builder for chaining.
-
clearDeviceName
public SavedAttachedDisk.Builder clearDeviceName()
Specifies the name of the disk attached to the source instance.
optional string device_name = 67541716;
- Returns:
- This builder for chaining.
-
setDeviceNameBytes
public SavedAttachedDisk.Builder setDeviceNameBytes(com.google.protobuf.ByteString value)
Specifies the name of the disk attached to the source instance.
optional string device_name = 67541716;
- Parameters:
value
- The bytes for deviceName to set.- Returns:
- This builder for chaining.
-
hasDiskEncryptionKey
public boolean hasDiskEncryptionKey()
The encryption key for the disk.
optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;
- Specified by:
hasDiskEncryptionKey
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- Whether the diskEncryptionKey field is set.
-
getDiskEncryptionKey
public CustomerEncryptionKey getDiskEncryptionKey()
The encryption key for the disk.
optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;
- Specified by:
getDiskEncryptionKey
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- The diskEncryptionKey.
-
setDiskEncryptionKey
public SavedAttachedDisk.Builder setDiskEncryptionKey(CustomerEncryptionKey value)
The encryption key for the disk.
optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;
-
setDiskEncryptionKey
public SavedAttachedDisk.Builder setDiskEncryptionKey(CustomerEncryptionKey.Builder builderForValue)
The encryption key for the disk.
optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;
-
mergeDiskEncryptionKey
public SavedAttachedDisk.Builder mergeDiskEncryptionKey(CustomerEncryptionKey value)
The encryption key for the disk.
optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;
-
clearDiskEncryptionKey
public SavedAttachedDisk.Builder clearDiskEncryptionKey()
The encryption key for the disk.
optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;
-
getDiskEncryptionKeyBuilder
public CustomerEncryptionKey.Builder getDiskEncryptionKeyBuilder()
The encryption key for the disk.
optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;
-
getDiskEncryptionKeyOrBuilder
public CustomerEncryptionKeyOrBuilder getDiskEncryptionKeyOrBuilder()
The encryption key for the disk.
optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;
- Specified by:
getDiskEncryptionKeyOrBuilder
in interfaceSavedAttachedDiskOrBuilder
-
hasDiskSizeGb
public boolean hasDiskSizeGb()
The size of the disk in base-2 GB.
optional int64 disk_size_gb = 316263735;
- Specified by:
hasDiskSizeGb
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- Whether the diskSizeGb field is set.
-
getDiskSizeGb
public long getDiskSizeGb()
The size of the disk in base-2 GB.
optional int64 disk_size_gb = 316263735;
- Specified by:
getDiskSizeGb
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- The diskSizeGb.
-
setDiskSizeGb
public SavedAttachedDisk.Builder setDiskSizeGb(long value)
The size of the disk in base-2 GB.
optional int64 disk_size_gb = 316263735;
- Parameters:
value
- The diskSizeGb to set.- Returns:
- This builder for chaining.
-
clearDiskSizeGb
public SavedAttachedDisk.Builder clearDiskSizeGb()
The size of the disk in base-2 GB.
optional int64 disk_size_gb = 316263735;
- Returns:
- This builder for chaining.
-
hasDiskType
public boolean hasDiskType()
[Output Only] URL of the disk type resource. For example: projects/project /zones/zone/diskTypes/pd-standard or pd-ssd
optional string disk_type = 93009052;
- Specified by:
hasDiskType
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- Whether the diskType field is set.
-
getDiskType
public String getDiskType()
[Output Only] URL of the disk type resource. For example: projects/project /zones/zone/diskTypes/pd-standard or pd-ssd
optional string disk_type = 93009052;
- Specified by:
getDiskType
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- The diskType.
-
getDiskTypeBytes
public com.google.protobuf.ByteString getDiskTypeBytes()
[Output Only] URL of the disk type resource. For example: projects/project /zones/zone/diskTypes/pd-standard or pd-ssd
optional string disk_type = 93009052;
- Specified by:
getDiskTypeBytes
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- The bytes for diskType.
-
setDiskType
public SavedAttachedDisk.Builder setDiskType(String value)
[Output Only] URL of the disk type resource. For example: projects/project /zones/zone/diskTypes/pd-standard or pd-ssd
optional string disk_type = 93009052;
- Parameters:
value
- The diskType to set.- Returns:
- This builder for chaining.
-
clearDiskType
public SavedAttachedDisk.Builder clearDiskType()
[Output Only] URL of the disk type resource. For example: projects/project /zones/zone/diskTypes/pd-standard or pd-ssd
optional string disk_type = 93009052;
- Returns:
- This builder for chaining.
-
setDiskTypeBytes
public SavedAttachedDisk.Builder setDiskTypeBytes(com.google.protobuf.ByteString value)
[Output Only] URL of the disk type resource. For example: projects/project /zones/zone/diskTypes/pd-standard or pd-ssd
optional string disk_type = 93009052;
- Parameters:
value
- The bytes for diskType to set.- Returns:
- This builder for chaining.
-
getGuestOsFeaturesList
public List<GuestOsFeature> getGuestOsFeaturesList()
A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;
- Specified by:
getGuestOsFeaturesList
in interfaceSavedAttachedDiskOrBuilder
-
getGuestOsFeaturesCount
public int getGuestOsFeaturesCount()
A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;
- Specified by:
getGuestOsFeaturesCount
in interfaceSavedAttachedDiskOrBuilder
-
getGuestOsFeatures
public GuestOsFeature getGuestOsFeatures(int index)
A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;
- Specified by:
getGuestOsFeatures
in interfaceSavedAttachedDiskOrBuilder
-
setGuestOsFeatures
public SavedAttachedDisk.Builder setGuestOsFeatures(int index, GuestOsFeature value)
A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;
-
setGuestOsFeatures
public SavedAttachedDisk.Builder setGuestOsFeatures(int index, GuestOsFeature.Builder builderForValue)
A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;
-
addGuestOsFeatures
public SavedAttachedDisk.Builder addGuestOsFeatures(GuestOsFeature value)
A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;
-
addGuestOsFeatures
public SavedAttachedDisk.Builder addGuestOsFeatures(int index, GuestOsFeature value)
A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;
-
addGuestOsFeatures
public SavedAttachedDisk.Builder addGuestOsFeatures(GuestOsFeature.Builder builderForValue)
A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;
-
addGuestOsFeatures
public SavedAttachedDisk.Builder addGuestOsFeatures(int index, GuestOsFeature.Builder builderForValue)
A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;
-
addAllGuestOsFeatures
public SavedAttachedDisk.Builder addAllGuestOsFeatures(Iterable<? extends GuestOsFeature> values)
A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;
-
clearGuestOsFeatures
public SavedAttachedDisk.Builder clearGuestOsFeatures()
A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;
-
removeGuestOsFeatures
public SavedAttachedDisk.Builder removeGuestOsFeatures(int index)
A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;
-
getGuestOsFeaturesBuilder
public GuestOsFeature.Builder getGuestOsFeaturesBuilder(int index)
A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;
-
getGuestOsFeaturesOrBuilder
public GuestOsFeatureOrBuilder getGuestOsFeaturesOrBuilder(int index)
A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;
- Specified by:
getGuestOsFeaturesOrBuilder
in interfaceSavedAttachedDiskOrBuilder
-
getGuestOsFeaturesOrBuilderList
public List<? extends GuestOsFeatureOrBuilder> getGuestOsFeaturesOrBuilderList()
A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;
- Specified by:
getGuestOsFeaturesOrBuilderList
in interfaceSavedAttachedDiskOrBuilder
-
addGuestOsFeaturesBuilder
public GuestOsFeature.Builder addGuestOsFeaturesBuilder()
A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;
-
addGuestOsFeaturesBuilder
public GuestOsFeature.Builder addGuestOsFeaturesBuilder(int index)
A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;
-
getGuestOsFeaturesBuilderList
public List<GuestOsFeature.Builder> getGuestOsFeaturesBuilderList()
A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;
-
hasIndex
public boolean hasIndex()
Specifies zero-based index of the disk that is attached to the source instance.
optional int32 index = 100346066;
- Specified by:
hasIndex
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- Whether the index field is set.
-
getIndex
public int getIndex()
Specifies zero-based index of the disk that is attached to the source instance.
optional int32 index = 100346066;
- Specified by:
getIndex
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- The index.
-
setIndex
public SavedAttachedDisk.Builder setIndex(int value)
Specifies zero-based index of the disk that is attached to the source instance.
optional int32 index = 100346066;
- Parameters:
value
- The index to set.- Returns:
- This builder for chaining.
-
clearIndex
public SavedAttachedDisk.Builder clearIndex()
Specifies zero-based index of the disk that is attached to the source instance.
optional int32 index = 100346066;
- Returns:
- This builder for chaining.
-
hasInterface
public boolean hasInterface()
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. Check the Interface enum for the list of possible values.
optional string interface = 502623545;
- Specified by:
hasInterface
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- Whether the interface field is set.
-
getInterface
public String getInterface()
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. Check the Interface enum for the list of possible values.
optional string interface = 502623545;
- Specified by:
getInterface
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- The interface.
-
getInterfaceBytes
public com.google.protobuf.ByteString getInterfaceBytes()
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. Check the Interface enum for the list of possible values.
optional string interface = 502623545;
- Specified by:
getInterfaceBytes
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- The bytes for interface.
-
setInterface
public SavedAttachedDisk.Builder setInterface(String value)
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. Check the Interface enum for the list of possible values.
optional string interface = 502623545;
- Parameters:
value
- The interface to set.- Returns:
- This builder for chaining.
-
clearInterface
public SavedAttachedDisk.Builder clearInterface()
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. Check the Interface enum for the list of possible values.
optional string interface = 502623545;
- Returns:
- This builder for chaining.
-
setInterfaceBytes
public SavedAttachedDisk.Builder setInterfaceBytes(com.google.protobuf.ByteString value)
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. Check the Interface enum for the list of possible values.
optional string interface = 502623545;
- Parameters:
value
- The bytes for interface to set.- Returns:
- This builder for chaining.
-
hasKind
public boolean hasKind()
[Output Only] Type of the resource. Always compute#attachedDisk for attached disks.
optional string kind = 3292052;
- Specified by:
hasKind
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- Whether the kind field is set.
-
getKind
public String getKind()
[Output Only] Type of the resource. Always compute#attachedDisk for attached disks.
optional string kind = 3292052;
- Specified by:
getKind
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- The kind.
-
getKindBytes
public com.google.protobuf.ByteString getKindBytes()
[Output Only] Type of the resource. Always compute#attachedDisk for attached disks.
optional string kind = 3292052;
- Specified by:
getKindBytes
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- The bytes for kind.
-
setKind
public SavedAttachedDisk.Builder setKind(String value)
[Output Only] Type of the resource. Always compute#attachedDisk for attached disks.
optional string kind = 3292052;
- Parameters:
value
- The kind to set.- Returns:
- This builder for chaining.
-
clearKind
public SavedAttachedDisk.Builder clearKind()
[Output Only] Type of the resource. Always compute#attachedDisk for attached disks.
optional string kind = 3292052;
- Returns:
- This builder for chaining.
-
setKindBytes
public SavedAttachedDisk.Builder setKindBytes(com.google.protobuf.ByteString value)
[Output Only] Type of the resource. Always compute#attachedDisk for attached disks.
optional string kind = 3292052;
- Parameters:
value
- The bytes for kind to set.- Returns:
- This builder for chaining.
-
getLicensesList
public com.google.protobuf.ProtocolStringList getLicensesList()
[Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;
- Specified by:
getLicensesList
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- A list containing the licenses.
-
getLicensesCount
public int getLicensesCount()
[Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;
- Specified by:
getLicensesCount
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- The count of licenses.
-
getLicenses
public String getLicenses(int index)
[Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;
- Specified by:
getLicenses
in interfaceSavedAttachedDiskOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The licenses at the given index.
-
getLicensesBytes
public com.google.protobuf.ByteString getLicensesBytes(int index)
[Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;
- Specified by:
getLicensesBytes
in interfaceSavedAttachedDiskOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the licenses at the given index.
-
setLicenses
public SavedAttachedDisk.Builder setLicenses(int index, String value)
[Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;
- Parameters:
index
- The index to set the value at.value
- The licenses to set.- Returns:
- This builder for chaining.
-
addLicenses
public SavedAttachedDisk.Builder addLicenses(String value)
[Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;
- Parameters:
value
- The licenses to add.- Returns:
- This builder for chaining.
-
addAllLicenses
public SavedAttachedDisk.Builder addAllLicenses(Iterable<String> values)
[Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;
- Parameters:
values
- The licenses to add.- Returns:
- This builder for chaining.
-
clearLicenses
public SavedAttachedDisk.Builder clearLicenses()
[Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;
- Returns:
- This builder for chaining.
-
addLicensesBytes
public SavedAttachedDisk.Builder addLicensesBytes(com.google.protobuf.ByteString value)
[Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;
- Parameters:
value
- The bytes of the licenses to add.- Returns:
- This builder for chaining.
-
hasMode
public boolean hasMode()
The mode in which this disk is attached to the source instance, either READ_WRITE or READ_ONLY. Check the Mode enum for the list of possible values.
optional string mode = 3357091;
- Specified by:
hasMode
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- Whether the mode field is set.
-
getMode
public String getMode()
The mode in which this disk is attached to the source instance, either READ_WRITE or READ_ONLY. Check the Mode enum for the list of possible values.
optional string mode = 3357091;
- Specified by:
getMode
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- The mode.
-
getModeBytes
public com.google.protobuf.ByteString getModeBytes()
The mode in which this disk is attached to the source instance, either READ_WRITE or READ_ONLY. Check the Mode enum for the list of possible values.
optional string mode = 3357091;
- Specified by:
getModeBytes
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- The bytes for mode.
-
setMode
public SavedAttachedDisk.Builder setMode(String value)
The mode in which this disk is attached to the source instance, either READ_WRITE or READ_ONLY. Check the Mode enum for the list of possible values.
optional string mode = 3357091;
- Parameters:
value
- The mode to set.- Returns:
- This builder for chaining.
-
clearMode
public SavedAttachedDisk.Builder clearMode()
The mode in which this disk is attached to the source instance, either READ_WRITE or READ_ONLY. Check the Mode enum for the list of possible values.
optional string mode = 3357091;
- Returns:
- This builder for chaining.
-
setModeBytes
public SavedAttachedDisk.Builder setModeBytes(com.google.protobuf.ByteString value)
The mode in which this disk is attached to the source instance, either READ_WRITE or READ_ONLY. Check the Mode enum for the list of possible values.
optional string mode = 3357091;
- Parameters:
value
- The bytes for mode to set.- Returns:
- This builder for chaining.
-
hasSource
public boolean hasSource()
Specifies a URL of the disk attached to the source instance.
optional string source = 177235995;
- Specified by:
hasSource
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- Whether the source field is set.
-
getSource
public String getSource()
Specifies a URL of the disk attached to the source instance.
optional string source = 177235995;
- Specified by:
getSource
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- The source.
-
getSourceBytes
public com.google.protobuf.ByteString getSourceBytes()
Specifies a URL of the disk attached to the source instance.
optional string source = 177235995;
- Specified by:
getSourceBytes
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- The bytes for source.
-
setSource
public SavedAttachedDisk.Builder setSource(String value)
Specifies a URL of the disk attached to the source instance.
optional string source = 177235995;
- Parameters:
value
- The source to set.- Returns:
- This builder for chaining.
-
clearSource
public SavedAttachedDisk.Builder clearSource()
Specifies a URL of the disk attached to the source instance.
optional string source = 177235995;
- Returns:
- This builder for chaining.
-
setSourceBytes
public SavedAttachedDisk.Builder setSourceBytes(com.google.protobuf.ByteString value)
Specifies a URL of the disk attached to the source instance.
optional string source = 177235995;
- Parameters:
value
- The bytes for source to set.- Returns:
- This builder for chaining.
-
hasStorageBytes
public boolean hasStorageBytes()
[Output Only] A size of the storage used by the disk's snapshot by this machine image.
optional int64 storage_bytes = 424631719;
- Specified by:
hasStorageBytes
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- Whether the storageBytes field is set.
-
getStorageBytes
public long getStorageBytes()
[Output Only] A size of the storage used by the disk's snapshot by this machine image.
optional int64 storage_bytes = 424631719;
- Specified by:
getStorageBytes
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- The storageBytes.
-
setStorageBytes
public SavedAttachedDisk.Builder setStorageBytes(long value)
[Output Only] A size of the storage used by the disk's snapshot by this machine image.
optional int64 storage_bytes = 424631719;
- Parameters:
value
- The storageBytes to set.- Returns:
- This builder for chaining.
-
clearStorageBytes
public SavedAttachedDisk.Builder clearStorageBytes()
[Output Only] A size of the storage used by the disk's snapshot by this machine image.
optional int64 storage_bytes = 424631719;
- Returns:
- This builder for chaining.
-
hasStorageBytesStatus
public boolean hasStorageBytesStatus()
[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date. Check the StorageBytesStatus enum for the list of possible values.
optional string storage_bytes_status = 490739082;
- Specified by:
hasStorageBytesStatus
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- Whether the storageBytesStatus field is set.
-
getStorageBytesStatus
public String getStorageBytesStatus()
[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date. Check the StorageBytesStatus enum for the list of possible values.
optional string storage_bytes_status = 490739082;
- Specified by:
getStorageBytesStatus
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- The storageBytesStatus.
-
getStorageBytesStatusBytes
public com.google.protobuf.ByteString getStorageBytesStatusBytes()
[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date. Check the StorageBytesStatus enum for the list of possible values.
optional string storage_bytes_status = 490739082;
- Specified by:
getStorageBytesStatusBytes
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- The bytes for storageBytesStatus.
-
setStorageBytesStatus
public SavedAttachedDisk.Builder setStorageBytesStatus(String value)
[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date. Check the StorageBytesStatus enum for the list of possible values.
optional string storage_bytes_status = 490739082;
- Parameters:
value
- The storageBytesStatus to set.- Returns:
- This builder for chaining.
-
clearStorageBytesStatus
public SavedAttachedDisk.Builder clearStorageBytesStatus()
[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date. Check the StorageBytesStatus enum for the list of possible values.
optional string storage_bytes_status = 490739082;
- Returns:
- This builder for chaining.
-
setStorageBytesStatusBytes
public SavedAttachedDisk.Builder setStorageBytesStatusBytes(com.google.protobuf.ByteString value)
[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date. Check the StorageBytesStatus enum for the list of possible values.
optional string storage_bytes_status = 490739082;
- Parameters:
value
- The bytes for storageBytesStatus to set.- Returns:
- This builder for chaining.
-
hasType
public boolean hasType()
Specifies the type of the attached disk, either SCRATCH or PERSISTENT. Check the Type enum for the list of possible values.
optional string type = 3575610;
- Specified by:
hasType
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- Whether the type field is set.
-
getType
public String getType()
Specifies the type of the attached disk, either SCRATCH or PERSISTENT. Check the Type enum for the list of possible values.
optional string type = 3575610;
- Specified by:
getType
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- The type.
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()
Specifies the type of the attached disk, either SCRATCH or PERSISTENT. Check the Type enum for the list of possible values.
optional string type = 3575610;
- Specified by:
getTypeBytes
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- The bytes for type.
-
setType
public SavedAttachedDisk.Builder setType(String value)
Specifies the type of the attached disk, either SCRATCH or PERSISTENT. Check the Type enum for the list of possible values.
optional string type = 3575610;
- Parameters:
value
- The type to set.- Returns:
- This builder for chaining.
-
clearType
public SavedAttachedDisk.Builder clearType()
Specifies the type of the attached disk, either SCRATCH or PERSISTENT. Check the Type enum for the list of possible values.
optional string type = 3575610;
- Returns:
- This builder for chaining.
-
setTypeBytes
public SavedAttachedDisk.Builder setTypeBytes(com.google.protobuf.ByteString value)
Specifies the type of the attached disk, either SCRATCH or PERSISTENT. Check the Type enum for the list of possible values.
optional string type = 3575610;
- Parameters:
value
- The bytes for type to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final SavedAttachedDisk.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SavedAttachedDisk.Builder>
-
mergeUnknownFields
public final SavedAttachedDisk.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SavedAttachedDisk.Builder>
-
-