diff --git a/Dialogflow/metadata/V2/ConversationProfile.php b/Dialogflow/metadata/V2/ConversationProfile.php index ba3382ad786d..25dce3071af6 100644 Binary files a/Dialogflow/metadata/V2/ConversationProfile.php and b/Dialogflow/metadata/V2/ConversationProfile.php differ diff --git a/Dialogflow/metadata/V2/Document.php b/Dialogflow/metadata/V2/Document.php index dd51895ed380..8a71f2786a09 100644 Binary files a/Dialogflow/metadata/V2/Document.php and b/Dialogflow/metadata/V2/Document.php differ diff --git a/Dialogflow/src/V2/AnswerFeedback.php b/Dialogflow/src/V2/AnswerFeedback.php index 9dcad46b8a73..d1ea171138a0 100644 --- a/Dialogflow/src/V2/AnswerFeedback.php +++ b/Dialogflow/src/V2/AnswerFeedback.php @@ -25,8 +25,8 @@ class AnswerFeedback extends \Google\Protobuf\Internal\Message /** * Indicates whether the answer/item was clicked by the human agent * or not. Default to false. - * For knowledge search, the answer record is considered to be clicked if the - * answer was copied or any URI was clicked. + * For knowledge search and knowledge assist, the answer record is considered + * to be clicked if the answer was copied or any URI was clicked. * * Generated from protobuf field bool clicked = 3; */ @@ -65,8 +65,8 @@ class AnswerFeedback extends \Google\Protobuf\Internal\Message * @type bool $clicked * Indicates whether the answer/item was clicked by the human agent * or not. Default to false. - * For knowledge search, the answer record is considered to be clicked if the - * answer was copied or any URI was clicked. + * For knowledge search and knowledge assist, the answer record is considered + * to be clicked if the answer was copied or any URI was clicked. * @type \Google\Protobuf\Timestamp $click_time * Time when the answer/item was clicked. * @type bool $displayed @@ -141,8 +141,8 @@ public function setAgentAssistantDetailFeedback($var) /** * Indicates whether the answer/item was clicked by the human agent * or not. Default to false. - * For knowledge search, the answer record is considered to be clicked if the - * answer was copied or any URI was clicked. + * For knowledge search and knowledge assist, the answer record is considered + * to be clicked if the answer was copied or any URI was clicked. * * Generated from protobuf field bool clicked = 3; * @return bool @@ -155,8 +155,8 @@ public function getClicked() /** * Indicates whether the answer/item was clicked by the human agent * or not. Default to false. - * For knowledge search, the answer record is considered to be clicked if the - * answer was copied or any URI was clicked. + * For knowledge search and knowledge assist, the answer record is considered + * to be clicked if the answer was copied or any URI was clicked. * * Generated from protobuf field bool clicked = 3; * @param bool $var diff --git a/Dialogflow/src/V2/AutomatedAgentConfig.php b/Dialogflow/src/V2/AutomatedAgentConfig.php index edad6765081f..43e64096d318 100644 --- a/Dialogflow/src/V2/AutomatedAgentConfig.php +++ b/Dialogflow/src/V2/AutomatedAgentConfig.php @@ -34,6 +34,15 @@ class AutomatedAgentConfig extends \Google\Protobuf\Internal\Message * Generated from protobuf field string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ private $agent = ''; + /** + * Optional. Sets Dialogflow CX session life time. + * By default, a Dialogflow CX session remains active and its data is stored + * for 30 minutes after the last request is sent for the session. This value + * should be no longer than 1 day. + * + * Generated from protobuf field .google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $session_ttl = null; /** * Constructor. @@ -56,6 +65,11 @@ class AutomatedAgentConfig extends \Google\Protobuf\Internal\Message * ID>/agents//environments/`. If environment is not specified, the default `draft` environment * is used. + * @type \Google\Protobuf\Duration $session_ttl + * Optional. Sets Dialogflow CX session life time. + * By default, a Dialogflow CX session remains active and its data is stored + * for 30 minutes after the last request is sent for the session. This value + * should be no longer than 1 day. * } */ public function __construct($data = NULL) { @@ -115,5 +129,47 @@ public function setAgent($var) return $this; } + /** + * Optional. Sets Dialogflow CX session life time. + * By default, a Dialogflow CX session remains active and its data is stored + * for 30 minutes after the last request is sent for the session. This value + * should be no longer than 1 day. + * + * Generated from protobuf field .google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Duration|null + */ + public function getSessionTtl() + { + return $this->session_ttl; + } + + public function hasSessionTtl() + { + return isset($this->session_ttl); + } + + public function clearSessionTtl() + { + unset($this->session_ttl); + } + + /** + * Optional. Sets Dialogflow CX session life time. + * By default, a Dialogflow CX session remains active and its data is stored + * for 30 minutes after the last request is sent for the session. This value + * should be no longer than 1 day. + * + * Generated from protobuf field .google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setSessionTtl($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->session_ttl = $var; + + return $this; + } + } diff --git a/Dialogflow/src/V2/Document.php b/Dialogflow/src/V2/Document.php index 1dc866aa8207..98e57e078a99 100644 --- a/Dialogflow/src/V2/Document.php +++ b/Dialogflow/src/V2/Document.php @@ -58,7 +58,7 @@ class Document extends \Google\Protobuf\Internal\Message * fails, we will keep the document unchanged. * If a reload fails with internal errors, the system will try to reload the * document on the next day. - * If a reload fails with non-retriable errors (e.g. PERMISION_DENIED), the + * If a reload fails with non-retriable errors (e.g. PERMISSION_DENIED), the * system will not try to reload the document anymore. You need to manually * reload the document successfully by calling `ReloadDocument` and clear the * errors. @@ -130,7 +130,7 @@ class Document extends \Google\Protobuf\Internal\Message * fails, we will keep the document unchanged. * If a reload fails with internal errors, the system will try to reload the * document on the next day. - * If a reload fails with non-retriable errors (e.g. PERMISION_DENIED), the + * If a reload fails with non-retriable errors (e.g. PERMISSION_DENIED), the * system will not try to reload the document anymore. You need to manually * reload the document successfully by calling `ReloadDocument` and clear the * errors. @@ -350,7 +350,7 @@ public function setRawContent($var) * fails, we will keep the document unchanged. * If a reload fails with internal errors, the system will try to reload the * document on the next day. - * If a reload fails with non-retriable errors (e.g. PERMISION_DENIED), the + * If a reload fails with non-retriable errors (e.g. PERMISSION_DENIED), the * system will not try to reload the document anymore. You need to manually * reload the document successfully by calling `ReloadDocument` and clear the * errors. @@ -373,7 +373,7 @@ public function getEnableAutoReload() * fails, we will keep the document unchanged. * If a reload fails with internal errors, the system will try to reload the * document on the next day. - * If a reload fails with non-retriable errors (e.g. PERMISION_DENIED), the + * If a reload fails with non-retriable errors (e.g. PERMISSION_DENIED), the * system will not try to reload the document anymore. You need to manually * reload the document successfully by calling `ReloadDocument` and clear the * errors. diff --git a/Dialogflow/src/V2/Gapic/ConversationsGapicClient.php b/Dialogflow/src/V2/Gapic/ConversationsGapicClient.php index 3958336cc9f9..ddeca1b22363 100644 --- a/Dialogflow/src/V2/Gapic/ConversationsGapicClient.php +++ b/Dialogflow/src/V2/Gapic/ConversationsGapicClient.php @@ -1410,7 +1410,7 @@ public function listMessages($parent, array $optionalArgs = []) * [latest_message] to use as context when compiling the * suggestion. By default 500 and at most 1000. * @type AssistQueryParameters $assistQueryParams - * Parameters for a human assist query. + * Parameters for a human assist query. Only used for POC/demo purpose. * @type RetrySettings|array $retrySettings * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an * associative array of retry settings parameters. See the documentation on diff --git a/Dialogflow/src/V2/Gapic/DocumentsGapicClient.php b/Dialogflow/src/V2/Gapic/DocumentsGapicClient.php index 59dd89a28be0..319730de742c 100644 --- a/Dialogflow/src/V2/Gapic/DocumentsGapicClient.php +++ b/Dialogflow/src/V2/Gapic/DocumentsGapicClient.php @@ -829,7 +829,7 @@ public function getDocument($name, array $optionalArgs = []) * Optional. * * @type GcsSources $gcsSource - * The Google Cloud Storage location for the documents. + * Optional. The Google Cloud Storage location for the documents. * The path can include a wildcard. * * These URIs may have the forms diff --git a/Dialogflow/src/V2/HumanAgentAssistantConfig/SuggestionQueryConfig.php b/Dialogflow/src/V2/HumanAgentAssistantConfig/SuggestionQueryConfig.php index 72a0b61ecd2f..b363c38a0ae9 100644 --- a/Dialogflow/src/V2/HumanAgentAssistantConfig/SuggestionQueryConfig.php +++ b/Dialogflow/src/V2/HumanAgentAssistantConfig/SuggestionQueryConfig.php @@ -36,7 +36,8 @@ class SuggestionQueryConfig extends \Google\Protobuf\Internal\Message * desired results. * If this field is not set, it defaults to 0.0, which means that all * suggestions are returned. - * Supported features: ARTICLE_SUGGESTION, FAQ, SMART_REPLY, SMART_COMPOSE. + * Supported features: ARTICLE_SUGGESTION, FAQ, SMART_REPLY, SMART_COMPOSE, + * KNOWLEDGE_SEARCH, KNOWLEDGE_ASSIST, ENTITY_EXTRACTION. * * Generated from protobuf field float confidence_threshold = 5; */ @@ -81,7 +82,8 @@ class SuggestionQueryConfig extends \Google\Protobuf\Internal\Message * desired results. * If this field is not set, it defaults to 0.0, which means that all * suggestions are returned. - * Supported features: ARTICLE_SUGGESTION, FAQ, SMART_REPLY, SMART_COMPOSE. + * Supported features: ARTICLE_SUGGESTION, FAQ, SMART_REPLY, SMART_COMPOSE, + * KNOWLEDGE_SEARCH, KNOWLEDGE_ASSIST, ENTITY_EXTRACTION. * @type \Google\Cloud\Dialogflow\V2\HumanAgentAssistantConfig\SuggestionQueryConfig\ContextFilterSettings $context_filter_settings * Determines how recent conversation context is filtered when generating * suggestions. If unspecified, no messages will be dropped. @@ -231,7 +233,8 @@ public function setMaxResults($var) * desired results. * If this field is not set, it defaults to 0.0, which means that all * suggestions are returned. - * Supported features: ARTICLE_SUGGESTION, FAQ, SMART_REPLY, SMART_COMPOSE. + * Supported features: ARTICLE_SUGGESTION, FAQ, SMART_REPLY, SMART_COMPOSE, + * KNOWLEDGE_SEARCH, KNOWLEDGE_ASSIST, ENTITY_EXTRACTION. * * Generated from protobuf field float confidence_threshold = 5; * @return float @@ -255,7 +258,8 @@ public function getConfidenceThreshold() * desired results. * If this field is not set, it defaults to 0.0, which means that all * suggestions are returned. - * Supported features: ARTICLE_SUGGESTION, FAQ, SMART_REPLY, SMART_COMPOSE. + * Supported features: ARTICLE_SUGGESTION, FAQ, SMART_REPLY, SMART_COMPOSE, + * KNOWLEDGE_SEARCH, KNOWLEDGE_ASSIST, ENTITY_EXTRACTION. * * Generated from protobuf field float confidence_threshold = 5; * @param float $var diff --git a/Dialogflow/src/V2/HumanAgentAssistantConfig/SuggestionQueryConfig/DialogflowQuerySource.php b/Dialogflow/src/V2/HumanAgentAssistantConfig/SuggestionQueryConfig/DialogflowQuerySource.php index 6ef6ed220a96..4d01867a0b2e 100644 --- a/Dialogflow/src/V2/HumanAgentAssistantConfig/SuggestionQueryConfig/DialogflowQuerySource.php +++ b/Dialogflow/src/V2/HumanAgentAssistantConfig/SuggestionQueryConfig/DialogflowQuerySource.php @@ -18,7 +18,7 @@ class DialogflowQuerySource extends \Google\Protobuf\Internal\Message { /** * Required. The name of a Dialogflow virtual agent used for end user side - * intent detection and suggestion. Format: `projects//locations//agent`. When multiple agents are allowed in * the same Dialogflow project. * @@ -34,7 +34,7 @@ class DialogflowQuerySource extends \Google\Protobuf\Internal\Message * * @type string $agent * Required. The name of a Dialogflow virtual agent used for end user side - * intent detection and suggestion. Format: `projects//locations//agent`. When multiple agents are allowed in * the same Dialogflow project. * } @@ -46,7 +46,7 @@ public function __construct($data = NULL) { /** * Required. The name of a Dialogflow virtual agent used for end user side - * intent detection and suggestion. Format: `projects//locations//agent`. When multiple agents are allowed in * the same Dialogflow project. * @@ -60,7 +60,7 @@ public function getAgent() /** * Required. The name of a Dialogflow virtual agent used for end user side - * intent detection and suggestion. Format: `projects//locations//agent`. When multiple agents are allowed in * the same Dialogflow project. * diff --git a/Dialogflow/src/V2/ImportDocumentsRequest.php b/Dialogflow/src/V2/ImportDocumentsRequest.php index f675acdde64a..f8ed0511823e 100644 --- a/Dialogflow/src/V2/ImportDocumentsRequest.php +++ b/Dialogflow/src/V2/ImportDocumentsRequest.php @@ -50,7 +50,7 @@ class ImportDocumentsRequest extends \Google\Protobuf\Internal\Message * Format: `projects//locations//knowledgeBases/`. * @type \Google\Cloud\Dialogflow\V2\GcsSources $gcs_source - * The Google Cloud Storage location for the documents. + * Optional. The Google Cloud Storage location for the documents. * The path can include a wildcard. * These URIs may have the forms * `gs:///`. @@ -98,13 +98,13 @@ public function setParent($var) } /** - * The Google Cloud Storage location for the documents. + * Optional. The Google Cloud Storage location for the documents. * The path can include a wildcard. * These URIs may have the forms * `gs:///`. * `gs:////*.`. * - * Generated from protobuf field .google.cloud.dialogflow.v2.GcsSources gcs_source = 2; + * Generated from protobuf field .google.cloud.dialogflow.v2.GcsSources gcs_source = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Cloud\Dialogflow\V2\GcsSources|null */ public function getGcsSource() @@ -118,13 +118,13 @@ public function hasGcsSource() } /** - * The Google Cloud Storage location for the documents. + * Optional. The Google Cloud Storage location for the documents. * The path can include a wildcard. * These URIs may have the forms * `gs:///`. * `gs:////*.`. * - * Generated from protobuf field .google.cloud.dialogflow.v2.GcsSources gcs_source = 2; + * Generated from protobuf field .google.cloud.dialogflow.v2.GcsSources gcs_source = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param \Google\Cloud\Dialogflow\V2\GcsSources $var * @return $this */ diff --git a/Dialogflow/src/V2/SuggestConversationSummaryRequest.php b/Dialogflow/src/V2/SuggestConversationSummaryRequest.php index a8bee974974b..f791a7d5277d 100644 --- a/Dialogflow/src/V2/SuggestConversationSummaryRequest.php +++ b/Dialogflow/src/V2/SuggestConversationSummaryRequest.php @@ -43,7 +43,7 @@ class SuggestConversationSummaryRequest extends \Google\Protobuf\Internal\Messag */ private $context_size = 0; /** - * Parameters for a human assist query. + * Parameters for a human assist query. Only used for POC/demo purpose. * * Generated from protobuf field .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 5; */ @@ -86,7 +86,7 @@ public static function build(string $conversation): self * [latest_message] to use as context when compiling the * suggestion. By default 500 and at most 1000. * @type \Google\Cloud\Dialogflow\V2\AssistQueryParameters $assist_query_params - * Parameters for a human assist query. + * Parameters for a human assist query. Only used for POC/demo purpose. * } */ public function __construct($data = NULL) { @@ -189,7 +189,7 @@ public function setContextSize($var) } /** - * Parameters for a human assist query. + * Parameters for a human assist query. Only used for POC/demo purpose. * * Generated from protobuf field .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 5; * @return \Google\Cloud\Dialogflow\V2\AssistQueryParameters|null @@ -210,7 +210,7 @@ public function clearAssistQueryParams() } /** - * Parameters for a human assist query. + * Parameters for a human assist query. Only used for POC/demo purpose. * * Generated from protobuf field .google.cloud.dialogflow.v2.AssistQueryParameters assist_query_params = 5; * @param \Google\Cloud\Dialogflow\V2\AssistQueryParameters $var