public final class Snapshot extends com.google.protobuf.GeneratedMessageV3 implements SnapshotOrBuilder
Represents a Persistent Disk Snapshot resource. You can use snapshots to back up data on a regular interval. For more information, read Creating persistent disk snapshots.Protobuf type
google.cloud.compute.v1.Snapshot| Modifier and Type | Class and Description |
|---|---|
static class |
Snapshot.Architecture
[Output Only] The architecture of the snapshot.
|
static class |
Snapshot.Builder
Represents a Persistent Disk Snapshot resource.
|
static class |
Snapshot.SnapshotType
Indicates the type of the snapshot.
|
static class |
Snapshot.Status
[Output Only] The status of the snapshot.
|
static class |
Snapshot.StorageBytesStatus
[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.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Method and Description |
|---|---|
boolean |
containsLabels(String key)
Labels to apply to this snapshot.
|
boolean |
equals(Object obj) |
String |
getArchitecture()
[Output Only] The architecture of the snapshot.
|
com.google.protobuf.ByteString |
getArchitectureBytes()
[Output Only] The architecture of the snapshot.
|
boolean |
getAutoCreated()
[Output Only] Set to true if snapshots are automatically created by applying resource policy on the target disk.
|
String |
getChainName()
Creates the new snapshot in the snapshot chain labeled with the specified name.
|
com.google.protobuf.ByteString |
getChainNameBytes()
Creates the new snapshot in the snapshot chain labeled with the specified name.
|
long |
getCreationSizeBytes()
[Output Only] Size in bytes of the snapshot at creation time.
|
String |
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
com.google.protobuf.ByteString |
getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.
|
static Snapshot |
getDefaultInstance() |
Snapshot |
getDefaultInstanceForType() |
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()
[Output Only] Size of the source disk, specified in GB.
|
long |
getDownloadBytes()
[Output Only] Number of bytes downloaded to restore a snapshot to a disk.
|
long |
getId()
[Output Only] The unique identifier for the resource.
|
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 snapshot, which is essentially a hash of the labels set used for optimistic locking.
|
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.
|
Map<String,String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
Labels to apply to this snapshot.
|
Map<String,String> |
getLabelsMap()
Labels to apply to this snapshot.
|
String |
getLabelsOrDefault(String key,
String defaultValue)
Labels to apply to this snapshot.
|
String |
getLabelsOrThrow(String key)
Labels to apply to this snapshot.
|
long |
getLicenseCodes(int index)
[Output Only] Integer license codes indicating which licenses are attached to this snapshot.
|
int |
getLicenseCodesCount()
[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.
|
String |
getLicenses(int index)
[Output Only] A list of public visible licenses that apply to this snapshot.
|
com.google.protobuf.ByteString |
getLicensesBytes(int index)
[Output Only] A list of public visible licenses that apply to this snapshot.
|
int |
getLicensesCount()
[Output Only] A list of public visible licenses that apply to this snapshot.
|
com.google.protobuf.ProtocolStringList |
getLicensesList()
[Output Only] A list of public visible licenses that apply to this snapshot.
|
String |
getLocationHint()
An opaque location hint used to place the snapshot close to other resources.
|
com.google.protobuf.ByteString |
getLocationHintBytes()
An opaque location hint used to place the snapshot close to other resources.
|
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<Snapshot> |
getParserForType() |
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() |
CustomerEncryptionKey |
getSnapshotEncryptionKey()
Encrypts the snapshot using a customer-supplied encryption key.
|
CustomerEncryptionKeyOrBuilder |
getSnapshotEncryptionKeyOrBuilder()
Encrypts the snapshot using a customer-supplied encryption key.
|
String |
getSnapshotType()
Indicates the type of the snapshot.
|
com.google.protobuf.ByteString |
getSnapshotTypeBytes()
Indicates the type of the snapshot.
|
String |
getSourceDisk()
The source disk used to create this snapshot.
|
com.google.protobuf.ByteString |
getSourceDiskBytes()
The source disk used to create this snapshot.
|
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 snapshot.
|
com.google.protobuf.ByteString |
getSourceDiskIdBytes()
[Output Only] The ID value of the disk used to create this snapshot.
|
String |
getSourceSnapshotSchedulePolicy()
[Output Only] URL of the resource policy which created this scheduled snapshot.
|
com.google.protobuf.ByteString |
getSourceSnapshotSchedulePolicyBytes()
[Output Only] URL of the resource policy which created this scheduled snapshot.
|
String |
getSourceSnapshotSchedulePolicyId()
[Output Only] ID of the resource policy which created this scheduled snapshot.
|
com.google.protobuf.ByteString |
getSourceSnapshotSchedulePolicyIdBytes()
[Output Only] ID of the resource policy which created this scheduled snapshot.
|
String |
getStatus()
[Output Only] The status of the snapshot.
|
com.google.protobuf.ByteString |
getStatusBytes()
[Output Only] The status of the snapshot.
|
long |
getStorageBytes()
[Output Only] A size of the storage used by the snapshot.
|
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.
|
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.
|
String |
getStorageLocations(int index)
Cloud Storage bucket storage location of the snapshot (regional or multi-regional).
|
com.google.protobuf.ByteString |
getStorageLocationsBytes(int index)
Cloud Storage bucket storage location of the snapshot (regional or multi-regional).
|
int |
getStorageLocationsCount()
Cloud Storage bucket storage location of the snapshot (regional or multi-regional).
|
com.google.protobuf.ProtocolStringList |
getStorageLocationsList()
Cloud Storage bucket storage location of the snapshot (regional or multi-regional).
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasArchitecture()
[Output Only] The architecture of the snapshot.
|
boolean |
hasAutoCreated()
[Output Only] Set to true if snapshots are automatically created by applying resource policy on the target disk.
|
boolean |
hasChainName()
Creates the new snapshot in the snapshot chain labeled with the specified name.
|
boolean |
hasCreationSizeBytes()
[Output Only] Size in bytes of the snapshot at creation time.
|
boolean |
hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
boolean |
hasDescription()
An optional description of this resource.
|
boolean |
hasDiskSizeGb()
[Output Only] Size of the source disk, specified in GB.
|
boolean |
hasDownloadBytes()
[Output Only] Number of bytes downloaded to restore a snapshot to a disk.
|
int |
hashCode() |
boolean |
hasId()
[Output Only] The unique identifier for the resource.
|
boolean |
hasKind()
[Output Only] Type of the resource.
|
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.
|
boolean |
hasLocationHint()
An opaque location hint used to place the snapshot close to other resources.
|
boolean |
hasName()
Name of the resource; provided by the client when the resource is created.
|
boolean |
hasSatisfiesPzs()
[Output Only] Reserved for future use.
|
boolean |
hasSelfLink()
[Output Only] Server-defined URL for the resource.
|
boolean |
hasSnapshotEncryptionKey()
Encrypts the snapshot using a customer-supplied encryption key.
|
boolean |
hasSnapshotType()
Indicates the type of the snapshot.
|
boolean |
hasSourceDisk()
The source disk used to create this snapshot.
|
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 snapshot.
|
boolean |
hasSourceSnapshotSchedulePolicy()
[Output Only] URL of the resource policy which created this scheduled snapshot.
|
boolean |
hasSourceSnapshotSchedulePolicyId()
[Output Only] ID of the resource policy which created this scheduled snapshot.
|
boolean |
hasStatus()
[Output Only] The status of the snapshot.
|
boolean |
hasStorageBytes()
[Output Only] A size of the storage used by the snapshot.
|
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.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static Snapshot.Builder |
newBuilder() |
static Snapshot.Builder |
newBuilder(Snapshot prototype) |
Snapshot.Builder |
newBuilderForType() |
protected Snapshot.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Snapshot |
parseDelimitedFrom(InputStream input) |
static Snapshot |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Snapshot |
parseFrom(byte[] data) |
static Snapshot |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Snapshot |
parseFrom(ByteBuffer data) |
static Snapshot |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Snapshot |
parseFrom(com.google.protobuf.ByteString data) |
static Snapshot |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Snapshot |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Snapshot |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Snapshot |
parseFrom(InputStream input) |
static Snapshot |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Snapshot> |
parser() |
Snapshot.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int ARCHITECTURE_FIELD_NUMBER
public static final int AUTO_CREATED_FIELD_NUMBER
public static final int CHAIN_NAME_FIELD_NUMBER
public static final int CREATION_SIZE_BYTES_FIELD_NUMBER
public static final int CREATION_TIMESTAMP_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
public static final int DISK_SIZE_GB_FIELD_NUMBER
public static final int DOWNLOAD_BYTES_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
public static final int KIND_FIELD_NUMBER
public static final int LABEL_FINGERPRINT_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
public static final int LICENSE_CODES_FIELD_NUMBER
public static final int LICENSES_FIELD_NUMBER
public static final int LOCATION_HINT_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
public static final int SATISFIES_PZS_FIELD_NUMBER
public static final int SELF_LINK_FIELD_NUMBER
public static final int SNAPSHOT_ENCRYPTION_KEY_FIELD_NUMBER
public static final int SNAPSHOT_TYPE_FIELD_NUMBER
public static final int SOURCE_DISK_FIELD_NUMBER
public static final int SOURCE_DISK_ENCRYPTION_KEY_FIELD_NUMBER
public static final int SOURCE_DISK_ID_FIELD_NUMBER
public static final int SOURCE_SNAPSHOT_SCHEDULE_POLICY_FIELD_NUMBER
public static final int SOURCE_SNAPSHOT_SCHEDULE_POLICY_ID_FIELD_NUMBER
public static final int STATUS_FIELD_NUMBER
public static final int STORAGE_BYTES_FIELD_NUMBER
public static final int STORAGE_BYTES_STATUS_FIELD_NUMBER
public static final int STORAGE_LOCATIONS_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasArchitecture()
[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;hasArchitecture in interface SnapshotOrBuilderpublic 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;getArchitecture in interface SnapshotOrBuilderpublic 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;getArchitectureBytes in interface SnapshotOrBuilderpublic 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;hasAutoCreated in interface SnapshotOrBuilderpublic 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;getAutoCreated in interface SnapshotOrBuilderpublic 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;hasChainName in interface SnapshotOrBuilderpublic 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;getChainName in interface SnapshotOrBuilderpublic 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;getChainNameBytes in interface SnapshotOrBuilderpublic boolean hasCreationSizeBytes()
[Output Only] Size in bytes of the snapshot at creation time.
optional int64 creation_size_bytes = 125400077;hasCreationSizeBytes in interface SnapshotOrBuilderpublic long getCreationSizeBytes()
[Output Only] Size in bytes of the snapshot at creation time.
optional int64 creation_size_bytes = 125400077;getCreationSizeBytes in interface SnapshotOrBuilderpublic boolean hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;hasCreationTimestamp in interface SnapshotOrBuilderpublic String getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;getCreationTimestamp in interface SnapshotOrBuilderpublic com.google.protobuf.ByteString getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;getCreationTimestampBytes in interface SnapshotOrBuilderpublic boolean hasDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;hasDescription in interface SnapshotOrBuilderpublic String getDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;getDescription in interface SnapshotOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;getDescriptionBytes in interface SnapshotOrBuilderpublic boolean hasDiskSizeGb()
[Output Only] Size of the source disk, specified in GB.
optional int64 disk_size_gb = 316263735;hasDiskSizeGb in interface SnapshotOrBuilderpublic long getDiskSizeGb()
[Output Only] Size of the source disk, specified in GB.
optional int64 disk_size_gb = 316263735;getDiskSizeGb in interface SnapshotOrBuilderpublic boolean hasDownloadBytes()
[Output Only] Number of bytes downloaded to restore a snapshot to a disk.
optional int64 download_bytes = 435054068;hasDownloadBytes in interface SnapshotOrBuilderpublic long getDownloadBytes()
[Output Only] Number of bytes downloaded to restore a snapshot to a disk.
optional int64 download_bytes = 435054068;getDownloadBytes in interface SnapshotOrBuilderpublic boolean hasId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;hasId in interface SnapshotOrBuilderpublic long getId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;getId in interface SnapshotOrBuilderpublic boolean hasKind()
[Output Only] Type of the resource. Always compute#snapshot for Snapshot resources.
optional string kind = 3292052;hasKind in interface SnapshotOrBuilderpublic String getKind()
[Output Only] Type of the resource. Always compute#snapshot for Snapshot resources.
optional string kind = 3292052;getKind in interface SnapshotOrBuilderpublic com.google.protobuf.ByteString getKindBytes()
[Output Only] Type of the resource. Always compute#snapshot for Snapshot resources.
optional string kind = 3292052;getKindBytes in interface SnapshotOrBuilderpublic 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;hasLabelFingerprint in interface SnapshotOrBuilderpublic 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;getLabelFingerprint in interface SnapshotOrBuilderpublic 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;getLabelFingerprintBytes in interface SnapshotOrBuilderpublic int getLabelsCount()
SnapshotOrBuilderLabels to apply to this snapshot. These can be later modified by the setLabels method. Label values may be empty.
map<string, string> labels = 500195327;getLabelsCount in interface SnapshotOrBuilderpublic 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;containsLabels in interface SnapshotOrBuilder@Deprecated public Map<String,String> getLabels()
getLabelsMap() instead.getLabels in interface SnapshotOrBuilderpublic 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;getLabelsMap in interface SnapshotOrBuilderpublic 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;getLabelsOrDefault in interface SnapshotOrBuilderpublic 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;getLabelsOrThrow in interface SnapshotOrBuilderpublic List<Long> getLicenseCodesList()
[Output Only] Integer license codes indicating which licenses are attached to this snapshot.
repeated int64 license_codes = 45482664;getLicenseCodesList in interface SnapshotOrBuilderpublic int getLicenseCodesCount()
[Output Only] Integer license codes indicating which licenses are attached to this snapshot.
repeated int64 license_codes = 45482664;getLicenseCodesCount in interface SnapshotOrBuilderpublic long getLicenseCodes(int index)
[Output Only] Integer license codes indicating which licenses are attached to this snapshot.
repeated int64 license_codes = 45482664;getLicenseCodes in interface SnapshotOrBuilderindex - The index of the element to return.public com.google.protobuf.ProtocolStringList 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;getLicensesList in interface SnapshotOrBuilderpublic 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;getLicensesCount in interface SnapshotOrBuilderpublic 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;getLicenses in interface SnapshotOrBuilderindex - The index of the element to return.public 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;getLicensesBytes in interface SnapshotOrBuilderindex - The index of the value to return.public 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;hasLocationHint in interface SnapshotOrBuilderpublic 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;getLocationHint in interface SnapshotOrBuilderpublic 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;getLocationHintBytes in interface SnapshotOrBuilderpublic boolean hasName()
Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;hasName in interface SnapshotOrBuilderpublic String getName()
Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;getName in interface SnapshotOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;getNameBytes in interface SnapshotOrBuilderpublic boolean hasSatisfiesPzs()
[Output Only] Reserved for future use.
optional bool satisfies_pzs = 480964267;hasSatisfiesPzs in interface SnapshotOrBuilderpublic boolean getSatisfiesPzs()
[Output Only] Reserved for future use.
optional bool satisfies_pzs = 480964267;getSatisfiesPzs in interface SnapshotOrBuilderpublic boolean hasSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;hasSelfLink in interface SnapshotOrBuilderpublic String getSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;getSelfLink in interface SnapshotOrBuilderpublic com.google.protobuf.ByteString getSelfLinkBytes()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;getSelfLinkBytes in interface SnapshotOrBuilderpublic 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;
hasSnapshotEncryptionKey in interface SnapshotOrBuilderpublic 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;
getSnapshotEncryptionKey in interface SnapshotOrBuilderpublic 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;
getSnapshotEncryptionKeyOrBuilder in interface SnapshotOrBuilderpublic boolean hasSnapshotType()
Indicates the type of the snapshot. Check the SnapshotType enum for the list of possible values.
optional string snapshot_type = 124349653;hasSnapshotType in interface SnapshotOrBuilderpublic String getSnapshotType()
Indicates the type of the snapshot. Check the SnapshotType enum for the list of possible values.
optional string snapshot_type = 124349653;getSnapshotType in interface SnapshotOrBuilderpublic 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;getSnapshotTypeBytes in interface SnapshotOrBuilderpublic boolean hasSourceDisk()
The source disk used to create this snapshot.
optional string source_disk = 451753793;hasSourceDisk in interface SnapshotOrBuilderpublic String getSourceDisk()
The source disk used to create this snapshot.
optional string source_disk = 451753793;getSourceDisk in interface SnapshotOrBuilderpublic com.google.protobuf.ByteString getSourceDiskBytes()
The source disk used to create this snapshot.
optional string source_disk = 451753793;getSourceDiskBytes in interface SnapshotOrBuilderpublic boolean hasSourceDiskEncryptionKey()
The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key.
optional .google.cloud.compute.v1.CustomerEncryptionKey source_disk_encryption_key = 531501153;
hasSourceDiskEncryptionKey in interface SnapshotOrBuilderpublic CustomerEncryptionKey getSourceDiskEncryptionKey()
The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key.
optional .google.cloud.compute.v1.CustomerEncryptionKey source_disk_encryption_key = 531501153;
getSourceDiskEncryptionKey in interface SnapshotOrBuilderpublic CustomerEncryptionKeyOrBuilder getSourceDiskEncryptionKeyOrBuilder()
The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key.
optional .google.cloud.compute.v1.CustomerEncryptionKey source_disk_encryption_key = 531501153;
getSourceDiskEncryptionKeyOrBuilder in interface SnapshotOrBuilderpublic 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;hasSourceDiskId in interface SnapshotOrBuilderpublic 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;getSourceDiskId in interface SnapshotOrBuilderpublic 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;getSourceDiskIdBytes in interface SnapshotOrBuilderpublic boolean hasSourceSnapshotSchedulePolicy()
[Output Only] URL of the resource policy which created this scheduled snapshot.
optional string source_snapshot_schedule_policy = 235756291;hasSourceSnapshotSchedulePolicy in interface SnapshotOrBuilderpublic String getSourceSnapshotSchedulePolicy()
[Output Only] URL of the resource policy which created this scheduled snapshot.
optional string source_snapshot_schedule_policy = 235756291;getSourceSnapshotSchedulePolicy in interface SnapshotOrBuilderpublic com.google.protobuf.ByteString getSourceSnapshotSchedulePolicyBytes()
[Output Only] URL of the resource policy which created this scheduled snapshot.
optional string source_snapshot_schedule_policy = 235756291;getSourceSnapshotSchedulePolicyBytes in interface SnapshotOrBuilderpublic boolean hasSourceSnapshotSchedulePolicyId()
[Output Only] ID of the resource policy which created this scheduled snapshot.
optional string source_snapshot_schedule_policy_id = 70489047;hasSourceSnapshotSchedulePolicyId in interface SnapshotOrBuilderpublic String getSourceSnapshotSchedulePolicyId()
[Output Only] ID of the resource policy which created this scheduled snapshot.
optional string source_snapshot_schedule_policy_id = 70489047;getSourceSnapshotSchedulePolicyId in interface SnapshotOrBuilderpublic 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;getSourceSnapshotSchedulePolicyIdBytes in interface SnapshotOrBuilderpublic 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;hasStatus in interface SnapshotOrBuilderpublic 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;getStatus in interface SnapshotOrBuilderpublic 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;getStatusBytes in interface SnapshotOrBuilderpublic 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;hasStorageBytes in interface SnapshotOrBuilderpublic 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;getStorageBytes in interface SnapshotOrBuilderpublic 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;hasStorageBytesStatus in interface SnapshotOrBuilderpublic 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;getStorageBytesStatus in interface SnapshotOrBuilderpublic 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;getStorageBytesStatusBytes in interface SnapshotOrBuilderpublic com.google.protobuf.ProtocolStringList getStorageLocationsList()
Cloud Storage bucket storage location of the snapshot (regional or multi-regional).
repeated string storage_locations = 328005274;getStorageLocationsList in interface SnapshotOrBuilderpublic int getStorageLocationsCount()
Cloud Storage bucket storage location of the snapshot (regional or multi-regional).
repeated string storage_locations = 328005274;getStorageLocationsCount in interface SnapshotOrBuilderpublic String getStorageLocations(int index)
Cloud Storage bucket storage location of the snapshot (regional or multi-regional).
repeated string storage_locations = 328005274;getStorageLocations in interface SnapshotOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getStorageLocationsBytes(int index)
Cloud Storage bucket storage location of the snapshot (regional or multi-regional).
repeated string storage_locations = 328005274;getStorageLocationsBytes in interface SnapshotOrBuilderindex - The index of the value to return.public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Snapshot parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Snapshot parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Snapshot parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Snapshot parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Snapshot parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Snapshot parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Snapshot parseFrom(InputStream input) throws IOException
IOExceptionpublic static Snapshot parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Snapshot parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Snapshot parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Snapshot parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Snapshot parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Snapshot.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Snapshot.Builder newBuilder()
public static Snapshot.Builder newBuilder(Snapshot prototype)
public Snapshot.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Snapshot.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Snapshot getDefaultInstance()
public static com.google.protobuf.Parser<Snapshot> parser()
public com.google.protobuf.Parser<Snapshot> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Snapshot getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.