Package com.google.cloud.notebooks.v1
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 Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description boolean
containsLabels(String key)
Optional.String
getDescription()
Optional.com.google.protobuf.ByteString
getDescriptionBytes()
Optional.String
getDiskName()
Optional.com.google.protobuf.ByteString
getDiskNameBytes()
Optional.long
getDiskSizeGb()
Optional.LocalDiskInitializeParams.DiskType
getDiskType()
Input only.int
getDiskTypeValue()
Input only.Map<String,String>
getLabels()
Deprecated.int
getLabelsCount()
Optional.Map<String,String>
getLabelsMap()
Optional.String
getLabelsOrDefault(String key, String defaultValue)
Optional.String
getLabelsOrThrow(String key)
Optional.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
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];
-
getLabels
@Deprecated Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.
-
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];
-
-