Interface CustomerEncryptionKeyOrBuilder (0.13.0)

public interface CustomerEncryptionKeyOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getKeyCase()

public abstract CustomerEncryptionKey.KeyCase getKeyCase()
Returns
Type Description
CustomerEncryptionKey.KeyCase

getKmsKeyName()

public abstract String getKmsKeyName()

Optional. The name of the encryption key that is stored in Google Cloud KMS.

string kms_key_name = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The kmsKeyName.

getKmsKeyNameBytes()

public abstract ByteString getKmsKeyNameBytes()

Optional. The name of the encryption key that is stored in Google Cloud KMS.

string kms_key_name = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for kmsKeyName.

getKmsKeyServiceAccount()

public abstract String getKmsKeyServiceAccount()

Optional. The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.

optional string kms_key_service_account = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The kmsKeyServiceAccount.

getKmsKeyServiceAccountBytes()

public abstract ByteString getKmsKeyServiceAccountBytes()

Optional. The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.

optional string kms_key_service_account = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for kmsKeyServiceAccount.

getRawKey()

public abstract String getRawKey()

Optional. Specifies a 256-bit customer-supplied encryption key.

string raw_key = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The rawKey.

getRawKeyBytes()

public abstract ByteString getRawKeyBytes()

Optional. Specifies a 256-bit customer-supplied encryption key.

string raw_key = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for rawKey.

getRsaEncryptedKey()

public abstract String getRsaEncryptedKey()

Optional. RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.

string rsa_encrypted_key = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The rsaEncryptedKey.

getRsaEncryptedKeyBytes()

public abstract ByteString getRsaEncryptedKeyBytes()

Optional. RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.

string rsa_encrypted_key = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for rsaEncryptedKey.

hasKmsKeyName()

public abstract boolean hasKmsKeyName()

Optional. The name of the encryption key that is stored in Google Cloud KMS.

string kms_key_name = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the kmsKeyName field is set.

hasKmsKeyServiceAccount()

public abstract boolean hasKmsKeyServiceAccount()

Optional. The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.

optional string kms_key_service_account = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the kmsKeyServiceAccount field is set.

hasRawKey()

public abstract boolean hasRawKey()

Optional. Specifies a 256-bit customer-supplied encryption key.

string raw_key = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the rawKey field is set.

hasRsaEncryptedKey()

public abstract boolean hasRsaEncryptedKey()

Optional. RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.

string rsa_encrypted_key = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the rsaEncryptedKey field is set.