Class LocalDiskInitializeParams.Builder (0.16.0)

public static final class LocalDiskInitializeParams.Builder extends GeneratedMessageV3.Builder<LocalDiskInitializeParams.Builder> implements LocalDiskInitializeParamsOrBuilder

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 runtime. This property is mutually exclusive with the source property; you can only define one or the other, but not both.

Protobuf type google.events.cloud.notebooks.v1.LocalDiskInitializeParams

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public LocalDiskInitializeParams.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
LocalDiskInitializeParams.Builder
Overrides

build()

public LocalDiskInitializeParams build()
Returns
Type Description
LocalDiskInitializeParams

buildPartial()

public LocalDiskInitializeParams buildPartial()
Returns
Type Description
LocalDiskInitializeParams

clear()

public LocalDiskInitializeParams.Builder clear()
Returns
Type Description
LocalDiskInitializeParams.Builder
Overrides

clearDescription()

public LocalDiskInitializeParams.Builder clearDescription()

Optional. Provide this property when creating the disk.

string description = 1;

Returns
Type Description
LocalDiskInitializeParams.Builder

This builder for chaining.

clearDiskName()

public LocalDiskInitializeParams.Builder clearDiskName()

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
LocalDiskInitializeParams.Builder

This builder for chaining.

clearDiskSizeGb()

public LocalDiskInitializeParams.Builder clearDiskSizeGb()

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
LocalDiskInitializeParams.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public LocalDiskInitializeParams.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
LocalDiskInitializeParams.Builder
Overrides

clearLabels()

public LocalDiskInitializeParams.Builder clearLabels()
Returns
Type Description
LocalDiskInitializeParams.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public LocalDiskInitializeParams.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
LocalDiskInitializeParams.Builder
Overrides

clone()

public LocalDiskInitializeParams.Builder clone()
Returns
Type Description
LocalDiskInitializeParams.Builder
Overrides

containsLabels(String key)

public 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

getDefaultInstanceForType()

public LocalDiskInitializeParams getDefaultInstanceForType()
Returns
Type Description
LocalDiskInitializeParams

getDescription()

public String getDescription()

Optional. Provide this property when creating the disk.

string description = 1;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. Provide this property when creating the disk.

string description = 1;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDiskName()

public 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 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 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 Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

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

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
Name Description
number int
Returns
Type Description
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
Name Description
number int
Returns
Type Description
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(LocalDiskInitializeParams other)

public LocalDiskInitializeParams.Builder mergeFrom(LocalDiskInitializeParams other)
Parameter
Name Description
other LocalDiskInitializeParams
Returns
Type Description
LocalDiskInitializeParams.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public LocalDiskInitializeParams.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LocalDiskInitializeParams.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public LocalDiskInitializeParams.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
LocalDiskInitializeParams.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LocalDiskInitializeParams.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LocalDiskInitializeParams.Builder
Overrides

putAllLabels(Map<String,String> values)

public LocalDiskInitializeParams.Builder putAllLabels(Map<String,String> values)

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
values Map<String,String>
Returns
Type Description
LocalDiskInitializeParams.Builder

putLabels(String key, String value)

public LocalDiskInitializeParams.Builder putLabels(String key, String value)

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
value String
Returns
Type Description
LocalDiskInitializeParams.Builder

removeLabels(String key)

public LocalDiskInitializeParams.Builder removeLabels(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
LocalDiskInitializeParams.Builder

setDescription(String value)

public LocalDiskInitializeParams.Builder setDescription(String value)

Optional. Provide this property when creating the disk.

string description = 1;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
LocalDiskInitializeParams.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public LocalDiskInitializeParams.Builder setDescriptionBytes(ByteString value)

Optional. Provide this property when creating the disk.

string description = 1;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
LocalDiskInitializeParams.Builder

This builder for chaining.

setDiskName(String value)

public LocalDiskInitializeParams.Builder setDiskName(String value)

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;

Parameter
Name Description
value String

The diskName to set.

Returns
Type Description
LocalDiskInitializeParams.Builder

This builder for chaining.

setDiskNameBytes(ByteString value)

public LocalDiskInitializeParams.Builder setDiskNameBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for diskName to set.

Returns
Type Description
LocalDiskInitializeParams.Builder

This builder for chaining.

setDiskSizeGb(long value)

public LocalDiskInitializeParams.Builder setDiskSizeGb(long value)

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;

Parameter
Name Description
value long

The diskSizeGb to set.

Returns
Type Description
LocalDiskInitializeParams.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public LocalDiskInitializeParams.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
LocalDiskInitializeParams.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public LocalDiskInitializeParams.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
LocalDiskInitializeParams.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final LocalDiskInitializeParams.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LocalDiskInitializeParams.Builder
Overrides