Skip to content

Commit

Permalink
feat: created new boolean fields in conversation dataset for zone iso…
Browse files Browse the repository at this point in the history
…lation and zone separation compliance status (#7701)

feat: add ALAW encoding value to Audio encoding enum
PiperOrigin-RevId: 678636701
Source-Link: googleapis/googleapis@0ede901
Source-Link: googleapis/googleapis-gen@39c4278
Copy-Tag: eyJwIjoiRGlhbG9nZmxvdy8uT3dsQm90LnlhbWwiLCJoIjoiMzljNDI3ODJmZWJjOTIxMjQxMzQ5OTViMmU3ZDc4YmU3NjJiY2MyMiJ9
  • Loading branch information
gcf-owl-bot[bot] authored Sep 27, 2024
1 parent c2d140b commit cd47348
Show file tree
Hide file tree
Showing 7 changed files with 130 additions and 0 deletions.
Binary file modified Dialogflow/metadata/V2/AudioConfig.php
Binary file not shown.
Binary file modified Dialogflow/metadata/V2/ConversationDataset.php
Binary file not shown.
7 changes: 7 additions & 0 deletions Dialogflow/src/V2/AudioEncoding.php

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

96 changes: 96 additions & 0 deletions Dialogflow/src/V2/ConversationDataset.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/OutputAudioEncoding.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/tests/Unit/V2/Client/ConversationDatasetsClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,15 @@ public function createConversationDatasetTest()
$displayName = 'displayName1615086568';
$description = 'description-1724546052';
$conversationCount = 1994187347;
$satisfiesPzi = false;
$satisfiesPzs = false;
$expectedResponse = new ConversationDataset();
$expectedResponse->setName($name);
$expectedResponse->setDisplayName($displayName);
$expectedResponse->setDescription($description);
$expectedResponse->setConversationCount($conversationCount);
$expectedResponse->setSatisfiesPzi($satisfiesPzi);
$expectedResponse->setSatisfiesPzs($satisfiesPzs);
$anyResponse = new Any();
$anyResponse->setValue($expectedResponse->serializeToString());
$completeOperation = new Operation();
Expand Down Expand Up @@ -349,11 +353,15 @@ public function getConversationDatasetTest()
$displayName = 'displayName1615086568';
$description = 'description-1724546052';
$conversationCount = 1994187347;
$satisfiesPzi = false;
$satisfiesPzs = false;
$expectedResponse = new ConversationDataset();
$expectedResponse->setName($name2);
$expectedResponse->setDisplayName($displayName);
$expectedResponse->setDescription($description);
$expectedResponse->setConversationCount($conversationCount);
$expectedResponse->setSatisfiesPzi($satisfiesPzi);
$expectedResponse->setSatisfiesPzs($satisfiesPzs);
$transport->addResponse($expectedResponse);
// Mock request
$formattedName = $gapicClient->conversationDatasetName('[PROJECT]', '[LOCATION]', '[CONVERSATION_DATASET]');
Expand Down Expand Up @@ -758,11 +766,15 @@ public function createConversationDatasetAsyncTest()
$displayName = 'displayName1615086568';
$description = 'description-1724546052';
$conversationCount = 1994187347;
$satisfiesPzi = false;
$satisfiesPzs = false;
$expectedResponse = new ConversationDataset();
$expectedResponse->setName($name);
$expectedResponse->setDisplayName($displayName);
$expectedResponse->setDescription($description);
$expectedResponse->setConversationCount($conversationCount);
$expectedResponse->setSatisfiesPzi($satisfiesPzi);
$expectedResponse->setSatisfiesPzs($satisfiesPzs);
$anyResponse = new Any();
$anyResponse->setValue($expectedResponse->serializeToString());
$completeOperation = new Operation();
Expand Down
8 changes: 8 additions & 0 deletions Dialogflow/tests/Unit/V2/ConversationDatasetsClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,15 @@ public function createConversationDatasetTest()
$displayName = 'displayName1615086568';
$description = 'description-1724546052';
$conversationCount = 1994187347;
$satisfiesPzi = false;
$satisfiesPzs = false;
$expectedResponse = new ConversationDataset();
$expectedResponse->setName($name);
$expectedResponse->setDisplayName($displayName);
$expectedResponse->setDescription($description);
$expectedResponse->setConversationCount($conversationCount);
$expectedResponse->setSatisfiesPzi($satisfiesPzi);
$expectedResponse->setSatisfiesPzs($satisfiesPzs);
$anyResponse = new Any();
$anyResponse->setValue($expectedResponse->serializeToString());
$completeOperation = new Operation();
Expand Down Expand Up @@ -332,11 +336,15 @@ public function getConversationDatasetTest()
$displayName = 'displayName1615086568';
$description = 'description-1724546052';
$conversationCount = 1994187347;
$satisfiesPzi = false;
$satisfiesPzs = false;
$expectedResponse = new ConversationDataset();
$expectedResponse->setName($name2);
$expectedResponse->setDisplayName($displayName);
$expectedResponse->setDescription($description);
$expectedResponse->setConversationCount($conversationCount);
$expectedResponse->setSatisfiesPzi($satisfiesPzi);
$expectedResponse->setSatisfiesPzs($satisfiesPzs);
$transport->addResponse($expectedResponse);
// Mock request
$formattedName = $gapicClient->conversationDatasetName('[PROJECT]', '[LOCATION]', '[CONVERSATION_DATASET]');
Expand Down

0 comments on commit cd47348

Please sign in to comment.