Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [Dialogflow] add the fields for setting CX virtual agent session parameters #5262

Merged
merged 2 commits into from
May 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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