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 Summary
Constructors Constructor Description EncryptionInfo(EncryptionInfo proto)
EncryptionInfo(String kmsKeyVersion, EncryptionInfo.Type encryptionType, com.google.rpc.Status encryptionStatus)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static EncryptionInfo
fromProtoOrNull(EncryptionInfo proto)
Returns aEncryptionInfo
instance from the given proto, ornull
if the given proto is the default proto instance (i.e.com.google.rpc.Status
getEncryptionStatus()
EncryptionInfo.Type
getEncryptionType()
String
getKmsKeyVersion()
int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
EncryptionInfo
public EncryptionInfo(EncryptionInfo proto)
-
EncryptionInfo
public EncryptionInfo(String kmsKeyVersion, EncryptionInfo.Type encryptionType, com.google.rpc.Status encryptionStatus)
-
-
Method Detail
-
fromProtoOrNull
public static EncryptionInfo fromProtoOrNull(EncryptionInfo proto)
Returns aEncryptionInfo
instance from the given proto, ornull
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()
-
-