Class EncryptionInfo (6.60.0)

public class EncryptionInfo

Represents the encryption information for a Cloud Spanner backup.

Inheritance

Object > EncryptionInfo

Static Methods

fromProtoOrNull(EncryptionInfo proto)

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).

Parameter
NameDescription
protoEncryptionInfo
Returns
TypeDescription
EncryptionInfo

Constructors

EncryptionInfo(EncryptionInfo proto)

public EncryptionInfo(EncryptionInfo proto)
Parameter
NameDescription
protoEncryptionInfo

EncryptionInfo(String kmsKeyVersion, EncryptionInfo.Type encryptionType, Status encryptionStatus)

public EncryptionInfo(String kmsKeyVersion, EncryptionInfo.Type encryptionType, Status encryptionStatus)
Parameters
NameDescription
kmsKeyVersionString
encryptionTypeEncryptionInfo.Type
encryptionStatuscom.google.rpc.Status

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
NameDescription
oObject
Returns
TypeDescription
boolean
Overrides

getEncryptionStatus()

public Status getEncryptionStatus()
Returns
TypeDescription
com.google.rpc.Status

getEncryptionType()

public EncryptionInfo.Type getEncryptionType()
Returns
TypeDescription
EncryptionInfo.Type

getKmsKeyVersion()

public String getKmsKeyVersion()
Returns
TypeDescription
String

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toString()

public String toString()
Returns
TypeDescription
String
Overrides