Class SavedAttachedDisk.Builder (1.49.0)

public static final class SavedAttachedDisk.Builder extends GeneratedMessageV3.Builder<SavedAttachedDisk.Builder> implements SavedAttachedDiskOrBuilder

DEPRECATED: Please use compute#savedDisk instead. An instance-attached disk resource.

Protobuf type google.cloud.compute.v1.SavedAttachedDisk

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllGuestOsFeatures(Iterable<? extends GuestOsFeature> values)

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;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.compute.v1.GuestOsFeature>
Returns
TypeDescription
SavedAttachedDisk.Builder

addAllLicenses(Iterable<String> values)

public SavedAttachedDisk.Builder addAllLicenses(Iterable<String> values)

[Output Only] Any valid publicly visible licenses.

repeated string licenses = 337642578;

Parameter
NameDescription
valuesIterable<String>

The licenses to add.

Returns
TypeDescription
SavedAttachedDisk.Builder

This builder for chaining.

addGuestOsFeatures(GuestOsFeature value)

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;

Parameter
NameDescription
valueGuestOsFeature
Returns
TypeDescription
SavedAttachedDisk.Builder

addGuestOsFeatures(GuestOsFeature.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueGuestOsFeature.Builder
Returns
TypeDescription
SavedAttachedDisk.Builder

addGuestOsFeatures(int index, GuestOsFeature value)

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;

Parameters
NameDescription
indexint
valueGuestOsFeature
Returns
TypeDescription
SavedAttachedDisk.Builder

addGuestOsFeatures(int index, GuestOsFeature.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueGuestOsFeature.Builder
Returns
TypeDescription
SavedAttachedDisk.Builder

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;

Returns
TypeDescription
GuestOsFeature.Builder

addGuestOsFeaturesBuilder(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
GuestOsFeature.Builder

addLicenses(String value)

public SavedAttachedDisk.Builder addLicenses(String value)

[Output Only] Any valid publicly visible licenses.

repeated string licenses = 337642578;

Parameter
NameDescription
valueString

The licenses to add.

Returns
TypeDescription
SavedAttachedDisk.Builder

This builder for chaining.

addLicensesBytes(ByteString value)

public SavedAttachedDisk.Builder addLicensesBytes(ByteString value)

[Output Only] Any valid publicly visible licenses.

repeated string licenses = 337642578;

Parameter
NameDescription
valueByteString

The bytes of the licenses to add.

Returns
TypeDescription
SavedAttachedDisk.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SavedAttachedDisk.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SavedAttachedDisk.Builder
Overrides

build()

public SavedAttachedDisk build()
Returns
TypeDescription
SavedAttachedDisk

buildPartial()

public SavedAttachedDisk buildPartial()
Returns
TypeDescription
SavedAttachedDisk

clear()

public SavedAttachedDisk.Builder clear()
Returns
TypeDescription
SavedAttachedDisk.Builder
Overrides

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
TypeDescription
SavedAttachedDisk.Builder

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
TypeDescription
SavedAttachedDisk.Builder

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
TypeDescription
SavedAttachedDisk.Builder

This builder for chaining.

clearDiskEncryptionKey()

public SavedAttachedDisk.Builder clearDiskEncryptionKey()

The encryption key for the disk.

optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;

Returns
TypeDescription
SavedAttachedDisk.Builder

clearDiskSizeGb()

public SavedAttachedDisk.Builder clearDiskSizeGb()

The size of the disk in base-2 GB.

optional int64 disk_size_gb = 316263735;

Returns
TypeDescription
SavedAttachedDisk.Builder

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
TypeDescription
SavedAttachedDisk.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SavedAttachedDisk.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SavedAttachedDisk.Builder
Overrides

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;

Returns
TypeDescription
SavedAttachedDisk.Builder

clearIndex()

public SavedAttachedDisk.Builder clearIndex()

Specifies zero-based index of the disk that is attached to the source instance.

optional int32 index = 100346066;

Returns
TypeDescription
SavedAttachedDisk.Builder

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
TypeDescription
SavedAttachedDisk.Builder

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
TypeDescription
SavedAttachedDisk.Builder

This builder for chaining.

clearLicenses()

public SavedAttachedDisk.Builder clearLicenses()

[Output Only] Any valid publicly visible licenses.

repeated string licenses = 337642578;

Returns
TypeDescription
SavedAttachedDisk.Builder

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
TypeDescription
SavedAttachedDisk.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SavedAttachedDisk.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SavedAttachedDisk.Builder
Overrides

clearSource()

public SavedAttachedDisk.Builder clearSource()

Specifies a URL of the disk attached to the source instance.

optional string source = 177235995;

Returns
TypeDescription
SavedAttachedDisk.Builder

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
TypeDescription
SavedAttachedDisk.Builder

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
TypeDescription
SavedAttachedDisk.Builder

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
TypeDescription
SavedAttachedDisk.Builder

This builder for chaining.

clone()

public SavedAttachedDisk.Builder clone()
Returns
TypeDescription
SavedAttachedDisk.Builder
Overrides

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;

Returns
TypeDescription
boolean

The autoDelete.

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;

Returns
TypeDescription
boolean

The boot.

getDefaultInstanceForType()

public SavedAttachedDisk getDefaultInstanceForType()
Returns
TypeDescription
SavedAttachedDisk

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDeviceName()

public String getDeviceName()

Specifies the name of the disk attached to the source instance.

optional string device_name = 67541716;

Returns
TypeDescription
String

The deviceName.

getDeviceNameBytes()

public ByteString getDeviceNameBytes()

Specifies the name of the disk attached to the source instance.

optional string device_name = 67541716;

Returns
TypeDescription
ByteString

The bytes for deviceName.

getDiskEncryptionKey()

public CustomerEncryptionKey getDiskEncryptionKey()

The encryption key for the disk.

optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;

Returns
TypeDescription
CustomerEncryptionKey

The diskEncryptionKey.

getDiskEncryptionKeyBuilder()

public CustomerEncryptionKey.Builder getDiskEncryptionKeyBuilder()

The encryption key for the disk.

optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;

Returns
TypeDescription
CustomerEncryptionKey.Builder

getDiskEncryptionKeyOrBuilder()

public CustomerEncryptionKeyOrBuilder getDiskEncryptionKeyOrBuilder()

The encryption key for the disk.

optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;

Returns
TypeDescription
CustomerEncryptionKeyOrBuilder

getDiskSizeGb()

public long getDiskSizeGb()

The size of the disk in base-2 GB.

optional int64 disk_size_gb = 316263735;

Returns
TypeDescription
long

The diskSizeGb.

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;

Returns
TypeDescription
String

The diskType.

getDiskTypeBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for diskType.

getGuestOsFeatures(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
GuestOsFeature

getGuestOsFeaturesBuilder(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
GuestOsFeature.Builder

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;

Returns
TypeDescription
List<Builder>

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;

Returns
TypeDescription
int

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;

Returns
TypeDescription
List<GuestOsFeature>

getGuestOsFeaturesOrBuilder(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
GuestOsFeatureOrBuilder

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;

Returns
TypeDescription
List<? extends com.google.cloud.compute.v1.GuestOsFeatureOrBuilder>

getIndex()

public int getIndex()

Specifies zero-based index of the disk that is attached to the source instance.

optional int32 index = 100346066;

Returns
TypeDescription
int

The index.

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;

Returns
TypeDescription
String

The interface.

getInterfaceBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for interface.

getKind()

public String getKind()

[Output Only] Type of the resource. Always compute#attachedDisk for attached disks.

optional string kind = 3292052;

Returns
TypeDescription
String

The kind.

getKindBytes()

public ByteString getKindBytes()

[Output Only] Type of the resource. Always compute#attachedDisk for attached disks.

optional string kind = 3292052;

Returns
TypeDescription
ByteString

The bytes for kind.

getLicenses(int index)

public String getLicenses(int index)

[Output Only] Any valid publicly visible licenses.

repeated string licenses = 337642578;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The licenses at the given index.

getLicensesBytes(int index)

public ByteString getLicensesBytes(int index)

[Output Only] Any valid publicly visible licenses.

repeated string licenses = 337642578;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the licenses at the given index.

getLicensesCount()

public int getLicensesCount()

[Output Only] Any valid publicly visible licenses.

repeated string licenses = 337642578;

Returns
TypeDescription
int

The count of licenses.

getLicensesList()

public ProtocolStringList getLicensesList()

[Output Only] Any valid publicly visible licenses.

repeated string licenses = 337642578;

Returns
TypeDescription
ProtocolStringList

A list containing the licenses.

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;

Returns
TypeDescription
String

The mode.

getModeBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for mode.

getSource()

public String getSource()

Specifies a URL of the disk attached to the source instance.

optional string source = 177235995;

Returns
TypeDescription
String

The source.

getSourceBytes()

public ByteString getSourceBytes()

Specifies a URL of the disk attached to the source instance.

optional string source = 177235995;

Returns
TypeDescription
ByteString

The bytes for source.

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;

Returns
TypeDescription
long

The storageBytes.

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;

Returns
TypeDescription
String

The storageBytesStatus.

getStorageBytesStatusBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for storageBytesStatus.

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;

Returns
TypeDescription
String

The type.

getTypeBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for type.

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;

Returns
TypeDescription
boolean

Whether the autoDelete field is set.

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;

Returns
TypeDescription
boolean

Whether the boot field is set.

hasDeviceName()

public boolean hasDeviceName()

Specifies the name of the disk attached to the source instance.

optional string device_name = 67541716;

Returns
TypeDescription
boolean

Whether the deviceName field is set.

hasDiskEncryptionKey()

public boolean hasDiskEncryptionKey()

The encryption key for the disk.

optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;

Returns
TypeDescription
boolean

Whether the diskEncryptionKey field is set.

hasDiskSizeGb()

public boolean hasDiskSizeGb()

The size of the disk in base-2 GB.

optional int64 disk_size_gb = 316263735;

Returns
TypeDescription
boolean

Whether the diskSizeGb field is set.

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;

Returns
TypeDescription
boolean

Whether the diskType field is set.

hasIndex()

public boolean hasIndex()

Specifies zero-based index of the disk that is attached to the source instance.

optional int32 index = 100346066;

Returns
TypeDescription
boolean

Whether the index field is set.

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;

Returns
TypeDescription
boolean

Whether the interface field is set.

hasKind()

public boolean hasKind()

[Output Only] Type of the resource. Always compute#attachedDisk for attached disks.

optional string kind = 3292052;

Returns
TypeDescription
boolean

Whether the kind field is set.

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;

Returns
TypeDescription
boolean

Whether the mode field is set.

hasSource()

public boolean hasSource()

Specifies a URL of the disk attached to the source instance.

optional string source = 177235995;

Returns
TypeDescription
boolean

Whether the source field is set.

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;

Returns
TypeDescription
boolean

Whether the storageBytes field is set.

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;

Returns
TypeDescription
boolean

Whether the storageBytesStatus field is set.

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;

Returns
TypeDescription
boolean

Whether the type field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeDiskEncryptionKey(CustomerEncryptionKey value)

public SavedAttachedDisk.Builder mergeDiskEncryptionKey(CustomerEncryptionKey value)

The encryption key for the disk.

optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;

Parameter
NameDescription
valueCustomerEncryptionKey
Returns
TypeDescription
SavedAttachedDisk.Builder

mergeFrom(SavedAttachedDisk other)

public SavedAttachedDisk.Builder mergeFrom(SavedAttachedDisk other)
Parameter
NameDescription
otherSavedAttachedDisk
Returns
TypeDescription
SavedAttachedDisk.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SavedAttachedDisk.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SavedAttachedDisk.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SavedAttachedDisk.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SavedAttachedDisk.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SavedAttachedDisk.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SavedAttachedDisk.Builder
Overrides

removeGuestOsFeatures(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
SavedAttachedDisk.Builder

setAutoDelete(boolean value)

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;

Parameter
NameDescription
valueboolean

The autoDelete to set.

Returns
TypeDescription
SavedAttachedDisk.Builder

This builder for chaining.

setBoot(boolean value)

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;

Parameter
NameDescription
valueboolean

The boot to set.

Returns
TypeDescription
SavedAttachedDisk.Builder

This builder for chaining.

setDeviceName(String value)

public SavedAttachedDisk.Builder setDeviceName(String value)

Specifies the name of the disk attached to the source instance.

optional string device_name = 67541716;

Parameter
NameDescription
valueString

The deviceName to set.

Returns
TypeDescription
SavedAttachedDisk.Builder

This builder for chaining.

setDeviceNameBytes(ByteString value)

public SavedAttachedDisk.Builder setDeviceNameBytes(ByteString value)

Specifies the name of the disk attached to the source instance.

optional string device_name = 67541716;

Parameter
NameDescription
valueByteString

The bytes for deviceName to set.

Returns
TypeDescription
SavedAttachedDisk.Builder

This builder for chaining.

setDiskEncryptionKey(CustomerEncryptionKey value)

public SavedAttachedDisk.Builder setDiskEncryptionKey(CustomerEncryptionKey value)

The encryption key for the disk.

optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;

Parameter
NameDescription
valueCustomerEncryptionKey
Returns
TypeDescription
SavedAttachedDisk.Builder

setDiskEncryptionKey(CustomerEncryptionKey.Builder builderForValue)

public SavedAttachedDisk.Builder setDiskEncryptionKey(CustomerEncryptionKey.Builder builderForValue)

The encryption key for the disk.

optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;

Parameter
NameDescription
builderForValueCustomerEncryptionKey.Builder
Returns
TypeDescription
SavedAttachedDisk.Builder

setDiskSizeGb(long value)

public SavedAttachedDisk.Builder setDiskSizeGb(long value)

The size of the disk in base-2 GB.

optional int64 disk_size_gb = 316263735;

Parameter
NameDescription
valuelong

The diskSizeGb to set.

Returns
TypeDescription
SavedAttachedDisk.Builder

This builder for chaining.

setDiskType(String value)

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;

Parameter
NameDescription
valueString

The diskType to set.

Returns
TypeDescription
SavedAttachedDisk.Builder

This builder for chaining.

setDiskTypeBytes(ByteString value)

public SavedAttachedDisk.Builder setDiskTypeBytes(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;

Parameter
NameDescription
valueByteString

The bytes for diskType to set.

Returns
TypeDescription
SavedAttachedDisk.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SavedAttachedDisk.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SavedAttachedDisk.Builder
Overrides

setGuestOsFeatures(int index, GuestOsFeature value)

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;

Parameters
NameDescription
indexint
valueGuestOsFeature
Returns
TypeDescription
SavedAttachedDisk.Builder

setGuestOsFeatures(int index, GuestOsFeature.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueGuestOsFeature.Builder
Returns
TypeDescription
SavedAttachedDisk.Builder

setIndex(int value)

public SavedAttachedDisk.Builder setIndex(int value)

Specifies zero-based index of the disk that is attached to the source instance.

optional int32 index = 100346066;

Parameter
NameDescription
valueint

The index to set.

Returns
TypeDescription
SavedAttachedDisk.Builder

This builder for chaining.

setInterface(String value)

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;

Parameter
NameDescription
valueString

The interface to set.

Returns
TypeDescription
SavedAttachedDisk.Builder

This builder for chaining.

setInterfaceBytes(ByteString value)

public SavedAttachedDisk.Builder setInterfaceBytes(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;

Parameter
NameDescription
valueByteString

The bytes for interface to set.

Returns
TypeDescription
SavedAttachedDisk.Builder

This builder for chaining.

setKind(String value)

public SavedAttachedDisk.Builder setKind(String value)

[Output Only] Type of the resource. Always compute#attachedDisk for attached disks.

optional string kind = 3292052;

Parameter
NameDescription
valueString

The kind to set.

Returns
TypeDescription
SavedAttachedDisk.Builder

This builder for chaining.

setKindBytes(ByteString value)

public SavedAttachedDisk.Builder setKindBytes(ByteString value)

[Output Only] Type of the resource. Always compute#attachedDisk for attached disks.

optional string kind = 3292052;

Parameter
NameDescription
valueByteString

The bytes for kind to set.

Returns
TypeDescription
SavedAttachedDisk.Builder

This builder for chaining.

setLicenses(int index, String value)

public SavedAttachedDisk.Builder setLicenses(int index, String value)

[Output Only] Any valid publicly visible licenses.

repeated string licenses = 337642578;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The licenses to set.

Returns
TypeDescription
SavedAttachedDisk.Builder

This builder for chaining.

setMode(String value)

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;

Parameter
NameDescription
valueString

The mode to set.

Returns
TypeDescription
SavedAttachedDisk.Builder

This builder for chaining.

setModeBytes(ByteString value)

public SavedAttachedDisk.Builder setModeBytes(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;

Parameter
NameDescription
valueByteString

The bytes for mode to set.

Returns
TypeDescription
SavedAttachedDisk.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SavedAttachedDisk.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SavedAttachedDisk.Builder
Overrides

setSource(String value)

public SavedAttachedDisk.Builder setSource(String value)

Specifies a URL of the disk attached to the source instance.

optional string source = 177235995;

Parameter
NameDescription
valueString

The source to set.

Returns
TypeDescription
SavedAttachedDisk.Builder

This builder for chaining.

setSourceBytes(ByteString value)

public SavedAttachedDisk.Builder setSourceBytes(ByteString value)

Specifies a URL of the disk attached to the source instance.

optional string source = 177235995;

Parameter
NameDescription
valueByteString

The bytes for source to set.

Returns
TypeDescription
SavedAttachedDisk.Builder

This builder for chaining.

setStorageBytes(long value)

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;

Parameter
NameDescription
valuelong

The storageBytes to set.

Returns
TypeDescription
SavedAttachedDisk.Builder

This builder for chaining.

setStorageBytesStatus(String value)

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;

Parameter
NameDescription
valueString

The storageBytesStatus to set.

Returns
TypeDescription
SavedAttachedDisk.Builder

This builder for chaining.

setStorageBytesStatusBytes(ByteString value)

public SavedAttachedDisk.Builder setStorageBytesStatusBytes(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;

Parameter
NameDescription
valueByteString

The bytes for storageBytesStatus to set.

Returns
TypeDescription
SavedAttachedDisk.Builder

This builder for chaining.

setType(String value)

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;

Parameter
NameDescription
valueString

The type to set.

Returns
TypeDescription
SavedAttachedDisk.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public SavedAttachedDisk.Builder setTypeBytes(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;

Parameter
NameDescription
valueByteString

The bytes for type to set.

Returns
TypeDescription
SavedAttachedDisk.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final SavedAttachedDisk.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SavedAttachedDisk.Builder
Overrides