Package com.google.cloud.notebooks.v1
Class Instance.Disk.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Instance.Disk.Builder>
-
- com.google.cloud.notebooks.v1.Instance.Disk.Builder
-
- All Implemented Interfaces:
Instance.DiskOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- Instance.Disk
public static final class Instance.Disk.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Instance.Disk.Builder> implements Instance.DiskOrBuilder
An instance-attached disk resource.
Protobuf typegoogle.cloud.notebooks.v1.Instance.Disk
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Instance.Disk.Builder
addAllGuestOsFeatures(Iterable<? extends Instance.Disk.GuestOsFeature> values)
Indicates a list of features to enable on the guest operating system.Instance.Disk.Builder
addAllLicenses(Iterable<String> values)
A list of publicly visible licenses.Instance.Disk.Builder
addGuestOsFeatures(int index, Instance.Disk.GuestOsFeature value)
Indicates a list of features to enable on the guest operating system.Instance.Disk.Builder
addGuestOsFeatures(int index, Instance.Disk.GuestOsFeature.Builder builderForValue)
Indicates a list of features to enable on the guest operating system.Instance.Disk.Builder
addGuestOsFeatures(Instance.Disk.GuestOsFeature value)
Indicates a list of features to enable on the guest operating system.Instance.Disk.Builder
addGuestOsFeatures(Instance.Disk.GuestOsFeature.Builder builderForValue)
Indicates a list of features to enable on the guest operating system.Instance.Disk.GuestOsFeature.Builder
addGuestOsFeaturesBuilder()
Indicates a list of features to enable on the guest operating system.Instance.Disk.GuestOsFeature.Builder
addGuestOsFeaturesBuilder(int index)
Indicates a list of features to enable on the guest operating system.Instance.Disk.Builder
addLicenses(String value)
A list of publicly visible licenses.Instance.Disk.Builder
addLicensesBytes(com.google.protobuf.ByteString value)
A list of publicly visible licenses.Instance.Disk.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Instance.Disk
build()
Instance.Disk
buildPartial()
Instance.Disk.Builder
clear()
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).Instance.Disk.Builder
clearBoot()
Indicates that this is a boot disk.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.Instance.Disk.Builder
clearDiskSizeGb()
Indicates the size of the disk in base-2 GB.Instance.Disk.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Instance.Disk.Builder
clearGuestOsFeatures()
Indicates a list of features to enable on the guest operating system.Instance.Disk.Builder
clearIndex()
A zero-based index to this disk, where 0 is reserved for the boot disk.Instance.Disk.Builder
clearInterface()
Indicates the disk interface to use for attaching this disk, which is either SCSI or NVME.Instance.Disk.Builder
clearKind()
Type of the resource.Instance.Disk.Builder
clearLicenses()
A list of publicly visible licenses.Instance.Disk.Builder
clearMode()
The mode in which to attach this disk, either `READ_WRITE` or `READ_ONLY`.Instance.Disk.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Instance.Disk.Builder
clearSource()
Indicates a valid partial or full URL to an existing Persistent Disk resource.Instance.Disk.Builder
clearType()
Indicates the type of the disk, either `SCRATCH` or `PERSISTENT`.Instance.Disk.Builder
clone()
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).boolean
getBoot()
Indicates that this is a boot disk.Instance.Disk
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
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.com.google.protobuf.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.long
getDiskSizeGb()
Indicates the size of the disk in base-2 GB.Instance.Disk.GuestOsFeature
getGuestOsFeatures(int index)
Indicates a list of features to enable on the guest operating system.Instance.Disk.GuestOsFeature.Builder
getGuestOsFeaturesBuilder(int index)
Indicates a list of features to enable on the guest operating system.List<Instance.Disk.GuestOsFeature.Builder>
getGuestOsFeaturesBuilderList()
Indicates a list of features to enable on the guest operating system.int
getGuestOsFeaturesCount()
Indicates a list of features to enable on the guest operating system.List<Instance.Disk.GuestOsFeature>
getGuestOsFeaturesList()
Indicates a list of features to enable on the guest operating system.Instance.Disk.GuestOsFeatureOrBuilder
getGuestOsFeaturesOrBuilder(int index)
Indicates a list of features to enable on the guest operating system.List<? extends Instance.Disk.GuestOsFeatureOrBuilder>
getGuestOsFeaturesOrBuilderList()
Indicates a list of features to enable on the guest operating system.long
getIndex()
A zero-based index to this disk, where 0 is reserved for the boot disk.String
getInterface()
Indicates the disk interface to use for attaching this disk, which is either SCSI or NVME.com.google.protobuf.ByteString
getInterfaceBytes()
Indicates the disk interface to use for attaching this disk, which is either SCSI or NVME.String
getKind()
Type of the resource.com.google.protobuf.ByteString
getKindBytes()
Type of the resource.String
getLicenses(int index)
A list of publicly visible licenses.com.google.protobuf.ByteString
getLicensesBytes(int index)
A list of publicly visible licenses.int
getLicensesCount()
A list of publicly visible licenses.com.google.protobuf.ProtocolStringList
getLicensesList()
A list of publicly visible licenses.String
getMode()
The mode in which to attach this disk, either `READ_WRITE` or `READ_ONLY`.com.google.protobuf.ByteString
getModeBytes()
The mode in which to attach this disk, either `READ_WRITE` or `READ_ONLY`.String
getSource()
Indicates a valid partial or full URL to an existing Persistent Disk resource.com.google.protobuf.ByteString
getSourceBytes()
Indicates a valid partial or full URL to an existing Persistent Disk resource.String
getType()
Indicates the type of the disk, either `SCRATCH` or `PERSISTENT`.com.google.protobuf.ByteString
getTypeBytes()
Indicates the type of the disk, either `SCRATCH` or `PERSISTENT`.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Instance.Disk.Builder
mergeFrom(Instance.Disk other)
Instance.Disk.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Instance.Disk.Builder
mergeFrom(com.google.protobuf.Message other)
Instance.Disk.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Instance.Disk.Builder
removeGuestOsFeatures(int index)
Indicates a list of features to enable on the guest operating system.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).Instance.Disk.Builder
setBoot(boolean value)
Indicates that this is a boot disk.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.Instance.Disk.Builder
setDeviceNameBytes(com.google.protobuf.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.Instance.Disk.Builder
setDiskSizeGb(long value)
Indicates the size of the disk in base-2 GB.Instance.Disk.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Instance.Disk.Builder
setGuestOsFeatures(int index, Instance.Disk.GuestOsFeature value)
Indicates a list of features to enable on the guest operating system.Instance.Disk.Builder
setGuestOsFeatures(int index, Instance.Disk.GuestOsFeature.Builder builderForValue)
Indicates a list of features to enable on the guest operating system.Instance.Disk.Builder
setIndex(long value)
A zero-based index to this disk, where 0 is reserved for the boot disk.Instance.Disk.Builder
setInterface(String value)
Indicates the disk interface to use for attaching this disk, which is either SCSI or NVME.Instance.Disk.Builder
setInterfaceBytes(com.google.protobuf.ByteString value)
Indicates the disk interface to use for attaching this disk, which is either SCSI or NVME.Instance.Disk.Builder
setKind(String value)
Type of the resource.Instance.Disk.Builder
setKindBytes(com.google.protobuf.ByteString value)
Type of the resource.Instance.Disk.Builder
setLicenses(int index, String value)
A list of publicly visible licenses.Instance.Disk.Builder
setMode(String value)
The mode in which to attach this disk, either `READ_WRITE` or `READ_ONLY`.Instance.Disk.Builder
setModeBytes(com.google.protobuf.ByteString value)
The mode in which to attach this disk, either `READ_WRITE` or `READ_ONLY`.Instance.Disk.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Instance.Disk.Builder
setSource(String value)
Indicates a valid partial or full URL to an existing Persistent Disk resource.Instance.Disk.Builder
setSourceBytes(com.google.protobuf.ByteString value)
Indicates a valid partial or full URL to an existing Persistent Disk resource.Instance.Disk.Builder
setType(String value)
Indicates the type of the disk, either `SCRATCH` or `PERSISTENT`.Instance.Disk.Builder
setTypeBytes(com.google.protobuf.ByteString value)
Indicates the type of the disk, either `SCRATCH` or `PERSISTENT`.Instance.Disk.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.Disk.Builder>
-
clear
public Instance.Disk.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.Disk.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.Disk.Builder>
-
getDefaultInstanceForType
public Instance.Disk getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Instance.Disk build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Instance.Disk buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Instance.Disk.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.Disk.Builder>
-
setField
public Instance.Disk.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.Disk.Builder>
-
clearField
public Instance.Disk.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.Disk.Builder>
-
clearOneof
public Instance.Disk.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.Disk.Builder>
-
setRepeatedField
public Instance.Disk.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.Disk.Builder>
-
addRepeatedField
public Instance.Disk.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.Disk.Builder>
-
mergeFrom
public Instance.Disk.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Instance.Disk.Builder>
-
mergeFrom
public Instance.Disk.Builder mergeFrom(Instance.Disk other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.Disk.Builder>
-
mergeFrom
public Instance.Disk.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Instance.Disk.Builder>
- Throws:
IOException
-
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;
- Specified by:
getAutoDelete
in interfaceInstance.DiskOrBuilder
- Returns:
- The autoDelete.
-
setAutoDelete
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;
- Parameters:
value
- The autoDelete to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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;
- Specified by:
getBoot
in interfaceInstance.DiskOrBuilder
- Returns:
- The boot.
-
setBoot
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;
- Parameters:
value
- The boot to set.- Returns:
- 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:
- This builder for chaining.
-
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;
- Specified by:
getDeviceName
in interfaceInstance.DiskOrBuilder
- Returns:
- The deviceName.
-
getDeviceNameBytes
public com.google.protobuf.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;
- Specified by:
getDeviceNameBytes
in interfaceInstance.DiskOrBuilder
- Returns:
- The bytes for deviceName.
-
setDeviceName
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;
- Parameters:
value
- The deviceName to set.- Returns:
- 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:
- This builder for chaining.
-
setDeviceNameBytes
public Instance.Disk.Builder setDeviceNameBytes(com.google.protobuf.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;
- Parameters:
value
- The bytes for deviceName to set.- Returns:
- This builder for chaining.
-
getDiskSizeGb
public long getDiskSizeGb()
Indicates the size of the disk in base-2 GB.
int64 disk_size_gb = 4;
- Specified by:
getDiskSizeGb
in interfaceInstance.DiskOrBuilder
- Returns:
- The diskSizeGb.
-
setDiskSizeGb
public Instance.Disk.Builder setDiskSizeGb(long value)
Indicates the size of the disk in base-2 GB.
int64 disk_size_gb = 4;
- Parameters:
value
- The diskSizeGb to set.- Returns:
- 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:
- This builder for chaining.
-
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;
- Specified by:
getGuestOsFeaturesList
in interfaceInstance.DiskOrBuilder
-
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;
- Specified by:
getGuestOsFeaturesCount
in interfaceInstance.DiskOrBuilder
-
getGuestOsFeatures
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;
- Specified by:
getGuestOsFeatures
in interfaceInstance.DiskOrBuilder
-
setGuestOsFeatures
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;
-
setGuestOsFeatures
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;
-
addGuestOsFeatures
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;
-
addGuestOsFeatures
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;
-
addGuestOsFeatures
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;
-
addGuestOsFeatures
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;
-
addAllGuestOsFeatures
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;
-
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;
-
removeGuestOsFeatures
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;
-
getGuestOsFeaturesBuilder
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;
-
getGuestOsFeaturesOrBuilder
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;
- Specified by:
getGuestOsFeaturesOrBuilder
in interfaceInstance.DiskOrBuilder
-
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;
- Specified by:
getGuestOsFeaturesOrBuilderList
in interfaceInstance.DiskOrBuilder
-
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;
-
addGuestOsFeaturesBuilder
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;
-
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;
-
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;
- Specified by:
getIndex
in interfaceInstance.DiskOrBuilder
- Returns:
- The index.
-
setIndex
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;
- Parameters:
value
- The index to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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;
- Specified by:
getInterface
in interfaceInstance.DiskOrBuilder
- Returns:
- The interface.
-
getInterfaceBytes
public com.google.protobuf.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;
- Specified by:
getInterfaceBytes
in interfaceInstance.DiskOrBuilder
- Returns:
- The bytes for interface.
-
setInterface
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;
- Parameters:
value
- The interface to set.- Returns:
- 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:
- This builder for chaining.
-
setInterfaceBytes
public Instance.Disk.Builder setInterfaceBytes(com.google.protobuf.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;
- Parameters:
value
- The bytes for interface to set.- Returns:
- This builder for chaining.
-
getKind
public String getKind()
Type of the resource. Always compute#attachedDisk for attached disks.
string kind = 8;
- Specified by:
getKind
in interfaceInstance.DiskOrBuilder
- Returns:
- The kind.
-
getKindBytes
public com.google.protobuf.ByteString getKindBytes()
Type of the resource. Always compute#attachedDisk for attached disks.
string kind = 8;
- Specified by:
getKindBytes
in interfaceInstance.DiskOrBuilder
- Returns:
- The bytes for kind.
-
setKind
public Instance.Disk.Builder setKind(String value)
Type of the resource. Always compute#attachedDisk for attached disks.
string kind = 8;
- Parameters:
value
- The kind to set.- Returns:
- This builder for chaining.
-
clearKind
public Instance.Disk.Builder clearKind()
Type of the resource. Always compute#attachedDisk for attached disks.
string kind = 8;
- Returns:
- This builder for chaining.
-
setKindBytes
public Instance.Disk.Builder setKindBytes(com.google.protobuf.ByteString value)
Type of the resource. Always compute#attachedDisk for attached disks.
string kind = 8;
- Parameters:
value
- The bytes for kind to set.- Returns:
- This builder for chaining.
-
getLicensesList
public com.google.protobuf.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;
- Specified by:
getLicensesList
in interfaceInstance.DiskOrBuilder
- Returns:
- A list containing the licenses.
-
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;
- Specified by:
getLicensesCount
in interfaceInstance.DiskOrBuilder
- Returns:
- The count of licenses.
-
getLicenses
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;
- Specified by:
getLicenses
in interfaceInstance.DiskOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The licenses at the given index.
-
getLicensesBytes
public com.google.protobuf.ByteString getLicensesBytes(int index)
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;
- Specified by:
getLicensesBytes
in interfaceInstance.DiskOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the licenses at the given index.
-
setLicenses
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:
index
- The index to set the value at.value
- The licenses to set.- Returns:
- This builder for chaining.
-
addLicenses
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;
- Parameters:
value
- The licenses to add.- Returns:
- This builder for chaining.
-
addAllLicenses
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;
- Parameters:
values
- The licenses to add.- Returns:
- 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:
- This builder for chaining.
-
addLicensesBytes
public Instance.Disk.Builder addLicensesBytes(com.google.protobuf.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;
- Parameters:
value
- The bytes of the licenses to add.- Returns:
- This builder for chaining.
-
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;
- Specified by:
getMode
in interfaceInstance.DiskOrBuilder
- Returns:
- The mode.
-
getModeBytes
public com.google.protobuf.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;
- Specified by:
getModeBytes
in interfaceInstance.DiskOrBuilder
- Returns:
- The bytes for mode.
-
setMode
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;
- Parameters:
value
- The mode to set.- Returns:
- 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:
- This builder for chaining.
-
setModeBytes
public Instance.Disk.Builder setModeBytes(com.google.protobuf.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;
- Parameters:
value
- The bytes for mode to set.- Returns:
- This builder for chaining.
-
getSource
public String getSource()
Indicates a valid partial or full URL to an existing Persistent Disk resource.
string source = 11;
- Specified by:
getSource
in interfaceInstance.DiskOrBuilder
- Returns:
- The source.
-
getSourceBytes
public com.google.protobuf.ByteString getSourceBytes()
Indicates a valid partial or full URL to an existing Persistent Disk resource.
string source = 11;
- Specified by:
getSourceBytes
in interfaceInstance.DiskOrBuilder
- Returns:
- The bytes for source.
-
setSource
public Instance.Disk.Builder setSource(String value)
Indicates a valid partial or full URL to an existing Persistent Disk resource.
string source = 11;
- Parameters:
value
- The source to set.- Returns:
- This builder for chaining.
-
clearSource
public Instance.Disk.Builder clearSource()
Indicates a valid partial or full URL to an existing Persistent Disk resource.
string source = 11;
- Returns:
- This builder for chaining.
-
setSourceBytes
public Instance.Disk.Builder setSourceBytes(com.google.protobuf.ByteString value)
Indicates a valid partial or full URL to an existing Persistent Disk resource.
string source = 11;
- Parameters:
value
- The bytes for source to set.- Returns:
- This builder for chaining.
-
getType
public String getType()
Indicates the type of the disk, either `SCRATCH` or `PERSISTENT`. Valid values: * `PERSISTENT` * `SCRATCH`
string type = 12;
- Specified by:
getType
in interfaceInstance.DiskOrBuilder
- Returns:
- The type.
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()
Indicates the type of the disk, either `SCRATCH` or `PERSISTENT`. Valid values: * `PERSISTENT` * `SCRATCH`
string type = 12;
- Specified by:
getTypeBytes
in interfaceInstance.DiskOrBuilder
- Returns:
- The bytes for type.
-
setType
public Instance.Disk.Builder setType(String value)
Indicates the type of the disk, either `SCRATCH` or `PERSISTENT`. Valid values: * `PERSISTENT` * `SCRATCH`
string type = 12;
- Parameters:
value
- The type to set.- Returns:
- 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:
- This builder for chaining.
-
setTypeBytes
public Instance.Disk.Builder setTypeBytes(com.google.protobuf.ByteString value)
Indicates the type of the disk, either `SCRATCH` or `PERSISTENT`. Valid values: * `PERSISTENT` * `SCRATCH`
string type = 12;
- Parameters:
value
- The bytes for type to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Instance.Disk.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.Disk.Builder>
-
mergeUnknownFields
public final Instance.Disk.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.Disk.Builder>
-
-