Class LocalDiskInitializeParams.Builder (1.44.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
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 [(.google.api.field_behavior) = OPTIONAL];

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

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

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

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

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. Provide this property when creating the disk.

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

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

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

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

Returns
Type Description
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
Type Description
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
Type Description
int

The enum numeric value on the wire for diskType.

getLabels() (deprecated)

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

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

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

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

Parameter
Name Description
key String
Returns
Type Description
String

getMutableLabels() (deprecated)

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

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

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

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

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

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

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

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

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

Parameter
Name Description
value long

The diskSizeGb to set.

Returns
Type Description
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
Name Description
value LocalDiskInitializeParams.DiskType

The diskType to set.

Returns
Type Description
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
Name Description
value int

The enum numeric value on the wire for diskType 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