Class LocalDisk.Builder (1.25.0)

public static final class LocalDisk.Builder extends GeneratedMessageV3.Builder<LocalDisk.Builder> implements LocalDiskOrBuilder

A Local attached disk resource.

Protobuf type google.cloud.notebooks.v1.LocalDisk

Implements

LocalDiskOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllGuestOsFeatures(Iterable<? extends LocalDisk.RuntimeGuestOsFeature> values)

public LocalDisk.Builder addAllGuestOsFeatures(Iterable<? extends LocalDisk.RuntimeGuestOsFeature> values)

Output only. 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.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature>
Returns
TypeDescription
LocalDisk.Builder

addAllLicenses(Iterable<String> values)

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

Output only. Any valid publicly visible licenses.

repeated string licenses = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuesIterable<String>

The licenses to add.

Returns
TypeDescription
LocalDisk.Builder

This builder for chaining.

addGuestOsFeatures(LocalDisk.RuntimeGuestOsFeature value)

public LocalDisk.Builder addGuestOsFeatures(LocalDisk.RuntimeGuestOsFeature value)

Output only. 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.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueLocalDisk.RuntimeGuestOsFeature
Returns
TypeDescription
LocalDisk.Builder

addGuestOsFeatures(LocalDisk.RuntimeGuestOsFeature.Builder builderForValue)

public LocalDisk.Builder addGuestOsFeatures(LocalDisk.RuntimeGuestOsFeature.Builder builderForValue)

Output only. 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.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueLocalDisk.RuntimeGuestOsFeature.Builder
Returns
TypeDescription
LocalDisk.Builder

addGuestOsFeatures(int index, LocalDisk.RuntimeGuestOsFeature value)

public LocalDisk.Builder addGuestOsFeatures(int index, LocalDisk.RuntimeGuestOsFeature value)

Output only. 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.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
valueLocalDisk.RuntimeGuestOsFeature
Returns
TypeDescription
LocalDisk.Builder

addGuestOsFeatures(int index, LocalDisk.RuntimeGuestOsFeature.Builder builderForValue)

public LocalDisk.Builder addGuestOsFeatures(int index, LocalDisk.RuntimeGuestOsFeature.Builder builderForValue)

Output only. 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.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
builderForValueLocalDisk.RuntimeGuestOsFeature.Builder
Returns
TypeDescription
LocalDisk.Builder

addGuestOsFeaturesBuilder()

public LocalDisk.RuntimeGuestOsFeature.Builder addGuestOsFeaturesBuilder()

Output only. 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.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
LocalDisk.RuntimeGuestOsFeature.Builder

addGuestOsFeaturesBuilder(int index)

public LocalDisk.RuntimeGuestOsFeature.Builder addGuestOsFeaturesBuilder(int index)

Output only. 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.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
LocalDisk.RuntimeGuestOsFeature.Builder

addLicenses(String value)

public LocalDisk.Builder addLicenses(String value)

Output only. Any valid publicly visible licenses.

repeated string licenses = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The licenses to add.

Returns
TypeDescription
LocalDisk.Builder

This builder for chaining.

addLicensesBytes(ByteString value)

public LocalDisk.Builder addLicensesBytes(ByteString value)

Output only. Any valid publicly visible licenses.

repeated string licenses = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes of the licenses to add.

Returns
TypeDescription
LocalDisk.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LocalDisk build()
Returns
TypeDescription
LocalDisk

buildPartial()

public LocalDisk buildPartial()
Returns
TypeDescription
LocalDisk

clear()

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

clearAutoDelete()

public LocalDisk.Builder clearAutoDelete()

Optional. Output only. Specifies 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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
LocalDisk.Builder

This builder for chaining.

clearBoot()

public LocalDisk.Builder clearBoot()

Optional. Output only. 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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
LocalDisk.Builder

This builder for chaining.

clearDeviceName()

