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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public LocalDiskInitializeParams.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public LocalDiskInitializeParams build()
buildPartial()
public LocalDiskInitializeParams buildPartial()
clear()
public LocalDiskInitializeParams.Builder clear()
Overrides
clearDescription()
public LocalDiskInitializeParams.Builder clearDescription()
Optional. Provide this property when creating the disk.
string description = 1;
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;
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;
clearField(Descriptors.FieldDescriptor field)
public LocalDiskInitializeParams.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearLabels()
public LocalDiskInitializeParams.Builder clearLabels()
clearOneof(Descriptors.OneofDescriptor oneof)
public LocalDiskInitializeParams.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public LocalDiskInitializeParams.Builder clone()
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
|
getDefaultInstanceForType()
public LocalDiskInitializeParams getDefaultInstanceForType()
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()
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()
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;
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;
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
|
getMutableLabels()
public Map<String,String> getMutableLabels()
Use alternate mutation accessors instead.
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(LocalDiskInitializeParams other)
public LocalDiskInitializeParams.Builder mergeFrom(LocalDiskInitializeParams other)
public LocalDiskInitializeParams.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public LocalDiskInitializeParams.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final LocalDiskInitializeParams.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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;
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;
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
|
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.
|
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.
|
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.
|
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.
|
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.
|
setField(Descriptors.FieldDescriptor field, Object value)
public LocalDiskInitializeParams.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public LocalDiskInitializeParams.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final LocalDiskInitializeParams.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides