Class EncryptionInfo

java.lang.Object
com.google.cloud.spanner.encryption.EncryptionInfo

public class EncryptionInfo extends Object
Represents the encryption information for a Cloud Spanner backup.
  • Constructor Details

    • EncryptionInfo

      public EncryptionInfo(EncryptionInfo proto)
    • EncryptionInfo

      public EncryptionInfo(String kmsKeyVersion, EncryptionInfo.Type encryptionType, com.google.rpc.Status encryptionStatus)
  • Method Details

    • fromProtoOrNull

      public static EncryptionInfo fromProtoOrNull(EncryptionInfo proto)
      Returns a EncryptionInfo instance from the given proto, or null if the given proto is the default proto instance (i.e. there is no encryption info).
    • getKmsKeyVersion

      public String getKmsKeyVersion()
    • getEncryptionType

      public EncryptionInfo.Type getEncryptionType()
    • getEncryptionStatus

      public com.google.rpc.Status getEncryptionStatus()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object