Interface CustomerManagedEncryptionOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
CustomerManagedEncryption, CustomerManagedEncryption.Builder

@Generated public interface CustomerManagedEncryptionOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    Required.
    com.google.protobuf.ByteString
    Required.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getKmsKeyName

      String getKmsKeyName()
       Required. The resource name of the Cloud KMS CryptoKey used to encrypt
       secret payloads.
      
       For secrets using the
       [UserManaged][google.cloud.secretmanager.v1beta2.Replication.UserManaged]
       replication policy type, Cloud KMS CryptoKeys must reside in the same
       location as the [replica location][Secret.UserManaged.Replica.location].
      
       For secrets using the
       [Automatic][google.cloud.secretmanager.v1beta2.Replication.Automatic]
       replication policy type, Cloud KMS CryptoKeys must reside in `global`.
      
       The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
       
      string kms_key_name = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The kmsKeyName.
    • getKmsKeyNameBytes

      com.google.protobuf.ByteString getKmsKeyNameBytes()
       Required. The resource name of the Cloud KMS CryptoKey used to encrypt
       secret payloads.
      
       For secrets using the
       [UserManaged][google.cloud.secretmanager.v1beta2.Replication.UserManaged]
       replication policy type, Cloud KMS CryptoKeys must reside in the same
       location as the [replica location][Secret.UserManaged.Replica.location].
      
       For secrets using the
       [Automatic][google.cloud.secretmanager.v1beta2.Replication.Automatic]
       replication policy type, Cloud KMS CryptoKeys must reside in `global`.
      
       The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
       
      string kms_key_name = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The bytes for kmsKeyName.