Cloud KMS V1 Client - Class GetPublicKeyRequest (1.20.3)

Reference documentation and code samples for the Cloud KMS V1 Client class GetPublicKeyRequest.

Request message for KeyManagementService.GetPublicKey.

Generated from protobuf message google.cloud.kms.v1.GetPublicKeyRequest

Namespace

Google \ Cloud \ Kms \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Required. The name of the CryptoKeyVersion public key to get.

getName

Required. The name of the CryptoKeyVersion public key to get.

Returns
TypeDescription
string

setName

Required. The name of the CryptoKeyVersion public key to get.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

static::build

Parameter
NameDescription
name string

Required. The name of the CryptoKeyVersion public key to get. Please see Google\Cloud\Kms\V1\KeyManagementServiceClient::cryptoKeyVersionName() for help formatting this field.

Returns
TypeDescription
Google\Cloud\Kms\V1\GetPublicKeyRequest