Google Cloud Dialogflow V2 Client - Class InitializeEncryptionSpecRequest (1.16.0)

Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class InitializeEncryptionSpecRequest.

The request to initialize a location-level encryption specification.

Generated from protobuf message google.cloud.dialogflow.v2.InitializeEncryptionSpecRequest

Namespace

Google \ Cloud \ Dialogflow \ V2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ encryption_spec Google\Cloud\Dialogflow\V2\EncryptionSpec

Required. The encryption spec used for CMEK encryption. It is required that the kms key is in the same region as the endpoint. The same key will be used for all provisioned resources, if encryption is available. If the kms_key_name is left empty, no encryption will be enforced.

getEncryptionSpec

Required. The encryption spec used for CMEK encryption. It is required that the kms key is in the same region as the endpoint. The same key will be used for all provisioned resources, if encryption is available. If the kms_key_name is left empty, no encryption will be enforced.

Returns
Type Description
Google\Cloud\Dialogflow\V2\EncryptionSpec|null

hasEncryptionSpec

clearEncryptionSpec

setEncryptionSpec

Required. The encryption spec used for CMEK encryption. It is required that the kms key is in the same region as the endpoint. The same key will be used for all provisioned resources, if encryption is available. If the kms_key_name is left empty, no encryption will be enforced.

Parameter
Name Description
var Google\Cloud\Dialogflow\V2\EncryptionSpec
Returns
Type Description
$this

static::build

Parameter
Name Description
encryptionSpec Google\Cloud\Dialogflow\V2\EncryptionSpec

Required. The encryption spec used for CMEK encryption. It is required that the kms key is in the same region as the endpoint. The same key will be used for all provisioned resources, if encryption is available. If the kms_key_name is left empty, no encryption will be enforced.

Returns
Type Description
Google\Cloud\Dialogflow\V2\InitializeEncryptionSpecRequest