Interface CertificateAuthority.KeyVersionSpecOrBuilder (2.14.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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for cloudKmsKeyVersion.

getKeyVersionCase()

public abstract CertificateAuthority.KeyVersionSpec.KeyVersionCase getKeyVersionCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the cloudKmsKeyVersion field is set.