public interface EncryptionSpecOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
getKmsKeyName()
public abstract String getKmsKeyName()
Required. The Cloud KMS resource identifier of the customer managed
encryption key used to protect a resource. Has the form:
projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key
.
The key needs to be in the same region as where the compute resource is
created.
string kms_key_name = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
String |
The kmsKeyName. |
getKmsKeyNameBytes()
public abstract ByteString getKmsKeyNameBytes()
Required. The Cloud KMS resource identifier of the customer managed
encryption key used to protect a resource. Has the form:
projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key
.
The key needs to be in the same region as where the compute resource is
created.
string kms_key_name = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for kmsKeyName. |