Class Instance.Disk.Builder (1.29.0)

public static final class Instance.Disk.Builder extends GeneratedMessageV3.Builder<Instance.Disk.Builder> implements Instance.DiskOrBuilder

An instance-attached disk resource.

Protobuf type google.cloud.notebooks.v1.Instance.Disk

Static Methods

getDescriptor()

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

Methods

addAllGuestOsFeatures(Iterable<? extends Instance.Disk.GuestOsFeature> values)

public Instance.Disk.Builder addAllGuestOsFeatures(Iterable<? extends Instance.Disk.GuestOsFeature> values)

Indicates 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.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature>
Returns
TypeDescription
Instance.Disk.Builder

addAllLicenses(Iterable<String> values)

public Instance.Disk.Builder addAllLicenses(Iterable<String> values)

A list of publicly visible licenses. Reserved for Google's use. A License represents billing and aggregate usage data for public and marketplace images.

repeated string licenses = 9;

Parameter
NameDescription
valuesIterable<String>

The licenses to add.

Returns
TypeDescription
Instance.Disk.Builder

This builder for chaining.

addGuestOsFeatures(Instance.Disk.GuestOsFeature value)

public Instance.Disk.Builder addGuestOsFeatures(Instance.Disk.GuestOsFeature value)

Indicates 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.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5;

Parameter
NameDescription
valueInstance.Disk.GuestOsFeature
Returns
TypeDescription
Instance.Disk.Builder

addGuestOsFeatures(Instance.Disk.GuestOsFeature.Builder builderForValue)

public Instance.Disk.Builder addGuestOsFeatures(Instance.Disk.GuestOsFeature.Builder builderForValue)

Indicates 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.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5;

Parameter
NameDescription
builderForValueInstance.Disk.GuestOsFeature.Builder
Returns
TypeDescription
Instance.Disk.Builder

addGuestOsFeatures(int index, Instance.Disk.GuestOsFeature value)

public Instance.Disk.Builder addGuestOsFeatures(int index, Instance.Disk.GuestOsFeature value)

Indicates 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.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5;

Parameters
NameDescription
indexint
valueInstance.Disk.GuestOsFeature
Returns
TypeDescription
Instance.Disk.Builder

addGuestOsFeatures(int index, Instance.Disk.GuestOsFeature.Builder builderForValue)

public Instance.Disk.Builder addGuestOsFeatures(int index, Instance.Disk.GuestOsFeature.Builder builderForValue)

Indicates 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.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5;

Parameters
NameDescription
indexint
builderForValueInstance.Disk.GuestOsFeature.Builder
Returns
TypeDescription
Instance.Disk.Builder

addGuestOsFeaturesBuilder()

public Instance.Disk.GuestOsFeature.Builder addGuestOsFeaturesBuilder()

Indicates 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.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5;

Returns
TypeDescription
Instance.Disk.GuestOsFeature.Builder

addGuestOsFeaturesBuilder(int index)

public Instance.Disk.GuestOsFeature.Builder addGuestOsFeaturesBuilder(int index)

Indicates 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.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
Instance.Disk.GuestOsFeature.Builder

addLicenses(String value)

public Instance.Disk.Builder addLicenses(String value)

A list of publicly visible licenses. Reserved for Google's use. A License represents billing and aggregate usage data for public and marketplace images.

repeated string licenses = 9;

Parameter
NameDescription
valueString

The licenses to add.

Returns
TypeDescription
Instance.Disk.Builder

This builder for chaining.

addLicensesBytes(ByteString value)

public Instance.Disk.Builder addLicensesBytes(ByteString value)

A list of publicly visible licenses. Reserved for Google's use. A License represents billing and aggregate usage data for public and marketplace images.

repeated string licenses = 9;

Parameter
NameDescription
valueByteString

The bytes of the licenses to add.

Returns
TypeDescription
Instance.Disk.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Instance.Disk build()
Returns
TypeDescription
Instance.Disk

buildPartial()

public Instance.Disk buildPartial()
Returns
TypeDescription
Instance.Disk

clear()

public Instance.Disk.Builder clear()
Returns
TypeDescription
Instance.Disk.Builder
Overrides

clearAutoDelete()

public Instance.Disk.Builder clearAutoDelete()

Indicates whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).

bool auto_delete = 1;

Returns
TypeDescription
Instance.Disk.Builder

This builder for chaining.

clearBoot()

public Instance.Disk.Builder clearBoot()

Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.

bool boot = 2;

Returns
TypeDescription
Instance.Disk.Builder

This builder for chaining.

clearDeviceName()

public Instance.Disk.Builder clearDeviceName()

Indicates a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance.

If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disk-x, where x is a number assigned by Google Compute Engine.This field is only applicable for persistent disks.

string device_name = 3;

Returns
TypeDescription
Instance.Disk.Builder

This builder for chaining.

clearDiskSizeGb()

public Instance.Disk.Builder clearDiskSizeGb()

Indicates the size of the disk in base-2 GB.

int64 disk_size_gb = 4;

Returns
TypeDescription
Instance.Disk.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearGuestOsFeatures()

public Instance.Disk.Builder clearGuestOsFeatures()

Indicates 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.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5;

Returns
TypeDescription
Instance.Disk.Builder

clearIndex()

public Instance.Disk.Builder clearIndex()

A zero-based index to this disk, where 0 is reserved for the boot disk. If you have many disks attached to an instance, each disk would have a unique index number.

int64 index = 6;

Returns
TypeDescription
Instance.Disk.Builder

This builder for chaining.

clearInterface()

public Instance.Disk.Builder clearInterface()

Indicates the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance. Valid values:

  • NVME
  • SCSI

string interface = 7;

Returns
TypeDescription
Instance.Disk.Builder

This builder for chaining.

clearKind()

public Instance.Disk.Builder clearKind()

Type of the resource. Always compute#attachedDisk for attached disks.

string kind = 8;

Returns
TypeDescription
Instance.Disk.Builder

This builder for chaining.

clearLicenses()

public Instance.Disk.Builder clearLicenses()

A list of publicly visible licenses. Reserved for Google's use. A License represents billing and aggregate usage data for public and marketplace images.

repeated string licenses = 9;

Returns
TypeDescription
Instance.Disk.Builder

This builder for chaining.

clearMode()

public Instance.Disk.Builder clearMode()

The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode. Valid values:

  • READ_ONLY
  • READ_WRITE

string mode = 10;

Returns
TypeDescription
Instance.Disk.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSource()

public Instance.Disk.Builder clearSource()

Indicates a valid partial or full URL to an existing Persistent Disk resource.

string source = 11;

Returns
TypeDescription
Instance.Disk.Builder

This builder for chaining.

clearType()

public Instance.Disk.Builder clearType()

Indicates the type of the disk, either SCRATCH or PERSISTENT. Valid values:

  • PERSISTENT
  • SCRATCH

string type = 12;

Returns
TypeDescription
Instance.Disk.Builder

This builder for chaining.

clone()

public Instance.Disk.Builder clone()
Returns
TypeDescription
Instance.Disk.Builder
Overrides

getAutoDelete()

public boolean getAutoDelete()

Indicates whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).

bool auto_delete = 1;

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.

bool boot = 2;

Returns
TypeDescription
boolean

The boot.

getDefaultInstanceForType()

public Instance.Disk getDefaultInstanceForType()
Returns
TypeDescription
Instance.Disk

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDeviceName()

public String getDeviceName()

Indicates a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance.

If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disk-x, where x is a number assigned by Google Compute Engine.This field is only applicable for persistent disks.

string device_name = 3;

Returns
TypeDescription
String

The deviceName.

getDeviceNameBytes()

public ByteString getDeviceNameBytes()

Indicates a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance.

If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disk-x, where x is a number assigned by Google Compute Engine.This field is only applicable for persistent disks.

string device_name = 3;

Returns
TypeDescription
ByteString

The bytes for deviceName.

getDiskSizeGb()

public long getDiskSizeGb()

Indicates the size of the disk in base-2 GB.

int64 disk_size_gb = 4;

Returns
TypeDescription
long

The diskSizeGb.

getGuestOsFeatures(int index)

public Instance.Disk.GuestOsFeature getGuestOsFeatures(int index)

Indicates 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.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
Instance.Disk.GuestOsFeature

getGuestOsFeaturesBuilder(int index)

public Instance.Disk.GuestOsFeature.Builder getGuestOsFeaturesBuilder(int index)

Indicates 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.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
Instance.Disk.GuestOsFeature.Builder

getGuestOsFeaturesBuilderList()

public List<Instance.Disk.GuestOsFeature.Builder> getGuestOsFeaturesBuilderList()

Indicates 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.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5;

Returns
TypeDescription
List<Builder>

getGuestOsFeaturesCount()

public int getGuestOsFeaturesCount()

Indicates 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.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5;

Returns
TypeDescription
int

getGuestOsFeaturesList()

public List<Instance.Disk.GuestOsFeature> getGuestOsFeaturesList()

Indicates 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.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5;

Returns
TypeDescription
List<GuestOsFeature>

getGuestOsFeaturesOrBuilder(int index)

public Instance.Disk.GuestOsFeatureOrBuilder getGuestOsFeaturesOrBuilder(int index)

Indicates 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.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
Instance.Disk.GuestOsFeatureOrBuilder

getGuestOsFeaturesOrBuilderList()

public List<? extends Instance.Disk.GuestOsFeatureOrBuilder> getGuestOsFeaturesOrBuilderList()

Indicates 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.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5;

Returns
TypeDescription
List<? extends com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeatureOrBuilder>

getIndex()

public long getIndex()

A zero-based index to this disk, where 0 is reserved for the boot disk. If you have many disks attached to an instance, each disk would have a unique index number.

int64 index = 6;

Returns
TypeDescription
long

The index.

getInterface()

public String getInterface()

Indicates the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance. Valid values:

  • NVME
  • SCSI

string interface = 7;

Returns
TypeDescription
String

The interface.

getInterfaceBytes()

public ByteString getInterfaceBytes()

Indicates the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance. Valid values:

  • NVME
  • SCSI

string interface = 7;

Returns
TypeDescription
ByteString

The bytes for interface.

getKind()

public String getKind()

Type of the resource. Always compute#attachedDisk for attached disks.

string kind = 8;

Returns
TypeDescription
String

The kind.

getKindBytes()

public ByteString getKindBytes()

Type of the resource. Always compute#attachedDisk for attached disks.

string kind = 8;

Returns
TypeDescription
ByteString

The bytes for kind.

getLicenses(int index)

public String getLicenses(int index)

A list of publicly visible licenses. Reserved for Google's use. A License represents billing and aggregate usage data for public and marketplace images.

repeated string licenses = 9;

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)

A list of publicly visible licenses. Reserved for Google's use. A License represents billing and aggregate usage data for public and marketplace images.

repeated string licenses = 9;

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()

A list of publicly visible licenses. Reserved for Google's use. A License represents billing and aggregate usage data for public and marketplace images.

repeated string licenses = 9;

Returns
TypeDescription
int

The count of licenses.

getLicensesList()

public ProtocolStringList getLicensesList()

A list of publicly visible licenses. Reserved for Google's use. A License represents billing and aggregate usage data for public and marketplace images.

repeated string licenses = 9;

Returns
TypeDescription
ProtocolStringList

A list containing the licenses.

getMode()

public String getMode()

The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode. Valid values:

  • READ_ONLY
  • READ_WRITE

string mode = 10;

