Class LocalDiskInitializeParams.Builder (1.27.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.cloud.notebooks.v1.LocalDiskInitializeParams

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public LocalDiskInitializeParams.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
LocalDiskInitializeParams.Builder
Overrides

build()

public LocalDiskInitializeParams build()
Returns
TypeDescription
LocalDiskInitializeParams

buildPartial()

public LocalDiskInitializeParams buildPartial()
Returns
TypeDescription
LocalDiskInitializeParams

clear()

public LocalDiskInitializeParams.Builder clear()
Returns
TypeDescription
LocalDiskInitializeParams.Builder
Overrides

clearDescription()

public LocalDiskInitializeParams.Builder clearDescription()

Optional. Provide this property when creating the disk.

string description = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
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 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
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 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
LocalDiskInitializeParams.Builder

This builder for chaining.

clearDiskType()

public LocalDiskInitializeParams.Builder clearDiskType()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public LocalDiskInitializeParams.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
LocalDiskInitializeParams.Builder
Overrides

clearLabels()

public LocalDiskInitializeParams.Builder clearLabels()
Returns
TypeDescription
LocalDiskInitializeParams.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public LocalDiskInitializeParams.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
LocalDiskInitializeParams.Builder
Overrides

clone()

public LocalDiskInitializeParams.Builder clone()
Returns
TypeDescription
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 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public LocalDiskInitializeParams getDefaultInstanceForType()
Returns
TypeDescription
LocalDiskInitializeParams

getDescription()

public String getDescription()

Optional. Provide this property when creating the disk.

string description = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. Provide this property when creating the disk.

string description = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
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 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
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 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
long

The diskSizeGb.

getDiskType()

public 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
TypeDescription
LocalDiskInitializeParams.DiskType

The diskType.

getDiskTypeValue()

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

The enum numeric value on the wire for diskType.

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
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 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
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 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
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 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
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 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(LocalDiskInitializeParams other)

public LocalDiskInitializeParams.Builder mergeFrom(LocalDiskInitializeParams other)
Parameter
NameDescription
otherLocalDiskInitializeParams
Returns
TypeDescription
LocalDiskInitializeParams.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public LocalDiskInitializeParams.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LocalDiskInitializeParams.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public LocalDiskInitializeParams.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
LocalDiskInitializeParams.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LocalDiskInitializeParams.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
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 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
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 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
LocalDiskInitializeParams.Builder

setDescription(String value)

public LocalDiskInitializeParams.Builder setDescription(String value)

Optional. Provide this property when creating the disk.

string description = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
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 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
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 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The diskName to set.

Returns
TypeDescription
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 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for diskName to set.

Returns
TypeDescription
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 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuelong

The diskSizeGb to set.

Returns
TypeDescription
LocalDiskInitializeParams.Builder

This builder for chaining.

setDiskType(LocalDiskInitializeParams.DiskType value)

public LocalDiskInitializeParams.Builder setDiskType(LocalDiskInitializeParams.DiskType value)

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];

Parameter
NameDescription
valueLocalDiskInitializeParams.DiskType

The diskType to set.

Returns
TypeDescription
LocalDiskInitializeParams.Builder

This builder for chaining.

setDiskTypeValue(int value)

public LocalDiskInitializeParams.Builder setDiskTypeValue(int value)

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];

Parameter
NameDescription
valueint

The enum numeric value on the wire for diskType to set.

Returns
TypeDescription
LocalDiskInitializeParams.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public LocalDiskInitializeParams.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
LocalDiskInitializeParams.Builder
Overrides

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

public LocalDiskInitializeParams.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
LocalDiskInitializeParams.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final LocalDiskInitializeParams.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
LocalDiskInitializeParams.Builder
Overrides