Package com.google.cloud.notebooks.v1
Class LocalDiskInitializeParams.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<LocalDiskInitializeParams.Builder>
-
- com.google.cloud.notebooks.v1.LocalDiskInitializeParams.Builder
-
- All Implemented Interfaces:
LocalDiskInitializeParamsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- LocalDiskInitializeParams
public static final class LocalDiskInitializeParams.Builder extends com.google.protobuf.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 typegoogle.cloud.notebooks.v1.LocalDiskInitializeParams
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LocalDiskInitializeParams.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LocalDiskInitializeParams.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<LocalDiskInitializeParams.Builder>
-
clear
public LocalDiskInitializeParams.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<LocalDiskInitializeParams.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<LocalDiskInitializeParams.Builder>
-
getDefaultInstanceForType
public LocalDiskInitializeParams getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public LocalDiskInitializeParams build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public LocalDiskInitializeParams buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public LocalDiskInitializeParams.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<LocalDiskInitializeParams.Builder>
-
setField
public LocalDiskInitializeParams.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LocalDiskInitializeParams.Builder>
-
clearField
public LocalDiskInitializeParams.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LocalDiskInitializeParams.Builder>
-
clearOneof
public LocalDiskInitializeParams.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<LocalDiskInitializeParams.Builder>
-
setRepeatedField
public LocalDiskInitializeParams.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LocalDiskInitializeParams.Builder>
-
addRepeatedField
public LocalDiskInitializeParams.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LocalDiskInitializeParams.Builder>
-
mergeFrom
public LocalDiskInitializeParams.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LocalDiskInitializeParams.Builder>
-
mergeFrom
public LocalDiskInitializeParams.Builder mergeFrom(LocalDiskInitializeParams other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<LocalDiskInitializeParams.Builder>
-
mergeFrom
public LocalDiskInitializeParams.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LocalDiskInitializeParams.Builder>- Throws:
IOException
-
getDescription
public String getDescription()
Optional. Provide this property when creating the disk.
string description = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDescriptionin interfaceLocalDiskInitializeParamsOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
Optional. Provide this property when creating the disk.
string description = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDescriptionBytesin interfaceLocalDiskInitializeParamsOrBuilder- Returns:
- The bytes for description.
-
setDescription
public LocalDiskInitializeParams.Builder setDescription(String value)
Optional. Provide this property when creating the disk.
string description = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public LocalDiskInitializeParams.Builder clearDescription()
Optional. Provide this property when creating the disk.
string description = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setDescriptionBytes
public LocalDiskInitializeParams.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
Optional. Provide this property when creating the disk.
string description = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getDiskNamein interfaceLocalDiskInitializeParamsOrBuilder- Returns:
- The diskName.
-
getDiskNameBytes
public com.google.protobuf.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];- Specified by:
getDiskNameBytesin interfaceLocalDiskInitializeParamsOrBuilder- Returns:
- The bytes for diskName.
-
setDiskName
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];- Parameters:
value- The diskName to set.- Returns:
- 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:
- This builder for chaining.
-
setDiskNameBytes
public LocalDiskInitializeParams.Builder setDiskNameBytes(com.google.protobuf.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];- Parameters:
value- The bytes for diskName to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getDiskSizeGbin interfaceLocalDiskInitializeParamsOrBuilder- Returns:
- The diskSizeGb.
-
setDiskSizeGb
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];- Parameters:
value- The diskSizeGb to set.- Returns:
- 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:
- This builder for chaining.
-
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];- Specified by:
getDiskTypeValuein interfaceLocalDiskInitializeParamsOrBuilder- Returns:
- The enum numeric value on the wire for diskType.
-
setDiskTypeValue
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];- Parameters:
value- The enum numeric value on the wire for diskType to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getDiskTypein interfaceLocalDiskInitializeParamsOrBuilder- Returns:
- The diskType.
-
setDiskType
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];- Parameters:
value- The diskType to set.- Returns:
- 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:
- This builder for chaining.
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:LocalDiskInitializeParamsOrBuilderOptional. 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];- Specified by:
getLabelsCountin interfaceLocalDiskInitializeParamsOrBuilder
-
containsLabels
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];- Specified by:
containsLabelsin interfaceLocalDiskInitializeParamsOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceLocalDiskInitializeParamsOrBuilder
-
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];- Specified by:
getLabelsMapin interfaceLocalDiskInitializeParamsOrBuilder
-
getLabelsOrDefault
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];- Specified by:
getLabelsOrDefaultin interfaceLocalDiskInitializeParamsOrBuilder
-
getLabelsOrThrow
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];- Specified by:
getLabelsOrThrowin interfaceLocalDiskInitializeParamsOrBuilder
-
clearLabels
public LocalDiskInitializeParams.Builder clearLabels()
-
removeLabels
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];
-
getMutableLabels
@Deprecated public Map<String,String> getMutableLabels()
Deprecated.Use alternate mutation accessors instead.
-
putLabels
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];
-
putAllLabels
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];
-
setUnknownFields
public final LocalDiskInitializeParams.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LocalDiskInitializeParams.Builder>
-
mergeUnknownFields
public final LocalDiskInitializeParams.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LocalDiskInitializeParams.Builder>
-
-