Returns
TypeDescription
String

The mode.

getModeBytes()

public ByteString getModeBytes()

The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode. Valid values:

  • READ_ONLY
  • READ_WRITE

string mode = 10;

Returns
TypeDescription
ByteString

The bytes for mode.

getSource()

public String getSource()

Indicates a valid partial or full URL to an existing Persistent Disk resource.

string source = 11;

Returns
TypeDescription
String

The source.

getSourceBytes()

public ByteString getSourceBytes()

Indicates a valid partial or full URL to an existing Persistent Disk resource.

string source = 11;

Returns
TypeDescription
ByteString

The bytes for source.

getType()

public String getType()

Indicates the type of the disk, either SCRATCH or PERSISTENT. Valid values:

  • PERSISTENT
  • SCRATCH

string type = 12;

Returns
TypeDescription
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

Indicates the type of the disk, either SCRATCH or PERSISTENT. Valid values:

  • PERSISTENT
  • SCRATCH

string type = 12;

Returns
TypeDescription
ByteString

The bytes for type.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Instance.Disk other)

public Instance.Disk.Builder mergeFrom(Instance.Disk other)
Parameter
NameDescription
otherInstance.Disk
Returns
TypeDescription
Instance.Disk.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeGuestOsFeatures(int index)

public Instance.Disk.Builder removeGuestOsFeatures(int index)

Indicates 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.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
Instance.Disk.Builder

setAutoDelete(boolean value)

public Instance.Disk.Builder setAutoDelete(boolean value)

Indicates whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).

bool auto_delete = 1;

Parameter
NameDescription
valueboolean

The autoDelete to set.

Returns
TypeDescription
Instance.Disk.Builder

This builder for chaining.

setBoot(boolean value)

public Instance.Disk.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.

bool boot = 2;

Parameter
NameDescription
valueboolean

The boot to set.

Returns
TypeDescription
Instance.Disk.Builder

This builder for chaining.

setDeviceName(String value)

public Instance.Disk.Builder setDeviceName(String value)

Indicates a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance.

If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disk-x, where x is a number assigned by Google Compute Engine.This field is only applicable for persistent disks.

string device_name = 3;

Parameter
NameDescription
valueString

The deviceName to set.

Returns
TypeDescription
Instance.Disk.Builder

This builder for chaining.

setDeviceNameBytes(ByteString value)

public Instance.Disk.Builder setDeviceNameBytes(ByteString value)

Indicates a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance.

If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disk-x, where x is a number assigned by Google Compute Engine.This field is only applicable for persistent disks.

string device_name = 3;

Parameter
NameDescription
valueByteString

The bytes for deviceName to set.

Returns
TypeDescription
Instance.Disk.Builder

This builder for chaining.

setDiskSizeGb(long value)

public Instance.Disk.Builder setDiskSizeGb(long value)

Indicates the size of the disk in base-2 GB.

int64 disk_size_gb = 4;

Parameter
NameDescription
valuelong

The diskSizeGb to set.

Returns
TypeDescription
Instance.Disk.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setGuestOsFeatures(int index, Instance.Disk.GuestOsFeature value)

public Instance.Disk.Builder setGuestOsFeatures(int index, Instance.Disk.GuestOsFeature value)

Indicates 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.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5;

Parameters
NameDescription
indexint
valueInstance.Disk.GuestOsFeature
Returns
TypeDescription
Instance.Disk.Builder

setGuestOsFeatures(int index, Instance.Disk.GuestOsFeature.Builder builderForValue)

public Instance.Disk.Builder setGuestOsFeatures(int index, Instance.Disk.GuestOsFeature.Builder builderForValue)

Indicates 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.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5;

Parameters
NameDescription
indexint
builderForValueInstance.Disk.GuestOsFeature.Builder
Returns
TypeDescription
Instance.Disk.Builder

setIndex(long value)

public Instance.Disk.Builder setIndex(long value)

A zero-based index to this disk, where 0 is reserved for the boot disk. If you have many disks attached to an instance, each disk would have a unique index number.

int64 index = 6;

Parameter
NameDescription
valuelong

The index to set.

Returns
TypeDescription
Instance.Disk.Builder

This builder for chaining.

setInterface(String value)

public Instance.Disk.Builder setInterface(String value)

Indicates the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance. Valid values:

  • NVME
  • SCSI

string interface = 7;

Parameter
NameDescription
valueString

The interface to set.

Returns
TypeDescription
Instance.Disk.Builder

This builder for chaining.

setInterfaceBytes(ByteString value)

public Instance.Disk.Builder setInterfaceBytes(ByteString value)

Indicates the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance. Valid values:

  • NVME
  • SCSI

string interface = 7;

Parameter
NameDescription
valueByteString

The bytes for interface to set.

Returns
TypeDescription
Instance.Disk.Builder

This builder for chaining.

setKind(String value)

public Instance.Disk.Builder setKind(String value)

Type of the resource. Always compute#attachedDisk for attached disks.

string kind = 8;

Parameter
NameDescription
valueString

The kind to set.

Returns
TypeDescription
Instance.Disk.Builder

This builder for chaining.

setKindBytes(ByteString value)

public Instance.Disk.Builder setKindBytes(ByteString value)

Type of the resource. Always compute#attachedDisk for attached disks.

string kind = 8;

Parameter
NameDescription
valueByteString

The bytes for kind to set.

Returns
TypeDescription
Instance.Disk.Builder

This builder for chaining.

setLicenses(int index, String value)

public Instance.Disk.Builder setLicenses(int index, String value)

A list of publicly visible licenses. Reserved for Google's use. A License represents billing and aggregate usage data for public and marketplace images.

repeated string licenses = 9;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The licenses to set.

Returns
TypeDescription
Instance.Disk.Builder

This builder for chaining.

setMode(String value)

public Instance.Disk.Builder setMode(String value)

The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode. Valid values:

  • READ_ONLY
  • READ_WRITE

string mode = 10;

Parameter
NameDescription
valueString

The mode to set.

Returns
TypeDescription
Instance.Disk.Builder

This builder for chaining.

setModeBytes(ByteString value)

public Instance.Disk.Builder setModeBytes(ByteString value)

The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode. Valid values:

  • READ_ONLY
  • READ_WRITE

string mode = 10;

Parameter
NameDescription
valueByteString

The bytes for mode to set.

Returns
TypeDescription
Instance.Disk.Builder

This builder for chaining.

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

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

setSource(String value)

public Instance.Disk.Builder setSource(String value)

Indicates a valid partial or full URL to an existing Persistent Disk resource.

string source = 11;

Parameter
NameDescription
valueString

The source to set.

Returns
TypeDescription
Instance.Disk.Builder

This builder for chaining.

setSourceBytes(ByteString value)

public Instance.Disk.Builder setSourceBytes(ByteString value)

Indicates a valid partial or full URL to an existing Persistent Disk resource.

string source = 11;

Parameter
NameDescription
valueByteString

The bytes for source to set.

Returns
TypeDescription
Instance.Disk.Builder

This builder for chaining.

setType(String value)

public Instance.Disk.Builder setType(String value)

Indicates the type of the disk, either SCRATCH or PERSISTENT. Valid values:

  • PERSISTENT
  • SCRATCH

string type = 12;

Parameter
NameDescription
valueString

The type to set.

Returns
TypeDescription
Instance.Disk.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public Instance.Disk.Builder setTypeBytes(ByteString value)

Indicates the type of the disk, either SCRATCH or PERSISTENT. Valid values:

  • PERSISTENT
  • SCRATCH

string type = 12;

Parameter
NameDescription
valueByteString

The bytes for type to set.

Returns
TypeDescription
Instance.Disk.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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