Skip to content

Commit

Permalink
feat: [Dialogflow] added support for AssistQueryParameters and Synthe…
Browse files Browse the repository at this point in the history
…sizeSpeechConfig (#5878)

feat: added support for AssistQueryParameters and SynthesizeSpeechConfig
docs: add more meaningful comments
PiperOrigin-RevId: 510042252
Source-Link: googleapis/googleapis@7b30db7
Source-Link: googleapis/googleapis-gen@17beb99
Copy-Tag: eyJwIjoiRGlhbG9nZmxvdy8uT3dsQm90LnlhbWwiLCJoIjoiMTdiZWI5OTQxNzUwYjMxZmFhNDIzYTI5ZDdhMDE4MzQ2YTZiODhiNSJ9
  • Loading branch information
gcf-owl-bot[bot] authored Feb 16, 2023
1 parent fda8c6c commit 220d3fd
Show file tree
Hide file tree
Showing 10 changed files with 103 additions and 0 deletions.
Binary file modified Dialogflow/metadata/V2/Agent.php
Binary file not shown.
Binary file modified Dialogflow/metadata/V2/Conversation.php
Binary file not shown.
Binary file modified Dialogflow/metadata/V2/ConversationDataset.php
Binary file not shown.
Binary file modified Dialogflow/metadata/V2/ConversationModel.php
Binary file not shown.
Binary file modified Dialogflow/metadata/V2/ConversationProfile.php
Binary file not shown.
Binary file modified Dialogflow/metadata/V2/Document.php
Binary file not shown.
Binary file modified Dialogflow/metadata/V2/EntityType.php
Binary file not shown.
52 changes: 52 additions & 0 deletions Dialogflow/src/V2/ConversationProfile.php

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

7 changes: 7 additions & 0 deletions Dialogflow/src/V2/Gapic/ConversationsGapicClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
use Google\ApiCore\Transport\TransportInterface;
use Google\ApiCore\ValidationException;
use Google\Auth\FetchAuthTokenInterface;
use Google\Cloud\Dialogflow\V2\AssistQueryParameters;
use Google\Cloud\Dialogflow\V2\CompleteConversationRequest;
use Google\Cloud\Dialogflow\V2\Conversation;
use Google\Cloud\Dialogflow\V2\CreateConversationRequest;
Expand Down Expand Up @@ -936,6 +937,8 @@ public function listMessages($parent, array $optionalArgs = [])
* Max number of messages prior to and including
* [latest_message] to use as context when compiling the
* suggestion. By default 500 and at most 1000.
* @type AssistQueryParameters $assistQueryParams
* Parameters for a human assist query.
* @type RetrySettings|array $retrySettings
* Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
* associative array of retry settings parameters. See the documentation on
Expand All @@ -960,6 +963,10 @@ public function suggestConversationSummary($conversation, array $optionalArgs =
$request->setContextSize($optionalArgs['contextSize']);
}

if (isset($optionalArgs['assistQueryParams'])) {
$request->setAssistQueryParams($optionalArgs['assistQueryParams']);
}

$requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
$optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
return $this->startCall('SuggestConversationSummary', SuggestConversationSummaryResponse::class, $optionalArgs, $request)->wait();
Expand Down
44 changes: 44 additions & 0 deletions Dialogflow/src/V2/SuggestConversationSummaryRequest.php

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

0 comments on commit 220d3fd

Please sign in to comment.