Class EncryptionInfo (6.69.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
Name Description
proto EncryptionInfo
Returns
Type Description
EncryptionInfo

Constructors

EncryptionInfo(EncryptionInfo proto)

public EncryptionInfo(EncryptionInfo proto)
Parameter
Name Description
proto EncryptionInfo

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

public EncryptionInfo(String kmsKeyVersion, EncryptionInfo.Type encryptionType, Status encryptionStatus)
Parameters
Name Description
kmsKeyVersion String
encryptionType EncryptionInfo.Type
encryptionStatus com.google.rpc.Status

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
Name Description
o Object
Returns
Type Description
boolean
Overrides

getEncryptionStatus()

public Status getEncryptionStatus()
Returns
Type Description
com.google.rpc.Status

getEncryptionType()

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

getKmsKeyVersion()

public String getKmsKeyVersion()
Returns
Type Description
String

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

toString()

public String toString()
Returns
Type Description
String
Overrides