Interface CreateCryptoKeyRequestOrBuilder (2.98.0)

public interface CreateCryptoKeyRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getCryptoKey()

public abstract CryptoKey getCryptoKey()

Required. A CryptoKey with initial field values.

.google.cloud.kms.v1.CryptoKey crypto_key = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CryptoKey

The cryptoKey.

getCryptoKeyId()

public abstract String getCryptoKeyId()

Required. It must be unique within a KeyRing and match the regular expression [a-zA-Z0-9_-]{1,63}

string crypto_key_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The cryptoKeyId.

getCryptoKeyIdBytes()

public abstract ByteString getCryptoKeyIdBytes()

Required. It must be unique within a KeyRing and match the regular expression [a-zA-Z0-9_-]{1,63}

string crypto_key_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for cryptoKeyId.

getCryptoKeyOrBuilder()

public abstract CryptoKeyOrBuilder getCryptoKeyOrBuilder()

Required. A CryptoKey with initial field values.

.google.cloud.kms.v1.CryptoKey crypto_key = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CryptoKeyOrBuilder

getParent()

public abstract String getParent()

Required. The name of the KeyRing associated with the CryptoKeys.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public abstract ByteString getParentBytes()

Required. The name of the KeyRing associated with the CryptoKeys.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getSkipInitialVersionCreation()

public abstract boolean getSkipInitialVersionCreation()

If set to true, the request will create a CryptoKey without any CryptoKeyVersions. You must manually call CreateCryptoKeyVersion or ImportCryptoKeyVersion before you can use this CryptoKey.

bool skip_initial_version_creation = 5;

Returns
Type Description
boolean

The skipInitialVersionCreation.

getTrustedWrappingEnabled()

public abstract boolean getTrustedWrappingEnabled()

Optional. Whether trusted wrapping will be enabled on the first CryptoKeyVersions created for this CryptoKey. This field is only supported for keys with CryptoKeyVersionTemplate.protection_level HSM_SINGLE_TENANT. This field is supported for all CryptoKeyPurposes except ENCRYPT_DECRYPT.

bool trusted_wrapping_enabled = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The trustedWrappingEnabled.

hasCryptoKey()

public abstract boolean hasCryptoKey()

Required. A CryptoKey with initial field values.

.google.cloud.kms.v1.CryptoKey crypto_key = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the cryptoKey field is set.