diff --git a/Dialogflow/metadata/V2/AudioConfig.php b/Dialogflow/metadata/V2/AudioConfig.php
index e76fe515261e..2731adb42d26 100644
Binary files a/Dialogflow/metadata/V2/AudioConfig.php and b/Dialogflow/metadata/V2/AudioConfig.php differ
diff --git a/Dialogflow/metadata/V2/ConversationDataset.php b/Dialogflow/metadata/V2/ConversationDataset.php
index 3dc08562a3e4..647e421711bd 100644
Binary files a/Dialogflow/metadata/V2/ConversationDataset.php and b/Dialogflow/metadata/V2/ConversationDataset.php differ
diff --git a/Dialogflow/src/V2/AudioEncoding.php b/Dialogflow/src/V2/AudioEncoding.php
index ee0084582a04..e630d149e731 100644
--- a/Dialogflow/src/V2/AudioEncoding.php
+++ b/Dialogflow/src/V2/AudioEncoding.php
@@ -83,6 +83,12 @@ class AudioEncoding
* Generated from protobuf enum AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE = 7;
*/
const AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE = 7;
+ /**
+ * 8-bit samples that compand 13-bit audio samples using G.711 PCMU/a-law.
+ *
+ * Generated from protobuf enum AUDIO_ENCODING_ALAW = 8;
+ */
+ const AUDIO_ENCODING_ALAW = 8;
private static $valueToName = [
self::AUDIO_ENCODING_UNSPECIFIED => 'AUDIO_ENCODING_UNSPECIFIED',
@@ -93,6 +99,7 @@ class AudioEncoding
self::AUDIO_ENCODING_AMR_WB => 'AUDIO_ENCODING_AMR_WB',
self::AUDIO_ENCODING_OGG_OPUS => 'AUDIO_ENCODING_OGG_OPUS',
self::AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE => 'AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE',
+ self::AUDIO_ENCODING_ALAW => 'AUDIO_ENCODING_ALAW',
];
public static function name($value)
diff --git a/Dialogflow/src/V2/ConversationDataset.php b/Dialogflow/src/V2/ConversationDataset.php
index 8a069cc231a1..8b57a60a7f3b 100644
--- a/Dialogflow/src/V2/ConversationDataset.php
+++ b/Dialogflow/src/V2/ConversationDataset.php
@@ -63,6 +63,20 @@ class ConversationDataset extends \Google\Protobuf\Internal\Message
* Generated from protobuf field int64 conversation_count = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private $conversation_count = 0;
+ /**
+ * Output only. A read only boolean field reflecting Zone Isolation status of
+ * the dataset.
+ *
+ * Generated from protobuf field optional bool satisfies_pzi = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ private $satisfies_pzi = null;
+ /**
+ * Output only. A read only boolean field reflecting Zone Separation status of
+ * the dataset.
+ *
+ * Generated from protobuf field optional bool satisfies_pzs = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ private $satisfies_pzs = null;
/**
* Constructor.
@@ -87,6 +101,12 @@ class ConversationDataset extends \Google\Protobuf\Internal\Message
* @type int|string $conversation_count
* Output only. The number of conversations this conversation dataset
* contains.
+ * @type bool $satisfies_pzi
+ * Output only. A read only boolean field reflecting Zone Isolation status of
+ * the dataset.
+ * @type bool $satisfies_pzs
+ * Output only. A read only boolean field reflecting Zone Separation status of
+ * the dataset.
* }
*/
public function __construct($data = NULL) {
@@ -312,5 +332,81 @@ public function setConversationCount($var)
return $this;
}
+ /**
+ * Output only. A read only boolean field reflecting Zone Isolation status of
+ * the dataset.
+ *
+ * Generated from protobuf field optional bool satisfies_pzi = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @return bool
+ */
+ public function getSatisfiesPzi()
+ {
+ return isset($this->satisfies_pzi) ? $this->satisfies_pzi : false;
+ }
+
+ public function hasSatisfiesPzi()
+ {
+ return isset($this->satisfies_pzi);
+ }
+
+ public function clearSatisfiesPzi()
+ {
+ unset($this->satisfies_pzi);
+ }
+
+ /**
+ * Output only. A read only boolean field reflecting Zone Isolation status of
+ * the dataset.
+ *
+ * Generated from protobuf field optional bool satisfies_pzi = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @param bool $var
+ * @return $this
+ */
+ public function setSatisfiesPzi($var)
+ {
+ GPBUtil::checkBool($var);
+ $this->satisfies_pzi = $var;
+
+ return $this;
+ }
+
+ /**
+ * Output only. A read only boolean field reflecting Zone Separation status of
+ * the dataset.
+ *
+ * Generated from protobuf field optional bool satisfies_pzs = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @return bool
+ */
+ public function getSatisfiesPzs()
+ {
+ return isset($this->satisfies_pzs) ? $this->satisfies_pzs : false;
+ }
+
+ public function hasSatisfiesPzs()
+ {
+ return isset($this->satisfies_pzs);
+ }
+
+ public function clearSatisfiesPzs()
+ {
+ unset($this->satisfies_pzs);
+ }
+
+ /**
+ * Output only. A read only boolean field reflecting Zone Separation status of
+ * the dataset.
+ *
+ * Generated from protobuf field optional bool satisfies_pzs = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @param bool $var
+ * @return $this
+ */
+ public function setSatisfiesPzs($var)
+ {
+ GPBUtil::checkBool($var);
+ $this->satisfies_pzs = $var;
+
+ return $this;
+ }
+
}
diff --git a/Dialogflow/src/V2/OutputAudioEncoding.php b/Dialogflow/src/V2/OutputAudioEncoding.php
index b8821bce4def..5ddca3f8b2c8 100644
--- a/Dialogflow/src/V2/OutputAudioEncoding.php
+++ b/Dialogflow/src/V2/OutputAudioEncoding.php
@@ -53,6 +53,12 @@ class OutputAudioEncoding
* Generated from protobuf enum OUTPUT_AUDIO_ENCODING_MULAW = 5;
*/
const OUTPUT_AUDIO_ENCODING_MULAW = 5;
+ /**
+ * 8-bit samples that compand 13-bit audio samples using G.711 PCMU/a-law.
+ *
+ * Generated from protobuf enum OUTPUT_AUDIO_ENCODING_ALAW = 6;
+ */
+ const OUTPUT_AUDIO_ENCODING_ALAW = 6;
private static $valueToName = [
self::OUTPUT_AUDIO_ENCODING_UNSPECIFIED => 'OUTPUT_AUDIO_ENCODING_UNSPECIFIED',
@@ -61,6 +67,7 @@ class OutputAudioEncoding
self::OUTPUT_AUDIO_ENCODING_MP3_64_KBPS => 'OUTPUT_AUDIO_ENCODING_MP3_64_KBPS',
self::OUTPUT_AUDIO_ENCODING_OGG_OPUS => 'OUTPUT_AUDIO_ENCODING_OGG_OPUS',
self::OUTPUT_AUDIO_ENCODING_MULAW => 'OUTPUT_AUDIO_ENCODING_MULAW',
+ self::OUTPUT_AUDIO_ENCODING_ALAW => 'OUTPUT_AUDIO_ENCODING_ALAW',
];
public static function name($value)
diff --git a/Dialogflow/tests/Unit/V2/Client/ConversationDatasetsClientTest.php b/Dialogflow/tests/Unit/V2/Client/ConversationDatasetsClientTest.php
index 29e8ce86a2ce..a287e5040f93 100644
--- a/Dialogflow/tests/Unit/V2/Client/ConversationDatasetsClientTest.php
+++ b/Dialogflow/tests/Unit/V2/Client/ConversationDatasetsClientTest.php
@@ -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();
@@ -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]');
@@ -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();
diff --git a/Dialogflow/tests/Unit/V2/ConversationDatasetsClientTest.php b/Dialogflow/tests/Unit/V2/ConversationDatasetsClientTest.php
index dad31af1cf44..ff246344e4d4 100644
--- a/Dialogflow/tests/Unit/V2/ConversationDatasetsClientTest.php
+++ b/Dialogflow/tests/Unit/V2/ConversationDatasetsClientTest.php
@@ -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();
@@ -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]');