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.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(DiskInstantiationConfig other)
DiskInstantiationConfig.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
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)
-
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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<DiskInstantiationConfig.Builder>
-
clear
public DiskInstantiationConfig.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<DiskInstantiationConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<DiskInstantiationConfig.Builder>
-
getDefaultInstanceForType
public DiskInstantiationConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public DiskInstantiationConfig build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public DiskInstantiationConfig buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public DiskInstantiationConfig.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<DiskInstantiationConfig.Builder>
-
setField
public DiskInstantiationConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DiskInstantiationConfig.Builder>
-
clearField
public DiskInstantiationConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DiskInstantiationConfig.Builder>
-
clearOneof
public DiskInstantiationConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<DiskInstantiationConfig.Builder>
-
setRepeatedField
public DiskInstantiationConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DiskInstantiationConfig.Builder>
-
addRepeatedField
public DiskInstantiationConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DiskInstantiationConfig.Builder>
-
mergeFrom
public DiskInstantiationConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<DiskInstantiationConfig.Builder>
-
mergeFrom
public DiskInstantiationConfig.Builder mergeFrom(DiskInstantiationConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
hasAutoDelete
in 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:
getAutoDelete
in 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:
hasCustomImage
in 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:
getCustomImage
in 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:
getCustomImageBytes
in 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:
hasDeviceName
in 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:
getDeviceName
in 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:
getDeviceNameBytes
in 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:
hasInstantiateFrom
in 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:
getInstantiateFrom
in 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:
getInstantiateFromBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<DiskInstantiationConfig.Builder>
-
mergeUnknownFields
public final DiskInstantiationConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<DiskInstantiationConfig.Builder>
-
-