public final class AttachedDiskInitializeParams extends com.google.protobuf.GeneratedMessageV3 implements AttachedDiskInitializeParamsOrBuilder
[Input Only] Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance. This field is persisted and returned for instanceTemplate and not returned in the context of instance. This property is mutually exclusive with the source property; you can only define one or the other, but not both.Protobuf type
google.cloud.compute.v1.AttachedDiskInitializeParams| Modifier and Type | Class and Description |
|---|---|
static class |
AttachedDiskInitializeParams.Architecture
The architecture of the attached disk.
|
static class |
AttachedDiskInitializeParams.Builder
[Input Only] Specifies the parameters for a new disk that will be created alongside the new instance.
|
static class |
AttachedDiskInitializeParams.OnUpdateAction
Specifies which action to take on instance update with this disk.
|
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 |
ARCHITECTURE_FIELD_NUMBER |
static int |
DESCRIPTION_FIELD_NUMBER |
static int |
DISK_NAME_FIELD_NUMBER |
static int |
DISK_SIZE_GB_FIELD_NUMBER |
static int |
DISK_TYPE_FIELD_NUMBER |
static int |
LABELS_FIELD_NUMBER |
static int |
LICENSES_FIELD_NUMBER |
static int |
ON_UPDATE_ACTION_FIELD_NUMBER |
static int |
PROVISIONED_IOPS_FIELD_NUMBER |
static int |
RESOURCE_MANAGER_TAGS_FIELD_NUMBER |
static int |
RESOURCE_POLICIES_FIELD_NUMBER |
static int |
SOURCE_IMAGE_ENCRYPTION_KEY_FIELD_NUMBER |
static int |
SOURCE_IMAGE_FIELD_NUMBER |
static int |
SOURCE_SNAPSHOT_ENCRYPTION_KEY_FIELD_NUMBER |
static int |
SOURCE_SNAPSHOT_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsLabels(String key)
Labels to apply to this disk.
|
boolean |
containsResourceManagerTags(String key)
Resource manager tags to be bound to the disk.
|
boolean |
equals(Object obj) |
String |
getArchitecture()
The architecture of the attached disk.
|
com.google.protobuf.ByteString |
getArchitectureBytes()
The architecture of the attached disk.
|
static AttachedDiskInitializeParams |
getDefaultInstance() |
AttachedDiskInitializeParams |
getDefaultInstanceForType() |
String |
getDescription()
An optional description.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
An optional description.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getDiskName()
Specifies the disk name.
|
com.google.protobuf.ByteString |
getDiskNameBytes()
Specifies the disk name.
|
long |
getDiskSizeGb()
Specifies the size of the disk in base-2 GB.
|
String |
getDiskType()
Specifies the disk type to use to create the instance.
|
com.google.protobuf.ByteString |
getDiskTypeBytes()
Specifies the disk type to use to create the instance.
|
Map<String,String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
Labels to apply to this disk.
|
Map<String,String> |
getLabelsMap()
Labels to apply to this disk.
|
String |
getLabelsOrDefault(String key,
String defaultValue)
Labels to apply to this disk.
|
String |
getLabelsOrThrow(String key)
Labels to apply to this disk.
|
String |
getLicenses(int index)
A list of publicly visible licenses.
|
com.google.protobuf.ByteString |
getLicensesBytes(int index)
A list of publicly visible licenses.
|
int |
getLicensesCount()
A list of publicly visible licenses.
|
com.google.protobuf.ProtocolStringList |
getLicensesList()
A list of publicly visible licenses.
|
String |
getOnUpdateAction()
Specifies which action to take on instance update with this disk.
|
com.google.protobuf.ByteString |
getOnUpdateActionBytes()
Specifies which action to take on instance update with this disk.
|
com.google.protobuf.Parser<AttachedDiskInitializeParams> |
getParserForType() |
long |
getProvisionedIops()
Indicates how many IOPS to provision for the disk.
|
Map<String,String> |
getResourceManagerTags()
Deprecated.
|
int |
getResourceManagerTagsCount()
Resource manager tags to be bound to the disk.
|
Map<String,String> |
getResourceManagerTagsMap()
Resource manager tags to be bound to the disk.
|
String |
getResourceManagerTagsOrDefault(String key,
String defaultValue)
Resource manager tags to be bound to the disk.
|
String |
getResourceManagerTagsOrThrow(String key)
Resource manager tags to be bound to the disk.
|
String |
getResourcePolicies(int index)
Resource policies applied to this disk for automatic snapshot creations.
|
com.google.protobuf.ByteString |
getResourcePoliciesBytes(int index)
Resource policies applied to this disk for automatic snapshot creations.
|
int |
getResourcePoliciesCount()
Resource policies applied to this disk for automatic snapshot creations.
|
com.google.protobuf.ProtocolStringList |
getResourcePoliciesList()
Resource policies applied to this disk for automatic snapshot creations.
|
int |
getSerializedSize() |
String |
getSourceImage()
The source image to create this disk.
|
com.google.protobuf.ByteString |
getSourceImageBytes()
The source image to create this disk.
|
CustomerEncryptionKey |
getSourceImageEncryptionKey()
The customer-supplied encryption key of the source image.
|
CustomerEncryptionKeyOrBuilder |
getSourceImageEncryptionKeyOrBuilder()
The customer-supplied encryption key of the source image.
|
String |
getSourceSnapshot()
The source snapshot to create this disk.
|
com.google.protobuf.ByteString |
getSourceSnapshotBytes()
The source snapshot to create this disk.
|
CustomerEncryptionKey |
getSourceSnapshotEncryptionKey()
The customer-supplied encryption key of the source snapshot.
|
CustomerEncryptionKeyOrBuilder |
getSourceSnapshotEncryptionKeyOrBuilder()
The customer-supplied encryption key of the source snapshot.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasArchitecture()
The architecture of the attached disk.
|
boolean |
hasDescription()
An optional description.
|
boolean |
hasDiskName()
Specifies the disk name.
|
boolean |
hasDiskSizeGb()
Specifies the size of the disk in base-2 GB.
|
boolean |
hasDiskType()
Specifies the disk type to use to create the instance.
|
int |
hashCode() |
boolean |
hasOnUpdateAction()
Specifies which action to take on instance update with this disk.
|
boolean |
hasProvisionedIops()
Indicates how many IOPS to provision for the disk.
|
boolean |
hasSourceImage()
The source image to create this disk.
|
boolean |
hasSourceImageEncryptionKey()
The customer-supplied encryption key of the source image.
|
boolean |
hasSourceSnapshot()
The source snapshot to create this disk.
|
boolean |
hasSourceSnapshotEncryptionKey()
The customer-supplied encryption key of the source snapshot.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static AttachedDiskInitializeParams.Builder |
newBuilder() |
static AttachedDiskInitializeParams.Builder |
newBuilder(AttachedDiskInitializeParams prototype) |
AttachedDiskInitializeParams.Builder |
newBuilderForType() |
protected AttachedDiskInitializeParams.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static AttachedDiskInitializeParams |
parseDelimitedFrom(InputStream input) |
static AttachedDiskInitializeParams |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttachedDiskInitializeParams |
parseFrom(byte[] data) |
static AttachedDiskInitializeParams |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttachedDiskInitializeParams |
parseFrom(ByteBuffer data) |
static AttachedDiskInitializeParams |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttachedDiskInitializeParams |
parseFrom(com.google.protobuf.ByteString data) |
static AttachedDiskInitializeParams |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttachedDiskInitializeParams |
parseFrom(com.google.protobuf.CodedInputStream input) |
static AttachedDiskInitializeParams |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttachedDiskInitializeParams |
parseFrom(InputStream input) |
static AttachedDiskInitializeParams |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<AttachedDiskInitializeParams> |
parser() |
AttachedDiskInitializeParams.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, 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 ARCHITECTURE_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
public static final int DISK_NAME_FIELD_NUMBER
public static final int DISK_SIZE_GB_FIELD_NUMBER
public static final int DISK_TYPE_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
public static final int LICENSES_FIELD_NUMBER
public static final int ON_UPDATE_ACTION_FIELD_NUMBER
public static final int PROVISIONED_IOPS_FIELD_NUMBER
public static final int RESOURCE_MANAGER_TAGS_FIELD_NUMBER
public static final int RESOURCE_POLICIES_FIELD_NUMBER
public static final int SOURCE_IMAGE_FIELD_NUMBER
public static final int SOURCE_IMAGE_ENCRYPTION_KEY_FIELD_NUMBER
public static final int SOURCE_SNAPSHOT_FIELD_NUMBER
public static final int SOURCE_SNAPSHOT_ENCRYPTION_KEY_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.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasArchitecture()
The architecture of the attached disk. Valid values are arm64 or x86_64. Check the Architecture enum for the list of possible values.
optional string architecture = 302803283;hasArchitecture in interface AttachedDiskInitializeParamsOrBuilderpublic String getArchitecture()
The architecture of the attached disk. Valid values are arm64 or x86_64. Check the Architecture enum for the list of possible values.
optional string architecture = 302803283;getArchitecture in interface AttachedDiskInitializeParamsOrBuilderpublic com.google.protobuf.ByteString getArchitectureBytes()
The architecture of the attached disk. Valid values are arm64 or x86_64. Check the Architecture enum for the list of possible values.
optional string architecture = 302803283;getArchitectureBytes in interface AttachedDiskInitializeParamsOrBuilderpublic boolean hasDescription()
An optional description. Provide this property when creating the disk.
optional string description = 422937596;hasDescription in interface AttachedDiskInitializeParamsOrBuilderpublic String getDescription()
An optional description. Provide this property when creating the disk.
optional string description = 422937596;getDescription in interface AttachedDiskInitializeParamsOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
An optional description. Provide this property when creating the disk.
optional string description = 422937596;getDescriptionBytes in interface AttachedDiskInitializeParamsOrBuilderpublic boolean hasDiskName()
Specifies the disk name. If not specified, the default is to use the name of the instance. If a disk with the same name already exists in the given region, the existing disk is attached to the new instance and the new disk is not created.
optional string disk_name = 92807149;hasDiskName in interface AttachedDiskInitializeParamsOrBuilderpublic String getDiskName()
Specifies the disk name. If not specified, the default is to use the name of the instance. If a disk with the same name already exists in the given region, the existing disk is attached to the new instance and the new disk is not created.
optional string disk_name = 92807149;getDiskName in interface AttachedDiskInitializeParamsOrBuilderpublic com.google.protobuf.ByteString getDiskNameBytes()
Specifies the disk name. If not specified, the default is to use the name of the instance. If a disk with the same name already exists in the given region, the existing disk is attached to the new instance and the new disk is not created.
optional string disk_name = 92807149;getDiskNameBytes in interface AttachedDiskInitializeParamsOrBuilderpublic boolean hasDiskSizeGb()
Specifies the size of the disk in base-2 GB. The size must be at least 10 GB. If you specify a sourceImage, which is required for boot disks, the default size is the size of the sourceImage. If you do not specify a sourceImage, the default disk size is 500 GB.
optional int64 disk_size_gb = 316263735;hasDiskSizeGb in interface AttachedDiskInitializeParamsOrBuilderpublic long getDiskSizeGb()
Specifies the size of the disk in base-2 GB. The size must be at least 10 GB. If you specify a sourceImage, which is required for boot disks, the default size is the size of the sourceImage. If you do not specify a sourceImage, the default disk size is 500 GB.
optional int64 disk_size_gb = 316263735;getDiskSizeGb in interface AttachedDiskInitializeParamsOrBuilderpublic boolean hasDiskType()
Specifies the disk type to use to create the instance. If not specified, the default is pd-standard, specified using the full URL. For example: https://www.googleapis.com/compute/v1/projects/project/zones/zone /diskTypes/pd-standard For a full list of acceptable values, see Persistent disk types. If you specify this field when creating a VM, you can provide either the full or partial URL. For example, the following values are valid: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /diskTypes/diskType - projects/project/zones/zone/diskTypes/diskType - zones/zone/diskTypes/diskType If you specify this field when creating or updating an instance template or all-instances configuration, specify the type of the disk, not the URL. For example: pd-standard.
optional string disk_type = 93009052;hasDiskType in interface AttachedDiskInitializeParamsOrBuilderpublic String getDiskType()
Specifies the disk type to use to create the instance. If not specified, the default is pd-standard, specified using the full URL. For example: https://www.googleapis.com/compute/v1/projects/project/zones/zone /diskTypes/pd-standard For a full list of acceptable values, see Persistent disk types. If you specify this field when creating a VM, you can provide either the full or partial URL. For example, the following values are valid: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /diskTypes/diskType - projects/project/zones/zone/diskTypes/diskType - zones/zone/diskTypes/diskType If you specify this field when creating or updating an instance template or all-instances configuration, specify the type of the disk, not the URL. For example: pd-standard.
optional string disk_type = 93009052;getDiskType in interface AttachedDiskInitializeParamsOrBuilderpublic com.google.protobuf.ByteString getDiskTypeBytes()
Specifies the disk type to use to create the instance. If not specified, the default is pd-standard, specified using the full URL. For example: https://www.googleapis.com/compute/v1/projects/project/zones/zone /diskTypes/pd-standard For a full list of acceptable values, see Persistent disk types. If you specify this field when creating a VM, you can provide either the full or partial URL. For example, the following values are valid: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /diskTypes/diskType - projects/project/zones/zone/diskTypes/diskType - zones/zone/diskTypes/diskType If you specify this field when creating or updating an instance template or all-instances configuration, specify the type of the disk, not the URL. For example: pd-standard.
optional string disk_type = 93009052;getDiskTypeBytes in interface AttachedDiskInitializeParamsOrBuilderpublic int getLabelsCount()
AttachedDiskInitializeParamsOrBuilderLabels to apply to this disk. These can be later modified by the disks.setLabels method. This field is only applicable for persistent disks.
map<string, string> labels = 500195327;getLabelsCount in interface AttachedDiskInitializeParamsOrBuilderpublic boolean containsLabels(String key)
Labels to apply to this disk. These can be later modified by the disks.setLabels method. This field is only applicable for persistent disks.
map<string, string> labels = 500195327;containsLabels in interface AttachedDiskInitializeParamsOrBuilder@Deprecated public Map<String,String> getLabels()
getLabelsMap() instead.getLabels in interface AttachedDiskInitializeParamsOrBuilderpublic Map<String,String> getLabelsMap()
Labels to apply to this disk. These can be later modified by the disks.setLabels method. This field is only applicable for persistent disks.
map<string, string> labels = 500195327;getLabelsMap in interface AttachedDiskInitializeParamsOrBuilderpublic String getLabelsOrDefault(String key, String defaultValue)
Labels to apply to this disk. These can be later modified by the disks.setLabels method. This field is only applicable for persistent disks.
map<string, string> labels = 500195327;getLabelsOrDefault in interface AttachedDiskInitializeParamsOrBuilderpublic String getLabelsOrThrow(String key)
Labels to apply to this disk. These can be later modified by the disks.setLabels method. This field is only applicable for persistent disks.
map<string, string> labels = 500195327;getLabelsOrThrow in interface AttachedDiskInitializeParamsOrBuilderpublic com.google.protobuf.ProtocolStringList getLicensesList()
A list of publicly visible licenses. Reserved for Google's use.
repeated string licenses = 337642578;getLicensesList in interface AttachedDiskInitializeParamsOrBuilderpublic int getLicensesCount()
A list of publicly visible licenses. Reserved for Google's use.
repeated string licenses = 337642578;getLicensesCount in interface AttachedDiskInitializeParamsOrBuilderpublic String getLicenses(int index)
A list of publicly visible licenses. Reserved for Google's use.
repeated string licenses = 337642578;getLicenses in interface AttachedDiskInitializeParamsOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getLicensesBytes(int index)
A list of publicly visible licenses. Reserved for Google's use.
repeated string licenses = 337642578;getLicensesBytes in interface AttachedDiskInitializeParamsOrBuilderindex - The index of the value to return.public boolean hasOnUpdateAction()
Specifies which action to take on instance update with this disk. Default is to use the existing disk. Check the OnUpdateAction enum for the list of possible values.
optional string on_update_action = 202451980;hasOnUpdateAction in interface AttachedDiskInitializeParamsOrBuilderpublic String getOnUpdateAction()
Specifies which action to take on instance update with this disk. Default is to use the existing disk. Check the OnUpdateAction enum for the list of possible values.
optional string on_update_action = 202451980;getOnUpdateAction in interface AttachedDiskInitializeParamsOrBuilderpublic com.google.protobuf.ByteString getOnUpdateActionBytes()
Specifies which action to take on instance update with this disk. Default is to use the existing disk. Check the OnUpdateAction enum for the list of possible values.
optional string on_update_action = 202451980;getOnUpdateActionBytes in interface AttachedDiskInitializeParamsOrBuilderpublic boolean hasProvisionedIops()
Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per second that the disk can handle. Values must be between 10,000 and 120,000. For more details, see the Extreme persistent disk documentation.
optional int64 provisioned_iops = 186769108;hasProvisionedIops in interface AttachedDiskInitializeParamsOrBuilderpublic long getProvisionedIops()
Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per second that the disk can handle. Values must be between 10,000 and 120,000. For more details, see the Extreme persistent disk documentation.
optional int64 provisioned_iops = 186769108;getProvisionedIops in interface AttachedDiskInitializeParamsOrBuilderpublic int getResourceManagerTagsCount()
AttachedDiskInitializeParamsOrBuilder
Resource manager tags to be bound to the disk. Tag keys and values have the same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty.
map<string, string> resource_manager_tags = 377671164;getResourceManagerTagsCount in interface AttachedDiskInitializeParamsOrBuilderpublic boolean containsResourceManagerTags(String key)
Resource manager tags to be bound to the disk. Tag keys and values have the same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty.
map<string, string> resource_manager_tags = 377671164;containsResourceManagerTags in interface AttachedDiskInitializeParamsOrBuilder@Deprecated public Map<String,String> getResourceManagerTags()
getResourceManagerTagsMap() instead.getResourceManagerTags in interface AttachedDiskInitializeParamsOrBuilderpublic Map<String,String> getResourceManagerTagsMap()
Resource manager tags to be bound to the disk. Tag keys and values have the same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty.
map<string, string> resource_manager_tags = 377671164;getResourceManagerTagsMap in interface AttachedDiskInitializeParamsOrBuilderpublic String getResourceManagerTagsOrDefault(String key, String defaultValue)
Resource manager tags to be bound to the disk. Tag keys and values have the same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty.
map<string, string> resource_manager_tags = 377671164;getResourceManagerTagsOrDefault in interface AttachedDiskInitializeParamsOrBuilderpublic String getResourceManagerTagsOrThrow(String key)
Resource manager tags to be bound to the disk. Tag keys and values have the same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty.
map<string, string> resource_manager_tags = 377671164;getResourceManagerTagsOrThrow in interface AttachedDiskInitializeParamsOrBuilderpublic com.google.protobuf.ProtocolStringList getResourcePoliciesList()
Resource policies applied to this disk for automatic snapshot creations. Specified using the full or partial URL. For instance template, specify only the resource policy name.
repeated string resource_policies = 22220385;getResourcePoliciesList in interface AttachedDiskInitializeParamsOrBuilderpublic int getResourcePoliciesCount()
Resource policies applied to this disk for automatic snapshot creations. Specified using the full or partial URL. For instance template, specify only the resource policy name.
repeated string resource_policies = 22220385;getResourcePoliciesCount in interface AttachedDiskInitializeParamsOrBuilderpublic String getResourcePolicies(int index)
Resource policies applied to this disk for automatic snapshot creations. Specified using the full or partial URL. For instance template, specify only the resource policy name.
repeated string resource_policies = 22220385;getResourcePolicies in interface AttachedDiskInitializeParamsOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getResourcePoliciesBytes(int index)
Resource policies applied to this disk for automatic snapshot creations. Specified using the full or partial URL. For instance template, specify only the resource policy name.
repeated string resource_policies = 22220385;getResourcePoliciesBytes in interface AttachedDiskInitializeParamsOrBuilderindex - The index of the value to return.public boolean hasSourceImage()
The source image to create this disk. When creating a new instance, one of initializeParams.sourceImage or initializeParams.sourceSnapshot or disks.source is required except for local SSD. To create a disk with one of the public operating system images, specify the image by its family name. For example, specify family/debian-9 to use the latest Debian 9 image: projects/debian-cloud/global/images/family/debian-9 Alternatively, use a specific version of a public operating system image: projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD To create a disk with a custom image that you created, specify the image name in the following format: global/images/my-custom-image You can also specify a custom image by its image family, which returns the latest version of the image in that family. Replace the image name with family/family-name: global/images/family/my-image-family If the source image is deleted later, this field will not be set.
optional string source_image = 50443319;hasSourceImage in interface AttachedDiskInitializeParamsOrBuilderpublic String getSourceImage()
The source image to create this disk. When creating a new instance, one of initializeParams.sourceImage or initializeParams.sourceSnapshot or disks.source is required except for local SSD. To create a disk with one of the public operating system images, specify the image by its family name. For example, specify family/debian-9 to use the latest Debian 9 image: projects/debian-cloud/global/images/family/debian-9 Alternatively, use a specific version of a public operating system image: projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD To create a disk with a custom image that you created, specify the image name in the following format: global/images/my-custom-image You can also specify a custom image by its image family, which returns the latest version of the image in that family. Replace the image name with family/family-name: global/images/family/my-image-family If the source image is deleted later, this field will not be set.
optional string source_image = 50443319;getSourceImage in interface AttachedDiskInitializeParamsOrBuilderpublic com.google.protobuf.ByteString getSourceImageBytes()
The source image to create this disk. When creating a new instance, one of initializeParams.sourceImage or initializeParams.sourceSnapshot or disks.source is required except for local SSD. To create a disk with one of the public operating system images, specify the image by its family name. For example, specify family/debian-9 to use the latest Debian 9 image: projects/debian-cloud/global/images/family/debian-9 Alternatively, use a specific version of a public operating system image: projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD To create a disk with a custom image that you created, specify the image name in the following format: global/images/my-custom-image You can also specify a custom image by its image family, which returns the latest version of the image in that family. Replace the image name with family/family-name: global/images/family/my-image-family If the source image is deleted later, this field will not be set.
optional string source_image = 50443319;getSourceImageBytes in interface AttachedDiskInitializeParamsOrBuilderpublic boolean hasSourceImageEncryptionKey()
The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key. InstanceTemplate and InstancePropertiesPatch do not store customer-supplied encryption keys, so you cannot create disks for instances in a managed instance group if the source images are encrypted with your own keys.
optional .google.cloud.compute.v1.CustomerEncryptionKey source_image_encryption_key = 381503659;
hasSourceImageEncryptionKey in interface AttachedDiskInitializeParamsOrBuilderpublic CustomerEncryptionKey getSourceImageEncryptionKey()
The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key. InstanceTemplate and InstancePropertiesPatch do not store customer-supplied encryption keys, so you cannot create disks for instances in a managed instance group if the source images are encrypted with your own keys.
optional .google.cloud.compute.v1.CustomerEncryptionKey source_image_encryption_key = 381503659;
getSourceImageEncryptionKey in interface AttachedDiskInitializeParamsOrBuilderpublic CustomerEncryptionKeyOrBuilder getSourceImageEncryptionKeyOrBuilder()
The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key. InstanceTemplate and InstancePropertiesPatch do not store customer-supplied encryption keys, so you cannot create disks for instances in a managed instance group if the source images are encrypted with your own keys.
optional .google.cloud.compute.v1.CustomerEncryptionKey source_image_encryption_key = 381503659;
getSourceImageEncryptionKeyOrBuilder in interface AttachedDiskInitializeParamsOrBuilderpublic boolean hasSourceSnapshot()
The source snapshot to create this disk. When creating a new instance, one of initializeParams.sourceSnapshot or initializeParams.sourceImage or disks.source is required except for local SSD. To create a disk with a snapshot that you created, specify the snapshot name in the following format: global/snapshots/my-backup If the source snapshot is deleted later, this field will not be set.
optional string source_snapshot = 126061928;hasSourceSnapshot in interface AttachedDiskInitializeParamsOrBuilderpublic String getSourceSnapshot()
The source snapshot to create this disk. When creating a new instance, one of initializeParams.sourceSnapshot or initializeParams.sourceImage or disks.source is required except for local SSD. To create a disk with a snapshot that you created, specify the snapshot name in the following format: global/snapshots/my-backup If the source snapshot is deleted later, this field will not be set.
optional string source_snapshot = 126061928;getSourceSnapshot in interface AttachedDiskInitializeParamsOrBuilderpublic com.google.protobuf.ByteString getSourceSnapshotBytes()
The source snapshot to create this disk. When creating a new instance, one of initializeParams.sourceSnapshot or initializeParams.sourceImage or disks.source is required except for local SSD. To create a disk with a snapshot that you created, specify the snapshot name in the following format: global/snapshots/my-backup If the source snapshot is deleted later, this field will not be set.
optional string source_snapshot = 126061928;getSourceSnapshotBytes in interface AttachedDiskInitializeParamsOrBuilderpublic boolean hasSourceSnapshotEncryptionKey()
The customer-supplied encryption key of the source snapshot.
optional .google.cloud.compute.v1.CustomerEncryptionKey source_snapshot_encryption_key = 303679322;
hasSourceSnapshotEncryptionKey in interface AttachedDiskInitializeParamsOrBuilderpublic CustomerEncryptionKey getSourceSnapshotEncryptionKey()
The customer-supplied encryption key of the source snapshot.
optional .google.cloud.compute.v1.CustomerEncryptionKey source_snapshot_encryption_key = 303679322;
getSourceSnapshotEncryptionKey in interface AttachedDiskInitializeParamsOrBuilderpublic CustomerEncryptionKeyOrBuilder getSourceSnapshotEncryptionKeyOrBuilder()
The customer-supplied encryption key of the source snapshot.
optional .google.cloud.compute.v1.CustomerEncryptionKey source_snapshot_encryption_key = 303679322;
getSourceSnapshotEncryptionKeyOrBuilder in interface AttachedDiskInitializeParamsOrBuilderpublic 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 AttachedDiskInitializeParams parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttachedDiskInitializeParams parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttachedDiskInitializeParams parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttachedDiskInitializeParams parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttachedDiskInitializeParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttachedDiskInitializeParams parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttachedDiskInitializeParams parseFrom(InputStream input) throws IOException
IOExceptionpublic static AttachedDiskInitializeParams parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AttachedDiskInitializeParams parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static AttachedDiskInitializeParams parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AttachedDiskInitializeParams parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static AttachedDiskInitializeParams parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic AttachedDiskInitializeParams.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static AttachedDiskInitializeParams.Builder newBuilder()
public static AttachedDiskInitializeParams.Builder newBuilder(AttachedDiskInitializeParams prototype)
public AttachedDiskInitializeParams.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected AttachedDiskInitializeParams.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static AttachedDiskInitializeParams getDefaultInstance()
public static com.google.protobuf.Parser<AttachedDiskInitializeParams> parser()
public com.google.protobuf.Parser<AttachedDiskInitializeParams> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public AttachedDiskInitializeParams getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.