Package com.google.cloud.compute.v1
Class DiskInstantiationConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DiskInstantiationConfig.Builder>
com.google.cloud.compute.v1.DiskInstantiationConfig.Builder
- All Implemented Interfaces:
DiskInstantiationConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- DiskInstantiationConfig
public static final class DiskInstantiationConfig.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).The custom source image to be used to restore this disk when instantiating this instance template.Specifies the device name of the disk to which the configurations apply to.Specifies whether to include the disk and what image to use.booleanSpecifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).The custom source image to be used to restore this disk when instantiating this instance template.com.google.protobuf.ByteStringThe custom source image to be used to restore this disk when instantiating this instance template.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorSpecifies the device name of the disk to which the configurations apply to.com.google.protobuf.ByteStringSpecifies the device name of the disk to which the configurations apply to.Specifies whether to include the disk and what image to use.com.google.protobuf.ByteStringSpecifies whether to include the disk and what image to use.booleanSpecifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).booleanThe custom source image to be used to restore this disk when instantiating this instance template.booleanSpecifies the device name of the disk to which the configurations apply to.booleanSpecifies whether to include the disk and what image to use.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(DiskInstantiationConfig other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) 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).setCustomImage(String value) The custom source image to be used to restore this disk when instantiating this instance template.setCustomImageBytes(com.google.protobuf.ByteString value) The custom source image to be used to restore this disk when instantiating this instance template.setDeviceName(String value) Specifies the device name of the disk to which the configurations apply to.setDeviceNameBytes(com.google.protobuf.ByteString value) Specifies the device name of the disk to which the configurations apply to.setInstantiateFrom(String value) Specifies whether to include the disk and what image to use.setInstantiateFromBytes(com.google.protobuf.ByteString value) Specifies whether to include the disk and what image to use.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<DiskInstantiationConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<DiskInstantiationConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<DiskInstantiationConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DiskInstantiationConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<DiskInstantiationConfig.Builder>
-
mergeFrom
public DiskInstantiationConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DiskInstantiationConfig.Builder>- Throws:
IOException
-
hasAutoDelete
public 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;- Specified by:
hasAutoDeletein interfaceDiskInstantiationConfigOrBuilder- Returns:
- Whether the autoDelete field is set.
-
getAutoDelete
public 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;- Specified by:
getAutoDeletein interfaceDiskInstantiationConfigOrBuilder- Returns:
- The autoDelete.
-
setAutoDelete
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;- Parameters:
value- The autoDelete to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
hasCustomImage
public boolean hasCustomImage()The custom source image to be used to restore this disk when instantiating this instance template.
optional string custom_image = 184123149;- Specified by:
hasCustomImagein interfaceDiskInstantiationConfigOrBuilder- Returns:
- Whether the customImage field is set.
-
getCustomImage
The custom source image to be used to restore this disk when instantiating this instance template.
optional string custom_image = 184123149;- Specified by:
getCustomImagein interfaceDiskInstantiationConfigOrBuilder- Returns:
- The customImage.
-
getCustomImageBytes
public 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;- Specified by:
getCustomImageBytesin interfaceDiskInstantiationConfigOrBuilder- Returns:
- The bytes for customImage.
-
setCustomImage
The custom source image to be used to restore this disk when instantiating this instance template.
optional string custom_image = 184123149;- Parameters:
value- The customImage to set.- Returns:
- This builder for chaining.
-
clearCustomImage
The custom source image to be used to restore this disk when instantiating this instance template.
optional string custom_image = 184123149;- Returns:
- This builder for chaining.
-
setCustomImageBytes
The custom source image to be used to restore this disk when instantiating this instance template.
optional string custom_image = 184123149;- Parameters:
value- The bytes for customImage to set.- Returns:
- This builder for chaining.
-
hasDeviceName
public boolean hasDeviceName()Specifies the device name of the disk to which the configurations apply to.
optional string device_name = 67541716;- Specified by:
hasDeviceNamein interfaceDiskInstantiationConfigOrBuilder- Returns:
- Whether the deviceName field is set.
-
getDeviceName
Specifies the device name of the disk to which the configurations apply to.
optional string device_name = 67541716;- Specified by:
getDeviceNamein interfaceDiskInstantiationConfigOrBuilder- Returns:
- The deviceName.
-
getDeviceNameBytes
public com.google.protobuf.ByteString getDeviceNameBytes()Specifies the device name of the disk to which the configurations apply to.
optional string device_name = 67541716;- Specified by:
getDeviceNameBytesin interfaceDiskInstantiationConfigOrBuilder- Returns:
- The bytes for deviceName.
-
setDeviceName
Specifies the device name of the disk to which the configurations apply to.
optional string device_name = 67541716;- Parameters:
value- The deviceName to set.- Returns:
- This builder for chaining.
-
clearDeviceName
Specifies the device name of the disk to which the configurations apply to.
optional string device_name = 67541716;- Returns:
- This builder for chaining.
-
setDeviceNameBytes
Specifies the device name of the disk to which the configurations apply to.
optional string device_name = 67541716;- Parameters:
value- The bytes for deviceName to set.- Returns:
- This builder for chaining.
-
hasInstantiateFrom
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;- Specified by:
hasInstantiateFromin interfaceDiskInstantiationConfigOrBuilder- Returns:
- Whether the instantiateFrom field is set.
-
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;- Specified by:
getInstantiateFromin interfaceDiskInstantiationConfigOrBuilder- Returns:
- The instantiateFrom.
-
getInstantiateFromBytes
public 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;- Specified by:
getInstantiateFromBytesin interfaceDiskInstantiationConfigOrBuilder- Returns:
- The bytes for instantiateFrom.
-
setInstantiateFrom
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;- Parameters:
value- The instantiateFrom to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
setInstantiateFromBytes
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;- Parameters:
value- The bytes for instantiateFrom to set.- Returns:
- This builder for chaining.
-