Package com.google.cloud.compute.v1
Interface SnapshotOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Snapshot,Snapshot.Builder
public interface SnapshotOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description booleancontainsLabels(String key)Labels to apply to this snapshot.StringgetArchitecture()[Output Only] The architecture of the snapshot.com.google.protobuf.ByteStringgetArchitectureBytes()[Output Only] The architecture of the snapshot.booleangetAutoCreated()[Output Only] Set to true if snapshots are automatically created by applying resource policy on the target disk.StringgetChainName()Creates the new snapshot in the snapshot chain labeled with the specified name.com.google.protobuf.ByteStringgetChainNameBytes()Creates the new snapshot in the snapshot chain labeled with the specified name.longgetCreationSizeBytes()[Output Only] Size in bytes of the snapshot at creation time.StringgetCreationTimestamp()[Output Only] Creation timestamp in RFC3339 text format.com.google.protobuf.ByteStringgetCreationTimestampBytes()[Output Only] Creation timestamp in RFC3339 text format.StringgetDescription()An optional description of this resource.com.google.protobuf.ByteStringgetDescriptionBytes()An optional description of this resource.longgetDiskSizeGb()[Output Only] Size of the source disk, specified in GB.longgetDownloadBytes()[Output Only] Number of bytes downloaded to restore a snapshot to a disk.longgetId()[Output Only] The unique identifier for the resource.StringgetKind()[Output Only] Type of the resource.com.google.protobuf.ByteStringgetKindBytes()[Output Only] Type of the resource.StringgetLabelFingerprint()A fingerprint for the labels being applied to this snapshot, which is essentially a hash of the labels set used for optimistic locking.com.google.protobuf.ByteStringgetLabelFingerprintBytes()A fingerprint for the labels being applied to this snapshot, which is essentially a hash of the labels set used for optimistic locking.Map<String,String>getLabels()Deprecated.intgetLabelsCount()Labels to apply to this snapshot.Map<String,String>getLabelsMap()Labels to apply to this snapshot.StringgetLabelsOrDefault(String key, String defaultValue)Labels to apply to this snapshot.StringgetLabelsOrThrow(String key)Labels to apply to this snapshot.longgetLicenseCodes(int index)[Output Only] Integer license codes indicating which licenses are attached to this snapshot.intgetLicenseCodesCount()[Output Only] Integer license codes indicating which licenses are attached to this snapshot.List<Long>getLicenseCodesList()[Output Only] Integer license codes indicating which licenses are attached to this snapshot.StringgetLicenses(int index)[Output Only] A list of public visible licenses that apply to this snapshot.com.google.protobuf.ByteStringgetLicensesBytes(int index)[Output Only] A list of public visible licenses that apply to this snapshot.intgetLicensesCount()[Output Only] A list of public visible licenses that apply to this snapshot.List<String>getLicensesList()[Output Only] A list of public visible licenses that apply to this snapshot.StringgetLocationHint()An opaque location hint used to place the snapshot close to other resources.com.google.protobuf.ByteStringgetLocationHintBytes()An opaque location hint used to place the snapshot close to other resources.StringgetName()Name of the resource; provided by the client when the resource is created.com.google.protobuf.ByteStringgetNameBytes()Name of the resource; provided by the client when the resource is created.booleangetSatisfiesPzs()[Output Only] Reserved for future use.StringgetSelfLink()[Output Only] Server-defined URL for the resource.com.google.protobuf.ByteStringgetSelfLinkBytes()[Output Only] Server-defined URL for the resource.CustomerEncryptionKeygetSnapshotEncryptionKey()Encrypts the snapshot using a customer-supplied encryption key.CustomerEncryptionKeyOrBuildergetSnapshotEncryptionKeyOrBuilder()Encrypts the snapshot using a customer-supplied encryption key.StringgetSnapshotType()Indicates the type of the snapshot.com.google.protobuf.ByteStringgetSnapshotTypeBytes()Indicates the type of the snapshot.StringgetSourceDisk()The source disk used to create this snapshot.com.google.protobuf.ByteStringgetSourceDiskBytes()The source disk used to create this snapshot.CustomerEncryptionKeygetSourceDiskEncryptionKey()The customer-supplied encryption key of the source disk.CustomerEncryptionKeyOrBuildergetSourceDiskEncryptionKeyOrBuilder()The customer-supplied encryption key of the source disk.StringgetSourceDiskId()[Output Only] The ID value of the disk used to create this snapshot.com.google.protobuf.ByteStringgetSourceDiskIdBytes()[Output Only] The ID value of the disk used to create this snapshot.StringgetSourceSnapshotSchedulePolicy()[Output Only] URL of the resource policy which created this scheduled snapshot.com.google.protobuf.ByteStringgetSourceSnapshotSchedulePolicyBytes()[Output Only] URL of the resource policy which created this scheduled snapshot.StringgetSourceSnapshotSchedulePolicyId()[Output Only] ID of the resource policy which created this scheduled snapshot.com.google.protobuf.ByteStringgetSourceSnapshotSchedulePolicyIdBytes()[Output Only] ID of the resource policy which created this scheduled snapshot.StringgetStatus()[Output Only] The status of the snapshot.com.google.protobuf.ByteStringgetStatusBytes()[Output Only] The status of the snapshot.longgetStorageBytes()[Output Only] A size of the storage used by the snapshot.StringgetStorageBytesStatus()[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation.com.google.protobuf.ByteStringgetStorageBytesStatusBytes()[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation.StringgetStorageLocations(int index)Cloud Storage bucket storage location of the snapshot (regional or multi-regional).com.google.protobuf.ByteStringgetStorageLocationsBytes(int index)Cloud Storage bucket storage location of the snapshot (regional or multi-regional).intgetStorageLocationsCount()Cloud Storage bucket storage location of the snapshot (regional or multi-regional).List<String>getStorageLocationsList()Cloud Storage bucket storage location of the snapshot (regional or multi-regional).booleanhasArchitecture()[Output Only] The architecture of the snapshot.booleanhasAutoCreated()[Output Only] Set to true if snapshots are automatically created by applying resource policy on the target disk.booleanhasChainName()Creates the new snapshot in the snapshot chain labeled with the specified name.booleanhasCreationSizeBytes()[Output Only] Size in bytes of the snapshot at creation time.booleanhasCreationTimestamp()[Output Only] Creation timestamp in RFC3339 text format.booleanhasDescription()An optional description of this resource.booleanhasDiskSizeGb()[Output Only] Size of the source disk, specified in GB.booleanhasDownloadBytes()[Output Only] Number of bytes downloaded to restore a snapshot to a disk.booleanhasId()[Output Only] The unique identifier for the resource.booleanhasKind()[Output Only] Type of the resource.booleanhasLabelFingerprint()A fingerprint for the labels being applied to this snapshot, which is essentially a hash of the labels set used for optimistic locking.booleanhasLocationHint()An opaque location hint used to place the snapshot close to other resources.booleanhasName()Name of the resource; provided by the client when the resource is created.booleanhasSatisfiesPzs()[Output Only] Reserved for future use.booleanhasSelfLink()[Output Only] Server-defined URL for the resource.booleanhasSnapshotEncryptionKey()Encrypts the snapshot using a customer-supplied encryption key.booleanhasSnapshotType()Indicates the type of the snapshot.booleanhasSourceDisk()The source disk used to create this snapshot.booleanhasSourceDiskEncryptionKey()The customer-supplied encryption key of the source disk.booleanhasSourceDiskId()[Output Only] The ID value of the disk used to create this snapshot.booleanhasSourceSnapshotSchedulePolicy()[Output Only] URL of the resource policy which created this scheduled snapshot.booleanhasSourceSnapshotSchedulePolicyId()[Output Only] ID of the resource policy which created this scheduled snapshot.booleanhasStatus()[Output Only] The status of the snapshot.booleanhasStorageBytes()[Output Only] A size of the storage used by the snapshot.booleanhasStorageBytesStatus()[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasArchitecture
boolean hasArchitecture()
[Output Only] The architecture of the snapshot. Valid values are ARM64 or X86_64. Check the Architecture enum for the list of possible values.
optional string architecture = 302803283;- Returns:
- Whether the architecture field is set.
-
getArchitecture
String getArchitecture()
[Output Only] The architecture of the snapshot. Valid values are ARM64 or X86_64. Check the Architecture enum for the list of possible values.
optional string architecture = 302803283;- Returns:
- The architecture.
-
getArchitectureBytes
com.google.protobuf.ByteString getArchitectureBytes()
[Output Only] The architecture of the snapshot. Valid values are ARM64 or X86_64. Check the Architecture enum for the list of possible values.
optional string architecture = 302803283;- Returns:
- The bytes for architecture.
-
hasAutoCreated
boolean hasAutoCreated()
[Output Only] Set to true if snapshots are automatically created by applying resource policy on the target disk.
optional bool auto_created = 463922264;- Returns:
- Whether the autoCreated field is set.
-
getAutoCreated
boolean getAutoCreated()
[Output Only] Set to true if snapshots are automatically created by applying resource policy on the target disk.
optional bool auto_created = 463922264;- Returns:
- The autoCreated.
-
hasChainName
boolean hasChainName()
Creates the new snapshot in the snapshot chain labeled with the specified name. The chain name must be 1-63 characters long and comply with RFC1035. This is an uncommon option only for advanced service owners who needs to create separate snapshot chains, for example, for chargeback tracking. When you describe your snapshot resource, this field is visible only if it has a non-empty value.
optional string chain_name = 68644169;- Returns:
- Whether the chainName field is set.
-
getChainName
String getChainName()
Creates the new snapshot in the snapshot chain labeled with the specified name. The chain name must be 1-63 characters long and comply with RFC1035. This is an uncommon option only for advanced service owners who needs to create separate snapshot chains, for example, for chargeback tracking. When you describe your snapshot resource, this field is visible only if it has a non-empty value.
optional string chain_name = 68644169;- Returns:
- The chainName.
-
getChainNameBytes
com.google.protobuf.ByteString getChainNameBytes()
Creates the new snapshot in the snapshot chain labeled with the specified name. The chain name must be 1-63 characters long and comply with RFC1035. This is an uncommon option only for advanced service owners who needs to create separate snapshot chains, for example, for chargeback tracking. When you describe your snapshot resource, this field is visible only if it has a non-empty value.
optional string chain_name = 68644169;- Returns:
- The bytes for chainName.
-
hasCreationSizeBytes
boolean hasCreationSizeBytes()
[Output Only] Size in bytes of the snapshot at creation time.
optional int64 creation_size_bytes = 125400077;- Returns:
- Whether the creationSizeBytes field is set.
-
getCreationSizeBytes
long getCreationSizeBytes()
[Output Only] Size in bytes of the snapshot at creation time.
optional int64 creation_size_bytes = 125400077;- Returns:
- The creationSizeBytes.
-
hasCreationTimestamp
boolean hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;- Returns:
- Whether the creationTimestamp field is set.
-
getCreationTimestamp
String getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;- Returns:
- The creationTimestamp.
-
getCreationTimestampBytes
com.google.protobuf.ByteString getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;- Returns:
- The bytes for creationTimestamp.
-
hasDescription
boolean hasDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Returns:
- Whether the description field is set.
-
getDescription
String getDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Returns:
- The description.
-
getDescriptionBytes
com.google.protobuf.ByteString getDescriptionBytes()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Returns:
- The bytes for description.
-
hasDiskSizeGb
boolean hasDiskSizeGb()
[Output Only] Size of the source disk, specified in GB.
optional int64 disk_size_gb = 316263735;- Returns:
- Whether the diskSizeGb field is set.
-
getDiskSizeGb
long getDiskSizeGb()
[Output Only] Size of the source disk, specified in GB.
optional int64 disk_size_gb = 316263735;- Returns:
- The diskSizeGb.
-
hasDownloadBytes
boolean hasDownloadBytes()
[Output Only] Number of bytes downloaded to restore a snapshot to a disk.
optional int64 download_bytes = 435054068;- Returns:
- Whether the downloadBytes field is set.
-
getDownloadBytes
long getDownloadBytes()
[Output Only] Number of bytes downloaded to restore a snapshot to a disk.
optional int64 download_bytes = 435054068;- Returns:
- The downloadBytes.
-
hasId
boolean hasId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;- Returns:
- Whether the id field is set.
-
getId
long getId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;- Returns:
- The id.
-
hasKind
boolean hasKind()
[Output Only] Type of the resource. Always compute#snapshot for Snapshot resources.
optional string kind = 3292052;- Returns:
- Whether the kind field is set.
-
getKind
String getKind()
[Output Only] Type of the resource. Always compute#snapshot for Snapshot resources.
optional string kind = 3292052;- Returns:
- The kind.
-
getKindBytes
com.google.protobuf.ByteString getKindBytes()
[Output Only] Type of the resource. Always compute#snapshot for Snapshot resources.
optional string kind = 3292052;- Returns:
- The bytes for kind.
-
hasLabelFingerprint
boolean hasLabelFingerprint()
A fingerprint for the labels being applied to this snapshot, which is essentially a hash of the labels set 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 a snapshot.
optional string label_fingerprint = 178124825;- Returns:
- Whether the labelFingerprint field is set.
-
getLabelFingerprint
String getLabelFingerprint()
A fingerprint for the labels being applied to this snapshot, which is essentially a hash of the labels set 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 a snapshot.
optional string label_fingerprint = 178124825;- Returns:
- The labelFingerprint.
-
getLabelFingerprintBytes
com.google.protobuf.ByteString getLabelFingerprintBytes()
A fingerprint for the labels being applied to this snapshot, which is essentially a hash of the labels set 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 a snapshot.
optional string label_fingerprint = 178124825;- Returns:
- The bytes for labelFingerprint.
-
getLabelsCount
int getLabelsCount()
Labels to apply to this snapshot. These can be later modified by the setLabels method. Label values may be empty.
map<string, string> labels = 500195327;
-
containsLabels
boolean containsLabels(String key)
Labels to apply to this snapshot. These can be later modified by the setLabels method. Label values may be empty.
map<string, string> labels = 500195327;
-
getLabels
@Deprecated Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()instead.
-
getLabelsMap
Map<String,String> getLabelsMap()
Labels to apply to this snapshot. These can be later modified by the setLabels method. Label values may be empty.
map<string, string> labels = 500195327;
-
getLabelsOrDefault
String getLabelsOrDefault(String key, String defaultValue)
Labels to apply to this snapshot. These can be later modified by the setLabels method. Label values may be empty.
map<string, string> labels = 500195327;
-
getLabelsOrThrow
String getLabelsOrThrow(String key)
Labels to apply to this snapshot. These can be later modified by the setLabels method. Label values may be empty.
map<string, string> labels = 500195327;
-
getLicenseCodesList
List<Long> getLicenseCodesList()
[Output Only] Integer license codes indicating which licenses are attached to this snapshot.
repeated int64 license_codes = 45482664;- Returns:
- A list containing the licenseCodes.
-
getLicenseCodesCount
int getLicenseCodesCount()
[Output Only] Integer license codes indicating which licenses are attached to this snapshot.
repeated int64 license_codes = 45482664;- Returns:
- The count of licenseCodes.
-
getLicenseCodes
long getLicenseCodes(int index)
[Output Only] Integer license codes indicating which licenses are attached to this snapshot.
repeated int64 license_codes = 45482664;- Parameters:
index- The index of the element to return.- Returns:
- The licenseCodes at the given index.
-
getLicensesList
List<String> getLicensesList()
[Output Only] A list of public visible licenses that apply to this snapshot. This can be because the original image had licenses attached (such as a Windows image).
repeated string licenses = 337642578;- Returns:
- A list containing the licenses.
-
getLicensesCount
int getLicensesCount()
[Output Only] A list of public visible licenses that apply to this snapshot. This can be because the original image had licenses attached (such as a Windows image).
repeated string licenses = 337642578;- Returns:
- The count of licenses.
-
getLicenses
String getLicenses(int index)
[Output Only] A list of public visible licenses that apply to this snapshot. This can be because the original image had licenses attached (such as a Windows image).
repeated string licenses = 337642578;- Parameters:
index- The index of the element to return.- Returns:
- The licenses at the given index.
-
getLicensesBytes
com.google.protobuf.ByteString getLicensesBytes(int index)
[Output Only] A list of public visible licenses that apply to this snapshot. This can be because the original image had licenses attached (such as a Windows image).
repeated string licenses = 337642578;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the licenses at the given index.
-
hasLocationHint
boolean hasLocationHint()
An opaque location hint used to place the snapshot close to other resources. This field is for use by internal tools that use the public API.
optional string location_hint = 350519505;- Returns:
- Whether the locationHint field is set.
-
getLocationHint
String getLocationHint()
An opaque location hint used to place the snapshot close to other resources. This field is for use by internal tools that use the public API.
optional string location_hint = 350519505;- Returns:
- The locationHint.
-
getLocationHintBytes
com.google.protobuf.ByteString getLocationHintBytes()
An opaque location hint used to place the snapshot close to other resources. This field is for use by internal tools that use the public API.
optional string location_hint = 350519505;- Returns:
- The bytes for locationHint.
-
hasName
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;- Returns:
- Whether the name field is set.
-
getName
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;- Returns:
- The name.
-
getNameBytes
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;- Returns:
- The bytes for name.
-
hasSatisfiesPzs
boolean hasSatisfiesPzs()
[Output Only] Reserved for future use.
optional bool satisfies_pzs = 480964267;- Returns:
- Whether the satisfiesPzs field is set.
-
getSatisfiesPzs
boolean getSatisfiesPzs()
[Output Only] Reserved for future use.
optional bool satisfies_pzs = 480964267;- Returns:
- The satisfiesPzs.
-
hasSelfLink
boolean hasSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Returns:
- Whether the selfLink field is set.
-
getSelfLink
String getSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Returns:
- The selfLink.
-
getSelfLinkBytes
com.google.protobuf.ByteString getSelfLinkBytes()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Returns:
- The bytes for selfLink.
-
hasSnapshotEncryptionKey
boolean hasSnapshotEncryptionKey()
Encrypts the snapshot using a customer-supplied encryption key. After you encrypt a snapshot using a customer-supplied key, you must provide the same key if you use the snapshot later. For example, you must provide the encryption key when you create a disk from the encrypted snapshot in a future request. Customer-supplied encryption keys do not protect access to metadata of the snapshot. If you do not provide an encryption key when creating the snapshot, then the snapshot will be encrypted using an automatically generated key and you do not need to provide a key to use the snapshot later.
optional .google.cloud.compute.v1.CustomerEncryptionKey snapshot_encryption_key = 43334526;- Returns:
- Whether the snapshotEncryptionKey field is set.
-
getSnapshotEncryptionKey
CustomerEncryptionKey getSnapshotEncryptionKey()
Encrypts the snapshot using a customer-supplied encryption key. After you encrypt a snapshot using a customer-supplied key, you must provide the same key if you use the snapshot later. For example, you must provide the encryption key when you create a disk from the encrypted snapshot in a future request. Customer-supplied encryption keys do not protect access to metadata of the snapshot. If you do not provide an encryption key when creating the snapshot, then the snapshot will be encrypted using an automatically generated key and you do not need to provide a key to use the snapshot later.
optional .google.cloud.compute.v1.CustomerEncryptionKey snapshot_encryption_key = 43334526;- Returns:
- The snapshotEncryptionKey.
-
getSnapshotEncryptionKeyOrBuilder
CustomerEncryptionKeyOrBuilder getSnapshotEncryptionKeyOrBuilder()
Encrypts the snapshot using a customer-supplied encryption key. After you encrypt a snapshot using a customer-supplied key, you must provide the same key if you use the snapshot later. For example, you must provide the encryption key when you create a disk from the encrypted snapshot in a future request. Customer-supplied encryption keys do not protect access to metadata of the snapshot. If you do not provide an encryption key when creating the snapshot, then the snapshot will be encrypted using an automatically generated key and you do not need to provide a key to use the snapshot later.
optional .google.cloud.compute.v1.CustomerEncryptionKey snapshot_encryption_key = 43334526;
-
hasSnapshotType
boolean hasSnapshotType()
Indicates the type of the snapshot. Check the SnapshotType enum for the list of possible values.
optional string snapshot_type = 124349653;- Returns:
- Whether the snapshotType field is set.
-
getSnapshotType
String getSnapshotType()
Indicates the type of the snapshot. Check the SnapshotType enum for the list of possible values.
optional string snapshot_type = 124349653;- Returns:
- The snapshotType.
-
getSnapshotTypeBytes
com.google.protobuf.ByteString getSnapshotTypeBytes()
Indicates the type of the snapshot. Check the SnapshotType enum for the list of possible values.
optional string snapshot_type = 124349653;- Returns:
- The bytes for snapshotType.
-
hasSourceDisk
boolean hasSourceDisk()
The source disk used to create this snapshot.
optional string source_disk = 451753793;- Returns:
- Whether the sourceDisk field is set.
-
getSourceDisk
String getSourceDisk()
The source disk used to create this snapshot.
optional string source_disk = 451753793;- Returns:
- The sourceDisk.
-
getSourceDiskBytes
com.google.protobuf.ByteString getSourceDiskBytes()
The source disk used to create this snapshot.
optional string source_disk = 451753793;- Returns:
- The bytes for sourceDisk.
-
hasSourceDiskEncryptionKey
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;- Returns:
- Whether the sourceDiskEncryptionKey field is set.
-
getSourceDiskEncryptionKey
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;- Returns:
- The sourceDiskEncryptionKey.
-
getSourceDiskEncryptionKeyOrBuilder
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;
-
hasSourceDiskId
boolean hasSourceDiskId()
[Output Only] The ID value of the disk used to create this snapshot. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a given disk name.
optional string source_disk_id = 454190809;- Returns:
- Whether the sourceDiskId field is set.
-
getSourceDiskId
String getSourceDiskId()
[Output Only] The ID value of the disk used to create this snapshot. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a given disk name.
optional string source_disk_id = 454190809;- Returns:
- The sourceDiskId.
-
getSourceDiskIdBytes
com.google.protobuf.ByteString getSourceDiskIdBytes()
[Output Only] The ID value of the disk used to create this snapshot. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a given disk name.
optional string source_disk_id = 454190809;- Returns:
- The bytes for sourceDiskId.
-
hasSourceSnapshotSchedulePolicy
boolean hasSourceSnapshotSchedulePolicy()
[Output Only] URL of the resource policy which created this scheduled snapshot.
optional string source_snapshot_schedule_policy = 235756291;- Returns:
- Whether the sourceSnapshotSchedulePolicy field is set.
-
getSourceSnapshotSchedulePolicy
String getSourceSnapshotSchedulePolicy()
[Output Only] URL of the resource policy which created this scheduled snapshot.
optional string source_snapshot_schedule_policy = 235756291;- Returns:
- The sourceSnapshotSchedulePolicy.
-
getSourceSnapshotSchedulePolicyBytes
com.google.protobuf.ByteString getSourceSnapshotSchedulePolicyBytes()
[Output Only] URL of the resource policy which created this scheduled snapshot.
optional string source_snapshot_schedule_policy = 235756291;- Returns:
- The bytes for sourceSnapshotSchedulePolicy.
-
hasSourceSnapshotSchedulePolicyId
boolean hasSourceSnapshotSchedulePolicyId()
[Output Only] ID of the resource policy which created this scheduled snapshot.
optional string source_snapshot_schedule_policy_id = 70489047;- Returns:
- Whether the sourceSnapshotSchedulePolicyId field is set.
-
getSourceSnapshotSchedulePolicyId
String getSourceSnapshotSchedulePolicyId()
[Output Only] ID of the resource policy which created this scheduled snapshot.
optional string source_snapshot_schedule_policy_id = 70489047;- Returns:
- The sourceSnapshotSchedulePolicyId.
-
getSourceSnapshotSchedulePolicyIdBytes
com.google.protobuf.ByteString getSourceSnapshotSchedulePolicyIdBytes()
[Output Only] ID of the resource policy which created this scheduled snapshot.
optional string source_snapshot_schedule_policy_id = 70489047;- Returns:
- The bytes for sourceSnapshotSchedulePolicyId.
-
hasStatus
boolean hasStatus()
[Output Only] The status of the snapshot. This can be CREATING, DELETING, FAILED, READY, or UPLOADING. Check the Status enum for the list of possible values.
optional string status = 181260274;- Returns:
- Whether the status field is set.
-
getStatus
String getStatus()
[Output Only] The status of the snapshot. This can be CREATING, DELETING, FAILED, READY, or UPLOADING. Check the Status enum for the list of possible values.
optional string status = 181260274;- Returns:
- The status.
-
getStatusBytes
com.google.protobuf.ByteString getStatusBytes()
[Output Only] The status of the snapshot. This can be CREATING, DELETING, FAILED, READY, or UPLOADING. Check the Status enum for the list of possible values.
optional string status = 181260274;- Returns:
- The bytes for status.
-
hasStorageBytes
boolean hasStorageBytes()
[Output Only] A size of the storage used by the snapshot. As snapshots share storage, this number is expected to change with snapshot creation/deletion.
optional int64 storage_bytes = 424631719;- Returns:
- Whether the storageBytes field is set.
-
getStorageBytes
long getStorageBytes()
[Output Only] A size of the storage used by the snapshot. As snapshots share storage, this number is expected to change with snapshot creation/deletion.
optional int64 storage_bytes = 424631719;- Returns:
- The storageBytes.
-
hasStorageBytesStatus
boolean hasStorageBytesStatus()
[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date. Check the StorageBytesStatus enum for the list of possible values.
optional string storage_bytes_status = 490739082;- Returns:
- Whether the storageBytesStatus field is set.
-
getStorageBytesStatus
String getStorageBytesStatus()
[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date. Check the StorageBytesStatus enum for the list of possible values.
optional string storage_bytes_status = 490739082;- Returns:
- The storageBytesStatus.
-
getStorageBytesStatusBytes
com.google.protobuf.ByteString getStorageBytesStatusBytes()
[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date. Check the StorageBytesStatus enum for the list of possible values.
optional string storage_bytes_status = 490739082;- Returns:
- The bytes for storageBytesStatus.
-
getStorageLocationsList
List<String> getStorageLocationsList()
Cloud Storage bucket storage location of the snapshot (regional or multi-regional).
repeated string storage_locations = 328005274;- Returns:
- A list containing the storageLocations.
-
getStorageLocationsCount
int getStorageLocationsCount()
Cloud Storage bucket storage location of the snapshot (regional or multi-regional).
repeated string storage_locations = 328005274;- Returns:
- The count of storageLocations.
-
getStorageLocations
String getStorageLocations(int index)
Cloud Storage bucket storage location of the snapshot (regional or multi-regional).
repeated string storage_locations = 328005274;- Parameters:
index- The index of the element to return.- Returns:
- The storageLocations at the given index.
-
getStorageLocationsBytes
com.google.protobuf.ByteString getStorageLocationsBytes(int index)
Cloud Storage bucket storage location of the snapshot (regional or multi-regional).
repeated string storage_locations = 328005274;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the storageLocations at the given index.
-
-