public LocalDisk.Builder clearDeviceName()

Optional. Output only. Specifies 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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
LocalDisk.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearGuestOsFeatures()

public LocalDisk.Builder clearGuestOsFeatures()

Output only. 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.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
LocalDisk.Builder

clearIndex()

public LocalDisk.Builder clearIndex()

Output only. 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.

int32 index = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
LocalDisk.Builder

This builder for chaining.

clearInitializeParams()

public LocalDisk.Builder clearInitializeParams()

Input only. Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance.

This property is mutually exclusive with the source property; you can only define one or the other, but not both.

.google.cloud.notebooks.v1.LocalDiskInitializeParams initialize_params = 6 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
TypeDescription
LocalDisk.Builder

clearInterface()

public LocalDisk.Builder clearInterface()

Specifies 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
LocalDisk.Builder

This builder for chaining.

clearKind()

public LocalDisk.Builder clearKind()

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

string kind = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
LocalDisk.Builder

This builder for chaining.

clearLicenses()

public LocalDisk.Builder clearLicenses()

Output only. Any valid publicly visible licenses.

repeated string licenses = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
LocalDisk.Builder

This builder for chaining.

clearMode()

public LocalDisk.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
LocalDisk.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSource()

public LocalDisk.Builder clearSource()

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

string source = 11;

Returns
TypeDescription
LocalDisk.Builder

This builder for chaining.

clearType()

public LocalDisk.Builder clearType()

Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified, the default is PERSISTENT. Valid values:

  • PERSISTENT
  • SCRATCH

string type = 12;

Returns
TypeDescription
LocalDisk.Builder

This builder for chaining.

clone()

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

getAutoDelete()

public boolean getAutoDelete()

Optional. Output only. Specifies 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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

The autoDelete.

getBoot()

public boolean getBoot()

Optional. Output only. 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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

The boot.

getDefaultInstanceForType()

public LocalDisk getDefaultInstanceForType()
Returns
TypeDescription
LocalDisk

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDeviceName()

public String getDeviceName()

Optional. Output only. Specifies 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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The deviceName.

getDeviceNameBytes()

public ByteString getDeviceNameBytes()

Optional. Output only. Specifies 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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for deviceName.

getGuestOsFeatures(int index)

public LocalDisk.RuntimeGuestOsFeature getGuestOsFeatures(int index)

Output only. 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.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
LocalDisk.RuntimeGuestOsFeature

getGuestOsFeaturesBuilder(int index)

public LocalDisk.RuntimeGuestOsFeature.Builder getGuestOsFeaturesBuilder(int index)

Output only. 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.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
LocalDisk.RuntimeGuestOsFeature.Builder

getGuestOsFeaturesBuilderList()

public List<LocalDisk.RuntimeGuestOsFeature.Builder> getGuestOsFeaturesBuilderList()

Output only. 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.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<Builder>

getGuestOsFeaturesCount()

public int getGuestOsFeaturesCount()

Output only. 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.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

getGuestOsFeaturesList()

public List<LocalDisk.RuntimeGuestOsFeature> getGuestOsFeaturesList()

Output only. 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.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<RuntimeGuestOsFeature>

getGuestOsFeaturesOrBuilder(int index)

public LocalDisk.RuntimeGuestOsFeatureOrBuilder getGuestOsFeaturesOrBuilder(int index)

Output only. 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.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
LocalDisk.RuntimeGuestOsFeatureOrBuilder

getGuestOsFeaturesOrBuilderList()

public List<? extends LocalDisk.RuntimeGuestOsFeatureOrBuilder> getGuestOsFeaturesOrBuilderList()

Output only. 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.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<? extends com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeatureOrBuilder>

getIndex()

public int getIndex()

Output only. 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.

int32 index = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The index.

getInitializeParams()

public LocalDiskInitializeParams getInitializeParams()

Input only. Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance.

This property is mutually exclusive with the source property; you can only define one or the other, but not both.

