- 1.51.0 (latest)
- 1.50.0
- 1.49.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.35.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.0
- 1.11.0
- 1.10.0
- 1.9.0
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.3
- 1.0.6
- 0.6.2
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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > LocalDiskInitializeParams.BuilderImplements
LocalDiskInitializeParamsOrBuilderMethods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public LocalDiskInitializeParams.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
LocalDiskInitializeParams.Builder |
build()
public LocalDiskInitializeParams build()
Type | Description |
LocalDiskInitializeParams |
buildPartial()
public LocalDiskInitializeParams buildPartial()
Type | Description |
LocalDiskInitializeParams |
clear()
public LocalDiskInitializeParams.Builder clear()
Type | Description |
LocalDiskInitializeParams.Builder |
clearDescription()
public LocalDiskInitializeParams.Builder clearDescription()
Optional. Provide this property when creating the disk.
string description = 1 [(.google.api.field_behavior) = OPTIONAL];
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];
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];
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];
Type | Description |
LocalDiskInitializeParams.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public LocalDiskInitializeParams.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
LocalDiskInitializeParams.Builder |
clearLabels()
public LocalDiskInitializeParams.Builder clearLabels()
Type | Description |
LocalDiskInitializeParams.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public LocalDiskInitializeParams.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
LocalDiskInitializeParams.Builder |
clone()
public LocalDiskInitializeParams.Builder clone()
Type | Description |
LocalDiskInitializeParams.Builder |
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];
Name | Description |
key | String |
Type | Description |
boolean |
getDefaultInstanceForType()
public LocalDiskInitializeParams getDefaultInstanceForType()
Type | Description |
LocalDiskInitializeParams |
getDescription()
public String getDescription()
Optional. Provide this property when creating the disk.
string description = 1 [(.google.api.field_behavior) = OPTIONAL];
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];
Type | Description |
ByteString | The bytes for description. |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
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];
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];
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];
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];
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];
Type | Description |
int | The enum numeric value on the wire for diskType. |
getLabels()
public Map<String,String> getLabels()
Use #getLabelsMap() instead.
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];
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];
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];
Name | Description |
key | String |
defaultValue | String |
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];
Name | Description |
key | String |
Type | Description |
String |
getMutableLabels()
public Map<String,String> getMutableLabels()
Use alternate mutation accessors instead.
Type | Description |
Map<String,String> |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(LocalDiskInitializeParams other)
public LocalDiskInitializeParams.Builder mergeFrom(LocalDiskInitializeParams other)
Name | Description |
other | LocalDiskInitializeParams |
Type | Description |
LocalDiskInitializeParams.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public LocalDiskInitializeParams.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
LocalDiskInitializeParams.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public LocalDiskInitializeParams.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
LocalDiskInitializeParams.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final LocalDiskInitializeParams.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
LocalDiskInitializeParams.Builder |
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];
Name | Description |
values | Map<String,String> |
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];
Name | Description |
key | String |
value | String |
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];
Name | Description |
key | String |
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];
Name | Description |
value | String The description to set. |
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];
Name | Description |
value | ByteString The bytes for description to set. |
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];
Name | Description |
value | String The diskName to set. |
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];
Name | Description |
value | ByteString The bytes for diskName to set. |
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];
Name | Description |
value | long The diskSizeGb to set. |
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];
Name | Description |
value | LocalDiskInitializeParams.DiskType The diskType to set. |
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];
Name | Description |
value | int The enum numeric value on the wire for diskType to set. |
Type | Description |
LocalDiskInitializeParams.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public LocalDiskInitializeParams.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
LocalDiskInitializeParams.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public LocalDiskInitializeParams.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
LocalDiskInitializeParams.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final LocalDiskInitializeParams.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
LocalDiskInitializeParams.Builder |