Interface CertificateAuthority.KeyVersionSpecOrBuilder (2.49.0)

public static interface CertificateAuthority.KeyVersionSpecOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAlgorithm()

public abstract CertificateAuthority.SignHashAlgorithm getAlgorithm()

Required. The algorithm to use for creating a managed Cloud KMS key for a for a simplified experience. All managed keys will be have their ProtectionLevel as HSM.

.google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CertificateAuthority.SignHashAlgorithm

The algorithm.

getAlgorithmValue()

public abstract int getAlgorithmValue()

Required. The algorithm to use for creating a managed Cloud KMS key for a for a simplified experience. All managed keys will be have their ProtectionLevel as HSM.

.google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for algorithm.

getCloudKmsKeyVersion()

public abstract String getCloudKmsKeyVersion()

Required. The resource name for an existing Cloud KMS CryptoKeyVersion in the format projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*. This option enables full flexibility in the key's capabilities and properties.

string cloud_kms_key_version = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The cloudKmsKeyVersion.

getCloudKmsKeyVersionBytes()

public abstract ByteString getCloudKmsKeyVersionBytes()

Required. The resource name for an existing Cloud KMS CryptoKeyVersion in the format projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*. This option enables full flexibility in the key's capabilities and properties.

string cloud_kms_key_version = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for cloudKmsKeyVersion.

getKeyVersionCase()

public abstract CertificateAuthority.KeyVersionSpec.KeyVersionCase getKeyVersionCase()
Returns
Type Description
CertificateAuthority.KeyVersionSpec.KeyVersionCase

hasAlgorithm()

public abstract boolean hasAlgorithm()

Required. The algorithm to use for creating a managed Cloud KMS key for a for a simplified experience. All managed keys will be have their ProtectionLevel as HSM.

.google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the algorithm field is set.

hasCloudKmsKeyVersion()

public abstract boolean hasCloudKmsKeyVersion()

Required. The resource name for an existing Cloud KMS CryptoKeyVersion in the format projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*. This option enables full flexibility in the key's capabilities and properties.

string cloud_kms_key_version = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the cloudKmsKeyVersion field is set.