Skip to content

Commit

Permalink
feat: [Dialogflow] add the fields for setting CX virtual agent sessio…
Browse files Browse the repository at this point in the history
…n parameters (#5262)

* docs: add the fields for setting CX virtual agent session parameters

PiperOrigin-RevId: 446825520

Source-Link: googleapis/googleapis@f6bb255

Source-Link: googleapis/googleapis-gen@cd1450b
Copy-Tag: eyJwIjoiRGlhbG9nZmxvdy8uT3dsQm90LnlhbWwiLCJoIjoiY2QxNDUwYjQwM2I1YTNmOTI2NzZkOGEzNGYwY2ZjMDdmYzc2N2I0MCJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored May 6, 2022
1 parent 9423071 commit 8c40b7e
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 0 deletions.
Binary file modified Dialogflow/metadata/V2/Participant.php
Binary file not shown.
60 changes: 60 additions & 0 deletions Dialogflow/src/V2/AnalyzeContentRequest.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions Dialogflow/src/V2/Gapic/ParticipantsGapicClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
use Google\Cloud\Dialogflow\V2\TextInput;
use Google\Cloud\Dialogflow\V2\UpdateParticipantRequest;
use Google\Protobuf\FieldMask;
use Google\Protobuf\Struct;

/**
* Service Description: Service for managing [Participants][google.cloud.dialogflow.v2.Participant].
Expand Down Expand Up @@ -569,6 +570,13 @@ public function __construct(array $options = [])
* Parameters for a Dialogflow virtual-agent query.
* @type AssistQueryParameters $assistQueryParams
* Parameters for a human assist query.
* @type Struct $cxParameters
* Additional parameters to be put into Dialogflow CX session parameters. To
* remove a parameter from the session, clients should explicitly set the
* parameter value to null.
*
* Note: this field should only be used if you are connecting to a Dialogflow
* CX agent.
* @type string $requestId
* A unique identifier for this request. Restricted to 36 ASCII characters.
* A random UUID is recommended.
Expand Down Expand Up @@ -610,6 +618,10 @@ public function analyzeContent($participant, array $optionalArgs = [])
$request->setAssistQueryParams($optionalArgs['assistQueryParams']);
}

if (isset($optionalArgs['cxParameters'])) {
$request->setCxParameters($optionalArgs['cxParameters']);
}

if (isset($optionalArgs['requestId'])) {
$request->setRequestId($optionalArgs['requestId']);
}
Expand Down

0 comments on commit 8c40b7e

Please sign in to comment.