public final class LocalDisk extends GeneratedMessageV3 implements LocalDiskOrBuilder
   
   A Local attached disk resource.
 Protobuf type google.cloud.notebooks.v1.LocalDisk
 
  
  
  
  Static Fields
  
  AUTO_DELETE_FIELD_NUMBER
  
    public static final int AUTO_DELETE_FIELD_NUMBER
   
  Field Value
  
  BOOT_FIELD_NUMBER
  
    public static final int BOOT_FIELD_NUMBER
   
  Field Value
  
  DEVICE_NAME_FIELD_NUMBER
  
    public static final int DEVICE_NAME_FIELD_NUMBER
   
  Field Value
  
  GUEST_OS_FEATURES_FIELD_NUMBER
  
    public static final int GUEST_OS_FEATURES_FIELD_NUMBER
   
  Field Value
  
  INDEX_FIELD_NUMBER
  
    public static final int INDEX_FIELD_NUMBER
   
  Field Value
  
  INITIALIZE_PARAMS_FIELD_NUMBER
  
    public static final int INITIALIZE_PARAMS_FIELD_NUMBER
   
  Field Value
  
  INTERFACE_FIELD_NUMBER
  
    public static final int INTERFACE_FIELD_NUMBER
   
  Field Value
  
  KIND_FIELD_NUMBER
  
    public static final int KIND_FIELD_NUMBER
   
  Field Value
  
  LICENSES_FIELD_NUMBER
  
    public static final int LICENSES_FIELD_NUMBER
   
  Field Value
  
  MODE_FIELD_NUMBER
  
    public static final int MODE_FIELD_NUMBER
   
  Field Value
  
  SOURCE_FIELD_NUMBER
  
    public static final int SOURCE_FIELD_NUMBER
   
  Field Value
  
  TYPE_FIELD_NUMBER
  
    public static final int TYPE_FIELD_NUMBER
   
  Field Value
  
  Static Methods
  
  
  getDefaultInstance()
  
    public static LocalDisk getDefaultInstance()
   
  Returns
  
  
  getDescriptor()
  
    public static final Descriptors.Descriptor getDescriptor()
   
  Returns
  
  
  newBuilder()
  
    public static LocalDisk.Builder newBuilder()
   
  Returns
  
  
  newBuilder(LocalDisk prototype)
  
    public static LocalDisk.Builder newBuilder(LocalDisk prototype)
   
  Parameter
  
  Returns
  
  
  
  
    public static LocalDisk parseDelimitedFrom(InputStream input)
   
  Parameter
  
  Returns
  
  Exceptions
  
  
  
  
    public static LocalDisk parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
   
  Parameters
  
  Returns
  
  Exceptions
  
  
  parseFrom(byte[] data)
  
    public static LocalDisk parseFrom(byte[] data)
   
  Parameter
  
    
      
        | Name | 
        Description | 
      
      
        data | 
        byte[]
  | 
      
    
  
  Returns
  
  Exceptions
  
  
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
  
    public static LocalDisk parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
   
  Parameters
  
  Returns
  
  Exceptions
  
  
  parseFrom(ByteString data)
  
    public static LocalDisk parseFrom(ByteString data)
   
  Parameter
  
  Returns
  
  Exceptions
  
  
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
  
    public static LocalDisk parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
   
  Parameters
  
  Returns
  
  Exceptions
  
  
  
  
    public static LocalDisk parseFrom(CodedInputStream input)
   
  Parameter
  
  Returns
  
  Exceptions
  
  
  
  
    public static LocalDisk parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
   
  Parameters
  
  Returns
  
  Exceptions
  
  
  
  
    public static LocalDisk parseFrom(InputStream input)
   
  Parameter
  
  Returns
  
  Exceptions
  
  
  
  
    public static LocalDisk parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
   
  Parameters
  
  Returns
  
  Exceptions
  
  
  parseFrom(ByteBuffer data)
  
    public static LocalDisk parseFrom(ByteBuffer data)
   
  Parameter
  
  Returns
  
  Exceptions
  
  
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
  
    public static LocalDisk parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
   
  Parameters
  
  Returns
  
  Exceptions
  
  
  parser()
  
    public static Parser<LocalDisk> parser()
   
  Returns
  
  Methods
  
  
  equals(Object obj)
  
    public boolean equals(Object obj)
   
  Parameter
  
  Returns
  
  Overrides
  
  
  getAutoDelete()
  
    public boolean getAutoDelete()
   
   Optional. Output only. Specifies whether the disk will be auto-deleted when the
 instance is deleted (but not when the disk is detached from the instance).
 bool auto_delete = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
  Returns
  
    
      
        | Type | 
        Description | 
      
      
        boolean | 
        The autoDelete. 
 | 
      
    
  
  
  getBoot()
  
   Optional. Output only. Indicates that this is a boot disk. The virtual machine
 will use the first partition of the disk for its root filesystem.
 bool boot = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
  Returns
  
  
  getDefaultInstanceForType()
  
    public LocalDisk getDefaultInstanceForType()
   
  Returns
  
  
  getDeviceName()
  
    public String getDeviceName()
   
   Optional. Output only. Specifies a unique device name
 of your choice that is reflected into the
 /dev/disk/by-id/google-* tree of a Linux operating system running within
 the instance. This name can be used to reference the device for mounting,
 resizing, and so on, from within the instance.
 If not specified, the server chooses a default device name to apply to this
 disk, in the form persistent-disk-x, where x is a number assigned by Google
 Compute Engine. This field is only applicable for persistent disks.
 string device_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
  Returns
  
    
      
        | Type | 
        Description | 
      
      
        String | 
        The deviceName. 
 | 
      
    
  
  
  getDeviceNameBytes()
  
    public ByteString getDeviceNameBytes()
   
   Optional. Output only. Specifies a unique device name
 of your choice that is reflected into the
 /dev/disk/by-id/google-* tree of a Linux operating system running within
 the instance. This name can be used to reference the device for mounting,
 resizing, and so on, from within the instance.
 If not specified, the server chooses a default device name to apply to this
 disk, in the form persistent-disk-x, where x is a number assigned by Google
 Compute Engine. This field is only applicable for persistent disks.
 string device_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
  Returns
  
    
      
        | Type | 
        Description | 
      
      
        ByteString | 
        The bytes for deviceName. 
 | 
      
    
  
  
  getGuestOsFeatures(int index)
  
    public LocalDisk.RuntimeGuestOsFeature getGuestOsFeatures(int index)
   
   Output only. Indicates a list of features to enable on the guest operating system.
 Applicable only for bootable images. Read  Enabling guest operating
 system features to see a list of available options.
 
 repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
 
  Parameter
  
    
      
        | Name | 
        Description | 
      
      
        index | 
        int
  | 
      
    
  
  Returns
  
  
  getGuestOsFeaturesCount()
  
    public int getGuestOsFeaturesCount()
   
   Output only. Indicates a list of features to enable on the guest operating system.
 Applicable only for bootable images. Read  Enabling guest operating
 system features to see a list of available options.
 
 repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
 
  Returns
  
  
  getGuestOsFeaturesList()
  
    public List<LocalDisk.RuntimeGuestOsFeature> getGuestOsFeaturesList()
   
   Output only. Indicates a list of features to enable on the guest operating system.
 Applicable only for bootable images. Read  Enabling guest operating
 system features to see a list of available options.
 
 repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
 
  Returns
  
  
  getGuestOsFeaturesOrBuilder(int index)
  
    public LocalDisk.RuntimeGuestOsFeatureOrBuilder getGuestOsFeaturesOrBuilder(int index)
   
   Output only. Indicates a list of features to enable on the guest operating system.
 Applicable only for bootable images. Read  Enabling guest operating
 system features to see a list of available options.
 
 repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
 
  Parameter
  
    
      
        | Name | 
        Description | 
      
      
        index | 
        int
  | 
      
    
  
  Returns
  
  
  getGuestOsFeaturesOrBuilderList()
  
    public List<? extends LocalDisk.RuntimeGuestOsFeatureOrBuilder> getGuestOsFeaturesOrBuilderList()
   
   Output only. Indicates a list of features to enable on the guest operating system.
 Applicable only for bootable images. Read  Enabling guest operating
 system features to see a list of available options.
 
 repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
 
  Returns
  
    
      
        | Type | 
        Description | 
      
      
        List<? extends com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeatureOrBuilder> | 
         | 
      
    
  
  
  getIndex()
  
   Output only. A zero-based index to this disk, where 0 is reserved for the
 boot disk. If you have many disks attached to an instance, each disk would
 have a unique index number.
 int32 index = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
  Returns
  
    
      
        | Type | 
        Description | 
      
      
        int | 
        The index. 
 | 
      
    
  
  
  getInitializeParams()
  
    public LocalDiskInitializeParams getInitializeParams()
   
   Input only. Specifies the parameters for a new disk that will be created
 alongside the new instance. Use initialization parameters to create boot
 disks or local SSDs attached to the new instance.
 This property is mutually exclusive with the source property; you can only
 define one or the other, but not both.
 
 .google.cloud.notebooks.v1.LocalDiskInitializeParams initialize_params = 6 [(.google.api.field_behavior) = INPUT_ONLY];
 
 
  Returns
  
  
  getInitializeParamsOrBuilder()
  
    public LocalDiskInitializeParamsOrBuilder getInitializeParamsOrBuilder()
   
   Input only. Specifies the parameters for a new disk that will be created
 alongside the new instance. Use initialization parameters to create boot
 disks or local SSDs attached to the new instance.
 This property is mutually exclusive with the source property; you can only
 define one or the other, but not both.
 
 .google.cloud.notebooks.v1.LocalDiskInitializeParams initialize_params = 6 [(.google.api.field_behavior) = INPUT_ONLY];
 
 
  Returns
  
  
  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:
 string interface = 7;
 
  Returns
  
    
      
        | Type | 
        Description | 
      
      
        String | 
        The interface. 
 | 
      
    
  
  
  getInterfaceBytes()
  
    public ByteString getInterfaceBytes()
   
   Specifies the disk interface to use for attaching this disk, which is
 either SCSI or NVME. The default is SCSI. Persistent disks must always use
 SCSI and the request will fail if you attempt to attach a persistent disk
 in any other format than SCSI. Local SSDs can use either NVME or SCSI. For
 performance characteristics of SCSI over NVMe, see Local SSD performance.
 Valid values:
 string interface = 7;
 
  Returns
  
    
      
        | Type | 
        Description | 
      
      
        ByteString | 
        The bytes for interface. 
 | 
      
    
  
  
  getKind()
  
   Output only. Type of the resource. Always compute#attachedDisk for attached disks.
 string kind = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
  Returns
  
    
      
        | Type | 
        Description | 
      
      
        String | 
        The kind. 
 | 
      
    
  
  
  getKindBytes()
  
    public ByteString getKindBytes()
   
   Output only. Type of the resource. Always compute#attachedDisk for attached disks.
 string kind = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
  Returns
  
  
  getLicenses(int index)
  
    public String getLicenses(int index)
   
   Output only. Any valid publicly visible licenses.
 repeated string licenses = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
  Parameter
  
    
      
        | Name | 
        Description | 
      
      
        index | 
        int
 The index of the element to return. 
 | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
      
        String | 
        The licenses at the given index. 
 | 
      
    
  
  
  getLicensesBytes(int index)
  
    public ByteString getLicensesBytes(int index)
   
   Output only. Any valid publicly visible licenses.
 repeated string licenses = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
  Parameter
  
    
      
        | Name | 
        Description | 
      
      
        index | 
        int
 The index of the value to return. 
 | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
      
        ByteString | 
        The bytes of the licenses at the given index. 
 | 
      
    
  
  
  getLicensesCount()
  
    public int getLicensesCount()
   
   Output only. Any valid publicly visible licenses.
 repeated string licenses = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
  Returns
  
    
      
        | Type | 
        Description | 
      
      
        int | 
        The count of licenses. 
 | 
      
    
  
  
  getLicensesList()
  
    public ProtocolStringList getLicensesList()
   
   Output only. Any valid publicly visible licenses.
 repeated string licenses = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
  Returns
  
  
  getMode()
  
   The mode in which to attach this disk, either READ_WRITE or READ_ONLY.
 If not specified, the default is to attach the disk in READ_WRITE mode.
 Valid values:
 string mode = 10;
 
  Returns
  
    
      
        | Type | 
        Description | 
      
      
        String | 
        The mode. 
 | 
      
    
  
  
  getModeBytes()
  
    public ByteString getModeBytes()
   
   The mode in which to attach this disk, either READ_WRITE or READ_ONLY.
 If not specified, the default is to attach the disk in READ_WRITE mode.
 Valid values:
 string mode = 10;
 
  Returns
  
  
  getParserForType()
  
    public Parser<LocalDisk> getParserForType()
   
  Returns
  
  Overrides
  
  
  getSerializedSize()
  
    public int getSerializedSize()
   
  Returns
  
  Overrides
  
  
  getSource()
  
    public String getSource()
   
   Specifies a valid partial or full URL to an existing Persistent Disk
 resource.
 string source = 11;
 
  Returns
  
    
      
        | Type | 
        Description | 
      
      
        String | 
        The source. 
 | 
      
    
  
  
  getSourceBytes()
  
    public ByteString getSourceBytes()
   
   Specifies a valid partial or full URL to an existing Persistent Disk
 resource.
 string source = 11;
 
  Returns
  
  
  getType()
  
   Specifies the type of the disk, either SCRATCH or PERSISTENT. If not
 specified, the default is PERSISTENT.
 Valid values:
 string type = 12;
 
  Returns
  
    
      
        | Type | 
        Description | 
      
      
        String | 
        The type. 
 | 
      
    
  
  
  getTypeBytes()
  
    public ByteString getTypeBytes()
   
   Specifies the type of the disk, either SCRATCH or PERSISTENT. If not
 specified, the default is PERSISTENT.
 Valid values:
 string type = 12;
 
  Returns
  
  
  getUnknownFields()
  
    public final UnknownFieldSet getUnknownFields()
   
  Returns
  
  Overrides
  
  
  hasInitializeParams()
  
    public boolean hasInitializeParams()
   
   Input only. Specifies the parameters for a new disk that will be created
 alongside the new instance. Use initialization parameters to create boot
 disks or local SSDs attached to the new instance.
 This property is mutually exclusive with the source property; you can only
 define one or the other, but not both.
 
 .google.cloud.notebooks.v1.LocalDiskInitializeParams initialize_params = 6 [(.google.api.field_behavior) = INPUT_ONLY];
 
 
  Returns
  
    
      
        | Type | 
        Description | 
      
      
        boolean | 
        Whether the initializeParams field is set. 
 | 
      
    
  
  
  hashCode()
  
  Returns
  
  Overrides
  
  
  internalGetFieldAccessorTable()
  
    protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
   
  Returns
  
  Overrides
  
  
  isInitialized()
  
    public final boolean isInitialized()
   
  Returns
  
  Overrides
  
  
  newBuilderForType()
  
    public LocalDisk.Builder newBuilderForType()
   
  Returns
  
  
  newBuilderForType(GeneratedMessageV3.BuilderParent parent)
  
    protected LocalDisk.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
   
  Parameter
  
  Returns
  
  Overrides
  
  
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
  
    protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
   
  Parameter
  
  Returns
  
  Overrides
  
  
  toBuilder()
  
    public LocalDisk.Builder toBuilder()
   
  Returns
  
  
  writeTo(CodedOutputStream output)
  
    public void writeTo(CodedOutputStream output)
   
  Parameter
  
  Overrides
  
  Exceptions