public static final class Instance.Disk extends GeneratedMessageV3 implements Instance.DiskOrBuilder
An instance-attached disk resource.
Protobuf type google.cloud.notebooks.v1.Instance.Disk
Static Fields
AUTO_DELETE_FIELD_NUMBER
public static final int AUTO_DELETE_FIELD_NUMBER
Field Value
BOOT_FIELD_NUMBER
public static final int BOOT_FIELD_NUMBER
Field Value
DEVICE_NAME_FIELD_NUMBER
public static final int DEVICE_NAME_FIELD_NUMBER
Field Value
DISK_SIZE_GB_FIELD_NUMBER
public static final int DISK_SIZE_GB_FIELD_NUMBER
Field Value
GUEST_OS_FEATURES_FIELD_NUMBER
public static final int GUEST_OS_FEATURES_FIELD_NUMBER
Field Value
INDEX_FIELD_NUMBER
public static final int INDEX_FIELD_NUMBER
Field Value
INTERFACE_FIELD_NUMBER
public static final int INTERFACE_FIELD_NUMBER
Field Value
KIND_FIELD_NUMBER
public static final int KIND_FIELD_NUMBER
Field Value
LICENSES_FIELD_NUMBER
public static final int LICENSES_FIELD_NUMBER
Field Value
MODE_FIELD_NUMBER
public static final int MODE_FIELD_NUMBER
Field Value
SOURCE_FIELD_NUMBER
public static final int SOURCE_FIELD_NUMBER
Field Value
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static Instance.Disk getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static Instance.Disk.Builder newBuilder()
Returns
newBuilder(Instance.Disk prototype)
public static Instance.Disk.Builder newBuilder(Instance.Disk prototype)
Parameter
Returns
public static Instance.Disk parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Instance.Disk parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Instance.Disk parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Instance.Disk parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Instance.Disk parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Instance.Disk parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Instance.Disk parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Instance.Disk parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Instance.Disk parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Instance.Disk parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Instance.Disk parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Instance.Disk parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Instance.Disk> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
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
Type | Description |
boolean | The autoDelete.
|
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
getDefaultInstanceForType()
public Instance.Disk getDefaultInstanceForType()
Returns
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
Type | Description |
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
Type | Description |
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
Type | Description |
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
Returns
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
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
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
Returns
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
Type | Description |
List<? extends com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeatureOrBuilder> | |
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
Type | Description |
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:
string interface = 7;
Returns
Type | Description |
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:
string interface = 7;
Returns
getKind()
Type of the resource. Always compute#attachedDisk for attached
disks.
string kind = 8;
Returns
Type | Description |
String | The kind.
|
getKindBytes()
public ByteString getKindBytes()
Type of the resource. Always compute#attachedDisk for attached
disks.
string kind = 8;
Returns
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
Name | Description |
index | int
The index of the element to return.
|
Returns
Type | Description |
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
Name | Description |
index | int
The index of the value to return.
|
Returns
Type | Description |
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
Type | Description |
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
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:
string mode = 10;
Returns
Type | Description |
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:
string mode = 10;
Returns
getParserForType()
public Parser<Instance.Disk> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getSource()
public String getSource()
Indicates a valid partial or full URL to an existing Persistent Disk
resource.
string source = 11;
Returns
Type | Description |
String | The source.
|
getSourceBytes()
public ByteString getSourceBytes()
Indicates a valid partial or full URL to an existing Persistent Disk
resource.
string source = 11;
Returns
getType()
Indicates the type of the disk, either SCRATCH
or PERSISTENT
.
Valid values:
string type = 12;
Returns
Type | Description |
String | The type.
|
getTypeBytes()
public ByteString getTypeBytes()
Indicates the type of the disk, either SCRATCH
or PERSISTENT
.
Valid values:
string type = 12;
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public Instance.Disk.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Instance.Disk.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public Instance.Disk.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions