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:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<LocalDiskInitializeParams.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<LocalDiskInitializeParams.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<LocalDiskInitializeParams.Builder>
-
clear
public LocalDiskInitializeParams.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<LocalDiskInitializeParams.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<LocalDiskInitializeParams.Builder>
-
getDefaultInstanceForType
public LocalDiskInitializeParams getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public LocalDiskInitializeParams build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public LocalDiskInitializeParams buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public LocalDiskInitializeParams.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<LocalDiskInitializeParams.Builder>
-
setField
public LocalDiskInitializeParams.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<LocalDiskInitializeParams.Builder>
-
clearField
public LocalDiskInitializeParams.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<LocalDiskInitializeParams.Builder>
-
clearOneof
public LocalDiskInitializeParams.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<LocalDiskInitializeParams.Builder>
-
setRepeatedField
public LocalDiskInitializeParams.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<LocalDiskInitializeParams.Builder>
-
addRepeatedField
public LocalDiskInitializeParams.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<LocalDiskInitializeParams.Builder>
-
mergeFrom
public LocalDiskInitializeParams.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<LocalDiskInitializeParams.Builder>
-
mergeFrom
public LocalDiskInitializeParams.Builder mergeFrom(LocalDiskInitializeParams other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getDescription
in 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:
getDescriptionBytes
in 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:
getDiskName
in 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:
getDiskNameBytes
in 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:
getDiskSizeGb
in 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:
getDiskTypeValue
in 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:
getDiskType
in 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:LocalDiskInitializeParamsOrBuilder
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:
getLabelsCount
in 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:
containsLabels
in interfaceLocalDiskInitializeParamsOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in 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:
getLabelsMap
in 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:
getLabelsOrDefault
in 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:
getLabelsOrThrow
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<LocalDiskInitializeParams.Builder>
-
mergeUnknownFields
public final LocalDiskInitializeParams.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<LocalDiskInitializeParams.Builder>
-
-