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.GeneratedMessageV3.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.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 typegoogle.cloud.compute.v1.DiskInstantiationConfig
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DiskInstantiationConfig.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)DiskInstantiationConfigbuild()DiskInstantiationConfigbuildPartial()DiskInstantiationConfig.Builderclear()DiskInstantiationConfig.BuilderclearAutoDelete()Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).DiskInstantiationConfig.BuilderclearCustomImage()The custom source image to be used to restore this disk when instantiating this instance template.DiskInstantiationConfig.BuilderclearDeviceName()Specifies the device name of the disk to which the configurations apply to.DiskInstantiationConfig.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)DiskInstantiationConfig.BuilderclearInstantiateFrom()Specifies whether to include the disk and what image to use.DiskInstantiationConfig.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)DiskInstantiationConfig.Builderclone()booleangetAutoDelete()Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).StringgetCustomImage()The custom source image to be used to restore this disk when instantiating this instance template.com.google.protobuf.ByteStringgetCustomImageBytes()The custom source image to be used to restore this disk when instantiating this instance template.DiskInstantiationConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetDeviceName()Specifies the device name of the disk to which the configurations apply to.com.google.protobuf.ByteStringgetDeviceNameBytes()Specifies the device name of the disk to which the configurations apply to.StringgetInstantiateFrom()Specifies whether to include the disk and what image to use.com.google.protobuf.ByteStringgetInstantiateFromBytes()Specifies whether to include the disk and what image to use.booleanhasAutoDelete()Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).booleanhasCustomImage()The custom source image to be used to restore this disk when instantiating this instance template.booleanhasDeviceName()Specifies the device name of the disk to which the configurations apply to.booleanhasInstantiateFrom()Specifies whether to include the disk and what image to use.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()DiskInstantiationConfig.BuildermergeFrom(DiskInstantiationConfig other)DiskInstantiationConfig.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)DiskInstantiationConfig.BuildermergeFrom(com.google.protobuf.Message other)DiskInstantiationConfig.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)DiskInstantiationConfig.BuildersetAutoDelete(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.BuildersetCustomImage(String value)The custom source image to be used to restore this disk when instantiating this instance template.DiskInstantiationConfig.BuildersetCustomImageBytes(com.google.protobuf.ByteString value)The custom source image to be used to restore this disk when instantiating this instance template.DiskInstantiationConfig.BuildersetDeviceName(String value)Specifies the device name of the disk to which the configurations apply to.DiskInstantiationConfig.BuildersetDeviceNameBytes(com.google.protobuf.ByteString value)Specifies the device name of the disk to which the configurations apply to.DiskInstantiationConfig.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)DiskInstantiationConfig.BuildersetInstantiateFrom(String value)Specifies whether to include the disk and what image to use.DiskInstantiationConfig.BuildersetInstantiateFromBytes(com.google.protobuf.ByteString value)Specifies whether to include the disk and what image to use.DiskInstantiationConfig.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)DiskInstantiationConfig.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<DiskInstantiationConfig.Builder>
-
clear
public DiskInstantiationConfig.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<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.GeneratedMessageV3.Builder<DiskInstantiationConfig.Builder>
-
getDefaultInstanceForType
public DiskInstantiationConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public DiskInstantiationConfig build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public DiskInstantiationConfig buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public DiskInstantiationConfig.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<DiskInstantiationConfig.Builder>
-
setField
public DiskInstantiationConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DiskInstantiationConfig.Builder>
-
clearField
public DiskInstantiationConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DiskInstantiationConfig.Builder>
-
clearOneof
public DiskInstantiationConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<DiskInstantiationConfig.Builder>
-
setRepeatedField
public DiskInstantiationConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DiskInstantiationConfig.Builder>
-
addRepeatedField
public DiskInstantiationConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DiskInstantiationConfig.Builder>
-
mergeFrom
public DiskInstantiationConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DiskInstantiationConfig.Builder>
-
mergeFrom
public DiskInstantiationConfig.Builder mergeFrom(DiskInstantiationConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
public 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;- Parameters:
value- The autoDelete to set.- Returns:
- This builder for chaining.
-
clearAutoDelete
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;- 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
public String 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
public 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;- Parameters:
value- The customImage to set.- Returns:
- This builder for chaining.
-
clearCustomImage
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;- Returns:
- This builder for chaining.
-
setCustomImageBytes
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;- 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
public String 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
public DiskInstantiationConfig.Builder setDeviceName(String value)
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
public DiskInstantiationConfig.Builder 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
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;- 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
public 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;- 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
public 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;- Parameters:
value- The instantiateFrom to set.- Returns:
- This builder for chaining.
-
clearInstantiateFrom
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;- 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.
-
setUnknownFields
public final DiskInstantiationConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DiskInstantiationConfig.Builder>
-
mergeUnknownFields
public final DiskInstantiationConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DiskInstantiationConfig.Builder>
-
-