Class Snapshot

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.compute.v1.Snapshot
All Implemented Interfaces:
SnapshotOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class Snapshot extends com.google.protobuf.GeneratedMessage 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
See Also:
  • Field Details

    • ARCHITECTURE_FIELD_NUMBER

      public static final int ARCHITECTURE_FIELD_NUMBER
      See Also:
    • AUTO_CREATED_FIELD_NUMBER

      public static final int AUTO_CREATED_FIELD_NUMBER
      See Also:
    • CHAIN_NAME_FIELD_NUMBER

      public static final int CHAIN_NAME_FIELD_NUMBER
      See Also:
    • CREATION_SIZE_BYTES_FIELD_NUMBER

      public static final int CREATION_SIZE_BYTES_FIELD_NUMBER
      See Also:
    • CREATION_TIMESTAMP_FIELD_NUMBER

      public static final int CREATION_TIMESTAMP_FIELD_NUMBER
      See Also:
    • DESCRIPTION_FIELD_NUMBER

      public static final int DESCRIPTION_FIELD_NUMBER
      See Also:
    • DISK_SIZE_GB_FIELD_NUMBER

      public static final int DISK_SIZE_GB_FIELD_NUMBER
      See Also:
    • DOWNLOAD_BYTES_FIELD_NUMBER

      public static final int DOWNLOAD_BYTES_FIELD_NUMBER
      See Also:
    • ENABLE_CONFIDENTIAL_COMPUTE_FIELD_NUMBER

      public static final int ENABLE_CONFIDENTIAL_COMPUTE_FIELD_NUMBER
      See Also:
    • GUEST_FLUSH_FIELD_NUMBER

      public static final int GUEST_FLUSH_FIELD_NUMBER
      See Also:
    • GUEST_OS_FEATURES_FIELD_NUMBER

      public static final int GUEST_OS_FEATURES_FIELD_NUMBER
      See Also:
    • ID_FIELD_NUMBER

      public static final int ID_FIELD_NUMBER
      See Also:
    • KIND_FIELD_NUMBER

      public static final int KIND_FIELD_NUMBER
      See Also:
    • LABEL_FINGERPRINT_FIELD_NUMBER

      public static final int LABEL_FINGERPRINT_FIELD_NUMBER
      See Also:
    • LABELS_FIELD_NUMBER

      public static final int LABELS_FIELD_NUMBER
      See Also:
    • LICENSE_CODES_FIELD_NUMBER

      public static final int LICENSE_CODES_FIELD_NUMBER
      See Also:
    • LICENSES_FIELD_NUMBER

      public static final int LICENSES_FIELD_NUMBER
      See Also:
    • LOCATION_HINT_FIELD_NUMBER

      public static final int LOCATION_HINT_FIELD_NUMBER
      See Also:
    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • PARAMS_FIELD_NUMBER

      public static final int PARAMS_FIELD_NUMBER
      See Also:
    • REGION_FIELD_NUMBER

      public static final int REGION_FIELD_NUMBER
      See Also:
    • SATISFIES_PZI_FIELD_NUMBER

      public static final int SATISFIES_PZI_FIELD_NUMBER
      See Also:
    • SATISFIES_PZS_FIELD_NUMBER

      public static final int SATISFIES_PZS_FIELD_NUMBER
      See Also:
    • SNAPSHOT_ENCRYPTION_KEY_FIELD_NUMBER

      public static final int SNAPSHOT_ENCRYPTION_KEY_FIELD_NUMBER
      See Also:
    • SNAPSHOT_GROUP_ID_FIELD_NUMBER

      public static final int SNAPSHOT_GROUP_ID_FIELD_NUMBER
      See Also:
    • SNAPSHOT_GROUP_NAME_FIELD_NUMBER

      public static final int SNAPSHOT_GROUP_NAME_FIELD_NUMBER
      See Also:
    • SNAPSHOT_TYPE_FIELD_NUMBER

      public static final int SNAPSHOT_TYPE_FIELD_NUMBER
      See Also:
    • SOURCE_DISK_FIELD_NUMBER

      public static final int SOURCE_DISK_FIELD_NUMBER
      See Also:
    • SOURCE_DISK_ENCRYPTION_KEY_FIELD_NUMBER

      public static final int SOURCE_DISK_ENCRYPTION_KEY_FIELD_NUMBER
      See Also:
    • SOURCE_DISK_FOR_RECOVERY_CHECKPOINT_FIELD_NUMBER

      public static final int SOURCE_DISK_FOR_RECOVERY_CHECKPOINT_FIELD_NUMBER
      See Also:
    • SOURCE_DISK_ID_FIELD_NUMBER

      public static final int SOURCE_DISK_ID_FIELD_NUMBER
      See Also:
    • SOURCE_INSTANT_SNAPSHOT_FIELD_NUMBER

      public static final int SOURCE_INSTANT_SNAPSHOT_FIELD_NUMBER
      See Also:
    • SOURCE_INSTANT_SNAPSHOT_ENCRYPTION_KEY_FIELD_NUMBER

      public static final int SOURCE_INSTANT_SNAPSHOT_ENCRYPTION_KEY_FIELD_NUMBER
      See Also:
    • SOURCE_INSTANT_SNAPSHOT_ID_FIELD_NUMBER

      public static final int SOURCE_INSTANT_SNAPSHOT_ID_FIELD_NUMBER
      See Also:
    • SOURCE_SNAPSHOT_SCHEDULE_POLICY_FIELD_NUMBER

      public static final int SOURCE_SNAPSHOT_SCHEDULE_POLICY_FIELD_NUMBER
      See Also:
    • SOURCE_SNAPSHOT_SCHEDULE_POLICY_ID_FIELD_NUMBER

      public static final int SOURCE_SNAPSHOT_SCHEDULE_POLICY_ID_FIELD_NUMBER
      See Also:
    • STATUS_FIELD_NUMBER

      public static final int STATUS_FIELD_NUMBER
      See Also:
    • STORAGE_BYTES_FIELD_NUMBER

      public static final int STORAGE_BYTES_FIELD_NUMBER
      See Also:
    • STORAGE_BYTES_STATUS_FIELD_NUMBER

      public static final int STORAGE_BYTES_STATUS_FIELD_NUMBER
      See Also:
    • STORAGE_LOCATIONS_FIELD_NUMBER

      public static final int STORAGE_LOCATIONS_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • hasArchitecture

      public boolean hasArchitecture()
       Output only. [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;
      Specified by:
      hasArchitecture in interface SnapshotOrBuilder
      Returns:
      Whether the architecture field is set.
    • getArchitecture

      public String getArchitecture()
       Output only. [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;
      Specified by:
      getArchitecture in interface SnapshotOrBuilder
      Returns:
      The architecture.
    • getArchitectureBytes

      public com.google.protobuf.ByteString getArchitectureBytes()
       Output only. [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;
      Specified by:
      getArchitectureBytes in interface SnapshotOrBuilder
      Returns:
      The bytes for architecture.
    • hasAutoCreated

      public boolean hasAutoCreated()
       Output only. [Output Only] Set to true if snapshots are automatically created by
       applying resource policy on the target disk.
       
      optional bool auto_created = 463922264;
      Specified by:
      hasAutoCreated in interface SnapshotOrBuilder
      Returns:
      Whether the autoCreated field is set.
    • getAutoCreated

      public boolean getAutoCreated()
       Output only. [Output Only] Set to true if snapshots are automatically created by
       applying resource policy on the target disk.
       
      optional bool auto_created = 463922264;
      Specified by:
      getAutoCreated in interface SnapshotOrBuilder
      Returns:
      The autoCreated.
    • hasChainName

      public 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;
      Specified by:
      hasChainName in interface SnapshotOrBuilder
      Returns:
      Whether the chainName field is set.
    • getChainName

      public 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;
      Specified by:
      getChainName in interface SnapshotOrBuilder
      Returns:
      The chainName.
    • getChainNameBytes

      public 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;
      Specified by:
      getChainNameBytes in interface SnapshotOrBuilder
      Returns:
      The bytes for chainName.
    • hasCreationSizeBytes

      public boolean hasCreationSizeBytes()
       Output only. [Output Only] Size in bytes of the snapshot at creation time.
       
      optional int64 creation_size_bytes = 125400077;
      Specified by:
      hasCreationSizeBytes in interface SnapshotOrBuilder
      Returns:
      Whether the creationSizeBytes field is set.
    • getCreationSizeBytes

      public long getCreationSizeBytes()
       Output only. [Output Only] Size in bytes of the snapshot at creation time.
       
      optional int64 creation_size_bytes = 125400077;
      Specified by:
      getCreationSizeBytes in interface SnapshotOrBuilder
      Returns:
      The creationSizeBytes.
    • hasCreationTimestamp

      public boolean hasCreationTimestamp()
       Output only. [Output Only] Creation timestamp inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Specified by:
      hasCreationTimestamp in interface SnapshotOrBuilder
      Returns:
      Whether the creationTimestamp field is set.
    • getCreationTimestamp

      public String getCreationTimestamp()
       Output only. [Output Only] Creation timestamp inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Specified by:
      getCreationTimestamp in interface SnapshotOrBuilder
      Returns:
      The creationTimestamp.
    • getCreationTimestampBytes

      public com.google.protobuf.ByteString getCreationTimestampBytes()
       Output only. [Output Only] Creation timestamp inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Specified by:
      getCreationTimestampBytes in interface SnapshotOrBuilder
      Returns:
      The bytes for creationTimestamp.
    • 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 interface SnapshotOrBuilder
      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 interface SnapshotOrBuilder
      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 interface SnapshotOrBuilder
      Returns:
      The bytes for description.
    • hasDiskSizeGb

      public boolean hasDiskSizeGb()
       Output only. [Output Only] Size of the source disk, specified in GB.
       
      optional int64 disk_size_gb = 316263735;
      Specified by:
      hasDiskSizeGb in interface SnapshotOrBuilder
      Returns:
      Whether the diskSizeGb field is set.
    • getDiskSizeGb

      public long getDiskSizeGb()
       Output only. [Output Only] Size of the source disk, specified in GB.
       
      optional int64 disk_size_gb = 316263735;
      Specified by:
      getDiskSizeGb in interface SnapshotOrBuilder
      Returns:
      The diskSizeGb.
    • hasDownloadBytes

      public boolean hasDownloadBytes()
       Output only. [Output Only] Number of bytes downloaded to restore a snapshot to a disk.
       
      optional int64 download_bytes = 435054068;
      Specified by:
      hasDownloadBytes in interface SnapshotOrBuilder
      Returns:
      Whether the downloadBytes field is set.
    • getDownloadBytes

      public long getDownloadBytes()
       Output only. [Output Only] Number of bytes downloaded to restore a snapshot to a disk.
       
      optional int64 download_bytes = 435054068;
      Specified by:
      getDownloadBytes in interface SnapshotOrBuilder
      Returns:
      The downloadBytes.
    • hasEnableConfidentialCompute

      public boolean hasEnableConfidentialCompute()
       Output only. Whether this snapshot is created from a confidential compute mode disk.
       [Output Only]: This field is not set by user, but from source disk.
       
      optional bool enable_confidential_compute = 102135228;
      Specified by:
      hasEnableConfidentialCompute in interface SnapshotOrBuilder
      Returns:
      Whether the enableConfidentialCompute field is set.
    • getEnableConfidentialCompute

      public boolean getEnableConfidentialCompute()
       Output only. Whether this snapshot is created from a confidential compute mode disk.
       [Output Only]: This field is not set by user, but from source disk.
       
      optional bool enable_confidential_compute = 102135228;
      Specified by:
      getEnableConfidentialCompute in interface SnapshotOrBuilder
      Returns:
      The enableConfidentialCompute.
    • hasGuestFlush

      public boolean hasGuestFlush()
       [Input Only] Whether to attempt an application consistent snapshot by
       informing the OS to prepare for the snapshot process.
       
      optional bool guest_flush = 385550813;
      Specified by:
      hasGuestFlush in interface SnapshotOrBuilder
      Returns:
      Whether the guestFlush field is set.
    • getGuestFlush

      public boolean getGuestFlush()
       [Input Only] Whether to attempt an application consistent snapshot by
       informing the OS to prepare for the snapshot process.
       
      optional bool guest_flush = 385550813;
      Specified by:
      getGuestFlush in interface SnapshotOrBuilder
      Returns:
      The guestFlush.
    • getGuestOsFeaturesList

      public List<GuestOsFeature> getGuestOsFeaturesList()
       Output only. [Output Only] A list of features to enable on the guest operating system.
       Applicable only for bootable images. Read
       Enabling guest operating system features to see a list of available
       options.
       
      repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;
      Specified by:
      getGuestOsFeaturesList in interface SnapshotOrBuilder
    • getGuestOsFeaturesOrBuilderList

      public List<? extends GuestOsFeatureOrBuilder> getGuestOsFeaturesOrBuilderList()
       Output only. [Output Only] A list of features to enable on the guest operating system.
       Applicable only for bootable images. Read
       Enabling guest operating system features to see a list of available
       options.
       
      repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;
      Specified by:
      getGuestOsFeaturesOrBuilderList in interface SnapshotOrBuilder
    • getGuestOsFeaturesCount

      public int getGuestOsFeaturesCount()
       Output only. [Output Only] A list of features to enable on the guest operating system.
       Applicable only for bootable images. Read
       Enabling guest operating system features to see a list of available
       options.
       
      repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;
      Specified by:
      getGuestOsFeaturesCount in interface SnapshotOrBuilder
    • getGuestOsFeatures

      public GuestOsFeature getGuestOsFeatures(int index)
       Output only. [Output Only] A list of features to enable on the guest operating system.
       Applicable only for bootable images. Read
       Enabling guest operating system features to see a list of available
       options.
       
      repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;
      Specified by:
      getGuestOsFeatures in interface SnapshotOrBuilder
    • getGuestOsFeaturesOrBuilder

      public GuestOsFeatureOrBuilder getGuestOsFeaturesOrBuilder(int index)
       Output only. [Output Only] A list of features to enable on the guest operating system.
       Applicable only for bootable images. Read
       Enabling guest operating system features to see a list of available
       options.
       
      repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;
      Specified by:
      getGuestOsFeaturesOrBuilder in interface SnapshotOrBuilder
    • hasId

      public boolean hasId()
       Output only. [Output Only] The unique identifier for the resource. This identifier is
       defined by the server.
       
      optional uint64 id = 3355;
      Specified by:
      hasId in interface SnapshotOrBuilder
      Returns:
      Whether the id field is set.
    • getId

      public long getId()
       Output only. [Output Only] The unique identifier for the resource. This identifier is
       defined by the server.
       
      optional uint64 id = 3355;
      Specified by:
      getId in interface SnapshotOrBuilder
      Returns:
      The id.
    • hasKind

      public boolean hasKind()
       Output only. [Output Only] Type of the resource. Always compute#snapshot
       for Snapshot resources.
       
      optional string kind = 3292052;
      Specified by:
      hasKind in interface SnapshotOrBuilder
      Returns:
      Whether the kind field is set.
    • getKind

      public String getKind()
       Output only. [Output Only] Type of the resource. Always compute#snapshot
       for Snapshot resources.
       
      optional string kind = 3292052;
      Specified by:
      getKind in interface SnapshotOrBuilder
      Returns:
      The kind.
    • getKindBytes

      public com.google.protobuf.ByteString getKindBytes()
       Output only. [Output Only] Type of the resource. Always compute#snapshot
       for Snapshot resources.
       
      optional string kind = 3292052;
      Specified by:
      getKindBytes in interface SnapshotOrBuilder
      Returns:
      The bytes for kind.
    • hasLabelFingerprint

      public 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 error412 conditionNotMet.
      
       To see the latest fingerprint, make a get() request to
       retrieve a snapshot.
       
      optional string label_fingerprint = 178124825;
      Specified by:
      hasLabelFingerprint in interface SnapshotOrBuilder
      Returns:
      Whether the labelFingerprint field is set.
    • getLabelFingerprint

      public 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 error412 conditionNotMet.
      
       To see the latest fingerprint, make a get() request to
       retrieve a snapshot.
       
      optional string label_fingerprint = 178124825;
      Specified by:
      getLabelFingerprint in interface SnapshotOrBuilder
      Returns:
      The labelFingerprint.
    • getLabelFingerprintBytes

      public 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 error412 conditionNotMet.
      
       To see the latest fingerprint, make a get() request to
       retrieve a snapshot.
       
      optional string label_fingerprint = 178124825;
      Specified by:
      getLabelFingerprintBytes in interface SnapshotOrBuilder
      Returns:
      The bytes for labelFingerprint.
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: SnapshotOrBuilder
       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;
      Specified by:
      getLabelsCount in interface SnapshotOrBuilder
    • containsLabels

      public 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;
      Specified by:
      containsLabels in interface SnapshotOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface SnapshotOrBuilder
    • getLabelsMap

      public 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;
      Specified by:
      getLabelsMap in interface SnapshotOrBuilder
    • getLabelsOrDefault

      public 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;
      Specified by:
      getLabelsOrDefault in interface SnapshotOrBuilder
    • getLabelsOrThrow

      public 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;
      Specified by:
      getLabelsOrThrow in interface SnapshotOrBuilder
    • getLicenseCodesList

      public List<Long> getLicenseCodesList()
       Output only. [Output Only] Integer license codes indicating which licenses are attached
       to this snapshot.
       
      repeated int64 license_codes = 45482664;
      Specified by:
      getLicenseCodesList in interface SnapshotOrBuilder
      Returns:
      A list containing the licenseCodes.
    • getLicenseCodesCount

      public int getLicenseCodesCount()
       Output only. [Output Only] Integer license codes indicating which licenses are attached
       to this snapshot.
       
      repeated int64 license_codes = 45482664;
      Specified by:
      getLicenseCodesCount in interface SnapshotOrBuilder
      Returns:
      The count of licenseCodes.
    • getLicenseCodes

      public long getLicenseCodes(int index)
       Output only. [Output Only] Integer license codes indicating which licenses are attached
       to this snapshot.
       
      repeated int64 license_codes = 45482664;
      Specified by:
      getLicenseCodes in interface SnapshotOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The licenseCodes at the given index.
    • getLicensesList

      public com.google.protobuf.ProtocolStringList getLicensesList()
       Output only. [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;
      Specified by:
      getLicensesList in interface SnapshotOrBuilder
      Returns:
      A list containing the licenses.
    • getLicensesCount

      public int getLicensesCount()
       Output only. [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;
      Specified by:
      getLicensesCount in interface SnapshotOrBuilder
      Returns:
      The count of licenses.
    • getLicenses

      public String getLicenses(int index)
       Output only. [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;
      Specified by:
      getLicenses in interface SnapshotOrBuilder
      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)
       Output only. [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;
      Specified by:
      getLicensesBytes in interface SnapshotOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the licenses at the given index.
    • hasLocationHint

      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;
      Specified by:
      hasLocationHint in interface SnapshotOrBuilder
      Returns:
      Whether the locationHint field is set.
    • getLocationHint

      public 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;
      Specified by:
      getLocationHint in interface SnapshotOrBuilder
      Returns:
      The locationHint.
    • getLocationHintBytes

      public 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;
      Specified by:
      getLocationHintBytes in interface SnapshotOrBuilder
      Returns:
      The bytes for locationHint.
    • 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 withRFC1035.
       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 interface SnapshotOrBuilder
      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 withRFC1035.
       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 interface SnapshotOrBuilder
      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 withRFC1035.
       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 interface SnapshotOrBuilder
      Returns:
      The bytes for name.
    • hasParams

      public boolean hasParams()
       Input only. [Input Only] Additional params passed with the request, but not persisted
       as part of resource payload.
       
      optional .google.cloud.compute.v1.SnapshotParams params = 78313862;
      Specified by:
      hasParams in interface SnapshotOrBuilder
      Returns:
      Whether the params field is set.
    • getParams

      public SnapshotParams getParams()
       Input only. [Input Only] Additional params passed with the request, but not persisted
       as part of resource payload.
       
      optional .google.cloud.compute.v1.SnapshotParams params = 78313862;
      Specified by:
      getParams in interface SnapshotOrBuilder
      Returns:
      The params.
    • getParamsOrBuilder

      public SnapshotParamsOrBuilder getParamsOrBuilder()
       Input only. [Input Only] Additional params passed with the request, but not persisted
       as part of resource payload.
       
      optional .google.cloud.compute.v1.SnapshotParams params = 78313862;
      Specified by:
      getParamsOrBuilder in interface SnapshotOrBuilder
    • hasRegion

      public boolean hasRegion()
       Output only. [Output Only] URL of the region where the snapshot resides. Only applicable
       for regional snapshots.
       
      optional string region = 138946292;
      Specified by:
      hasRegion in interface SnapshotOrBuilder
      Returns:
      Whether the region field is set.
    • getRegion

      public String getRegion()
       Output only. [Output Only] URL of the region where the snapshot resides. Only applicable
       for regional snapshots.
       
      optional string region = 138946292;
      Specified by:
      getRegion in interface SnapshotOrBuilder
      Returns:
      The region.
    • getRegionBytes

      public com.google.protobuf.ByteString getRegionBytes()
       Output only. [Output Only] URL of the region where the snapshot resides. Only applicable
       for regional snapshots.
       
      optional string region = 138946292;
      Specified by:
      getRegionBytes in interface SnapshotOrBuilder
      Returns:
      The bytes for region.
    • hasSatisfiesPzi

      public boolean hasSatisfiesPzi()
       Output only. Reserved for future use.
       
      optional bool satisfies_pzi = 480964257;
      Specified by:
      hasSatisfiesPzi in interface SnapshotOrBuilder
      Returns:
      Whether the satisfiesPzi field is set.
    • getSatisfiesPzi

      public boolean getSatisfiesPzi()
       Output only. Reserved for future use.
       
      optional bool satisfies_pzi = 480964257;
      Specified by:
      getSatisfiesPzi in interface SnapshotOrBuilder
      Returns:
      The satisfiesPzi.
    • hasSatisfiesPzs

      public boolean hasSatisfiesPzs()
       Output only. [Output Only] Reserved for future use.
       
      optional bool satisfies_pzs = 480964267;
      Specified by:
      hasSatisfiesPzs in interface SnapshotOrBuilder
      Returns:
      Whether the satisfiesPzs field is set.
    • getSatisfiesPzs

      public boolean getSatisfiesPzs()
       Output only. [Output Only] Reserved for future use.
       
      optional bool satisfies_pzs = 480964267;
      Specified by:
      getSatisfiesPzs in interface SnapshotOrBuilder
      Returns:
      The satisfiesPzs.
    • hasSelfLink

      public boolean hasSelfLink()
       Output only. [Output Only] Server-defined URL for the resource.
       
      optional string self_link = 456214797;
      Specified by:
      hasSelfLink in interface SnapshotOrBuilder
      Returns:
      Whether the selfLink field is set.
    • getSelfLink

      public String getSelfLink()
       Output only. [Output Only] Server-defined URL for the resource.
       
      optional string self_link = 456214797;
      Specified by:
      getSelfLink in interface SnapshotOrBuilder
      Returns:
      The selfLink.
    • getSelfLinkBytes

      public com.google.protobuf.ByteString getSelfLinkBytes()
       Output only. [Output Only] Server-defined URL for the resource.
       
      optional string self_link = 456214797;
      Specified by:
      getSelfLinkBytes in interface SnapshotOrBuilder
      Returns:
      The bytes for selfLink.
    • hasSnapshotEncryptionKey

      public boolean hasSnapshotEncryptionKey()
       Encrypts the snapshot using acustomer-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;
      Specified by:
      hasSnapshotEncryptionKey in interface SnapshotOrBuilder
      Returns:
      Whether the snapshotEncryptionKey field is set.
    • getSnapshotEncryptionKey

      public CustomerEncryptionKey getSnapshotEncryptionKey()
       Encrypts the snapshot using acustomer-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;
      Specified by:
      getSnapshotEncryptionKey in interface SnapshotOrBuilder
      Returns:
      The snapshotEncryptionKey.
    • getSnapshotEncryptionKeyOrBuilder

      public CustomerEncryptionKeyOrBuilder getSnapshotEncryptionKeyOrBuilder()
       Encrypts the snapshot using acustomer-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;
      Specified by:
      getSnapshotEncryptionKeyOrBuilder in interface SnapshotOrBuilder
    • hasSnapshotGroupId

      public boolean hasSnapshotGroupId()
       Output only. [Output Only] The unique ID of the snapshot group that this snapshot
       belongs to. The usage of snapshot group feature is restricted.
       
      optional string snapshot_group_id = 255004406;
      Specified by:
      hasSnapshotGroupId in interface SnapshotOrBuilder
      Returns:
      Whether the snapshotGroupId field is set.
    • getSnapshotGroupId

      public String getSnapshotGroupId()
       Output only. [Output Only] The unique ID of the snapshot group that this snapshot
       belongs to. The usage of snapshot group feature is restricted.
       
      optional string snapshot_group_id = 255004406;
      Specified by:
      getSnapshotGroupId in interface SnapshotOrBuilder
      Returns:
      The snapshotGroupId.
    • getSnapshotGroupIdBytes

      public com.google.protobuf.ByteString getSnapshotGroupIdBytes()
       Output only. [Output Only] The unique ID of the snapshot group that this snapshot
       belongs to. The usage of snapshot group feature is restricted.
       
      optional string snapshot_group_id = 255004406;
      Specified by:
      getSnapshotGroupIdBytes in interface SnapshotOrBuilder
      Returns:
      The bytes for snapshotGroupId.
    • hasSnapshotGroupName

      public boolean hasSnapshotGroupName()
       Output only. [Output only] The snapshot group that this snapshot belongs to. The usage
       of snapshot group feature is restricted.
       
      optional string snapshot_group_name = 246247846;
      Specified by:
      hasSnapshotGroupName in interface SnapshotOrBuilder
      Returns:
      Whether the snapshotGroupName field is set.
    • getSnapshotGroupName

      public String getSnapshotGroupName()
       Output only. [Output only] The snapshot group that this snapshot belongs to. The usage
       of snapshot group feature is restricted.
       
      optional string snapshot_group_name = 246247846;
      Specified by:
      getSnapshotGroupName in interface SnapshotOrBuilder
      Returns:
      The snapshotGroupName.
    • getSnapshotGroupNameBytes

      public com.google.protobuf.ByteString getSnapshotGroupNameBytes()
       Output only. [Output only] The snapshot group that this snapshot belongs to. The usage
       of snapshot group feature is restricted.
       
      optional string snapshot_group_name = 246247846;
      Specified by:
      getSnapshotGroupNameBytes in interface SnapshotOrBuilder
      Returns:
      The bytes for snapshotGroupName.
    • hasSnapshotType

      public boolean hasSnapshotType()
       Indicates the type of the snapshot.
       Check the SnapshotType enum for the list of possible values.
       
      optional string snapshot_type = 124349653;
      Specified by:
      hasSnapshotType in interface SnapshotOrBuilder
      Returns:
      Whether the snapshotType field is set.
    • getSnapshotType

      public String getSnapshotType()
       Indicates the type of the snapshot.
       Check the SnapshotType enum for the list of possible values.
       
      optional string snapshot_type = 124349653;
      Specified by:
      getSnapshotType in interface SnapshotOrBuilder
      Returns:
      The snapshotType.
    • getSnapshotTypeBytes

      public 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;
      Specified by:
      getSnapshotTypeBytes in interface SnapshotOrBuilder
      Returns:
      The bytes for snapshotType.
    • hasSourceDisk

      public boolean hasSourceDisk()
       The source disk used to create this snapshot.
       
      optional string source_disk = 451753793;
      Specified by:
      hasSourceDisk in interface SnapshotOrBuilder
      Returns:
      Whether the sourceDisk field is set.
    • getSourceDisk

      public String getSourceDisk()
       The source disk used to create this snapshot.
       
      optional string source_disk = 451753793;
      Specified by:
      getSourceDisk in interface SnapshotOrBuilder
      Returns:
      The sourceDisk.
    • getSourceDiskBytes

      public com.google.protobuf.ByteString getSourceDiskBytes()
       The source disk used to create this snapshot.
       
      optional string source_disk = 451753793;
      Specified by:
      getSourceDiskBytes in interface SnapshotOrBuilder
      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 interface SnapshotOrBuilder
      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 interface SnapshotOrBuilder
      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 interface SnapshotOrBuilder
    • hasSourceDiskForRecoveryCheckpoint

      public boolean hasSourceDiskForRecoveryCheckpoint()
       The source disk whose recovery checkpoint will be used to create this
       snapshot.
       
      optional string source_disk_for_recovery_checkpoint = 359837950;
      Specified by:
      hasSourceDiskForRecoveryCheckpoint in interface SnapshotOrBuilder
      Returns:
      Whether the sourceDiskForRecoveryCheckpoint field is set.
    • getSourceDiskForRecoveryCheckpoint

      public String getSourceDiskForRecoveryCheckpoint()
       The source disk whose recovery checkpoint will be used to create this
       snapshot.
       
      optional string source_disk_for_recovery_checkpoint = 359837950;
      Specified by:
      getSourceDiskForRecoveryCheckpoint in interface SnapshotOrBuilder
      Returns:
      The sourceDiskForRecoveryCheckpoint.
    • getSourceDiskForRecoveryCheckpointBytes

      public com.google.protobuf.ByteString getSourceDiskForRecoveryCheckpointBytes()
       The source disk whose recovery checkpoint will be used to create this
       snapshot.
       
      optional string source_disk_for_recovery_checkpoint = 359837950;
      Specified by:
      getSourceDiskForRecoveryCheckpointBytes in interface SnapshotOrBuilder
      Returns:
      The bytes for sourceDiskForRecoveryCheckpoint.
    • hasSourceDiskId

      public boolean hasSourceDiskId()
       Output only. [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;
      Specified by:
      hasSourceDiskId in interface SnapshotOrBuilder
      Returns:
      Whether the sourceDiskId field is set.
    • getSourceDiskId

      public String getSourceDiskId()
       Output only. [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;
      Specified by:
      getSourceDiskId in interface SnapshotOrBuilder
      Returns:
      The sourceDiskId.
    • getSourceDiskIdBytes

      public com.google.protobuf.ByteString getSourceDiskIdBytes()
       Output only. [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;
      Specified by:
      getSourceDiskIdBytes in interface SnapshotOrBuilder
      Returns:
      The bytes for sourceDiskId.
    • hasSourceInstantSnapshot

      public boolean hasSourceInstantSnapshot()
       The source instant snapshot used to create this snapshot. You can provide
       this as a partial or full URL to the resource. For example, the following
       are valid values:
      
      
       - https://www.googleapis.com/compute/v1/projects/project/zones/zone/instantSnapshots/instantSnapshot
       - projects/project/zones/zone/instantSnapshots/instantSnapshot
       - zones/zone/instantSnapshots/instantSnapshot
       
      optional string source_instant_snapshot = 219202054;
      Specified by:
      hasSourceInstantSnapshot in interface SnapshotOrBuilder
      Returns:
      Whether the sourceInstantSnapshot field is set.
    • getSourceInstantSnapshot

      public String getSourceInstantSnapshot()
       The source instant snapshot used to create this snapshot. You can provide
       this as a partial or full URL to the resource. For example, the following
       are valid values:
      
      
       - https://www.googleapis.com/compute/v1/projects/project/zones/zone/instantSnapshots/instantSnapshot
       - projects/project/zones/zone/instantSnapshots/instantSnapshot
       - zones/zone/instantSnapshots/instantSnapshot
       
      optional string source_instant_snapshot = 219202054;
      Specified by:
      getSourceInstantSnapshot in interface SnapshotOrBuilder
      Returns:
      The sourceInstantSnapshot.
    • getSourceInstantSnapshotBytes

      public com.google.protobuf.ByteString getSourceInstantSnapshotBytes()
       The source instant snapshot used to create this snapshot. You can provide
       this as a partial or full URL to the resource. For example, the following
       are valid values:
      
      
       - https://www.googleapis.com/compute/v1/projects/project/zones/zone/instantSnapshots/instantSnapshot
       - projects/project/zones/zone/instantSnapshots/instantSnapshot
       - zones/zone/instantSnapshots/instantSnapshot
       
      optional string source_instant_snapshot = 219202054;
      Specified by:
      getSourceInstantSnapshotBytes in interface SnapshotOrBuilder
      Returns:
      The bytes for sourceInstantSnapshot.
    • hasSourceInstantSnapshotEncryptionKey

      public boolean hasSourceInstantSnapshotEncryptionKey()
       Customer provided encryption key when creating Snapshot from Instant
       Snapshot.
       
      optional .google.cloud.compute.v1.CustomerEncryptionKey source_instant_snapshot_encryption_key = 436536060;
      Specified by:
      hasSourceInstantSnapshotEncryptionKey in interface SnapshotOrBuilder
      Returns:
      Whether the sourceInstantSnapshotEncryptionKey field is set.
    • getSourceInstantSnapshotEncryptionKey

      public CustomerEncryptionKey getSourceInstantSnapshotEncryptionKey()
       Customer provided encryption key when creating Snapshot from Instant
       Snapshot.
       
      optional .google.cloud.compute.v1.CustomerEncryptionKey source_instant_snapshot_encryption_key = 436536060;
      Specified by:
      getSourceInstantSnapshotEncryptionKey in interface SnapshotOrBuilder
      Returns:
      The sourceInstantSnapshotEncryptionKey.
    • getSourceInstantSnapshotEncryptionKeyOrBuilder

      public CustomerEncryptionKeyOrBuilder getSourceInstantSnapshotEncryptionKeyOrBuilder()
       Customer provided encryption key when creating Snapshot from Instant
       Snapshot.
       
      optional .google.cloud.compute.v1.CustomerEncryptionKey source_instant_snapshot_encryption_key = 436536060;
      Specified by:
      getSourceInstantSnapshotEncryptionKeyOrBuilder in interface SnapshotOrBuilder
    • hasSourceInstantSnapshotId

      public boolean hasSourceInstantSnapshotId()
       Output only. [Output Only] The unique ID of the instant snapshot used to create this
       snapshot. This value identifies the exact instant snapshot that was used to
       create this snapshot. For example, if you created the snapshot from an
       instant snapshot that was later deleted and recreated under the same name,
       the source instant snapshot ID would identify the exact instant snapshot
       that was used.
       
      optional string source_instant_snapshot_id = 287582708;
      Specified by:
      hasSourceInstantSnapshotId in interface SnapshotOrBuilder
      Returns:
      Whether the sourceInstantSnapshotId field is set.
    • getSourceInstantSnapshotId

      public String getSourceInstantSnapshotId()
       Output only. [Output Only] The unique ID of the instant snapshot used to create this
       snapshot. This value identifies the exact instant snapshot that was used to
       create this snapshot. For example, if you created the snapshot from an
       instant snapshot that was later deleted and recreated under the same name,
       the source instant snapshot ID would identify the exact instant snapshot
       that was used.
       
      optional string source_instant_snapshot_id = 287582708;
      Specified by:
      getSourceInstantSnapshotId in interface SnapshotOrBuilder
      Returns:
      The sourceInstantSnapshotId.
    • getSourceInstantSnapshotIdBytes

      public com.google.protobuf.ByteString getSourceInstantSnapshotIdBytes()
       Output only. [Output Only] The unique ID of the instant snapshot used to create this
       snapshot. This value identifies the exact instant snapshot that was used to
       create this snapshot. For example, if you created the snapshot from an
       instant snapshot that was later deleted and recreated under the same name,
       the source instant snapshot ID would identify the exact instant snapshot
       that was used.
       
      optional string source_instant_snapshot_id = 287582708;
      Specified by:
      getSourceInstantSnapshotIdBytes in interface SnapshotOrBuilder
      Returns:
      The bytes for sourceInstantSnapshotId.
    • hasSourceSnapshotSchedulePolicy

      public boolean hasSourceSnapshotSchedulePolicy()
       Output only. [Output Only] URL of the resource policy which created this
       scheduled snapshot.
       
      optional string source_snapshot_schedule_policy = 235756291;
      Specified by:
      hasSourceSnapshotSchedulePolicy in interface SnapshotOrBuilder
      Returns:
      Whether the sourceSnapshotSchedulePolicy field is set.
    • getSourceSnapshotSchedulePolicy

      public String getSourceSnapshotSchedulePolicy()
       Output only. [Output Only] URL of the resource policy which created this
       scheduled snapshot.
       
      optional string source_snapshot_schedule_policy = 235756291;
      Specified by:
      getSourceSnapshotSchedulePolicy in interface SnapshotOrBuilder
      Returns:
      The sourceSnapshotSchedulePolicy.
    • getSourceSnapshotSchedulePolicyBytes

      public com.google.protobuf.ByteString getSourceSnapshotSchedulePolicyBytes()
       Output only. [Output Only] URL of the resource policy which created this
       scheduled snapshot.
       
      optional string source_snapshot_schedule_policy = 235756291;
      Specified by:
      getSourceSnapshotSchedulePolicyBytes in interface SnapshotOrBuilder
      Returns:
      The bytes for sourceSnapshotSchedulePolicy.
    • hasSourceSnapshotSchedulePolicyId

      public boolean hasSourceSnapshotSchedulePolicyId()
       Output only. [Output Only] ID of the resource policy which created this
       scheduled snapshot.
       
      optional string source_snapshot_schedule_policy_id = 70489047;
      Specified by:
      hasSourceSnapshotSchedulePolicyId in interface SnapshotOrBuilder
      Returns:
      Whether the sourceSnapshotSchedulePolicyId field is set.
    • getSourceSnapshotSchedulePolicyId

      public String getSourceSnapshotSchedulePolicyId()
       Output only. [Output Only] ID of the resource policy which created this
       scheduled snapshot.
       
      optional string source_snapshot_schedule_policy_id = 70489047;
      Specified by:
      getSourceSnapshotSchedulePolicyId in interface SnapshotOrBuilder
      Returns:
      The sourceSnapshotSchedulePolicyId.
    • getSourceSnapshotSchedulePolicyIdBytes

      public com.google.protobuf.ByteString getSourceSnapshotSchedulePolicyIdBytes()
       Output only. [Output Only] ID of the resource policy which created this
       scheduled snapshot.
       
      optional string source_snapshot_schedule_policy_id = 70489047;
      Specified by:
      getSourceSnapshotSchedulePolicyIdBytes in interface SnapshotOrBuilder
      Returns:
      The bytes for sourceSnapshotSchedulePolicyId.
    • hasStatus

      public boolean hasStatus()
       Output only. [Output Only] The status of the snapshot. This can beCREATING, DELETING, FAILED,READY, or UPLOADING.
       Check the Status enum for the list of possible values.
       
      optional string status = 181260274;
      Specified by:
      hasStatus in interface SnapshotOrBuilder
      Returns:
      Whether the status field is set.
    • getStatus

      public String getStatus()
       Output only. [Output Only] The status of the snapshot. This can beCREATING, DELETING, FAILED,READY, or UPLOADING.
       Check the Status enum for the list of possible values.
       
      optional string status = 181260274;
      Specified by:
      getStatus in interface SnapshotOrBuilder
      Returns:
      The status.
    • getStatusBytes

      public com.google.protobuf.ByteString getStatusBytes()
       Output only. [Output Only] The status of the snapshot. This can beCREATING, DELETING, FAILED,READY, or UPLOADING.
       Check the Status enum for the list of possible values.
       
      optional string status = 181260274;
      Specified by:
      getStatusBytes in interface SnapshotOrBuilder
      Returns:
      The bytes for status.
    • hasStorageBytes

      public boolean hasStorageBytes()
       Output only. [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;
      Specified by:
      hasStorageBytes in interface SnapshotOrBuilder
      Returns:
      Whether the storageBytes field is set.
    • getStorageBytes

      public long getStorageBytes()
       Output only. [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;
      Specified by:
      getStorageBytes in interface SnapshotOrBuilder
      Returns:
      The storageBytes.
    • hasStorageBytesStatus

      public boolean hasStorageBytesStatus()
       Output only. [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;
      Specified by:
      hasStorageBytesStatus in interface SnapshotOrBuilder
      Returns:
      Whether the storageBytesStatus field is set.
    • getStorageBytesStatus

      public String getStorageBytesStatus()
       Output only. [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;
      Specified by:
      getStorageBytesStatus in interface SnapshotOrBuilder
      Returns:
      The storageBytesStatus.
    • getStorageBytesStatusBytes

      public com.google.protobuf.ByteString getStorageBytesStatusBytes()
       Output only. [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;
      Specified by:
      getStorageBytesStatusBytes in interface SnapshotOrBuilder
      Returns:
      The bytes for storageBytesStatus.
    • getStorageLocationsList

      public com.google.protobuf.ProtocolStringList getStorageLocationsList()
       Cloud Storage bucket storage location of the snapshot (regional or
       multi-regional).
       
      repeated string storage_locations = 328005274;
      Specified by:
      getStorageLocationsList in interface SnapshotOrBuilder
      Returns:
      A list containing the storageLocations.
    • getStorageLocationsCount

      public int getStorageLocationsCount()
       Cloud Storage bucket storage location of the snapshot (regional or
       multi-regional).
       
      repeated string storage_locations = 328005274;
      Specified by:
      getStorageLocationsCount in interface SnapshotOrBuilder
      Returns:
      The count of storageLocations.
    • getStorageLocations

      public String getStorageLocations(int index)
       Cloud Storage bucket storage location of the snapshot (regional or
       multi-regional).
       
      repeated string storage_locations = 328005274;
      Specified by:
      getStorageLocations in interface SnapshotOrBuilder
      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 snapshot (regional or
       multi-regional).
       
      repeated string storage_locations = 328005274;
      Specified by:
      getStorageLocationsBytes in interface SnapshotOrBuilder
      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 interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Snapshot parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Snapshot parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Snapshot parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Snapshot parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Snapshot parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Snapshot parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Snapshot parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Snapshot parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Snapshot parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Snapshot parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Snapshot parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Snapshot parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Snapshot.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Snapshot.Builder newBuilder()
    • newBuilder

      public static Snapshot.Builder newBuilder(Snapshot prototype)
    • toBuilder

      public Snapshot.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Snapshot.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Snapshot getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Snapshot> parser()
    • getParserForType

      public com.google.protobuf.Parser<Snapshot> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public Snapshot getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder