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 booleanequals(Object o)static EncryptionInfofromProtoOrNull(EncryptionInfo proto)Returns aEncryptionInfoinstance from the given proto, ornullif the given proto is the default proto instance (i.e.com.google.rpc.StatusgetEncryptionStatus()EncryptionInfo.TypegetEncryptionType()StringgetKmsKeyVersion()inthashCode()StringtoString()
-
-
-
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 aEncryptionInfoinstance from the given proto, ornullif 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()
-
-