Interface LocalDiskInitializeParamsOrBuilder (0.16.0)

public interface LocalDiskInitializeParamsOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsLabels(String key)

public abstract 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;

Parameter
Name Description
key String
Returns
Type Description
boolean

getDescription()

public abstract String getDescription()

Optional. Provide this property when creating the disk.

string description = 1;

Returns
Type Description
String

The description.

getDescriptionBytes()

public abstract ByteString getDescriptionBytes()

Optional. Provide this property when creating the disk.

string description = 1;

Returns
Type Description
ByteString

The bytes for description.

getDiskName()

public abstract 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;

Returns
Type Description
String

The diskName.

getDiskNameBytes()

public abstract 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;

Returns
Type Description
ByteString

The bytes for diskName.

getDiskSizeGb()

public abstract 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;

Returns
Type Description
long

The diskSizeGb.

getLabels()

public abstract Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public abstract 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;

Returns
Type Description
int

getLabelsMap()

public abstract 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;

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public abstract 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;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public abstract 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;

Parameter
Name Description
key String
Returns
Type Description
String