Package com.google.cloud.compute.v1
Class Image
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.compute.v1.Image
-
- All Implemented Interfaces:
ImageOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
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 typegoogle.cloud.compute.v1.Image
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class 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.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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).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(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 Image
parseFrom(ByteBuffer data)
static Image
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Image>
parser()
Image.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
ARCHITECTURE_FIELD_NUMBER
public static final int ARCHITECTURE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ARCHIVE_SIZE_BYTES_FIELD_NUMBER
public static final int ARCHIVE_SIZE_BYTES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CREATION_TIMESTAMP_FIELD_NUMBER
public static final int CREATION_TIMESTAMP_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DEPRECATED_FIELD_NUMBER
public static final int DEPRECATED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DISK_SIZE_GB_FIELD_NUMBER
public static final int DISK_SIZE_GB_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FAMILY_FIELD_NUMBER
public static final int FAMILY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
GUEST_OS_FEATURES_FIELD_NUMBER
public static final int GUEST_OS_FEATURES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
IMAGE_ENCRYPTION_KEY_FIELD_NUMBER
public static final int IMAGE_ENCRYPTION_KEY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
KIND_FIELD_NUMBER
public static final int KIND_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LABEL_FINGERPRINT_FIELD_NUMBER
public static final int LABEL_FINGERPRINT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LICENSE_CODES_FIELD_NUMBER
public static final int LICENSE_CODES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LICENSES_FIELD_NUMBER
public static final int LICENSES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RAW_DISK_FIELD_NUMBER
public static final int RAW_DISK_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SATISFIES_PZS_FIELD_NUMBER
public static final int SATISFIES_PZS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SELF_LINK_FIELD_NUMBER
public static final int SELF_LINK_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SHIELDED_INSTANCE_INITIAL_STATE_FIELD_NUMBER
public static final int SHIELDED_INSTANCE_INITIAL_STATE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SOURCE_DISK_FIELD_NUMBER
public static final int SOURCE_DISK_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SOURCE_DISK_ENCRYPTION_KEY_FIELD_NUMBER
public static final int SOURCE_DISK_ENCRYPTION_KEY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SOURCE_DISK_ID_FIELD_NUMBER
public static final int SOURCE_DISK_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SOURCE_IMAGE_FIELD_NUMBER
public static final int SOURCE_IMAGE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SOURCE_IMAGE_ENCRYPTION_KEY_FIELD_NUMBER
public static final int SOURCE_IMAGE_ENCRYPTION_KEY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SOURCE_IMAGE_ID_FIELD_NUMBER
public static final int SOURCE_IMAGE_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SOURCE_SNAPSHOT_FIELD_NUMBER
public static final int SOURCE_SNAPSHOT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SOURCE_SNAPSHOT_ENCRYPTION_KEY_FIELD_NUMBER
public static final int SOURCE_SNAPSHOT_ENCRYPTION_KEY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SOURCE_SNAPSHOT_ID_FIELD_NUMBER
public static final int SOURCE_SNAPSHOT_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SOURCE_TYPE_FIELD_NUMBER
public static final int SOURCE_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STATUS_FIELD_NUMBER
public static final int STATUS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STORAGE_LOCATIONS_FIELD_NUMBER
public static final int STORAGE_LOCATIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
hasArchitecture
public 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;
- Specified by:
hasArchitecture
in interfaceImageOrBuilder
- Returns:
- Whether the architecture field is set.
-
getArchitecture
public 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;
- Specified by:
getArchitecture
in interfaceImageOrBuilder
- Returns:
- The architecture.
-
getArchitectureBytes
public 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;
- Specified by:
getArchitectureBytes
in interfaceImageOrBuilder
- Returns:
- The bytes for architecture.
-
hasArchiveSizeBytes
public boolean hasArchiveSizeBytes()
Size of the image tar.gz archive stored in Google Cloud Storage (in bytes).
optional int64 archive_size_bytes = 381093450;
- Specified by:
hasArchiveSizeBytes
in interfaceImageOrBuilder
- Returns:
- Whether the archiveSizeBytes field is set.
-
getArchiveSizeBytes
public long getArchiveSizeBytes()
Size of the image tar.gz archive stored in Google Cloud Storage (in bytes).
optional int64 archive_size_bytes = 381093450;
- Specified by:
getArchiveSizeBytes
in interfaceImageOrBuilder
- Returns:
- The archiveSizeBytes.
-
hasCreationTimestamp
public boolean hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Specified by:
hasCreationTimestamp
in interfaceImageOrBuilder
- Returns:
- Whether the creationTimestamp field is set.
-
getCreationTimestamp
public String getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Specified by:
getCreationTimestamp
in interfaceImageOrBuilder
- Returns:
- The creationTimestamp.
-
getCreationTimestampBytes
public com.google.protobuf.ByteString getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Specified by:
getCreationTimestampBytes
in interfaceImageOrBuilder
- Returns:
- The bytes for creationTimestamp.
-
hasDeprecated
public boolean hasDeprecated()
The deprecation status associated with this image.
optional .google.cloud.compute.v1.DeprecationStatus deprecated = 515138995;
- Specified by:
hasDeprecated
in interfaceImageOrBuilder
- Returns:
- Whether the deprecated field is set.
-
getDeprecated
public DeprecationStatus getDeprecated()
The deprecation status associated with this image.
optional .google.cloud.compute.v1.DeprecationStatus deprecated = 515138995;
- Specified by:
getDeprecated
in interfaceImageOrBuilder
- Returns:
- The deprecated.
-
getDeprecatedOrBuilder
public DeprecationStatusOrBuilder getDeprecatedOrBuilder()
The deprecation status associated with this image.
optional .google.cloud.compute.v1.DeprecationStatus deprecated = 515138995;
- Specified by:
getDeprecatedOrBuilder
in interfaceImageOrBuilder
-
hasDescription
public boolean hasDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;
- Specified by:
hasDescription
in interfaceImageOrBuilder
- Returns:
- Whether the description field is set.
-
getDescription
public String getDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;
- Specified by:
getDescription
in interfaceImageOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;
- Specified by:
getDescriptionBytes
in interfaceImageOrBuilder
- Returns:
- The bytes for description.
-
hasDiskSizeGb
public boolean hasDiskSizeGb()
Size of the image when restored onto a persistent disk (in GB).
optional int64 disk_size_gb = 316263735;
- Specified by:
hasDiskSizeGb
in interfaceImageOrBuilder
- Returns:
- Whether the diskSizeGb field is set.
-
getDiskSizeGb
public long getDiskSizeGb()
Size of the image when restored onto a persistent disk (in GB).
optional int64 disk_size_gb = 316263735;
- Specified by:
getDiskSizeGb
in interfaceImageOrBuilder
- Returns:
- The diskSizeGb.
-
hasFamily
public boolean hasFamily()
The name of the image family to which this image belongs. The image family name can be from a publicly managed image family provided by Compute Engine, or from a custom image family you create. For example, centos-stream-9 is a publicly available image family. For more information, see Image family best practices. When creating disks, you can specify 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;
- Specified by:
hasFamily
in interfaceImageOrBuilder
- Returns:
- Whether the family field is set.
-
getFamily
public String getFamily()
The name of the image family to which this image belongs. The image family name can be from a publicly managed image family provided by Compute Engine, or from a custom image family you create. For example, centos-stream-9 is a publicly available image family. For more information, see Image family best practices. When creating disks, you can specify 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;
- Specified by:
getFamily
in interfaceImageOrBuilder
- Returns:
- The family.
-
getFamilyBytes
public com.google.protobuf.ByteString getFamilyBytes()
The name of the image family to which this image belongs. The image family name can be from a publicly managed image family provided by Compute Engine, or from a custom image family you create. For example, centos-stream-9 is a publicly available image family. For more information, see Image family best practices. When creating disks, you can specify 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;
- Specified by:
getFamilyBytes
in interfaceImageOrBuilder
- Returns:
- The bytes for family.
-
getGuestOsFeaturesList
public 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;
- Specified by:
getGuestOsFeaturesList
in interfaceImageOrBuilder
-
getGuestOsFeaturesOrBuilderList
public 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;
- Specified by:
getGuestOsFeaturesOrBuilderList
in interfaceImageOrBuilder
-
getGuestOsFeaturesCount
public 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;
- Specified by:
getGuestOsFeaturesCount
in interfaceImageOrBuilder
-
getGuestOsFeatures
public 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;
- Specified by:
getGuestOsFeatures
in interfaceImageOrBuilder
-
getGuestOsFeaturesOrBuilder
public 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;
- Specified by:
getGuestOsFeaturesOrBuilder
in interfaceImageOrBuilder
-
hasId
public boolean hasId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
- Specified by:
hasId
in interfaceImageOrBuilder
- Returns:
- Whether the id field is set.
-
getId
public long getId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
- Specified by:
getId
in interfaceImageOrBuilder
- Returns:
- The id.
-
hasImageEncryptionKey
public 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;
- Specified by:
hasImageEncryptionKey
in interfaceImageOrBuilder
- Returns:
- Whether the imageEncryptionKey field is set.
-
getImageEncryptionKey
public 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;
- Specified by:
getImageEncryptionKey
in interfaceImageOrBuilder
- Returns:
- The imageEncryptionKey.
-
getImageEncryptionKeyOrBuilder
public 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;
- Specified by:
getImageEncryptionKeyOrBuilder
in interfaceImageOrBuilder
-
hasKind
public boolean hasKind()
[Output Only] Type of the resource. Always compute#image for images.
optional string kind = 3292052;
- Specified by:
hasKind
in interfaceImageOrBuilder
- Returns:
- Whether the kind field is set.
-
getKind
public String getKind()
[Output Only] Type of the resource. Always compute#image for images.
optional string kind = 3292052;
- Specified by:
getKind
in interfaceImageOrBuilder
- Returns:
- The kind.
-
getKindBytes
public com.google.protobuf.ByteString getKindBytes()
[Output Only] Type of the resource. Always compute#image for images.
optional string kind = 3292052;
- Specified by:
getKindBytes
in interfaceImageOrBuilder
- Returns:
- The bytes for kind.
-
hasLabelFingerprint
public 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;
- Specified by:
hasLabelFingerprint
in interfaceImageOrBuilder
- Returns:
- Whether the labelFingerprint field is set.
-
getLabelFingerprint
public 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;
- Specified by:
getLabelFingerprint
in interfaceImageOrBuilder
- Returns:
- The labelFingerprint.
-
getLabelFingerprintBytes
public 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;
- Specified by:
getLabelFingerprintBytes
in interfaceImageOrBuilder
- Returns:
- The bytes for labelFingerprint.
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:ImageOrBuilder
Labels to apply to this image. These can be later modified by the setLabels method.
map<string, string> labels = 500195327;
- Specified by:
getLabelsCount
in interfaceImageOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Labels to apply to this image. These can be later modified by the setLabels method.
map<string, string> labels = 500195327;
- Specified by:
containsLabels
in interfaceImageOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in interfaceImageOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Labels to apply to this image. These can be later modified by the setLabels method.
map<string, string> labels = 500195327;
- Specified by:
getLabelsMap
in interfaceImageOrBuilder
-
getLabelsOrDefault
public 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;
- Specified by:
getLabelsOrDefault
in interfaceImageOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Labels to apply to this image. These can be later modified by the setLabels method.
map<string, string> labels = 500195327;
- Specified by:
getLabelsOrThrow
in interfaceImageOrBuilder
-
getLicenseCodesList
public List<Long> getLicenseCodesList()
Integer license codes indicating which licenses are attached to this image.
repeated int64 license_codes = 45482664;
- Specified by:
getLicenseCodesList
in interfaceImageOrBuilder
- Returns:
- A list containing the licenseCodes.
-
getLicenseCodesCount
public int getLicenseCodesCount()
Integer license codes indicating which licenses are attached to this image.
repeated int64 license_codes = 45482664;
- Specified by:
getLicenseCodesCount
in interfaceImageOrBuilder
- Returns:
- The count of licenseCodes.
-
getLicenseCodes
public long getLicenseCodes(int index)
Integer license codes indicating which licenses are attached to this image.
repeated int64 license_codes = 45482664;
- Specified by:
getLicenseCodes
in interfaceImageOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The licenseCodes at the given index.
-
getLicensesList
public com.google.protobuf.ProtocolStringList getLicensesList()
Any applicable license URI.
repeated string licenses = 337642578;
- Specified by:
getLicensesList
in interfaceImageOrBuilder
- Returns:
- A list containing the licenses.
-
getLicensesCount
public int getLicensesCount()
Any applicable license URI.
repeated string licenses = 337642578;
- Specified by:
getLicensesCount
in interfaceImageOrBuilder
- Returns:
- The count of licenses.
-
getLicenses
public String getLicenses(int index)
Any applicable license URI.
repeated string licenses = 337642578;
- Specified by:
getLicenses
in interfaceImageOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The licenses at the given index.
-
getLicensesBytes
public com.google.protobuf.ByteString getLicensesBytes(int index)
Any applicable license URI.
repeated string licenses = 337642578;
- Specified by:
getLicensesBytes
in interfaceImageOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the licenses at the given index.
-
hasName
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;
- Specified by:
hasName
in interfaceImageOrBuilder
- Returns:
- Whether the name field is set.
-
getName
public 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;
- Specified by:
getName
in interfaceImageOrBuilder
- Returns:
- The name.
-
getNameBytes
public 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;
- Specified by:
getNameBytes
in interfaceImageOrBuilder
- Returns:
- The bytes for name.
-
hasRawDisk
public boolean hasRawDisk()
The parameters of the raw disk image.
optional .google.cloud.compute.v1.RawDisk raw_disk = 503113556;
- Specified by:
hasRawDisk
in interfaceImageOrBuilder
- Returns:
- Whether the rawDisk field is set.
-
getRawDisk
public RawDisk getRawDisk()
The parameters of the raw disk image.
optional .google.cloud.compute.v1.RawDisk raw_disk = 503113556;
- Specified by:
getRawDisk
in interfaceImageOrBuilder
- Returns:
- The rawDisk.
-
getRawDiskOrBuilder
public RawDiskOrBuilder getRawDiskOrBuilder()
The parameters of the raw disk image.
optional .google.cloud.compute.v1.RawDisk raw_disk = 503113556;
- Specified by:
getRawDiskOrBuilder
in interfaceImageOrBuilder
-
hasSatisfiesPzs
public boolean hasSatisfiesPzs()
[Output Only] Reserved for future use.
optional bool satisfies_pzs = 480964267;
- Specified by:
hasSatisfiesPzs
in interfaceImageOrBuilder
- Returns:
- Whether the satisfiesPzs field is set.
-
getSatisfiesPzs
public boolean getSatisfiesPzs()
[Output Only] Reserved for future use.
optional bool satisfies_pzs = 480964267;
- Specified by:
getSatisfiesPzs
in interfaceImageOrBuilder
- Returns:
- The satisfiesPzs.
-
hasSelfLink
public boolean hasSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
- Specified by:
hasSelfLink
in interfaceImageOrBuilder
- Returns:
- Whether the selfLink field is set.
-
getSelfLink
public String getSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
- Specified by:
getSelfLink
in interfaceImageOrBuilder
- Returns:
- The selfLink.
-
getSelfLinkBytes
public com.google.protobuf.ByteString getSelfLinkBytes()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
- Specified by:
getSelfLinkBytes
in interfaceImageOrBuilder
- Returns:
- The bytes for selfLink.
-
hasShieldedInstanceInitialState
public boolean hasShieldedInstanceInitialState()
Set the secure boot keys of shielded instance.
optional .google.cloud.compute.v1.InitialStateConfig shielded_instance_initial_state = 192356867;
- Specified by:
hasShieldedInstanceInitialState
in interfaceImageOrBuilder
- Returns:
- Whether the shieldedInstanceInitialState field is set.
-
getShieldedInstanceInitialState
public InitialStateConfig getShieldedInstanceInitialState()
Set the secure boot keys of shielded instance.
optional .google.cloud.compute.v1.InitialStateConfig shielded_instance_initial_state = 192356867;
- Specified by:
getShieldedInstanceInitialState
in interfaceImageOrBuilder
- Returns:
- The shieldedInstanceInitialState.
-
getShieldedInstanceInitialStateOrBuilder
public InitialStateConfigOrBuilder getShieldedInstanceInitialStateOrBuilder()
Set the secure boot keys of shielded instance.
optional .google.cloud.compute.v1.InitialStateConfig shielded_instance_initial_state = 192356867;
- Specified by:
getShieldedInstanceInitialStateOrBuilder
in interfaceImageOrBuilder
-
hasSourceDisk
public 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;
- Specified by:
hasSourceDisk
in interfaceImageOrBuilder
- Returns:
- Whether the sourceDisk field is set.
-
getSourceDisk
public 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;
- Specified by:
getSourceDisk
in interfaceImageOrBuilder
- Returns:
- The sourceDisk.
-
getSourceDiskBytes
public 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;
- Specified by:
getSourceDiskBytes
in interfaceImageOrBuilder
- Returns:
- The bytes for sourceDisk.
-
hasSourceDiskEncryptionKey
public 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;
- Specified by:
hasSourceDiskEncryptionKey
in interfaceImageOrBuilder
- Returns:
- Whether the sourceDiskEncryptionKey field is set.
-
getSourceDiskEncryptionKey
public 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;
- Specified by:
getSourceDiskEncryptionKey
in interfaceImageOrBuilder
- Returns:
- The sourceDiskEncryptionKey.
-
getSourceDiskEncryptionKeyOrBuilder
public 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;
- Specified by:
getSourceDiskEncryptionKeyOrBuilder
in interfaceImageOrBuilder
-
hasSourceDiskId
public 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;
- Specified by:
hasSourceDiskId
in interfaceImageOrBuilder
- Returns:
- Whether the sourceDiskId field is set.
-
getSourceDiskId
public 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;
- Specified by:
getSourceDiskId
in interfaceImageOrBuilder
- Returns:
- The sourceDiskId.
-
getSourceDiskIdBytes
public 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;
- Specified by:
getSourceDiskIdBytes
in interfaceImageOrBuilder
- Returns:
- The bytes for sourceDiskId.
-
hasSourceImage
public 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;
- Specified by:
hasSourceImage
in interfaceImageOrBuilder
- Returns:
- Whether the sourceImage field is set.
-
getSourceImage
public 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;
- Specified by:
getSourceImage
in interfaceImageOrBuilder
- Returns:
- The sourceImage.
-
getSourceImageBytes
public 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;
- Specified by:
getSourceImageBytes
in interfaceImageOrBuilder
- Returns:
- The bytes for sourceImage.
-
hasSourceImageEncryptionKey
public 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;
- Specified by:
hasSourceImageEncryptionKey
in interfaceImageOrBuilder
- Returns:
- Whether the sourceImageEncryptionKey field is set.
-
getSourceImageEncryptionKey
public 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;
- Specified by:
getSourceImageEncryptionKey
in interfaceImageOrBuilder
- Returns:
- The sourceImageEncryptionKey.
-
getSourceImageEncryptionKeyOrBuilder
public 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;
- Specified by:
getSourceImageEncryptionKeyOrBuilder
in interfaceImageOrBuilder
-
hasSourceImageId
public 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;
- Specified by:
hasSourceImageId
in interfaceImageOrBuilder
- Returns:
- Whether the sourceImageId field is set.
-
getSourceImageId
public 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;
- Specified by:
getSourceImageId
in interfaceImageOrBuilder
- Returns:
- The sourceImageId.
-
getSourceImageIdBytes
public 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;
- Specified by:
getSourceImageIdBytes
in interfaceImageOrBuilder
- Returns:
- The bytes for sourceImageId.
-
hasSourceSnapshot
public 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;
- Specified by:
hasSourceSnapshot
in interfaceImageOrBuilder
- Returns:
- Whether the sourceSnapshot field is set.
-
getSourceSnapshot
public 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;
- Specified by:
getSourceSnapshot
in interfaceImageOrBuilder
- Returns:
- The sourceSnapshot.
-
getSourceSnapshotBytes
public 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;
- Specified by:
getSourceSnapshotBytes
in interfaceImageOrBuilder
- Returns:
- The bytes for sourceSnapshot.
-
hasSourceSnapshotEncryptionKey
public 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;
- Specified by:
hasSourceSnapshotEncryptionKey
in interfaceImageOrBuilder
- Returns:
- Whether the sourceSnapshotEncryptionKey field is set.
-
getSourceSnapshotEncryptionKey
public 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;
- Specified by:
getSourceSnapshotEncryptionKey
in interfaceImageOrBuilder
- Returns:
- The sourceSnapshotEncryptionKey.
-
getSourceSnapshotEncryptionKeyOrBuilder
public 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;
- Specified by:
getSourceSnapshotEncryptionKeyOrBuilder
in interfaceImageOrBuilder
-
hasSourceSnapshotId
public 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;
- Specified by:
hasSourceSnapshotId
in interfaceImageOrBuilder
- Returns:
- Whether the sourceSnapshotId field is set.
-
getSourceSnapshotId
public 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;
- Specified by:
getSourceSnapshotId
in interfaceImageOrBuilder
- Returns:
- The sourceSnapshotId.
-
getSourceSnapshotIdBytes
public 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;
- Specified by:
getSourceSnapshotIdBytes
in interfaceImageOrBuilder
- Returns:
- The bytes for sourceSnapshotId.
-
hasSourceType
public 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;
- Specified by:
hasSourceType
in interfaceImageOrBuilder
- Returns:
- Whether the sourceType field is set.
-
getSourceType
public 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;
- Specified by:
getSourceType
in interfaceImageOrBuilder
- Returns:
- The sourceType.
-
getSourceTypeBytes
public 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;
- Specified by:
getSourceTypeBytes
in interfaceImageOrBuilder
- Returns:
- The bytes for sourceType.
-
hasStatus
public 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;
- Specified by:
hasStatus
in interfaceImageOrBuilder
- Returns:
- Whether the status field is set.
-
getStatus
public 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;
- Specified by:
getStatus
in interfaceImageOrBuilder
- Returns:
- The status.
-
getStatusBytes
public 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;
- Specified by:
getStatusBytes
in interfaceImageOrBuilder
- Returns:
- The bytes for status.
-
getStorageLocationsList
public com.google.protobuf.ProtocolStringList getStorageLocationsList()
Cloud Storage bucket storage location of the image (regional or multi-regional).
repeated string storage_locations = 328005274;
- Specified by:
getStorageLocationsList
in interfaceImageOrBuilder
- Returns:
- A list containing the storageLocations.
-
getStorageLocationsCount
public int getStorageLocationsCount()
Cloud Storage bucket storage location of the image (regional or multi-regional).
repeated string storage_locations = 328005274;
- Specified by:
getStorageLocationsCount
in interfaceImageOrBuilder
- Returns:
- The count of storageLocations.
-
getStorageLocations
public String getStorageLocations(int index)
Cloud Storage bucket storage location of the image (regional or multi-regional).
repeated string storage_locations = 328005274;
- Specified by:
getStorageLocations
in interfaceImageOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The storageLocations at the given index.
-
getStorageLocationsBytes
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;
- Specified by:
getStorageLocationsBytes
in interfaceImageOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the storageLocations at the given index.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Image parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Image parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Image parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Image parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Image parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Image parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Image parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Image parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Image parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Image parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Image parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Image parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Image.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Image.Builder newBuilder()
-
newBuilder
public static Image.Builder newBuilder(Image prototype)
-
toBuilder
public Image.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Image.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Image getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Image> parser()
-
getParserForType
public com.google.protobuf.Parser<Image> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Image getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-