public static final class DiskInstantiationConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DiskInstantiationConfig.Builder> implements DiskInstantiationConfigOrBuilder
A specification of the desired way to instantiate a disk in the instance template when its created from a source instance.Protobuf type
google.cloud.compute.v1.DiskInstantiationConfig| Modifier and Type | Method and Description |
|---|---|
DiskInstantiationConfig.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
DiskInstantiationConfig |
build() |
DiskInstantiationConfig |
buildPartial() |
DiskInstantiationConfig.Builder |
clear() |
DiskInstantiationConfig.Builder |
clearAutoDelete()
Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
|
DiskInstantiationConfig.Builder |
clearCustomImage()
The custom source image to be used to restore this disk when instantiating this instance template.
|
DiskInstantiationConfig.Builder |
clearDeviceName()
Specifies the device name of the disk to which the configurations apply to.
|
DiskInstantiationConfig.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
DiskInstantiationConfig.Builder |
clearInstantiateFrom()
Specifies whether to include the disk and what image to use.
|
DiskInstantiationConfig.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
DiskInstantiationConfig.Builder |
clone() |
boolean |
getAutoDelete()
Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
|
String |
getCustomImage()
The custom source image to be used to restore this disk when instantiating this instance template.
|
com.google.protobuf.ByteString |
getCustomImageBytes()
The custom source image to be used to restore this disk when instantiating this instance template.
|
DiskInstantiationConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getDeviceName()
Specifies the device name of the disk to which the configurations apply to.
|
com.google.protobuf.ByteString |
getDeviceNameBytes()
Specifies the device name of the disk to which the configurations apply to.
|
String |
getInstantiateFrom()
Specifies whether to include the disk and what image to use.
|
com.google.protobuf.ByteString |
getInstantiateFromBytes()
Specifies whether to include the disk and what image to use.
|
boolean |
hasAutoDelete()
Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
|
boolean |
hasCustomImage()
The custom source image to be used to restore this disk when instantiating this instance template.
|
boolean |
hasDeviceName()
Specifies the device name of the disk to which the configurations apply to.
|
boolean |
hasInstantiateFrom()
Specifies whether to include the disk and what image to use.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
DiskInstantiationConfig.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
DiskInstantiationConfig.Builder |
mergeFrom(DiskInstantiationConfig other) |
DiskInstantiationConfig.Builder |
mergeFrom(com.google.protobuf.Message other) |
DiskInstantiationConfig.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
DiskInstantiationConfig.Builder |
setAutoDelete(boolean value)
Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
|
DiskInstantiationConfig.Builder |
setCustomImage(String value)
The custom source image to be used to restore this disk when instantiating this instance template.
|
DiskInstantiationConfig.Builder |
setCustomImageBytes(com.google.protobuf.ByteString value)
The custom source image to be used to restore this disk when instantiating this instance template.
|
DiskInstantiationConfig.Builder |
setDeviceName(String value)
Specifies the device name of the disk to which the configurations apply to.
|
DiskInstantiationConfig.Builder |
setDeviceNameBytes(com.google.protobuf.ByteString value)
Specifies the device name of the disk to which the configurations apply to.
|
DiskInstantiationConfig.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
DiskInstantiationConfig.Builder |
setInstantiateFrom(String value)
Specifies whether to include the disk and what image to use.
|
DiskInstantiationConfig.Builder |
setInstantiateFromBytes(com.google.protobuf.ByteString value)
Specifies whether to include the disk and what image to use.
|
DiskInstantiationConfig.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
DiskInstantiationConfig.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<DiskInstantiationConfig.Builder>public DiskInstantiationConfig.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<DiskInstantiationConfig.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<DiskInstantiationConfig.Builder>public DiskInstantiationConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic DiskInstantiationConfig build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic DiskInstantiationConfig buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic DiskInstantiationConfig.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<DiskInstantiationConfig.Builder>public DiskInstantiationConfig.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<DiskInstantiationConfig.Builder>public DiskInstantiationConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<DiskInstantiationConfig.Builder>public DiskInstantiationConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<DiskInstantiationConfig.Builder>public DiskInstantiationConfig.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<DiskInstantiationConfig.Builder>public DiskInstantiationConfig.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<DiskInstantiationConfig.Builder>public DiskInstantiationConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<DiskInstantiationConfig.Builder>public DiskInstantiationConfig.Builder mergeFrom(DiskInstantiationConfig other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<DiskInstantiationConfig.Builder>public DiskInstantiationConfig.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<DiskInstantiationConfig.Builder>IOExceptionpublic boolean hasAutoDelete()
Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
optional bool auto_delete = 464761403;hasAutoDelete in interface DiskInstantiationConfigOrBuilderpublic boolean getAutoDelete()
Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
optional bool auto_delete = 464761403;getAutoDelete in interface DiskInstantiationConfigOrBuilderpublic DiskInstantiationConfig.Builder setAutoDelete(boolean value)
Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
optional bool auto_delete = 464761403;value - The autoDelete to set.public DiskInstantiationConfig.Builder clearAutoDelete()
Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
optional bool auto_delete = 464761403;public boolean hasCustomImage()
The custom source image to be used to restore this disk when instantiating this instance template.
optional string custom_image = 184123149;hasCustomImage in interface DiskInstantiationConfigOrBuilderpublic String getCustomImage()
The custom source image to be used to restore this disk when instantiating this instance template.
optional string custom_image = 184123149;getCustomImage in interface DiskInstantiationConfigOrBuilderpublic com.google.protobuf.ByteString getCustomImageBytes()
The custom source image to be used to restore this disk when instantiating this instance template.
optional string custom_image = 184123149;getCustomImageBytes in interface DiskInstantiationConfigOrBuilderpublic DiskInstantiationConfig.Builder setCustomImage(String value)
The custom source image to be used to restore this disk when instantiating this instance template.
optional string custom_image = 184123149;value - The customImage to set.public DiskInstantiationConfig.Builder clearCustomImage()
The custom source image to be used to restore this disk when instantiating this instance template.
optional string custom_image = 184123149;public DiskInstantiationConfig.Builder setCustomImageBytes(com.google.protobuf.ByteString value)
The custom source image to be used to restore this disk when instantiating this instance template.
optional string custom_image = 184123149;value - The bytes for customImage to set.public boolean hasDeviceName()
Specifies the device name of the disk to which the configurations apply to.
optional string device_name = 67541716;hasDeviceName in interface DiskInstantiationConfigOrBuilderpublic String getDeviceName()
Specifies the device name of the disk to which the configurations apply to.
optional string device_name = 67541716;getDeviceName in interface DiskInstantiationConfigOrBuilderpublic com.google.protobuf.ByteString getDeviceNameBytes()
Specifies the device name of the disk to which the configurations apply to.
optional string device_name = 67541716;getDeviceNameBytes in interface DiskInstantiationConfigOrBuilderpublic DiskInstantiationConfig.Builder setDeviceName(String value)
Specifies the device name of the disk to which the configurations apply to.
optional string device_name = 67541716;value - The deviceName to set.public DiskInstantiationConfig.Builder clearDeviceName()
Specifies the device name of the disk to which the configurations apply to.
optional string device_name = 67541716;public DiskInstantiationConfig.Builder setDeviceNameBytes(com.google.protobuf.ByteString value)
Specifies the device name of the disk to which the configurations apply to.
optional string device_name = 67541716;value - The bytes for deviceName to set.public boolean hasInstantiateFrom()
Specifies whether to include the disk and what image to use. Possible values are: - source-image: to use the same image that was used to create the source instance's corresponding disk. Applicable to the boot disk and additional read-write disks. - source-image-family: to use the same image family that was used to create the source instance's corresponding disk. Applicable to the boot disk and additional read-write disks. - custom-image: to use a user-provided image url for disk creation. Applicable to the boot disk and additional read-write disks. - attach-read-only: to attach a read-only disk. Applicable to read-only disks. - do-not-include: to exclude a disk from the template. Applicable to additional read-write disks, local SSDs, and read-only disks. Check the InstantiateFrom enum for the list of possible values.
optional string instantiate_from = 393383903;hasInstantiateFrom in interface DiskInstantiationConfigOrBuilderpublic String getInstantiateFrom()
Specifies whether to include the disk and what image to use. Possible values are: - source-image: to use the same image that was used to create the source instance's corresponding disk. Applicable to the boot disk and additional read-write disks. - source-image-family: to use the same image family that was used to create the source instance's corresponding disk. Applicable to the boot disk and additional read-write disks. - custom-image: to use a user-provided image url for disk creation. Applicable to the boot disk and additional read-write disks. - attach-read-only: to attach a read-only disk. Applicable to read-only disks. - do-not-include: to exclude a disk from the template. Applicable to additional read-write disks, local SSDs, and read-only disks. Check the InstantiateFrom enum for the list of possible values.
optional string instantiate_from = 393383903;getInstantiateFrom in interface DiskInstantiationConfigOrBuilderpublic com.google.protobuf.ByteString getInstantiateFromBytes()
Specifies whether to include the disk and what image to use. Possible values are: - source-image: to use the same image that was used to create the source instance's corresponding disk. Applicable to the boot disk and additional read-write disks. - source-image-family: to use the same image family that was used to create the source instance's corresponding disk. Applicable to the boot disk and additional read-write disks. - custom-image: to use a user-provided image url for disk creation. Applicable to the boot disk and additional read-write disks. - attach-read-only: to attach a read-only disk. Applicable to read-only disks. - do-not-include: to exclude a disk from the template. Applicable to additional read-write disks, local SSDs, and read-only disks. Check the InstantiateFrom enum for the list of possible values.
optional string instantiate_from = 393383903;getInstantiateFromBytes in interface DiskInstantiationConfigOrBuilderpublic DiskInstantiationConfig.Builder setInstantiateFrom(String value)
Specifies whether to include the disk and what image to use. Possible values are: - source-image: to use the same image that was used to create the source instance's corresponding disk. Applicable to the boot disk and additional read-write disks. - source-image-family: to use the same image family that was used to create the source instance's corresponding disk. Applicable to the boot disk and additional read-write disks. - custom-image: to use a user-provided image url for disk creation. Applicable to the boot disk and additional read-write disks. - attach-read-only: to attach a read-only disk. Applicable to read-only disks. - do-not-include: to exclude a disk from the template. Applicable to additional read-write disks, local SSDs, and read-only disks. Check the InstantiateFrom enum for the list of possible values.
optional string instantiate_from = 393383903;value - The instantiateFrom to set.public DiskInstantiationConfig.Builder clearInstantiateFrom()
Specifies whether to include the disk and what image to use. Possible values are: - source-image: to use the same image that was used to create the source instance's corresponding disk. Applicable to the boot disk and additional read-write disks. - source-image-family: to use the same image family that was used to create the source instance's corresponding disk. Applicable to the boot disk and additional read-write disks. - custom-image: to use a user-provided image url for disk creation. Applicable to the boot disk and additional read-write disks. - attach-read-only: to attach a read-only disk. Applicable to read-only disks. - do-not-include: to exclude a disk from the template. Applicable to additional read-write disks, local SSDs, and read-only disks. Check the InstantiateFrom enum for the list of possible values.
optional string instantiate_from = 393383903;public DiskInstantiationConfig.Builder setInstantiateFromBytes(com.google.protobuf.ByteString value)
Specifies whether to include the disk and what image to use. Possible values are: - source-image: to use the same image that was used to create the source instance's corresponding disk. Applicable to the boot disk and additional read-write disks. - source-image-family: to use the same image family that was used to create the source instance's corresponding disk. Applicable to the boot disk and additional read-write disks. - custom-image: to use a user-provided image url for disk creation. Applicable to the boot disk and additional read-write disks. - attach-read-only: to attach a read-only disk. Applicable to read-only disks. - do-not-include: to exclude a disk from the template. Applicable to additional read-write disks, local SSDs, and read-only disks. Check the InstantiateFrom enum for the list of possible values.
optional string instantiate_from = 393383903;value - The bytes for instantiateFrom to set.public final DiskInstantiationConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DiskInstantiationConfig.Builder>public final DiskInstantiationConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DiskInstantiationConfig.Builder>Copyright © 2023 Google LLC. All rights reserved.