.google.cloud.notebooks.v1.LocalDiskInitializeParams initialize_params = 6 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
TypeDescription
LocalDiskInitializeParams

The initializeParams.

getInitializeParamsBuilder()

public LocalDiskInitializeParams.Builder getInitializeParamsBuilder()

Input only. Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance.

This property is mutually exclusive with the source property; you can only define one or the other, but not both.

.google.cloud.notebooks.v1.LocalDiskInitializeParams initialize_params = 6 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
TypeDescription
LocalDiskInitializeParams.Builder

getInitializeParamsOrBuilder()

public LocalDiskInitializeParamsOrBuilder getInitializeParamsOrBuilder()

Input only. Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance.

This property is mutually exclusive with the source property; you can only define one or the other, but not both.

.google.cloud.notebooks.v1.LocalDiskInitializeParams initialize_params = 6 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
TypeDescription
LocalDiskInitializeParamsOrBuilder

getInterface()

public String getInterface()

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

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

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

string kind = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The kind.

getKindBytes()

public ByteString getKindBytes()

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

string kind = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

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 = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

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 = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

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 = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The count of licenses.

getLicensesList()

public ProtocolStringList getLicensesList()

Output only. Any valid publicly visible licenses.

repeated string licenses = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

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

string source = 11;

Returns
TypeDescription
String

The source.

getSourceBytes()

public ByteString getSourceBytes()

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

Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified, the default is PERSISTENT. Valid values:

  • PERSISTENT
  • SCRATCH

string type = 12;

Returns
TypeDescription
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified, the default is PERSISTENT. Valid values:

  • PERSISTENT
  • SCRATCH

string type = 12;

Returns
TypeDescription
ByteString

The bytes for type.

hasInitializeParams()

public boolean hasInitializeParams()

Input only. Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance.

This property is mutually exclusive with the source property; you can only define one or the other, but not both.

.google.cloud.notebooks.v1.LocalDiskInitializeParams initialize_params = 6 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
TypeDescription
boolean

Whether the initializeParams field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(LocalDisk other)

public LocalDisk.Builder mergeFrom(LocalDisk other)
Parameter
NameDescription
otherLocalDisk
Returns
TypeDescription
LocalDisk.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeInitializeParams(LocalDiskInitializeParams value)

public LocalDisk.Builder mergeInitializeParams(LocalDiskInitializeParams value)

Input only. Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance.

This property is mutually exclusive with the source property; you can only define one or the other, but not both.

.google.cloud.notebooks.v1.LocalDiskInitializeParams initialize_params = 6 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
NameDescription
valueLocalDiskInitializeParams
Returns
TypeDescription
LocalDisk.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeGuestOsFeatures(int index)

public LocalDisk.Builder removeGuestOsFeatures(int index)

Output only. 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.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
LocalDisk.Builder

setAutoDelete(boolean value)

public LocalDisk.Builder setAutoDelete(boolean value)

Optional. Output only. Specifies 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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueboolean

The autoDelete to set.

Returns
TypeDescription
LocalDisk.Builder

This builder for chaining.

setBoot(boolean value)

public LocalDisk.Builder setBoot(boolean value)

Optional. Output only. 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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueboolean

The boot to set.

Returns
TypeDescription
LocalDisk.Builder

This builder for chaining.

setDeviceName(String value)

public LocalDisk.Builder setDeviceName(String value)

Optional. Output only. Specifies 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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The deviceName to set.

Returns
TypeDescription
LocalDisk.Builder

This builder for chaining.

setDeviceNameBytes(ByteString value)

public LocalDisk.Builder setDeviceNameBytes(ByteString value)

Optional. Output only. Specifies 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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for deviceName to set.

Returns
TypeDescription
LocalDisk.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setGuestOsFeatures(int index, LocalDisk.RuntimeGuestOsFeature value)

