From b1b9da355fd58a3e6805f1a6390440c28fe0a483 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 19 Apr 2024 13:14:31 +0000 Subject: [PATCH] feat: Automated regeneration of ContactCenterInsights client --- clients/contact_center_insights/README.md | 2 +- .../contact_center_insights/v1/metadata.ex | 2 +- ...rinsights_v1_agent_coaching_instruction.ex | 68 ++++++++++++ ...erinsights_v1_agent_coaching_suggestion.ex | 103 ++++++++++++++++++ ...hing_suggestion_agent_action_suggestion.ex | 53 +++++++++ ...ggestion_agent_coaching_suggestion_eval.ex | 56 ++++++++++ ...ion_agent_coaching_suggestion_reasoning.ex | 56 ++++++++++ ...ent_coaching_suggestion_sample_response.ex | 53 +++++++++ ...tcenterinsights_v1_free_form_suggestion.ex | 56 ++++++++++ ...tcenterinsights_v1_generator_suggestion.ex | 76 +++++++++++++ ...ts_v1_get_generator_suggestion_response.ex | 58 ++++++++++ ...sights_v1_get_knowledge_assist_response.ex | 67 ++++++++++++ ...wledge_assist_response_knowledge_answer.ex | 84 ++++++++++++++ ...st_response_knowledge_answer_faq_source.ex | 56 ++++++++++ ...onse_knowledge_answer_generative_source.ex | 61 +++++++++++ ...wledge_answer_generative_source_snippet.ex | 62 +++++++++++ ...knowledge_answer_intent_matching_source.ex | 56 ++++++++++ ...owledge_assist_response_suggested_query.ex | 56 ++++++++++ ...actcenterinsights_v1_runtime_annotation.ex | 27 +++++ ...nterinsights_v1_search_knowledge_answer.ex | 75 +++++++++++++ ...1_search_knowledge_answer_answer_source.ex | 62 +++++++++++ ...actcenterinsights_v1_summary_suggestion.ex | 61 +++++++++++ ...s_v1_summary_suggestion_summary_section.ex | 56 ++++++++++ ...hts_v1alpha1_agent_coaching_instruction.ex | 68 ++++++++++++ ...ghts_v1alpha1_agent_coaching_suggestion.ex | 103 ++++++++++++++++++ ...hing_suggestion_agent_action_suggestion.ex | 53 +++++++++ ...ggestion_agent_coaching_suggestion_eval.ex | 56 ++++++++++ ...ion_agent_coaching_suggestion_reasoning.ex | 56 ++++++++++ ...ent_coaching_suggestion_sample_response.ex | 53 +++++++++ ...rinsights_v1alpha1_free_form_suggestion.ex | 56 ++++++++++ ...rinsights_v1alpha1_generator_suggestion.ex | 76 +++++++++++++ ...lpha1_get_generator_suggestion_response.ex | 58 ++++++++++ ..._v1alpha1_get_knowledge_assist_response.ex | 67 ++++++++++++ ...wledge_assist_response_knowledge_answer.ex | 84 ++++++++++++++ ...st_response_knowledge_answer_faq_source.ex | 56 ++++++++++ ...onse_knowledge_answer_generative_source.ex | 61 +++++++++++ ...wledge_answer_generative_source_snippet.ex | 62 +++++++++++ ...knowledge_answer_intent_matching_source.ex | 56 ++++++++++ ...owledge_assist_response_suggested_query.ex | 56 ++++++++++ ...terinsights_v1alpha1_runtime_annotation.ex | 27 +++++ ...sights_v1alpha1_search_knowledge_answer.ex | 75 +++++++++++++ ...1_search_knowledge_answer_answer_source.ex | 62 +++++++++++ ...terinsights_v1alpha1_summary_suggestion.ex | 61 +++++++++++ ...pha1_summary_suggestion_summary_section.ex | 56 ++++++++++ clients/contact_center_insights/mix.exs | 2 +- 45 files changed, 2607 insertions(+), 3 deletions(-) create mode 100644 clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_agent_coaching_instruction.ex create mode 100644 clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_agent_coaching_suggestion.ex create mode 100644 clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_agent_coaching_suggestion_agent_action_suggestion.ex create mode 100644 clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_agent_coaching_suggestion_agent_coaching_suggestion_eval.ex create mode 100644 clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_agent_coaching_suggestion_agent_coaching_suggestion_reasoning.ex create mode 100644 clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_agent_coaching_suggestion_sample_response.ex create mode 100644 clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_free_form_suggestion.ex create mode 100644 clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_generator_suggestion.ex create mode 100644 clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_get_generator_suggestion_response.ex create mode 100644 clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_get_knowledge_assist_response.ex create mode 100644 clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_get_knowledge_assist_response_knowledge_answer.ex create mode 100644 clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_get_knowledge_assist_response_knowledge_answer_faq_source.ex create mode 100644 clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_get_knowledge_assist_response_knowledge_answer_generative_source.ex create mode 100644 clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_get_knowledge_assist_response_knowledge_answer_generative_source_snippet.ex create mode 100644 clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_get_knowledge_assist_response_knowledge_answer_intent_matching_source.ex create mode 100644 clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_get_knowledge_assist_response_suggested_query.ex create mode 100644 clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_search_knowledge_answer.ex create mode 100644 clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_search_knowledge_answer_answer_source.ex create mode 100644 clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_summary_suggestion.ex create mode 100644 clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_summary_suggestion_summary_section.ex create mode 100644 clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_agent_coaching_instruction.ex create mode 100644 clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_agent_coaching_suggestion.ex create mode 100644 clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_agent_coaching_suggestion_agent_action_suggestion.ex create mode 100644 clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_agent_coaching_suggestion_agent_coaching_suggestion_eval.ex create mode 100644 clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_agent_coaching_suggestion_agent_coaching_suggestion_reasoning.ex create mode 100644 clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_agent_coaching_suggestion_sample_response.ex create mode 100644 clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_free_form_suggestion.ex create mode 100644 clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_generator_suggestion.ex create mode 100644 clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_get_generator_suggestion_response.ex create mode 100644 clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_get_knowledge_assist_response.ex create mode 100644 clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_get_knowledge_assist_response_knowledge_answer.ex create mode 100644 clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_get_knowledge_assist_response_knowledge_answer_faq_source.ex create mode 100644 clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_get_knowledge_assist_response_knowledge_answer_generative_source.ex create mode 100644 clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_get_knowledge_assist_response_knowledge_answer_generative_source_snippet.ex create mode 100644 clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_get_knowledge_assist_response_knowledge_answer_intent_matching_source.ex create mode 100644 clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_get_knowledge_assist_response_suggested_query.ex create mode 100644 clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_search_knowledge_answer.ex create mode 100644 clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_search_knowledge_answer_answer_source.ex create mode 100644 clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_summary_suggestion.ex create mode 100644 clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_summary_suggestion_summary_section.ex diff --git a/clients/contact_center_insights/README.md b/clients/contact_center_insights/README.md index 4b77f43646..af7e36f1f0 100644 --- a/clients/contact_center_insights/README.md +++ b/clients/contact_center_insights/README.md @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding ```elixir def deps do - [{:google_api_contact_center_insights, "~> 0.5"}] + [{:google_api_contact_center_insights, "~> 0.6"}] end ``` diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/metadata.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/metadata.ex index a3e45552bc..e04a9841b4 100644 --- a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/metadata.ex +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.ContactCenterInsights.V1 do API client metadata for GoogleApi.ContactCenterInsights.V1. """ - @discovery_revision "20240304" + @discovery_revision "20240416" def discovery_revision(), do: @discovery_revision end diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_agent_coaching_instruction.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_agent_coaching_instruction.ex new file mode 100644 index 0000000000..ef8642f54c --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_agent_coaching_instruction.ex @@ -0,0 +1,68 @@ +# 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.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AgentCoachingInstruction do + @moduledoc """ + Agent Coaching instructions that customer can configure. + + ## Attributes + + * `agentAction` (*type:* `String.t`, *default:* `nil`) - Optional. The action that human agent should take. For example, "apologize for the slow shipping". If the users only want to use agent coaching for intent detection, agent_action can be empty + * `condition` (*type:* `String.t`, *default:* `nil`) - Optional. The condition of the instruction. For example, "the customer wants to cancel an order". If the users want the instruction to be triggered unconditionally, the condition can be empty. + * `description` (*type:* `String.t`, *default:* `nil`) - Optional. The detailed description of this instruction. + * `displayName` (*type:* `String.t`, *default:* `nil`) - Optional. Display name for the instruction. + * `metadata` (*type:* `map()`, *default:* `nil`) - Optional. Additional information attached to this instruction. + * `systemAction` (*type:* `String.t`, *default:* `nil`) - Optional. The action that system should take. For example, "call GetOrderTime with order_number={order number provided by the customer}". If the users don't have plugins or don't want to trigger plugins, the system_action can be empty + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :agentAction => String.t() | nil, + :condition => String.t() | nil, + :description => String.t() | nil, + :displayName => String.t() | nil, + :metadata => map() | nil, + :systemAction => String.t() | nil + } + + field(:agentAction) + field(:condition) + field(:description) + field(:displayName) + field(:metadata, type: :map) + field(:systemAction) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AgentCoachingInstruction do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AgentCoachingInstruction.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AgentCoachingInstruction do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_agent_coaching_suggestion.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_agent_coaching_suggestion.ex new file mode 100644 index 0000000000..39569b298c --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_agent_coaching_suggestion.ex @@ -0,0 +1,103 @@ +# 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.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AgentCoachingSuggestion do + @moduledoc """ + Suggestion for coaching agents. + + ## Attributes + + * `agentActionSuggestions` (*type:* `list(GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentActionSuggestion.t)`, *default:* `nil`) - Optional. Suggested actions for the agent to take. + * `applicableInstructions` (*type:* `list(GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AgentCoachingInstruction.t)`, *default:* `nil`) - Optional. Instructions applicable based on the current context. + * `sampleResponses` (*type:* `list(GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionSampleResponse.t)`, *default:* `nil`) - Optional. Sample response for the Agent. + * `suggestionEval` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentCoachingSuggestionEval.t`, *default:* `nil`) - Self evaluation of the suggestion. + * `suggestionReasoning` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentCoachingSuggestionReasoning.t`, *default:* `nil`) - Reasoning for the suggestion. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :agentActionSuggestions => + list( + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentActionSuggestion.t() + ) + | nil, + :applicableInstructions => + list( + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AgentCoachingInstruction.t() + ) + | nil, + :sampleResponses => + list( + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionSampleResponse.t() + ) + | nil, + :suggestionEval => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentCoachingSuggestionEval.t() + | nil, + :suggestionReasoning => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentCoachingSuggestionReasoning.t() + | nil + } + + field(:agentActionSuggestions, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentActionSuggestion, + type: :list + ) + + field(:applicableInstructions, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AgentCoachingInstruction, + type: :list + ) + + field(:sampleResponses, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionSampleResponse, + type: :list + ) + + field(:suggestionEval, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentCoachingSuggestionEval + ) + + field(:suggestionReasoning, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentCoachingSuggestionReasoning + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AgentCoachingSuggestion do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AgentCoachingSuggestion.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AgentCoachingSuggestion do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_agent_coaching_suggestion_agent_action_suggestion.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_agent_coaching_suggestion_agent_action_suggestion.ex new file mode 100644 index 0000000000..52f08cbe9a --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_agent_coaching_suggestion_agent_action_suggestion.ex @@ -0,0 +1,53 @@ +# 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.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentActionSuggestion do + @moduledoc """ + Actions suggested for the agent. This is based on applicable instructions. + + ## Attributes + + * `agentAction` (*type:* `String.t`, *default:* `nil`) - Optional. The suggested action for the agent. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :agentAction => String.t() | nil + } + + field(:agentAction) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentActionSuggestion do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentActionSuggestion.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentActionSuggestion do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_agent_coaching_suggestion_agent_coaching_suggestion_eval.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_agent_coaching_suggestion_agent_coaching_suggestion_eval.ex new file mode 100644 index 0000000000..67b09ca4e4 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_agent_coaching_suggestion_agent_coaching_suggestion_eval.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.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentCoachingSuggestionEval do + @moduledoc """ + Self evaluations of the suggestion. + + ## Attributes + + * `actionActionSuggestionEval` (*type:* `String.t`, *default:* `nil`) - Optional. Eval for Agent action suggestion. + * `sampleResponseEval` (*type:* `String.t`, *default:* `nil`) - Optional. Eval for sample response. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :actionActionSuggestionEval => String.t() | nil, + :sampleResponseEval => String.t() | nil + } + + field(:actionActionSuggestionEval) + field(:sampleResponseEval) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentCoachingSuggestionEval do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentCoachingSuggestionEval.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentCoachingSuggestionEval do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_agent_coaching_suggestion_agent_coaching_suggestion_reasoning.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_agent_coaching_suggestion_agent_coaching_suggestion_reasoning.ex new file mode 100644 index 0000000000..1470d0e33e --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_agent_coaching_suggestion_agent_coaching_suggestion_reasoning.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.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentCoachingSuggestionReasoning do + @moduledoc """ + Reasoning for the suggestion. + + ## Attributes + + * `agentActionTaken` (*type:* `String.t`, *default:* `nil`) - Optional. The actions that the agent has taken already. + * `issueSummary` (*type:* `String.t`, *default:* `nil`) - Optional. Summary of the issue. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :agentActionTaken => String.t() | nil, + :issueSummary => String.t() | nil + } + + field(:agentActionTaken) + field(:issueSummary) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentCoachingSuggestionReasoning do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentCoachingSuggestionReasoning.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentCoachingSuggestionReasoning do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_agent_coaching_suggestion_sample_response.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_agent_coaching_suggestion_sample_response.ex new file mode 100644 index 0000000000..18cc48696d --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_agent_coaching_suggestion_sample_response.ex @@ -0,0 +1,53 @@ +# 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.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionSampleResponse do + @moduledoc """ + Sample response that the agent can use. This could be based on applicable instructions and ingested data from other systems. + + ## Attributes + + * `responseText` (*type:* `String.t`, *default:* `nil`) - Optional. Sample response for Agent in text. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :responseText => String.t() | nil + } + + field(:responseText) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionSampleResponse do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionSampleResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionSampleResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_free_form_suggestion.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_free_form_suggestion.ex new file mode 100644 index 0000000000..91f37cdd95 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_free_form_suggestion.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.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1FreeFormSuggestion do + @moduledoc """ + Suggestion generated using free form generator. + + ## Attributes + + * `labels` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Labels for the generator. + * `response` (*type:* `String.t`, *default:* `nil`) - Required. Free form suggestion. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :labels => list(String.t()) | nil, + :response => String.t() | nil + } + + field(:labels, type: :list) + field(:response) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1FreeFormSuggestion do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1FreeFormSuggestion.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1FreeFormSuggestion do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_generator_suggestion.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_generator_suggestion.ex new file mode 100644 index 0000000000..e3250c2983 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_generator_suggestion.ex @@ -0,0 +1,76 @@ +# 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.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GeneratorSuggestion do + @moduledoc """ + Suggestion generated using a Generator. + + ## Attributes + + * `agentCoachingSuggestion` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AgentCoachingSuggestion.t`, *default:* `nil`) - Optional. Suggestion to coach the agent. + * `freeFormSuggestion` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1FreeFormSuggestion.t`, *default:* `nil`) - Optional. Free form suggestion. + * `summarySuggestion` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1SummarySuggestion.t`, *default:* `nil`) - Optional. Suggested summary. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :agentCoachingSuggestion => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AgentCoachingSuggestion.t() + | nil, + :freeFormSuggestion => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1FreeFormSuggestion.t() + | nil, + :summarySuggestion => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1SummarySuggestion.t() + | nil + } + + field(:agentCoachingSuggestion, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AgentCoachingSuggestion + ) + + field(:freeFormSuggestion, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1FreeFormSuggestion + ) + + field(:summarySuggestion, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1SummarySuggestion + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GeneratorSuggestion do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GeneratorSuggestion.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GeneratorSuggestion do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_get_generator_suggestion_response.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_get_generator_suggestion_response.ex new file mode 100644 index 0000000000..e59f6f8d24 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_get_generator_suggestion_response.ex @@ -0,0 +1,58 @@ +# 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.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetGeneratorSuggestionResponse do + @moduledoc """ + Represents response from generators. + + ## Attributes + + * `generatorSuggestion` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GeneratorSuggestion.t`, *default:* `nil`) - The suggestion generated from the Generator. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :generatorSuggestion => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GeneratorSuggestion.t() + | nil + } + + field(:generatorSuggestion, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GeneratorSuggestion + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetGeneratorSuggestionResponse do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetGeneratorSuggestionResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetGeneratorSuggestionResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_get_knowledge_assist_response.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_get_knowledge_assist_response.ex new file mode 100644 index 0000000000..e9bf6fa2b4 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_get_knowledge_assist_response.ex @@ -0,0 +1,67 @@ +# 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.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponse do + @moduledoc """ + Response for Knowledge Assist. Contains suggested query and optionally includes an answer for the query. + + ## Attributes + + * `suggestedQuery` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseSuggestedQuery.t`, *default:* `nil`) - The query suggested based on the context. Suggestion is made only if it is different from the previous suggestion. + * `suggestedQueryAnswer` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswer.t`, *default:* `nil`) - The answer generated for the suggested query. Whether or not an answer is generated depends on how confident we are about the generated query. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :suggestedQuery => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseSuggestedQuery.t() + | nil, + :suggestedQueryAnswer => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswer.t() + | nil + } + + field(:suggestedQuery, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseSuggestedQuery + ) + + field(:suggestedQueryAnswer, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswer + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponse do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_get_knowledge_assist_response_knowledge_answer.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_get_knowledge_assist_response_knowledge_answer.ex new file mode 100644 index 0000000000..776146f89b --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_get_knowledge_assist_response_knowledge_answer.ex @@ -0,0 +1,84 @@ +# 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.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswer do + @moduledoc """ + Represents an answer from Knowledge. Cuurently supports FAQ and Generative answers. + + ## Attributes + + * `answerText` (*type:* `String.t`, *default:* `nil`) - The piece of text from the `source` that answers this suggested query. + * `faqSource` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerFaqSource.t`, *default:* `nil`) - Populated if the prediction came from FAQ. + * `generativeSource` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSource.t`, *default:* `nil`) - Populated if the prediction was Generative. + * `intentMatchingSource` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerIntentMatchingSource.t`, *default:* `nil`) - Populated if the prediction was from intent matching. + * `matchConfidence` (*type:* `number()`, *default:* `nil`) - The system's confidence score that this answer is a good match for this conversational query. The range is from 0.0 (completely uncertain) to 1.0 (completely certain). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :answerText => String.t() | nil, + :faqSource => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerFaqSource.t() + | nil, + :generativeSource => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSource.t() + | nil, + :intentMatchingSource => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerIntentMatchingSource.t() + | nil, + :matchConfidence => number() | nil + } + + field(:answerText) + + field(:faqSource, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerFaqSource + ) + + field(:generativeSource, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSource + ) + + field(:intentMatchingSource, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerIntentMatchingSource + ) + + field(:matchConfidence) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswer do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswer.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswer do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_get_knowledge_assist_response_knowledge_answer_faq_source.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_get_knowledge_assist_response_knowledge_answer_faq_source.ex new file mode 100644 index 0000000000..301e519a18 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_get_knowledge_assist_response_knowledge_answer_faq_source.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.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerFaqSource do + @moduledoc """ + Details about source of FAQ answer. + + ## Attributes + + * `document` (*type:* `String.t`, *default:* `nil`) - Indicates which Knowledge Document this answer was extracted from. Format: `projects//knowledgeBases//documents/`. + * `question` (*type:* `String.t`, *default:* `nil`) - The corresponding FAQ question. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :document => String.t() | nil, + :question => String.t() | nil + } + + field(:document) + field(:question) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerFaqSource do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerFaqSource.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerFaqSource do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_get_knowledge_assist_response_knowledge_answer_generative_source.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_get_knowledge_assist_response_knowledge_answer_generative_source.ex new file mode 100644 index 0000000000..6ed5e8ae57 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_get_knowledge_assist_response_knowledge_answer_generative_source.ex @@ -0,0 +1,61 @@ +# 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.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSource do + @moduledoc """ + Details about source of Generative answer. + + ## Attributes + + * `snippets` (*type:* `list(GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSourceSnippet.t)`, *default:* `nil`) - All snippets used for this Generative Prediction, with their source URI and data. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :snippets => + list( + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSourceSnippet.t() + ) + | nil + } + + field(:snippets, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSourceSnippet, + type: :list + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSource do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSource.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSource do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_get_knowledge_assist_response_knowledge_answer_generative_source_snippet.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_get_knowledge_assist_response_knowledge_answer_generative_source_snippet.ex new file mode 100644 index 0000000000..c201026749 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_get_knowledge_assist_response_knowledge_answer_generative_source_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.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSourceSnippet do + @moduledoc """ + Snippet Source for a Generative Prediction. + + ## Attributes + + * `document` (*type:* `String.t`, *default:* `nil`) - Indicates which Knowledge Document this snippet was extracted from. Format: `projects//knowledgeBases//documents/`. + * `text` (*type:* `String.t`, *default:* `nil`) - text taken from that URI. + * `title` (*type:* `String.t`, *default:* `nil`) - Title of the document. + * `uri` (*type:* `String.t`, *default:* `nil`) - URI the data is sourced from. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :document => String.t() | nil, + :text => String.t() | nil, + :title => String.t() | nil, + :uri => String.t() | nil + } + + field(:document) + field(:text) + field(:title) + field(:uri) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSourceSnippet do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSourceSnippet.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSourceSnippet do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_get_knowledge_assist_response_knowledge_answer_intent_matching_source.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_get_knowledge_assist_response_knowledge_answer_intent_matching_source.ex new file mode 100644 index 0000000000..b9a0e594f4 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_get_knowledge_assist_response_knowledge_answer_intent_matching_source.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.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerIntentMatchingSource do + @moduledoc """ + Details about source of Intent Matching answer. + + ## Attributes + + * `title` (*type:* `String.t`, *default:* `nil`) - Title of the document. + * `uri` (*type:* `String.t`, *default:* `nil`) - URI the data is sourced from. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :title => String.t() | nil, + :uri => String.t() | nil + } + + field(:title) + field(:uri) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerIntentMatchingSource do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerIntentMatchingSource.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerIntentMatchingSource do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_get_knowledge_assist_response_suggested_query.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_get_knowledge_assist_response_suggested_query.ex new file mode 100644 index 0000000000..36c4679cec --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_get_knowledge_assist_response_suggested_query.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.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseSuggestedQuery do + @moduledoc """ + Represents a suggested query. + + ## Attributes + + * `queryText` (*type:* `String.t`, *default:* `nil`) - Suggested query text. + * `score` (*type:* `number()`, *default:* `nil`) - Suggested query score. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :queryText => String.t() | nil, + :score => number() | nil + } + + field(:queryText) + field(:score) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseSuggestedQuery do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseSuggestedQuery.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseSuggestedQuery do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_runtime_annotation.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_runtime_annotation.ex index a6c13deb3c..d433e297ba 100644 --- a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_runtime_annotation.ex +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_runtime_annotation.ex @@ -29,6 +29,9 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig * `dialogflowInteraction` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1DialogflowInteractionData.t`, *default:* `nil`) - Dialogflow interaction data. * `endBoundary` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnnotationBoundary.t`, *default:* `nil`) - The boundary in the conversation where the annotation ends, inclusive. * `faqAnswer` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1FaqAnswerData.t`, *default:* `nil`) - Agent Assist FAQ answer data. + * `generatorSuggestionResult` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetGeneratorSuggestionResponse.t`, *default:* `nil`) - The generator suggestion result. + * `knowledgeAssistResult` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponse.t`, *default:* `nil`) - The Knowledge Assist result. + * `knowledgeSearchResult` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswer.t`, *default:* `nil`) - The Knowledge Search result. * `smartComposeSuggestion` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1SmartComposeSuggestionData.t`, *default:* `nil`) - Agent Assist Smart Compose suggestion data. * `smartReply` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1SmartReplyData.t`, *default:* `nil`) - Agent Assist Smart Reply data. * `startBoundary` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnnotationBoundary.t`, *default:* `nil`) - The boundary in the conversation where the annotation starts, inclusive. @@ -57,6 +60,15 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig :faqAnswer => GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1FaqAnswerData.t() | nil, + :generatorSuggestionResult => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetGeneratorSuggestionResponse.t() + | nil, + :knowledgeAssistResult => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponse.t() + | nil, + :knowledgeSearchResult => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswer.t() + | nil, :smartComposeSuggestion => GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1SmartComposeSuggestionData.t() | nil, @@ -100,6 +112,21 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig as: GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1FaqAnswerData ) + field(:generatorSuggestionResult, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetGeneratorSuggestionResponse + ) + + field(:knowledgeAssistResult, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponse + ) + + field(:knowledgeSearchResult, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswer + ) + field(:smartComposeSuggestion, as: GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1SmartComposeSuggestionData diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_search_knowledge_answer.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_search_knowledge_answer.ex new file mode 100644 index 0000000000..ef38bf36c1 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_search_knowledge_answer.ex @@ -0,0 +1,75 @@ +# 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.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswer do + @moduledoc """ + Represents a SearchKnowledge answer. + + ## Attributes + + * `answer` (*type:* `String.t`, *default:* `nil`) - The piece of text from the knowledge base documents that answers the search query + * `answerRecord` (*type:* `String.t`, *default:* `nil`) - The name of the answer record. Format: `projects//locations//answer Records/` + * `answerSources` (*type:* `list(GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswerAnswerSource.t)`, *default:* `nil`) - All sources used to generate the answer. + * `answerType` (*type:* `String.t`, *default:* `nil`) - The type of the answer. + * `confidenceScore` (*type:* `number()`, *default:* `nil`) - The confidence score in [0.0, 1.0] range. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :answer => String.t() | nil, + :answerRecord => String.t() | nil, + :answerSources => + list( + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswerAnswerSource.t() + ) + | nil, + :answerType => String.t() | nil, + :confidenceScore => number() | nil + } + + field(:answer) + field(:answerRecord) + + field(:answerSources, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswerAnswerSource, + type: :list + ) + + field(:answerType) + field(:confidenceScore) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswer do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswer.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswer do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_search_knowledge_answer_answer_source.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_search_knowledge_answer_answer_source.ex new file mode 100644 index 0000000000..b63a27ddbf --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_search_knowledge_answer_answer_source.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.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswerAnswerSource do + @moduledoc """ + The sources of the answers. + + ## Attributes + + * `document` (*type:* `String.t`, *default:* `nil`) - The document from which the snippet was extracted. Format: `projects//knowledgeBases//documents/` + * `snippet` (*type:* `String.t`, *default:* `nil`) - The relevant snippet of the article. + * `title` (*type:* `String.t`, *default:* `nil`) - The title of the article. + * `uri` (*type:* `String.t`, *default:* `nil`) - The URI of the article. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :document => String.t() | nil, + :snippet => String.t() | nil, + :title => String.t() | nil, + :uri => String.t() | nil + } + + field(:document) + field(:snippet) + field(:title) + field(:uri) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswerAnswerSource do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswerAnswerSource.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswerAnswerSource do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_summary_suggestion.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_summary_suggestion.ex new file mode 100644 index 0000000000..d8053271ea --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_summary_suggestion.ex @@ -0,0 +1,61 @@ +# 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.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1SummarySuggestion do + @moduledoc """ + Suggested summary of the conversation. + + ## Attributes + + * `summarySections` (*type:* `list(GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1SummarySuggestionSummarySection.t)`, *default:* `nil`) - Required. All the parts of generated summary. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :summarySections => + list( + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1SummarySuggestionSummarySection.t() + ) + | nil + } + + field(:summarySections, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1SummarySuggestionSummarySection, + type: :list + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1SummarySuggestion do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1SummarySuggestion.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1SummarySuggestion do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_summary_suggestion_summary_section.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_summary_suggestion_summary_section.ex new file mode 100644 index 0000000000..32b5050c67 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_summary_suggestion_summary_section.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.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1SummarySuggestionSummarySection do + @moduledoc """ + A component of the generated summary. + + ## Attributes + + * `section` (*type:* `String.t`, *default:* `nil`) - Required. Name of the section. + * `summary` (*type:* `String.t`, *default:* `nil`) - Required. Summary text for the section. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :section => String.t() | nil, + :summary => String.t() | nil + } + + field(:section) + field(:summary) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1SummarySuggestionSummarySection do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1SummarySuggestionSummarySection.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1SummarySuggestionSummarySection do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_agent_coaching_instruction.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_agent_coaching_instruction.ex new file mode 100644 index 0000000000..8ed63fc48d --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_agent_coaching_instruction.ex @@ -0,0 +1,68 @@ +# 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.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AgentCoachingInstruction do + @moduledoc """ + Agent Coaching instructions that customer can configure. + + ## Attributes + + * `agentAction` (*type:* `String.t`, *default:* `nil`) - Optional. The action that human agent should take. For example, "apologize for the slow shipping". If the users only want to use agent coaching for intent detection, agent_action can be empty + * `condition` (*type:* `String.t`, *default:* `nil`) - Optional. The condition of the instruction. For example, "the customer wants to cancel an order". If the users want the instruction to be triggered unconditionally, the condition can be empty. + * `description` (*type:* `String.t`, *default:* `nil`) - Optional. The detailed description of this instruction. + * `displayName` (*type:* `String.t`, *default:* `nil`) - Optional. Display name for the instruction. + * `metadata` (*type:* `map()`, *default:* `nil`) - Optional. Additional information attached to this instruction. + * `systemAction` (*type:* `String.t`, *default:* `nil`) - Optional. The action that system should take. For example, "call GetOrderTime with order_number={order number provided by the customer}". If the users don't have plugins or don't want to trigger plugins, the system_action can be empty + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :agentAction => String.t() | nil, + :condition => String.t() | nil, + :description => String.t() | nil, + :displayName => String.t() | nil, + :metadata => map() | nil, + :systemAction => String.t() | nil + } + + field(:agentAction) + field(:condition) + field(:description) + field(:displayName) + field(:metadata, type: :map) + field(:systemAction) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AgentCoachingInstruction do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AgentCoachingInstruction.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AgentCoachingInstruction do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_agent_coaching_suggestion.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_agent_coaching_suggestion.ex new file mode 100644 index 0000000000..111804c63e --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_agent_coaching_suggestion.ex @@ -0,0 +1,103 @@ +# 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.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestion do + @moduledoc """ + Suggestion for coaching agents. + + ## Attributes + + * `agentActionSuggestions` (*type:* `list(GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentActionSuggestion.t)`, *default:* `nil`) - Optional. Suggested actions for the agent to take. + * `applicableInstructions` (*type:* `list(GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AgentCoachingInstruction.t)`, *default:* `nil`) - Optional. Instructions applicable based on the current context. + * `sampleResponses` (*type:* `list(GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionSampleResponse.t)`, *default:* `nil`) - Optional. Sample response for the Agent. + * `suggestionEval` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentCoachingSuggestionEval.t`, *default:* `nil`) - Self evaluation of the suggestion. + * `suggestionReasoning` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentCoachingSuggestionReasoning.t`, *default:* `nil`) - Reasoning for the suggestion. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :agentActionSuggestions => + list( + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentActionSuggestion.t() + ) + | nil, + :applicableInstructions => + list( + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AgentCoachingInstruction.t() + ) + | nil, + :sampleResponses => + list( + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionSampleResponse.t() + ) + | nil, + :suggestionEval => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentCoachingSuggestionEval.t() + | nil, + :suggestionReasoning => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentCoachingSuggestionReasoning.t() + | nil + } + + field(:agentActionSuggestions, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentActionSuggestion, + type: :list + ) + + field(:applicableInstructions, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AgentCoachingInstruction, + type: :list + ) + + field(:sampleResponses, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionSampleResponse, + type: :list + ) + + field(:suggestionEval, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentCoachingSuggestionEval + ) + + field(:suggestionReasoning, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentCoachingSuggestionReasoning + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestion do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestion.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestion do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_agent_coaching_suggestion_agent_action_suggestion.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_agent_coaching_suggestion_agent_action_suggestion.ex new file mode 100644 index 0000000000..d91792d28c --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_agent_coaching_suggestion_agent_action_suggestion.ex @@ -0,0 +1,53 @@ +# 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.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentActionSuggestion do + @moduledoc """ + Actions suggested for the agent. This is based on applicable instructions. + + ## Attributes + + * `agentAction` (*type:* `String.t`, *default:* `nil`) - Optional. The suggested action for the agent. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :agentAction => String.t() | nil + } + + field(:agentAction) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentActionSuggestion do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentActionSuggestion.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentActionSuggestion do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_agent_coaching_suggestion_agent_coaching_suggestion_eval.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_agent_coaching_suggestion_agent_coaching_suggestion_eval.ex new file mode 100644 index 0000000000..55c2de858a --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_agent_coaching_suggestion_agent_coaching_suggestion_eval.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.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentCoachingSuggestionEval do + @moduledoc """ + Self evaluations of the suggestion. + + ## Attributes + + * `actionActionSuggestionEval` (*type:* `String.t`, *default:* `nil`) - Optional. Eval for Agent action suggestion. + * `sampleResponseEval` (*type:* `String.t`, *default:* `nil`) - Optional. Eval for sample response. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :actionActionSuggestionEval => String.t() | nil, + :sampleResponseEval => String.t() | nil + } + + field(:actionActionSuggestionEval) + field(:sampleResponseEval) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentCoachingSuggestionEval do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentCoachingSuggestionEval.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentCoachingSuggestionEval do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_agent_coaching_suggestion_agent_coaching_suggestion_reasoning.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_agent_coaching_suggestion_agent_coaching_suggestion_reasoning.ex new file mode 100644 index 0000000000..8c946c5e59 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_agent_coaching_suggestion_agent_coaching_suggestion_reasoning.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.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentCoachingSuggestionReasoning do + @moduledoc """ + Reasoning for the suggestion. + + ## Attributes + + * `agentActionTaken` (*type:* `String.t`, *default:* `nil`) - Optional. The actions that the agent has taken already. + * `issueSummary` (*type:* `String.t`, *default:* `nil`) - Optional. Summary of the issue. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :agentActionTaken => String.t() | nil, + :issueSummary => String.t() | nil + } + + field(:agentActionTaken) + field(:issueSummary) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentCoachingSuggestionReasoning do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentCoachingSuggestionReasoning.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentCoachingSuggestionReasoning do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_agent_coaching_suggestion_sample_response.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_agent_coaching_suggestion_sample_response.ex new file mode 100644 index 0000000000..1260ee7bd8 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_agent_coaching_suggestion_sample_response.ex @@ -0,0 +1,53 @@ +# 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.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionSampleResponse do + @moduledoc """ + Sample response that the agent can use. This could be based on applicable instructions and ingested data from other systems. + + ## Attributes + + * `responseText` (*type:* `String.t`, *default:* `nil`) - Optional. Sample response for Agent in text. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :responseText => String.t() | nil + } + + field(:responseText) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionSampleResponse do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionSampleResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionSampleResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_free_form_suggestion.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_free_form_suggestion.ex new file mode 100644 index 0000000000..4ea58f0de1 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_free_form_suggestion.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.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1FreeFormSuggestion do + @moduledoc """ + Suggestion generated using free form generator. + + ## Attributes + + * `labels` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Labels for the generator. + * `response` (*type:* `String.t`, *default:* `nil`) - Required. Free form suggestion. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :labels => list(String.t()) | nil, + :response => String.t() | nil + } + + field(:labels, type: :list) + field(:response) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1FreeFormSuggestion do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1FreeFormSuggestion.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1FreeFormSuggestion do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_generator_suggestion.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_generator_suggestion.ex new file mode 100644 index 0000000000..e34ff8032c --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_generator_suggestion.ex @@ -0,0 +1,76 @@ +# 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.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GeneratorSuggestion do + @moduledoc """ + Suggestion generated using a Generator. + + ## Attributes + + * `agentCoachingSuggestion` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestion.t`, *default:* `nil`) - Optional. Suggestion to coach the agent. + * `freeFormSuggestion` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1FreeFormSuggestion.t`, *default:* `nil`) - Optional. Free form suggestion. + * `summarySuggestion` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SummarySuggestion.t`, *default:* `nil`) - Optional. Suggested summary. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :agentCoachingSuggestion => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestion.t() + | nil, + :freeFormSuggestion => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1FreeFormSuggestion.t() + | nil, + :summarySuggestion => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SummarySuggestion.t() + | nil + } + + field(:agentCoachingSuggestion, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestion + ) + + field(:freeFormSuggestion, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1FreeFormSuggestion + ) + + field(:summarySuggestion, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SummarySuggestion + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GeneratorSuggestion do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GeneratorSuggestion.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GeneratorSuggestion do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_get_generator_suggestion_response.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_get_generator_suggestion_response.ex new file mode 100644 index 0000000000..35b12c4d78 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_get_generator_suggestion_response.ex @@ -0,0 +1,58 @@ +# 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.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetGeneratorSuggestionResponse do + @moduledoc """ + Represents response from generators. + + ## Attributes + + * `generatorSuggestion` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GeneratorSuggestion.t`, *default:* `nil`) - The suggestion generated from the Generator. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :generatorSuggestion => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GeneratorSuggestion.t() + | nil + } + + field(:generatorSuggestion, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GeneratorSuggestion + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetGeneratorSuggestionResponse do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetGeneratorSuggestionResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetGeneratorSuggestionResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_get_knowledge_assist_response.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_get_knowledge_assist_response.ex new file mode 100644 index 0000000000..4e16a64a11 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_get_knowledge_assist_response.ex @@ -0,0 +1,67 @@ +# 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.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponse do + @moduledoc """ + Response for Knowledge Assist. Contains suggested query and optionally includes an answer for the query. + + ## Attributes + + * `suggestedQuery` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseSuggestedQuery.t`, *default:* `nil`) - The query suggested based on the context. Suggestion is made only if it is different from the previous suggestion. + * `suggestedQueryAnswer` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswer.t`, *default:* `nil`) - The answer generated for the suggested query. Whether or not an answer is generated depends on how confident we are about the generated query. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :suggestedQuery => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseSuggestedQuery.t() + | nil, + :suggestedQueryAnswer => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswer.t() + | nil + } + + field(:suggestedQuery, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseSuggestedQuery + ) + + field(:suggestedQueryAnswer, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswer + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponse do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_get_knowledge_assist_response_knowledge_answer.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_get_knowledge_assist_response_knowledge_answer.ex new file mode 100644 index 0000000000..f563afd69e --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_get_knowledge_assist_response_knowledge_answer.ex @@ -0,0 +1,84 @@ +# 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.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswer do + @moduledoc """ + Represents an answer from Knowledge. Cuurently supports FAQ and Generative answers. + + ## Attributes + + * `answerText` (*type:* `String.t`, *default:* `nil`) - The piece of text from the `source` that answers this suggested query. + * `faqSource` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerFaqSource.t`, *default:* `nil`) - Populated if the prediction came from FAQ. + * `generativeSource` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSource.t`, *default:* `nil`) - Populated if the prediction was Generative. + * `intentMatchingSource` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerIntentMatchingSource.t`, *default:* `nil`) - Populated if the prediction was from intent matching. + * `matchConfidence` (*type:* `number()`, *default:* `nil`) - The system's confidence score that this answer is a good match for this conversational query. The range is from 0.0 (completely uncertain) to 1.0 (completely certain). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :answerText => String.t() | nil, + :faqSource => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerFaqSource.t() + | nil, + :generativeSource => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSource.t() + | nil, + :intentMatchingSource => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerIntentMatchingSource.t() + | nil, + :matchConfidence => number() | nil + } + + field(:answerText) + + field(:faqSource, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerFaqSource + ) + + field(:generativeSource, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSource + ) + + field(:intentMatchingSource, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerIntentMatchingSource + ) + + field(:matchConfidence) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswer do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswer.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswer do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_get_knowledge_assist_response_knowledge_answer_faq_source.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_get_knowledge_assist_response_knowledge_answer_faq_source.ex new file mode 100644 index 0000000000..f6761b4820 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_get_knowledge_assist_response_knowledge_answer_faq_source.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.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerFaqSource do + @moduledoc """ + Details about source of FAQ answer. + + ## Attributes + + * `document` (*type:* `String.t`, *default:* `nil`) - Indicates which Knowledge Document this answer was extracted from. Format: `projects//knowledgeBases//documents/`. + * `question` (*type:* `String.t`, *default:* `nil`) - The corresponding FAQ question. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :document => String.t() | nil, + :question => String.t() | nil + } + + field(:document) + field(:question) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerFaqSource do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerFaqSource.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerFaqSource do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_get_knowledge_assist_response_knowledge_answer_generative_source.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_get_knowledge_assist_response_knowledge_answer_generative_source.ex new file mode 100644 index 0000000000..72b14f91e4 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_get_knowledge_assist_response_knowledge_answer_generative_source.ex @@ -0,0 +1,61 @@ +# 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.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSource do + @moduledoc """ + Details about source of Generative answer. + + ## Attributes + + * `snippets` (*type:* `list(GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSourceSnippet.t)`, *default:* `nil`) - All snippets used for this Generative Prediction, with their source URI and data. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :snippets => + list( + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSourceSnippet.t() + ) + | nil + } + + field(:snippets, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSourceSnippet, + type: :list + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSource do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSource.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSource do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_get_knowledge_assist_response_knowledge_answer_generative_source_snippet.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_get_knowledge_assist_response_knowledge_answer_generative_source_snippet.ex new file mode 100644 index 0000000000..28a1649334 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_get_knowledge_assist_response_knowledge_answer_generative_source_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.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSourceSnippet do + @moduledoc """ + Snippet Source for a Generative Prediction. + + ## Attributes + + * `document` (*type:* `String.t`, *default:* `nil`) - Indicates which Knowledge Document this snippet was extracted from. Format: `projects//knowledgeBases//documents/`. + * `text` (*type:* `String.t`, *default:* `nil`) - text taken from that URI. + * `title` (*type:* `String.t`, *default:* `nil`) - Title of the document. + * `uri` (*type:* `String.t`, *default:* `nil`) - URI the data is sourced from. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :document => String.t() | nil, + :text => String.t() | nil, + :title => String.t() | nil, + :uri => String.t() | nil + } + + field(:document) + field(:text) + field(:title) + field(:uri) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSourceSnippet do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSourceSnippet.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSourceSnippet do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_get_knowledge_assist_response_knowledge_answer_intent_matching_source.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_get_knowledge_assist_response_knowledge_answer_intent_matching_source.ex new file mode 100644 index 0000000000..0ec3d5dde5 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_get_knowledge_assist_response_knowledge_answer_intent_matching_source.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.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerIntentMatchingSource do + @moduledoc """ + Details about source of Intent Matching answer. + + ## Attributes + + * `title` (*type:* `String.t`, *default:* `nil`) - Title of the document. + * `uri` (*type:* `String.t`, *default:* `nil`) - URI the data is sourced from. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :title => String.t() | nil, + :uri => String.t() | nil + } + + field(:title) + field(:uri) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerIntentMatchingSource do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerIntentMatchingSource.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerIntentMatchingSource do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_get_knowledge_assist_response_suggested_query.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_get_knowledge_assist_response_suggested_query.ex new file mode 100644 index 0000000000..82cc9ef568 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_get_knowledge_assist_response_suggested_query.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.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseSuggestedQuery do + @moduledoc """ + Represents a suggested query. + + ## Attributes + + * `queryText` (*type:* `String.t`, *default:* `nil`) - Suggested query text. + * `score` (*type:* `number()`, *default:* `nil`) - Suggested query score. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :queryText => String.t() | nil, + :score => number() | nil + } + + field(:queryText) + field(:score) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseSuggestedQuery do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseSuggestedQuery.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseSuggestedQuery do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_runtime_annotation.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_runtime_annotation.ex index 9fd25fbcf1..5408b8be89 100644 --- a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_runtime_annotation.ex +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_runtime_annotation.ex @@ -29,6 +29,9 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig * `dialogflowInteraction` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1DialogflowInteractionData.t`, *default:* `nil`) - Dialogflow interaction data. * `endBoundary` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary.t`, *default:* `nil`) - The boundary in the conversation where the annotation ends, inclusive. * `faqAnswer` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1FaqAnswerData.t`, *default:* `nil`) - Agent Assist FAQ answer data. + * `generatorSuggestionResult` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetGeneratorSuggestionResponse.t`, *default:* `nil`) - The generator suggestion result. + * `knowledgeAssistResult` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponse.t`, *default:* `nil`) - The Knowledge Assist result. + * `knowledgeSearchResult` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswer.t`, *default:* `nil`) - The Knowledge Search result. * `smartComposeSuggestion` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SmartComposeSuggestionData.t`, *default:* `nil`) - Agent Assist Smart Compose suggestion data. * `smartReply` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SmartReplyData.t`, *default:* `nil`) - Agent Assist Smart Reply data. * `startBoundary` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary.t`, *default:* `nil`) - The boundary in the conversation where the annotation starts, inclusive. @@ -57,6 +60,15 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig :faqAnswer => GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1FaqAnswerData.t() | nil, + :generatorSuggestionResult => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetGeneratorSuggestionResponse.t() + | nil, + :knowledgeAssistResult => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponse.t() + | nil, + :knowledgeSearchResult => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswer.t() + | nil, :smartComposeSuggestion => GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SmartComposeSuggestionData.t() | nil, @@ -102,6 +114,21 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1FaqAnswerData ) + field(:generatorSuggestionResult, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetGeneratorSuggestionResponse + ) + + field(:knowledgeAssistResult, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponse + ) + + field(:knowledgeSearchResult, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswer + ) + field(:smartComposeSuggestion, as: GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SmartComposeSuggestionData diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_search_knowledge_answer.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_search_knowledge_answer.ex new file mode 100644 index 0000000000..a92471ef51 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_search_knowledge_answer.ex @@ -0,0 +1,75 @@ +# 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.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswer do + @moduledoc """ + Represents a SearchKnowledge answer. + + ## Attributes + + * `answer` (*type:* `String.t`, *default:* `nil`) - The piece of text from the knowledge base documents that answers the search query + * `answerRecord` (*type:* `String.t`, *default:* `nil`) - The name of the answer record. Format: `projects//locations//answer Records/` + * `answerSources` (*type:* `list(GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswerAnswerSource.t)`, *default:* `nil`) - All sources used to generate the answer. + * `answerType` (*type:* `String.t`, *default:* `nil`) - The type of the answer. + * `confidenceScore` (*type:* `number()`, *default:* `nil`) - The confidence score in [0.0, 1.0] range. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :answer => String.t() | nil, + :answerRecord => String.t() | nil, + :answerSources => + list( + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswerAnswerSource.t() + ) + | nil, + :answerType => String.t() | nil, + :confidenceScore => number() | nil + } + + field(:answer) + field(:answerRecord) + + field(:answerSources, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswerAnswerSource, + type: :list + ) + + field(:answerType) + field(:confidenceScore) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswer do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswer.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswer do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_search_knowledge_answer_answer_source.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_search_knowledge_answer_answer_source.ex new file mode 100644 index 0000000000..6eca63df32 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_search_knowledge_answer_answer_source.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.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswerAnswerSource do + @moduledoc """ + The sources of the answers. + + ## Attributes + + * `document` (*type:* `String.t`, *default:* `nil`) - The document from which the snippet was extracted. Format: `projects//knowledgeBases//documents/` + * `snippet` (*type:* `String.t`, *default:* `nil`) - The relevant snippet of the article. + * `title` (*type:* `String.t`, *default:* `nil`) - The title of the article. + * `uri` (*type:* `String.t`, *default:* `nil`) - The URI of the article. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :document => String.t() | nil, + :snippet => String.t() | nil, + :title => String.t() | nil, + :uri => String.t() | nil + } + + field(:document) + field(:snippet) + field(:title) + field(:uri) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswerAnswerSource do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswerAnswerSource.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswerAnswerSource do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_summary_suggestion.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_summary_suggestion.ex new file mode 100644 index 0000000000..e02d1062de --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_summary_suggestion.ex @@ -0,0 +1,61 @@ +# 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.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SummarySuggestion do + @moduledoc """ + Suggested summary of the conversation. + + ## Attributes + + * `summarySections` (*type:* `list(GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SummarySuggestionSummarySection.t)`, *default:* `nil`) - Required. All the parts of generated summary. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :summarySections => + list( + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SummarySuggestionSummarySection.t() + ) + | nil + } + + field(:summarySections, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SummarySuggestionSummarySection, + type: :list + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SummarySuggestion do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SummarySuggestion.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SummarySuggestion do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_summary_suggestion_summary_section.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_summary_suggestion_summary_section.ex new file mode 100644 index 0000000000..a375e99a29 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_summary_suggestion_summary_section.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.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SummarySuggestionSummarySection do + @moduledoc """ + A component of the generated summary. + + ## Attributes + + * `section` (*type:* `String.t`, *default:* `nil`) - Required. Name of the section. + * `summary` (*type:* `String.t`, *default:* `nil`) - Required. Summary text for the section. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :section => String.t() | nil, + :summary => String.t() | nil + } + + field(:section) + field(:summary) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SummarySuggestionSummarySection do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SummarySuggestionSummarySection.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SummarySuggestionSummarySection do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/contact_center_insights/mix.exs b/clients/contact_center_insights/mix.exs index 7db615b8a2..19148859f3 100644 --- a/clients/contact_center_insights/mix.exs +++ b/clients/contact_center_insights/mix.exs @@ -18,7 +18,7 @@ defmodule GoogleApi.ContactCenterInsights.Mixfile do use Mix.Project - @version "0.5.0" + @version "0.6.0" def project() do [