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.BuilderaddAllGuestOsFeatures(Iterable<? extends Instance.Disk.GuestOsFeature> values)Indicates a list of features to enable on the guest operating system.Instance.Disk.BuilderaddAllLicenses(Iterable<String> values)A list of publicly visible licenses.Instance.Disk.BuilderaddGuestOsFeatures(int index, Instance.Disk.GuestOsFeature value)Indicates a list of features to enable on the guest operating system.Instance.Disk.BuilderaddGuestOsFeatures(int index, Instance.Disk.GuestOsFeature.Builder builderForValue)Indicates a list of features to enable on the guest operating system.Instance.Disk.BuilderaddGuestOsFeatures(Instance.Disk.GuestOsFeature value)Indicates a list of features to enable on the guest operating system.Instance.Disk.BuilderaddGuestOsFeatures(Instance.Disk.GuestOsFeature.Builder builderForValue)Indicates a list of features to enable on the guest operating system.Instance.Disk.GuestOsFeature.BuilderaddGuestOsFeaturesBuilder()Indicates a list of features to enable on the guest operating system.Instance.Disk.GuestOsFeature.BuilderaddGuestOsFeaturesBuilder(int index)Indicates a list of features to enable on the guest operating system.Instance.Disk.BuilderaddLicenses(String value)A list of publicly visible licenses.Instance.Disk.BuilderaddLicensesBytes(com.google.protobuf.ByteString value)A list of publicly visible licenses.Instance.Disk.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Instance.Diskbuild()Instance.DiskbuildPartial()Instance.Disk.Builderclear()Instance.Disk.BuilderclearAutoDelete()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.BuilderclearBoot()Indicates that this is a boot disk.Instance.Disk.BuilderclearDeviceName()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.BuilderclearDiskSizeGb()Indicates the size of the disk in base-2 GB.Instance.Disk.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Instance.Disk.BuilderclearGuestOsFeatures()Indicates a list of features to enable on the guest operating system.Instance.Disk.BuilderclearIndex()A zero-based index to this disk, where 0 is reserved for the boot disk.Instance.Disk.BuilderclearInterface()Indicates the disk interface to use for attaching this disk, which is either SCSI or NVME.Instance.Disk.BuilderclearKind()Type of the resource.Instance.Disk.BuilderclearLicenses()A list of publicly visible licenses.Instance.Disk.BuilderclearMode()The mode in which to attach this disk, either `READ_WRITE` or `READ_ONLY`.Instance.Disk.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Instance.Disk.BuilderclearSource()Indicates a valid partial or full URL to an existing Persistent Disk resource.Instance.Disk.BuilderclearType()Indicates the type of the disk, either `SCRATCH` or `PERSISTENT`.Instance.Disk.Builderclone()booleangetAutoDelete()Indicates whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).booleangetBoot()Indicates that this is a boot disk.Instance.DiskgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetDeviceName()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.ByteStringgetDeviceNameBytes()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.longgetDiskSizeGb()Indicates the size of the disk in base-2 GB.Instance.Disk.GuestOsFeaturegetGuestOsFeatures(int index)Indicates a list of features to enable on the guest operating system.Instance.Disk.GuestOsFeature.BuildergetGuestOsFeaturesBuilder(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.intgetGuestOsFeaturesCount()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.GuestOsFeatureOrBuildergetGuestOsFeaturesOrBuilder(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.longgetIndex()A zero-based index to this disk, where 0 is reserved for the boot disk.StringgetInterface()Indicates the disk interface to use for attaching this disk, which is either SCSI or NVME.com.google.protobuf.ByteStringgetInterfaceBytes()Indicates the disk interface to use for attaching this disk, which is either SCSI or NVME.StringgetKind()Type of the resource.com.google.protobuf.ByteStringgetKindBytes()Type of the resource.StringgetLicenses(int index)A list of publicly visible licenses.com.google.protobuf.ByteStringgetLicensesBytes(int index)A list of publicly visible licenses.intgetLicensesCount()A list of publicly visible licenses.com.google.protobuf.ProtocolStringListgetLicensesList()A list of publicly visible licenses.StringgetMode()The mode in which to attach this disk, either `READ_WRITE` or `READ_ONLY`.com.google.protobuf.ByteStringgetModeBytes()The mode in which to attach this disk, either `READ_WRITE` or `READ_ONLY`.StringgetSource()Indicates a valid partial or full URL to an existing Persistent Disk resource.com.google.protobuf.ByteStringgetSourceBytes()Indicates a valid partial or full URL to an existing Persistent Disk resource.StringgetType()Indicates the type of the disk, either `SCRATCH` or `PERSISTENT`.com.google.protobuf.ByteStringgetTypeBytes()Indicates the type of the disk, either `SCRATCH` or `PERSISTENT`.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Instance.Disk.BuildermergeFrom(Instance.Disk other)Instance.Disk.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Instance.Disk.BuildermergeFrom(com.google.protobuf.Message other)Instance.Disk.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Instance.Disk.BuilderremoveGuestOsFeatures(int index)Indicates a list of features to enable on the guest operating system.Instance.Disk.BuildersetAutoDelete(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.BuildersetBoot(boolean value)Indicates that this is a boot disk.Instance.Disk.BuildersetDeviceName(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.BuildersetDeviceNameBytes(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.BuildersetDiskSizeGb(long value)Indicates the size of the disk in base-2 GB.Instance.Disk.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Instance.Disk.BuildersetGuestOsFeatures(int index, Instance.Disk.GuestOsFeature value)Indicates a list of features to enable on the guest operating system.Instance.Disk.BuildersetGuestOsFeatures(int index, Instance.Disk.GuestOsFeature.Builder builderForValue)Indicates a list of features to enable on the guest operating system.Instance.Disk.BuildersetIndex(long value)A zero-based index to this disk, where 0 is reserved for the boot disk.Instance.Disk.BuildersetInterface(String value)Indicates the disk interface to use for attaching this disk, which is either SCSI or NVME.Instance.Disk.BuildersetInterfaceBytes(com.google.protobuf.ByteString value)Indicates the disk interface to use for attaching this disk, which is either SCSI or NVME.Instance.Disk.BuildersetKind(String value)Type of the resource.Instance.Disk.BuildersetKindBytes(com.google.protobuf.ByteString value)Type of the resource.Instance.Disk.BuildersetLicenses(int index, String value)A list of publicly visible licenses.Instance.Disk.BuildersetMode(String value)The mode in which to attach this disk, either `READ_WRITE` or `READ_ONLY`.Instance.Disk.BuildersetModeBytes(com.google.protobuf.ByteString value)The mode in which to attach this disk, either `READ_WRITE` or `READ_ONLY`.Instance.Disk.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Instance.Disk.BuildersetSource(String value)Indicates a valid partial or full URL to an existing Persistent Disk resource.Instance.Disk.BuildersetSourceBytes(com.google.protobuf.ByteString value)Indicates a valid partial or full URL to an existing Persistent Disk resource.Instance.Disk.BuildersetType(String value)Indicates the type of the disk, either `SCRATCH` or `PERSISTENT`.Instance.Disk.BuildersetTypeBytes(com.google.protobuf.ByteString value)Indicates the type of the disk, either `SCRATCH` or `PERSISTENT`.Instance.Disk.BuildersetUnknownFields(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.Disk.Builder>
-
clear
public Instance.Disk.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.Disk.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.Disk.Builder>
-
getDefaultInstanceForType
public Instance.Disk getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Instance.Disk build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Instance.Disk buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Instance.Disk.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.Disk.Builder>
-
setField
public Instance.Disk.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.Disk.Builder>
-
clearField
public Instance.Disk.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.Disk.Builder>
-
clearOneof
public Instance.Disk.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin 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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.Disk.Builder>
-
addRepeatedField
public Instance.Disk.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.Disk.Builder>
-
mergeFrom
public Instance.Disk.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Instance.Disk.Builder>
-
mergeFrom
public Instance.Disk.Builder mergeFrom(Instance.Disk other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
getAutoDeletein 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:
getBootin 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:
getDeviceNamein 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:
getDeviceNameBytesin 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:
getDiskSizeGbin 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:
getGuestOsFeaturesListin 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:
getGuestOsFeaturesCountin 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:
getGuestOsFeaturesin 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:
getGuestOsFeaturesOrBuilderin 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:
getGuestOsFeaturesOrBuilderListin 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:
getIndexin 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:
getInterfacein 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:
getInterfaceBytesin 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:
getKindin 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:
getKindBytesin 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:
getLicensesListin 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:
getLicensesCountin 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:
getLicensesin 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:
getLicensesBytesin 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:
getModein 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:
getModeBytesin 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:
getSourcein 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:
getSourceBytesin 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:
getTypein 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:
getTypeBytesin 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.Disk.Builder>
-
mergeUnknownFields
public final Instance.Disk.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.Disk.Builder>
-
-