Interface EncryptionSpecOrBuilder

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

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

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

    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

    • getName

      String getName()
       Immutable. The resource name of the encryption key specification resource.
       Format:
       projects/{project}/locations/{location}/encryptionSpec
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Returns:
      The name.
    • getNameBytes

      com.google.protobuf.ByteString getNameBytes()
       Immutable. The resource name of the encryption key specification resource.
       Format:
       projects/{project}/locations/{location}/encryptionSpec
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Returns:
      The bytes for name.
    • getKmsKey

      String getKmsKey()
       Required. The name of customer-managed encryption key that is used to
       secure a resource and its sub-resources. If empty, the resource is secured
       by the default Google encryption key. Only the key in the same location as
       this resource is allowed to be used for encryption. Format:
       `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{key}`
       
      string kms_key = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The kmsKey.
    • getKmsKeyBytes

      com.google.protobuf.ByteString getKmsKeyBytes()
       Required. The name of customer-managed encryption key that is used to
       secure a resource and its sub-resources. If empty, the resource is secured
       by the default Google encryption key. Only the key in the same location as
       this resource is allowed to be used for encryption. Format:
       `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{key}`
       
      string kms_key = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The bytes for kmsKey.