public final class Image extends com.google.protobuf.GeneratedMessageV3 implements ImageOrBuilder
Represents an Image resource. You can use images to create boot disks for your VM instances. For more information, read Images.Protobuf type
google.cloud.compute.v1.Image| Modifier and Type | Class and Description |
|---|---|
static class |
Image.Architecture
The architecture of the image.
|
static class |
Image.Builder
Represents an Image resource.
|
static class |
Image.SourceType
The type of the image used to create this disk.
|
static class |
Image.Status
[Output Only] The status of the image.
|
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 | Method and Description |
|---|---|
boolean |
containsLabels(String key)
Labels to apply to this image.
|
boolean |
equals(Object obj) |
String |
getArchitecture()
The architecture of the image.
|
com.google.protobuf.ByteString |
getArchitectureBytes()
The architecture of the image.
|
long |
getArchiveSizeBytes()
Size of the image tar.gz archive stored in Google Cloud Storage (in bytes).
|
String |
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
com.google.protobuf.ByteString |
getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.
|
static Image |
getDefaultInstance() |
Image |
getDefaultInstanceForType() |
DeprecationStatus |
getDeprecated()
The deprecation status associated with this image.
|
DeprecationStatusOrBuilder |
getDeprecatedOrBuilder()
The deprecation status associated with this image.
|
String |
getDescription()
An optional description of this resource.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
An optional description of this resource.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
long |
getDiskSizeGb()
Size of the image when restored onto a persistent disk (in GB).
|
String |
getFamily()
The name of the image family to which this image belongs.
|
com.google.protobuf.ByteString |
getFamilyBytes()
The name of the image family to which this image belongs.
|
GuestOsFeature |
getGuestOsFeatures(int index)
A list of features to enable on the guest operating system.
|
int |
getGuestOsFeaturesCount()
A list of features to enable on the guest operating system.
|
List<GuestOsFeature> |
getGuestOsFeaturesList()
A list of features to enable on the guest operating system.
|
GuestOsFeatureOrBuilder |
getGuestOsFeaturesOrBuilder(int index)
A list of features to enable on the guest operating system.
|
List<? extends GuestOsFeatureOrBuilder> |
getGuestOsFeaturesOrBuilderList()
A list of features to enable on the guest operating system.
|
long |
getId()
[Output Only] The unique identifier for the resource.
|
CustomerEncryptionKey |
getImageEncryptionKey()
Encrypts the image using a customer-supplied encryption key.
|
CustomerEncryptionKeyOrBuilder |
getImageEncryptionKeyOrBuilder()
Encrypts the image using a customer-supplied encryption key.
|
String |
getKind()
[Output Only] Type of the resource.
|
com.google.protobuf.ByteString |
getKindBytes()
[Output Only] Type of the resource.
|
String |
getLabelFingerprint()
A fingerprint for the labels being applied to this image, which is essentially a hash of the labels used for optimistic locking.
|
com.google.protobuf.ByteString |
getLabelFingerprintBytes()
A fingerprint for the labels being applied to this image, which is essentially a hash of the labels used for optimistic locking.
|
Map<String,String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
Labels to apply to this image.
|
Map<String,String> |
getLabelsMap()
Labels to apply to this image.
|
String |
getLabelsOrDefault(String key,
String defaultValue)
Labels to apply to this image.
|
String |
getLabelsOrThrow(String key)
Labels to apply to this image.
|
long |
getLicenseCodes(int index)
Integer license codes indicating which licenses are attached to this image.
|
int |
getLicenseCodesCount()
Integer license codes indicating which licenses are attached to this image.
|
List<Long> |
getLicenseCodesList()
Integer license codes indicating which licenses are attached to this image.
|
String |
getLicenses(int index)
Any applicable license URI.
|
com.google.protobuf.ByteString |
getLicensesBytes(int index)
Any applicable license URI.
|
int |
getLicensesCount()
Any applicable license URI.
|
com.google.protobuf.ProtocolStringList |
getLicensesList()
Any applicable license URI.
|
String |
getName()
Name of the resource; provided by the client when the resource is created.
|
com.google.protobuf.ByteString |
getNameBytes()
Name of the resource; provided by the client when the resource is created.
|
com.google.protobuf.Parser<Image> |
getParserForType() |
RawDisk |
getRawDisk()
The parameters of the raw disk image.
|
RawDiskOrBuilder |
getRawDiskOrBuilder()
The parameters of the raw disk image.
|
boolean |
getSatisfiesPzs()
[Output Only] Reserved for future use.
|
String |
getSelfLink()
[Output Only] Server-defined URL for the resource.
|
com.google.protobuf.ByteString |
getSelfLinkBytes()
[Output Only] Server-defined URL for the resource.
|
int |
getSerializedSize() |
InitialStateConfig |
getShieldedInstanceInitialState()
Set the secure boot keys of shielded instance.
|
InitialStateConfigOrBuilder |
getShieldedInstanceInitialStateOrBuilder()
Set the secure boot keys of shielded instance.
|
String |
getSourceDisk()
URL of the source disk used to create this image.
|
com.google.protobuf.ByteString |
getSourceDiskBytes()
URL of the source disk used to create this image.
|
CustomerEncryptionKey |
getSourceDiskEncryptionKey()
The customer-supplied encryption key of the source disk.
|
CustomerEncryptionKeyOrBuilder |
getSourceDiskEncryptionKeyOrBuilder()
The customer-supplied encryption key of the source disk.
|
String |
getSourceDiskId()
[Output Only] The ID value of the disk used to create this image.
|
com.google.protobuf.ByteString |
getSourceDiskIdBytes()
[Output Only] The ID value of the disk used to create this image.
|
String |
getSourceImage()
URL of the source image used to create this image.
|
com.google.protobuf.ByteString |
getSourceImageBytes()
URL of the source image used to create this image.
|
CustomerEncryptionKey |
getSourceImageEncryptionKey()
The customer-supplied encryption key of the source image.
|
CustomerEncryptionKeyOrBuilder |
getSourceImageEncryptionKeyOrBuilder()
The customer-supplied encryption key of the source image.
|
String |
getSourceImageId()
[Output Only] The ID value of the image used to create this image.
|
com.google.protobuf.ByteString |
getSourceImageIdBytes()
[Output Only] The ID value of the image used to create this image.
|
String |
getSourceSnapshot()
URL of the source snapshot used to create this image.
|
com.google.protobuf.ByteString |
getSourceSnapshotBytes()
URL of the source snapshot used to create this image.
|
CustomerEncryptionKey |
getSourceSnapshotEncryptionKey()
The customer-supplied encryption key of the source snapshot.
|
CustomerEncryptionKeyOrBuilder |
getSourceSnapshotEncryptionKeyOrBuilder()
The customer-supplied encryption key of the source snapshot.
|
String |
getSourceSnapshotId()
[Output Only] The ID value of the snapshot used to create this image.
|
com.google.protobuf.ByteString |
getSourceSnapshotIdBytes()
[Output Only] The ID value of the snapshot used to create this image.
|
String |
getSourceType()
The type of the image used to create this disk.
|
com.google.protobuf.ByteString |
getSourceTypeBytes()
The type of the image used to create this disk.
|
String |
getStatus()
[Output Only] The status of the image.
|
com.google.protobuf.ByteString |
getStatusBytes()
[Output Only] The status of the image.
|
String |
getStorageLocations(int index)
Cloud Storage bucket storage location of the image (regional or multi-regional).
|
com.google.protobuf.ByteString |
getStorageLocationsBytes(int index)
Cloud Storage bucket storage location of the image (regional or multi-regional).
|
int |
getStorageLocationsCount()
Cloud Storage bucket storage location of the image (regional or multi-regional).
|
com.google.protobuf.ProtocolStringList |
getStorageLocationsList()
Cloud Storage bucket storage location of the image (regional or multi-regional).
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasArchitecture()
The architecture of the image.
|
boolean |
hasArchiveSizeBytes()
Size of the image tar.gz archive stored in Google Cloud Storage (in bytes).
|
boolean |
hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
boolean |
hasDeprecated()
The deprecation status associated with this image.
|
boolean |
hasDescription()
An optional description of this resource.
|
boolean |
hasDiskSizeGb()
Size of the image when restored onto a persistent disk (in GB).
|
boolean |
hasFamily()
The name of the image family to which this image belongs.
|
int |
hashCode() |
boolean |
hasId()
[Output Only] The unique identifier for the resource.
|
boolean |
hasImageEncryptionKey()
Encrypts the image using a customer-supplied encryption key.
|
boolean |
hasKind()
[Output Only] Type of the resource.
|
boolean |
hasLabelFingerprint()
A fingerprint for the labels being applied to this image, which is essentially a hash of the labels used for optimistic locking.
|
boolean |
hasName()
Name of the resource; provided by the client when the resource is created.
|
boolean |
hasRawDisk()
The parameters of the raw disk image.
|
boolean |
hasSatisfiesPzs()
[Output Only] Reserved for future use.
|
boolean |
hasSelfLink()
[Output Only] Server-defined URL for the resource.
|
boolean |
hasShieldedInstanceInitialState()
Set the secure boot keys of shielded instance.
|
boolean |
hasSourceDisk()
URL of the source disk used to create this image.
|
boolean |
hasSourceDiskEncryptionKey()
The customer-supplied encryption key of the source disk.
|
boolean |
hasSourceDiskId()
[Output Only] The ID value of the disk used to create this image.
|
boolean |
hasSourceImage()
URL of the source image used to create this image.
|
boolean |
hasSourceImageEncryptionKey()
The customer-supplied encryption key of the source image.
|
boolean |
hasSourceImageId()
[Output Only] The ID value of the image used to create this image.
|
boolean |
hasSourceSnapshot()
URL of the source snapshot used to create this image.
|
boolean |
hasSourceSnapshotEncryptionKey()
The customer-supplied encryption key of the source snapshot.
|
boolean |
hasSourceSnapshotId()
[Output Only] The ID value of the snapshot used to create this image.
|
boolean |
hasSourceType()
The type of the image used to create this disk.
|
boolean |
hasStatus()
[Output Only] The status of the image.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static Image.Builder |
newBuilder() |
static Image.Builder |
newBuilder(Image prototype) |
Image.Builder |
newBuilderForType() |
protected Image.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Image |
parseDelimitedFrom(InputStream input) |
static Image |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Image |
parseFrom(byte[] data) |
static Image |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Image |
parseFrom(ByteBuffer data) |
static Image |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Image |
parseFrom(com.google.protobuf.ByteString data) |
static Image |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Image |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Image |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Image |
parseFrom(InputStream input) |
static Image |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Image> |
parser() |
Image.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 ARCHIVE_SIZE_BYTES_FIELD_NUMBER
public static final int CREATION_TIMESTAMP_FIELD_NUMBER
public static final int DEPRECATED_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
public static final int DISK_SIZE_GB_FIELD_NUMBER
public static final int FAMILY_FIELD_NUMBER
public static final int GUEST_OS_FEATURES_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
public static final int IMAGE_ENCRYPTION_KEY_FIELD_NUMBER
public static final int KIND_FIELD_NUMBER
public static final int LABEL_FINGERPRINT_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
public static final int LICENSE_CODES_FIELD_NUMBER
public static final int LICENSES_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
public static final int RAW_DISK_FIELD_NUMBER
public static final int SATISFIES_PZS_FIELD_NUMBER
public static final int SELF_LINK_FIELD_NUMBER
public static final int SHIELDED_INSTANCE_INITIAL_STATE_FIELD_NUMBER
public static final int SOURCE_DISK_FIELD_NUMBER
public static final int SOURCE_DISK_ENCRYPTION_KEY_FIELD_NUMBER
public static final int SOURCE_DISK_ID_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_IMAGE_ID_FIELD_NUMBER
public static final int SOURCE_SNAPSHOT_FIELD_NUMBER
public static final int SOURCE_SNAPSHOT_ENCRYPTION_KEY_FIELD_NUMBER
public static final int SOURCE_SNAPSHOT_ID_FIELD_NUMBER
public static final int SOURCE_TYPE_FIELD_NUMBER
public static final int STATUS_FIELD_NUMBER
public static final int STORAGE_LOCATIONS_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 image. Valid values are ARM64 or X86_64. Check the Architecture enum for the list of possible values.
optional string architecture = 302803283;hasArchitecture in interface ImageOrBuilderpublic String getArchitecture()
The architecture of the image. Valid values are ARM64 or X86_64. Check the Architecture enum for the list of possible values.
optional string architecture = 302803283;getArchitecture in interface ImageOrBuilderpublic com.google.protobuf.ByteString getArchitectureBytes()
The architecture of the image. Valid values are ARM64 or X86_64. Check the Architecture enum for the list of possible values.
optional string architecture = 302803283;getArchitectureBytes in interface ImageOrBuilderpublic boolean hasArchiveSizeBytes()
Size of the image tar.gz archive stored in Google Cloud Storage (in bytes).
optional int64 archive_size_bytes = 381093450;hasArchiveSizeBytes in interface ImageOrBuilderpublic long getArchiveSizeBytes()
Size of the image tar.gz archive stored in Google Cloud Storage (in bytes).
optional int64 archive_size_bytes = 381093450;getArchiveSizeBytes in interface ImageOrBuilderpublic boolean hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;hasCreationTimestamp in interface ImageOrBuilderpublic String getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;getCreationTimestamp in interface ImageOrBuilderpublic com.google.protobuf.ByteString getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;getCreationTimestampBytes in interface ImageOrBuilderpublic boolean hasDeprecated()
The deprecation status associated with this image.
optional .google.cloud.compute.v1.DeprecationStatus deprecated = 515138995;hasDeprecated in interface ImageOrBuilderpublic DeprecationStatus getDeprecated()
The deprecation status associated with this image.
optional .google.cloud.compute.v1.DeprecationStatus deprecated = 515138995;getDeprecated in interface ImageOrBuilderpublic DeprecationStatusOrBuilder getDeprecatedOrBuilder()
The deprecation status associated with this image.
optional .google.cloud.compute.v1.DeprecationStatus deprecated = 515138995;getDeprecatedOrBuilder in interface ImageOrBuilderpublic boolean hasDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;hasDescription in interface ImageOrBuilderpublic String getDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;getDescription in interface ImageOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;getDescriptionBytes in interface ImageOrBuilderpublic boolean hasDiskSizeGb()
Size of the image when restored onto a persistent disk (in GB).
optional int64 disk_size_gb = 316263735;hasDiskSizeGb in interface ImageOrBuilderpublic long getDiskSizeGb()
Size of the image when restored onto a persistent disk (in GB).
optional int64 disk_size_gb = 316263735;getDiskSizeGb in interface ImageOrBuilderpublic boolean hasFamily()
The name of the image family to which this image belongs. You can create disks by specifying an image family instead of a specific image name. The image family always returns its latest image that is not deprecated. The name of the image family must comply with RFC1035.
optional string family = 328751972;hasFamily in interface ImageOrBuilderpublic String getFamily()
The name of the image family to which this image belongs. You can create disks by specifying an image family instead of a specific image name. The image family always returns its latest image that is not deprecated. The name of the image family must comply with RFC1035.
optional string family = 328751972;getFamily in interface ImageOrBuilderpublic com.google.protobuf.ByteString getFamilyBytes()
The name of the image family to which this image belongs. You can create disks by specifying an image family instead of a specific image name. The image family always returns its latest image that is not deprecated. The name of the image family must comply with RFC1035.
optional string family = 328751972;getFamilyBytes in interface ImageOrBuilderpublic List<GuestOsFeature> getGuestOsFeaturesList()
A list of features to enable on the guest operating system. Applicable only for bootable images. To see a list of available options, see the guestOSfeatures[].type parameter.
repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;getGuestOsFeaturesList in interface ImageOrBuilderpublic List<? extends GuestOsFeatureOrBuilder> getGuestOsFeaturesOrBuilderList()
A list of features to enable on the guest operating system. Applicable only for bootable images. To see a list of available options, see the guestOSfeatures[].type parameter.
repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;getGuestOsFeaturesOrBuilderList in interface ImageOrBuilderpublic int getGuestOsFeaturesCount()
A list of features to enable on the guest operating system. Applicable only for bootable images. To see a list of available options, see the guestOSfeatures[].type parameter.
repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;getGuestOsFeaturesCount in interface ImageOrBuilderpublic GuestOsFeature getGuestOsFeatures(int index)
A list of features to enable on the guest operating system. Applicable only for bootable images. To see a list of available options, see the guestOSfeatures[].type parameter.
repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;getGuestOsFeatures in interface ImageOrBuilderpublic GuestOsFeatureOrBuilder getGuestOsFeaturesOrBuilder(int index)
A list of features to enable on the guest operating system. Applicable only for bootable images. To see a list of available options, see the guestOSfeatures[].type parameter.
repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;getGuestOsFeaturesOrBuilder in interface ImageOrBuilderpublic boolean hasId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;hasId in interface ImageOrBuilderpublic long getId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;getId in interface ImageOrBuilderpublic boolean hasImageEncryptionKey()
Encrypts the image using a customer-supplied encryption key. After you encrypt an image with a customer-supplied key, you must provide the same key if you use the image later (e.g. to create a disk from the image). Customer-supplied encryption keys do not protect access to metadata of the disk. If you do not provide an encryption key when creating the image, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the image later.
optional .google.cloud.compute.v1.CustomerEncryptionKey image_encryption_key = 379512583;
hasImageEncryptionKey in interface ImageOrBuilderpublic CustomerEncryptionKey getImageEncryptionKey()
Encrypts the image using a customer-supplied encryption key. After you encrypt an image with a customer-supplied key, you must provide the same key if you use the image later (e.g. to create a disk from the image). Customer-supplied encryption keys do not protect access to metadata of the disk. If you do not provide an encryption key when creating the image, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the image later.
optional .google.cloud.compute.v1.CustomerEncryptionKey image_encryption_key = 379512583;
getImageEncryptionKey in interface ImageOrBuilderpublic CustomerEncryptionKeyOrBuilder getImageEncryptionKeyOrBuilder()
Encrypts the image using a customer-supplied encryption key. After you encrypt an image with a customer-supplied key, you must provide the same key if you use the image later (e.g. to create a disk from the image). Customer-supplied encryption keys do not protect access to metadata of the disk. If you do not provide an encryption key when creating the image, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the image later.
optional .google.cloud.compute.v1.CustomerEncryptionKey image_encryption_key = 379512583;
getImageEncryptionKeyOrBuilder in interface ImageOrBuilderpublic boolean hasKind()
[Output Only] Type of the resource. Always compute#image for images.
optional string kind = 3292052;hasKind in interface ImageOrBuilderpublic String getKind()
[Output Only] Type of the resource. Always compute#image for images.
optional string kind = 3292052;getKind in interface ImageOrBuilderpublic com.google.protobuf.ByteString getKindBytes()
[Output Only] Type of the resource. Always compute#image for images.
optional string kind = 3292052;getKindBytes in interface ImageOrBuilderpublic boolean hasLabelFingerprint()
A fingerprint for the labels being applied to this image, which is essentially a hash of the labels used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an image.
optional string label_fingerprint = 178124825;hasLabelFingerprint in interface ImageOrBuilderpublic String getLabelFingerprint()
A fingerprint for the labels being applied to this image, which is essentially a hash of the labels used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an image.
optional string label_fingerprint = 178124825;getLabelFingerprint in interface ImageOrBuilderpublic com.google.protobuf.ByteString getLabelFingerprintBytes()
A fingerprint for the labels being applied to this image, which is essentially a hash of the labels used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an image.
optional string label_fingerprint = 178124825;getLabelFingerprintBytes in interface ImageOrBuilderpublic int getLabelsCount()
ImageOrBuilderLabels to apply to this image. These can be later modified by the setLabels method.
map<string, string> labels = 500195327;getLabelsCount in interface ImageOrBuilderpublic boolean containsLabels(String key)
Labels to apply to this image. These can be later modified by the setLabels method.
map<string, string> labels = 500195327;containsLabels in interface ImageOrBuilder@Deprecated public Map<String,String> getLabels()
getLabelsMap() instead.getLabels in interface ImageOrBuilderpublic Map<String,String> getLabelsMap()
Labels to apply to this image. These can be later modified by the setLabels method.
map<string, string> labels = 500195327;getLabelsMap in interface ImageOrBuilderpublic String getLabelsOrDefault(String key, String defaultValue)
Labels to apply to this image. These can be later modified by the setLabels method.
map<string, string> labels = 500195327;getLabelsOrDefault in interface ImageOrBuilderpublic String getLabelsOrThrow(String key)
Labels to apply to this image. These can be later modified by the setLabels method.
map<string, string> labels = 500195327;getLabelsOrThrow in interface ImageOrBuilderpublic List<Long> getLicenseCodesList()
Integer license codes indicating which licenses are attached to this image.
repeated int64 license_codes = 45482664;getLicenseCodesList in interface ImageOrBuilderpublic int getLicenseCodesCount()
Integer license codes indicating which licenses are attached to this image.
repeated int64 license_codes = 45482664;getLicenseCodesCount in interface ImageOrBuilderpublic long getLicenseCodes(int index)
Integer license codes indicating which licenses are attached to this image.
repeated int64 license_codes = 45482664;getLicenseCodes in interface ImageOrBuilderindex - The index of the element to return.public com.google.protobuf.ProtocolStringList getLicensesList()
Any applicable license URI.
repeated string licenses = 337642578;getLicensesList in interface ImageOrBuilderpublic int getLicensesCount()
Any applicable license URI.
repeated string licenses = 337642578;getLicensesCount in interface ImageOrBuilderpublic String getLicenses(int index)
Any applicable license URI.
repeated string licenses = 337642578;getLicenses in interface ImageOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getLicensesBytes(int index)
Any applicable license URI.
repeated string licenses = 337642578;getLicensesBytes in interface ImageOrBuilderindex - The index of the value to return.public boolean hasName()
Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;hasName in interface ImageOrBuilderpublic String getName()
Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;getName in interface ImageOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;getNameBytes in interface ImageOrBuilderpublic boolean hasRawDisk()
The parameters of the raw disk image.
optional .google.cloud.compute.v1.RawDisk raw_disk = 503113556;hasRawDisk in interface ImageOrBuilderpublic RawDisk getRawDisk()
The parameters of the raw disk image.
optional .google.cloud.compute.v1.RawDisk raw_disk = 503113556;getRawDisk in interface ImageOrBuilderpublic RawDiskOrBuilder getRawDiskOrBuilder()
The parameters of the raw disk image.
optional .google.cloud.compute.v1.RawDisk raw_disk = 503113556;getRawDiskOrBuilder in interface ImageOrBuilderpublic boolean hasSatisfiesPzs()
[Output Only] Reserved for future use.
optional bool satisfies_pzs = 480964267;hasSatisfiesPzs in interface ImageOrBuilderpublic boolean getSatisfiesPzs()
[Output Only] Reserved for future use.
optional bool satisfies_pzs = 480964267;getSatisfiesPzs in interface ImageOrBuilderpublic boolean hasSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;hasSelfLink in interface ImageOrBuilderpublic String getSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;getSelfLink in interface ImageOrBuilderpublic com.google.protobuf.ByteString getSelfLinkBytes()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;getSelfLinkBytes in interface ImageOrBuilderpublic boolean hasShieldedInstanceInitialState()
Set the secure boot keys of shielded instance.
optional .google.cloud.compute.v1.InitialStateConfig shielded_instance_initial_state = 192356867;
hasShieldedInstanceInitialState in interface ImageOrBuilderpublic InitialStateConfig getShieldedInstanceInitialState()
Set the secure boot keys of shielded instance.
optional .google.cloud.compute.v1.InitialStateConfig shielded_instance_initial_state = 192356867;
getShieldedInstanceInitialState in interface ImageOrBuilderpublic InitialStateConfigOrBuilder getShieldedInstanceInitialStateOrBuilder()
Set the secure boot keys of shielded instance.
optional .google.cloud.compute.v1.InitialStateConfig shielded_instance_initial_state = 192356867;
getShieldedInstanceInitialStateOrBuilder in interface ImageOrBuilderpublic boolean hasSourceDisk()
URL of the source disk used to create this image. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - projects/project/zones/zone/disks/disk - zones/zone/disks/disk In order to create an image, you must provide the full or partial URL of one of the following: - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The sourceSnapshot URL
optional string source_disk = 451753793;hasSourceDisk in interface ImageOrBuilderpublic String getSourceDisk()
URL of the source disk used to create this image. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - projects/project/zones/zone/disks/disk - zones/zone/disks/disk In order to create an image, you must provide the full or partial URL of one of the following: - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The sourceSnapshot URL
optional string source_disk = 451753793;getSourceDisk in interface ImageOrBuilderpublic com.google.protobuf.ByteString getSourceDiskBytes()
URL of the source disk used to create this image. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - projects/project/zones/zone/disks/disk - zones/zone/disks/disk In order to create an image, you must provide the full or partial URL of one of the following: - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The sourceSnapshot URL
optional string source_disk = 451753793;getSourceDiskBytes in interface ImageOrBuilderpublic boolean hasSourceDiskEncryptionKey()
The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key.
optional .google.cloud.compute.v1.CustomerEncryptionKey source_disk_encryption_key = 531501153;
hasSourceDiskEncryptionKey in interface ImageOrBuilderpublic CustomerEncryptionKey getSourceDiskEncryptionKey()
The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key.
optional .google.cloud.compute.v1.CustomerEncryptionKey source_disk_encryption_key = 531501153;
getSourceDiskEncryptionKey in interface ImageOrBuilderpublic CustomerEncryptionKeyOrBuilder getSourceDiskEncryptionKeyOrBuilder()
The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key.
optional .google.cloud.compute.v1.CustomerEncryptionKey source_disk_encryption_key = 531501153;
getSourceDiskEncryptionKeyOrBuilder in interface ImageOrBuilderpublic boolean hasSourceDiskId()
[Output Only] The ID value of the disk used to create this image. This value may be used to determine whether the image was taken from the current or a previous instance of a given disk name.
optional string source_disk_id = 454190809;hasSourceDiskId in interface ImageOrBuilderpublic String getSourceDiskId()
[Output Only] The ID value of the disk used to create this image. This value may be used to determine whether the image was taken from the current or a previous instance of a given disk name.
optional string source_disk_id = 454190809;getSourceDiskId in interface ImageOrBuilderpublic com.google.protobuf.ByteString getSourceDiskIdBytes()
[Output Only] The ID value of the disk used to create this image. This value may be used to determine whether the image was taken from the current or a previous instance of a given disk name.
optional string source_disk_id = 454190809;getSourceDiskIdBytes in interface ImageOrBuilderpublic boolean hasSourceImage()
URL of the source image used to create this image. The following are valid formats for the URL: - https://www.googleapis.com/compute/v1/projects/project_id/global/ images/image_name - projects/project_id/global/images/image_name In order to create an image, you must provide the full or partial URL of one of the following: - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The sourceSnapshot URL
optional string source_image = 50443319;hasSourceImage in interface ImageOrBuilderpublic String getSourceImage()
URL of the source image used to create this image. The following are valid formats for the URL: - https://www.googleapis.com/compute/v1/projects/project_id/global/ images/image_name - projects/project_id/global/images/image_name In order to create an image, you must provide the full or partial URL of one of the following: - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The sourceSnapshot URL
optional string source_image = 50443319;getSourceImage in interface ImageOrBuilderpublic com.google.protobuf.ByteString getSourceImageBytes()
URL of the source image used to create this image. The following are valid formats for the URL: - https://www.googleapis.com/compute/v1/projects/project_id/global/ images/image_name - projects/project_id/global/images/image_name In order to create an image, you must provide the full or partial URL of one of the following: - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The sourceSnapshot URL
optional string source_image = 50443319;getSourceImageBytes in interface ImageOrBuilderpublic boolean hasSourceImageEncryptionKey()
The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key.
optional .google.cloud.compute.v1.CustomerEncryptionKey source_image_encryption_key = 381503659;
hasSourceImageEncryptionKey in interface ImageOrBuilderpublic CustomerEncryptionKey getSourceImageEncryptionKey()
The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key.
optional .google.cloud.compute.v1.CustomerEncryptionKey source_image_encryption_key = 381503659;
getSourceImageEncryptionKey in interface ImageOrBuilderpublic CustomerEncryptionKeyOrBuilder getSourceImageEncryptionKeyOrBuilder()
The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key.
optional .google.cloud.compute.v1.CustomerEncryptionKey source_image_encryption_key = 381503659;
getSourceImageEncryptionKeyOrBuilder in interface ImageOrBuilderpublic boolean hasSourceImageId()
[Output Only] The ID value of the image used to create this image. This value may be used to determine whether the image was taken from the current or a previous instance of a given image name.
optional string source_image_id = 55328291;hasSourceImageId in interface ImageOrBuilderpublic String getSourceImageId()
[Output Only] The ID value of the image used to create this image. This value may be used to determine whether the image was taken from the current or a previous instance of a given image name.
optional string source_image_id = 55328291;getSourceImageId in interface ImageOrBuilderpublic com.google.protobuf.ByteString getSourceImageIdBytes()
[Output Only] The ID value of the image used to create this image. This value may be used to determine whether the image was taken from the current or a previous instance of a given image name.
optional string source_image_id = 55328291;getSourceImageIdBytes in interface ImageOrBuilderpublic boolean hasSourceSnapshot()
URL of the source snapshot used to create this image. The following are valid formats for the URL: - https://www.googleapis.com/compute/v1/projects/project_id/global/ snapshots/snapshot_name - projects/project_id/global/snapshots/snapshot_name In order to create an image, you must provide the full or partial URL of one of the following: - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The sourceSnapshot URL
optional string source_snapshot = 126061928;hasSourceSnapshot in interface ImageOrBuilderpublic String getSourceSnapshot()
URL of the source snapshot used to create this image. The following are valid formats for the URL: - https://www.googleapis.com/compute/v1/projects/project_id/global/ snapshots/snapshot_name - projects/project_id/global/snapshots/snapshot_name In order to create an image, you must provide the full or partial URL of one of the following: - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The sourceSnapshot URL
optional string source_snapshot = 126061928;getSourceSnapshot in interface ImageOrBuilderpublic com.google.protobuf.ByteString getSourceSnapshotBytes()
URL of the source snapshot used to create this image. The following are valid formats for the URL: - https://www.googleapis.com/compute/v1/projects/project_id/global/ snapshots/snapshot_name - projects/project_id/global/snapshots/snapshot_name In order to create an image, you must provide the full or partial URL of one of the following: - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The sourceSnapshot URL
optional string source_snapshot = 126061928;getSourceSnapshotBytes in interface ImageOrBuilderpublic boolean hasSourceSnapshotEncryptionKey()
The customer-supplied encryption key of the source snapshot. Required if the source snapshot is protected by a customer-supplied encryption key.
optional .google.cloud.compute.v1.CustomerEncryptionKey source_snapshot_encryption_key = 303679322;
hasSourceSnapshotEncryptionKey in interface ImageOrBuilderpublic CustomerEncryptionKey getSourceSnapshotEncryptionKey()
The customer-supplied encryption key of the source snapshot. Required if the source snapshot is protected by a customer-supplied encryption key.
optional .google.cloud.compute.v1.CustomerEncryptionKey source_snapshot_encryption_key = 303679322;
getSourceSnapshotEncryptionKey in interface ImageOrBuilderpublic CustomerEncryptionKeyOrBuilder getSourceSnapshotEncryptionKeyOrBuilder()
The customer-supplied encryption key of the source snapshot. Required if the source snapshot is protected by a customer-supplied encryption key.
optional .google.cloud.compute.v1.CustomerEncryptionKey source_snapshot_encryption_key = 303679322;
getSourceSnapshotEncryptionKeyOrBuilder in interface ImageOrBuilderpublic boolean hasSourceSnapshotId()
[Output Only] The ID value of the snapshot used to create this image. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a given snapshot name.
optional string source_snapshot_id = 98962258;hasSourceSnapshotId in interface ImageOrBuilderpublic String getSourceSnapshotId()
[Output Only] The ID value of the snapshot used to create this image. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a given snapshot name.
optional string source_snapshot_id = 98962258;getSourceSnapshotId in interface ImageOrBuilderpublic com.google.protobuf.ByteString getSourceSnapshotIdBytes()
[Output Only] The ID value of the snapshot used to create this image. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a given snapshot name.
optional string source_snapshot_id = 98962258;getSourceSnapshotIdBytes in interface ImageOrBuilderpublic boolean hasSourceType()
The type of the image used to create this disk. The default and only valid value is RAW. Check the SourceType enum for the list of possible values.
optional string source_type = 452245726;hasSourceType in interface ImageOrBuilderpublic String getSourceType()
The type of the image used to create this disk. The default and only valid value is RAW. Check the SourceType enum for the list of possible values.
optional string source_type = 452245726;getSourceType in interface ImageOrBuilderpublic com.google.protobuf.ByteString getSourceTypeBytes()
The type of the image used to create this disk. The default and only valid value is RAW. Check the SourceType enum for the list of possible values.
optional string source_type = 452245726;getSourceTypeBytes in interface ImageOrBuilderpublic boolean hasStatus()
[Output Only] The status of the image. An image can be used to create other resources, such as instances, only after the image has been successfully created and the status is set to READY. Possible values are FAILED, PENDING, or READY. Check the Status enum for the list of possible values.
optional string status = 181260274;hasStatus in interface ImageOrBuilderpublic String getStatus()
[Output Only] The status of the image. An image can be used to create other resources, such as instances, only after the image has been successfully created and the status is set to READY. Possible values are FAILED, PENDING, or READY. Check the Status enum for the list of possible values.
optional string status = 181260274;getStatus in interface ImageOrBuilderpublic com.google.protobuf.ByteString getStatusBytes()
[Output Only] The status of the image. An image can be used to create other resources, such as instances, only after the image has been successfully created and the status is set to READY. Possible values are FAILED, PENDING, or READY. Check the Status enum for the list of possible values.
optional string status = 181260274;getStatusBytes in interface ImageOrBuilderpublic com.google.protobuf.ProtocolStringList getStorageLocationsList()
Cloud Storage bucket storage location of the image (regional or multi-regional).
repeated string storage_locations = 328005274;getStorageLocationsList in interface ImageOrBuilderpublic int getStorageLocationsCount()
Cloud Storage bucket storage location of the image (regional or multi-regional).
repeated string storage_locations = 328005274;getStorageLocationsCount in interface ImageOrBuilderpublic String getStorageLocations(int index)
Cloud Storage bucket storage location of the image (regional or multi-regional).
repeated string storage_locations = 328005274;getStorageLocations in interface ImageOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getStorageLocationsBytes(int index)
Cloud Storage bucket storage location of the image (regional or multi-regional).
repeated string storage_locations = 328005274;getStorageLocationsBytes in interface ImageOrBuilderindex - The index of the value to return.public 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 Image parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Image parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Image parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Image parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Image parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Image parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Image parseFrom(InputStream input) throws IOException
IOExceptionpublic static Image parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Image parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Image parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Image parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Image parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Image.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Image.Builder newBuilder()
public static Image.Builder newBuilder(Image prototype)
public Image.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Image.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Image getDefaultInstance()
public static com.google.protobuf.Parser<Image> parser()
public com.google.protobuf.Parser<Image> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Image getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.