string default_language_code = 3;
*/
@@ -62,7 +63,9 @@ class Agent extends \Google\Protobuf\Internal\Message
/**
* Optional. The URI of the agent's avatar.
* Avatars are used throughout the Dialogflow console and in the self-hosted
- * [Web Demo](https://dialogflow.com/docs/integrations/web-demo) integration.
+ * [Web
+ * Demo](https://cloud.google.com/dialogflow-enterprise/docs/integrations/web-demo)
+ * integration.
*
* Generated from protobuf field string avatar_uri = 7;
*/
@@ -83,7 +86,7 @@ class Agent extends \Google\Protobuf\Internal\Message
* Optional. To filter out false positive results and still get variety in
* matched natural language inputs for your agent, you can tune the machine
* learning classification threshold. If the returned score value is less than
- * the threshold value, then a fallback intent is be triggered or, if there
+ * the threshold value, then a fallback intent will be triggered or, if there
* are no fallback intents defined, no intent will be triggered. The score
* values range from 0.0 (completely uncertain) to 1.0 (completely certain).
* If set to 0.0, the default of 0.3 is used.
@@ -105,9 +108,10 @@ class Agent extends \Google\Protobuf\Internal\Message
* Required. The name of this agent.
* @type string $default_language_code
* Required. The default language of the agent as a language tag. See
- * [Language Support](https://dialogflow.com/docs/reference/language) for a
- * list of the currently supported language codes.
- * This field cannot be set by the `Update` method.
+ * [Language
+ * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * for a list of the currently supported language codes. This field cannot be
+ * set by the `Update` method.
* @type string[]|\Google\Protobuf\Internal\RepeatedField $supported_language_codes
* Optional. The list of all languages supported by this agent (except for the
* `default_language_code`).
@@ -121,7 +125,9 @@ class Agent extends \Google\Protobuf\Internal\Message
* @type string $avatar_uri
* Optional. The URI of the agent's avatar.
* Avatars are used throughout the Dialogflow console and in the self-hosted
- * [Web Demo](https://dialogflow.com/docs/integrations/web-demo) integration.
+ * [Web
+ * Demo](https://cloud.google.com/dialogflow-enterprise/docs/integrations/web-demo)
+ * integration.
* @type bool $enable_logging
* Optional. Determines whether this agent should log conversation queries.
* @type int $match_mode
@@ -130,7 +136,7 @@ class Agent extends \Google\Protobuf\Internal\Message
* Optional. To filter out false positive results and still get variety in
* matched natural language inputs for your agent, you can tune the machine
* learning classification threshold. If the returned score value is less than
- * the threshold value, then a fallback intent is be triggered or, if there
+ * the threshold value, then a fallback intent will be triggered or, if there
* are no fallback intents defined, no intent will be triggered. The score
* values range from 0.0 (completely uncertain) to 1.0 (completely certain).
* If set to 0.0, the default of 0.3 is used.
@@ -197,9 +203,10 @@ public function setDisplayName($var)
/**
* Required. The default language of the agent as a language tag. See
- * [Language Support](https://dialogflow.com/docs/reference/language) for a
- * list of the currently supported language codes.
- * This field cannot be set by the `Update` method.
+ * [Language
+ * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * for a list of the currently supported language codes. This field cannot be
+ * set by the `Update` method.
*
* Generated from protobuf field string default_language_code = 3;
* @return string
@@ -211,9 +218,10 @@ public function getDefaultLanguageCode()
/**
* Required. The default language of the agent as a language tag. See
- * [Language Support](https://dialogflow.com/docs/reference/language) for a
- * list of the currently supported language codes.
- * This field cannot be set by the `Update` method.
+ * [Language
+ * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * for a list of the currently supported language codes. This field cannot be
+ * set by the `Update` method.
*
* Generated from protobuf field string default_language_code = 3;
* @param string $var
@@ -316,7 +324,9 @@ public function setDescription($var)
/**
* Optional. The URI of the agent's avatar.
* Avatars are used throughout the Dialogflow console and in the self-hosted
- * [Web Demo](https://dialogflow.com/docs/integrations/web-demo) integration.
+ * [Web
+ * Demo](https://cloud.google.com/dialogflow-enterprise/docs/integrations/web-demo)
+ * integration.
*
* Generated from protobuf field string avatar_uri = 7;
* @return string
@@ -329,7 +339,9 @@ public function getAvatarUri()
/**
* Optional. The URI of the agent's avatar.
* Avatars are used throughout the Dialogflow console and in the self-hosted
- * [Web Demo](https://dialogflow.com/docs/integrations/web-demo) integration.
+ * [Web
+ * Demo](https://cloud.google.com/dialogflow-enterprise/docs/integrations/web-demo)
+ * integration.
*
* Generated from protobuf field string avatar_uri = 7;
* @param string $var
@@ -399,7 +411,7 @@ public function setMatchMode($var)
* Optional. To filter out false positive results and still get variety in
* matched natural language inputs for your agent, you can tune the machine
* learning classification threshold. If the returned score value is less than
- * the threshold value, then a fallback intent is be triggered or, if there
+ * the threshold value, then a fallback intent will be triggered or, if there
* are no fallback intents defined, no intent will be triggered. The score
* values range from 0.0 (completely uncertain) to 1.0 (completely certain).
* If set to 0.0, the default of 0.3 is used.
@@ -416,7 +428,7 @@ public function getClassificationThreshold()
* Optional. To filter out false positive results and still get variety in
* matched natural language inputs for your agent, you can tune the machine
* learning classification threshold. If the returned score value is less than
- * the threshold value, then a fallback intent is be triggered or, if there
+ * the threshold value, then a fallback intent will be triggered or, if there
* are no fallback intents defined, no intent will be triggered. The score
* values range from 0.0 (completely uncertain) to 1.0 (completely certain).
* If set to 0.0, the default of 0.3 is used.
diff --git a/Dialogflow/src/V2/AgentsGrpcClient.php b/Dialogflow/src/V2/AgentsGrpcClient.php
index 7b8fe845eea5..e6c06b213e0a 100644
--- a/Dialogflow/src/V2/AgentsGrpcClient.php
+++ b/Dialogflow/src/V2/AgentsGrpcClient.php
@@ -2,7 +2,7 @@
// GENERATED CODE -- DO NOT EDIT!
// Original file comments:
-// Copyright 2018 Google Inc.
+// Copyright 2019 Google LLC.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//
+//
namespace Google\Cloud\Dialogflow\V2;
/**
@@ -24,30 +25,29 @@
* in your app, product, or service to determine user intent and respond to the
* user in a natural way.
*
- * After you create an agent, you can add
- * [Intents][google.cloud.dialogflow.v2.Intents],
- * [Contexts][google.cloud.dialogflow.v2.Contexts], [Entity
- * Types][google.cloud.dialogflow.v2.EntityTypes],
- * [Webhooks][google.cloud.dialogflow.v2.WebhookRequest], and so on to manage
- * the flow of a conversation and match user input to predefined intents and
- * actions.
+ * After you create an agent, you can add [Intents][google.cloud.dialogflow.v2.Intents], [Contexts][google.cloud.dialogflow.v2.Contexts],
+ * [Entity Types][google.cloud.dialogflow.v2.EntityTypes], [Webhooks][google.cloud.dialogflow.v2.WebhookRequest], and so on to
+ * manage the flow of a conversation and match user input to predefined intents
+ * and actions.
*
* You can create an agent using both Dialogflow Standard Edition and
* Dialogflow Enterprise Edition. For details, see
- * [Dialogflow Editions](/dialogflow-enterprise/docs/editions).
+ * [Dialogflow
+ * Editions](https://cloud.google.com/dialogflow-enterprise/docs/editions).
*
* You can save your agent for backup or versioning by exporting the agent by
- * using the [ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent]
- * method. You can import a saved agent by using the
- * [ImportAgent][google.cloud.dialogflow.v2.Agents.ImportAgent] method.
+ * using the [ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent] method. You can import a saved
+ * agent by using the [ImportAgent][google.cloud.dialogflow.v2.Agents.ImportAgent] method.
*
* Dialogflow provides several
- * [prebuilt agents](https://dialogflow.com/docs/prebuilt-agents) for common
- * conversation scenarios such as determining a date and time, converting
- * currency, and so on.
+ * [prebuilt
+ * agents](https://cloud.google.com/dialogflow-enterprise/docs/agents-prebuilt)
+ * for common conversation scenarios such as determining a date and time,
+ * converting currency, and so on.
*
* For more information about agents, see the
- * [Dialogflow documentation](https://dialogflow.com/docs/agents).
+ * [Dialogflow
+ * documentation](https://cloud.google.com/dialogflow-enterprise/docs/agents-overview).
*/
class AgentsGrpcClient extends \Grpc\BaseStub {
@@ -97,8 +97,7 @@ public function SearchAgents(\Google\Cloud\Dialogflow\V2\SearchAgentsRequest $ar
/**
* Trains the specified agent.
*
- * Operation google.cloud.dialogflow.v2.AudioEncoding
diff --git a/Dialogflow/src/V2/BatchCreateEntitiesRequest.php b/Dialogflow/src/V2/BatchCreateEntitiesRequest.php
index 53932f2d7b12..3bc816bad971 100644
--- a/Dialogflow/src/V2/BatchCreateEntitiesRequest.php
+++ b/Dialogflow/src/V2/BatchCreateEntitiesRequest.php
@@ -9,8 +9,7 @@
use Google\Protobuf\Internal\GPBUtil;
/**
- * The request message for
- * [EntityTypes.BatchCreateEntities][google.cloud.dialogflow.v2.EntityTypes.BatchCreateEntities].
+ * The request message for [EntityTypes.BatchCreateEntities][google.cloud.dialogflow.v2.EntityTypes.BatchCreateEntities].
*
* Generated from protobuf message google.cloud.dialogflow.v2.BatchCreateEntitiesRequest
*/
@@ -24,7 +23,7 @@ class BatchCreateEntitiesRequest extends \Google\Protobuf\Internal\Message
*/
private $parent = '';
/**
- * Required. The collection of entities to create.
+ * Required. The entities to create.
*
* Generated from protobuf field repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
*/
@@ -32,9 +31,10 @@ class BatchCreateEntitiesRequest extends \Google\Protobuf\Internal\Message
/**
* Optional. The language of entity synonyms defined in `entities`. If not
* specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
* Generated from protobuf field string language_code = 3;
*/
@@ -50,13 +50,14 @@ class BatchCreateEntitiesRequest extends \Google\Protobuf\Internal\Message
* Required. The name of the entity type to create entities in. Format:
* `projects/repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
* @return \Google\Protobuf\Internal\RepeatedField
@@ -104,7 +105,7 @@ public function getEntities()
}
/**
- * Required. The collection of entities to create.
+ * Required. The entities to create.
*
* Generated from protobuf field repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
* @param \Google\Cloud\Dialogflow\V2\EntityType\Entity[]|\Google\Protobuf\Internal\RepeatedField $var
@@ -121,9 +122,10 @@ public function setEntities($var)
/**
* Optional. The language of entity synonyms defined in `entities`. If not
* specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
* Generated from protobuf field string language_code = 3;
* @return string
@@ -136,9 +138,10 @@ public function getLanguageCode()
/**
* Optional. The language of entity synonyms defined in `entities`. If not
* specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
* Generated from protobuf field string language_code = 3;
* @param string $var
diff --git a/Dialogflow/src/V2/BatchDeleteEntitiesRequest.php b/Dialogflow/src/V2/BatchDeleteEntitiesRequest.php
index 8c891a04eb2b..49487dcfd416 100644
--- a/Dialogflow/src/V2/BatchDeleteEntitiesRequest.php
+++ b/Dialogflow/src/V2/BatchDeleteEntitiesRequest.php
@@ -9,8 +9,7 @@
use Google\Protobuf\Internal\GPBUtil;
/**
- * The request message for
- * [EntityTypes.BatchDeleteEntities][google.cloud.dialogflow.v2.EntityTypes.BatchDeleteEntities].
+ * The request message for [EntityTypes.BatchDeleteEntities][google.cloud.dialogflow.v2.EntityTypes.BatchDeleteEntities].
*
* Generated from protobuf message google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest
*/
@@ -34,9 +33,10 @@ class BatchDeleteEntitiesRequest extends \Google\Protobuf\Internal\Message
/**
* Optional. The language of entity synonyms defined in `entities`. If not
* specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
* Generated from protobuf field string language_code = 3;
*/
@@ -58,9 +58,10 @@ class BatchDeleteEntitiesRequest extends \Google\Protobuf\Internal\Message
* @type string $language_code
* Optional. The language of entity synonyms defined in `entities`. If not
* specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
* }
*/
public function __construct($data = NULL) {
@@ -129,9 +130,10 @@ public function setEntityValues($var)
/**
* Optional. The language of entity synonyms defined in `entities`. If not
* specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
* Generated from protobuf field string language_code = 3;
* @return string
@@ -144,9 +146,10 @@ public function getLanguageCode()
/**
* Optional. The language of entity synonyms defined in `entities`. If not
* specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
* Generated from protobuf field string language_code = 3;
* @param string $var
diff --git a/Dialogflow/src/V2/BatchDeleteEntityTypesRequest.php b/Dialogflow/src/V2/BatchDeleteEntityTypesRequest.php
index b2bdae73ba39..1466e74de9a3 100644
--- a/Dialogflow/src/V2/BatchDeleteEntityTypesRequest.php
+++ b/Dialogflow/src/V2/BatchDeleteEntityTypesRequest.php
@@ -9,8 +9,7 @@
use Google\Protobuf\Internal\GPBUtil;
/**
- * The request message for
- * [EntityTypes.BatchDeleteEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchDeleteEntityTypes].
+ * The request message for [EntityTypes.BatchDeleteEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchDeleteEntityTypes].
*
* Generated from protobuf message google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest
*/
diff --git a/Dialogflow/src/V2/BatchDeleteIntentsRequest.php b/Dialogflow/src/V2/BatchDeleteIntentsRequest.php
index abd70219aa95..9c881fd6a211 100644
--- a/Dialogflow/src/V2/BatchDeleteIntentsRequest.php
+++ b/Dialogflow/src/V2/BatchDeleteIntentsRequest.php
@@ -9,8 +9,7 @@
use Google\Protobuf\Internal\GPBUtil;
/**
- * The request message for
- * [Intents.BatchDeleteIntents][google.cloud.dialogflow.v2.Intents.BatchDeleteIntents].
+ * The request message for [Intents.BatchDeleteIntents][google.cloud.dialogflow.v2.Intents.BatchDeleteIntents].
*
* Generated from protobuf message google.cloud.dialogflow.v2.BatchDeleteIntentsRequest
*/
diff --git a/Dialogflow/src/V2/BatchUpdateEntitiesRequest.php b/Dialogflow/src/V2/BatchUpdateEntitiesRequest.php
index e9e19afa6f19..f27c9e7f354d 100644
--- a/Dialogflow/src/V2/BatchUpdateEntitiesRequest.php
+++ b/Dialogflow/src/V2/BatchUpdateEntitiesRequest.php
@@ -9,22 +9,21 @@
use Google\Protobuf\Internal\GPBUtil;
/**
- * The response message for
- * [EntityTypes.BatchCreateEntities][google.cloud.dialogflow.v2.EntityTypes.BatchCreateEntities].
+ * The request message for [EntityTypes.BatchUpdateEntities][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntities].
*
* Generated from protobuf message google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest
*/
class BatchUpdateEntitiesRequest extends \Google\Protobuf\Internal\Message
{
/**
- * Required. The name of the entity type to update the entities in. Format:
- * `projects/string parent = 1;
*/
private $parent = '';
/**
- * Required. The collection of new entities to replace the existing entities.
+ * Required. The entities to update or create.
*
* Generated from protobuf field repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
*/
@@ -32,9 +31,10 @@ class BatchUpdateEntitiesRequest extends \Google\Protobuf\Internal\Message
/**
* Optional. The language of entity synonyms defined in `entities`. If not
* specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
* Generated from protobuf field string language_code = 3;
*/
@@ -53,16 +53,17 @@ class BatchUpdateEntitiesRequest extends \Google\Protobuf\Internal\Message
* Optional. Data for populating the Message object.
*
* @type string $parent
- * Required. The name of the entity type to update the entities in. Format:
- * `projects/string parent = 1;
* @return string
@@ -85,8 +86,8 @@ public function getParent()
}
/**
- * Required. The name of the entity type to update the entities in. Format:
- * `projects/string parent = 1;
* @param string $var
@@ -101,7 +102,7 @@ public function setParent($var)
}
/**
- * Required. The collection of new entities to replace the existing entities.
+ * Required. The entities to update or create.
*
* Generated from protobuf field repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
* @return \Google\Protobuf\Internal\RepeatedField
@@ -112,7 +113,7 @@ public function getEntities()
}
/**
- * Required. The collection of new entities to replace the existing entities.
+ * Required. The entities to update or create.
*
* Generated from protobuf field repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2;
* @param \Google\Cloud\Dialogflow\V2\EntityType\Entity[]|\Google\Protobuf\Internal\RepeatedField $var
@@ -129,9 +130,10 @@ public function setEntities($var)
/**
* Optional. The language of entity synonyms defined in `entities`. If not
* specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
* Generated from protobuf field string language_code = 3;
* @return string
@@ -144,9 +146,10 @@ public function getLanguageCode()
/**
* Optional. The language of entity synonyms defined in `entities`. If not
* specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
* Generated from protobuf field string language_code = 3;
* @param string $var
diff --git a/Dialogflow/src/V2/BatchUpdateEntityTypesRequest.php b/Dialogflow/src/V2/BatchUpdateEntityTypesRequest.php
index 484cf52bb503..ad5364a89bcf 100644
--- a/Dialogflow/src/V2/BatchUpdateEntityTypesRequest.php
+++ b/Dialogflow/src/V2/BatchUpdateEntityTypesRequest.php
@@ -9,8 +9,7 @@
use Google\Protobuf\Internal\GPBUtil;
/**
- * The request message for
- * [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes].
+ * The request message for [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes].
*
* Generated from protobuf message google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest
*/
@@ -26,9 +25,10 @@ class BatchUpdateEntityTypesRequest extends \Google\Protobuf\Internal\Message
/**
* Optional. The language of entity synonyms defined in `entity_types`. If not
* specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
* Generated from protobuf field string language_code = 4;
*/
@@ -56,13 +56,14 @@ class BatchUpdateEntityTypesRequest extends \Google\Protobuf\Internal\Message
* EntityBatch type) or a JSON object. Note: The URI must start with
* "gs://".
* @type \Google\Cloud\Dialogflow\V2\EntityTypeBatch $entity_type_batch_inline
- * The collection of entity type to update or create.
+ * The collection of entity types to update or create.
* @type string $language_code
* Optional. The language of entity synonyms defined in `entity_types`. If not
* specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
* @type \Google\Protobuf\FieldMask $update_mask
* Optional. The mask to control which fields get updated.
* }
@@ -133,7 +134,7 @@ public function setEntityTypeBatchUri($var)
}
/**
- * The collection of entity type to update or create.
+ * The collection of entity types to update or create.
*
* Generated from protobuf field .google.cloud.dialogflow.v2.EntityTypeBatch entity_type_batch_inline = 3;
* @return \Google\Cloud\Dialogflow\V2\EntityTypeBatch
@@ -144,7 +145,7 @@ public function getEntityTypeBatchInline()
}
/**
- * The collection of entity type to update or create.
+ * The collection of entity types to update or create.
*
* Generated from protobuf field .google.cloud.dialogflow.v2.EntityTypeBatch entity_type_batch_inline = 3;
* @param \Google\Cloud\Dialogflow\V2\EntityTypeBatch $var
@@ -161,9 +162,10 @@ public function setEntityTypeBatchInline($var)
/**
* Optional. The language of entity synonyms defined in `entity_types`. If not
* specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
* Generated from protobuf field string language_code = 4;
* @return string
@@ -176,9 +178,10 @@ public function getLanguageCode()
/**
* Optional. The language of entity synonyms defined in `entity_types`. If not
* specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
* Generated from protobuf field string language_code = 4;
* @param string $var
diff --git a/Dialogflow/src/V2/BatchUpdateEntityTypesResponse.php b/Dialogflow/src/V2/BatchUpdateEntityTypesResponse.php
index 0743a4cd4bc2..82bc01b945ad 100644
--- a/Dialogflow/src/V2/BatchUpdateEntityTypesResponse.php
+++ b/Dialogflow/src/V2/BatchUpdateEntityTypesResponse.php
@@ -9,8 +9,7 @@
use Google\Protobuf\Internal\GPBUtil;
/**
- * The response message for
- * [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes].
+ * The response message for [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes].
*
* Generated from protobuf message google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse
*/
diff --git a/Dialogflow/src/V2/BatchUpdateIntentsRequest.php b/Dialogflow/src/V2/BatchUpdateIntentsRequest.php
index 730f21a96c2e..be00de5762d1 100644
--- a/Dialogflow/src/V2/BatchUpdateIntentsRequest.php
+++ b/Dialogflow/src/V2/BatchUpdateIntentsRequest.php
@@ -9,8 +9,7 @@
use Google\Protobuf\Internal\GPBUtil;
/**
- * The request message for
- * [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents].
+ * The request message for [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents].
*
* Generated from protobuf message google.cloud.dialogflow.v2.BatchUpdateIntentsRequest
*/
@@ -26,9 +25,10 @@ class BatchUpdateIntentsRequest extends \Google\Protobuf\Internal\Message
/**
* Optional. The language of training phrases, parameters and rich messages
* defined in `intents`. If not specified, the agent's default language is
- * used. [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * used. [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
* Generated from protobuf field string language_code = 4;
*/
@@ -65,9 +65,10 @@ class BatchUpdateIntentsRequest extends \Google\Protobuf\Internal\Message
* @type string $language_code
* Optional. The language of training phrases, parameters and rich messages
* defined in `intents`. If not specified, the agent's default language is
- * used. [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * used. [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
* @type \Google\Protobuf\FieldMask $update_mask
* Optional. The mask to control which fields get updated.
* @type int $intent_view
@@ -166,9 +167,10 @@ public function setIntentBatchInline($var)
/**
* Optional. The language of training phrases, parameters and rich messages
* defined in `intents`. If not specified, the agent's default language is
- * used. [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * used. [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
* Generated from protobuf field string language_code = 4;
* @return string
@@ -181,9 +183,10 @@ public function getLanguageCode()
/**
* Optional. The language of training phrases, parameters and rich messages
* defined in `intents`. If not specified, the agent's default language is
- * used. [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * used. [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
* Generated from protobuf field string language_code = 4;
* @param string $var
diff --git a/Dialogflow/src/V2/BatchUpdateIntentsResponse.php b/Dialogflow/src/V2/BatchUpdateIntentsResponse.php
index 4c4efe04c843..340a4b8e9666 100644
--- a/Dialogflow/src/V2/BatchUpdateIntentsResponse.php
+++ b/Dialogflow/src/V2/BatchUpdateIntentsResponse.php
@@ -9,8 +9,7 @@
use Google\Protobuf\Internal\GPBUtil;
/**
- * The response message for
- * [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents].
+ * The response message for [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents].
*
* Generated from protobuf message google.cloud.dialogflow.v2.BatchUpdateIntentsResponse
*/
diff --git a/Dialogflow/src/V2/Context.php b/Dialogflow/src/V2/Context.php
index 15e842729b60..e2053b09a05b 100644
--- a/Dialogflow/src/V2/Context.php
+++ b/Dialogflow/src/V2/Context.php
@@ -18,6 +18,8 @@ class Context extends \Google\Protobuf\Internal\Message
/**
* Required. The unique identifier of the context. Format:
* `projects/string name = 1;
*/
@@ -25,7 +27,7 @@ class Context extends \Google\Protobuf\Internal\Message
/**
* Optional. The number of conversational query requests after which the
* context expires. If set to `0` (the default) the context expires
- * immediately. Contexts expire automatically after 10 minutes even if there
+ * immediately. Contexts expire automatically after 20 minutes if there
* are no matching queries.
*
* Generated from protobuf field int32 lifespan_count = 2;
@@ -33,8 +35,9 @@ class Context extends \Google\Protobuf\Internal\Message
private $lifespan_count = 0;
/**
* Optional. The collection of parameters associated with this context.
- * Refer to [this doc](https://dialogflow.com/docs/actions-and-parameters) for
- * syntax.
+ * Refer to [this
+ * doc](https://cloud.google.com/dialogflow-enterprise/docs/intents-actions-parameters)
+ * for syntax.
*
* Generated from protobuf field .google.protobuf.Struct parameters = 3;
*/
@@ -49,15 +52,18 @@ class Context extends \Google\Protobuf\Internal\Message
* @type string $name
* Required. The unique identifier of the context. Format:
* `projects/string name = 1;
* @return string
@@ -80,6 +88,8 @@ public function getName()
/**
* Required. The unique identifier of the context. Format:
* `projects/string name = 1;
* @param string $var
@@ -96,7 +106,7 @@ public function setName($var)
/**
* Optional. The number of conversational query requests after which the
* context expires. If set to `0` (the default) the context expires
- * immediately. Contexts expire automatically after 10 minutes even if there
+ * immediately. Contexts expire automatically after 20 minutes if there
* are no matching queries.
*
* Generated from protobuf field int32 lifespan_count = 2;
@@ -110,7 +120,7 @@ public function getLifespanCount()
/**
* Optional. The number of conversational query requests after which the
* context expires. If set to `0` (the default) the context expires
- * immediately. Contexts expire automatically after 10 minutes even if there
+ * immediately. Contexts expire automatically after 20 minutes if there
* are no matching queries.
*
* Generated from protobuf field int32 lifespan_count = 2;
@@ -127,8 +137,9 @@ public function setLifespanCount($var)
/**
* Optional. The collection of parameters associated with this context.
- * Refer to [this doc](https://dialogflow.com/docs/actions-and-parameters) for
- * syntax.
+ * Refer to [this
+ * doc](https://cloud.google.com/dialogflow-enterprise/docs/intents-actions-parameters)
+ * for syntax.
*
* Generated from protobuf field .google.protobuf.Struct parameters = 3;
* @return \Google\Protobuf\Struct
@@ -140,8 +151,9 @@ public function getParameters()
/**
* Optional. The collection of parameters associated with this context.
- * Refer to [this doc](https://dialogflow.com/docs/actions-and-parameters) for
- * syntax.
+ * Refer to [this
+ * doc](https://cloud.google.com/dialogflow-enterprise/docs/intents-actions-parameters)
+ * for syntax.
*
* Generated from protobuf field .google.protobuf.Struct parameters = 3;
* @param \Google\Protobuf\Struct $var
diff --git a/Dialogflow/src/V2/ContextsGrpcClient.php b/Dialogflow/src/V2/ContextsGrpcClient.php
index c332541f033b..2fcd80900a47 100644
--- a/Dialogflow/src/V2/ContextsGrpcClient.php
+++ b/Dialogflow/src/V2/ContextsGrpcClient.php
@@ -2,7 +2,7 @@
// GENERATED CODE -- DO NOT EDIT!
// Original file comments:
-// Copyright 2018 Google Inc.
+// Copyright 2019 Google LLC.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//
+//
namespace Google\Cloud\Dialogflow\V2;
/**
@@ -28,14 +29,15 @@
*
* You can include contexts as input parameters of a
* [DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] (or
- * [StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent])
- * request, or as output contexts included in the returned intent. Contexts
- * expire when an intent is matched, after the number of `DetectIntent` requests
- * specified by the `lifespan_count` parameter, or after 10 minutes if no
- * intents are matched for a `DetectIntent` request.
+ * [StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent]) request,
+ * or as output contexts included in the returned intent.
+ * Contexts expire when an intent is matched, after the number of `DetectIntent`
+ * requests specified by the `lifespan_count` parameter, or after 20 minutes
+ * if no intents are matched for a `DetectIntent` request.
*
* For more information about contexts, see the
- * [Dialogflow documentation](https://dialogflow.com/docs/contexts).
+ * [Dialogflow
+ * documentation](https://cloud.google.com/dialogflow-enterprise/docs/contexts-overview).
*/
class ContextsGrpcClient extends \Grpc\BaseStub {
@@ -78,6 +80,8 @@ public function GetContext(\Google\Cloud\Dialogflow\V2\GetContextRequest $argume
/**
* Creates a context.
+ *
+ * If the specified context already exists, overrides the context.
* @param \Google\Cloud\Dialogflow\V2\CreateContextRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
diff --git a/Dialogflow/src/V2/CreateContextRequest.php b/Dialogflow/src/V2/CreateContextRequest.php
index 284948cdd54e..e8060b94cbbb 100644
--- a/Dialogflow/src/V2/CreateContextRequest.php
+++ b/Dialogflow/src/V2/CreateContextRequest.php
@@ -9,8 +9,7 @@
use Google\Protobuf\Internal\GPBUtil;
/**
- * The request message for
- * [Contexts.CreateContext][google.cloud.dialogflow.v2.Contexts.CreateContext].
+ * The request message for [Contexts.CreateContext][google.cloud.dialogflow.v2.Contexts.CreateContext].
*
* Generated from protobuf message google.cloud.dialogflow.v2.CreateContextRequest
*/
diff --git a/Dialogflow/src/V2/CreateEntityTypeRequest.php b/Dialogflow/src/V2/CreateEntityTypeRequest.php
index e9653b9592dd..33ee872d9e32 100644
--- a/Dialogflow/src/V2/CreateEntityTypeRequest.php
+++ b/Dialogflow/src/V2/CreateEntityTypeRequest.php
@@ -9,8 +9,7 @@
use Google\Protobuf\Internal\GPBUtil;
/**
- * The request message for
- * [EntityTypes.CreateEntityType][google.cloud.dialogflow.v2.EntityTypes.CreateEntityType].
+ * The request message for [EntityTypes.CreateEntityType][google.cloud.dialogflow.v2.EntityTypes.CreateEntityType].
*
* Generated from protobuf message google.cloud.dialogflow.v2.CreateEntityTypeRequest
*/
@@ -32,9 +31,10 @@ class CreateEntityTypeRequest extends \Google\Protobuf\Internal\Message
/**
* Optional. The language of entity synonyms defined in `entity_type`. If not
* specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
* Generated from protobuf field string language_code = 3;
*/
@@ -54,9 +54,10 @@ class CreateEntityTypeRequest extends \Google\Protobuf\Internal\Message
* @type string $language_code
* Optional. The language of entity synonyms defined in `entity_type`. If not
* specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
* }
*/
public function __construct($data = NULL) {
@@ -121,9 +122,10 @@ public function setEntityType($var)
/**
* Optional. The language of entity synonyms defined in `entity_type`. If not
* specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
* Generated from protobuf field string language_code = 3;
* @return string
@@ -136,9 +138,10 @@ public function getLanguageCode()
/**
* Optional. The language of entity synonyms defined in `entity_type`. If not
* specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
* Generated from protobuf field string language_code = 3;
* @param string $var
diff --git a/Dialogflow/src/V2/CreateIntentRequest.php b/Dialogflow/src/V2/CreateIntentRequest.php
index 6d39a31bc8f3..d651155947aa 100644
--- a/Dialogflow/src/V2/CreateIntentRequest.php
+++ b/Dialogflow/src/V2/CreateIntentRequest.php
@@ -9,8 +9,7 @@
use Google\Protobuf\Internal\GPBUtil;
/**
- * The request message for
- * [Intents.CreateIntent][google.cloud.dialogflow.v2.Intents.CreateIntent].
+ * The request message for [Intents.CreateIntent][google.cloud.dialogflow.v2.Intents.CreateIntent].
*
* Generated from protobuf message google.cloud.dialogflow.v2.CreateIntentRequest
*/
@@ -32,9 +31,10 @@ class CreateIntentRequest extends \Google\Protobuf\Internal\Message
/**
* Optional. The language of training phrases, parameters and rich messages
* defined in `intent`. If not specified, the agent's default language is
- * used. [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * used. [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
* Generated from protobuf field string language_code = 3;
*/
@@ -60,9 +60,10 @@ class CreateIntentRequest extends \Google\Protobuf\Internal\Message
* @type string $language_code
* Optional. The language of training phrases, parameters and rich messages
* defined in `intent`. If not specified, the agent's default language is
- * used. [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * used. [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
* @type int $intent_view
* Optional. The resource view to apply to the returned intent.
* }
@@ -129,9 +130,10 @@ public function setIntent($var)
/**
* Optional. The language of training phrases, parameters and rich messages
* defined in `intent`. If not specified, the agent's default language is
- * used. [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * used. [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
* Generated from protobuf field string language_code = 3;
* @return string
@@ -144,9 +146,10 @@ public function getLanguageCode()
/**
* Optional. The language of training phrases, parameters and rich messages
* defined in `intent`. If not specified, the agent's default language is
- * used. [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * used. [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
* Generated from protobuf field string language_code = 3;
* @param string $var
diff --git a/Dialogflow/src/V2/CreateSessionEntityTypeRequest.php b/Dialogflow/src/V2/CreateSessionEntityTypeRequest.php
index 2b22b63bcaf4..99f803bacf08 100644
--- a/Dialogflow/src/V2/CreateSessionEntityTypeRequest.php
+++ b/Dialogflow/src/V2/CreateSessionEntityTypeRequest.php
@@ -9,8 +9,7 @@
use Google\Protobuf\Internal\GPBUtil;
/**
- * The request message for
- * [SessionEntityTypes.CreateSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.CreateSessionEntityType].
+ * The request message for [SessionEntityTypes.CreateSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.CreateSessionEntityType].
*
* Generated from protobuf message google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest
*/
diff --git a/Dialogflow/src/V2/DeleteAllContextsRequest.php b/Dialogflow/src/V2/DeleteAllContextsRequest.php
index be679cc387ba..2a898129542c 100644
--- a/Dialogflow/src/V2/DeleteAllContextsRequest.php
+++ b/Dialogflow/src/V2/DeleteAllContextsRequest.php
@@ -9,8 +9,7 @@
use Google\Protobuf\Internal\GPBUtil;
/**
- * The request message for
- * [Contexts.DeleteAllContexts][google.cloud.dialogflow.v2.Contexts.DeleteAllContexts].
+ * The request message for [Contexts.DeleteAllContexts][google.cloud.dialogflow.v2.Contexts.DeleteAllContexts].
*
* Generated from protobuf message google.cloud.dialogflow.v2.DeleteAllContextsRequest
*/
diff --git a/Dialogflow/src/V2/DeleteContextRequest.php b/Dialogflow/src/V2/DeleteContextRequest.php
index 0b0f6e30f523..84d417c6edb2 100644
--- a/Dialogflow/src/V2/DeleteContextRequest.php
+++ b/Dialogflow/src/V2/DeleteContextRequest.php
@@ -9,8 +9,7 @@
use Google\Protobuf\Internal\GPBUtil;
/**
- * The request message for
- * [Contexts.DeleteContext][google.cloud.dialogflow.v2.Contexts.DeleteContext].
+ * The request message for [Contexts.DeleteContext][google.cloud.dialogflow.v2.Contexts.DeleteContext].
*
* Generated from protobuf message google.cloud.dialogflow.v2.DeleteContextRequest
*/
diff --git a/Dialogflow/src/V2/DeleteEntityTypeRequest.php b/Dialogflow/src/V2/DeleteEntityTypeRequest.php
index e4d26de18464..d13868e37029 100644
--- a/Dialogflow/src/V2/DeleteEntityTypeRequest.php
+++ b/Dialogflow/src/V2/DeleteEntityTypeRequest.php
@@ -9,8 +9,7 @@
use Google\Protobuf\Internal\GPBUtil;
/**
- * The request message for
- * [EntityTypes.DeleteEntityType][google.cloud.dialogflow.v2.EntityTypes.DeleteEntityType].
+ * The request message for [EntityTypes.DeleteEntityType][google.cloud.dialogflow.v2.EntityTypes.DeleteEntityType].
*
* Generated from protobuf message google.cloud.dialogflow.v2.DeleteEntityTypeRequest
*/
diff --git a/Dialogflow/src/V2/DeleteIntentRequest.php b/Dialogflow/src/V2/DeleteIntentRequest.php
index c212ae8f69e7..b6a8a91351fd 100644
--- a/Dialogflow/src/V2/DeleteIntentRequest.php
+++ b/Dialogflow/src/V2/DeleteIntentRequest.php
@@ -9,15 +9,15 @@
use Google\Protobuf\Internal\GPBUtil;
/**
- * The request message for
- * [Intents.DeleteIntent][google.cloud.dialogflow.v2.Intents.DeleteIntent].
+ * The request message for [Intents.DeleteIntent][google.cloud.dialogflow.v2.Intents.DeleteIntent].
*
* Generated from protobuf message google.cloud.dialogflow.v2.DeleteIntentRequest
*/
class DeleteIntentRequest extends \Google\Protobuf\Internal\Message
{
/**
- * Required. The name of the intent to delete.
+ * Required. The name of the intent to delete. If this intent has direct or
+ * indirect followup intents, we also delete them.
* Format: `projects/string name = 1;
@@ -31,7 +31,8 @@ class DeleteIntentRequest extends \Google\Protobuf\Internal\Message
* Optional. Data for populating the Message object.
*
* @type string $name
- * Required. The name of the intent to delete.
+ * Required. The name of the intent to delete. If this intent has direct or
+ * indirect followup intents, we also delete them.
* Format: `projects/string name = 1;
@@ -53,7 +55,8 @@ public function getName()
}
/**
- * Required. The name of the intent to delete.
+ * Required. The name of the intent to delete. If this intent has direct or
+ * indirect followup intents, we also delete them.
* Format: `projects/string name = 1;
diff --git a/Dialogflow/src/V2/DeleteSessionEntityTypeRequest.php b/Dialogflow/src/V2/DeleteSessionEntityTypeRequest.php
index c354fe4a7d55..3bfd39891e72 100644
--- a/Dialogflow/src/V2/DeleteSessionEntityTypeRequest.php
+++ b/Dialogflow/src/V2/DeleteSessionEntityTypeRequest.php
@@ -9,8 +9,7 @@
use Google\Protobuf\Internal\GPBUtil;
/**
- * The request message for
- * [SessionEntityTypes.DeleteSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.DeleteSessionEntityType].
+ * The request message for [SessionEntityTypes.DeleteSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.DeleteSessionEntityType].
*
* Generated from protobuf message google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest
*/
diff --git a/Dialogflow/src/V2/DetectIntentRequest.php b/Dialogflow/src/V2/DetectIntentRequest.php
index dd603f037ac1..5b652874d74c 100644
--- a/Dialogflow/src/V2/DetectIntentRequest.php
+++ b/Dialogflow/src/V2/DetectIntentRequest.php
@@ -41,6 +41,14 @@ class DetectIntentRequest extends \Google\Protobuf\Internal\Message
* Generated from protobuf field .google.cloud.dialogflow.v2.QueryInput query_input = 3;
*/
private $query_input = null;
+ /**
+ * Optional. Instructs the speech synthesizer how to generate the output
+ * audio. If this field is not set and agent-level speech synthesizer is not
+ * configured, no output audio is generated.
+ *
+ * Generated from protobuf field .google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 4;
+ */
+ private $output_audio_config = null;
/**
* Optional. The natural language speech audio to be processed. This field
* should be populated iff `query_input` is set to an input audio config.
@@ -70,6 +78,10 @@ class DetectIntentRequest extends \Google\Protobuf\Internal\Message
* which instructs the speech recognizer how to process the speech audio,
* 2. a conversational query in the form of text, or
* 3. an event that specifies which intent to trigger.
+ * @type \Google\Cloud\Dialogflow\V2\OutputAudioConfig $output_audio_config
+ * Optional. Instructs the speech synthesizer how to generate the output
+ * audio. If this field is not set and agent-level speech synthesizer is not
+ * configured, no output audio is generated.
* @type string $input_audio
* Optional. The natural language speech audio to be processed. This field
* should be populated iff `query_input` is set to an input audio config.
@@ -175,6 +187,36 @@ public function setQueryInput($var)
return $this;
}
+ /**
+ * Optional. Instructs the speech synthesizer how to generate the output
+ * audio. If this field is not set and agent-level speech synthesizer is not
+ * configured, no output audio is generated.
+ *
+ * Generated from protobuf field .google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 4;
+ * @return \Google\Cloud\Dialogflow\V2\OutputAudioConfig
+ */
+ public function getOutputAudioConfig()
+ {
+ return $this->output_audio_config;
+ }
+
+ /**
+ * Optional. Instructs the speech synthesizer how to generate the output
+ * audio. If this field is not set and agent-level speech synthesizer is not
+ * configured, no output audio is generated.
+ *
+ * Generated from protobuf field .google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 4;
+ * @param \Google\Cloud\Dialogflow\V2\OutputAudioConfig $var
+ * @return $this
+ */
+ public function setOutputAudioConfig($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\OutputAudioConfig::class);
+ $this->output_audio_config = $var;
+
+ return $this;
+ }
+
/**
* Optional. The natural language speech audio to be processed. This field
* should be populated iff `query_input` is set to an input audio config.
diff --git a/Dialogflow/src/V2/DetectIntentResponse.php b/Dialogflow/src/V2/DetectIntentResponse.php
index 7953fda9bf57..25d65c7270d6 100644
--- a/Dialogflow/src/V2/DetectIntentResponse.php
+++ b/Dialogflow/src/V2/DetectIntentResponse.php
@@ -23,18 +23,35 @@ class DetectIntentResponse extends \Google\Protobuf\Internal\Message
*/
private $response_id = '';
/**
- * The results of the conversational query or event processing.
+ * The selected results of the conversational query or event processing.
+ * See `alternative_query_results` for additional potential results.
*
* Generated from protobuf field .google.cloud.dialogflow.v2.QueryResult query_result = 2;
*/
private $query_result = null;
/**
- * Specifies the status of the webhook request. `webhook_status`
- * is never populated in webhook requests.
+ * Specifies the status of the webhook request.
*
* Generated from protobuf field .google.rpc.Status webhook_status = 3;
*/
private $webhook_status = null;
+ /**
+ * The audio data bytes encoded as specified in the request.
+ * Note: The output audio is generated based on the values of default platform
+ * text responses found in the `query_result.fulfillment_messages` field. If
+ * multiple default text responses exist, they will be concatenated when
+ * generating audio. If no default platform text responses exist, the
+ * generated audio content will be empty.
+ *
+ * Generated from protobuf field bytes output_audio = 4;
+ */
+ private $output_audio = '';
+ /**
+ * The config used by the speech synthesizer to generate the output audio.
+ *
+ * Generated from protobuf field .google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 6;
+ */
+ private $output_audio_config = null;
/**
* Constructor.
@@ -46,10 +63,19 @@ class DetectIntentResponse extends \Google\Protobuf\Internal\Message
* The unique identifier of the response. It can be used to
* locate a response in the training example set or for reporting issues.
* @type \Google\Cloud\Dialogflow\V2\QueryResult $query_result
- * The results of the conversational query or event processing.
+ * The selected results of the conversational query or event processing.
+ * See `alternative_query_results` for additional potential results.
* @type \Google\Rpc\Status $webhook_status
- * Specifies the status of the webhook request. `webhook_status`
- * is never populated in webhook requests.
+ * Specifies the status of the webhook request.
+ * @type string $output_audio
+ * The audio data bytes encoded as specified in the request.
+ * Note: The output audio is generated based on the values of default platform
+ * text responses found in the `query_result.fulfillment_messages` field. If
+ * multiple default text responses exist, they will be concatenated when
+ * generating audio. If no default platform text responses exist, the
+ * generated audio content will be empty.
+ * @type \Google\Cloud\Dialogflow\V2\OutputAudioConfig $output_audio_config
+ * The config used by the speech synthesizer to generate the output audio.
* }
*/
public function __construct($data = NULL) {
@@ -86,7 +112,8 @@ public function setResponseId($var)
}
/**
- * The results of the conversational query or event processing.
+ * The selected results of the conversational query or event processing.
+ * See `alternative_query_results` for additional potential results.
*
* Generated from protobuf field .google.cloud.dialogflow.v2.QueryResult query_result = 2;
* @return \Google\Cloud\Dialogflow\V2\QueryResult
@@ -97,7 +124,8 @@ public function getQueryResult()
}
/**
- * The results of the conversational query or event processing.
+ * The selected results of the conversational query or event processing.
+ * See `alternative_query_results` for additional potential results.
*
* Generated from protobuf field .google.cloud.dialogflow.v2.QueryResult query_result = 2;
* @param \Google\Cloud\Dialogflow\V2\QueryResult $var
@@ -112,8 +140,7 @@ public function setQueryResult($var)
}
/**
- * Specifies the status of the webhook request. `webhook_status`
- * is never populated in webhook requests.
+ * Specifies the status of the webhook request.
*
* Generated from protobuf field .google.rpc.Status webhook_status = 3;
* @return \Google\Rpc\Status
@@ -124,8 +151,7 @@ public function getWebhookStatus()
}
/**
- * Specifies the status of the webhook request. `webhook_status`
- * is never populated in webhook requests.
+ * Specifies the status of the webhook request.
*
* Generated from protobuf field .google.rpc.Status webhook_status = 3;
* @param \Google\Rpc\Status $var
@@ -139,5 +165,67 @@ public function setWebhookStatus($var)
return $this;
}
+ /**
+ * The audio data bytes encoded as specified in the request.
+ * Note: The output audio is generated based on the values of default platform
+ * text responses found in the `query_result.fulfillment_messages` field. If
+ * multiple default text responses exist, they will be concatenated when
+ * generating audio. If no default platform text responses exist, the
+ * generated audio content will be empty.
+ *
+ * Generated from protobuf field bytes output_audio = 4;
+ * @return string
+ */
+ public function getOutputAudio()
+ {
+ return $this->output_audio;
+ }
+
+ /**
+ * The audio data bytes encoded as specified in the request.
+ * Note: The output audio is generated based on the values of default platform
+ * text responses found in the `query_result.fulfillment_messages` field. If
+ * multiple default text responses exist, they will be concatenated when
+ * generating audio. If no default platform text responses exist, the
+ * generated audio content will be empty.
+ *
+ * Generated from protobuf field bytes output_audio = 4;
+ * @param string $var
+ * @return $this
+ */
+ public function setOutputAudio($var)
+ {
+ GPBUtil::checkString($var, False);
+ $this->output_audio = $var;
+
+ return $this;
+ }
+
+ /**
+ * The config used by the speech synthesizer to generate the output audio.
+ *
+ * Generated from protobuf field .google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 6;
+ * @return \Google\Cloud\Dialogflow\V2\OutputAudioConfig
+ */
+ public function getOutputAudioConfig()
+ {
+ return $this->output_audio_config;
+ }
+
+ /**
+ * The config used by the speech synthesizer to generate the output audio.
+ *
+ * Generated from protobuf field .google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 6;
+ * @param \Google\Cloud\Dialogflow\V2\OutputAudioConfig $var
+ * @return $this
+ */
+ public function setOutputAudioConfig($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\OutputAudioConfig::class);
+ $this->output_audio_config = $var;
+
+ return $this;
+ }
+
}
diff --git a/Dialogflow/src/V2/EntityType.php b/Dialogflow/src/V2/EntityType.php
index da4283b2f61a..7ac7ffad017a 100644
--- a/Dialogflow/src/V2/EntityType.php
+++ b/Dialogflow/src/V2/EntityType.php
@@ -18,16 +18,16 @@
class EntityType extends \Google\Protobuf\Internal\Message
{
/**
- * Required for all methods except `create` (`create` populates the name
- * automatically.
- * The unique identifier of the entity type. Format:
- * `projects/string name = 1;
*/
private $name = '';
/**
- * Required. The name of the entity.
+ * Required. The name of the entity type.
*
* Generated from protobuf field string display_name = 2;
*/
@@ -46,7 +46,7 @@ class EntityType extends \Google\Protobuf\Internal\Message
*/
private $auto_expansion_mode = 0;
/**
- * Optional. The collection of entities associated with the entity type.
+ * Optional. The collection of entity entries associated with the entity type.
*
* Generated from protobuf field repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6;
*/
@@ -59,19 +59,19 @@ class EntityType extends \Google\Protobuf\Internal\Message
* Optional. Data for populating the Message object.
*
* @type string $name
- * Required for all methods except `create` (`create` populates the name
- * automatically.
- * The unique identifier of the entity type. Format:
- * `projects/string name = 1;
* @return string
@@ -94,10 +94,10 @@ public function getName()
}
/**
- * Required for all methods except `create` (`create` populates the name
- * automatically.
- * The unique identifier of the entity type. Format:
- * `projects/string name = 1;
* @param string $var
@@ -112,7 +112,7 @@ public function setName($var)
}
/**
- * Required. The name of the entity.
+ * Required. The name of the entity type.
*
* Generated from protobuf field string display_name = 2;
* @return string
@@ -123,7 +123,7 @@ public function getDisplayName()
}
/**
- * Required. The name of the entity.
+ * Required. The name of the entity type.
*
* Generated from protobuf field string display_name = 2;
* @param string $var
@@ -192,7 +192,7 @@ public function setAutoExpansionMode($var)
}
/**
- * Optional. The collection of entities associated with the entity type.
+ * Optional. The collection of entity entries associated with the entity type.
*
* Generated from protobuf field repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6;
* @return \Google\Protobuf\Internal\RepeatedField
@@ -203,7 +203,7 @@ public function getEntities()
}
/**
- * Optional. The collection of entities associated with the entity type.
+ * Optional. The collection of entity entries associated with the entity type.
*
* Generated from protobuf field repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6;
* @param \Google\Cloud\Dialogflow\V2\EntityType\Entity[]|\Google\Protobuf\Internal\RepeatedField $var
diff --git a/Dialogflow/src/V2/EntityType/Entity.php b/Dialogflow/src/V2/EntityType/Entity.php
index e3fe67125532..1f052ae03390 100644
--- a/Dialogflow/src/V2/EntityType/Entity.php
+++ b/Dialogflow/src/V2/EntityType/Entity.php
@@ -9,26 +9,31 @@
use Google\Protobuf\Internal\GPBUtil;
/**
- * Optional. Represents an entity.
+ * An **entity entry** for an associated entity type.
*
* Generated from protobuf message google.cloud.dialogflow.v2.EntityType.Entity
*/
class Entity extends \Google\Protobuf\Internal\Message
{
/**
- * Required.
+ * Required. The primary value associated with this entity entry.
+ * For example, if the entity type is *vegetable*, the value could be
+ * *scallions*.
* For `KIND_MAP` entity types:
- * A canonical name to be used in place of synonyms.
+ * * A canonical value to be used in place of synonyms.
* For `KIND_LIST` entity types:
- * A string that can contain references to other entity types (with or
- * without aliases).
+ * * A string that can contain references to other entity types (with or
+ * without aliases).
*
* Generated from protobuf field string value = 1;
*/
private $value = '';
/**
- * Required. A collection of synonyms. For `KIND_LIST` entity types this
- * must contain exactly one synonym equal to `value`.
+ * Required. A collection of value synonyms. For example, if the entity type
+ * is *vegetable*, and `value` is *scallions*, a synonym could be *green
+ * onions*.
+ * For `KIND_LIST` entity types:
+ * * This collection must contain exactly one synonym equal to `value`.
*
* Generated from protobuf field repeated string synonyms = 2;
*/
@@ -41,15 +46,20 @@ class Entity extends \Google\Protobuf\Internal\Message
* Optional. Data for populating the Message object.
*
* @type string $value
- * Required.
+ * Required. The primary value associated with this entity entry.
+ * For example, if the entity type is *vegetable*, the value could be
+ * *scallions*.
* For `KIND_MAP` entity types:
- * A canonical name to be used in place of synonyms.
+ * * A canonical value to be used in place of synonyms.
* For `KIND_LIST` entity types:
- * A string that can contain references to other entity types (with or
- * without aliases).
+ * * A string that can contain references to other entity types (with or
+ * without aliases).
* @type string[]|\Google\Protobuf\Internal\RepeatedField $synonyms
- * Required. A collection of synonyms. For `KIND_LIST` entity types this
- * must contain exactly one synonym equal to `value`.
+ * Required. A collection of value synonyms. For example, if the entity type
+ * is *vegetable*, and `value` is *scallions*, a synonym could be *green
+ * onions*.
+ * For `KIND_LIST` entity types:
+ * * This collection must contain exactly one synonym equal to `value`.
* }
*/
public function __construct($data = NULL) {
@@ -58,12 +68,14 @@ public function __construct($data = NULL) {
}
/**
- * Required.
+ * Required. The primary value associated with this entity entry.
+ * For example, if the entity type is *vegetable*, the value could be
+ * *scallions*.
* For `KIND_MAP` entity types:
- * A canonical name to be used in place of synonyms.
+ * * A canonical value to be used in place of synonyms.
* For `KIND_LIST` entity types:
- * A string that can contain references to other entity types (with or
- * without aliases).
+ * * A string that can contain references to other entity types (with or
+ * without aliases).
*
* Generated from protobuf field string value = 1;
* @return string
@@ -74,12 +86,14 @@ public function getValue()
}
/**
- * Required.
+ * Required. The primary value associated with this entity entry.
+ * For example, if the entity type is *vegetable*, the value could be
+ * *scallions*.
* For `KIND_MAP` entity types:
- * A canonical name to be used in place of synonyms.
+ * * A canonical value to be used in place of synonyms.
* For `KIND_LIST` entity types:
- * A string that can contain references to other entity types (with or
- * without aliases).
+ * * A string that can contain references to other entity types (with or
+ * without aliases).
*
* Generated from protobuf field string value = 1;
* @param string $var
@@ -94,8 +108,11 @@ public function setValue($var)
}
/**
- * Required. A collection of synonyms. For `KIND_LIST` entity types this
- * must contain exactly one synonym equal to `value`.
+ * Required. A collection of value synonyms. For example, if the entity type
+ * is *vegetable*, and `value` is *scallions*, a synonym could be *green
+ * onions*.
+ * For `KIND_LIST` entity types:
+ * * This collection must contain exactly one synonym equal to `value`.
*
* Generated from protobuf field repeated string synonyms = 2;
* @return \Google\Protobuf\Internal\RepeatedField
@@ -106,8 +123,11 @@ public function getSynonyms()
}
/**
- * Required. A collection of synonyms. For `KIND_LIST` entity types this
- * must contain exactly one synonym equal to `value`.
+ * Required. A collection of value synonyms. For example, if the entity type
+ * is *vegetable*, and `value` is *scallions*, a synonym could be *green
+ * onions*.
+ * For `KIND_LIST` entity types:
+ * * This collection must contain exactly one synonym equal to `value`.
*
* Generated from protobuf field repeated string synonyms = 2;
* @param string[]|\Google\Protobuf\Internal\RepeatedField $var
diff --git a/Dialogflow/src/V2/EntityTypesGrpcClient.php b/Dialogflow/src/V2/EntityTypesGrpcClient.php
index 7682867019cd..18013a1573c9 100644
--- a/Dialogflow/src/V2/EntityTypesGrpcClient.php
+++ b/Dialogflow/src/V2/EntityTypesGrpcClient.php
@@ -2,7 +2,7 @@
// GENERATED CODE -- DO NOT EDIT!
// Original file comments:
-// Copyright 2018 Google Inc.
+// Copyright 2019 Google LLC.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//
+//
namespace Google\Cloud\Dialogflow\V2;
/**
@@ -42,11 +43,11 @@
*
* * **User** - entities that are built for an individual user such as
* favorites, preferences, playlists, and so on. A user entity is
- * represented by the
- * [SessionEntityType][google.cloud.dialogflow.v2.SessionEntityType] type.
+ * represented by the [SessionEntityType][google.cloud.dialogflow.v2.SessionEntityType] type.
*
* For more information about entity types, see the
- * [Dialogflow documentation](https://dialogflow.com/docs/entities).
+ * [Dialogflow
+ * documentation](https://cloud.google.com/dialogflow-enterprise/docs/entities-overview).
*/
class EntityTypesGrpcClient extends \Grpc\BaseStub {
@@ -132,9 +133,7 @@ public function DeleteEntityType(\Google\Cloud\Dialogflow\V2\DeleteEntityTypeReq
/**
* Updates/Creates multiple entity types in the specified agent.
*
- * Operation google.cloud.dialogflow.v2.EventInput
*/
@@ -33,9 +33,9 @@ class EventInput extends \Google\Protobuf\Internal\Message
private $parameters = null;
/**
* Required. The language of this query. See [Language
- * Support](https://dialogflow.com/docs/languages) for a list of the
- * currently supported language codes. Note that queries in the same session
- * do not necessarily need to specify the same language.
+ * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * for a list of the currently supported language codes. Note that queries in
+ * the same session do not necessarily need to specify the same language.
*
* Generated from protobuf field string language_code = 3;
*/
@@ -53,9 +53,9 @@ class EventInput extends \Google\Protobuf\Internal\Message
* Optional. The collection of parameters associated with the event.
* @type string $language_code
* Required. The language of this query. See [Language
- * Support](https://dialogflow.com/docs/languages) for a list of the
- * currently supported language codes. Note that queries in the same session
- * do not necessarily need to specify the same language.
+ * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * for a list of the currently supported language codes. Note that queries in
+ * the same session do not necessarily need to specify the same language.
* }
*/
public function __construct($data = NULL) {
@@ -117,9 +117,9 @@ public function setParameters($var)
/**
* Required. The language of this query. See [Language
- * Support](https://dialogflow.com/docs/languages) for a list of the
- * currently supported language codes. Note that queries in the same session
- * do not necessarily need to specify the same language.
+ * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * for a list of the currently supported language codes. Note that queries in
+ * the same session do not necessarily need to specify the same language.
*
* Generated from protobuf field string language_code = 3;
* @return string
@@ -131,9 +131,9 @@ public function getLanguageCode()
/**
* Required. The language of this query. See [Language
- * Support](https://dialogflow.com/docs/languages) for a list of the
- * currently supported language codes. Note that queries in the same session
- * do not necessarily need to specify the same language.
+ * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * for a list of the currently supported language codes. Note that queries in
+ * the same session do not necessarily need to specify the same language.
*
* Generated from protobuf field string language_code = 3;
* @param string $var
diff --git a/Dialogflow/src/V2/ExportAgentRequest.php b/Dialogflow/src/V2/ExportAgentRequest.php
index 28b239c58280..d701e39bc77d 100644
--- a/Dialogflow/src/V2/ExportAgentRequest.php
+++ b/Dialogflow/src/V2/ExportAgentRequest.php
@@ -9,8 +9,7 @@
use Google\Protobuf\Internal\GPBUtil;
/**
- * The request message for
- * [Agents.ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent].
+ * The request message for [Agents.ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent].
*
* Generated from protobuf message google.cloud.dialogflow.v2.ExportAgentRequest
*/
@@ -24,9 +23,11 @@ class ExportAgentRequest extends \Google\Protobuf\Internal\Message
*/
private $parent = '';
/**
- * Optional. The Google Cloud Storage URI to export the agent to.
- * Note: The URI must start with
- * "gs://". If left unspecified, the serialized agent is returned inline.
+ * Optional. The
+ * [Google Cloud Storage](https://cloud.google.com/storage/docs/)
+ * URI to export the agent to.
+ * The format of this URI must be `gs://string agent_uri = 2;
*/
@@ -42,9 +43,11 @@ class ExportAgentRequest extends \Google\Protobuf\Internal\Message
* Required. The project that the agent to export is associated with.
* Format: `projects/string agent_uri = 2;
* @return string
@@ -94,9 +99,11 @@ public function getAgentUri()
}
/**
- * Optional. The Google Cloud Storage URI to export the agent to.
- * Note: The URI must start with
- * "gs://". If left unspecified, the serialized agent is returned inline.
+ * Optional. The
+ * [Google Cloud Storage](https://cloud.google.com/storage/docs/)
+ * URI to export the agent to.
+ * The format of this URI must be `gs://string agent_uri = 2;
* @param string $var
diff --git a/Dialogflow/src/V2/ExportAgentResponse.php b/Dialogflow/src/V2/ExportAgentResponse.php
index 4a118b99b17e..4874ae952fbf 100644
--- a/Dialogflow/src/V2/ExportAgentResponse.php
+++ b/Dialogflow/src/V2/ExportAgentResponse.php
@@ -9,8 +9,7 @@
use Google\Protobuf\Internal\GPBUtil;
/**
- * The response message for
- * [Agents.ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent].
+ * The response message for [Agents.ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent].
*
* Generated from protobuf message google.cloud.dialogflow.v2.ExportAgentResponse
*/
@@ -30,16 +29,17 @@ class ExportAgentResponse extends \Google\Protobuf\Internal\Message
* @type string $agent_content
* The exported agent.
* Example for how to export an agent to a zip file via a command line:
- * curl \
- * 'https://dialogflow.googleapis.com/v2/projects/curl \ + * 'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:export'\ * -X POST \ - * -H 'Authorization: Bearer '$(gcloud auth print-access-token) \ + * -H 'Authorization: Bearer '$(gcloud auth application-default + * print-access-token) \ * -H 'Accept: application/json' \ * -H 'Content-Type: application/json' \ * --compressed \ * --data-binary '{}' \ * | grep agentContent | sed -e 's/.*"agentContent": "\([^"]*\)".*/\1/' \ - * | base64 --decode >* } */ public function __construct($data = NULL) { @@ -78,16 +78,17 @@ public function setAgentUri($var) /** * The exported agent. * Example for how to export an agent to a zip file via a command line: - * curl \ - * 'https://dialogflow.googleapis.com/v2/projects/+ * | base64 --decode > <agent zip file>
curl \ + * 'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:export'\ * -X POST \ - * -H 'Authorization: Bearer '$(gcloud auth print-access-token) \ + * -H 'Authorization: Bearer '$(gcloud auth application-default + * print-access-token) \ * -H 'Accept: application/json' \ * -H 'Content-Type: application/json' \ * --compressed \ * --data-binary '{}' \ * | grep agentContent | sed -e 's/.*"agentContent": "\([^"]*\)".*/\1/' \ - * | base64 --decode >* * Generated from protobuf field+ * | base64 --decode > <agent zip file>
bytes agent_content = 2;
* @return string
@@ -100,16 +101,17 @@ public function getAgentContent()
/**
* The exported agent.
* Example for how to export an agent to a zip file via a command line:
- * curl \
- * 'https://dialogflow.googleapis.com/v2/projects/curl \ + * 'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:export'\ * -X POST \ - * -H 'Authorization: Bearer '$(gcloud auth print-access-token) \ + * -H 'Authorization: Bearer '$(gcloud auth application-default + * print-access-token) \ * -H 'Accept: application/json' \ * -H 'Content-Type: application/json' \ * --compressed \ * --data-binary '{}' \ * | grep agentContent | sed -e 's/.*"agentContent": "\([^"]*\)".*/\1/' \ - * | base64 --decode >* * Generated from protobuf field+ * | base64 --decode > <agent zip file>
bytes agent_content = 2;
* @param string $var
diff --git a/Dialogflow/src/V2/Gapic/AgentsGapicClient.php b/Dialogflow/src/V2/Gapic/AgentsGapicClient.php
index fa04739768a7..0afd58e1a6ea 100644
--- a/Dialogflow/src/V2/Gapic/AgentsGapicClient.php
+++ b/Dialogflow/src/V2/Gapic/AgentsGapicClient.php
@@ -47,7 +47,6 @@
use Google\Cloud\Dialogflow\V2\SearchAgentsResponse;
use Google\Cloud\Dialogflow\V2\TrainAgentRequest;
use Google\LongRunning\Operation;
-use Google\Protobuf\Struct;
/**
* Service Description: Agents are best described as Natural Language Understanding (NLU) modules
@@ -55,30 +54,29 @@
* in your app, product, or service to determine user intent and respond to the
* user in a natural way.
*
- * After you create an agent, you can add
- * [Intents][google.cloud.dialogflow.v2.Intents],
- * [Contexts][google.cloud.dialogflow.v2.Contexts], [Entity
- * Types][google.cloud.dialogflow.v2.EntityTypes],
- * [Webhooks][google.cloud.dialogflow.v2.WebhookRequest], and so on to manage
- * the flow of a conversation and match user input to predefined intents and
- * actions.
+ * After you create an agent, you can add [Intents][google.cloud.dialogflow.v2.Intents], [Contexts][google.cloud.dialogflow.v2.Contexts],
+ * [Entity Types][google.cloud.dialogflow.v2.EntityTypes], [Webhooks][google.cloud.dialogflow.v2.WebhookRequest], and so on to
+ * manage the flow of a conversation and match user input to predefined intents
+ * and actions.
*
* You can create an agent using both Dialogflow Standard Edition and
* Dialogflow Enterprise Edition. For details, see
- * [Dialogflow Editions](https://cloud.google.com/dialogflow-enterprise/docs/editions).
+ * [Dialogflow
+ * Editions](https://cloud.google.com/dialogflow-enterprise/docs/editions).
*
* You can save your agent for backup or versioning by exporting the agent by
- * using the [ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent]
- * method. You can import a saved agent by using the
- * [ImportAgent][google.cloud.dialogflow.v2.Agents.ImportAgent] method.
+ * using the [ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent] method. You can import a saved
+ * agent by using the [ImportAgent][google.cloud.dialogflow.v2.Agents.ImportAgent] method.
*
* Dialogflow provides several
- * [prebuilt agents](https://dialogflow.com/docs/prebuilt-agents) for common
- * conversation scenarios such as determining a date and time, converting
- * currency, and so on.
+ * [prebuilt
+ * agents](https://cloud.google.com/dialogflow-enterprise/docs/agents-prebuilt)
+ * for common conversation scenarios such as determining a date and time,
+ * converting currency, and so on.
*
* For more information about agents, see the
- * [Dialogflow documentation](https://dialogflow.com/docs/agents).
+ * [Dialogflow
+ * documentation](https://cloud.google.com/dialogflow-enterprise/docs/agents-overview).
*
* This class provides the ability to make remote calls to the backing service through method
* calls that map to API methods. Sample code to get started:
@@ -129,6 +127,7 @@ class AgentsGapicClient
*/
public static $serviceScopes = [
'https://www.googleapis.com/auth/cloud-platform',
+ 'https://www.googleapis.com/auth/dialogflow',
];
private static $projectNameTemplate;
private static $pathTemplateMap;
@@ -466,8 +465,7 @@ public function searchAgents($parent, array $optionalArgs = [])
/**
* Trains the specified agent.
*
- * Operation curl \ + * 'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:import\ * -X POST \ - * -H 'Authorization: Bearer '$(gcloud auth print-access-token) \ + * -H 'Authorization: Bearer '$(gcloud auth application-default + * print-access-token) \ * -H 'Accept: application/json' \ * -H 'Content-Type: application/json' \ * --compressed \ * --data-binary "{ - * 'agentContent': '$(cat* @type RetrySettings|array $retrySettings * Retry settings to use for this call. Can be a * {@see Google\ApiCore\RetrySettings} object, or an associative array @@ -747,8 +744,7 @@ public function importAgent($parent, array $optionalArgs = []) * Replaces the current agent version with a new one. All the intents and * entity types in the older version are deleted. * - * Operation| base64 -w 0)' - * }" + * 'agentContent': '$(cat <agent zip file> | base64 -w 0)' + * }"
curl \ + * 'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:restore\ * -X POST \ - * -H 'Authorization: Bearer '$(gcloud auth print-access-token) \ + * -H 'Authorization: Bearer '$(gcloud auth application-default + * print-access-token) \ * -H 'Accept: application/json' \ * -H 'Content-Type: application/json' \ * --compressed \ * --data-binary "{ - * 'agentContent': '$(cat* @type RetrySettings|array $retrySettings * Retry settings to use for this call. Can be a * {@see Google\ApiCore\RetrySettings} object, or an associative array diff --git a/Dialogflow/src/V2/Gapic/ContextsGapicClient.php b/Dialogflow/src/V2/Gapic/ContextsGapicClient.php index 3681b07c8806..ee7d53ccb42f 100644 --- a/Dialogflow/src/V2/Gapic/ContextsGapicClient.php +++ b/Dialogflow/src/V2/Gapic/ContextsGapicClient.php @@ -56,14 +56,15 @@ * * You can include contexts as input parameters of a * [DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] (or - * [StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent]) - * request, or as output contexts included in the returned intent. Contexts - * expire when an intent is matched, after the number of `DetectIntent` requests - * specified by the `lifespan_count` parameter, or after 10 minutes if no - * intents are matched for a `DetectIntent` request. + * [StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent]) request, + * or as output contexts included in the returned intent. + * Contexts expire when an intent is matched, after the number of `DetectIntent` + * requests specified by the `lifespan_count` parameter, or after 20 minutes + * if no intents are matched for a `DetectIntent` request. * * For more information about contexts, see the - * [Dialogflow documentation](https://dialogflow.com/docs/contexts). + * [Dialogflow + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/contexts-overview). * * This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: @@ -129,6 +130,7 @@ class ContextsGapicClient */ public static $serviceScopes = [ 'https://www.googleapis.com/auth/cloud-platform', + 'https://www.googleapis.com/auth/dialogflow', ]; private static $sessionNameTemplate; private static $contextNameTemplate; @@ -456,6 +458,8 @@ public function getContext($name, array $optionalArgs = []) /** * Creates a context. * + * If the specified context already exists, overrides the context. + * * Sample code: * ``` * $contextsClient = new ContextsClient(); diff --git a/Dialogflow/src/V2/Gapic/EntityTypesGapicClient.php b/Dialogflow/src/V2/Gapic/EntityTypesGapicClient.php index 01f375ae744f..2eafba3d7f6a 100644 --- a/Dialogflow/src/V2/Gapic/EntityTypesGapicClient.php +++ b/Dialogflow/src/V2/Gapic/EntityTypesGapicClient.php @@ -55,7 +55,6 @@ use Google\LongRunning\Operation; use Google\Protobuf\FieldMask; use Google\Protobuf\GPBEmpty; -use Google\Protobuf\Struct; /** * Service Description: Entities are extracted from user input and represent parameters that are @@ -81,11 +80,11 @@ * * * **User** - entities that are built for an individual user such as * favorites, preferences, playlists, and so on. A user entity is - * represented by the - * [SessionEntityType][google.cloud.dialogflow.v2.SessionEntityType] type. + * represented by the [SessionEntityType][google.cloud.dialogflow.v2.SessionEntityType] type. * * For more information about entity types, see the - * [Dialogflow documentation](https://dialogflow.com/docs/entities). + * [Dialogflow + * documentation](https://cloud.google.com/dialogflow-enterprise/docs/entities-overview). * * This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: @@ -151,6 +150,7 @@ class EntityTypesGapicClient */ public static $serviceScopes = [ 'https://www.googleapis.com/auth/cloud-platform', + 'https://www.googleapis.com/auth/dialogflow', ]; private static $projectAgentNameTemplate; private static $entityTypeNameTemplate; @@ -414,9 +414,10 @@ public function __construct(array $options = []) * @type string $languageCode * Optional. The language to list entity synonyms for. If not specified, * the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * @type int $pageSize * The maximum number of resources contained in the underlying API * response. The API may return fewer values in a page, even if @@ -489,9 +490,10 @@ public function listEntityTypes($parent, array $optionalArgs = []) * @type string $languageCode * Optional. The language to retrieve entity synonyms for. If not specified, * the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * @type RetrySettings|array $retrySettings * Retry settings to use for this call. Can be a * {@see Google\ApiCore\RetrySettings} object, or an associative array @@ -551,9 +553,10 @@ public function getEntityType($name, array $optionalArgs = []) * @type string $languageCode * Optional. The language of entity synonyms defined in `entity_type`. If not * specified, the agent's default language is used. - * [More than a dozen - * languages](https://dialogflow.com/docs/reference/language) are supported. - * Note: languages must be enabled in the agent, before they can be used. + * [Many + * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) + * are supported. Note: languages must be enabled in the agent before they can + * be used. * @type RetrySettings|array $retrySettings * Retry settings to use for this call. Can be a * {@see Google\ApiCore\RetrySettings} object, or an associative array @@ -605,16 +608,16 @@ public function createEntityType($parent, $entityType, array $optionalArgs = []) * ``` * * @param EntityType $entityType Required. The entity type to update. - * Format: `projects/| base64 -w 0)' - * }" \ + * 'agentContent': '$(cat <agent zip file> | base64 -w 0)' + * }"
google.cloud.dialogflow.v2.GetAgentRequest
*/
diff --git a/Dialogflow/src/V2/GetContextRequest.php b/Dialogflow/src/V2/GetContextRequest.php
index 41150071fc7e..f66d1d9d84a6 100644
--- a/Dialogflow/src/V2/GetContextRequest.php
+++ b/Dialogflow/src/V2/GetContextRequest.php
@@ -9,8 +9,7 @@
use Google\Protobuf\Internal\GPBUtil;
/**
- * The request message for
- * [Contexts.GetContext][google.cloud.dialogflow.v2.Contexts.GetContext].
+ * The request message for [Contexts.GetContext][google.cloud.dialogflow.v2.Contexts.GetContext].
*
* Generated from protobuf message google.cloud.dialogflow.v2.GetContextRequest
*/
diff --git a/Dialogflow/src/V2/GetEntityTypeRequest.php b/Dialogflow/src/V2/GetEntityTypeRequest.php
index d40f1f069e14..d9fb090b3787 100644
--- a/Dialogflow/src/V2/GetEntityTypeRequest.php
+++ b/Dialogflow/src/V2/GetEntityTypeRequest.php
@@ -9,8 +9,7 @@
use Google\Protobuf\Internal\GPBUtil;
/**
- * The request message for
- * [EntityTypes.GetEntityType][google.cloud.dialogflow.v2.EntityTypes.GetEntityType].
+ * The request message for [EntityTypes.GetEntityType][google.cloud.dialogflow.v2.EntityTypes.GetEntityType].
*
* Generated from protobuf message google.cloud.dialogflow.v2.GetEntityTypeRequest
*/
@@ -26,9 +25,10 @@ class GetEntityTypeRequest extends \Google\Protobuf\Internal\Message
/**
* Optional. The language to retrieve entity synonyms for. If not specified,
* the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
* Generated from protobuf field string language_code = 2;
*/
@@ -46,9 +46,10 @@ class GetEntityTypeRequest extends \Google\Protobuf\Internal\Message
* @type string $language_code
* Optional. The language to retrieve entity synonyms for. If not specified,
* the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
* }
*/
public function __construct($data = NULL) {
@@ -87,9 +88,10 @@ public function setName($var)
/**
* Optional. The language to retrieve entity synonyms for. If not specified,
* the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
* Generated from protobuf field string language_code = 2;
* @return string
@@ -102,9 +104,10 @@ public function getLanguageCode()
/**
* Optional. The language to retrieve entity synonyms for. If not specified,
* the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
* Generated from protobuf field string language_code = 2;
* @param string $var
diff --git a/Dialogflow/src/V2/GetIntentRequest.php b/Dialogflow/src/V2/GetIntentRequest.php
index 3b728d86aa4a..789631f1f4d2 100644
--- a/Dialogflow/src/V2/GetIntentRequest.php
+++ b/Dialogflow/src/V2/GetIntentRequest.php
@@ -9,8 +9,7 @@
use Google\Protobuf\Internal\GPBUtil;
/**
- * The request message for
- * [Intents.GetIntent][google.cloud.dialogflow.v2.Intents.GetIntent].
+ * The request message for [Intents.GetIntent][google.cloud.dialogflow.v2.Intents.GetIntent].
*
* Generated from protobuf message google.cloud.dialogflow.v2.GetIntentRequest
*/
@@ -26,9 +25,10 @@ class GetIntentRequest extends \Google\Protobuf\Internal\Message
/**
* Optional. The language to retrieve training phrases, parameters and rich
* messages for. If not specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
* Generated from protobuf field string language_code = 2;
*/
@@ -52,9 +52,10 @@ class GetIntentRequest extends \Google\Protobuf\Internal\Message
* @type string $language_code
* Optional. The language to retrieve training phrases, parameters and rich
* messages for. If not specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
* @type int $intent_view
* Optional. The resource view to apply to the returned intent.
* }
@@ -95,9 +96,10 @@ public function setName($var)
/**
* Optional. The language to retrieve training phrases, parameters and rich
* messages for. If not specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
* Generated from protobuf field string language_code = 2;
* @return string
@@ -110,9 +112,10 @@ public function getLanguageCode()
/**
* Optional. The language to retrieve training phrases, parameters and rich
* messages for. If not specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
* Generated from protobuf field string language_code = 2;
* @param string $var
diff --git a/Dialogflow/src/V2/GetSessionEntityTypeRequest.php b/Dialogflow/src/V2/GetSessionEntityTypeRequest.php
index 0e5a7ec3a27f..eac518242105 100644
--- a/Dialogflow/src/V2/GetSessionEntityTypeRequest.php
+++ b/Dialogflow/src/V2/GetSessionEntityTypeRequest.php
@@ -9,8 +9,7 @@
use Google\Protobuf\Internal\GPBUtil;
/**
- * The request message for
- * [SessionEntityTypes.GetSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.GetSessionEntityType].
+ * The request message for [SessionEntityTypes.GetSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.GetSessionEntityType].
*
* Generated from protobuf message google.cloud.dialogflow.v2.GetSessionEntityTypeRequest
*/
diff --git a/Dialogflow/src/V2/ImportAgentRequest.php b/Dialogflow/src/V2/ImportAgentRequest.php
index c0d0523236ad..49daa7d32b38 100644
--- a/Dialogflow/src/V2/ImportAgentRequest.php
+++ b/Dialogflow/src/V2/ImportAgentRequest.php
@@ -9,8 +9,7 @@
use Google\Protobuf\Internal\GPBUtil;
/**
- * The request message for
- * [Agents.ImportAgent][google.cloud.dialogflow.v2.Agents.ImportAgent].
+ * The request message for [Agents.ImportAgent][google.cloud.dialogflow.v2.Agents.ImportAgent].
*
* Generated from protobuf message google.cloud.dialogflow.v2.ImportAgentRequest
*/
@@ -40,16 +39,17 @@ class ImportAgentRequest extends \Google\Protobuf\Internal\Message
* @type string $agent_content
* The agent to import.
* Example for how to import an agent via the command line:
- * curl \
- * 'https://dialogflow.googleapis.com/v2/projects/curl \ + * 'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:import\ * -X POST \ - * -H 'Authorization: Bearer '$(gcloud auth print-access-token) \ + * -H 'Authorization: Bearer '$(gcloud auth application-default + * print-access-token) \ * -H 'Accept: application/json' \ * -H 'Content-Type: application/json' \ * --compressed \ * --data-binary "{ - * 'agentContent': '$(cat* } */ public function __construct($data = NULL) { @@ -116,16 +116,17 @@ public function setAgentUri($var) /** * The agent to import. * Example for how to import an agent via the command line: - * curl \ - * 'https://dialogflow.googleapis.com/v2/projects/| base64 -w 0)' - * }" + * 'agentContent': '$(cat <agent zip file> | base64 -w 0)' + * }"
curl \ + * 'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:import\ * -X POST \ - * -H 'Authorization: Bearer '$(gcloud auth print-access-token) \ + * -H 'Authorization: Bearer '$(gcloud auth application-default + * print-access-token) \ * -H 'Accept: application/json' \ * -H 'Content-Type: application/json' \ * --compressed \ * --data-binary "{ - * 'agentContent': '$(cat* * Generated from protobuf field| base64 -w 0)' - * }" + * 'agentContent': '$(cat <agent zip file> | base64 -w 0)' + * }"
bytes agent_content = 3;
* @return string
@@ -138,16 +139,17 @@ public function getAgentContent()
/**
* The agent to import.
* Example for how to import an agent via the command line:
- * curl \
- * 'https://dialogflow.googleapis.com/v2/projects/curl \ + * 'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:import\ * -X POST \ - * -H 'Authorization: Bearer '$(gcloud auth print-access-token) \ + * -H 'Authorization: Bearer '$(gcloud auth application-default + * print-access-token) \ * -H 'Accept: application/json' \ * -H 'Content-Type: application/json' \ * --compressed \ * --data-binary "{ - * 'agentContent': '$(cat* * Generated from protobuf field| base64 -w 0)' - * }" + * 'agentContent': '$(cat <agent zip file> | base64 -w 0)' + * }"
bytes agent_content = 3;
* @param string $var
diff --git a/Dialogflow/src/V2/InputAudioConfig.php b/Dialogflow/src/V2/InputAudioConfig.php
index 865a88940fb2..b1fc08f607e2 100644
--- a/Dialogflow/src/V2/InputAudioConfig.php
+++ b/Dialogflow/src/V2/InputAudioConfig.php
@@ -23,8 +23,10 @@ class InputAudioConfig extends \Google\Protobuf\Internal\Message
private $audio_encoding = 0;
/**
* Required. Sample rate (in Hertz) of the audio content sent in the query.
- * Refer to [Cloud Speech API documentation](/speech/docs/basics) for more
- * details.
+ * Refer to
+ * [Cloud Speech API
+ * documentation](https://cloud.google.com/speech-to-text/docs/basics) for
+ * more details.
*
* Generated from protobuf field int32 sample_rate_hertz = 2;
*/
@@ -32,9 +34,9 @@ class InputAudioConfig extends \Google\Protobuf\Internal\Message
/**
* Required. The language of the supplied audio. Dialogflow does not do
* translations. See [Language
- * Support](https://dialogflow.com/docs/languages) for a list of the
- * currently supported language codes. Note that queries in the same session
- * do not necessarily need to specify the same language.
+ * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * for a list of the currently supported language codes. Note that queries in
+ * the same session do not necessarily need to specify the same language.
*
* Generated from protobuf field string language_code = 3;
*/
@@ -42,7 +44,9 @@ class InputAudioConfig extends \Google\Protobuf\Internal\Message
/**
* Optional. The collection of phrase hints which are used to boost accuracy
* of speech recognition.
- * Refer to [Cloud Speech API documentation](/speech/docs/basics#phrase-hints)
+ * Refer to
+ * [Cloud Speech API
+ * documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints)
* for more details.
*
* Generated from protobuf field repeated string phrase_hints = 4;
@@ -59,18 +63,22 @@ class InputAudioConfig extends \Google\Protobuf\Internal\Message
* Required. Audio encoding of the audio content to process.
* @type int $sample_rate_hertz
* Required. Sample rate (in Hertz) of the audio content sent in the query.
- * Refer to [Cloud Speech API documentation](/speech/docs/basics) for more
- * details.
+ * Refer to
+ * [Cloud Speech API
+ * documentation](https://cloud.google.com/speech-to-text/docs/basics) for
+ * more details.
* @type string $language_code
* Required. The language of the supplied audio. Dialogflow does not do
* translations. See [Language
- * Support](https://dialogflow.com/docs/languages) for a list of the
- * currently supported language codes. Note that queries in the same session
- * do not necessarily need to specify the same language.
+ * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * for a list of the currently supported language codes. Note that queries in
+ * the same session do not necessarily need to specify the same language.
* @type string[]|\Google\Protobuf\Internal\RepeatedField $phrase_hints
* Optional. The collection of phrase hints which are used to boost accuracy
* of speech recognition.
- * Refer to [Cloud Speech API documentation](/speech/docs/basics#phrase-hints)
+ * Refer to
+ * [Cloud Speech API
+ * documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints)
* for more details.
* }
*/
@@ -107,8 +115,10 @@ public function setAudioEncoding($var)
/**
* Required. Sample rate (in Hertz) of the audio content sent in the query.
- * Refer to [Cloud Speech API documentation](/speech/docs/basics) for more
- * details.
+ * Refer to
+ * [Cloud Speech API
+ * documentation](https://cloud.google.com/speech-to-text/docs/basics) for
+ * more details.
*
* Generated from protobuf field int32 sample_rate_hertz = 2;
* @return int
@@ -120,8 +130,10 @@ public function getSampleRateHertz()
/**
* Required. Sample rate (in Hertz) of the audio content sent in the query.
- * Refer to [Cloud Speech API documentation](/speech/docs/basics) for more
- * details.
+ * Refer to
+ * [Cloud Speech API
+ * documentation](https://cloud.google.com/speech-to-text/docs/basics) for
+ * more details.
*
* Generated from protobuf field int32 sample_rate_hertz = 2;
* @param int $var
@@ -138,9 +150,9 @@ public function setSampleRateHertz($var)
/**
* Required. The language of the supplied audio. Dialogflow does not do
* translations. See [Language
- * Support](https://dialogflow.com/docs/languages) for a list of the
- * currently supported language codes. Note that queries in the same session
- * do not necessarily need to specify the same language.
+ * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * for a list of the currently supported language codes. Note that queries in
+ * the same session do not necessarily need to specify the same language.
*
* Generated from protobuf field string language_code = 3;
* @return string
@@ -153,9 +165,9 @@ public function getLanguageCode()
/**
* Required. The language of the supplied audio. Dialogflow does not do
* translations. See [Language
- * Support](https://dialogflow.com/docs/languages) for a list of the
- * currently supported language codes. Note that queries in the same session
- * do not necessarily need to specify the same language.
+ * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * for a list of the currently supported language codes. Note that queries in
+ * the same session do not necessarily need to specify the same language.
*
* Generated from protobuf field string language_code = 3;
* @param string $var
@@ -172,7 +184,9 @@ public function setLanguageCode($var)
/**
* Optional. The collection of phrase hints which are used to boost accuracy
* of speech recognition.
- * Refer to [Cloud Speech API documentation](/speech/docs/basics#phrase-hints)
+ * Refer to
+ * [Cloud Speech API
+ * documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints)
* for more details.
*
* Generated from protobuf field repeated string phrase_hints = 4;
@@ -186,7 +200,9 @@ public function getPhraseHints()
/**
* Optional. The collection of phrase hints which are used to boost accuracy
* of speech recognition.
- * Refer to [Cloud Speech API documentation](/speech/docs/basics#phrase-hints)
+ * Refer to
+ * [Cloud Speech API
+ * documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints)
* for more details.
*
* Generated from protobuf field repeated string phrase_hints = 4;
diff --git a/Dialogflow/src/V2/Intent.php b/Dialogflow/src/V2/Intent.php
index 8acceb68717c..a48f5db7a543 100644
--- a/Dialogflow/src/V2/Intent.php
+++ b/Dialogflow/src/V2/Intent.php
@@ -18,9 +18,9 @@
class Intent extends \Google\Protobuf\Internal\Message
{
/**
- * Required for all methods except `create` (`create` populates the name
- * automatically.
* The unique identifier of this intent.
+ * Required for [Intents.UpdateIntent][google.cloud.dialogflow.v2.Intents.UpdateIntent] and [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents]
+ * methods.
* Format: `projects/string name = 1;
@@ -33,14 +33,16 @@ class Intent extends \Google\Protobuf\Internal\Message
*/
private $display_name = '';
/**
- * Required. Indicates whether webhooks are enabled for the intent.
+ * Optional. Indicates whether webhooks are enabled for the intent.
*
* Generated from protobuf field .google.cloud.dialogflow.v2.Intent.WebhookState webhook_state = 6;
*/
private $webhook_state = 0;
/**
* Optional. The priority of this intent. Higher numbers represent higher
- * priorities. Zero or negative numbers mean that the intent is disabled.
+ * priorities. If this is zero or unspecified, we use the default
+ * priority 500000.
+ * Negative numbers mean that the intent is disabled.
*
* Generated from protobuf field int32 priority = 3;
*/
@@ -77,7 +79,7 @@ class Intent extends \Google\Protobuf\Internal\Message
*/
private $events;
/**
- * Optional. The collection of examples/templates that the agent is
+ * Optional. The collection of examples that the agent is
* trained on.
*
* Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase training_phrases = 9;
@@ -85,6 +87,7 @@ class Intent extends \Google\Protobuf\Internal\Message
private $training_phrases;
/**
* Optional. The name of the action associated with the intent.
+ * Note: The action name must not contain whitespaces.
*
* Generated from protobuf field string action = 10;
*/
@@ -127,16 +130,19 @@ class Intent extends \Google\Protobuf\Internal\Message
*/
private $default_response_platforms;
/**
- * The unique identifier of the root intent in the chain of followup intents.
- * It identifies the correct followup intents chain for this intent.
+ * Read-only. The unique identifier of the root intent in the chain of
+ * followup intents. It identifies the correct followup intents chain for
+ * this intent. We populate this field only in the output.
* Format: `projects/string root_followup_intent_name = 16;
*/
private $root_followup_intent_name = '';
/**
- * The unique identifier of the parent intent in the chain of followup
- * intents.
+ * Read-only after creation. The unique identifier of the parent intent in the
+ * chain of followup intents. You can set this field when creating an intent,
+ * for example with [CreateIntent][] or [BatchUpdateIntents][], in order to
+ * make this intent a followup intent.
* It identifies the parent followup intent.
* Format: `projects/repeated .google.cloud.dialogflow.v2.Intent.FollowupIntentInfo followup_intent_info = 18;
*/
@@ -158,17 +164,19 @@ class Intent extends \Google\Protobuf\Internal\Message
* Optional. Data for populating the Message object.
*
* @type string $name
- * Required for all methods except `create` (`create` populates the name
- * automatically.
* The unique identifier of this intent.
+ * Required for [Intents.UpdateIntent][google.cloud.dialogflow.v2.Intents.UpdateIntent] and [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents]
+ * methods.
* Format: `projects/string name = 1;
@@ -240,9 +252,9 @@ public function getName()
}
/**
- * Required for all methods except `create` (`create` populates the name
- * automatically.
* The unique identifier of this intent.
+ * Required for [Intents.UpdateIntent][google.cloud.dialogflow.v2.Intents.UpdateIntent] and [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents]
+ * methods.
* Format: `projects/string name = 1;
@@ -284,7 +296,7 @@ public function setDisplayName($var)
}
/**
- * Required. Indicates whether webhooks are enabled for the intent.
+ * Optional. Indicates whether webhooks are enabled for the intent.
*
* Generated from protobuf field .google.cloud.dialogflow.v2.Intent.WebhookState webhook_state = 6;
* @return int
@@ -295,7 +307,7 @@ public function getWebhookState()
}
/**
- * Required. Indicates whether webhooks are enabled for the intent.
+ * Optional. Indicates whether webhooks are enabled for the intent.
*
* Generated from protobuf field .google.cloud.dialogflow.v2.Intent.WebhookState webhook_state = 6;
* @param int $var
@@ -311,7 +323,9 @@ public function setWebhookState($var)
/**
* Optional. The priority of this intent. Higher numbers represent higher
- * priorities. Zero or negative numbers mean that the intent is disabled.
+ * priorities. If this is zero or unspecified, we use the default
+ * priority 500000.
+ * Negative numbers mean that the intent is disabled.
*
* Generated from protobuf field int32 priority = 3;
* @return int
@@ -323,7 +337,9 @@ public function getPriority()
/**
* Optional. The priority of this intent. Higher numbers represent higher
- * priorities. Zero or negative numbers mean that the intent is disabled.
+ * priorities. If this is zero or unspecified, we use the default
+ * priority 500000.
+ * Negative numbers mean that the intent is disabled.
*
* Generated from protobuf field int32 priority = 3;
* @param int $var
@@ -456,7 +472,7 @@ public function setEvents($var)
}
/**
- * Optional. The collection of examples/templates that the agent is
+ * Optional. The collection of examples that the agent is
* trained on.
*
* Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase training_phrases = 9;
@@ -468,7 +484,7 @@ public function getTrainingPhrases()
}
/**
- * Optional. The collection of examples/templates that the agent is
+ * Optional. The collection of examples that the agent is
* trained on.
*
* Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase training_phrases = 9;
@@ -485,6 +501,7 @@ public function setTrainingPhrases($var)
/**
* Optional. The name of the action associated with the intent.
+ * Note: The action name must not contain whitespaces.
*
* Generated from protobuf field string action = 10;
* @return string
@@ -496,6 +513,7 @@ public function getAction()
/**
* Optional. The name of the action associated with the intent.
+ * Note: The action name must not contain whitespaces.
*
* Generated from protobuf field string action = 10;
* @param string $var
@@ -654,8 +672,9 @@ public function setDefaultResponsePlatforms($var)
}
/**
- * The unique identifier of the root intent in the chain of followup intents.
- * It identifies the correct followup intents chain for this intent.
+ * Read-only. The unique identifier of the root intent in the chain of
+ * followup intents. It identifies the correct followup intents chain for
+ * this intent. We populate this field only in the output.
* Format: `projects/string root_followup_intent_name = 16;
@@ -667,8 +686,9 @@ public function getRootFollowupIntentName()
}
/**
- * The unique identifier of the root intent in the chain of followup intents.
- * It identifies the correct followup intents chain for this intent.
+ * Read-only. The unique identifier of the root intent in the chain of
+ * followup intents. It identifies the correct followup intents chain for
+ * this intent. We populate this field only in the output.
* Format: `projects/string root_followup_intent_name = 16;
@@ -684,8 +704,10 @@ public function setRootFollowupIntentName($var)
}
/**
- * The unique identifier of the parent intent in the chain of followup
- * intents.
+ * Read-only after creation. The unique identifier of the parent intent in the
+ * chain of followup intents. You can set this field when creating an intent,
+ * for example with [CreateIntent][] or [BatchUpdateIntents][], in order to
+ * make this intent a followup intent.
* It identifies the parent followup intent.
* Format: `projects/repeated .google.cloud.dialogflow.v2.Intent.FollowupIntentInfo followup_intent_info = 18;
* @return \Google\Protobuf\Internal\RepeatedField
@@ -728,8 +752,8 @@ public function getFollowupIntentInfo()
}
/**
- * Optional. Collection of information about all followup intents that have
- * name of this intent as a root_name.
+ * Read-only. Information about all followup intents that have this intent as
+ * a direct or indirect parent. We populate this field only in the output.
*
* Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.FollowupIntentInfo followup_intent_info = 18;
* @param \Google\Cloud\Dialogflow\V2\Intent\FollowupIntentInfo[]|\Google\Protobuf\Internal\RepeatedField $var
diff --git a/Dialogflow/src/V2/Intent/FollowupIntentInfo.php b/Dialogflow/src/V2/Intent/FollowupIntentInfo.php
index e20f4c9c35b4..8be9bb7dfdb0 100644
--- a/Dialogflow/src/V2/Intent/FollowupIntentInfo.php
+++ b/Dialogflow/src/V2/Intent/FollowupIntentInfo.php
@@ -23,7 +23,7 @@ class FollowupIntentInfo extends \Google\Protobuf\Internal\Message
*/
private $followup_intent_name = '';
/**
- * The unique identifier of the followup intent parent.
+ * The unique identifier of the followup intent's parent.
* Format: `projects/string parent_followup_intent_name = 2;
@@ -40,7 +40,7 @@ class FollowupIntentInfo extends \Google\Protobuf\Internal\Message
* The unique identifier of the followup intent.
* Format: `projects/string parent_followup_intent_name = 2;
@@ -90,7 +90,7 @@ public function getParentFollowupIntentName()
}
/**
- * The unique identifier of the followup intent parent.
+ * The unique identifier of the followup intent's parent.
* Format: `projects/string parent_followup_intent_name = 2;
diff --git a/Dialogflow/src/V2/Intent/TrainingPhrase.php b/Dialogflow/src/V2/Intent/TrainingPhrase.php
index 6452b1363244..9c6ff268e4e2 100644
--- a/Dialogflow/src/V2/Intent/TrainingPhrase.php
+++ b/Dialogflow/src/V2/Intent/TrainingPhrase.php
@@ -9,14 +9,14 @@
use Google\Protobuf\Internal\GPBUtil;
/**
- * Represents an example or template that the agent is trained on.
+ * Represents an example that the agent is trained on.
*
* Generated from protobuf message google.cloud.dialogflow.v2.Intent.TrainingPhrase
*/
class TrainingPhrase extends \Google\Protobuf\Internal\Message
{
/**
- * Required. The unique identifier of this training phrase.
+ * Output only. The unique identifier of this training phrase.
*
* Generated from protobuf field string name = 1;
*/
@@ -28,15 +28,26 @@ class TrainingPhrase extends \Google\Protobuf\Internal\Message
*/
private $type = 0;
/**
- * Required. The collection of training phrase parts (can be annotated).
- * Fields: `entity_type`, `alias` and `user_defined` should be populated
- * only for the annotated parts of the training phrase.
+ * Required. The ordered list of training phrase parts.
+ * The parts are concatenated in order to form the training phrase.
+ * Note: The API does not automatically annotate training phrases like the
+ * Dialogflow Console does.
+ * Note: Do not forget to include whitespace at part boundaries,
+ * so the training phrase is well formatted when the parts are concatenated.
+ * If the training phrase does not need to be annotated with parameters,
+ * you just need a single part with only the [Part.text][google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.text] field set.
+ * If you want to annotate the training phrase, you must create multiple
+ * parts, where the fields of each part are populated in one of two ways:
+ * - `Part.text` is set to a part of the phrase that has no parameters.
+ * - `Part.text` is set to a part of the phrase that you want to annotate,
+ * and the `entity_type`, `alias`, and `user_defined` fields are all
+ * set.
*
* Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3;
*/
private $parts;
/**
- * Optional. Indicates how many times this example or template was added to
+ * Optional. Indicates how many times this example was added to
* the intent. Each time a developer adds an existing sample by editing an
* intent or training, this counter is increased.
*
@@ -51,15 +62,26 @@ class TrainingPhrase extends \Google\Protobuf\Internal\Message
* Optional. Data for populating the Message object.
*
* @type string $name
- * Required. The unique identifier of this training phrase.
+ * Output only. The unique identifier of this training phrase.
* @type int $type
* Required. The type of the training phrase.
* @type \Google\Cloud\Dialogflow\V2\Intent\TrainingPhrase\Part[]|\Google\Protobuf\Internal\RepeatedField $parts
- * Required. The collection of training phrase parts (can be annotated).
- * Fields: `entity_type`, `alias` and `user_defined` should be populated
- * only for the annotated parts of the training phrase.
+ * Required. The ordered list of training phrase parts.
+ * The parts are concatenated in order to form the training phrase.
+ * Note: The API does not automatically annotate training phrases like the
+ * Dialogflow Console does.
+ * Note: Do not forget to include whitespace at part boundaries,
+ * so the training phrase is well formatted when the parts are concatenated.
+ * If the training phrase does not need to be annotated with parameters,
+ * you just need a single part with only the [Part.text][google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.text] field set.
+ * If you want to annotate the training phrase, you must create multiple
+ * parts, where the fields of each part are populated in one of two ways:
+ * - `Part.text` is set to a part of the phrase that has no parameters.
+ * - `Part.text` is set to a part of the phrase that you want to annotate,
+ * and the `entity_type`, `alias`, and `user_defined` fields are all
+ * set.
* @type int $times_added_count
- * Optional. Indicates how many times this example or template was added to
+ * Optional. Indicates how many times this example was added to
* the intent. Each time a developer adds an existing sample by editing an
* intent or training, this counter is increased.
* }
@@ -70,7 +92,7 @@ public function __construct($data = NULL) {
}
/**
- * Required. The unique identifier of this training phrase.
+ * Output only. The unique identifier of this training phrase.
*
* Generated from protobuf field string name = 1;
* @return string
@@ -81,7 +103,7 @@ public function getName()
}
/**
- * Required. The unique identifier of this training phrase.
+ * Output only. The unique identifier of this training phrase.
*
* Generated from protobuf field string name = 1;
* @param string $var
@@ -122,9 +144,20 @@ public function setType($var)
}
/**
- * Required. The collection of training phrase parts (can be annotated).
- * Fields: `entity_type`, `alias` and `user_defined` should be populated
- * only for the annotated parts of the training phrase.
+ * Required. The ordered list of training phrase parts.
+ * The parts are concatenated in order to form the training phrase.
+ * Note: The API does not automatically annotate training phrases like the
+ * Dialogflow Console does.
+ * Note: Do not forget to include whitespace at part boundaries,
+ * so the training phrase is well formatted when the parts are concatenated.
+ * If the training phrase does not need to be annotated with parameters,
+ * you just need a single part with only the [Part.text][google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.text] field set.
+ * If you want to annotate the training phrase, you must create multiple
+ * parts, where the fields of each part are populated in one of two ways:
+ * - `Part.text` is set to a part of the phrase that has no parameters.
+ * - `Part.text` is set to a part of the phrase that you want to annotate,
+ * and the `entity_type`, `alias`, and `user_defined` fields are all
+ * set.
*
* Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3;
* @return \Google\Protobuf\Internal\RepeatedField
@@ -135,9 +168,20 @@ public function getParts()
}
/**
- * Required. The collection of training phrase parts (can be annotated).
- * Fields: `entity_type`, `alias` and `user_defined` should be populated
- * only for the annotated parts of the training phrase.
+ * Required. The ordered list of training phrase parts.
+ * The parts are concatenated in order to form the training phrase.
+ * Note: The API does not automatically annotate training phrases like the
+ * Dialogflow Console does.
+ * Note: Do not forget to include whitespace at part boundaries,
+ * so the training phrase is well formatted when the parts are concatenated.
+ * If the training phrase does not need to be annotated with parameters,
+ * you just need a single part with only the [Part.text][google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.text] field set.
+ * If you want to annotate the training phrase, you must create multiple
+ * parts, where the fields of each part are populated in one of two ways:
+ * - `Part.text` is set to a part of the phrase that has no parameters.
+ * - `Part.text` is set to a part of the phrase that you want to annotate,
+ * and the `entity_type`, `alias`, and `user_defined` fields are all
+ * set.
*
* Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3;
* @param \Google\Cloud\Dialogflow\V2\Intent\TrainingPhrase\Part[]|\Google\Protobuf\Internal\RepeatedField $var
@@ -152,7 +196,7 @@ public function setParts($var)
}
/**
- * Optional. Indicates how many times this example or template was added to
+ * Optional. Indicates how many times this example was added to
* the intent. Each time a developer adds an existing sample by editing an
* intent or training, this counter is increased.
*
@@ -165,7 +209,7 @@ public function getTimesAddedCount()
}
/**
- * Optional. Indicates how many times this example or template was added to
+ * Optional. Indicates how many times this example was added to
* the intent. Each time a developer adds an existing sample by editing an
* intent or training, this counter is increased.
*
diff --git a/Dialogflow/src/V2/Intent/TrainingPhrase/Part.php b/Dialogflow/src/V2/Intent/TrainingPhrase/Part.php
index ef33ad1caa32..bd640e007a18 100644
--- a/Dialogflow/src/V2/Intent/TrainingPhrase/Part.php
+++ b/Dialogflow/src/V2/Intent/TrainingPhrase/Part.php
@@ -16,17 +16,14 @@
class Part extends \Google\Protobuf\Internal\Message
{
/**
- * Required. The text corresponding to the example or template,
- * if there are no annotations. For
- * annotated examples, it is the text for one of the example's parts.
+ * Required. The text for this part.
*
* Generated from protobuf field string text = 1;
*/
private $text = '';
/**
- * Optional. The entity type name prefixed with `@`. This field is
- * required for the annotated part of the text and applies only to
- * examples.
+ * Optional. The entity type name prefixed with `@`.
+ * This field is required for annotated parts of the training phrase.
*
* Generated from protobuf field string entity_type = 2;
*/
@@ -34,13 +31,16 @@ class Part extends \Google\Protobuf\Internal\Message
/**
* Optional. The parameter name for the value extracted from the
* annotated part of the example.
+ * This field is required for annotated parts of the training phrase.
*
* Generated from protobuf field string alias = 3;
*/
private $alias = '';
/**
- * Optional. Indicates whether the text was manually annotated by the
- * developer.
+ * Optional. Indicates whether the text was manually annotated.
+ * This field is set to true when the Dialogflow Console is used to
+ * manually annotate the part. When creating an annotated part with the
+ * API, you must set this to true.
*
* Generated from protobuf field bool user_defined = 4;
*/
@@ -53,19 +53,19 @@ class Part extends \Google\Protobuf\Internal\Message
* Optional. Data for populating the Message object.
*
* @type string $text
- * Required. The text corresponding to the example or template,
- * if there are no annotations. For
- * annotated examples, it is the text for one of the example's parts.
+ * Required. The text for this part.
* @type string $entity_type
- * Optional. The entity type name prefixed with `@`. This field is
- * required for the annotated part of the text and applies only to
- * examples.
+ * Optional. The entity type name prefixed with `@`.
+ * This field is required for annotated parts of the training phrase.
* @type string $alias
* Optional. The parameter name for the value extracted from the
* annotated part of the example.
+ * This field is required for annotated parts of the training phrase.
* @type bool $user_defined
- * Optional. Indicates whether the text was manually annotated by the
- * developer.
+ * Optional. Indicates whether the text was manually annotated.
+ * This field is set to true when the Dialogflow Console is used to
+ * manually annotate the part. When creating an annotated part with the
+ * API, you must set this to true.
* }
*/
public function __construct($data = NULL) {
@@ -74,9 +74,7 @@ public function __construct($data = NULL) {
}
/**
- * Required. The text corresponding to the example or template,
- * if there are no annotations. For
- * annotated examples, it is the text for one of the example's parts.
+ * Required. The text for this part.
*
* Generated from protobuf field string text = 1;
* @return string
@@ -87,9 +85,7 @@ public function getText()
}
/**
- * Required. The text corresponding to the example or template,
- * if there are no annotations. For
- * annotated examples, it is the text for one of the example's parts.
+ * Required. The text for this part.
*
* Generated from protobuf field string text = 1;
* @param string $var
@@ -104,9 +100,8 @@ public function setText($var)
}
/**
- * Optional. The entity type name prefixed with `@`. This field is
- * required for the annotated part of the text and applies only to
- * examples.
+ * Optional. The entity type name prefixed with `@`.
+ * This field is required for annotated parts of the training phrase.
*
* Generated from protobuf field string entity_type = 2;
* @return string
@@ -117,9 +112,8 @@ public function getEntityType()
}
/**
- * Optional. The entity type name prefixed with `@`. This field is
- * required for the annotated part of the text and applies only to
- * examples.
+ * Optional. The entity type name prefixed with `@`.
+ * This field is required for annotated parts of the training phrase.
*
* Generated from protobuf field string entity_type = 2;
* @param string $var
@@ -136,6 +130,7 @@ public function setEntityType($var)
/**
* Optional. The parameter name for the value extracted from the
* annotated part of the example.
+ * This field is required for annotated parts of the training phrase.
*
* Generated from protobuf field string alias = 3;
* @return string
@@ -148,6 +143,7 @@ public function getAlias()
/**
* Optional. The parameter name for the value extracted from the
* annotated part of the example.
+ * This field is required for annotated parts of the training phrase.
*
* Generated from protobuf field string alias = 3;
* @param string $var
@@ -162,8 +158,10 @@ public function setAlias($var)
}
/**
- * Optional. Indicates whether the text was manually annotated by the
- * developer.
+ * Optional. Indicates whether the text was manually annotated.
+ * This field is set to true when the Dialogflow Console is used to
+ * manually annotate the part. When creating an annotated part with the
+ * API, you must set this to true.
*
* Generated from protobuf field bool user_defined = 4;
* @return bool
@@ -174,8 +172,10 @@ public function getUserDefined()
}
/**
- * Optional. Indicates whether the text was manually annotated by the
- * developer.
+ * Optional. Indicates whether the text was manually annotated.
+ * This field is set to true when the Dialogflow Console is used to
+ * manually annotate the part. When creating an annotated part with the
+ * API, you must set this to true.
*
* Generated from protobuf field bool user_defined = 4;
* @param bool $var
diff --git a/Dialogflow/src/V2/Intent/TrainingPhrase/Type.php b/Dialogflow/src/V2/Intent/TrainingPhrase/Type.php
index 85578c2ff950..a0a5ef200c1e 100644
--- a/Dialogflow/src/V2/Intent/TrainingPhrase/Type.php
+++ b/Dialogflow/src/V2/Intent/TrainingPhrase/Type.php
@@ -29,8 +29,12 @@ class Type
/**
* Templates are not annotated with entity types, but they can contain
* @-prefixed entity type names as substrings.
+ * Template mode has been deprecated. Example mode is the only supported
+ * way to create new training phrases. If you have existing training
+ * phrases that you've created in template mode, those will continue to
+ * work.
*
- * Generated from protobuf enum TEMPLATE = 2;
+ * Generated from protobuf enum TEMPLATE = 2 [deprecated = true];
*/
const TEMPLATE = 2;
diff --git a/Dialogflow/src/V2/IntentsGrpcClient.php b/Dialogflow/src/V2/IntentsGrpcClient.php
index 736412506ed8..003c340321ce 100644
--- a/Dialogflow/src/V2/IntentsGrpcClient.php
+++ b/Dialogflow/src/V2/IntentsGrpcClient.php
@@ -2,7 +2,7 @@
// GENERATED CODE -- DO NOT EDIT!
// Original file comments:
-// Copyright 2018 Google Inc.
+// Copyright 2019 Google LLC.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -16,16 +16,17 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//
+//
namespace Google\Cloud\Dialogflow\V2;
/**
* An intent represents a mapping between input from a user and an action to
* be taken by your application. When you pass user input to the
* [DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] (or
- * [StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent])
- * method, the Dialogflow API analyzes the input and searches for a matching
- * intent. If no match is found, the Dialogflow API returns a fallback intent
- * (`is_fallback` = true).
+ * [StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent]) method, the
+ * Dialogflow API analyzes the input and searches
+ * for a matching intent. If no match is found, the Dialogflow API returns a
+ * fallback intent (`is_fallback` = true).
*
* You can provide additional information for the Dialogflow API to use to
* match user input to an intent by adding the following to your intent.
@@ -33,7 +34,7 @@
* * **Contexts** - provide additional context for intent analysis. For
* example, if an intent is related to an object in your application that
* plays music, you can provide a context to determine when to match the
- * intent if the user input is “turn it off”. You can include a context
+ * intent if the user input is "turn it off". You can include a context
* that matches the intent when there is previous user input of
* "play music", and not when there is previous user input of
* "turn on the light".
@@ -49,7 +50,8 @@
* Dialogflow API agent to better match intents.
*
* For more information about intents, see the
- * [Dialogflow documentation](https://dialogflow.com/docs/intents).
+ * [Dialogflow
+ * documentation](https://cloud.google.com/dialogflow-enterprise/docs/intents-overview).
*/
class IntentsGrpcClient extends \Grpc\BaseStub {
@@ -119,7 +121,7 @@ public function UpdateIntent(\Google\Cloud\Dialogflow\V2\UpdateIntentRequest $ar
}
/**
- * Deletes the specified intent.
+ * Deletes the specified intent and its direct or indirect followup intents.
* @param \Google\Cloud\Dialogflow\V2\DeleteIntentRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
@@ -135,8 +137,7 @@ public function DeleteIntent(\Google\Cloud\Dialogflow\V2\DeleteIntentRequest $ar
/**
* Updates/Creates multiple intents in the specified agent.
*
- * Operation google.cloud.dialogflow.v2.ListContextsRequest
*/
diff --git a/Dialogflow/src/V2/ListContextsResponse.php b/Dialogflow/src/V2/ListContextsResponse.php
index c3081ef1851a..7ea74ba66e7e 100644
--- a/Dialogflow/src/V2/ListContextsResponse.php
+++ b/Dialogflow/src/V2/ListContextsResponse.php
@@ -9,8 +9,7 @@
use Google\Protobuf\Internal\GPBUtil;
/**
- * The response message for
- * [Contexts.ListContexts][google.cloud.dialogflow.v2.Contexts.ListContexts].
+ * The response message for [Contexts.ListContexts][google.cloud.dialogflow.v2.Contexts.ListContexts].
*
* Generated from protobuf message google.cloud.dialogflow.v2.ListContextsResponse
*/
diff --git a/Dialogflow/src/V2/ListEntityTypesRequest.php b/Dialogflow/src/V2/ListEntityTypesRequest.php
index 2411fddb80a2..2f7ee7dd54bf 100644
--- a/Dialogflow/src/V2/ListEntityTypesRequest.php
+++ b/Dialogflow/src/V2/ListEntityTypesRequest.php
@@ -9,8 +9,7 @@
use Google\Protobuf\Internal\GPBUtil;
/**
- * The request message for
- * [EntityTypes.ListEntityTypes][google.cloud.dialogflow.v2.EntityTypes.ListEntityTypes].
+ * The request message for [EntityTypes.ListEntityTypes][google.cloud.dialogflow.v2.EntityTypes.ListEntityTypes].
*
* Generated from protobuf message google.cloud.dialogflow.v2.ListEntityTypesRequest
*/
@@ -26,9 +25,10 @@ class ListEntityTypesRequest extends \Google\Protobuf\Internal\Message
/**
* Optional. The language to list entity synonyms for. If not specified,
* the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
* Generated from protobuf field string language_code = 2;
*/
@@ -59,9 +59,10 @@ class ListEntityTypesRequest extends \Google\Protobuf\Internal\Message
* @type string $language_code
* Optional. The language to list entity synonyms for. If not specified,
* the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
* @type int $page_size
* Optional. The maximum number of items to return in a single page. By
* default 100 and at most 1000.
@@ -105,9 +106,10 @@ public function setParent($var)
/**
* Optional. The language to list entity synonyms for. If not specified,
* the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
* Generated from protobuf field string language_code = 2;
* @return string
@@ -120,9 +122,10 @@ public function getLanguageCode()
/**
* Optional. The language to list entity synonyms for. If not specified,
* the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
* Generated from protobuf field string language_code = 2;
* @param string $var
diff --git a/Dialogflow/src/V2/ListEntityTypesResponse.php b/Dialogflow/src/V2/ListEntityTypesResponse.php
index 15eae2d5e118..7dd3102fcb2a 100644
--- a/Dialogflow/src/V2/ListEntityTypesResponse.php
+++ b/Dialogflow/src/V2/ListEntityTypesResponse.php
@@ -9,8 +9,7 @@
use Google\Protobuf\Internal\GPBUtil;
/**
- * The response message for
- * [EntityTypes.ListEntityTypes][google.cloud.dialogflow.v2.EntityTypes.ListEntityTypes].
+ * The response message for [EntityTypes.ListEntityTypes][google.cloud.dialogflow.v2.EntityTypes.ListEntityTypes].
*
* Generated from protobuf message google.cloud.dialogflow.v2.ListEntityTypesResponse
*/
diff --git a/Dialogflow/src/V2/ListIntentsRequest.php b/Dialogflow/src/V2/ListIntentsRequest.php
index 00878725955a..b798c3f8365c 100644
--- a/Dialogflow/src/V2/ListIntentsRequest.php
+++ b/Dialogflow/src/V2/ListIntentsRequest.php
@@ -9,8 +9,7 @@
use Google\Protobuf\Internal\GPBUtil;
/**
- * The request message for
- * [Intents.ListIntents][google.cloud.dialogflow.v2.Intents.ListIntents].
+ * The request message for [Intents.ListIntents][google.cloud.dialogflow.v2.Intents.ListIntents].
*
* Generated from protobuf message google.cloud.dialogflow.v2.ListIntentsRequest
*/
@@ -26,9 +25,10 @@ class ListIntentsRequest extends \Google\Protobuf\Internal\Message
/**
* Optional. The language to list training phrases, parameters and rich
* messages for. If not specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
* Generated from protobuf field string language_code = 2;
*/
@@ -65,9 +65,10 @@ class ListIntentsRequest extends \Google\Protobuf\Internal\Message
* @type string $language_code
* Optional. The language to list training phrases, parameters and rich
* messages for. If not specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
* @type int $intent_view
* Optional. The resource view to apply to the returned intent.
* @type int $page_size
@@ -113,9 +114,10 @@ public function setParent($var)
/**
* Optional. The language to list training phrases, parameters and rich
* messages for. If not specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
* Generated from protobuf field string language_code = 2;
* @return string
@@ -128,9 +130,10 @@ public function getLanguageCode()
/**
* Optional. The language to list training phrases, parameters and rich
* messages for. If not specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
* Generated from protobuf field string language_code = 2;
* @param string $var
diff --git a/Dialogflow/src/V2/ListIntentsResponse.php b/Dialogflow/src/V2/ListIntentsResponse.php
index 59d78f5e4e1a..54d73937ddcd 100644
--- a/Dialogflow/src/V2/ListIntentsResponse.php
+++ b/Dialogflow/src/V2/ListIntentsResponse.php
@@ -9,8 +9,7 @@
use Google\Protobuf\Internal\GPBUtil;
/**
- * The response message for
- * [Intents.ListIntents][google.cloud.dialogflow.v2.Intents.ListIntents].
+ * The response message for [Intents.ListIntents][google.cloud.dialogflow.v2.Intents.ListIntents].
*
* Generated from protobuf message google.cloud.dialogflow.v2.ListIntentsResponse
*/
diff --git a/Dialogflow/src/V2/ListSessionEntityTypesRequest.php b/Dialogflow/src/V2/ListSessionEntityTypesRequest.php
index db3ccb582a80..7853a299a053 100644
--- a/Dialogflow/src/V2/ListSessionEntityTypesRequest.php
+++ b/Dialogflow/src/V2/ListSessionEntityTypesRequest.php
@@ -9,8 +9,7 @@
use Google\Protobuf\Internal\GPBUtil;
/**
- * The request message for
- * [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.v2.SessionEntityTypes.ListSessionEntityTypes].
+ * The request message for [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.v2.SessionEntityTypes.ListSessionEntityTypes].
*
* Generated from protobuf message google.cloud.dialogflow.v2.ListSessionEntityTypesRequest
*/
diff --git a/Dialogflow/src/V2/ListSessionEntityTypesResponse.php b/Dialogflow/src/V2/ListSessionEntityTypesResponse.php
index 86c2e4d5c22c..ee8cb9753cf1 100644
--- a/Dialogflow/src/V2/ListSessionEntityTypesResponse.php
+++ b/Dialogflow/src/V2/ListSessionEntityTypesResponse.php
@@ -9,8 +9,7 @@
use Google\Protobuf\Internal\GPBUtil;
/**
- * The response message for
- * [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.v2.SessionEntityTypes.ListSessionEntityTypes].
+ * The response message for [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.v2.SessionEntityTypes.ListSessionEntityTypes].
*
* Generated from protobuf message google.cloud.dialogflow.v2.ListSessionEntityTypesResponse
*/
diff --git a/Dialogflow/src/V2/OriginalDetectIntentRequest.php b/Dialogflow/src/V2/OriginalDetectIntentRequest.php
index dc426d36d885..618ac49ef52a 100644
--- a/Dialogflow/src/V2/OriginalDetectIntentRequest.php
+++ b/Dialogflow/src/V2/OriginalDetectIntentRequest.php
@@ -24,8 +24,25 @@ class OriginalDetectIntentRequest extends \Google\Protobuf\Internal\Message
*/
private $source = '';
/**
- * Optional. This field is set to the value of `QueryParameters.payload` field
- * passed in the request.
+ * Optional. The version of the protocol used for this request.
+ * This field is AoG-specific.
+ *
+ * Generated from protobuf field string version = 2;
+ */
+ private $version = '';
+ /**
+ * Optional. This field is set to the value of the `QueryParameters.payload`
+ * field passed in the request. Some integrations that query a Dialogflow
+ * agent may provide additional information in the payload.
+ * In particular for the Telephony Gateway this field has the form:
+ * { + * "telephony": { + * "caller_id": "+18558363987" + * } + * }+ * Note: The caller ID field (`caller_id`) will be redacted for Standard + * Edition agents and populated with the caller ID in [E.164 + * format](https://en.wikipedia.org/wiki/E.164) for Enterprise Edition agents. * * Generated from protobuf field
.google.protobuf.Struct payload = 3;
*/
@@ -40,9 +57,22 @@ class OriginalDetectIntentRequest extends \Google\Protobuf\Internal\Message
* @type string $source
* The source of this request, e.g., `google`, `facebook`, `slack`. It is set
* by Dialogflow-owned servers.
+ * @type string $version
+ * Optional. The version of the protocol used for this request.
+ * This field is AoG-specific.
* @type \Google\Protobuf\Struct $payload
- * Optional. This field is set to the value of `QueryParameters.payload` field
- * passed in the request.
+ * Optional. This field is set to the value of the `QueryParameters.payload`
+ * field passed in the request. Some integrations that query a Dialogflow
+ * agent may provide additional information in the payload.
+ * In particular for the Telephony Gateway this field has the form:
+ * { + * "telephony": { + * "caller_id": "+18558363987" + * } + * }+ * Note: The caller ID field (`caller_id`) will be redacted for Standard + * Edition agents and populated with the caller ID in [E.164 + * format](https://en.wikipedia.org/wiki/E.164) for Enterprise Edition agents. * } */ public function __construct($data = NULL) { @@ -79,8 +109,46 @@ public function setSource($var) } /** - * Optional. This field is set to the value of `QueryParameters.payload` field - * passed in the request. + * Optional. The version of the protocol used for this request. + * This field is AoG-specific. + * + * Generated from protobuf field
string version = 2;
+ * @return string
+ */
+ public function getVersion()
+ {
+ return $this->version;
+ }
+
+ /**
+ * Optional. The version of the protocol used for this request.
+ * This field is AoG-specific.
+ *
+ * Generated from protobuf field string version = 2;
+ * @param string $var
+ * @return $this
+ */
+ public function setVersion($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->version = $var;
+
+ return $this;
+ }
+
+ /**
+ * Optional. This field is set to the value of the `QueryParameters.payload`
+ * field passed in the request. Some integrations that query a Dialogflow
+ * agent may provide additional information in the payload.
+ * In particular for the Telephony Gateway this field has the form:
+ * { + * "telephony": { + * "caller_id": "+18558363987" + * } + * }+ * Note: The caller ID field (`caller_id`) will be redacted for Standard + * Edition agents and populated with the caller ID in [E.164 + * format](https://en.wikipedia.org/wiki/E.164) for Enterprise Edition agents. * * Generated from protobuf field
.google.protobuf.Struct payload = 3;
* @return \Google\Protobuf\Struct
@@ -91,8 +159,18 @@ public function getPayload()
}
/**
- * Optional. This field is set to the value of `QueryParameters.payload` field
- * passed in the request.
+ * Optional. This field is set to the value of the `QueryParameters.payload`
+ * field passed in the request. Some integrations that query a Dialogflow
+ * agent may provide additional information in the payload.
+ * In particular for the Telephony Gateway this field has the form:
+ * { + * "telephony": { + * "caller_id": "+18558363987" + * } + * }+ * Note: The caller ID field (`caller_id`) will be redacted for Standard + * Edition agents and populated with the caller ID in [E.164 + * format](https://en.wikipedia.org/wiki/E.164) for Enterprise Edition agents. * * Generated from protobuf field
.google.protobuf.Struct payload = 3;
* @param \Google\Protobuf\Struct $var
diff --git a/Dialogflow/src/V2/OutputAudioConfig.php b/Dialogflow/src/V2/OutputAudioConfig.php
new file mode 100644
index 000000000000..14c11add5a90
--- /dev/null
+++ b/Dialogflow/src/V2/OutputAudioConfig.php
@@ -0,0 +1,151 @@
+google.cloud.dialogflow.v2.OutputAudioConfig
+ */
+class OutputAudioConfig extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Required. Audio encoding of the synthesized audio content.
+ *
+ * Generated from protobuf field .google.cloud.dialogflow.v2.OutputAudioEncoding audio_encoding = 1;
+ */
+ private $audio_encoding = 0;
+ /**
+ * Optional. The synthesis sample rate (in hertz) for this audio. If not
+ * provided, then the synthesizer will use the default sample rate based on
+ * the audio encoding. If this is different from the voice's natural sample
+ * rate, then the synthesizer will honor this request by converting to the
+ * desired sample rate (which might result in worse audio quality).
+ *
+ * Generated from protobuf field int32 sample_rate_hertz = 2;
+ */
+ private $sample_rate_hertz = 0;
+ /**
+ * Optional. Configuration of how speech should be synthesized.
+ *
+ * Generated from protobuf field .google.cloud.dialogflow.v2.SynthesizeSpeechConfig synthesize_speech_config = 3;
+ */
+ private $synthesize_speech_config = null;
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type int $audio_encoding
+ * Required. Audio encoding of the synthesized audio content.
+ * @type int $sample_rate_hertz
+ * Optional. The synthesis sample rate (in hertz) for this audio. If not
+ * provided, then the synthesizer will use the default sample rate based on
+ * the audio encoding. If this is different from the voice's natural sample
+ * rate, then the synthesizer will honor this request by converting to the
+ * desired sample rate (which might result in worse audio quality).
+ * @type \Google\Cloud\Dialogflow\V2\SynthesizeSpeechConfig $synthesize_speech_config
+ * Optional. Configuration of how speech should be synthesized.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Cloud\Dialogflow\V2\AudioConfig::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Required. Audio encoding of the synthesized audio content.
+ *
+ * Generated from protobuf field .google.cloud.dialogflow.v2.OutputAudioEncoding audio_encoding = 1;
+ * @return int
+ */
+ public function getAudioEncoding()
+ {
+ return $this->audio_encoding;
+ }
+
+ /**
+ * Required. Audio encoding of the synthesized audio content.
+ *
+ * Generated from protobuf field .google.cloud.dialogflow.v2.OutputAudioEncoding audio_encoding = 1;
+ * @param int $var
+ * @return $this
+ */
+ public function setAudioEncoding($var)
+ {
+ GPBUtil::checkEnum($var, \Google\Cloud\Dialogflow\V2\OutputAudioEncoding::class);
+ $this->audio_encoding = $var;
+
+ return $this;
+ }
+
+ /**
+ * Optional. The synthesis sample rate (in hertz) for this audio. If not
+ * provided, then the synthesizer will use the default sample rate based on
+ * the audio encoding. If this is different from the voice's natural sample
+ * rate, then the synthesizer will honor this request by converting to the
+ * desired sample rate (which might result in worse audio quality).
+ *
+ * Generated from protobuf field int32 sample_rate_hertz = 2;
+ * @return int
+ */
+ public function getSampleRateHertz()
+ {
+ return $this->sample_rate_hertz;
+ }
+
+ /**
+ * Optional. The synthesis sample rate (in hertz) for this audio. If not
+ * provided, then the synthesizer will use the default sample rate based on
+ * the audio encoding. If this is different from the voice's natural sample
+ * rate, then the synthesizer will honor this request by converting to the
+ * desired sample rate (which might result in worse audio quality).
+ *
+ * Generated from protobuf field int32 sample_rate_hertz = 2;
+ * @param int $var
+ * @return $this
+ */
+ public function setSampleRateHertz($var)
+ {
+ GPBUtil::checkInt32($var);
+ $this->sample_rate_hertz = $var;
+
+ return $this;
+ }
+
+ /**
+ * Optional. Configuration of how speech should be synthesized.
+ *
+ * Generated from protobuf field .google.cloud.dialogflow.v2.SynthesizeSpeechConfig synthesize_speech_config = 3;
+ * @return \Google\Cloud\Dialogflow\V2\SynthesizeSpeechConfig
+ */
+ public function getSynthesizeSpeechConfig()
+ {
+ return $this->synthesize_speech_config;
+ }
+
+ /**
+ * Optional. Configuration of how speech should be synthesized.
+ *
+ * Generated from protobuf field .google.cloud.dialogflow.v2.SynthesizeSpeechConfig synthesize_speech_config = 3;
+ * @param \Google\Cloud\Dialogflow\V2\SynthesizeSpeechConfig $var
+ * @return $this
+ */
+ public function setSynthesizeSpeechConfig($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\SynthesizeSpeechConfig::class);
+ $this->synthesize_speech_config = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/Dialogflow/src/V2/OutputAudioEncoding.php b/Dialogflow/src/V2/OutputAudioEncoding.php
new file mode 100644
index 000000000000..14542a75c33f
--- /dev/null
+++ b/Dialogflow/src/V2/OutputAudioEncoding.php
@@ -0,0 +1,72 @@
+google.cloud.dialogflow.v2.OutputAudioEncoding
+ */
+class OutputAudioEncoding
+{
+ /**
+ * Not specified.
+ *
+ * Generated from protobuf enum OUTPUT_AUDIO_ENCODING_UNSPECIFIED = 0;
+ */
+ const OUTPUT_AUDIO_ENCODING_UNSPECIFIED = 0;
+ /**
+ * Uncompressed 16-bit signed little-endian samples (Linear PCM).
+ * Audio content returned as LINEAR16 also contains a WAV header.
+ *
+ * Generated from protobuf enum OUTPUT_AUDIO_ENCODING_LINEAR_16 = 1;
+ */
+ const OUTPUT_AUDIO_ENCODING_LINEAR_16 = 1;
+ /**
+ * MP3 audio.
+ *
+ * Generated from protobuf enum OUTPUT_AUDIO_ENCODING_MP3 = 2;
+ */
+ const OUTPUT_AUDIO_ENCODING_MP3 = 2;
+ /**
+ * Opus encoded audio wrapped in an ogg container. The result will be a
+ * file which can be played natively on Android, and in browsers (at least
+ * Chrome and Firefox). The quality of the encoding is considerably higher
+ * than MP3 while using approximately the same bitrate.
+ *
+ * Generated from protobuf enum OUTPUT_AUDIO_ENCODING_OGG_OPUS = 3;
+ */
+ const OUTPUT_AUDIO_ENCODING_OGG_OPUS = 3;
+
+ private static $valueToName = [
+ self::OUTPUT_AUDIO_ENCODING_UNSPECIFIED => 'OUTPUT_AUDIO_ENCODING_UNSPECIFIED',
+ self::OUTPUT_AUDIO_ENCODING_LINEAR_16 => 'OUTPUT_AUDIO_ENCODING_LINEAR_16',
+ self::OUTPUT_AUDIO_ENCODING_MP3 => 'OUTPUT_AUDIO_ENCODING_MP3',
+ self::OUTPUT_AUDIO_ENCODING_OGG_OPUS => 'OUTPUT_AUDIO_ENCODING_OGG_OPUS',
+ ];
+
+ public static function name($value)
+ {
+ if (!isset(self::$valueToName[$value])) {
+ throw new UnexpectedValueException(sprintf(
+ 'Enum %s has no name defined for value %s', __CLASS__, $value));
+ }
+ return self::$valueToName[$value];
+ }
+
+
+ public static function value($name)
+ {
+ $const = __CLASS__ . '::' . strtoupper($name);
+ if (!defined($const)) {
+ throw new UnexpectedValueException(sprintf(
+ 'Enum %s has no value defined for name %s', __CLASS__, $name));
+ }
+ return constant($const);
+ }
+}
+
diff --git a/Dialogflow/src/V2/QueryParameters.php b/Dialogflow/src/V2/QueryParameters.php
index 8f8b6e9ba57e..e41f8942c482 100644
--- a/Dialogflow/src/V2/QueryParameters.php
+++ b/Dialogflow/src/V2/QueryParameters.php
@@ -45,9 +45,9 @@ class QueryParameters extends \Google\Protobuf\Internal\Message
*/
private $reset_contexts = false;
/**
- * Optional. The collection of session entity types to replace or extend
- * developer entities with for this query only. The entity synonyms apply
- * to all languages.
+ * Optional. Additional session entity types to replace or extend developer
+ * entity types with. The entity synonyms apply to all languages and persist
+ * for the session of this query.
*
* Generated from protobuf field repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 5;
*/
@@ -59,6 +59,13 @@ class QueryParameters extends \Google\Protobuf\Internal\Message
* Generated from protobuf field .google.protobuf.Struct payload = 6;
*/
private $payload = null;
+ /**
+ * Optional. Configures the type of sentiment analysis to perform. If not
+ * provided, sentiment analysis is not performed.
+ *
+ * Generated from protobuf field .google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig sentiment_analysis_request_config = 10;
+ */
+ private $sentiment_analysis_request_config = null;
/**
* Constructor.
@@ -80,12 +87,15 @@ class QueryParameters extends \Google\Protobuf\Internal\Message
* Optional. Specifies whether to delete all contexts in the current session
* before the new ones are activated.
* @type \Google\Cloud\Dialogflow\V2\SessionEntityType[]|\Google\Protobuf\Internal\RepeatedField $session_entity_types
- * Optional. The collection of session entity types to replace or extend
- * developer entities with for this query only. The entity synonyms apply
- * to all languages.
+ * Optional. Additional session entity types to replace or extend developer
+ * entity types with. The entity synonyms apply to all languages and persist
+ * for the session of this query.
* @type \Google\Protobuf\Struct $payload
* Optional. This field can be used to pass custom data into the webhook
* associated with the agent. Arbitrary JSON objects are supported.
+ * @type \Google\Cloud\Dialogflow\V2\SentimentAnalysisRequestConfig $sentiment_analysis_request_config
+ * Optional. Configures the type of sentiment analysis to perform. If not
+ * provided, sentiment analysis is not performed.
* }
*/
public function __construct($data = NULL) {
@@ -208,9 +218,9 @@ public function setResetContexts($var)
}
/**
- * Optional. The collection of session entity types to replace or extend
- * developer entities with for this query only. The entity synonyms apply
- * to all languages.
+ * Optional. Additional session entity types to replace or extend developer
+ * entity types with. The entity synonyms apply to all languages and persist
+ * for the session of this query.
*
* Generated from protobuf field repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 5;
* @return \Google\Protobuf\Internal\RepeatedField
@@ -221,9 +231,9 @@ public function getSessionEntityTypes()
}
/**
- * Optional. The collection of session entity types to replace or extend
- * developer entities with for this query only. The entity synonyms apply
- * to all languages.
+ * Optional. Additional session entity types to replace or extend developer
+ * entity types with. The entity synonyms apply to all languages and persist
+ * for the session of this query.
*
* Generated from protobuf field repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 5;
* @param \Google\Cloud\Dialogflow\V2\SessionEntityType[]|\Google\Protobuf\Internal\RepeatedField $var
@@ -265,5 +275,33 @@ public function setPayload($var)
return $this;
}
+ /**
+ * Optional. Configures the type of sentiment analysis to perform. If not
+ * provided, sentiment analysis is not performed.
+ *
+ * Generated from protobuf field .google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig sentiment_analysis_request_config = 10;
+ * @return \Google\Cloud\Dialogflow\V2\SentimentAnalysisRequestConfig
+ */
+ public function getSentimentAnalysisRequestConfig()
+ {
+ return $this->sentiment_analysis_request_config;
+ }
+
+ /**
+ * Optional. Configures the type of sentiment analysis to perform. If not
+ * provided, sentiment analysis is not performed.
+ *
+ * Generated from protobuf field .google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig sentiment_analysis_request_config = 10;
+ * @param \Google\Cloud\Dialogflow\V2\SentimentAnalysisRequestConfig $var
+ * @return $this
+ */
+ public function setSentimentAnalysisRequestConfig($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\SentimentAnalysisRequestConfig::class);
+ $this->sentiment_analysis_request_config = $var;
+
+ return $this;
+ }
+
}
diff --git a/Dialogflow/src/V2/QueryResult.php b/Dialogflow/src/V2/QueryResult.php
index 5a947c28d43a..3178621c405d 100644
--- a/Dialogflow/src/V2/QueryResult.php
+++ b/Dialogflow/src/V2/QueryResult.php
@@ -29,7 +29,8 @@ class QueryResult extends \Google\Protobuf\Internal\Message
private $query_text = '';
/**
* The language that was triggered during intent detection.
- * See [Language Support](https://dialogflow.com/docs/reference/language)
+ * See [Language
+ * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
* for a list of the currently supported language codes.
*
* Generated from protobuf field string language_code = 15;
@@ -40,10 +41,10 @@ class QueryResult extends \Google\Protobuf\Internal\Message
* indicates an estimated greater likelihood that the recognized words are
* correct. The default of 0.0 is a sentinel value indicating that confidence
* was not set.
- * You should not rely on this field as it isn't guaranteed to be accurate, or
- * even set. In particular this field isn't set in Webhook calls and for
- * StreamingDetectIntent since the streaming endpoint has separate confidence
- * estimates per portion of the audio in StreamingRecognitionResult.
+ * This field is not guaranteed to be accurate or set. In particular this
+ * field isn't set for StreamingDetectIntent since the streaming endpoint has
+ * separate confidence estimates per portion of the audio in
+ * StreamingRecognitionResult.
*
* Generated from protobuf field float speech_recognition_confidence = 2;
*/
@@ -72,6 +73,7 @@ class QueryResult extends \Google\Protobuf\Internal\Message
private $all_required_params_present = false;
/**
* The text to be pronounced to the user or shown on the screen.
+ * Note: This is a legacy field, `fulfillment_messages` should be preferred.
*
* Generated from protobuf field string fulfillment_text = 6;
*/
@@ -116,17 +118,27 @@ class QueryResult extends \Google\Protobuf\Internal\Message
/**
* The intent detection confidence. Values range from 0.0
* (completely uncertain) to 1.0 (completely certain).
+ * If there are `multiple knowledge_answers` messages, this value is set to
+ * the greatest `knowledgeAnswers.match_confidence` value in the list.
*
* Generated from protobuf field float intent_detection_confidence = 12;
*/
private $intent_detection_confidence = 0.0;
/**
- * The free-form diagnostic info. For example, this field
- * could contain webhook call latency.
+ * The free-form diagnostic info. For example, this field could contain
+ * webhook call latency. The string keys of the Struct's fields map can change
+ * without notice.
*
* Generated from protobuf field .google.protobuf.Struct diagnostic_info = 14;
*/
private $diagnostic_info = null;
+ /**
+ * The sentiment analysis result, which depends on the
+ * `sentiment_analysis_request_config` specified in the request.
+ *
+ * Generated from protobuf field .google.cloud.dialogflow.v2.SentimentAnalysisResult sentiment_analysis_result = 17;
+ */
+ private $sentiment_analysis_result = null;
/**
* Constructor.
@@ -144,17 +156,18 @@ class QueryResult extends \Google\Protobuf\Internal\Message
* - If an event was provided as input, `query_text` is not set.
* @type string $language_code
* The language that was triggered during intent detection.
- * See [Language Support](https://dialogflow.com/docs/reference/language)
+ * See [Language
+ * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
* for a list of the currently supported language codes.
* @type float $speech_recognition_confidence
* The Speech recognition confidence between 0.0 and 1.0. A higher number
* indicates an estimated greater likelihood that the recognized words are
* correct. The default of 0.0 is a sentinel value indicating that confidence
* was not set.
- * You should not rely on this field as it isn't guaranteed to be accurate, or
- * even set. In particular this field isn't set in Webhook calls and for
- * StreamingDetectIntent since the streaming endpoint has separate confidence
- * estimates per portion of the audio in StreamingRecognitionResult.
+ * This field is not guaranteed to be accurate or set. In particular this
+ * field isn't set for StreamingDetectIntent since the streaming endpoint has
+ * separate confidence estimates per portion of the audio in
+ * StreamingRecognitionResult.
* @type string $action
* The action name from the matched intent.
* @type \Google\Protobuf\Struct $parameters
@@ -167,6 +180,7 @@ class QueryResult extends \Google\Protobuf\Internal\Message
* matched intent doesn't contain any required parameters.
* @type string $fulfillment_text
* The text to be pronounced to the user or shown on the screen.
+ * Note: This is a legacy field, `fulfillment_messages` should be preferred.
* @type \Google\Cloud\Dialogflow\V2\Intent\Message[]|\Google\Protobuf\Internal\RepeatedField $fulfillment_messages
* The collection of rich messages to present to the user.
* @type string $webhook_source
@@ -187,9 +201,15 @@ class QueryResult extends \Google\Protobuf\Internal\Message
* @type float $intent_detection_confidence
* The intent detection confidence. Values range from 0.0
* (completely uncertain) to 1.0 (completely certain).
+ * If there are `multiple knowledge_answers` messages, this value is set to
+ * the greatest `knowledgeAnswers.match_confidence` value in the list.
* @type \Google\Protobuf\Struct $diagnostic_info
- * The free-form diagnostic info. For example, this field
- * could contain webhook call latency.
+ * The free-form diagnostic info. For example, this field could contain
+ * webhook call latency. The string keys of the Struct's fields map can change
+ * without notice.
+ * @type \Google\Cloud\Dialogflow\V2\SentimentAnalysisResult $sentiment_analysis_result
+ * The sentiment analysis result, which depends on the
+ * `sentiment_analysis_request_config` specified in the request.
* }
*/
public function __construct($data = NULL) {
@@ -237,7 +257,8 @@ public function setQueryText($var)
/**
* The language that was triggered during intent detection.
- * See [Language Support](https://dialogflow.com/docs/reference/language)
+ * See [Language
+ * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
* for a list of the currently supported language codes.
*
* Generated from protobuf field string language_code = 15;
@@ -250,7 +271,8 @@ public function getLanguageCode()
/**
* The language that was triggered during intent detection.
- * See [Language Support](https://dialogflow.com/docs/reference/language)
+ * See [Language
+ * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
* for a list of the currently supported language codes.
*
* Generated from protobuf field string language_code = 15;
@@ -270,10 +292,10 @@ public function setLanguageCode($var)
* indicates an estimated greater likelihood that the recognized words are
* correct. The default of 0.0 is a sentinel value indicating that confidence
* was not set.
- * You should not rely on this field as it isn't guaranteed to be accurate, or
- * even set. In particular this field isn't set in Webhook calls and for
- * StreamingDetectIntent since the streaming endpoint has separate confidence
- * estimates per portion of the audio in StreamingRecognitionResult.
+ * This field is not guaranteed to be accurate or set. In particular this
+ * field isn't set for StreamingDetectIntent since the streaming endpoint has
+ * separate confidence estimates per portion of the audio in
+ * StreamingRecognitionResult.
*
* Generated from protobuf field float speech_recognition_confidence = 2;
* @return float
@@ -288,10 +310,10 @@ public function getSpeechRecognitionConfidence()
* indicates an estimated greater likelihood that the recognized words are
* correct. The default of 0.0 is a sentinel value indicating that confidence
* was not set.
- * You should not rely on this field as it isn't guaranteed to be accurate, or
- * even set. In particular this field isn't set in Webhook calls and for
- * StreamingDetectIntent since the streaming endpoint has separate confidence
- * estimates per portion of the audio in StreamingRecognitionResult.
+ * This field is not guaranteed to be accurate or set. In particular this
+ * field isn't set for StreamingDetectIntent since the streaming endpoint has
+ * separate confidence estimates per portion of the audio in
+ * StreamingRecognitionResult.
*
* Generated from protobuf field float speech_recognition_confidence = 2;
* @param float $var
@@ -393,6 +415,7 @@ public function setAllRequiredParamsPresent($var)
/**
* The text to be pronounced to the user or shown on the screen.
+ * Note: This is a legacy field, `fulfillment_messages` should be preferred.
*
* Generated from protobuf field string fulfillment_text = 6;
* @return string
@@ -404,6 +427,7 @@ public function getFulfillmentText()
/**
* The text to be pronounced to the user or shown on the screen.
+ * Note: This is a legacy field, `fulfillment_messages` should be preferred.
*
* Generated from protobuf field string fulfillment_text = 6;
* @param string $var
@@ -564,6 +588,8 @@ public function setIntent($var)
/**
* The intent detection confidence. Values range from 0.0
* (completely uncertain) to 1.0 (completely certain).
+ * If there are `multiple knowledge_answers` messages, this value is set to
+ * the greatest `knowledgeAnswers.match_confidence` value in the list.
*
* Generated from protobuf field float intent_detection_confidence = 12;
* @return float
@@ -576,6 +602,8 @@ public function getIntentDetectionConfidence()
/**
* The intent detection confidence. Values range from 0.0
* (completely uncertain) to 1.0 (completely certain).
+ * If there are `multiple knowledge_answers` messages, this value is set to
+ * the greatest `knowledgeAnswers.match_confidence` value in the list.
*
* Generated from protobuf field float intent_detection_confidence = 12;
* @param float $var
@@ -590,8 +618,9 @@ public function setIntentDetectionConfidence($var)
}
/**
- * The free-form diagnostic info. For example, this field
- * could contain webhook call latency.
+ * The free-form diagnostic info. For example, this field could contain
+ * webhook call latency. The string keys of the Struct's fields map can change
+ * without notice.
*
* Generated from protobuf field .google.protobuf.Struct diagnostic_info = 14;
* @return \Google\Protobuf\Struct
@@ -602,8 +631,9 @@ public function getDiagnosticInfo()
}
/**
- * The free-form diagnostic info. For example, this field
- * could contain webhook call latency.
+ * The free-form diagnostic info. For example, this field could contain
+ * webhook call latency. The string keys of the Struct's fields map can change
+ * without notice.
*
* Generated from protobuf field .google.protobuf.Struct diagnostic_info = 14;
* @param \Google\Protobuf\Struct $var
@@ -617,5 +647,33 @@ public function setDiagnosticInfo($var)
return $this;
}
+ /**
+ * The sentiment analysis result, which depends on the
+ * `sentiment_analysis_request_config` specified in the request.
+ *
+ * Generated from protobuf field .google.cloud.dialogflow.v2.SentimentAnalysisResult sentiment_analysis_result = 17;
+ * @return \Google\Cloud\Dialogflow\V2\SentimentAnalysisResult
+ */
+ public function getSentimentAnalysisResult()
+ {
+ return $this->sentiment_analysis_result;
+ }
+
+ /**
+ * The sentiment analysis result, which depends on the
+ * `sentiment_analysis_request_config` specified in the request.
+ *
+ * Generated from protobuf field .google.cloud.dialogflow.v2.SentimentAnalysisResult sentiment_analysis_result = 17;
+ * @param \Google\Cloud\Dialogflow\V2\SentimentAnalysisResult $var
+ * @return $this
+ */
+ public function setSentimentAnalysisResult($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\SentimentAnalysisResult::class);
+ $this->sentiment_analysis_result = $var;
+
+ return $this;
+ }
+
}
diff --git a/Dialogflow/src/V2/RestoreAgentRequest.php b/Dialogflow/src/V2/RestoreAgentRequest.php
index 38f9e6b13afd..c470c1dd1ea6 100644
--- a/Dialogflow/src/V2/RestoreAgentRequest.php
+++ b/Dialogflow/src/V2/RestoreAgentRequest.php
@@ -9,8 +9,7 @@
use Google\Protobuf\Internal\GPBUtil;
/**
- * The request message for
- * [Agents.RestoreAgent][google.cloud.dialogflow.v2.Agents.RestoreAgent].
+ * The request message for [Agents.RestoreAgent][google.cloud.dialogflow.v2.Agents.RestoreAgent].
*
* Generated from protobuf message google.cloud.dialogflow.v2.RestoreAgentRequest
*/
@@ -40,16 +39,17 @@ class RestoreAgentRequest extends \Google\Protobuf\Internal\Message
* @type string $agent_content
* The agent to restore.
* Example for how to restore an agent via the command line:
- * curl \
- * 'https://dialogflow.googleapis.com/v2/projects/curl \ + * 'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:restore\ * -X POST \ - * -H 'Authorization: Bearer '$(gcloud auth print-access-token) \ + * -H 'Authorization: Bearer '$(gcloud auth application-default + * print-access-token) \ * -H 'Accept: application/json' \ * -H 'Content-Type: application/json' \ * --compressed \ * --data-binary "{ - * 'agentContent': '$(cat* } */ public function __construct($data = NULL) { @@ -116,16 +116,17 @@ public function setAgentUri($var) /** * The agent to restore. * Example for how to restore an agent via the command line: - * curl \ - * 'https://dialogflow.googleapis.com/v2/projects/| base64 -w 0)' - * }" \ + * 'agentContent': '$(cat <agent zip file> | base64 -w 0)' + * }"
curl \ + * 'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:restore\ * -X POST \ - * -H 'Authorization: Bearer '$(gcloud auth print-access-token) \ + * -H 'Authorization: Bearer '$(gcloud auth application-default + * print-access-token) \ * -H 'Accept: application/json' \ * -H 'Content-Type: application/json' \ * --compressed \ * --data-binary "{ - * 'agentContent': '$(cat* * Generated from protobuf field| base64 -w 0)' - * }" \ + * 'agentContent': '$(cat <agent zip file> | base64 -w 0)' + * }"
bytes agent_content = 3;
* @return string
@@ -138,16 +139,17 @@ public function getAgentContent()
/**
* The agent to restore.
* Example for how to restore an agent via the command line:
- * curl \
- * 'https://dialogflow.googleapis.com/v2/projects/curl \ + * 'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:restore\ * -X POST \ - * -H 'Authorization: Bearer '$(gcloud auth print-access-token) \ + * -H 'Authorization: Bearer '$(gcloud auth application-default + * print-access-token) \ * -H 'Accept: application/json' \ * -H 'Content-Type: application/json' \ * --compressed \ * --data-binary "{ - * 'agentContent': '$(cat* * Generated from protobuf field| base64 -w 0)' - * }" \ + * 'agentContent': '$(cat <agent zip file> | base64 -w 0)' + * }"
bytes agent_content = 3;
* @param string $var
diff --git a/Dialogflow/src/V2/SearchAgentsRequest.php b/Dialogflow/src/V2/SearchAgentsRequest.php
index 5db383fe31e8..63228f42a24d 100644
--- a/Dialogflow/src/V2/SearchAgentsRequest.php
+++ b/Dialogflow/src/V2/SearchAgentsRequest.php
@@ -9,8 +9,7 @@
use Google\Protobuf\Internal\GPBUtil;
/**
- * The request message for
- * [Agents.SearchAgents][google.cloud.dialogflow.v2.Agents.SearchAgents].
+ * The request message for [Agents.SearchAgents][google.cloud.dialogflow.v2.Agents.SearchAgents].
*
* Generated from protobuf message google.cloud.dialogflow.v2.SearchAgentsRequest
*/
diff --git a/Dialogflow/src/V2/SearchAgentsResponse.php b/Dialogflow/src/V2/SearchAgentsResponse.php
index 2d50e5823998..2838371a4678 100644
--- a/Dialogflow/src/V2/SearchAgentsResponse.php
+++ b/Dialogflow/src/V2/SearchAgentsResponse.php
@@ -9,8 +9,7 @@
use Google\Protobuf\Internal\GPBUtil;
/**
- * The response message for
- * [Agents.SearchAgents][google.cloud.dialogflow.v2.Agents.SearchAgents].
+ * The response message for [Agents.SearchAgents][google.cloud.dialogflow.v2.Agents.SearchAgents].
*
* Generated from protobuf message google.cloud.dialogflow.v2.SearchAgentsResponse
*/
diff --git a/Dialogflow/src/V2/Sentiment.php b/Dialogflow/src/V2/Sentiment.php
new file mode 100644
index 000000000000..00e82b52a665
--- /dev/null
+++ b/Dialogflow/src/V2/Sentiment.php
@@ -0,0 +1,110 @@
+google.cloud.dialogflow.v2.Sentiment
+ */
+class Sentiment extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Sentiment score between -1.0 (negative sentiment) and 1.0 (positive
+ * sentiment).
+ *
+ * Generated from protobuf field float score = 1;
+ */
+ private $score = 0.0;
+ /**
+ * A non-negative number in the [0, +inf) range, which represents the absolute
+ * magnitude of sentiment, regardless of score (positive or negative).
+ *
+ * Generated from protobuf field float magnitude = 2;
+ */
+ private $magnitude = 0.0;
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type float $score
+ * Sentiment score between -1.0 (negative sentiment) and 1.0 (positive
+ * sentiment).
+ * @type float $magnitude
+ * A non-negative number in the [0, +inf) range, which represents the absolute
+ * magnitude of sentiment, regardless of score (positive or negative).
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Cloud\Dialogflow\V2\Session::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Sentiment score between -1.0 (negative sentiment) and 1.0 (positive
+ * sentiment).
+ *
+ * Generated from protobuf field float score = 1;
+ * @return float
+ */
+ public function getScore()
+ {
+ return $this->score;
+ }
+
+ /**
+ * Sentiment score between -1.0 (negative sentiment) and 1.0 (positive
+ * sentiment).
+ *
+ * Generated from protobuf field float score = 1;
+ * @param float $var
+ * @return $this
+ */
+ public function setScore($var)
+ {
+ GPBUtil::checkFloat($var);
+ $this->score = $var;
+
+ return $this;
+ }
+
+ /**
+ * A non-negative number in the [0, +inf) range, which represents the absolute
+ * magnitude of sentiment, regardless of score (positive or negative).
+ *
+ * Generated from protobuf field float magnitude = 2;
+ * @return float
+ */
+ public function getMagnitude()
+ {
+ return $this->magnitude;
+ }
+
+ /**
+ * A non-negative number in the [0, +inf) range, which represents the absolute
+ * magnitude of sentiment, regardless of score (positive or negative).
+ *
+ * Generated from protobuf field float magnitude = 2;
+ * @param float $var
+ * @return $this
+ */
+ public function setMagnitude($var)
+ {
+ GPBUtil::checkFloat($var);
+ $this->magnitude = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/Dialogflow/src/V2/SentimentAnalysisRequestConfig.php b/Dialogflow/src/V2/SentimentAnalysisRequestConfig.php
new file mode 100644
index 000000000000..937c87335df7
--- /dev/null
+++ b/Dialogflow/src/V2/SentimentAnalysisRequestConfig.php
@@ -0,0 +1,75 @@
+google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig
+ */
+class SentimentAnalysisRequestConfig extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Optional. Instructs the service to perform sentiment analysis on
+ * `query_text`. If not provided, sentiment analysis is not performed on
+ * `query_text`.
+ *
+ * Generated from protobuf field bool analyze_query_text_sentiment = 1;
+ */
+ private $analyze_query_text_sentiment = false;
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type bool $analyze_query_text_sentiment
+ * Optional. Instructs the service to perform sentiment analysis on
+ * `query_text`. If not provided, sentiment analysis is not performed on
+ * `query_text`.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Cloud\Dialogflow\V2\Session::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Optional. Instructs the service to perform sentiment analysis on
+ * `query_text`. If not provided, sentiment analysis is not performed on
+ * `query_text`.
+ *
+ * Generated from protobuf field bool analyze_query_text_sentiment = 1;
+ * @return bool
+ */
+ public function getAnalyzeQueryTextSentiment()
+ {
+ return $this->analyze_query_text_sentiment;
+ }
+
+ /**
+ * Optional. Instructs the service to perform sentiment analysis on
+ * `query_text`. If not provided, sentiment analysis is not performed on
+ * `query_text`.
+ *
+ * Generated from protobuf field bool analyze_query_text_sentiment = 1;
+ * @param bool $var
+ * @return $this
+ */
+ public function setAnalyzeQueryTextSentiment($var)
+ {
+ GPBUtil::checkBool($var);
+ $this->analyze_query_text_sentiment = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/Dialogflow/src/V2/SentimentAnalysisResult.php b/Dialogflow/src/V2/SentimentAnalysisResult.php
new file mode 100644
index 000000000000..beaa827d1651
--- /dev/null
+++ b/Dialogflow/src/V2/SentimentAnalysisResult.php
@@ -0,0 +1,68 @@
+google.cloud.dialogflow.v2.SentimentAnalysisResult
+ */
+class SentimentAnalysisResult extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * The sentiment analysis result for `query_text`.
+ *
+ * Generated from protobuf field .google.cloud.dialogflow.v2.Sentiment query_text_sentiment = 1;
+ */
+ private $query_text_sentiment = null;
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type \Google\Cloud\Dialogflow\V2\Sentiment $query_text_sentiment
+ * The sentiment analysis result for `query_text`.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Cloud\Dialogflow\V2\Session::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * The sentiment analysis result for `query_text`.
+ *
+ * Generated from protobuf field .google.cloud.dialogflow.v2.Sentiment query_text_sentiment = 1;
+ * @return \Google\Cloud\Dialogflow\V2\Sentiment
+ */
+ public function getQueryTextSentiment()
+ {
+ return $this->query_text_sentiment;
+ }
+
+ /**
+ * The sentiment analysis result for `query_text`.
+ *
+ * Generated from protobuf field .google.cloud.dialogflow.v2.Sentiment query_text_sentiment = 1;
+ * @param \Google\Cloud\Dialogflow\V2\Sentiment $var
+ * @return $this
+ */
+ public function setQueryTextSentiment($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\Sentiment::class);
+ $this->query_text_sentiment = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/Dialogflow/src/V2/SessionEntityType.php b/Dialogflow/src/V2/SessionEntityType.php
index 813edbd96331..93d3ab279233 100644
--- a/Dialogflow/src/V2/SessionEntityType.php
+++ b/Dialogflow/src/V2/SessionEntityType.php
@@ -23,6 +23,8 @@ class SessionEntityType extends \Google\Protobuf\Internal\Message
* Required. The unique identifier of this session entity type. Format:
* `projects/string name = 1;
*/
@@ -52,6 +54,8 @@ class SessionEntityType extends \Google\Protobuf\Internal\Message
* Required. The unique identifier of this session entity type. Format:
* `projects/string name = 1;
* @return string
@@ -82,6 +88,8 @@ public function getName()
* Required. The unique identifier of this session entity type. Format:
* `projects/string name = 1;
* @param string $var
diff --git a/Dialogflow/src/V2/SessionEntityType/EntityOverrideMode.php b/Dialogflow/src/V2/SessionEntityType/EntityOverrideMode.php
index af5a026dbdda..38e1903c753b 100644
--- a/Dialogflow/src/V2/SessionEntityType/EntityOverrideMode.php
+++ b/Dialogflow/src/V2/SessionEntityType/EntityOverrideMode.php
@@ -29,10 +29,12 @@ class EntityOverrideMode
/**
* The collection of session entities extends the collection of entities in
* the corresponding developer entity type.
- * Calls to `ListSessionEntityTypes`, `GetSessionEntityType`,
- * `CreateSessionEntityType` and `UpdateSessionEntityType` return the full
- * collection of entities from the developer entity type in the agent's
- * default language and the session entity type.
+ * Note: Even in this override mode calls to `ListSessionEntityTypes`,
+ * `GetSessionEntityType`, `CreateSessionEntityType` and
+ * `UpdateSessionEntityType` only return the additional entities added in
+ * this session entity type. If you want to get the supplemented list,
+ * please call [EntityTypes.GetEntityType][google.cloud.dialogflow.v2.EntityTypes.GetEntityType] on the developer entity type
+ * and merge.
*
* Generated from protobuf enum ENTITY_OVERRIDE_MODE_SUPPLEMENT = 2;
*/
diff --git a/Dialogflow/src/V2/SessionEntityTypesGrpcClient.php b/Dialogflow/src/V2/SessionEntityTypesGrpcClient.php
index 489aa399b2f6..94ec2dd9f5f1 100644
--- a/Dialogflow/src/V2/SessionEntityTypesGrpcClient.php
+++ b/Dialogflow/src/V2/SessionEntityTypesGrpcClient.php
@@ -2,7 +2,7 @@
// GENERATED CODE -- DO NOT EDIT!
// Original file comments:
-// Copyright 2018 Google Inc.
+// Copyright 2019 Google LLC.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//
+//
namespace Google\Cloud\Dialogflow\V2;
/**
@@ -30,7 +31,8 @@
* entity type at the session level.
*
* For more information about entity types, see the
- * [Dialogflow documentation](https://dialogflow.com/docs/entities).
+ * [Dialogflow
+ * documentation](https://cloud.google.com/dialogflow-enterprise/docs/entities-overview).
*/
class SessionEntityTypesGrpcClient extends \Grpc\BaseStub {
@@ -73,6 +75,9 @@ public function GetSessionEntityType(\Google\Cloud\Dialogflow\V2\GetSessionEntit
/**
* Creates a session entity type.
+ *
+ * If the specified session entity type already exists, overrides the session
+ * entity type.
* @param \Google\Cloud\Dialogflow\V2\CreateSessionEntityTypeRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
diff --git a/Dialogflow/src/V2/SessionsGrpcClient.php b/Dialogflow/src/V2/SessionsGrpcClient.php
index 8aaa92f24672..6eb52ded9d57 100644
--- a/Dialogflow/src/V2/SessionsGrpcClient.php
+++ b/Dialogflow/src/V2/SessionsGrpcClient.php
@@ -2,7 +2,7 @@
// GENERATED CODE -- DO NOT EDIT!
// Original file comments:
-// Copyright 2018 Google Inc.
+// Copyright 2019 Google LLC.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -16,14 +16,14 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//
+//
namespace Google\Cloud\Dialogflow\V2;
/**
* A session represents an interaction with a user. You retrieve user input
- * and pass it to the
- * [DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] (or
- * [StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent])
- * method to determine user intent and respond.
+ * and pass it to the [DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] (or
+ * [StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent]) method to determine
+ * user intent and respond.
*/
class SessionsGrpcClient extends \Grpc\BaseStub {
diff --git a/Dialogflow/src/V2/SsmlVoiceGender.php b/Dialogflow/src/V2/SsmlVoiceGender.php
new file mode 100644
index 000000000000..2508c1bc6e5e
--- /dev/null
+++ b/Dialogflow/src/V2/SsmlVoiceGender.php
@@ -0,0 +1,70 @@
+google.cloud.dialogflow.v2.SsmlVoiceGender
+ */
+class SsmlVoiceGender
+{
+ /**
+ * An unspecified gender, which means that the client doesn't care which
+ * gender the selected voice will have.
+ *
+ * Generated from protobuf enum SSML_VOICE_GENDER_UNSPECIFIED = 0;
+ */
+ const SSML_VOICE_GENDER_UNSPECIFIED = 0;
+ /**
+ * A male voice.
+ *
+ * Generated from protobuf enum SSML_VOICE_GENDER_MALE = 1;
+ */
+ const SSML_VOICE_GENDER_MALE = 1;
+ /**
+ * A female voice.
+ *
+ * Generated from protobuf enum SSML_VOICE_GENDER_FEMALE = 2;
+ */
+ const SSML_VOICE_GENDER_FEMALE = 2;
+ /**
+ * A gender-neutral voice.
+ *
+ * Generated from protobuf enum SSML_VOICE_GENDER_NEUTRAL = 3;
+ */
+ const SSML_VOICE_GENDER_NEUTRAL = 3;
+
+ private static $valueToName = [
+ self::SSML_VOICE_GENDER_UNSPECIFIED => 'SSML_VOICE_GENDER_UNSPECIFIED',
+ self::SSML_VOICE_GENDER_MALE => 'SSML_VOICE_GENDER_MALE',
+ self::SSML_VOICE_GENDER_FEMALE => 'SSML_VOICE_GENDER_FEMALE',
+ self::SSML_VOICE_GENDER_NEUTRAL => 'SSML_VOICE_GENDER_NEUTRAL',
+ ];
+
+ public static function name($value)
+ {
+ if (!isset(self::$valueToName[$value])) {
+ throw new UnexpectedValueException(sprintf(
+ 'Enum %s has no name defined for value %s', __CLASS__, $value));
+ }
+ return self::$valueToName[$value];
+ }
+
+
+ public static function value($name)
+ {
+ $const = __CLASS__ . '::' . strtoupper($name);
+ if (!defined($const)) {
+ throw new UnexpectedValueException(sprintf(
+ 'Enum %s has no value defined for name %s', __CLASS__, $name));
+ }
+ return constant($const);
+ }
+}
+
diff --git a/Dialogflow/src/V2/StreamingDetectIntentRequest.php b/Dialogflow/src/V2/StreamingDetectIntentRequest.php
index 4e4a11225d30..93fbe51b3660 100644
--- a/Dialogflow/src/V2/StreamingDetectIntentRequest.php
+++ b/Dialogflow/src/V2/StreamingDetectIntentRequest.php
@@ -13,8 +13,7 @@
* `StreamingDetectIntent` method.
* Multiple request messages should be sent in order:
* 1. The first message must contain `session`, `query_input` plus optionally
- * `query_params` and/or `single_utterance`. The message must not contain
- * `input_audio`.
+ * `query_params` and/or `single_utterance`. The message must not contain `input_audio`.
* 2. If `query_input` was set to a streaming input audio config,
* all subsequent messages must contain only `input_audio`.
* Otherwise, finish the request stream.
@@ -27,7 +26,7 @@ class StreamingDetectIntentRequest extends \Google\Protobuf\Internal\Message
* Required. The name of the session the query is sent to.
* Format of the session name:
* `projects/bool single_utterance = 4;
*/
private $single_utterance = false;
+ /**
+ * Optional. Instructs the speech synthesizer how to generate the output
+ * audio. If this field is not set and agent-level speech synthesizer is not
+ * configured, no output audio is generated.
+ *
+ * Generated from protobuf field .google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 5;
+ */
+ private $output_audio_config = null;
/**
* Optional. The input audio content to be recognized. Must be sent if
* `query_input` was set to a streaming input audio config. The complete audio
@@ -82,7 +89,7 @@ class StreamingDetectIntentRequest extends \Google\Protobuf\Internal\Message
* Required. The name of the session the query is sent to.
* Format of the session name:
* `projects/.google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 5;
+ * @return \Google\Cloud\Dialogflow\V2\OutputAudioConfig
+ */
+ public function getOutputAudioConfig()
+ {
+ return $this->output_audio_config;
+ }
+
+ /**
+ * Optional. Instructs the speech synthesizer how to generate the output
+ * audio. If this field is not set and agent-level speech synthesizer is not
+ * configured, no output audio is generated.
+ *
+ * Generated from protobuf field .google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 5;
+ * @param \Google\Cloud\Dialogflow\V2\OutputAudioConfig $var
+ * @return $this
+ */
+ public function setOutputAudioConfig($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\OutputAudioConfig::class);
+ $this->output_audio_config = $var;
+
+ return $this;
+ }
+
/**
* Optional. The input audio content to be recognized. Must be sent if
* `query_input` was set to a streaming input audio config. The complete audio
diff --git a/Dialogflow/src/V2/StreamingDetectIntentResponse.php b/Dialogflow/src/V2/StreamingDetectIntentResponse.php
index 36abeebb70d4..3fc2de93c309 100644
--- a/Dialogflow/src/V2/StreamingDetectIntentResponse.php
+++ b/Dialogflow/src/V2/StreamingDetectIntentResponse.php
@@ -48,6 +48,20 @@ class StreamingDetectIntentResponse extends \Google\Protobuf\Internal\Message
* Generated from protobuf field .google.rpc.Status webhook_status = 4;
*/
private $webhook_status = null;
+ /**
+ * The audio data bytes encoded as specified in the request.
+ *
+ * Generated from protobuf field bytes output_audio = 5;
+ */
+ private $output_audio = '';
+ /**
+ * Instructs the speech synthesizer how to generate the output audio. This
+ * field is populated from the agent-level speech synthesizer configuration,
+ * if enabled.
+ *
+ * Generated from protobuf field .google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 6;
+ */
+ private $output_audio_config = null;
/**
* Constructor.
@@ -64,6 +78,12 @@ class StreamingDetectIntentResponse extends \Google\Protobuf\Internal\Message
* The result of the conversational query or event processing.
* @type \Google\Rpc\Status $webhook_status
* Specifies the status of the webhook request.
+ * @type string $output_audio
+ * The audio data bytes encoded as specified in the request.
+ * @type \Google\Cloud\Dialogflow\V2\OutputAudioConfig $output_audio_config
+ * Instructs the speech synthesizer how to generate the output audio. This
+ * field is populated from the agent-level speech synthesizer configuration,
+ * if enabled.
* }
*/
public function __construct($data = NULL) {
@@ -177,5 +197,61 @@ public function setWebhookStatus($var)
return $this;
}
+ /**
+ * The audio data bytes encoded as specified in the request.
+ *
+ * Generated from protobuf field bytes output_audio = 5;
+ * @return string
+ */
+ public function getOutputAudio()
+ {
+ return $this->output_audio;
+ }
+
+ /**
+ * The audio data bytes encoded as specified in the request.
+ *
+ * Generated from protobuf field bytes output_audio = 5;
+ * @param string $var
+ * @return $this
+ */
+ public function setOutputAudio($var)
+ {
+ GPBUtil::checkString($var, False);
+ $this->output_audio = $var;
+
+ return $this;
+ }
+
+ /**
+ * Instructs the speech synthesizer how to generate the output audio. This
+ * field is populated from the agent-level speech synthesizer configuration,
+ * if enabled.
+ *
+ * Generated from protobuf field .google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 6;
+ * @return \Google\Cloud\Dialogflow\V2\OutputAudioConfig
+ */
+ public function getOutputAudioConfig()
+ {
+ return $this->output_audio_config;
+ }
+
+ /**
+ * Instructs the speech synthesizer how to generate the output audio. This
+ * field is populated from the agent-level speech synthesizer configuration,
+ * if enabled.
+ *
+ * Generated from protobuf field .google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 6;
+ * @param \Google\Cloud\Dialogflow\V2\OutputAudioConfig $var
+ * @return $this
+ */
+ public function setOutputAudioConfig($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\OutputAudioConfig::class);
+ $this->output_audio_config = $var;
+
+ return $this;
+ }
+
}
diff --git a/Dialogflow/src/V2/StreamingRecognitionResult.php b/Dialogflow/src/V2/StreamingRecognitionResult.php
index 2a298cc2b95c..72b9a8cc7f90 100644
--- a/Dialogflow/src/V2/StreamingRecognitionResult.php
+++ b/Dialogflow/src/V2/StreamingRecognitionResult.php
@@ -20,7 +20,7 @@
* is_final: true
* 5. transcript: " that's"
* 6. transcript: " that is"
- * 7. recognition_event_type: `RECOGNITION_EVENT_END_OF_SINGLE_UTTERANCE`
+ * 7. message_type: `MESSAGE_TYPE_END_OF_SINGLE_UTTERANCE`
* 8. transcript: " that is the question"
* is_final: true
* Only two of the responses contain final results (#4 and #8 indicated by
@@ -28,7 +28,7 @@
* or not to be that is the question".
* In each response we populate:
* * for `MESSAGE_TYPE_TRANSCRIPT`: `transcript` and possibly `is_final`.
- * * for `MESSAGE_TYPE_END_OF_SINGLE_UTTERANCE`: only `event_type`.
+ * * for `MESSAGE_TYPE_END_OF_SINGLE_UTTERANCE`: only `message_type`.
*
* Generated from protobuf message google.cloud.dialogflow.v2.StreamingRecognitionResult
*/
@@ -42,17 +42,16 @@ class StreamingRecognitionResult extends \Google\Protobuf\Internal\Message
private $message_type = 0;
/**
* Transcript text representing the words that the user spoke.
- * Populated if and only if `event_type` = `RECOGNITION_EVENT_TRANSCRIPT`.
+ * Populated if and only if `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
*
* Generated from protobuf field string transcript = 2;
*/
private $transcript = '';
/**
- * The default of 0.0 is a sentinel value indicating `confidence` was not set.
* If `false`, the `StreamingRecognitionResult` represents an
* interim result that may change. If `true`, the recognizer will not return
* any further hypotheses about this piece of the audio. May only be populated
- * for `event_type` = `RECOGNITION_EVENT_TRANSCRIPT`.
+ * for `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
*
* Generated from protobuf field bool is_final = 3;
*/
@@ -79,13 +78,12 @@ class StreamingRecognitionResult extends \Google\Protobuf\Internal\Message
* Type of the result message.
* @type string $transcript
* Transcript text representing the words that the user spoke.
- * Populated if and only if `event_type` = `RECOGNITION_EVENT_TRANSCRIPT`.
+ * Populated if and only if `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
* @type bool $is_final
- * The default of 0.0 is a sentinel value indicating `confidence` was not set.
* If `false`, the `StreamingRecognitionResult` represents an
* interim result that may change. If `true`, the recognizer will not return
* any further hypotheses about this piece of the audio. May only be populated
- * for `event_type` = `RECOGNITION_EVENT_TRANSCRIPT`.
+ * for `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
* @type float $confidence
* The Speech confidence between 0.0 and 1.0 for the current portion of audio.
* A higher number indicates an estimated greater likelihood that the
@@ -128,7 +126,7 @@ public function setMessageType($var)
/**
* Transcript text representing the words that the user spoke.
- * Populated if and only if `event_type` = `RECOGNITION_EVENT_TRANSCRIPT`.
+ * Populated if and only if `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
*
* Generated from protobuf field string transcript = 2;
* @return string
@@ -140,7 +138,7 @@ public function getTranscript()
/**
* Transcript text representing the words that the user spoke.
- * Populated if and only if `event_type` = `RECOGNITION_EVENT_TRANSCRIPT`.
+ * Populated if and only if `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
*
* Generated from protobuf field string transcript = 2;
* @param string $var
@@ -155,11 +153,10 @@ public function setTranscript($var)
}
/**
- * The default of 0.0 is a sentinel value indicating `confidence` was not set.
* If `false`, the `StreamingRecognitionResult` represents an
* interim result that may change. If `true`, the recognizer will not return
* any further hypotheses about this piece of the audio. May only be populated
- * for `event_type` = `RECOGNITION_EVENT_TRANSCRIPT`.
+ * for `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
*
* Generated from protobuf field bool is_final = 3;
* @return bool
@@ -170,11 +167,10 @@ public function getIsFinal()
}
/**
- * The default of 0.0 is a sentinel value indicating `confidence` was not set.
* If `false`, the `StreamingRecognitionResult` represents an
* interim result that may change. If `true`, the recognizer will not return
* any further hypotheses about this piece of the audio. May only be populated
- * for `event_type` = `RECOGNITION_EVENT_TRANSCRIPT`.
+ * for `message_type` = `MESSAGE_TYPE_TRANSCRIPT`.
*
* Generated from protobuf field bool is_final = 3;
* @param bool $var
diff --git a/Dialogflow/src/V2/SynthesizeSpeechConfig.php b/Dialogflow/src/V2/SynthesizeSpeechConfig.php
new file mode 100644
index 000000000000..b8cff8928d57
--- /dev/null
+++ b/Dialogflow/src/V2/SynthesizeSpeechConfig.php
@@ -0,0 +1,259 @@
+google.cloud.dialogflow.v2.SynthesizeSpeechConfig
+ */
+class SynthesizeSpeechConfig extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal
+ * native speed supported by the specific voice. 2.0 is twice as fast, and
+ * 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any
+ * other values < 0.25 or > 4.0 will return an error.
+ *
+ * Generated from protobuf field double speaking_rate = 1;
+ */
+ private $speaking_rate = 0.0;
+ /**
+ * Optional. Speaking pitch, in the range [-20.0, 20.0]. 20 means increase 20
+ * semitones from the original pitch. -20 means decrease 20 semitones from the
+ * original pitch.
+ *
+ * Generated from protobuf field double pitch = 2;
+ */
+ private $pitch = 0.0;
+ /**
+ * Optional. Volume gain (in dB) of the normal native volume supported by the
+ * specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of
+ * 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB)
+ * will play at approximately half the amplitude of the normal native signal
+ * amplitude. A value of +6.0 (dB) will play at approximately twice the
+ * amplitude of the normal native signal amplitude. We strongly recommend not
+ * to exceed +10 (dB) as there's usually no effective increase in loudness for
+ * any value greater than that.
+ *
+ * Generated from protobuf field double volume_gain_db = 3;
+ */
+ private $volume_gain_db = 0.0;
+ /**
+ * Optional. An identifier which selects 'audio effects' profiles that are
+ * applied on (post synthesized) text to speech. Effects are applied on top of
+ * each other in the order they are given.
+ *
+ * Generated from protobuf field repeated string effects_profile_id = 5;
+ */
+ private $effects_profile_id;
+ /**
+ * Optional. The desired voice of the synthesized audio.
+ *
+ * Generated from protobuf field .google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4;
+ */
+ private $voice = null;
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type float $speaking_rate
+ * Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal
+ * native speed supported by the specific voice. 2.0 is twice as fast, and
+ * 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any
+ * other values < 0.25 or > 4.0 will return an error.
+ * @type float $pitch
+ * Optional. Speaking pitch, in the range [-20.0, 20.0]. 20 means increase 20
+ * semitones from the original pitch. -20 means decrease 20 semitones from the
+ * original pitch.
+ * @type float $volume_gain_db
+ * Optional. Volume gain (in dB) of the normal native volume supported by the
+ * specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of
+ * 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB)
+ * will play at approximately half the amplitude of the normal native signal
+ * amplitude. A value of +6.0 (dB) will play at approximately twice the
+ * amplitude of the normal native signal amplitude. We strongly recommend not
+ * to exceed +10 (dB) as there's usually no effective increase in loudness for
+ * any value greater than that.
+ * @type string[]|\Google\Protobuf\Internal\RepeatedField $effects_profile_id
+ * Optional. An identifier which selects 'audio effects' profiles that are
+ * applied on (post synthesized) text to speech. Effects are applied on top of
+ * each other in the order they are given.
+ * @type \Google\Cloud\Dialogflow\V2\VoiceSelectionParams $voice
+ * Optional. The desired voice of the synthesized audio.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Cloud\Dialogflow\V2\AudioConfig::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal
+ * native speed supported by the specific voice. 2.0 is twice as fast, and
+ * 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any
+ * other values < 0.25 or > 4.0 will return an error.
+ *
+ * Generated from protobuf field double speaking_rate = 1;
+ * @return float
+ */
+ public function getSpeakingRate()
+ {
+ return $this->speaking_rate;
+ }
+
+ /**
+ * Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal
+ * native speed supported by the specific voice. 2.0 is twice as fast, and
+ * 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any
+ * other values < 0.25 or > 4.0 will return an error.
+ *
+ * Generated from protobuf field double speaking_rate = 1;
+ * @param float $var
+ * @return $this
+ */
+ public function setSpeakingRate($var)
+ {
+ GPBUtil::checkDouble($var);
+ $this->speaking_rate = $var;
+
+ return $this;
+ }
+
+ /**
+ * Optional. Speaking pitch, in the range [-20.0, 20.0]. 20 means increase 20
+ * semitones from the original pitch. -20 means decrease 20 semitones from the
+ * original pitch.
+ *
+ * Generated from protobuf field double pitch = 2;
+ * @return float
+ */
+ public function getPitch()
+ {
+ return $this->pitch;
+ }
+
+ /**
+ * Optional. Speaking pitch, in the range [-20.0, 20.0]. 20 means increase 20
+ * semitones from the original pitch. -20 means decrease 20 semitones from the
+ * original pitch.
+ *
+ * Generated from protobuf field double pitch = 2;
+ * @param float $var
+ * @return $this
+ */
+ public function setPitch($var)
+ {
+ GPBUtil::checkDouble($var);
+ $this->pitch = $var;
+
+ return $this;
+ }
+
+ /**
+ * Optional. Volume gain (in dB) of the normal native volume supported by the
+ * specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of
+ * 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB)
+ * will play at approximately half the amplitude of the normal native signal
+ * amplitude. A value of +6.0 (dB) will play at approximately twice the
+ * amplitude of the normal native signal amplitude. We strongly recommend not
+ * to exceed +10 (dB) as there's usually no effective increase in loudness for
+ * any value greater than that.
+ *
+ * Generated from protobuf field double volume_gain_db = 3;
+ * @return float
+ */
+ public function getVolumeGainDb()
+ {
+ return $this->volume_gain_db;
+ }
+
+ /**
+ * Optional. Volume gain (in dB) of the normal native volume supported by the
+ * specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of
+ * 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB)
+ * will play at approximately half the amplitude of the normal native signal
+ * amplitude. A value of +6.0 (dB) will play at approximately twice the
+ * amplitude of the normal native signal amplitude. We strongly recommend not
+ * to exceed +10 (dB) as there's usually no effective increase in loudness for
+ * any value greater than that.
+ *
+ * Generated from protobuf field double volume_gain_db = 3;
+ * @param float $var
+ * @return $this
+ */
+ public function setVolumeGainDb($var)
+ {
+ GPBUtil::checkDouble($var);
+ $this->volume_gain_db = $var;
+
+ return $this;
+ }
+
+ /**
+ * Optional. An identifier which selects 'audio effects' profiles that are
+ * applied on (post synthesized) text to speech. Effects are applied on top of
+ * each other in the order they are given.
+ *
+ * Generated from protobuf field repeated string effects_profile_id = 5;
+ * @return \Google\Protobuf\Internal\RepeatedField
+ */
+ public function getEffectsProfileId()
+ {
+ return $this->effects_profile_id;
+ }
+
+ /**
+ * Optional. An identifier which selects 'audio effects' profiles that are
+ * applied on (post synthesized) text to speech. Effects are applied on top of
+ * each other in the order they are given.
+ *
+ * Generated from protobuf field repeated string effects_profile_id = 5;
+ * @param string[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @return $this
+ */
+ public function setEffectsProfileId($var)
+ {
+ $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
+ $this->effects_profile_id = $arr;
+
+ return $this;
+ }
+
+ /**
+ * Optional. The desired voice of the synthesized audio.
+ *
+ * Generated from protobuf field .google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4;
+ * @return \Google\Cloud\Dialogflow\V2\VoiceSelectionParams
+ */
+ public function getVoice()
+ {
+ return $this->voice;
+ }
+
+ /**
+ * Optional. The desired voice of the synthesized audio.
+ *
+ * Generated from protobuf field .google.cloud.dialogflow.v2.VoiceSelectionParams voice = 4;
+ * @param \Google\Cloud\Dialogflow\V2\VoiceSelectionParams $var
+ * @return $this
+ */
+ public function setVoice($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\VoiceSelectionParams::class);
+ $this->voice = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/Dialogflow/src/V2/TextInput.php b/Dialogflow/src/V2/TextInput.php
index 27685eee46ac..a2cc18788798 100644
--- a/Dialogflow/src/V2/TextInput.php
+++ b/Dialogflow/src/V2/TextInput.php
@@ -17,16 +17,16 @@ class TextInput extends \Google\Protobuf\Internal\Message
{
/**
* Required. The UTF-8 encoded natural language text to be processed.
- * Text length must not exceed 256 bytes.
+ * Text length must not exceed 256 characters.
*
* Generated from protobuf field string text = 1;
*/
private $text = '';
/**
* Required. The language of this conversational query. See [Language
- * Support](https://dialogflow.com/docs/languages) for a list of the
- * currently supported language codes. Note that queries in the same session
- * do not necessarily need to specify the same language.
+ * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * for a list of the currently supported language codes. Note that queries in
+ * the same session do not necessarily need to specify the same language.
*
* Generated from protobuf field string language_code = 2;
*/
@@ -40,12 +40,12 @@ class TextInput extends \Google\Protobuf\Internal\Message
*
* @type string $text
* Required. The UTF-8 encoded natural language text to be processed.
- * Text length must not exceed 256 bytes.
+ * Text length must not exceed 256 characters.
* @type string $language_code
* Required. The language of this conversational query. See [Language
- * Support](https://dialogflow.com/docs/languages) for a list of the
- * currently supported language codes. Note that queries in the same session
- * do not necessarily need to specify the same language.
+ * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * for a list of the currently supported language codes. Note that queries in
+ * the same session do not necessarily need to specify the same language.
* }
*/
public function __construct($data = NULL) {
@@ -55,7 +55,7 @@ public function __construct($data = NULL) {
/**
* Required. The UTF-8 encoded natural language text to be processed.
- * Text length must not exceed 256 bytes.
+ * Text length must not exceed 256 characters.
*
* Generated from protobuf field string text = 1;
* @return string
@@ -67,7 +67,7 @@ public function getText()
/**
* Required. The UTF-8 encoded natural language text to be processed.
- * Text length must not exceed 256 bytes.
+ * Text length must not exceed 256 characters.
*
* Generated from protobuf field string text = 1;
* @param string $var
@@ -83,9 +83,9 @@ public function setText($var)
/**
* Required. The language of this conversational query. See [Language
- * Support](https://dialogflow.com/docs/languages) for a list of the
- * currently supported language codes. Note that queries in the same session
- * do not necessarily need to specify the same language.
+ * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * for a list of the currently supported language codes. Note that queries in
+ * the same session do not necessarily need to specify the same language.
*
* Generated from protobuf field string language_code = 2;
* @return string
@@ -97,9 +97,9 @@ public function getLanguageCode()
/**
* Required. The language of this conversational query. See [Language
- * Support](https://dialogflow.com/docs/languages) for a list of the
- * currently supported language codes. Note that queries in the same session
- * do not necessarily need to specify the same language.
+ * Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * for a list of the currently supported language codes. Note that queries in
+ * the same session do not necessarily need to specify the same language.
*
* Generated from protobuf field string language_code = 2;
* @param string $var
diff --git a/Dialogflow/src/V2/TrainAgentRequest.php b/Dialogflow/src/V2/TrainAgentRequest.php
index bf6dd815b444..ce6727501c39 100644
--- a/Dialogflow/src/V2/TrainAgentRequest.php
+++ b/Dialogflow/src/V2/TrainAgentRequest.php
@@ -9,8 +9,7 @@
use Google\Protobuf\Internal\GPBUtil;
/**
- * The request message for
- * [Agents.TrainAgent][google.cloud.dialogflow.v2.Agents.TrainAgent].
+ * The request message for [Agents.TrainAgent][google.cloud.dialogflow.v2.Agents.TrainAgent].
*
* Generated from protobuf message google.cloud.dialogflow.v2.TrainAgentRequest
*/
diff --git a/Dialogflow/src/V2/UpdateContextRequest.php b/Dialogflow/src/V2/UpdateContextRequest.php
index 289546230d45..ba057c39a98c 100644
--- a/Dialogflow/src/V2/UpdateContextRequest.php
+++ b/Dialogflow/src/V2/UpdateContextRequest.php
@@ -9,8 +9,7 @@
use Google\Protobuf\Internal\GPBUtil;
/**
- * The request message for
- * [Contexts.UpdateContext][google.cloud.dialogflow.v2.Contexts.UpdateContext].
+ * The request message for [Contexts.UpdateContext][google.cloud.dialogflow.v2.Contexts.UpdateContext].
*
* Generated from protobuf message google.cloud.dialogflow.v2.UpdateContextRequest
*/
diff --git a/Dialogflow/src/V2/UpdateEntityTypeRequest.php b/Dialogflow/src/V2/UpdateEntityTypeRequest.php
index 88621edbf958..6d95edde531a 100644
--- a/Dialogflow/src/V2/UpdateEntityTypeRequest.php
+++ b/Dialogflow/src/V2/UpdateEntityTypeRequest.php
@@ -9,8 +9,7 @@
use Google\Protobuf\Internal\GPBUtil;
/**
- * The request message for
- * [EntityTypes.UpdateEntityType][google.cloud.dialogflow.v2.EntityTypes.UpdateEntityType].
+ * The request message for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.v2.EntityTypes.UpdateEntityType].
*
* Generated from protobuf message google.cloud.dialogflow.v2.UpdateEntityTypeRequest
*/
@@ -18,7 +17,6 @@ class UpdateEntityTypeRequest extends \Google\Protobuf\Internal\Message
{
/**
* Required. The entity type to update.
- * Format: `projects/.google.cloud.dialogflow.v2.EntityType entity_type = 1;
*/
@@ -26,9 +24,10 @@ class UpdateEntityTypeRequest extends \Google\Protobuf\Internal\Message
/**
* Optional. The language of entity synonyms defined in `entity_type`. If not
* specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
* Generated from protobuf field string language_code = 2;
*/
@@ -48,13 +47,13 @@ class UpdateEntityTypeRequest extends \Google\Protobuf\Internal\Message
*
* @type \Google\Cloud\Dialogflow\V2\EntityType $entity_type
* Required. The entity type to update.
- * Format: `projects/.google.cloud.dialogflow.v2.EntityType entity_type = 1;
* @return \Google\Cloud\Dialogflow\V2\EntityType
@@ -78,7 +76,6 @@ public function getEntityType()
/**
* Required. The entity type to update.
- * Format: `projects/.google.cloud.dialogflow.v2.EntityType entity_type = 1;
* @param \Google\Cloud\Dialogflow\V2\EntityType $var
@@ -95,9 +92,10 @@ public function setEntityType($var)
/**
* Optional. The language of entity synonyms defined in `entity_type`. If not
* specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
* Generated from protobuf field string language_code = 2;
* @return string
@@ -110,9 +108,10 @@ public function getLanguageCode()
/**
* Optional. The language of entity synonyms defined in `entity_type`. If not
* specified, the agent's default language is used.
- * [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
* Generated from protobuf field string language_code = 2;
* @param string $var
diff --git a/Dialogflow/src/V2/UpdateIntentRequest.php b/Dialogflow/src/V2/UpdateIntentRequest.php
index 5429c06f6bc5..e0b0aba31f86 100644
--- a/Dialogflow/src/V2/UpdateIntentRequest.php
+++ b/Dialogflow/src/V2/UpdateIntentRequest.php
@@ -9,8 +9,7 @@
use Google\Protobuf\Internal\GPBUtil;
/**
- * The request message for
- * [Intents.UpdateIntent][google.cloud.dialogflow.v2.Intents.UpdateIntent].
+ * The request message for [Intents.UpdateIntent][google.cloud.dialogflow.v2.Intents.UpdateIntent].
*
* Generated from protobuf message google.cloud.dialogflow.v2.UpdateIntentRequest
*/
@@ -18,7 +17,6 @@ class UpdateIntentRequest extends \Google\Protobuf\Internal\Message
{
/**
* Required. The intent to update.
- * Format: `projects/.google.cloud.dialogflow.v2.Intent intent = 1;
*/
@@ -26,9 +24,10 @@ class UpdateIntentRequest extends \Google\Protobuf\Internal\Message
/**
* Optional. The language of training phrases, parameters and rich messages
* defined in `intent`. If not specified, the agent's default language is
- * used. [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * used. [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
* Generated from protobuf field string language_code = 2;
*/
@@ -54,13 +53,13 @@ class UpdateIntentRequest extends \Google\Protobuf\Internal\Message
*
* @type \Google\Cloud\Dialogflow\V2\Intent $intent
* Required. The intent to update.
- * Format: `projects/.google.cloud.dialogflow.v2.Intent intent = 1;
* @return \Google\Cloud\Dialogflow\V2\Intent
@@ -86,7 +84,6 @@ public function getIntent()
/**
* Required. The intent to update.
- * Format: `projects/.google.cloud.dialogflow.v2.Intent intent = 1;
* @param \Google\Cloud\Dialogflow\V2\Intent $var
@@ -103,9 +100,10 @@ public function setIntent($var)
/**
* Optional. The language of training phrases, parameters and rich messages
* defined in `intent`. If not specified, the agent's default language is
- * used. [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * used. [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
* Generated from protobuf field string language_code = 2;
* @return string
@@ -118,9 +116,10 @@ public function getLanguageCode()
/**
* Optional. The language of training phrases, parameters and rich messages
* defined in `intent`. If not specified, the agent's default language is
- * used. [More than a dozen
- * languages](https://dialogflow.com/docs/reference/language) are supported.
- * Note: languages must be enabled in the agent, before they can be used.
+ * used. [Many
+ * languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language)
+ * are supported. Note: languages must be enabled in the agent before they can
+ * be used.
*
* Generated from protobuf field string language_code = 2;
* @param string $var
diff --git a/Dialogflow/src/V2/UpdateSessionEntityTypeRequest.php b/Dialogflow/src/V2/UpdateSessionEntityTypeRequest.php
index e6d5c8c2ff65..39c24724fa0a 100644
--- a/Dialogflow/src/V2/UpdateSessionEntityTypeRequest.php
+++ b/Dialogflow/src/V2/UpdateSessionEntityTypeRequest.php
@@ -9,8 +9,7 @@
use Google\Protobuf\Internal\GPBUtil;
/**
- * The request message for
- * [SessionEntityTypes.UpdateSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.UpdateSessionEntityType].
+ * The request message for [SessionEntityTypes.UpdateSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.UpdateSessionEntityType].
*
* Generated from protobuf message google.cloud.dialogflow.v2.UpdateSessionEntityTypeRequest
*/
diff --git a/Dialogflow/src/V2/VoiceSelectionParams.php b/Dialogflow/src/V2/VoiceSelectionParams.php
new file mode 100644
index 000000000000..cb9f714f0bb3
--- /dev/null
+++ b/Dialogflow/src/V2/VoiceSelectionParams.php
@@ -0,0 +1,121 @@
+google.cloud.dialogflow.v2.VoiceSelectionParams
+ */
+class VoiceSelectionParams extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Optional. The name of the voice. If not set, the service will choose a
+ * voice based on the other parameters such as language_code and gender.
+ *
+ * Generated from protobuf field string name = 1;
+ */
+ private $name = '';
+ /**
+ * Optional. The preferred gender of the voice. If not set, the service will
+ * choose a voice based on the other parameters such as language_code and
+ * name. Note that this is only a preference, not requirement. If a
+ * voice of the appropriate gender is not available, the synthesizer should
+ * substitute a voice with a different gender rather than failing the request.
+ *
+ * Generated from protobuf field .google.cloud.dialogflow.v2.SsmlVoiceGender ssml_gender = 2;
+ */
+ private $ssml_gender = 0;
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type string $name
+ * Optional. The name of the voice. If not set, the service will choose a
+ * voice based on the other parameters such as language_code and gender.
+ * @type int $ssml_gender
+ * Optional. The preferred gender of the voice. If not set, the service will
+ * choose a voice based on the other parameters such as language_code and
+ * name. Note that this is only a preference, not requirement. If a
+ * voice of the appropriate gender is not available, the synthesizer should
+ * substitute a voice with a different gender rather than failing the request.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Cloud\Dialogflow\V2\AudioConfig::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Optional. The name of the voice. If not set, the service will choose a
+ * voice based on the other parameters such as language_code and gender.
+ *
+ * Generated from protobuf field string name = 1;
+ * @return string
+ */
+ public function getName()
+ {
+ return $this->name;
+ }
+
+ /**
+ * Optional. The name of the voice. If not set, the service will choose a
+ * voice based on the other parameters such as language_code and gender.
+ *
+ * Generated from protobuf field string name = 1;
+ * @param string $var
+ * @return $this
+ */
+ public function setName($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->name = $var;
+
+ return $this;
+ }
+
+ /**
+ * Optional. The preferred gender of the voice. If not set, the service will
+ * choose a voice based on the other parameters such as language_code and
+ * name. Note that this is only a preference, not requirement. If a
+ * voice of the appropriate gender is not available, the synthesizer should
+ * substitute a voice with a different gender rather than failing the request.
+ *
+ * Generated from protobuf field .google.cloud.dialogflow.v2.SsmlVoiceGender ssml_gender = 2;
+ * @return int
+ */
+ public function getSsmlGender()
+ {
+ return $this->ssml_gender;
+ }
+
+ /**
+ * Optional. The preferred gender of the voice. If not set, the service will
+ * choose a voice based on the other parameters such as language_code and
+ * name. Note that this is only a preference, not requirement. If a
+ * voice of the appropriate gender is not available, the synthesizer should
+ * substitute a voice with a different gender rather than failing the request.
+ *
+ * Generated from protobuf field .google.cloud.dialogflow.v2.SsmlVoiceGender ssml_gender = 2;
+ * @param int $var
+ * @return $this
+ */
+ public function setSsmlGender($var)
+ {
+ GPBUtil::checkEnum($var, \Google\Cloud\Dialogflow\V2\SsmlVoiceGender::class);
+ $this->ssml_gender = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/Dialogflow/src/V2/WebhookRequest.php b/Dialogflow/src/V2/WebhookRequest.php
index d9bad4740e17..9985e882248c 100644
--- a/Dialogflow/src/V2/WebhookRequest.php
+++ b/Dialogflow/src/V2/WebhookRequest.php
@@ -18,7 +18,9 @@ class WebhookRequest extends \Google\Protobuf\Internal\Message
/**
* The unique identifier of detectIntent request session.
* Can be used to identify end-user inside webhook implementation.
- * Format: `projects/string session = 4;
*/
@@ -54,7 +56,9 @@ class WebhookRequest extends \Google\Protobuf\Internal\Message
* @type string $session
* The unique identifier of detectIntent request session.
* Can be used to identify end-user inside webhook implementation.
- * Format: `projects/string session = 4;
* @return string
@@ -87,7 +93,9 @@ public function getSession()
/**
* The unique identifier of detectIntent request session.
* Can be used to identify end-user inside webhook implementation.
- * Format: `projects/string session = 4;
* @param string $var
diff --git a/Dialogflow/src/V2/resources/agents_rest_client_config.php b/Dialogflow/src/V2/resources/agents_rest_client_config.php
index 10c1480cc4b3..7e730273acef 100644
--- a/Dialogflow/src/V2/resources/agents_rest_client_config.php
+++ b/Dialogflow/src/V2/resources/agents_rest_client_config.php
@@ -74,24 +74,5 @@
],
],
],
- 'google.longrunning.Operations' => [
- 'GetOperation' => [
- 'method' => 'get',
- 'uriTemplate' => '/v2beta1/{name=projects/*/operations/*}',
- 'additionalBindings' => [
- [
- 'method' => 'get',
- 'uriTemplate' => '/v2/{name=projects/*/operations/*}',
- ],
- ],
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- ],
],
];
diff --git a/Dialogflow/src/V2/resources/contexts_rest_client_config.php b/Dialogflow/src/V2/resources/contexts_rest_client_config.php
index 62fbce7524d8..2eb0dfaa974e 100644
--- a/Dialogflow/src/V2/resources/contexts_rest_client_config.php
+++ b/Dialogflow/src/V2/resources/contexts_rest_client_config.php
@@ -73,24 +73,5 @@
],
],
],
- 'google.longrunning.Operations' => [
- 'GetOperation' => [
- 'method' => 'get',
- 'uriTemplate' => '/v2beta1/{name=projects/*/operations/*}',
- 'additionalBindings' => [
- [
- 'method' => 'get',
- 'uriTemplate' => '/v2/{name=projects/*/operations/*}',
- ],
- ],
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- ],
],
];
diff --git a/Dialogflow/src/V2/resources/entity_types_rest_client_config.php b/Dialogflow/src/V2/resources/entity_types_rest_client_config.php
index 60bd6f9994cb..2ee5bcffa291 100644
--- a/Dialogflow/src/V2/resources/entity_types_rest_client_config.php
+++ b/Dialogflow/src/V2/resources/entity_types_rest_client_config.php
@@ -122,24 +122,5 @@
],
],
],
- 'google.longrunning.Operations' => [
- 'GetOperation' => [
- 'method' => 'get',
- 'uriTemplate' => '/v2beta1/{name=projects/*/operations/*}',
- 'additionalBindings' => [
- [
- 'method' => 'get',
- 'uriTemplate' => '/v2/{name=projects/*/operations/*}',
- ],
- ],
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- ],
],
];
diff --git a/Dialogflow/src/V2/resources/intents_rest_client_config.php b/Dialogflow/src/V2/resources/intents_rest_client_config.php
index f23c55d32d89..cc129dc87bbe 100644
--- a/Dialogflow/src/V2/resources/intents_rest_client_config.php
+++ b/Dialogflow/src/V2/resources/intents_rest_client_config.php
@@ -86,24 +86,5 @@
],
],
],
- 'google.longrunning.Operations' => [
- 'GetOperation' => [
- 'method' => 'get',
- 'uriTemplate' => '/v2beta1/{name=projects/*/operations/*}',
- 'additionalBindings' => [
- [
- 'method' => 'get',
- 'uriTemplate' => '/v2/{name=projects/*/operations/*}',
- ],
- ],
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- ],
],
];
diff --git a/Dialogflow/src/V2/resources/session_entity_types_rest_client_config.php b/Dialogflow/src/V2/resources/session_entity_types_rest_client_config.php
index 414937a77d11..635073911f1a 100644
--- a/Dialogflow/src/V2/resources/session_entity_types_rest_client_config.php
+++ b/Dialogflow/src/V2/resources/session_entity_types_rest_client_config.php
@@ -62,24 +62,5 @@
],
],
],
- 'google.longrunning.Operations' => [
- 'GetOperation' => [
- 'method' => 'get',
- 'uriTemplate' => '/v2beta1/{name=projects/*/operations/*}',
- 'additionalBindings' => [
- [
- 'method' => 'get',
- 'uriTemplate' => '/v2/{name=projects/*/operations/*}',
- ],
- ],
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- ],
],
];
diff --git a/Dialogflow/src/V2/resources/sessions_rest_client_config.php b/Dialogflow/src/V2/resources/sessions_rest_client_config.php
index 6b9dda509a16..eff586c2c813 100644
--- a/Dialogflow/src/V2/resources/sessions_rest_client_config.php
+++ b/Dialogflow/src/V2/resources/sessions_rest_client_config.php
@@ -16,24 +16,5 @@
],
],
],
- 'google.longrunning.Operations' => [
- 'GetOperation' => [
- 'method' => 'get',
- 'uriTemplate' => '/v2beta1/{name=projects/*/operations/*}',
- 'additionalBindings' => [
- [
- 'method' => 'get',
- 'uriTemplate' => '/v2/{name=projects/*/operations/*}',
- ],
- ],
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- ],
],
];
diff --git a/Dialogflow/synth.metadata b/Dialogflow/synth.metadata
index 24e496bd2929..79830039f2bc 100644
--- a/Dialogflow/synth.metadata
+++ b/Dialogflow/synth.metadata
@@ -1,5 +1,5 @@
{
- "updateTime": "2019-03-29T10:00:11.614693Z",
+ "updateTime": "2019-03-30T10:00:03.351509Z",
"sources": [
{
"generator": {
@@ -12,8 +12,8 @@
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
- "sha": "37386f1ebcaed51bcb7d15d00124d22c38606e45",
- "internalRef": "240841842"
+ "sha": "fd67be4b51a8c809b97100ccf1c3cffd15b85d7b",
+ "internalRef": "241096997"
}
}
],
diff --git a/Dialogflow/tests/Unit/V2/SessionsClientTest.php b/Dialogflow/tests/Unit/V2/SessionsClientTest.php
index 0d9885da4110..8dda722a7f14 100644
--- a/Dialogflow/tests/Unit/V2/SessionsClientTest.php
+++ b/Dialogflow/tests/Unit/V2/SessionsClientTest.php
@@ -76,8 +76,10 @@ public function detectIntentTest()
// Mock response
$responseId = 'responseId1847552473';
+ $outputAudio = '24';
$expectedResponse = new DetectIntentResponse();
$expectedResponse->setResponseId($responseId);
+ $expectedResponse->setOutputAudio($outputAudio);
$transport->addResponse($expectedResponse);
// Mock request
@@ -154,16 +156,22 @@ public function streamingDetectIntentTest()
// Mock response
$responseId = 'responseId1847552473';
+ $outputAudio = '24';
$expectedResponse = new StreamingDetectIntentResponse();
$expectedResponse->setResponseId($responseId);
+ $expectedResponse->setOutputAudio($outputAudio);
$transport->addResponse($expectedResponse);
$responseId2 = 'responseId21676436300';
+ $outputAudio2 = '-53';
$expectedResponse2 = new StreamingDetectIntentResponse();
$expectedResponse2->setResponseId($responseId2);
+ $expectedResponse2->setOutputAudio($outputAudio2);
$transport->addResponse($expectedResponse2);
$responseId3 = 'responseId31676436301';
+ $outputAudio3 = '-52';
$expectedResponse3 = new StreamingDetectIntentResponse();
$expectedResponse3->setResponseId($responseId3);
+ $expectedResponse3->setOutputAudio($outputAudio3);
$transport->addResponse($expectedResponse3);
// Mock request