Package com.google.cloud.notebooks.v1
Class LocalDisk.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<LocalDisk.Builder>
-
- com.google.cloud.notebooks.v1.LocalDisk.Builder
-
- All Implemented Interfaces:
LocalDiskOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- LocalDisk
public static final class LocalDisk.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LocalDisk.Builder> implements LocalDiskOrBuilder
A Local attached disk resource.
Protobuf typegoogle.cloud.notebooks.v1.LocalDisk
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalDisk.Builder
addAllGuestOsFeatures(Iterable<? extends LocalDisk.RuntimeGuestOsFeature> values)
Output only.LocalDisk.Builder
addAllLicenses(Iterable<String> values)
Output only.LocalDisk.Builder
addGuestOsFeatures(int index, LocalDisk.RuntimeGuestOsFeature value)
Output only.LocalDisk.Builder
addGuestOsFeatures(int index, LocalDisk.RuntimeGuestOsFeature.Builder builderForValue)
Output only.LocalDisk.Builder
addGuestOsFeatures(LocalDisk.RuntimeGuestOsFeature value)
Output only.LocalDisk.Builder
addGuestOsFeatures(LocalDisk.RuntimeGuestOsFeature.Builder builderForValue)
Output only.LocalDisk.RuntimeGuestOsFeature.Builder
addGuestOsFeaturesBuilder()
Output only.LocalDisk.RuntimeGuestOsFeature.Builder
addGuestOsFeaturesBuilder(int index)
Output only.LocalDisk.Builder
addLicenses(String value)
Output only.LocalDisk.Builder
addLicensesBytes(com.google.protobuf.ByteString value)
Output only.LocalDisk.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
LocalDisk
build()
LocalDisk
buildPartial()
LocalDisk.Builder
clear()
LocalDisk.Builder
clearAutoDelete()
Optional.LocalDisk.Builder
clearBoot()
Optional.LocalDisk.Builder
clearDeviceName()
Optional.LocalDisk.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
LocalDisk.Builder
clearGuestOsFeatures()
Output only.LocalDisk.Builder
clearIndex()
Output only.LocalDisk.Builder
clearInitializeParams()
Input only.LocalDisk.Builder
clearInterface()
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME.LocalDisk.Builder
clearKind()
Output only.LocalDisk.Builder
clearLicenses()
Output only.LocalDisk.Builder
clearMode()
The mode in which to attach this disk, either `READ_WRITE` or `READ_ONLY`.LocalDisk.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
LocalDisk.Builder
clearSource()
Specifies a valid partial or full URL to an existing Persistent Disk resource.LocalDisk.Builder
clearType()
Specifies the type of the disk, either `SCRATCH` or `PERSISTENT`.LocalDisk.Builder
clone()
boolean
getAutoDelete()
Optional.boolean
getBoot()
Optional.LocalDisk
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getDeviceName()
Optional.com.google.protobuf.ByteString
getDeviceNameBytes()
Optional.LocalDisk.RuntimeGuestOsFeature
getGuestOsFeatures(int index)
Output only.LocalDisk.RuntimeGuestOsFeature.Builder
getGuestOsFeaturesBuilder(int index)
Output only.List<LocalDisk.RuntimeGuestOsFeature.Builder>
getGuestOsFeaturesBuilderList()
Output only.int
getGuestOsFeaturesCount()
Output only.List<LocalDisk.RuntimeGuestOsFeature>
getGuestOsFeaturesList()
Output only.LocalDisk.RuntimeGuestOsFeatureOrBuilder
getGuestOsFeaturesOrBuilder(int index)
Output only.List<? extends LocalDisk.RuntimeGuestOsFeatureOrBuilder>
getGuestOsFeaturesOrBuilderList()
Output only.int
getIndex()
Output only.LocalDiskInitializeParams
getInitializeParams()
Input only.LocalDiskInitializeParams.Builder
getInitializeParamsBuilder()
Input only.LocalDiskInitializeParamsOrBuilder
getInitializeParamsOrBuilder()
Input only.String
getInterface()
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME.com.google.protobuf.ByteString
getInterfaceBytes()
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME.String
getKind()
Output only.com.google.protobuf.ByteString
getKindBytes()
Output only.String
getLicenses(int index)
Output only.com.google.protobuf.ByteString
getLicensesBytes(int index)
Output only.int
getLicensesCount()
Output only.com.google.protobuf.ProtocolStringList
getLicensesList()
Output only.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()
Specifies a valid partial or full URL to an existing Persistent Disk resource.com.google.protobuf.ByteString
getSourceBytes()
Specifies a valid partial or full URL to an existing Persistent Disk resource.String
getType()
Specifies the type of the disk, either `SCRATCH` or `PERSISTENT`.com.google.protobuf.ByteString
getTypeBytes()
Specifies the type of the disk, either `SCRATCH` or `PERSISTENT`.boolean
hasInitializeParams()
Input only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
LocalDisk.Builder
mergeFrom(LocalDisk other)
LocalDisk.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
LocalDisk.Builder
mergeFrom(com.google.protobuf.Message other)
LocalDisk.Builder
mergeInitializeParams(LocalDiskInitializeParams value)
Input only.LocalDisk.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
LocalDisk.Builder
removeGuestOsFeatures(int index)
Output only.LocalDisk.Builder
setAutoDelete(boolean value)
Optional.LocalDisk.Builder
setBoot(boolean value)
Optional.LocalDisk.Builder
setDeviceName(String value)
Optional.LocalDisk.Builder
setDeviceNameBytes(com.google.protobuf.ByteString value)
Optional.LocalDisk.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
LocalDisk.Builder
setGuestOsFeatures(int index, LocalDisk.RuntimeGuestOsFeature value)
Output only.LocalDisk.Builder
setGuestOsFeatures(int index, LocalDisk.RuntimeGuestOsFeature.Builder builderForValue)
Output only.LocalDisk.Builder
setIndex(int value)
Output only.LocalDisk.Builder
setInitializeParams(LocalDiskInitializeParams value)
Input only.LocalDisk.Builder
setInitializeParams(LocalDiskInitializeParams.Builder builderForValue)
Input only.LocalDisk.Builder
setInterface(String value)
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME.LocalDisk.Builder
setInterfaceBytes(com.google.protobuf.ByteString value)
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME.LocalDisk.Builder
setKind(String value)
Output only.LocalDisk.Builder
setKindBytes(com.google.protobuf.ByteString value)
Output only.LocalDisk.Builder
setLicenses(int index, String value)
Output only.LocalDisk.Builder
setMode(String value)
The mode in which to attach this disk, either `READ_WRITE` or `READ_ONLY`.LocalDisk.Builder
setModeBytes(com.google.protobuf.ByteString value)
The mode in which to attach this disk, either `READ_WRITE` or `READ_ONLY`.LocalDisk.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
LocalDisk.Builder
setSource(String value)
Specifies a valid partial or full URL to an existing Persistent Disk resource.LocalDisk.Builder
setSourceBytes(com.google.protobuf.ByteString value)
Specifies a valid partial or full URL to an existing Persistent Disk resource.LocalDisk.Builder
setType(String value)
Specifies the type of the disk, either `SCRATCH` or `PERSISTENT`.LocalDisk.Builder
setTypeBytes(com.google.protobuf.ByteString value)
Specifies the type of the disk, either `SCRATCH` or `PERSISTENT`.LocalDisk.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<LocalDisk.Builder>
-
clear
public LocalDisk.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<LocalDisk.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<LocalDisk.Builder>
-
getDefaultInstanceForType
public LocalDisk getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public LocalDisk build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public LocalDisk buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public LocalDisk.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<LocalDisk.Builder>
-
setField
public LocalDisk.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<LocalDisk.Builder>
-
clearField
public LocalDisk.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<LocalDisk.Builder>
-
clearOneof
public LocalDisk.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<LocalDisk.Builder>
-
setRepeatedField
public LocalDisk.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<LocalDisk.Builder>
-
addRepeatedField
public LocalDisk.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<LocalDisk.Builder>
-
mergeFrom
public LocalDisk.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<LocalDisk.Builder>
-
mergeFrom
public LocalDisk.Builder mergeFrom(LocalDisk other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<LocalDisk.Builder>
-
mergeFrom
public LocalDisk.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<LocalDisk.Builder>
- Throws:
IOException
-
getAutoDelete
public boolean getAutoDelete()
Optional. Output only. Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
bool auto_delete = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getAutoDelete
in interfaceLocalDiskOrBuilder
- Returns:
- The autoDelete.
-
setAutoDelete
public LocalDisk.Builder setAutoDelete(boolean value)
Optional. Output only. Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
bool auto_delete = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The autoDelete to set.- Returns:
- This builder for chaining.
-
clearAutoDelete
public LocalDisk.Builder clearAutoDelete()
Optional. Output only. Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
bool auto_delete = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
getBoot
public boolean getBoot()
Optional. Output only. Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
bool boot = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getBoot
in interfaceLocalDiskOrBuilder
- Returns:
- The boot.
-
setBoot
public LocalDisk.Builder setBoot(boolean value)
Optional. Output only. Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
bool boot = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The boot to set.- Returns:
- This builder for chaining.
-
clearBoot
public LocalDisk.Builder clearBoot()
Optional. Output only. Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
bool boot = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
getDeviceName
public String getDeviceName()
Optional. Output only. Specifies a unique device name of your choice that is reflected into the `/dev/disk/by-id/google-*` tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance. If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disk-x, where x is a number assigned by Google Compute Engine. This field is only applicable for persistent disks.
string device_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getDeviceName
in interfaceLocalDiskOrBuilder
- Returns:
- The deviceName.
-
getDeviceNameBytes
public com.google.protobuf.ByteString getDeviceNameBytes()
Optional. Output only. Specifies a unique device name of your choice that is reflected into the `/dev/disk/by-id/google-*` tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance. If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disk-x, where x is a number assigned by Google Compute Engine. This field is only applicable for persistent disks.
string device_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getDeviceNameBytes
in interfaceLocalDiskOrBuilder
- Returns:
- The bytes for deviceName.
-
setDeviceName
public LocalDisk.Builder setDeviceName(String value)
Optional. Output only. Specifies a unique device name of your choice that is reflected into the `/dev/disk/by-id/google-*` tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance. If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disk-x, where x is a number assigned by Google Compute Engine. This field is only applicable for persistent disks.
string device_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The deviceName to set.- Returns:
- This builder for chaining.
-
clearDeviceName
public LocalDisk.Builder clearDeviceName()
Optional. Output only. Specifies a unique device name of your choice that is reflected into the `/dev/disk/by-id/google-*` tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance. If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disk-x, where x is a number assigned by Google Compute Engine. This field is only applicable for persistent disks.
string device_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
setDeviceNameBytes
public LocalDisk.Builder setDeviceNameBytes(com.google.protobuf.ByteString value)
Optional. Output only. Specifies a unique device name of your choice that is reflected into the `/dev/disk/by-id/google-*` tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance. If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disk-x, where x is a number assigned by Google Compute Engine. This field is only applicable for persistent disks.
string device_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The bytes for deviceName to set.- Returns:
- This builder for chaining.
-
getGuestOsFeaturesList
public List<LocalDisk.RuntimeGuestOsFeature> getGuestOsFeaturesList()
Output only. Indicates a list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getGuestOsFeaturesList
in interfaceLocalDiskOrBuilder
-
getGuestOsFeaturesCount
public int getGuestOsFeaturesCount()
Output only. Indicates a list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getGuestOsFeaturesCount
in interfaceLocalDiskOrBuilder
-
getGuestOsFeatures
public LocalDisk.RuntimeGuestOsFeature getGuestOsFeatures(int index)
Output only. Indicates a list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getGuestOsFeatures
in interfaceLocalDiskOrBuilder
-
setGuestOsFeatures
public LocalDisk.Builder setGuestOsFeatures(int index, LocalDisk.RuntimeGuestOsFeature value)
Output only. Indicates a list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setGuestOsFeatures
public LocalDisk.Builder setGuestOsFeatures(int index, LocalDisk.RuntimeGuestOsFeature.Builder builderForValue)
Output only. Indicates a list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
addGuestOsFeatures
public LocalDisk.Builder addGuestOsFeatures(LocalDisk.RuntimeGuestOsFeature value)
Output only. Indicates a list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
addGuestOsFeatures
public LocalDisk.Builder addGuestOsFeatures(int index, LocalDisk.RuntimeGuestOsFeature value)
Output only. Indicates a list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
addGuestOsFeatures
public LocalDisk.Builder addGuestOsFeatures(LocalDisk.RuntimeGuestOsFeature.Builder builderForValue)
Output only. Indicates a list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
addGuestOsFeatures
public LocalDisk.Builder addGuestOsFeatures(int index, LocalDisk.RuntimeGuestOsFeature.Builder builderForValue)
Output only. Indicates a list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
addAllGuestOsFeatures
public LocalDisk.Builder addAllGuestOsFeatures(Iterable<? extends LocalDisk.RuntimeGuestOsFeature> values)
Output only. Indicates a list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearGuestOsFeatures
public LocalDisk.Builder clearGuestOsFeatures()
Output only. Indicates a list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
removeGuestOsFeatures
public LocalDisk.Builder removeGuestOsFeatures(int index)
Output only. Indicates a list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getGuestOsFeaturesBuilder
public LocalDisk.RuntimeGuestOsFeature.Builder getGuestOsFeaturesBuilder(int index)
Output only. Indicates a list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getGuestOsFeaturesOrBuilder
public LocalDisk.RuntimeGuestOsFeatureOrBuilder getGuestOsFeaturesOrBuilder(int index)
Output only. Indicates a list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getGuestOsFeaturesOrBuilder
in interfaceLocalDiskOrBuilder
-
getGuestOsFeaturesOrBuilderList
public List<? extends LocalDisk.RuntimeGuestOsFeatureOrBuilder> getGuestOsFeaturesOrBuilderList()
Output only. Indicates a list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getGuestOsFeaturesOrBuilderList
in interfaceLocalDiskOrBuilder
-
addGuestOsFeaturesBuilder
public LocalDisk.RuntimeGuestOsFeature.Builder addGuestOsFeaturesBuilder()
Output only. Indicates a list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
addGuestOsFeaturesBuilder
public LocalDisk.RuntimeGuestOsFeature.Builder addGuestOsFeaturesBuilder(int index)
Output only. Indicates a list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getGuestOsFeaturesBuilderList
public List<LocalDisk.RuntimeGuestOsFeature.Builder> getGuestOsFeaturesBuilderList()
Output only. Indicates a list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getIndex
public int getIndex()
Output only. A zero-based index to this disk, where 0 is reserved for the boot disk. If you have many disks attached to an instance, each disk would have a unique index number.
int32 index = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getIndex
in interfaceLocalDiskOrBuilder
- Returns:
- The index.
-
setIndex
public LocalDisk.Builder setIndex(int value)
Output only. A zero-based index to this disk, where 0 is reserved for the boot disk. If you have many disks attached to an instance, each disk would have a unique index number.
int32 index = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The index to set.- Returns:
- This builder for chaining.
-
clearIndex
public LocalDisk.Builder clearIndex()
Output only. A zero-based index to this disk, where 0 is reserved for the boot disk. If you have many disks attached to an instance, each disk would have a unique index number.
int32 index = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
hasInitializeParams
public boolean hasInitializeParams()
Input only. Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance. This property is mutually exclusive with the source property; you can only define one or the other, but not both.
.google.cloud.notebooks.v1.LocalDiskInitializeParams initialize_params = 6 [(.google.api.field_behavior) = INPUT_ONLY];
- Specified by:
hasInitializeParams
in interfaceLocalDiskOrBuilder
- Returns:
- Whether the initializeParams field is set.
-
getInitializeParams
public LocalDiskInitializeParams getInitializeParams()
Input only. Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance. This property is mutually exclusive with the source property; you can only define one or the other, but not both.
.google.cloud.notebooks.v1.LocalDiskInitializeParams initialize_params = 6 [(.google.api.field_behavior) = INPUT_ONLY];
- Specified by:
getInitializeParams
in interfaceLocalDiskOrBuilder
- Returns:
- The initializeParams.
-
setInitializeParams
public LocalDisk.Builder setInitializeParams(LocalDiskInitializeParams value)
Input only. Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance. This property is mutually exclusive with the source property; you can only define one or the other, but not both.
.google.cloud.notebooks.v1.LocalDiskInitializeParams initialize_params = 6 [(.google.api.field_behavior) = INPUT_ONLY];
-
setInitializeParams
public LocalDisk.Builder setInitializeParams(LocalDiskInitializeParams.Builder builderForValue)
Input only. Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance. This property is mutually exclusive with the source property; you can only define one or the other, but not both.
.google.cloud.notebooks.v1.LocalDiskInitializeParams initialize_params = 6 [(.google.api.field_behavior) = INPUT_ONLY];
-
mergeInitializeParams
public LocalDisk.Builder mergeInitializeParams(LocalDiskInitializeParams value)
Input only. Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance. This property is mutually exclusive with the source property; you can only define one or the other, but not both.
.google.cloud.notebooks.v1.LocalDiskInitializeParams initialize_params = 6 [(.google.api.field_behavior) = INPUT_ONLY];
-
clearInitializeParams
public LocalDisk.Builder clearInitializeParams()
Input only. Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance. This property is mutually exclusive with the source property; you can only define one or the other, but not both.
.google.cloud.notebooks.v1.LocalDiskInitializeParams initialize_params = 6 [(.google.api.field_behavior) = INPUT_ONLY];
-
getInitializeParamsBuilder
public LocalDiskInitializeParams.Builder getInitializeParamsBuilder()
Input only. Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance. This property is mutually exclusive with the source property; you can only define one or the other, but not both.
.google.cloud.notebooks.v1.LocalDiskInitializeParams initialize_params = 6 [(.google.api.field_behavior) = INPUT_ONLY];
-
getInitializeParamsOrBuilder
public LocalDiskInitializeParamsOrBuilder getInitializeParamsOrBuilder()
Input only. Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance. This property is mutually exclusive with the source property; you can only define one or the other, but not both.
.google.cloud.notebooks.v1.LocalDiskInitializeParams initialize_params = 6 [(.google.api.field_behavior) = INPUT_ONLY];
- Specified by:
getInitializeParamsOrBuilder
in interfaceLocalDiskOrBuilder
-
getInterface
public String getInterface()
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance. Valid values: * `NVME` * `SCSI`
string interface = 7;
- Specified by:
getInterface
in interfaceLocalDiskOrBuilder
- Returns:
- The interface.
-
getInterfaceBytes
public com.google.protobuf.ByteString getInterfaceBytes()
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance. Valid values: * `NVME` * `SCSI`
string interface = 7;
- Specified by:
getInterfaceBytes
in interfaceLocalDiskOrBuilder
- Returns:
- The bytes for interface.
-
setInterface
public LocalDisk.Builder setInterface(String value)
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance. Valid values: * `NVME` * `SCSI`
string interface = 7;
- Parameters:
value
- The interface to set.- Returns:
- This builder for chaining.
-
clearInterface
public LocalDisk.Builder clearInterface()
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance. Valid values: * `NVME` * `SCSI`
string interface = 7;
- Returns:
- This builder for chaining.
-
setInterfaceBytes
public LocalDisk.Builder setInterfaceBytes(com.google.protobuf.ByteString value)
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance. Valid values: * `NVME` * `SCSI`
string interface = 7;
- Parameters:
value
- The bytes for interface to set.- Returns:
- This builder for chaining.
-
getKind
public String getKind()
Output only. Type of the resource. Always compute#attachedDisk for attached disks.
string kind = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getKind
in interfaceLocalDiskOrBuilder
- Returns:
- The kind.
-
getKindBytes
public com.google.protobuf.ByteString getKindBytes()
Output only. Type of the resource. Always compute#attachedDisk for attached disks.
string kind = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getKindBytes
in interfaceLocalDiskOrBuilder
- Returns:
- The bytes for kind.
-
setKind
public LocalDisk.Builder setKind(String value)
Output only. Type of the resource. Always compute#attachedDisk for attached disks.
string kind = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The kind to set.- Returns:
- This builder for chaining.
-
clearKind
public LocalDisk.Builder clearKind()
Output only. Type of the resource. Always compute#attachedDisk for attached disks.
string kind = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
setKindBytes
public LocalDisk.Builder setKindBytes(com.google.protobuf.ByteString value)
Output only. Type of the resource. Always compute#attachedDisk for attached disks.
string kind = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The bytes for kind to set.- Returns:
- This builder for chaining.
-
getLicensesList
public com.google.protobuf.ProtocolStringList getLicensesList()
Output only. Any valid publicly visible licenses.
repeated string licenses = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getLicensesList
in interfaceLocalDiskOrBuilder
- Returns:
- A list containing the licenses.
-
getLicensesCount
public int getLicensesCount()
Output only. Any valid publicly visible licenses.
repeated string licenses = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getLicensesCount
in interfaceLocalDiskOrBuilder
- Returns:
- The count of licenses.
-
getLicenses
public String getLicenses(int index)
Output only. Any valid publicly visible licenses.
repeated string licenses = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getLicenses
in interfaceLocalDiskOrBuilder
- 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)
Output only. Any valid publicly visible licenses.
repeated string licenses = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getLicensesBytes
in interfaceLocalDiskOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the licenses at the given index.
-
setLicenses
public LocalDisk.Builder setLicenses(int index, String value)
Output only. Any valid publicly visible licenses.
repeated string licenses = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
index
- The index to set the value at.value
- The licenses to set.- Returns:
- This builder for chaining.
-
addLicenses
public LocalDisk.Builder addLicenses(String value)
Output only. Any valid publicly visible licenses.
repeated string licenses = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The licenses to add.- Returns:
- This builder for chaining.
-
addAllLicenses
public LocalDisk.Builder addAllLicenses(Iterable<String> values)
Output only. Any valid publicly visible licenses.
repeated string licenses = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
values
- The licenses to add.- Returns:
- This builder for chaining.
-
clearLicenses
public LocalDisk.Builder clearLicenses()
Output only. Any valid publicly visible licenses.
repeated string licenses = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
addLicensesBytes
public LocalDisk.Builder addLicensesBytes(com.google.protobuf.ByteString value)
Output only. Any valid publicly visible licenses.
repeated string licenses = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- 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 interfaceLocalDiskOrBuilder
- 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 interfaceLocalDiskOrBuilder
- Returns:
- The bytes for mode.
-
setMode
public LocalDisk.Builder setMode(String value)
The mode in which to attach this disk, either `READ_WRITE` or `READ_ONLY`. If not specified, the default is to attach the disk in `READ_WRITE` mode. Valid values: * `READ_ONLY` * `READ_WRITE`
string mode = 10;
- Parameters:
value
- The mode to set.- Returns:
- This builder for chaining.
-
clearMode
public LocalDisk.Builder clearMode()
The mode in which to attach this disk, either `READ_WRITE` or `READ_ONLY`. If not specified, the default is to attach the disk in `READ_WRITE` mode. Valid values: * `READ_ONLY` * `READ_WRITE`
string mode = 10;
- Returns:
- This builder for chaining.
-
setModeBytes
public LocalDisk.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()
Specifies a valid partial or full URL to an existing Persistent Disk resource.
string source = 11;
- Specified by:
getSource
in interfaceLocalDiskOrBuilder
- Returns:
- The source.
-
getSourceBytes
public com.google.protobuf.ByteString getSourceBytes()
Specifies a valid partial or full URL to an existing Persistent Disk resource.
string source = 11;
- Specified by:
getSourceBytes
in interfaceLocalDiskOrBuilder
- Returns:
- The bytes for source.
-
setSource
public LocalDisk.Builder setSource(String value)
Specifies 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 LocalDisk.Builder clearSource()
Specifies a valid partial or full URL to an existing Persistent Disk resource.
string source = 11;
- Returns:
- This builder for chaining.
-
setSourceBytes
public LocalDisk.Builder setSourceBytes(com.google.protobuf.ByteString value)
Specifies 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()
Specifies the type of the disk, either `SCRATCH` or `PERSISTENT`. If not specified, the default is `PERSISTENT`. Valid values: * `PERSISTENT` * `SCRATCH`
string type = 12;
- Specified by:
getType
in interfaceLocalDiskOrBuilder
- Returns:
- The type.
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()
Specifies the type of the disk, either `SCRATCH` or `PERSISTENT`. If not specified, the default is `PERSISTENT`. Valid values: * `PERSISTENT` * `SCRATCH`
string type = 12;
- Specified by:
getTypeBytes
in interfaceLocalDiskOrBuilder
- Returns:
- The bytes for type.
-
setType
public LocalDisk.Builder setType(String value)
Specifies the type of the disk, either `SCRATCH` or `PERSISTENT`. If not specified, the default is `PERSISTENT`. Valid values: * `PERSISTENT` * `SCRATCH`
string type = 12;
- Parameters:
value
- The type to set.- Returns:
- This builder for chaining.
-
clearType
public LocalDisk.Builder clearType()
Specifies the type of the disk, either `SCRATCH` or `PERSISTENT`. If not specified, the default is `PERSISTENT`. Valid values: * `PERSISTENT` * `SCRATCH`
string type = 12;
- Returns:
- This builder for chaining.
-
setTypeBytes
public LocalDisk.Builder setTypeBytes(com.google.protobuf.ByteString value)
Specifies the type of the disk, either `SCRATCH` or `PERSISTENT`. If not specified, the default is `PERSISTENT`. Valid values: * `PERSISTENT` * `SCRATCH`
string type = 12;
- Parameters:
value
- The bytes for type to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final LocalDisk.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<LocalDisk.Builder>
-
mergeUnknownFields
public final LocalDisk.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<LocalDisk.Builder>
-
-