public LocalDisk.Builder setGuestOsFeatures(int index, LocalDisk.RuntimeGuestOsFeature value)

Output only. 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.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
valueLocalDisk.RuntimeGuestOsFeature
Returns
TypeDescription
LocalDisk.Builder

setGuestOsFeatures(int index, LocalDisk.RuntimeGuestOsFeature.Builder builderForValue)

public LocalDisk.Builder setGuestOsFeatures(int index, LocalDisk.RuntimeGuestOsFeature.Builder builderForValue)

Output only. 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.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
builderForValueLocalDisk.RuntimeGuestOsFeature.Builder
Returns
TypeDescription
LocalDisk.Builder

setIndex(int value)

public LocalDisk.Builder setIndex(int value)

Output only. 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.

int32 index = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

The index to set.

Returns
TypeDescription
LocalDisk.Builder

This builder for chaining.

setInitializeParams(LocalDiskInitializeParams value)

public LocalDisk.Builder setInitializeParams(LocalDiskInitializeParams value)

Input only. Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance.

This property is mutually exclusive with the source property; you can only define one or the other, but not both.

.google.cloud.notebooks.v1.LocalDiskInitializeParams initialize_params = 6 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
NameDescription
valueLocalDiskInitializeParams
Returns
TypeDescription
LocalDisk.Builder

setInitializeParams(LocalDiskInitializeParams.Builder builderForValue)

public LocalDisk.Builder setInitializeParams(LocalDiskInitializeParams.Builder builderForValue)

Input only. Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance.

This property is mutually exclusive with the source property; you can only define one or the other, but not both.

.google.cloud.notebooks.v1.LocalDiskInitializeParams initialize_params = 6 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
NameDescription
builderForValueLocalDiskInitializeParams.Builder
Returns
TypeDescription
LocalDisk.Builder

setInterface(String value)

public LocalDisk.Builder setInterface(String value)

Specifies 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
LocalDisk.Builder

This builder for chaining.

setInterfaceBytes(ByteString value)

public LocalDisk.Builder setInterfaceBytes(ByteString value)

Specifies 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
LocalDisk.Builder

This builder for chaining.

setKind(String value)

public LocalDisk.Builder setKind(String value)

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

string kind = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The kind to set.

Returns
TypeDescription
LocalDisk.Builder

This builder for chaining.

setKindBytes(ByteString value)

public LocalDisk.Builder setKindBytes(ByteString value)

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

string kind = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for kind to set.

Returns
TypeDescription
LocalDisk.Builder

This builder for chaining.

setLicenses(int index, String value)

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

Output only. Any valid publicly visible licenses.

repeated string licenses = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The licenses to set.

Returns
TypeDescription
LocalDisk.Builder

This builder for chaining.

setMode(String value)

public LocalDisk.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
LocalDisk.Builder

This builder for chaining.

setModeBytes(ByteString value)

public LocalDisk.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
LocalDisk.Builder

This builder for chaining.

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

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

setSource(String value)

public LocalDisk.Builder setSource(String value)

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

string source = 11;

Parameter
NameDescription
valueString

The source to set.

Returns
TypeDescription
LocalDisk.Builder

This builder for chaining.

setSourceBytes(ByteString value)

public LocalDisk.Builder setSourceBytes(ByteString value)

Specifies 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
LocalDisk.Builder

This builder for chaining.

setType(String value)

public LocalDisk.Builder setType(String value)

Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified, the default is PERSISTENT. Valid values:

  • PERSISTENT
  • SCRATCH

string type = 12;

Parameter
NameDescription
valueString

The type to set.

Returns
TypeDescription
LocalDisk.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public LocalDisk.Builder setTypeBytes(ByteString value)

Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified, the default is PERSISTENT. Valid values:

  • PERSISTENT
  • SCRATCH

string type = 12;

Parameter
NameDescription
valueByteString

The bytes for type to set.

Returns
TypeDescription
LocalDisk.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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