public static final class AttachedDiskInitializeParams.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AttachedDiskInitializeParams.Builder> implements AttachedDiskInitializeParamsOrBuilder
[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 instance. This field is persisted and returned for instanceTemplate and not returned in the context of instance. This property is mutually exclusive with the source property; you can only define one or the other, but not both.Protobuf type
google.cloud.compute.v1.AttachedDiskInitializeParams| Modifier and Type | Method and Description |
|---|---|
AttachedDiskInitializeParams.Builder |
addAllLicenses(Iterable<String> values)
A list of publicly visible licenses.
|
AttachedDiskInitializeParams.Builder |
addAllResourcePolicies(Iterable<String> values)
Resource policies applied to this disk for automatic snapshot creations.
|
AttachedDiskInitializeParams.Builder |
addLicenses(String value)
A list of publicly visible licenses.
|
AttachedDiskInitializeParams.Builder |
addLicensesBytes(com.google.protobuf.ByteString value)
A list of publicly visible licenses.
|
AttachedDiskInitializeParams.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AttachedDiskInitializeParams.Builder |
addResourcePolicies(String value)
Resource policies applied to this disk for automatic snapshot creations.
|
AttachedDiskInitializeParams.Builder |
addResourcePoliciesBytes(com.google.protobuf.ByteString value)
Resource policies applied to this disk for automatic snapshot creations.
|
AttachedDiskInitializeParams |
build() |
AttachedDiskInitializeParams |
buildPartial() |
AttachedDiskInitializeParams.Builder |
clear() |
AttachedDiskInitializeParams.Builder |
clearArchitecture()
The architecture of the attached disk.
|
AttachedDiskInitializeParams.Builder |
clearDescription()
An optional description.
|
AttachedDiskInitializeParams.Builder |
clearDiskName()
Specifies the disk name.
|
AttachedDiskInitializeParams.Builder |
clearDiskSizeGb()
Specifies the size of the disk in base-2 GB.
|
AttachedDiskInitializeParams.Builder |
clearDiskType()
Specifies the disk type to use to create the instance.
|
AttachedDiskInitializeParams.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
AttachedDiskInitializeParams.Builder |
clearLabels() |
AttachedDiskInitializeParams.Builder |
clearLicenses()
A list of publicly visible licenses.
|
AttachedDiskInitializeParams.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
AttachedDiskInitializeParams.Builder |
clearOnUpdateAction()
Specifies which action to take on instance update with this disk.
|
AttachedDiskInitializeParams.Builder |
clearProvisionedIops()
Indicates how many IOPS to provision for the disk.
|
AttachedDiskInitializeParams.Builder |
clearResourceManagerTags() |
AttachedDiskInitializeParams.Builder |
clearResourcePolicies()
Resource policies applied to this disk for automatic snapshot creations.
|
AttachedDiskInitializeParams.Builder |
clearSourceImage()
The source image to create this disk.
|
AttachedDiskInitializeParams.Builder |
clearSourceImageEncryptionKey()
The customer-supplied encryption key of the source image.
|
AttachedDiskInitializeParams.Builder |
clearSourceSnapshot()
The source snapshot to create this disk.
|
AttachedDiskInitializeParams.Builder |
clearSourceSnapshotEncryptionKey()
The customer-supplied encryption key of the source snapshot.
|
AttachedDiskInitializeParams.Builder |
clone() |
boolean |
containsLabels(String key)
Labels to apply to this disk.
|
boolean |
containsResourceManagerTags(String key)
Resource manager tags to be bound to the disk.
|
String |
getArchitecture()
The architecture of the attached disk.
|
com.google.protobuf.ByteString |
getArchitectureBytes()
The architecture of the attached disk.
|
AttachedDiskInitializeParams |
getDefaultInstanceForType() |
String |
getDescription()
An optional description.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
An optional description.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getDiskName()
Specifies the disk name.
|
com.google.protobuf.ByteString |
getDiskNameBytes()
Specifies the disk name.
|
long |
getDiskSizeGb()
Specifies the size of the disk in base-2 GB.
|
String |
getDiskType()
Specifies the disk type to use to create the instance.
|
com.google.protobuf.ByteString |
getDiskTypeBytes()
Specifies the disk type to use to create the instance.
|
Map<String,String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
Labels to apply to this disk.
|
Map<String,String> |
getLabelsMap()
Labels to apply to this disk.
|
String |
getLabelsOrDefault(String key,
String defaultValue)
Labels to apply to this disk.
|
String |
getLabelsOrThrow(String key)
Labels to apply to this disk.
|
String |
getLicenses(int index)
A list of publicly visible licenses.
|
com.google.protobuf.ByteString |
getLicensesBytes(int index)
A list of publicly visible licenses.
|
int |
getLicensesCount()
A list of publicly visible licenses.
|
com.google.protobuf.ProtocolStringList |
getLicensesList()
A list of publicly visible licenses.
|
Map<String,String> |
getMutableLabels()
Deprecated.
|
Map<String,String> |
getMutableResourceManagerTags()
Deprecated.
|
String |
getOnUpdateAction()
Specifies which action to take on instance update with this disk.
|
com.google.protobuf.ByteString |
getOnUpdateActionBytes()
Specifies which action to take on instance update with this disk.
|
long |
getProvisionedIops()
Indicates how many IOPS to provision for the disk.
|
Map<String,String> |
getResourceManagerTags()
Deprecated.
|
int |
getResourceManagerTagsCount()
Resource manager tags to be bound to the disk.
|
Map<String,String> |
getResourceManagerTagsMap()
Resource manager tags to be bound to the disk.
|
String |
getResourceManagerTagsOrDefault(String key,
String defaultValue)
Resource manager tags to be bound to the disk.
|
String |
getResourceManagerTagsOrThrow(String key)
Resource manager tags to be bound to the disk.
|
String |
getResourcePolicies(int index)
Resource policies applied to this disk for automatic snapshot creations.
|
com.google.protobuf.ByteString |
getResourcePoliciesBytes(int index)
Resource policies applied to this disk for automatic snapshot creations.
|
int |
getResourcePoliciesCount()
Resource policies applied to this disk for automatic snapshot creations.
|
com.google.protobuf.ProtocolStringList |
getResourcePoliciesList()
Resource policies applied to this disk for automatic snapshot creations.
|
String |
getSourceImage()
The source image to create this disk.
|
com.google.protobuf.ByteString |
getSourceImageBytes()
The source image to create this disk.
|
CustomerEncryptionKey |
getSourceImageEncryptionKey()
The customer-supplied encryption key of the source image.
|
CustomerEncryptionKey.Builder |
getSourceImageEncryptionKeyBuilder()
The customer-supplied encryption key of the source image.
|
CustomerEncryptionKeyOrBuilder |
getSourceImageEncryptionKeyOrBuilder()
The customer-supplied encryption key of the source image.
|
String |
getSourceSnapshot()
The source snapshot to create this disk.
|
com.google.protobuf.ByteString |
getSourceSnapshotBytes()
The source snapshot to create this disk.
|
CustomerEncryptionKey |
getSourceSnapshotEncryptionKey()
The customer-supplied encryption key of the source snapshot.
|
CustomerEncryptionKey.Builder |
getSourceSnapshotEncryptionKeyBuilder()
The customer-supplied encryption key of the source snapshot.
|
CustomerEncryptionKeyOrBuilder |
getSourceSnapshotEncryptionKeyOrBuilder()
The customer-supplied encryption key of the source snapshot.
|
boolean |
hasArchitecture()
The architecture of the attached disk.
|
boolean |
hasDescription()
An optional description.
|
boolean |
hasDiskName()
Specifies the disk name.
|
boolean |
hasDiskSizeGb()
Specifies the size of the disk in base-2 GB.
|
boolean |
hasDiskType()
Specifies the disk type to use to create the instance.
|
boolean |
hasOnUpdateAction()
Specifies which action to take on instance update with this disk.
|
boolean |
hasProvisionedIops()
Indicates how many IOPS to provision for the disk.
|
boolean |
hasSourceImage()
The source image to create this disk.
|
boolean |
hasSourceImageEncryptionKey()
The customer-supplied encryption key of the source image.
|
boolean |
hasSourceSnapshot()
The source snapshot to create this disk.
|
boolean |
hasSourceSnapshotEncryptionKey()
The customer-supplied encryption key of the source snapshot.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
AttachedDiskInitializeParams.Builder |
mergeFrom(AttachedDiskInitializeParams other) |
AttachedDiskInitializeParams.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
AttachedDiskInitializeParams.Builder |
mergeFrom(com.google.protobuf.Message other) |
AttachedDiskInitializeParams.Builder |
mergeSourceImageEncryptionKey(CustomerEncryptionKey value)
The customer-supplied encryption key of the source image.
|
AttachedDiskInitializeParams.Builder |
mergeSourceSnapshotEncryptionKey(CustomerEncryptionKey value)
The customer-supplied encryption key of the source snapshot.
|
AttachedDiskInitializeParams.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
AttachedDiskInitializeParams.Builder |
putAllLabels(Map<String,String> values)
Labels to apply to this disk.
|
AttachedDiskInitializeParams.Builder |
putAllResourceManagerTags(Map<String,String> values)
Resource manager tags to be bound to the disk.
|
AttachedDiskInitializeParams.Builder |
putLabels(String key,
String value)
Labels to apply to this disk.
|
AttachedDiskInitializeParams.Builder |
putResourceManagerTags(String key,
String value)
Resource manager tags to be bound to the disk.
|
AttachedDiskInitializeParams.Builder |
removeLabels(String key)
Labels to apply to this disk.
|
AttachedDiskInitializeParams.Builder |
removeResourceManagerTags(String key)
Resource manager tags to be bound to the disk.
|
AttachedDiskInitializeParams.Builder |
setArchitecture(String value)
The architecture of the attached disk.
|
AttachedDiskInitializeParams.Builder |
setArchitectureBytes(com.google.protobuf.ByteString value)
The architecture of the attached disk.
|
AttachedDiskInitializeParams.Builder |
setDescription(String value)
An optional description.
|
AttachedDiskInitializeParams.Builder |
setDescriptionBytes(com.google.protobuf.ByteString value)
An optional description.
|
AttachedDiskInitializeParams.Builder |
setDiskName(String value)
Specifies the disk name.
|
AttachedDiskInitializeParams.Builder |
setDiskNameBytes(com.google.protobuf.ByteString value)
Specifies the disk name.
|
AttachedDiskInitializeParams.Builder |
setDiskSizeGb(long value)
Specifies the size of the disk in base-2 GB.
|
AttachedDiskInitializeParams.Builder |
setDiskType(String value)
Specifies the disk type to use to create the instance.
|
AttachedDiskInitializeParams.Builder |
setDiskTypeBytes(com.google.protobuf.ByteString value)
Specifies the disk type to use to create the instance.
|
AttachedDiskInitializeParams.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AttachedDiskInitializeParams.Builder |
setLicenses(int index,
String value)
A list of publicly visible licenses.
|
AttachedDiskInitializeParams.Builder |
setOnUpdateAction(String value)
Specifies which action to take on instance update with this disk.
|
AttachedDiskInitializeParams.Builder |
setOnUpdateActionBytes(com.google.protobuf.ByteString value)
Specifies which action to take on instance update with this disk.
|
AttachedDiskInitializeParams.Builder |
setProvisionedIops(long value)
Indicates how many IOPS to provision for the disk.
|
AttachedDiskInitializeParams.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
AttachedDiskInitializeParams.Builder |
setResourcePolicies(int index,
String value)
Resource policies applied to this disk for automatic snapshot creations.
|
AttachedDiskInitializeParams.Builder |
setSourceImage(String value)
The source image to create this disk.
|
AttachedDiskInitializeParams.Builder |
setSourceImageBytes(com.google.protobuf.ByteString value)
The source image to create this disk.
|
AttachedDiskInitializeParams.Builder |
setSourceImageEncryptionKey(CustomerEncryptionKey.Builder builderForValue)
The customer-supplied encryption key of the source image.
|
AttachedDiskInitializeParams.Builder |
setSourceImageEncryptionKey(CustomerEncryptionKey value)
The customer-supplied encryption key of the source image.
|
AttachedDiskInitializeParams.Builder |
setSourceSnapshot(String value)
The source snapshot to create this disk.
|
AttachedDiskInitializeParams.Builder |
setSourceSnapshotBytes(com.google.protobuf.ByteString value)
The source snapshot to create this disk.
|
AttachedDiskInitializeParams.Builder |
setSourceSnapshotEncryptionKey(CustomerEncryptionKey.Builder builderForValue)
The customer-supplied encryption key of the source snapshot.
|
AttachedDiskInitializeParams.Builder |
setSourceSnapshotEncryptionKey(CustomerEncryptionKey value)
The customer-supplied encryption key of the source snapshot.
|
AttachedDiskInitializeParams.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<AttachedDiskInitializeParams.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<AttachedDiskInitializeParams.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AttachedDiskInitializeParams.Builder>public AttachedDiskInitializeParams.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<AttachedDiskInitializeParams.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AttachedDiskInitializeParams.Builder>public AttachedDiskInitializeParams getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AttachedDiskInitializeParams build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AttachedDiskInitializeParams buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AttachedDiskInitializeParams.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<AttachedDiskInitializeParams.Builder>public AttachedDiskInitializeParams.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<AttachedDiskInitializeParams.Builder>public AttachedDiskInitializeParams.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<AttachedDiskInitializeParams.Builder>public AttachedDiskInitializeParams.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AttachedDiskInitializeParams.Builder>public AttachedDiskInitializeParams.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AttachedDiskInitializeParams.Builder>public AttachedDiskInitializeParams.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AttachedDiskInitializeParams.Builder>public AttachedDiskInitializeParams.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AttachedDiskInitializeParams.Builder>public AttachedDiskInitializeParams.Builder mergeFrom(AttachedDiskInitializeParams other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AttachedDiskInitializeParams.Builder>public AttachedDiskInitializeParams.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AttachedDiskInitializeParams.Builder>IOExceptionpublic boolean hasArchitecture()
The architecture of the attached disk. Valid values are arm64 or x86_64. Check the Architecture enum for the list of possible values.
optional string architecture = 302803283;hasArchitecture in interface AttachedDiskInitializeParamsOrBuilderpublic String getArchitecture()
The architecture of the attached disk. Valid values are arm64 or x86_64. Check the Architecture enum for the list of possible values.
optional string architecture = 302803283;getArchitecture in interface AttachedDiskInitializeParamsOrBuilderpublic com.google.protobuf.ByteString getArchitectureBytes()
The architecture of the attached disk. Valid values are arm64 or x86_64. Check the Architecture enum for the list of possible values.
optional string architecture = 302803283;getArchitectureBytes in interface AttachedDiskInitializeParamsOrBuilderpublic AttachedDiskInitializeParams.Builder setArchitecture(String value)
The architecture of the attached disk. Valid values are arm64 or x86_64. Check the Architecture enum for the list of possible values.
optional string architecture = 302803283;value - The architecture to set.public AttachedDiskInitializeParams.Builder clearArchitecture()
The architecture of the attached disk. Valid values are arm64 or x86_64. Check the Architecture enum for the list of possible values.
optional string architecture = 302803283;public AttachedDiskInitializeParams.Builder setArchitectureBytes(com.google.protobuf.ByteString value)
The architecture of the attached disk. Valid values are arm64 or x86_64. Check the Architecture enum for the list of possible values.
optional string architecture = 302803283;value - The bytes for architecture to set.public boolean hasDescription()
An optional description. Provide this property when creating the disk.
optional string description = 422937596;hasDescription in interface AttachedDiskInitializeParamsOrBuilderpublic String getDescription()
An optional description. Provide this property when creating the disk.
optional string description = 422937596;getDescription in interface AttachedDiskInitializeParamsOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
An optional description. Provide this property when creating the disk.
optional string description = 422937596;getDescriptionBytes in interface AttachedDiskInitializeParamsOrBuilderpublic AttachedDiskInitializeParams.Builder setDescription(String value)
An optional description. Provide this property when creating the disk.
optional string description = 422937596;value - The description to set.public AttachedDiskInitializeParams.Builder clearDescription()
An optional description. Provide this property when creating the disk.
optional string description = 422937596;public AttachedDiskInitializeParams.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
An optional description. Provide this property when creating the disk.
optional string description = 422937596;value - The bytes for description to set.public boolean hasDiskName()
Specifies the disk name. If not specified, the default is to use the name of the instance. If a disk with the same name already exists in the given region, the existing disk is attached to the new instance and the new disk is not created.
optional string disk_name = 92807149;hasDiskName in interface AttachedDiskInitializeParamsOrBuilderpublic String getDiskName()
Specifies the disk name. If not specified, the default is to use the name of the instance. If a disk with the same name already exists in the given region, the existing disk is attached to the new instance and the new disk is not created.
optional string disk_name = 92807149;getDiskName in interface AttachedDiskInitializeParamsOrBuilderpublic com.google.protobuf.ByteString getDiskNameBytes()
Specifies the disk name. If not specified, the default is to use the name of the instance. If a disk with the same name already exists in the given region, the existing disk is attached to the new instance and the new disk is not created.
optional string disk_name = 92807149;getDiskNameBytes in interface AttachedDiskInitializeParamsOrBuilderpublic AttachedDiskInitializeParams.Builder setDiskName(String value)
Specifies the disk name. If not specified, the default is to use the name of the instance. If a disk with the same name already exists in the given region, the existing disk is attached to the new instance and the new disk is not created.
optional string disk_name = 92807149;value - The diskName to set.public AttachedDiskInitializeParams.Builder clearDiskName()
Specifies the disk name. If not specified, the default is to use the name of the instance. If a disk with the same name already exists in the given region, the existing disk is attached to the new instance and the new disk is not created.
optional string disk_name = 92807149;public AttachedDiskInitializeParams.Builder setDiskNameBytes(com.google.protobuf.ByteString value)
Specifies the disk name. If not specified, the default is to use the name of the instance. If a disk with the same name already exists in the given region, the existing disk is attached to the new instance and the new disk is not created.
optional string disk_name = 92807149;value - The bytes for diskName to set.public boolean hasDiskSizeGb()
Specifies the size of the disk in base-2 GB. The size must be at least 10 GB. If you specify a sourceImage, which is required for boot disks, the default size is the size of the sourceImage. If you do not specify a sourceImage, the default disk size is 500 GB.
optional int64 disk_size_gb = 316263735;hasDiskSizeGb in interface AttachedDiskInitializeParamsOrBuilderpublic long getDiskSizeGb()
Specifies the size of the disk in base-2 GB. The size must be at least 10 GB. If you specify a sourceImage, which is required for boot disks, the default size is the size of the sourceImage. If you do not specify a sourceImage, the default disk size is 500 GB.
optional int64 disk_size_gb = 316263735;getDiskSizeGb in interface AttachedDiskInitializeParamsOrBuilderpublic AttachedDiskInitializeParams.Builder setDiskSizeGb(long value)
Specifies the size of the disk in base-2 GB. The size must be at least 10 GB. If you specify a sourceImage, which is required for boot disks, the default size is the size of the sourceImage. If you do not specify a sourceImage, the default disk size is 500 GB.
optional int64 disk_size_gb = 316263735;value - The diskSizeGb to set.public AttachedDiskInitializeParams.Builder clearDiskSizeGb()
Specifies the size of the disk in base-2 GB. The size must be at least 10 GB. If you specify a sourceImage, which is required for boot disks, the default size is the size of the sourceImage. If you do not specify a sourceImage, the default disk size is 500 GB.
optional int64 disk_size_gb = 316263735;public boolean hasDiskType()
Specifies the disk type to use to create the instance. If not specified, the default is pd-standard, specified using the full URL. For example: https://www.googleapis.com/compute/v1/projects/project/zones/zone /diskTypes/pd-standard For a full list of acceptable values, see Persistent disk types. If you specify this field when creating a VM, you can provide either the full or partial URL. For example, the following values are valid: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /diskTypes/diskType - projects/project/zones/zone/diskTypes/diskType - zones/zone/diskTypes/diskType If you specify this field when creating or updating an instance template or all-instances configuration, specify the type of the disk, not the URL. For example: pd-standard.
optional string disk_type = 93009052;hasDiskType in interface AttachedDiskInitializeParamsOrBuilderpublic String getDiskType()
Specifies the disk type to use to create the instance. If not specified, the default is pd-standard, specified using the full URL. For example: https://www.googleapis.com/compute/v1/projects/project/zones/zone /diskTypes/pd-standard For a full list of acceptable values, see Persistent disk types. If you specify this field when creating a VM, you can provide either the full or partial URL. For example, the following values are valid: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /diskTypes/diskType - projects/project/zones/zone/diskTypes/diskType - zones/zone/diskTypes/diskType If you specify this field when creating or updating an instance template or all-instances configuration, specify the type of the disk, not the URL. For example: pd-standard.
optional string disk_type = 93009052;getDiskType in interface AttachedDiskInitializeParamsOrBuilderpublic com.google.protobuf.ByteString getDiskTypeBytes()
Specifies the disk type to use to create the instance. If not specified, the default is pd-standard, specified using the full URL. For example: https://www.googleapis.com/compute/v1/projects/project/zones/zone /diskTypes/pd-standard For a full list of acceptable values, see Persistent disk types. If you specify this field when creating a VM, you can provide either the full or partial URL. For example, the following values are valid: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /diskTypes/diskType - projects/project/zones/zone/diskTypes/diskType - zones/zone/diskTypes/diskType If you specify this field when creating or updating an instance template or all-instances configuration, specify the type of the disk, not the URL. For example: pd-standard.
optional string disk_type = 93009052;getDiskTypeBytes in interface AttachedDiskInitializeParamsOrBuilderpublic AttachedDiskInitializeParams.Builder setDiskType(String value)
Specifies the disk type to use to create the instance. If not specified, the default is pd-standard, specified using the full URL. For example: https://www.googleapis.com/compute/v1/projects/project/zones/zone /diskTypes/pd-standard For a full list of acceptable values, see Persistent disk types. If you specify this field when creating a VM, you can provide either the full or partial URL. For example, the following values are valid: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /diskTypes/diskType - projects/project/zones/zone/diskTypes/diskType - zones/zone/diskTypes/diskType If you specify this field when creating or updating an instance template or all-instances configuration, specify the type of the disk, not the URL. For example: pd-standard.
optional string disk_type = 93009052;value - The diskType to set.public AttachedDiskInitializeParams.Builder clearDiskType()
Specifies the disk type to use to create the instance. If not specified, the default is pd-standard, specified using the full URL. For example: https://www.googleapis.com/compute/v1/projects/project/zones/zone /diskTypes/pd-standard For a full list of acceptable values, see Persistent disk types. If you specify this field when creating a VM, you can provide either the full or partial URL. For example, the following values are valid: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /diskTypes/diskType - projects/project/zones/zone/diskTypes/diskType - zones/zone/diskTypes/diskType If you specify this field when creating or updating an instance template or all-instances configuration, specify the type of the disk, not the URL. For example: pd-standard.
optional string disk_type = 93009052;public AttachedDiskInitializeParams.Builder setDiskTypeBytes(com.google.protobuf.ByteString value)
Specifies the disk type to use to create the instance. If not specified, the default is pd-standard, specified using the full URL. For example: https://www.googleapis.com/compute/v1/projects/project/zones/zone /diskTypes/pd-standard For a full list of acceptable values, see Persistent disk types. If you specify this field when creating a VM, you can provide either the full or partial URL. For example, the following values are valid: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /diskTypes/diskType - projects/project/zones/zone/diskTypes/diskType - zones/zone/diskTypes/diskType If you specify this field when creating or updating an instance template or all-instances configuration, specify the type of the disk, not the URL. For example: pd-standard.
optional string disk_type = 93009052;value - The bytes for diskType to set.public int getLabelsCount()
AttachedDiskInitializeParamsOrBuilderLabels 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 = 500195327;getLabelsCount in interface AttachedDiskInitializeParamsOrBuilderpublic boolean containsLabels(String key)
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 = 500195327;containsLabels in interface AttachedDiskInitializeParamsOrBuilder@Deprecated public Map<String,String> getLabels()
getLabelsMap() instead.getLabels in interface AttachedDiskInitializeParamsOrBuilderpublic Map<String,String> getLabelsMap()
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 = 500195327;getLabelsMap in interface AttachedDiskInitializeParamsOrBuilderpublic String getLabelsOrDefault(String key, String defaultValue)
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 = 500195327;getLabelsOrDefault in interface AttachedDiskInitializeParamsOrBuilderpublic String getLabelsOrThrow(String key)
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 = 500195327;getLabelsOrThrow in interface AttachedDiskInitializeParamsOrBuilderpublic AttachedDiskInitializeParams.Builder clearLabels()
public AttachedDiskInitializeParams.Builder removeLabels(String key)
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 = 500195327;@Deprecated public Map<String,String> getMutableLabels()
public AttachedDiskInitializeParams.Builder putLabels(String key, String value)
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 = 500195327;public AttachedDiskInitializeParams.Builder putAllLabels(Map<String,String> values)
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 = 500195327;public com.google.protobuf.ProtocolStringList getLicensesList()
A list of publicly visible licenses. Reserved for Google's use.
repeated string licenses = 337642578;getLicensesList in interface AttachedDiskInitializeParamsOrBuilderpublic int getLicensesCount()
A list of publicly visible licenses. Reserved for Google's use.
repeated string licenses = 337642578;getLicensesCount in interface AttachedDiskInitializeParamsOrBuilderpublic String getLicenses(int index)
A list of publicly visible licenses. Reserved for Google's use.
repeated string licenses = 337642578;getLicenses in interface AttachedDiskInitializeParamsOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getLicensesBytes(int index)
A list of publicly visible licenses. Reserved for Google's use.
repeated string licenses = 337642578;getLicensesBytes in interface AttachedDiskInitializeParamsOrBuilderindex - The index of the value to return.public AttachedDiskInitializeParams.Builder setLicenses(int index, String value)
A list of publicly visible licenses. Reserved for Google's use.
repeated string licenses = 337642578;index - The index to set the value at.value - The licenses to set.public AttachedDiskInitializeParams.Builder addLicenses(String value)
A list of publicly visible licenses. Reserved for Google's use.
repeated string licenses = 337642578;value - The licenses to add.public AttachedDiskInitializeParams.Builder addAllLicenses(Iterable<String> values)
A list of publicly visible licenses. Reserved for Google's use.
repeated string licenses = 337642578;values - The licenses to add.public AttachedDiskInitializeParams.Builder clearLicenses()
A list of publicly visible licenses. Reserved for Google's use.
repeated string licenses = 337642578;public AttachedDiskInitializeParams.Builder addLicensesBytes(com.google.protobuf.ByteString value)
A list of publicly visible licenses. Reserved for Google's use.
repeated string licenses = 337642578;value - The bytes of the licenses to add.public boolean hasOnUpdateAction()
Specifies which action to take on instance update with this disk. Default is to use the existing disk. Check the OnUpdateAction enum for the list of possible values.
optional string on_update_action = 202451980;hasOnUpdateAction in interface AttachedDiskInitializeParamsOrBuilderpublic String getOnUpdateAction()
Specifies which action to take on instance update with this disk. Default is to use the existing disk. Check the OnUpdateAction enum for the list of possible values.
optional string on_update_action = 202451980;getOnUpdateAction in interface AttachedDiskInitializeParamsOrBuilderpublic com.google.protobuf.ByteString getOnUpdateActionBytes()
Specifies which action to take on instance update with this disk. Default is to use the existing disk. Check the OnUpdateAction enum for the list of possible values.
optional string on_update_action = 202451980;getOnUpdateActionBytes in interface AttachedDiskInitializeParamsOrBuilderpublic AttachedDiskInitializeParams.Builder setOnUpdateAction(String value)
Specifies which action to take on instance update with this disk. Default is to use the existing disk. Check the OnUpdateAction enum for the list of possible values.
optional string on_update_action = 202451980;value - The onUpdateAction to set.public AttachedDiskInitializeParams.Builder clearOnUpdateAction()
Specifies which action to take on instance update with this disk. Default is to use the existing disk. Check the OnUpdateAction enum for the list of possible values.
optional string on_update_action = 202451980;public AttachedDiskInitializeParams.Builder setOnUpdateActionBytes(com.google.protobuf.ByteString value)
Specifies which action to take on instance update with this disk. Default is to use the existing disk. Check the OnUpdateAction enum for the list of possible values.
optional string on_update_action = 202451980;value - The bytes for onUpdateAction to set.public boolean hasProvisionedIops()
Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per second that the disk can handle. Values must be between 10,000 and 120,000. For more details, see the Extreme persistent disk documentation.
optional int64 provisioned_iops = 186769108;hasProvisionedIops in interface AttachedDiskInitializeParamsOrBuilderpublic long getProvisionedIops()
Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per second that the disk can handle. Values must be between 10,000 and 120,000. For more details, see the Extreme persistent disk documentation.
optional int64 provisioned_iops = 186769108;getProvisionedIops in interface AttachedDiskInitializeParamsOrBuilderpublic AttachedDiskInitializeParams.Builder setProvisionedIops(long value)
Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per second that the disk can handle. Values must be between 10,000 and 120,000. For more details, see the Extreme persistent disk documentation.
optional int64 provisioned_iops = 186769108;value - The provisionedIops to set.public AttachedDiskInitializeParams.Builder clearProvisionedIops()
Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per second that the disk can handle. Values must be between 10,000 and 120,000. For more details, see the Extreme persistent disk documentation.
optional int64 provisioned_iops = 186769108;public int getResourceManagerTagsCount()
AttachedDiskInitializeParamsOrBuilder
Resource manager tags to be bound to the disk. Tag keys and values have the same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty.
map<string, string> resource_manager_tags = 377671164;getResourceManagerTagsCount in interface AttachedDiskInitializeParamsOrBuilderpublic boolean containsResourceManagerTags(String key)
Resource manager tags to be bound to the disk. Tag keys and values have the same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty.
map<string, string> resource_manager_tags = 377671164;containsResourceManagerTags in interface AttachedDiskInitializeParamsOrBuilder@Deprecated public Map<String,String> getResourceManagerTags()
getResourceManagerTagsMap() instead.getResourceManagerTags in interface AttachedDiskInitializeParamsOrBuilderpublic Map<String,String> getResourceManagerTagsMap()
Resource manager tags to be bound to the disk. Tag keys and values have the same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty.
map<string, string> resource_manager_tags = 377671164;getResourceManagerTagsMap in interface AttachedDiskInitializeParamsOrBuilderpublic String getResourceManagerTagsOrDefault(String key, String defaultValue)
Resource manager tags to be bound to the disk. Tag keys and values have the same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty.
map<string, string> resource_manager_tags = 377671164;getResourceManagerTagsOrDefault in interface AttachedDiskInitializeParamsOrBuilderpublic String getResourceManagerTagsOrThrow(String key)
Resource manager tags to be bound to the disk. Tag keys and values have the same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty.
map<string, string> resource_manager_tags = 377671164;getResourceManagerTagsOrThrow in interface AttachedDiskInitializeParamsOrBuilderpublic AttachedDiskInitializeParams.Builder clearResourceManagerTags()
public AttachedDiskInitializeParams.Builder removeResourceManagerTags(String key)
Resource manager tags to be bound to the disk. Tag keys and values have the same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty.
map<string, string> resource_manager_tags = 377671164;@Deprecated public Map<String,String> getMutableResourceManagerTags()
public AttachedDiskInitializeParams.Builder putResourceManagerTags(String key, String value)
Resource manager tags to be bound to the disk. Tag keys and values have the same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty.
map<string, string> resource_manager_tags = 377671164;public AttachedDiskInitializeParams.Builder putAllResourceManagerTags(Map<String,String> values)
Resource manager tags to be bound to the disk. Tag keys and values have the same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty.
map<string, string> resource_manager_tags = 377671164;public com.google.protobuf.ProtocolStringList getResourcePoliciesList()
Resource policies applied to this disk for automatic snapshot creations. Specified using the full or partial URL. For instance template, specify only the resource policy name.
repeated string resource_policies = 22220385;getResourcePoliciesList in interface AttachedDiskInitializeParamsOrBuilderpublic int getResourcePoliciesCount()
Resource policies applied to this disk for automatic snapshot creations. Specified using the full or partial URL. For instance template, specify only the resource policy name.
repeated string resource_policies = 22220385;getResourcePoliciesCount in interface AttachedDiskInitializeParamsOrBuilderpublic String getResourcePolicies(int index)
Resource policies applied to this disk for automatic snapshot creations. Specified using the full or partial URL. For instance template, specify only the resource policy name.
repeated string resource_policies = 22220385;getResourcePolicies in interface AttachedDiskInitializeParamsOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getResourcePoliciesBytes(int index)
Resource policies applied to this disk for automatic snapshot creations. Specified using the full or partial URL. For instance template, specify only the resource policy name.
repeated string resource_policies = 22220385;getResourcePoliciesBytes in interface AttachedDiskInitializeParamsOrBuilderindex - The index of the value to return.public AttachedDiskInitializeParams.Builder setResourcePolicies(int index, String value)
Resource policies applied to this disk for automatic snapshot creations. Specified using the full or partial URL. For instance template, specify only the resource policy name.
repeated string resource_policies = 22220385;index - The index to set the value at.value - The resourcePolicies to set.public AttachedDiskInitializeParams.Builder addResourcePolicies(String value)
Resource policies applied to this disk for automatic snapshot creations. Specified using the full or partial URL. For instance template, specify only the resource policy name.
repeated string resource_policies = 22220385;value - The resourcePolicies to add.public AttachedDiskInitializeParams.Builder addAllResourcePolicies(Iterable<String> values)
Resource policies applied to this disk for automatic snapshot creations. Specified using the full or partial URL. For instance template, specify only the resource policy name.
repeated string resource_policies = 22220385;values - The resourcePolicies to add.public AttachedDiskInitializeParams.Builder clearResourcePolicies()
Resource policies applied to this disk for automatic snapshot creations. Specified using the full or partial URL. For instance template, specify only the resource policy name.
repeated string resource_policies = 22220385;public AttachedDiskInitializeParams.Builder addResourcePoliciesBytes(com.google.protobuf.ByteString value)
Resource policies applied to this disk for automatic snapshot creations. Specified using the full or partial URL. For instance template, specify only the resource policy name.
repeated string resource_policies = 22220385;value - The bytes of the resourcePolicies to add.public boolean hasSourceImage()
The source image to create this disk. When creating a new instance, one of initializeParams.sourceImage or initializeParams.sourceSnapshot or disks.source is required except for local SSD. To create a disk with one of the public operating system images, specify the image by its family name. For example, specify family/debian-9 to use the latest Debian 9 image: projects/debian-cloud/global/images/family/debian-9 Alternatively, use a specific version of a public operating system image: projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD To create a disk with a custom image that you created, specify the image name in the following format: global/images/my-custom-image You can also specify a custom image by its image family, which returns the latest version of the image in that family. Replace the image name with family/family-name: global/images/family/my-image-family If the source image is deleted later, this field will not be set.
optional string source_image = 50443319;hasSourceImage in interface AttachedDiskInitializeParamsOrBuilderpublic String getSourceImage()
The source image to create this disk. When creating a new instance, one of initializeParams.sourceImage or initializeParams.sourceSnapshot or disks.source is required except for local SSD. To create a disk with one of the public operating system images, specify the image by its family name. For example, specify family/debian-9 to use the latest Debian 9 image: projects/debian-cloud/global/images/family/debian-9 Alternatively, use a specific version of a public operating system image: projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD To create a disk with a custom image that you created, specify the image name in the following format: global/images/my-custom-image You can also specify a custom image by its image family, which returns the latest version of the image in that family. Replace the image name with family/family-name: global/images/family/my-image-family If the source image is deleted later, this field will not be set.
optional string source_image = 50443319;getSourceImage in interface AttachedDiskInitializeParamsOrBuilderpublic com.google.protobuf.ByteString getSourceImageBytes()
The source image to create this disk. When creating a new instance, one of initializeParams.sourceImage or initializeParams.sourceSnapshot or disks.source is required except for local SSD. To create a disk with one of the public operating system images, specify the image by its family name. For example, specify family/debian-9 to use the latest Debian 9 image: projects/debian-cloud/global/images/family/debian-9 Alternatively, use a specific version of a public operating system image: projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD To create a disk with a custom image that you created, specify the image name in the following format: global/images/my-custom-image You can also specify a custom image by its image family, which returns the latest version of the image in that family. Replace the image name with family/family-name: global/images/family/my-image-family If the source image is deleted later, this field will not be set.
optional string source_image = 50443319;getSourceImageBytes in interface AttachedDiskInitializeParamsOrBuilderpublic AttachedDiskInitializeParams.Builder setSourceImage(String value)
The source image to create this disk. When creating a new instance, one of initializeParams.sourceImage or initializeParams.sourceSnapshot or disks.source is required except for local SSD. To create a disk with one of the public operating system images, specify the image by its family name. For example, specify family/debian-9 to use the latest Debian 9 image: projects/debian-cloud/global/images/family/debian-9 Alternatively, use a specific version of a public operating system image: projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD To create a disk with a custom image that you created, specify the image name in the following format: global/images/my-custom-image You can also specify a custom image by its image family, which returns the latest version of the image in that family. Replace the image name with family/family-name: global/images/family/my-image-family If the source image is deleted later, this field will not be set.
optional string source_image = 50443319;value - The sourceImage to set.public AttachedDiskInitializeParams.Builder clearSourceImage()
The source image to create this disk. When creating a new instance, one of initializeParams.sourceImage or initializeParams.sourceSnapshot or disks.source is required except for local SSD. To create a disk with one of the public operating system images, specify the image by its family name. For example, specify family/debian-9 to use the latest Debian 9 image: projects/debian-cloud/global/images/family/debian-9 Alternatively, use a specific version of a public operating system image: projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD To create a disk with a custom image that you created, specify the image name in the following format: global/images/my-custom-image You can also specify a custom image by its image family, which returns the latest version of the image in that family. Replace the image name with family/family-name: global/images/family/my-image-family If the source image is deleted later, this field will not be set.
optional string source_image = 50443319;public AttachedDiskInitializeParams.Builder setSourceImageBytes(com.google.protobuf.ByteString value)
The source image to create this disk. When creating a new instance, one of initializeParams.sourceImage or initializeParams.sourceSnapshot or disks.source is required except for local SSD. To create a disk with one of the public operating system images, specify the image by its family name. For example, specify family/debian-9 to use the latest Debian 9 image: projects/debian-cloud/global/images/family/debian-9 Alternatively, use a specific version of a public operating system image: projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD To create a disk with a custom image that you created, specify the image name in the following format: global/images/my-custom-image You can also specify a custom image by its image family, which returns the latest version of the image in that family. Replace the image name with family/family-name: global/images/family/my-image-family If the source image is deleted later, this field will not be set.
optional string source_image = 50443319;value - The bytes for sourceImage to set.public boolean hasSourceImageEncryptionKey()
The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key. InstanceTemplate and InstancePropertiesPatch do not store customer-supplied encryption keys, so you cannot create disks for instances in a managed instance group if the source images are encrypted with your own keys.
optional .google.cloud.compute.v1.CustomerEncryptionKey source_image_encryption_key = 381503659;
hasSourceImageEncryptionKey in interface AttachedDiskInitializeParamsOrBuilderpublic CustomerEncryptionKey getSourceImageEncryptionKey()
The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key. InstanceTemplate and InstancePropertiesPatch do not store customer-supplied encryption keys, so you cannot create disks for instances in a managed instance group if the source images are encrypted with your own keys.
optional .google.cloud.compute.v1.CustomerEncryptionKey source_image_encryption_key = 381503659;
getSourceImageEncryptionKey in interface AttachedDiskInitializeParamsOrBuilderpublic AttachedDiskInitializeParams.Builder setSourceImageEncryptionKey(CustomerEncryptionKey value)
The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key. InstanceTemplate and InstancePropertiesPatch do not store customer-supplied encryption keys, so you cannot create disks for instances in a managed instance group if the source images are encrypted with your own keys.
optional .google.cloud.compute.v1.CustomerEncryptionKey source_image_encryption_key = 381503659;
public AttachedDiskInitializeParams.Builder setSourceImageEncryptionKey(CustomerEncryptionKey.Builder builderForValue)
The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key. InstanceTemplate and InstancePropertiesPatch do not store customer-supplied encryption keys, so you cannot create disks for instances in a managed instance group if the source images are encrypted with your own keys.
optional .google.cloud.compute.v1.CustomerEncryptionKey source_image_encryption_key = 381503659;
public AttachedDiskInitializeParams.Builder mergeSourceImageEncryptionKey(CustomerEncryptionKey value)
The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key. InstanceTemplate and InstancePropertiesPatch do not store customer-supplied encryption keys, so you cannot create disks for instances in a managed instance group if the source images are encrypted with your own keys.
optional .google.cloud.compute.v1.CustomerEncryptionKey source_image_encryption_key = 381503659;
public AttachedDiskInitializeParams.Builder clearSourceImageEncryptionKey()
The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key. InstanceTemplate and InstancePropertiesPatch do not store customer-supplied encryption keys, so you cannot create disks for instances in a managed instance group if the source images are encrypted with your own keys.
optional .google.cloud.compute.v1.CustomerEncryptionKey source_image_encryption_key = 381503659;
public CustomerEncryptionKey.Builder getSourceImageEncryptionKeyBuilder()
The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key. InstanceTemplate and InstancePropertiesPatch do not store customer-supplied encryption keys, so you cannot create disks for instances in a managed instance group if the source images are encrypted with your own keys.
optional .google.cloud.compute.v1.CustomerEncryptionKey source_image_encryption_key = 381503659;
public CustomerEncryptionKeyOrBuilder getSourceImageEncryptionKeyOrBuilder()
The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key. InstanceTemplate and InstancePropertiesPatch do not store customer-supplied encryption keys, so you cannot create disks for instances in a managed instance group if the source images are encrypted with your own keys.
optional .google.cloud.compute.v1.CustomerEncryptionKey source_image_encryption_key = 381503659;
getSourceImageEncryptionKeyOrBuilder in interface AttachedDiskInitializeParamsOrBuilderpublic boolean hasSourceSnapshot()
The source snapshot to create this disk. When creating a new instance, one of initializeParams.sourceSnapshot or initializeParams.sourceImage or disks.source is required except for local SSD. To create a disk with a snapshot that you created, specify the snapshot name in the following format: global/snapshots/my-backup If the source snapshot is deleted later, this field will not be set.
optional string source_snapshot = 126061928;hasSourceSnapshot in interface AttachedDiskInitializeParamsOrBuilderpublic String getSourceSnapshot()
The source snapshot to create this disk. When creating a new instance, one of initializeParams.sourceSnapshot or initializeParams.sourceImage or disks.source is required except for local SSD. To create a disk with a snapshot that you created, specify the snapshot name in the following format: global/snapshots/my-backup If the source snapshot is deleted later, this field will not be set.
optional string source_snapshot = 126061928;getSourceSnapshot in interface AttachedDiskInitializeParamsOrBuilderpublic com.google.protobuf.ByteString getSourceSnapshotBytes()
The source snapshot to create this disk. When creating a new instance, one of initializeParams.sourceSnapshot or initializeParams.sourceImage or disks.source is required except for local SSD. To create a disk with a snapshot that you created, specify the snapshot name in the following format: global/snapshots/my-backup If the source snapshot is deleted later, this field will not be set.
optional string source_snapshot = 126061928;getSourceSnapshotBytes in interface AttachedDiskInitializeParamsOrBuilderpublic AttachedDiskInitializeParams.Builder setSourceSnapshot(String value)
The source snapshot to create this disk. When creating a new instance, one of initializeParams.sourceSnapshot or initializeParams.sourceImage or disks.source is required except for local SSD. To create a disk with a snapshot that you created, specify the snapshot name in the following format: global/snapshots/my-backup If the source snapshot is deleted later, this field will not be set.
optional string source_snapshot = 126061928;value - The sourceSnapshot to set.public AttachedDiskInitializeParams.Builder clearSourceSnapshot()
The source snapshot to create this disk. When creating a new instance, one of initializeParams.sourceSnapshot or initializeParams.sourceImage or disks.source is required except for local SSD. To create a disk with a snapshot that you created, specify the snapshot name in the following format: global/snapshots/my-backup If the source snapshot is deleted later, this field will not be set.
optional string source_snapshot = 126061928;public AttachedDiskInitializeParams.Builder setSourceSnapshotBytes(com.google.protobuf.ByteString value)
The source snapshot to create this disk. When creating a new instance, one of initializeParams.sourceSnapshot or initializeParams.sourceImage or disks.source is required except for local SSD. To create a disk with a snapshot that you created, specify the snapshot name in the following format: global/snapshots/my-backup If the source snapshot is deleted later, this field will not be set.
optional string source_snapshot = 126061928;value - The bytes for sourceSnapshot to set.public boolean hasSourceSnapshotEncryptionKey()
The customer-supplied encryption key of the source snapshot.
optional .google.cloud.compute.v1.CustomerEncryptionKey source_snapshot_encryption_key = 303679322;
hasSourceSnapshotEncryptionKey in interface AttachedDiskInitializeParamsOrBuilderpublic CustomerEncryptionKey getSourceSnapshotEncryptionKey()
The customer-supplied encryption key of the source snapshot.
optional .google.cloud.compute.v1.CustomerEncryptionKey source_snapshot_encryption_key = 303679322;
getSourceSnapshotEncryptionKey in interface AttachedDiskInitializeParamsOrBuilderpublic AttachedDiskInitializeParams.Builder setSourceSnapshotEncryptionKey(CustomerEncryptionKey value)
The customer-supplied encryption key of the source snapshot.
optional .google.cloud.compute.v1.CustomerEncryptionKey source_snapshot_encryption_key = 303679322;
public AttachedDiskInitializeParams.Builder setSourceSnapshotEncryptionKey(CustomerEncryptionKey.Builder builderForValue)
The customer-supplied encryption key of the source snapshot.
optional .google.cloud.compute.v1.CustomerEncryptionKey source_snapshot_encryption_key = 303679322;
public AttachedDiskInitializeParams.Builder mergeSourceSnapshotEncryptionKey(CustomerEncryptionKey value)
The customer-supplied encryption key of the source snapshot.
optional .google.cloud.compute.v1.CustomerEncryptionKey source_snapshot_encryption_key = 303679322;
public AttachedDiskInitializeParams.Builder clearSourceSnapshotEncryptionKey()
The customer-supplied encryption key of the source snapshot.
optional .google.cloud.compute.v1.CustomerEncryptionKey source_snapshot_encryption_key = 303679322;
public CustomerEncryptionKey.Builder getSourceSnapshotEncryptionKeyBuilder()
The customer-supplied encryption key of the source snapshot.
optional .google.cloud.compute.v1.CustomerEncryptionKey source_snapshot_encryption_key = 303679322;
public CustomerEncryptionKeyOrBuilder getSourceSnapshotEncryptionKeyOrBuilder()
The customer-supplied encryption key of the source snapshot.
optional .google.cloud.compute.v1.CustomerEncryptionKey source_snapshot_encryption_key = 303679322;
getSourceSnapshotEncryptionKeyOrBuilder in interface AttachedDiskInitializeParamsOrBuilderpublic final AttachedDiskInitializeParams.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AttachedDiskInitializeParams.Builder>public final AttachedDiskInitializeParams.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AttachedDiskInitializeParams.Builder>Copyright © 2023 Google LLC. All rights reserved.