Package com.google.cloud.kms.v1
Interface GetPublicKeyRequestOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
GetPublicKeyRequest,GetPublicKeyRequest.Builder
@Generated
public interface GetPublicKeyRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetName()Required.com.google.protobuf.ByteStringRequired.Optional.intOptional.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getName
String getName()Required. The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key to get.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()Required. The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key to get.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- The bytes for name.
-
getPublicKeyFormatValue
int getPublicKeyFormatValue()Optional. The [PublicKey][google.cloud.kms.v1.PublicKey] format specified by the user. This field is required for PQC algorithms. If specified, the public key will be exported through the [public_key][google.cloud.kms.v1.PublicKey.public_key] field in the requested format. Otherwise, the [pem][google.cloud.kms.v1.PublicKey.pem] field will be populated for non-PQC algorithms, and an error will be returned for PQC algorithms.
.google.cloud.kms.v1.PublicKey.PublicKeyFormat public_key_format = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The enum numeric value on the wire for publicKeyFormat.
-
getPublicKeyFormat
PublicKey.PublicKeyFormat getPublicKeyFormat()Optional. The [PublicKey][google.cloud.kms.v1.PublicKey] format specified by the user. This field is required for PQC algorithms. If specified, the public key will be exported through the [public_key][google.cloud.kms.v1.PublicKey.public_key] field in the requested format. Otherwise, the [pem][google.cloud.kms.v1.PublicKey.pem] field will be populated for non-PQC algorithms, and an error will be returned for PQC algorithms.
.google.cloud.kms.v1.PublicKey.PublicKeyFormat public_key_format = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The publicKeyFormat.
-