Interface ImportTrustedKeyWrappedCryptoKeyVersionRequestOrBuilder

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

@Generated public interface ImportTrustedKeyWrappedCryptoKeyVersionRequestOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • getParent

      String getParent()
       Required. The [name][google.cloud.kms.v1.CryptoKey.name] of the
       [CryptoKey][google.cloud.kms.v1.CryptoKey] to be imported into.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The parent.
    • getParentBytes

      com.google.protobuf.ByteString getParentBytes()
       Required. The [name][google.cloud.kms.v1.CryptoKey.name] of the
       [CryptoKey][google.cloud.kms.v1.CryptoKey] to be imported into.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The bytes for parent.
    • getImportingKey

      String getImportingKey()
       Required. Required - the CKV of the trusted key used to import.
       This can be the name of a CryptoKeyVersion or a CryptoKey.
       
      string importing_key = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The importingKey.
    • getImportingKeyBytes

      com.google.protobuf.ByteString getImportingKeyBytes()
       Required. Required - the CKV of the trusted key used to import.
       This can be the name of a CryptoKeyVersion or a CryptoKey.
       
      string importing_key = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The bytes for importingKey.
    • getCryptoKeyVersion

      String getCryptoKeyVersion()
       Optional. The optional [name][google.cloud.kms.v1.CryptoKeyVersion.name] of
       an existing [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to
       target for an import operation. If this field is not present, a new
       [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] containing the
       supplied key material is created.
      
       If this field is present, the supplied key material is imported into
       the existing [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. To
       import into an existing
       [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion], the
       [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] must be a child of
       [ImportTrustedKeyWrappedCryptoKeyVersionRequest.parent][google.cloud.kms.v1.ImportTrustedKeyWrappedCryptoKeyVersionRequest.parent],
       have been previously created via
       [ImportTrustedKeyWrappedCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.ImportTrustedKeyWrappedCryptoKeyVersion],
       and be in
       [DESTROYED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROYED]
       or
       [IMPORT_FAILED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.IMPORT_FAILED]
       state. The key material and algorithm must match the previous
       [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] exactly if the
       [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] has ever contained
       key material
       
      string crypto_key_version = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The cryptoKeyVersion.
    • getCryptoKeyVersionBytes

      com.google.protobuf.ByteString getCryptoKeyVersionBytes()
       Optional. The optional [name][google.cloud.kms.v1.CryptoKeyVersion.name] of
       an existing [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to
       target for an import operation. If this field is not present, a new
       [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] containing the
       supplied key material is created.
      
       If this field is present, the supplied key material is imported into
       the existing [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. To
       import into an existing
       [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion], the
       [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] must be a child of
       [ImportTrustedKeyWrappedCryptoKeyVersionRequest.parent][google.cloud.kms.v1.ImportTrustedKeyWrappedCryptoKeyVersionRequest.parent],
       have been previously created via
       [ImportTrustedKeyWrappedCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.ImportTrustedKeyWrappedCryptoKeyVersion],
       and be in
       [DESTROYED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROYED]
       or
       [IMPORT_FAILED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.IMPORT_FAILED]
       state. The key material and algorithm must match the previous
       [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] exactly if the
       [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] has ever contained
       key material
       
      string crypto_key_version = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The bytes for cryptoKeyVersion.
    • getWrappedKey

      com.google.protobuf.ByteString getWrappedKey()
       Required. The target key pre-wrapped on premises.
       
      bytes wrapped_key = 4 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The wrappedKey.
    • getAlgorithmValue

      int getAlgorithmValue()
       Required. Required - The
       [algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
       of the key being imported. This does not need to match the
       [version_template][google.cloud.kms.v1.CryptoKey.version_template] of the
       [CryptoKey][google.cloud.kms.v1.CryptoKey] this version imports into.
       
      .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 5 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The enum numeric value on the wire for algorithm.
    • getAlgorithm

       Required. Required - The
       [algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
       of the key being imported. This does not need to match the
       [version_template][google.cloud.kms.v1.CryptoKey.version_template] of the
       [CryptoKey][google.cloud.kms.v1.CryptoKey] this version imports into.
       
      .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 5 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The algorithm.