Interface LocalDiskInitializeParamsOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    LocalDiskInitializeParams, LocalDiskInitializeParams.Builder

    public interface LocalDiskInitializeParamsOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Detail

      • getDescription

        String getDescription()
         Optional. Provide this property when creating the disk.
         
        string description = 1 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        The description.
      • getDescriptionBytes

        com.google.protobuf.ByteString getDescriptionBytes()
         Optional. Provide this property when creating the disk.
         
        string description = 1 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        The bytes for description.
      • getDiskName

        String getDiskName()
         Optional. Specifies the disk name. If not specified, the default is to use the name
         of the instance. If the disk with the instance name exists already in the
         given zone/region, a new name will be automatically generated.
         
        string disk_name = 2 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        The diskName.
      • getDiskNameBytes

        com.google.protobuf.ByteString getDiskNameBytes()
         Optional. Specifies the disk name. If not specified, the default is to use the name
         of the instance. If the disk with the instance name exists already in the
         given zone/region, a new name will be automatically generated.
         
        string disk_name = 2 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        The bytes for diskName.
      • getDiskSizeGb

        long getDiskSizeGb()
         Optional. Specifies the size of the disk in base-2 GB. If not specified, the disk
         will be the same size as the image (usually 10GB). If specified, the size
         must be equal to or larger than 10GB. Default 100 GB.
         
        int64 disk_size_gb = 3 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        The diskSizeGb.
      • getDiskTypeValue

        int getDiskTypeValue()
         Input only. The type of the boot disk attached to this instance, defaults to
         standard persistent disk (`PD_STANDARD`).
         
        .google.cloud.notebooks.v1.LocalDiskInitializeParams.DiskType disk_type = 4 [(.google.api.field_behavior) = INPUT_ONLY];
        Returns:
        The enum numeric value on the wire for diskType.
      • getDiskType

        LocalDiskInitializeParams.DiskType getDiskType()
         Input only. The type of the boot disk attached to this instance, defaults to
         standard persistent disk (`PD_STANDARD`).
         
        .google.cloud.notebooks.v1.LocalDiskInitializeParams.DiskType disk_type = 4 [(.google.api.field_behavior) = INPUT_ONLY];
        Returns:
        The diskType.
      • getLabelsCount

        int getLabelsCount()
         Optional. Labels to apply to this disk. These can be later modified by the
         disks.setLabels method. This field is only applicable for persistent disks.
         
        map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
      • containsLabels

        boolean containsLabels​(String key)
         Optional. Labels to apply to this disk. These can be later modified by the
         disks.setLabels method. This field is only applicable for persistent disks.
         
        map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
      • getLabelsMap

        Map<String,​String> getLabelsMap()
         Optional. Labels to apply to this disk. These can be later modified by the
         disks.setLabels method. This field is only applicable for persistent disks.
         
        map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
      • getLabelsOrDefault

        String getLabelsOrDefault​(String key,
                                  String defaultValue)
         Optional. Labels to apply to this disk. These can be later modified by the
         disks.setLabels method. This field is only applicable for persistent disks.
         
        map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
      • getLabelsOrThrow

        String getLabelsOrThrow​(String key)
         Optional. Labels to apply to this disk. These can be later modified by the
         disks.setLabels method. This field is only applicable for persistent disks.
         
        map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];