public final class DiskInstantiationConfig extends com.google.protobuf.GeneratedMessageV3 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 | Class and Description |
|---|---|
static class |
DiskInstantiationConfig.Builder
A specification of the desired way to instantiate a disk in the instance template when its created from a source instance.
|
static class |
DiskInstantiationConfig.InstantiateFrom
Specifies whether to include the disk and what image to use.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
AUTO_DELETE_FIELD_NUMBER |
static int |
CUSTOM_IMAGE_FIELD_NUMBER |
static int |
DEVICE_NAME_FIELD_NUMBER |
static int |
INSTANTIATE_FROM_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
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.
|
static DiskInstantiationConfig |
getDefaultInstance() |
DiskInstantiationConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
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.
|
com.google.protobuf.Parser<DiskInstantiationConfig> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
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.
|
int |
hashCode() |
boolean |
hasInstantiateFrom()
Specifies whether to include the disk and what image to use.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static DiskInstantiationConfig.Builder |
newBuilder() |
static DiskInstantiationConfig.Builder |
newBuilder(DiskInstantiationConfig prototype) |
DiskInstantiationConfig.Builder |
newBuilderForType() |
protected DiskInstantiationConfig.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static DiskInstantiationConfig |
parseDelimitedFrom(InputStream input) |
static DiskInstantiationConfig |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DiskInstantiationConfig |
parseFrom(byte[] data) |
static DiskInstantiationConfig |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DiskInstantiationConfig |
parseFrom(ByteBuffer data) |
static DiskInstantiationConfig |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DiskInstantiationConfig |
parseFrom(com.google.protobuf.ByteString data) |
static DiskInstantiationConfig |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DiskInstantiationConfig |
parseFrom(com.google.protobuf.CodedInputStream input) |
static DiskInstantiationConfig |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DiskInstantiationConfig |
parseFrom(InputStream input) |
static DiskInstantiationConfig |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<DiskInstantiationConfig> |
parser() |
DiskInstantiationConfig.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int AUTO_DELETE_FIELD_NUMBER
public static final int CUSTOM_IMAGE_FIELD_NUMBER
public static final int DEVICE_NAME_FIELD_NUMBER
public static final int INSTANTIATE_FROM_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 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 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 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 final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static DiskInstantiationConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DiskInstantiationConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DiskInstantiationConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DiskInstantiationConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DiskInstantiationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DiskInstantiationConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DiskInstantiationConfig parseFrom(InputStream input) throws IOException
IOExceptionpublic static DiskInstantiationConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static DiskInstantiationConfig parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static DiskInstantiationConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static DiskInstantiationConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static DiskInstantiationConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic DiskInstantiationConfig.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static DiskInstantiationConfig.Builder newBuilder()
public static DiskInstantiationConfig.Builder newBuilder(DiskInstantiationConfig prototype)
public DiskInstantiationConfig.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected DiskInstantiationConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static DiskInstantiationConfig getDefaultInstance()
public static com.google.protobuf.Parser<DiskInstantiationConfig> parser()
public com.google.protobuf.Parser<DiskInstantiationConfig> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public DiskInstantiationConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.