Skip to content

Commit

Permalink
feat: created new boolean fields in conversation model for zone isola…
Browse files Browse the repository at this point in the history
…tion and zone separation compliance status (#7685)

PiperOrigin-RevId: 676665642
Source-Link: googleapis/googleapis@f87ae44
Source-Link: googleapis/googleapis-gen@d66ac41
Copy-Tag: eyJwIjoiRGlhbG9nZmxvdy8uT3dsQm90LnlhbWwiLCJoIjoiZDY2YWM0MWFhMDcyYmJjNDM2N2Y3ZDI3NThkMGQwYmE3YTcwOTRhNSJ9
  • Loading branch information
gcf-owl-bot[bot] authored Sep 23, 2024
1 parent c337a90 commit 55bcd8c
Show file tree
Hide file tree
Showing 4 changed files with 116 additions and 0 deletions.
Binary file modified Dialogflow/metadata/V2/ConversationModel.php
Binary file not shown.
96 changes: 96 additions & 0 deletions Dialogflow/src/V2/ConversationModel.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/ConversationModelsClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,14 @@ public function createConversationModelTest()
$name = 'name3373707';
$displayName = 'displayName1615086568';
$languageCode = 'languageCode-412800396';
$satisfiesPzs = false;
$satisfiesPzi = false;
$expectedResponse = new ConversationModel();
$expectedResponse->setName($name);
$expectedResponse->setDisplayName($displayName);
$expectedResponse->setLanguageCode($languageCode);
$expectedResponse->setSatisfiesPzs($satisfiesPzs);
$expectedResponse->setSatisfiesPzi($satisfiesPzi);
$anyResponse = new Any();
$anyResponse->setValue($expectedResponse->serializeToString());
$completeOperation = new Operation();
Expand Down Expand Up @@ -602,10 +606,14 @@ public function getConversationModelTest()
$name2 = 'name2-1052831874';
$displayName = 'displayName1615086568';
$languageCode = 'languageCode-412800396';
$satisfiesPzs = false;
$satisfiesPzi = false;
$expectedResponse = new ConversationModel();
$expectedResponse->setName($name2);
$expectedResponse->setDisplayName($displayName);
$expectedResponse->setLanguageCode($languageCode);
$expectedResponse->setSatisfiesPzs($satisfiesPzs);
$expectedResponse->setSatisfiesPzi($satisfiesPzi);
$transport->addResponse($expectedResponse);
// Mock request
$name = 'name3373707';
Expand Down Expand Up @@ -1139,10 +1147,14 @@ public function createConversationModelAsyncTest()
$name = 'name3373707';
$displayName = 'displayName1615086568';
$languageCode = 'languageCode-412800396';
$satisfiesPzs = false;
$satisfiesPzi = false;
$expectedResponse = new ConversationModel();
$expectedResponse->setName($name);
$expectedResponse->setDisplayName($displayName);
$expectedResponse->setLanguageCode($languageCode);
$expectedResponse->setSatisfiesPzs($satisfiesPzs);
$expectedResponse->setSatisfiesPzi($satisfiesPzi);
$anyResponse = new Any();
$anyResponse->setValue($expectedResponse->serializeToString());
$completeOperation = new Operation();
Expand Down
8 changes: 8 additions & 0 deletions Dialogflow/tests/Unit/V2/ConversationModelsClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,14 @@ public function createConversationModelTest()
$name = 'name3373707';
$displayName = 'displayName1615086568';
$languageCode = 'languageCode-412800396';
$satisfiesPzs = false;
$satisfiesPzi = false;
$expectedResponse = new ConversationModel();
$expectedResponse->setName($name);
$expectedResponse->setDisplayName($displayName);
$expectedResponse->setLanguageCode($languageCode);
$expectedResponse->setSatisfiesPzs($satisfiesPzs);
$expectedResponse->setSatisfiesPzi($satisfiesPzi);
$anyResponse = new Any();
$anyResponse->setValue($expectedResponse->serializeToString());
$completeOperation = new Operation();
Expand Down Expand Up @@ -573,10 +577,14 @@ public function getConversationModelTest()
$name2 = 'name2-1052831874';
$displayName = 'displayName1615086568';
$languageCode = 'languageCode-412800396';
$satisfiesPzs = false;
$satisfiesPzi = false;
$expectedResponse = new ConversationModel();
$expectedResponse->setName($name2);
$expectedResponse->setDisplayName($displayName);
$expectedResponse->setLanguageCode($languageCode);
$expectedResponse->setSatisfiesPzs($satisfiesPzs);
$expectedResponse->setSatisfiesPzi($satisfiesPzi);
$transport->addResponse($expectedResponse);
// Mock request
$name = 'name3373707';
Expand Down

0 comments on commit 55bcd8c

Please sign in to comment.