From 0e78debde975e646ec40d17eab08deda4ff0c661 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 13 Mar 2024 03:18:46 +0000 Subject: [PATCH] feat: Automated regeneration of Dialogflow client --- .../lib/google_api/dialogflow/v2/metadata.ex | 2 +- ...gflow_cx_v3_webhook_generic_web_service.ex | 12 ++ ...bhook_generic_web_service_o_auth_config.ex | 60 +++++++++ ..._cx_v3beta1_webhook_generic_web_service.ex | 13 ++ ...bhook_generic_web_service_o_auth_config.ex | 62 +++++++++ .../lib/google_api/dialogflow/v3/metadata.ex | 2 +- ...low_cx_v3_data_store_connection_signals.ex | 127 ++++++++++++++++++ ...ls_answer_generation_model_call_signals.ex | 56 ++++++++ ...ta_store_connection_signals_answer_part.ex | 54 ++++++++ ..._store_connection_signals_cited_snippet.ex | 62 +++++++++ ...re_connection_signals_grounding_signals.ex | 56 ++++++++ ...ion_signals_rewriter_model_call_signals.ex | 56 ++++++++ ...store_connection_signals_safety_signals.ex | 59 ++++++++ ...store_connection_signals_search_snippet.ex | 59 ++++++++ ...cloud_dialogflow_cx_v3_query_parameters.ex | 3 + ...gle_cloud_dialogflow_cx_v3_query_result.ex | 9 ++ ...gflow_cx_v3_webhook_generic_web_service.ex | 12 ++ ...bhook_generic_web_service_o_auth_config.ex | 60 +++++++++ ..._cx_v3beta1_webhook_generic_web_service.ex | 13 ++ ...bhook_generic_web_service_o_auth_config.ex | 62 +++++++++ 20 files changed, 837 insertions(+), 2 deletions(-) create mode 100644 clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_webhook_generic_web_service_o_auth_config.ex create mode 100644 clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_webhook_generic_web_service_o_auth_config.ex create mode 100644 clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_data_store_connection_signals.ex create mode 100644 clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_data_store_connection_signals_answer_generation_model_call_signals.ex create mode 100644 clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_data_store_connection_signals_answer_part.ex create mode 100644 clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_data_store_connection_signals_cited_snippet.ex create mode 100644 clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_data_store_connection_signals_grounding_signals.ex create mode 100644 clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_data_store_connection_signals_rewriter_model_call_signals.ex create mode 100644 clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_data_store_connection_signals_safety_signals.ex create mode 100644 clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_data_store_connection_signals_search_snippet.ex create mode 100644 clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_webhook_generic_web_service_o_auth_config.ex create mode 100644 clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3beta1_webhook_generic_web_service_o_auth_config.ex diff --git a/clients/dialogflow/lib/google_api/dialogflow/v2/metadata.ex b/clients/dialogflow/lib/google_api/dialogflow/v2/metadata.ex index 7c728c8af5..d0db78c127 100644 --- a/clients/dialogflow/lib/google_api/dialogflow/v2/metadata.ex +++ b/clients/dialogflow/lib/google_api/dialogflow/v2/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.Dialogflow.V2 do API client metadata for GoogleApi.Dialogflow.V2. """ - @discovery_revision "20240305" + @discovery_revision "20240311" def discovery_revision(), do: @discovery_revision end diff --git a/clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_webhook_generic_web_service.ex b/clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_webhook_generic_web_service.ex index 4aa23a0116..9fe338cc82 100644 --- a/clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_webhook_generic_web_service.ex +++ b/clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_webhook_generic_web_service.ex @@ -23,10 +23,12 @@ defmodule GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3WebhookGenericW * `allowedCaCerts` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Specifies a list of allowed custom CA certificates (in DER format) for HTTPS verification. This overrides the default SSL trust store. If this is empty or unspecified, Dialogflow will use Google's default trust store to verify certificates. N.B. Make sure the HTTPS server certificates are signed with "subject alt name". For instance a certificate can be self-signed using the following command, ``` openssl x509 -req -days 200 -in example.com.csr \\ -signkey example.com.key \\ -out example.com.crt \\ -extfile <(printf "\\nsubjectAltName='DNS:www.example.com'") ``` * `httpMethod` (*type:* `String.t`, *default:* `nil`) - Optional. HTTP method for the flexible webhook calls. Standard webhook always uses POST. + * `oauthConfig` (*type:* `GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig.t`, *default:* `nil`) - Optional. The OAuth configuration of the webhook. If specified, Dialogflow will initiate the OAuth client credential flow to exchange an access token from the 3rd party platform and put it in the auth header. * `parameterMapping` (*type:* `map()`, *default:* `nil`) - Optional. Maps the values extracted from specific fields of the flexible webhook response into session parameters. - Key: session parameter name - Value: field path in the webhook response * `password` (*type:* `String.t`, *default:* `nil`) - The password for HTTP Basic authentication. * `requestBody` (*type:* `String.t`, *default:* `nil`) - Optional. Defines a custom JSON object as request body to send to flexible webhook. * `requestHeaders` (*type:* `map()`, *default:* `nil`) - The HTTP request headers to send together with webhook requests. + * `serviceAgentAuth` (*type:* `String.t`, *default:* `nil`) - Optional. Indicate the auth token type generated from the [Diglogflow service agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent). The generated token is sent in the Authorization header. * `uri` (*type:* `String.t`, *default:* `nil`) - Required. The webhook URI for receiving POST requests. It must use https protocol. * `username` (*type:* `String.t`, *default:* `nil`) - The user name for HTTP Basic authentication. * `webhookType` (*type:* `String.t`, *default:* `nil`) - Optional. Type of the webhook. @@ -37,10 +39,14 @@ defmodule GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3WebhookGenericW @type t :: %__MODULE__{ :allowedCaCerts => list(String.t()) | nil, :httpMethod => String.t() | nil, + :oauthConfig => + GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig.t() + | nil, :parameterMapping => map() | nil, :password => String.t() | nil, :requestBody => String.t() | nil, :requestHeaders => map() | nil, + :serviceAgentAuth => String.t() | nil, :uri => String.t() | nil, :username => String.t() | nil, :webhookType => String.t() | nil @@ -48,10 +54,16 @@ defmodule GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3WebhookGenericW field(:allowedCaCerts, type: :list) field(:httpMethod) + + field(:oauthConfig, + as: GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig + ) + field(:parameterMapping, type: :map) field(:password) field(:requestBody) field(:requestHeaders, type: :map) + field(:serviceAgentAuth) field(:uri) field(:username) field(:webhookType) diff --git a/clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_webhook_generic_web_service_o_auth_config.ex b/clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_webhook_generic_web_service_o_auth_config.ex new file mode 100644 index 0000000000..735418bb4f --- /dev/null +++ b/clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_webhook_generic_web_service_o_auth_config.ex @@ -0,0 +1,60 @@ +# 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. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig do + @moduledoc """ + Represents configuration of OAuth client credential flow for 3rd party API authentication. + + ## Attributes + + * `clientId` (*type:* `String.t`, *default:* `nil`) - Required. The client ID provided by the 3rd party platform. + * `clientSecret` (*type:* `String.t`, *default:* `nil`) - Required. The client secret provided by the 3rd party platform. + * `scopes` (*type:* `list(String.t)`, *default:* `nil`) - Optional. The OAuth scopes to grant. + * `tokenEndpoint` (*type:* `String.t`, *default:* `nil`) - Required. The token endpoint provided by the 3rd party platform to exchange an access token. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :clientId => String.t() | nil, + :clientSecret => String.t() | nil, + :scopes => list(String.t()) | nil, + :tokenEndpoint => String.t() | nil + } + + field(:clientId) + field(:clientSecret) + field(:scopes, type: :list) + field(:tokenEndpoint) +end + +defimpl Poison.Decoder, + for: GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig do + def decode(value, options) do + GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_webhook_generic_web_service.ex b/clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_webhook_generic_web_service.ex index 9395b25be9..d348703c97 100644 --- a/clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_webhook_generic_web_service.ex +++ b/clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_webhook_generic_web_service.ex @@ -23,10 +23,12 @@ defmodule GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3beta1WebhookGen * `allowedCaCerts` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Specifies a list of allowed custom CA certificates (in DER format) for HTTPS verification. This overrides the default SSL trust store. If this is empty or unspecified, Dialogflow will use Google's default trust store to verify certificates. N.B. Make sure the HTTPS server certificates are signed with "subject alt name". For instance a certificate can be self-signed using the following command, ``` openssl x509 -req -days 200 -in example.com.csr \\ -signkey example.com.key \\ -out example.com.crt \\ -extfile <(printf "\\nsubjectAltName='DNS:www.example.com'") ``` * `httpMethod` (*type:* `String.t`, *default:* `nil`) - Optional. HTTP method for the flexible webhook calls. Standard webhook always uses POST. + * `oauthConfig` (*type:* `GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceOAuthConfig.t`, *default:* `nil`) - Optional. The OAuth configuration of the webhook. If specified, Dialogflow will initiate the OAuth client credential flow to exchange an access token from the 3rd party platform and put it in the auth header. * `parameterMapping` (*type:* `map()`, *default:* `nil`) - Optional. Maps the values extracted from specific fields of the flexible webhook response into session parameters. - Key: session parameter name - Value: field path in the webhook response * `password` (*type:* `String.t`, *default:* `nil`) - The password for HTTP Basic authentication. * `requestBody` (*type:* `String.t`, *default:* `nil`) - Optional. Defines a custom JSON object as request body to send to flexible webhook. * `requestHeaders` (*type:* `map()`, *default:* `nil`) - The HTTP request headers to send together with webhook requests. + * `serviceAgentAuth` (*type:* `String.t`, *default:* `nil`) - Optional. Indicate the auth token type generated from the [Diglogflow service agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent). The generated token is sent in the Authorization header. * `uri` (*type:* `String.t`, *default:* `nil`) - Required. The webhook URI for receiving POST requests. It must use https protocol. * `username` (*type:* `String.t`, *default:* `nil`) - The user name for HTTP Basic authentication. * `webhookType` (*type:* `String.t`, *default:* `nil`) - Optional. Type of the webhook. @@ -37,10 +39,14 @@ defmodule GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3beta1WebhookGen @type t :: %__MODULE__{ :allowedCaCerts => list(String.t()) | nil, :httpMethod => String.t() | nil, + :oauthConfig => + GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceOAuthConfig.t() + | nil, :parameterMapping => map() | nil, :password => String.t() | nil, :requestBody => String.t() | nil, :requestHeaders => map() | nil, + :serviceAgentAuth => String.t() | nil, :uri => String.t() | nil, :username => String.t() | nil, :webhookType => String.t() | nil @@ -48,10 +54,17 @@ defmodule GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3beta1WebhookGen field(:allowedCaCerts, type: :list) field(:httpMethod) + + field(:oauthConfig, + as: + GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceOAuthConfig + ) + field(:parameterMapping, type: :map) field(:password) field(:requestBody) field(:requestHeaders, type: :map) + field(:serviceAgentAuth) field(:uri) field(:username) field(:webhookType) diff --git a/clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_webhook_generic_web_service_o_auth_config.ex b/clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_webhook_generic_web_service_o_auth_config.ex new file mode 100644 index 0000000000..97a21e7186 --- /dev/null +++ b/clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_webhook_generic_web_service_o_auth_config.ex @@ -0,0 +1,62 @@ +# 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. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceOAuthConfig do + @moduledoc """ + Represents configuration of OAuth client credential flow for 3rd party API authentication. + + ## Attributes + + * `clientId` (*type:* `String.t`, *default:* `nil`) - Required. The client ID provided by the 3rd party platform. + * `clientSecret` (*type:* `String.t`, *default:* `nil`) - Required. The client secret provided by the 3rd party platform. + * `scopes` (*type:* `list(String.t)`, *default:* `nil`) - Optional. The OAuth scopes to grant. + * `tokenEndpoint` (*type:* `String.t`, *default:* `nil`) - Required. The token endpoint provided by the 3rd party platform to exchange an access token. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :clientId => String.t() | nil, + :clientSecret => String.t() | nil, + :scopes => list(String.t()) | nil, + :tokenEndpoint => String.t() | nil + } + + field(:clientId) + field(:clientSecret) + field(:scopes, type: :list) + field(:tokenEndpoint) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceOAuthConfig do + def decode(value, options) do + GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceOAuthConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceOAuthConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/dialogflow/lib/google_api/dialogflow/v3/metadata.ex b/clients/dialogflow/lib/google_api/dialogflow/v3/metadata.ex index ce5ac5c27a..3030d63b8f 100644 --- a/clients/dialogflow/lib/google_api/dialogflow/v3/metadata.ex +++ b/clients/dialogflow/lib/google_api/dialogflow/v3/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.Dialogflow.V3 do API client metadata for GoogleApi.Dialogflow.V3. """ - @discovery_revision "20240305" + @discovery_revision "20240311" def discovery_revision(), do: @discovery_revision end diff --git a/clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_data_store_connection_signals.ex b/clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_data_store_connection_signals.ex new file mode 100644 index 0000000000..a663072f36 --- /dev/null +++ b/clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_data_store_connection_signals.ex @@ -0,0 +1,127 @@ +# 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. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignals do + @moduledoc """ + Data store connection feature output signals. Might be only partially field if processing stop before the final answer. Reasons for this can be, but are not limited to: empty UCS search results, positive RAI check outcome, grounding failure, ... + + ## Attributes + + * `answer` (*type:* `String.t`, *default:* `nil`) - Optional. The final compiled answer. + * `answerGenerationModelCallSignals` (*type:* `GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignalsAnswerGenerationModelCallSignals.t`, *default:* `nil`) - Optional. Diagnostic info related to the answer generation model call. + * `answerParts` (*type:* `list(GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignalsAnswerPart.t)`, *default:* `nil`) - Optional. Answer parts with relevant citations. Concatenation of texts should add up the `answer` (not counting whitespaces). + * `citedSnippets` (*type:* `list(GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignalsCitedSnippet.t)`, *default:* `nil`) - Optional. Snippets cited by the answer generation model from the most to least relevant. + * `groundingSignals` (*type:* `GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignalsGroundingSignals.t`, *default:* `nil`) - Optional. Grounding signals. + * `rewriterModelCallSignals` (*type:* `GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignalsRewriterModelCallSignals.t`, *default:* `nil`) - Optional. Diagnostic info related to the rewriter model call. + * `rewrittenQuery` (*type:* `String.t`, *default:* `nil`) - Optional. Rewritten string query used for search. + * `safetySignals` (*type:* `GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignalsSafetySignals.t`, *default:* `nil`) - Optional. Safety check result. + * `searchSnippets` (*type:* `list(GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignalsSearchSnippet.t)`, *default:* `nil`) - Optional. Search snippets included in the answer generation prompt. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :answer => String.t() | nil, + :answerGenerationModelCallSignals => + GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignalsAnswerGenerationModelCallSignals.t() + | nil, + :answerParts => + list( + GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignalsAnswerPart.t() + ) + | nil, + :citedSnippets => + list( + GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignalsCitedSnippet.t() + ) + | nil, + :groundingSignals => + GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignalsGroundingSignals.t() + | nil, + :rewriterModelCallSignals => + GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignalsRewriterModelCallSignals.t() + | nil, + :rewrittenQuery => String.t() | nil, + :safetySignals => + GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignalsSafetySignals.t() + | nil, + :searchSnippets => + list( + GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignalsSearchSnippet.t() + ) + | nil + } + + field(:answer) + + field(:answerGenerationModelCallSignals, + as: + GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignalsAnswerGenerationModelCallSignals + ) + + field(:answerParts, + as: + GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignalsAnswerPart, + type: :list + ) + + field(:citedSnippets, + as: + GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignalsCitedSnippet, + type: :list + ) + + field(:groundingSignals, + as: + GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignalsGroundingSignals + ) + + field(:rewriterModelCallSignals, + as: + GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignalsRewriterModelCallSignals + ) + + field(:rewrittenQuery) + + field(:safetySignals, + as: + GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignalsSafetySignals + ) + + field(:searchSnippets, + as: + GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignalsSearchSnippet, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignals do + def decode(value, options) do + GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignals.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignals do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_data_store_connection_signals_answer_generation_model_call_signals.ex b/clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_data_store_connection_signals_answer_generation_model_call_signals.ex new file mode 100644 index 0000000000..fd2e8df599 --- /dev/null +++ b/clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_data_store_connection_signals_answer_generation_model_call_signals.ex @@ -0,0 +1,56 @@ +# 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. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignalsAnswerGenerationModelCallSignals do + @moduledoc """ + Diagnostic info related to the answer generation model call. + + ## Attributes + + * `modelOutput` (*type:* `String.t`, *default:* `nil`) - Output of the generative model. + * `renderedPrompt` (*type:* `String.t`, *default:* `nil`) - Prompt as sent to the model. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :modelOutput => String.t() | nil, + :renderedPrompt => String.t() | nil + } + + field(:modelOutput) + field(:renderedPrompt) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignalsAnswerGenerationModelCallSignals do + def decode(value, options) do + GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignalsAnswerGenerationModelCallSignals.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignalsAnswerGenerationModelCallSignals do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_data_store_connection_signals_answer_part.ex b/clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_data_store_connection_signals_answer_part.ex new file mode 100644 index 0000000000..df02135034 --- /dev/null +++ b/clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_data_store_connection_signals_answer_part.ex @@ -0,0 +1,54 @@ +# 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. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignalsAnswerPart do + @moduledoc """ + Answer part with citation. + + ## Attributes + + * `supportingIndices` (*type:* `list(integer())`, *default:* `nil`) - Citations for this answer part. Indices of `search_snippets`. + * `text` (*type:* `String.t`, *default:* `nil`) - Substring of the answer. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :supportingIndices => list(integer()) | nil, + :text => String.t() | nil + } + + field(:supportingIndices, type: :list) + field(:text) +end + +defimpl Poison.Decoder, + for: GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignalsAnswerPart do + def decode(value, options) do + GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignalsAnswerPart.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignalsAnswerPart do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_data_store_connection_signals_cited_snippet.ex b/clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_data_store_connection_signals_cited_snippet.ex new file mode 100644 index 0000000000..bc0533c78b --- /dev/null +++ b/clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_data_store_connection_signals_cited_snippet.ex @@ -0,0 +1,62 @@ +# 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. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignalsCitedSnippet do + @moduledoc """ + Snippet cited by the answer generation model. + + ## Attributes + + * `searchSnippet` (*type:* `GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignalsSearchSnippet.t`, *default:* `nil`) - Details of the snippet. + * `snippetIndex` (*type:* `integer()`, *default:* `nil`) - Index of the snippet in `search_snippets` field. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :searchSnippet => + GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignalsSearchSnippet.t() + | nil, + :snippetIndex => integer() | nil + } + + field(:searchSnippet, + as: + GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignalsSearchSnippet + ) + + field(:snippetIndex) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignalsCitedSnippet do + def decode(value, options) do + GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignalsCitedSnippet.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignalsCitedSnippet do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_data_store_connection_signals_grounding_signals.ex b/clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_data_store_connection_signals_grounding_signals.ex new file mode 100644 index 0000000000..448e16e11a --- /dev/null +++ b/clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_data_store_connection_signals_grounding_signals.ex @@ -0,0 +1,56 @@ +# 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. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignalsGroundingSignals do + @moduledoc """ + Grounding signals. + + ## Attributes + + * `decision` (*type:* `String.t`, *default:* `nil`) - Represents the decision of the grounding check. + * `score` (*type:* `String.t`, *default:* `nil`) - Grounding score bucket setting. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :decision => String.t() | nil, + :score => String.t() | nil + } + + field(:decision) + field(:score) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignalsGroundingSignals do + def decode(value, options) do + GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignalsGroundingSignals.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignalsGroundingSignals do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_data_store_connection_signals_rewriter_model_call_signals.ex b/clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_data_store_connection_signals_rewriter_model_call_signals.ex new file mode 100644 index 0000000000..86f0f3eea2 --- /dev/null +++ b/clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_data_store_connection_signals_rewriter_model_call_signals.ex @@ -0,0 +1,56 @@ +# 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. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignalsRewriterModelCallSignals do + @moduledoc """ + Diagnostic info related to the rewriter model call. + + ## Attributes + + * `modelOutput` (*type:* `String.t`, *default:* `nil`) - Output of the generative model. + * `renderedPrompt` (*type:* `String.t`, *default:* `nil`) - Prompt as sent to the model. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :modelOutput => String.t() | nil, + :renderedPrompt => String.t() | nil + } + + field(:modelOutput) + field(:renderedPrompt) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignalsRewriterModelCallSignals do + def decode(value, options) do + GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignalsRewriterModelCallSignals.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignalsRewriterModelCallSignals do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_data_store_connection_signals_safety_signals.ex b/clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_data_store_connection_signals_safety_signals.ex new file mode 100644 index 0000000000..592fd86623 --- /dev/null +++ b/clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_data_store_connection_signals_safety_signals.ex @@ -0,0 +1,59 @@ +# 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. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignalsSafetySignals do + @moduledoc """ + Safety check results. + + ## Attributes + + * `bannedPhraseMatch` (*type:* `String.t`, *default:* `nil`) - Specifies banned phrase match subject. + * `decision` (*type:* `String.t`, *default:* `nil`) - Safety decision. + * `matchedBannedPhrase` (*type:* `String.t`, *default:* `nil`) - The matched banned phrase if there was a match. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :bannedPhraseMatch => String.t() | nil, + :decision => String.t() | nil, + :matchedBannedPhrase => String.t() | nil + } + + field(:bannedPhraseMatch) + field(:decision) + field(:matchedBannedPhrase) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignalsSafetySignals do + def decode(value, options) do + GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignalsSafetySignals.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignalsSafetySignals do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_data_store_connection_signals_search_snippet.ex b/clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_data_store_connection_signals_search_snippet.ex new file mode 100644 index 0000000000..efe0cc5f6e --- /dev/null +++ b/clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_data_store_connection_signals_search_snippet.ex @@ -0,0 +1,59 @@ +# 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. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignalsSearchSnippet do + @moduledoc """ + Search snippet details. + + ## Attributes + + * `documentTitle` (*type:* `String.t`, *default:* `nil`) - Title of the enclosing document. + * `documentUri` (*type:* `String.t`, *default:* `nil`) - Uri for the document. Present if specified for the document. + * `text` (*type:* `String.t`, *default:* `nil`) - Text included in the prompt. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :documentTitle => String.t() | nil, + :documentUri => String.t() | nil, + :text => String.t() | nil + } + + field(:documentTitle) + field(:documentUri) + field(:text) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignalsSearchSnippet do + def decode(value, options) do + GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignalsSearchSnippet.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignalsSearchSnippet do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_query_parameters.ex b/clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_query_parameters.ex index c8811a25fc..bc873a9140 100644 --- a/clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_query_parameters.ex +++ b/clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_query_parameters.ex @@ -30,6 +30,7 @@ defmodule GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3QueryParameters * `geoLocation` (*type:* `GoogleApi.Dialogflow.V3.Model.GoogleTypeLatLng.t`, *default:* `nil`) - The geo location of this conversational query. * `parameters` (*type:* `map()`, *default:* `nil`) - Additional parameters to be put into session parameters. To remove a parameter from the session, clients should explicitly set the parameter value to null. You can reference the session parameters in the agent with the following format: $session.params.parameter-id. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs: * MapKey type: string * MapKey value: parameter name * MapValue type: If parameter's entity type is a composite entity then use map, otherwise, depending on the parameter value type, it could be one of string, number, boolean, null, list or map. * MapValue value: If parameter's entity type is a composite entity then use map from composite entity property names to property values, otherwise, use parameter value. * `payload` (*type:* `map()`, *default:* `nil`) - This field can be used to pass custom data into the webhook associated with the agent. Arbitrary JSON objects are supported. Some integrations that query a Dialogflow agent may provide additional information in the payload. In particular, for the Dialogflow Phone Gateway integration, this field has the form: ``` { "telephony": { "caller_id": "+18558363987" } } ``` + * `populateDataStoreConnectionSignals` (*type:* `boolean()`, *default:* `nil`) - Optional. If set to true and data stores are involved in serving the request then DetectIntentResponse.query_result.data_store_connection_signals will be filled with data that can help evaluations. * `searchConfig` (*type:* `GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3SearchConfig.t`, *default:* `nil`) - Optional. Search configuration for UCS search queries. * `sessionEntityTypes` (*type:* `list(GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3SessionEntityType.t)`, *default:* `nil`) - 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. * `sessionTtl` (*type:* `String.t`, *default:* `nil`) - Optional. Configure lifetime of the Dialogflow session. By default, a Dialogflow 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. @@ -49,6 +50,7 @@ defmodule GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3QueryParameters :geoLocation => GoogleApi.Dialogflow.V3.Model.GoogleTypeLatLng.t() | nil, :parameters => map() | nil, :payload => map() | nil, + :populateDataStoreConnectionSignals => boolean() | nil, :searchConfig => GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3SearchConfig.t() | nil, :sessionEntityTypes => @@ -68,6 +70,7 @@ defmodule GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3QueryParameters field(:geoLocation, as: GoogleApi.Dialogflow.V3.Model.GoogleTypeLatLng) field(:parameters, type: :map) field(:payload, type: :map) + field(:populateDataStoreConnectionSignals) field(:searchConfig, as: GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3SearchConfig) field(:sessionEntityTypes, diff --git a/clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_query_result.ex b/clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_query_result.ex index 1949d7e7a4..f356f0946e 100644 --- a/clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_query_result.ex +++ b/clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_query_result.ex @@ -24,6 +24,7 @@ defmodule GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3QueryResult do * `advancedSettings` (*type:* `GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3AdvancedSettings.t`, *default:* `nil`) - Returns the current advanced settings including IVR settings. Even though the operations configured by these settings are performed by Dialogflow, the client may need to perform special logic at the moment. For example, if Dialogflow exports audio to Google Cloud Storage, then the client may need to wait for the resulting object to appear in the bucket before proceeding. * `allowAnswerFeedback` (*type:* `boolean()`, *default:* `nil`) - Indicates whether the Thumbs up/Thumbs down rating controls are need to be shown for the response in the Dialogflow Messenger widget. * `currentPage` (*type:* `GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3Page.t`, *default:* `nil`) - The current Page. Some, not all fields are filled in this message, including but not limited to `name` and `display_name`. + * `dataStoreConnectionSignals` (*type:* `GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignals.t`, *default:* `nil`) - Optional. Data store connection feature output signals. Filled only when data stores are involved in serving the query and DetectIntentRequest.populate data_store_connection_quality_signals is set to true in the request. * `diagnosticInfo` (*type:* `map()`, *default:* `nil`) - The free-form diagnostic info. For example, this field could contain webhook call latency. The fields of this data can change without notice, so you should not write code that depends on its structure. One of the fields is called "Alternative Matched Intents", which may aid with debugging. The following describes these intent results: - The list is empty if no intent was matched to end-user input. - Only intents that are referenced in the currently active flow are included. - The matched intent is included. - Other intents that could have matched end-user input, but did not match because they are referenced by intent routes that are out of [scope](https://cloud.google.com/dialogflow/cx/docs/concept/handler#scope), are included. - Other intents referenced by intent routes in scope that matched end-user input, but had a lower confidence score. * `dtmf` (*type:* `GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DtmfInput.t`, *default:* `nil`) - If a DTMF was provided as input, this field will contain a copy of the DtmfInput. * `intent` (*type:* `GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3Intent.t`, *default:* `nil`) - The Intent that matched the conversational query. Some, not all fields are filled in this message, including but not limited to: `name` and `display_name`. This field is deprecated, please use QueryResult.match instead. @@ -48,6 +49,9 @@ defmodule GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3QueryResult do GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3AdvancedSettings.t() | nil, :allowAnswerFeedback => boolean() | nil, :currentPage => GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3Page.t() | nil, + :dataStoreConnectionSignals => + GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignals.t() + | nil, :diagnosticInfo => map() | nil, :dtmf => GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DtmfInput.t() | nil, :intent => GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3Intent.t() | nil, @@ -74,6 +78,11 @@ defmodule GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3QueryResult do field(:allowAnswerFeedback) field(:currentPage, as: GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3Page) + + field(:dataStoreConnectionSignals, + as: GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignals + ) + field(:diagnosticInfo, type: :map) field(:dtmf, as: GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DtmfInput) field(:intent, as: GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3Intent) diff --git a/clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_webhook_generic_web_service.ex b/clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_webhook_generic_web_service.ex index 851435b972..18ab516cc9 100644 --- a/clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_webhook_generic_web_service.ex +++ b/clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_webhook_generic_web_service.ex @@ -23,10 +23,12 @@ defmodule GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3WebhookGenericW * `allowedCaCerts` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Specifies a list of allowed custom CA certificates (in DER format) for HTTPS verification. This overrides the default SSL trust store. If this is empty or unspecified, Dialogflow will use Google's default trust store to verify certificates. N.B. Make sure the HTTPS server certificates are signed with "subject alt name". For instance a certificate can be self-signed using the following command, ``` openssl x509 -req -days 200 -in example.com.csr \\ -signkey example.com.key \\ -out example.com.crt \\ -extfile <(printf "\\nsubjectAltName='DNS:www.example.com'") ``` * `httpMethod` (*type:* `String.t`, *default:* `nil`) - Optional. HTTP method for the flexible webhook calls. Standard webhook always uses POST. + * `oauthConfig` (*type:* `GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig.t`, *default:* `nil`) - Optional. The OAuth configuration of the webhook. If specified, Dialogflow will initiate the OAuth client credential flow to exchange an access token from the 3rd party platform and put it in the auth header. * `parameterMapping` (*type:* `map()`, *default:* `nil`) - Optional. Maps the values extracted from specific fields of the flexible webhook response into session parameters. - Key: session parameter name - Value: field path in the webhook response * `password` (*type:* `String.t`, *default:* `nil`) - The password for HTTP Basic authentication. * `requestBody` (*type:* `String.t`, *default:* `nil`) - Optional. Defines a custom JSON object as request body to send to flexible webhook. * `requestHeaders` (*type:* `map()`, *default:* `nil`) - The HTTP request headers to send together with webhook requests. + * `serviceAgentAuth` (*type:* `String.t`, *default:* `nil`) - Optional. Indicate the auth token type generated from the [Diglogflow service agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent). The generated token is sent in the Authorization header. * `uri` (*type:* `String.t`, *default:* `nil`) - Required. The webhook URI for receiving POST requests. It must use https protocol. * `username` (*type:* `String.t`, *default:* `nil`) - The user name for HTTP Basic authentication. * `webhookType` (*type:* `String.t`, *default:* `nil`) - Optional. Type of the webhook. @@ -37,10 +39,14 @@ defmodule GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3WebhookGenericW @type t :: %__MODULE__{ :allowedCaCerts => list(String.t()) | nil, :httpMethod => String.t() | nil, + :oauthConfig => + GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig.t() + | nil, :parameterMapping => map() | nil, :password => String.t() | nil, :requestBody => String.t() | nil, :requestHeaders => map() | nil, + :serviceAgentAuth => String.t() | nil, :uri => String.t() | nil, :username => String.t() | nil, :webhookType => String.t() | nil @@ -48,10 +54,16 @@ defmodule GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3WebhookGenericW field(:allowedCaCerts, type: :list) field(:httpMethod) + + field(:oauthConfig, + as: GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig + ) + field(:parameterMapping, type: :map) field(:password) field(:requestBody) field(:requestHeaders, type: :map) + field(:serviceAgentAuth) field(:uri) field(:username) field(:webhookType) diff --git a/clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_webhook_generic_web_service_o_auth_config.ex b/clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_webhook_generic_web_service_o_auth_config.ex new file mode 100644 index 0000000000..2e2f938655 --- /dev/null +++ b/clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_webhook_generic_web_service_o_auth_config.ex @@ -0,0 +1,60 @@ +# 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. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig do + @moduledoc """ + Represents configuration of OAuth client credential flow for 3rd party API authentication. + + ## Attributes + + * `clientId` (*type:* `String.t`, *default:* `nil`) - Required. The client ID provided by the 3rd party platform. + * `clientSecret` (*type:* `String.t`, *default:* `nil`) - Required. The client secret provided by the 3rd party platform. + * `scopes` (*type:* `list(String.t)`, *default:* `nil`) - Optional. The OAuth scopes to grant. + * `tokenEndpoint` (*type:* `String.t`, *default:* `nil`) - Required. The token endpoint provided by the 3rd party platform to exchange an access token. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :clientId => String.t() | nil, + :clientSecret => String.t() | nil, + :scopes => list(String.t()) | nil, + :tokenEndpoint => String.t() | nil + } + + field(:clientId) + field(:clientSecret) + field(:scopes, type: :list) + field(:tokenEndpoint) +end + +defimpl Poison.Decoder, + for: GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig do + def decode(value, options) do + GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3beta1_webhook_generic_web_service.ex b/clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3beta1_webhook_generic_web_service.ex index 4d12cd6b05..0788b61c74 100644 --- a/clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3beta1_webhook_generic_web_service.ex +++ b/clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3beta1_webhook_generic_web_service.ex @@ -23,10 +23,12 @@ defmodule GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3beta1WebhookGen * `allowedCaCerts` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Specifies a list of allowed custom CA certificates (in DER format) for HTTPS verification. This overrides the default SSL trust store. If this is empty or unspecified, Dialogflow will use Google's default trust store to verify certificates. N.B. Make sure the HTTPS server certificates are signed with "subject alt name". For instance a certificate can be self-signed using the following command, ``` openssl x509 -req -days 200 -in example.com.csr \\ -signkey example.com.key \\ -out example.com.crt \\ -extfile <(printf "\\nsubjectAltName='DNS:www.example.com'") ``` * `httpMethod` (*type:* `String.t`, *default:* `nil`) - Optional. HTTP method for the flexible webhook calls. Standard webhook always uses POST. + * `oauthConfig` (*type:* `GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceOAuthConfig.t`, *default:* `nil`) - Optional. The OAuth configuration of the webhook. If specified, Dialogflow will initiate the OAuth client credential flow to exchange an access token from the 3rd party platform and put it in the auth header. * `parameterMapping` (*type:* `map()`, *default:* `nil`) - Optional. Maps the values extracted from specific fields of the flexible webhook response into session parameters. - Key: session parameter name - Value: field path in the webhook response * `password` (*type:* `String.t`, *default:* `nil`) - The password for HTTP Basic authentication. * `requestBody` (*type:* `String.t`, *default:* `nil`) - Optional. Defines a custom JSON object as request body to send to flexible webhook. * `requestHeaders` (*type:* `map()`, *default:* `nil`) - The HTTP request headers to send together with webhook requests. + * `serviceAgentAuth` (*type:* `String.t`, *default:* `nil`) - Optional. Indicate the auth token type generated from the [Diglogflow service agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent). The generated token is sent in the Authorization header. * `uri` (*type:* `String.t`, *default:* `nil`) - Required. The webhook URI for receiving POST requests. It must use https protocol. * `username` (*type:* `String.t`, *default:* `nil`) - The user name for HTTP Basic authentication. * `webhookType` (*type:* `String.t`, *default:* `nil`) - Optional. Type of the webhook. @@ -37,10 +39,14 @@ defmodule GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3beta1WebhookGen @type t :: %__MODULE__{ :allowedCaCerts => list(String.t()) | nil, :httpMethod => String.t() | nil, + :oauthConfig => + GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceOAuthConfig.t() + | nil, :parameterMapping => map() | nil, :password => String.t() | nil, :requestBody => String.t() | nil, :requestHeaders => map() | nil, + :serviceAgentAuth => String.t() | nil, :uri => String.t() | nil, :username => String.t() | nil, :webhookType => String.t() | nil @@ -48,10 +54,17 @@ defmodule GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3beta1WebhookGen field(:allowedCaCerts, type: :list) field(:httpMethod) + + field(:oauthConfig, + as: + GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceOAuthConfig + ) + field(:parameterMapping, type: :map) field(:password) field(:requestBody) field(:requestHeaders, type: :map) + field(:serviceAgentAuth) field(:uri) field(:username) field(:webhookType) diff --git a/clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3beta1_webhook_generic_web_service_o_auth_config.ex b/clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3beta1_webhook_generic_web_service_o_auth_config.ex new file mode 100644 index 0000000000..4448390c0d --- /dev/null +++ b/clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3beta1_webhook_generic_web_service_o_auth_config.ex @@ -0,0 +1,62 @@ +# 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. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceOAuthConfig do + @moduledoc """ + Represents configuration of OAuth client credential flow for 3rd party API authentication. + + ## Attributes + + * `clientId` (*type:* `String.t`, *default:* `nil`) - Required. The client ID provided by the 3rd party platform. + * `clientSecret` (*type:* `String.t`, *default:* `nil`) - Required. The client secret provided by the 3rd party platform. + * `scopes` (*type:* `list(String.t)`, *default:* `nil`) - Optional. The OAuth scopes to grant. + * `tokenEndpoint` (*type:* `String.t`, *default:* `nil`) - Required. The token endpoint provided by the 3rd party platform to exchange an access token. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :clientId => String.t() | nil, + :clientSecret => String.t() | nil, + :scopes => list(String.t()) | nil, + :tokenEndpoint => String.t() | nil + } + + field(:clientId) + field(:clientSecret) + field(:scopes, type: :list) + field(:tokenEndpoint) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceOAuthConfig do + def decode(value, options) do + GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceOAuthConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceOAuthConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end