diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/api/projects.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/api/projects.ex index b16d161b36..2fe6f41b40 100644 --- a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/api/projects.ex +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/api/projects.ex @@ -257,6 +257,80 @@ defmodule GoogleApi.ContactCenterInsights.V1.Api.Projects do ) end + @doc """ + Deletes multiple conversations in a single request. + + ## Parameters + + * `connection` (*type:* `GoogleApi.ContactCenterInsights.V1.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The parent resource to delete conversations from. Format: projects/{project}/locations/{location} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1BulkDeleteConversationsRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.ContactCenterInsights.V1.Model.GoogleLongrunningOperation{}}` on success + * `{:error, info}` on failure + """ + @spec contactcenterinsights_projects_locations_conversations_bulk_delete( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.ContactCenterInsights.V1.Model.GoogleLongrunningOperation.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def contactcenterinsights_projects_locations_conversations_bulk_delete( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1/{+parent}/conversations:bulkDelete", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.ContactCenterInsights.V1.Model.GoogleLongrunningOperation{}] + ) + end + @doc """ Gets conversation statistics. @@ -664,6 +738,7 @@ defmodule GoogleApi.ContactCenterInsights.V1.Api.Projects do * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). * `:filter` (*type:* `String.t`) - A filter to reduce results to a specific subset. Useful for querying conversations with specific properties. + * `:orderBy` (*type:* `String.t`) - Optional. The attribute by which to order conversations in the response. If empty, conversations will be ordered by descending creation time. Supported values are one of the following: * create_time * customer_satisfaction_rating * duration * latest_analysis * start_time * turn_count The default sort order is ascending. To specify order, append `asc` or `desc`, i.e. `create_time desc`. See https://google.aip.dev/132#ordering for more details. * `:pageSize` (*type:* `integer()`) - The maximum number of conversations to return in the response. A valid page size ranges from 0 to 1,000 inclusive. If the page size is zero or unspecified, a default page size of 100 will be chosen. Note that a call might return fewer results than the requested page size. * `:pageToken` (*type:* `String.t`) - The value returned by the last `ListConversationsResponse`. This value indicates that this is a continuation of a prior `ListConversations` call and that the system should return the next page of data. * `:view` (*type:* `String.t`) - The level of details of the conversation. Default is `BASIC`. @@ -704,6 +779,7 @@ defmodule GoogleApi.ContactCenterInsights.V1.Api.Projects do :uploadType => :query, :upload_protocol => :query, :filter => :query, + :orderBy => :query, :pageSize => :query, :pageToken => :query, :view => :query @@ -810,6 +886,80 @@ defmodule GoogleApi.ContactCenterInsights.V1.Api.Projects do ) end + @doc """ + Create a longrunning conversation upload operation. This method differs from CreateConversation by allowing audio transcription and optional DLP redaction. + + ## Parameters + + * `connection` (*type:* `GoogleApi.ContactCenterInsights.V1.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The parent resource of the conversation. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1UploadConversationRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.ContactCenterInsights.V1.Model.GoogleLongrunningOperation{}}` on success + * `{:error, info}` on failure + """ + @spec contactcenterinsights_projects_locations_conversations_upload( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.ContactCenterInsights.V1.Model.GoogleLongrunningOperation.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def contactcenterinsights_projects_locations_conversations_upload( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1/{+parent}/conversations:upload", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.ContactCenterInsights.V1.Model.GoogleLongrunningOperation{}] + ) + end + @doc """ Creates an analysis. The long running operation is done when the analysis has completed. @@ -1487,6 +1637,80 @@ defmodule GoogleApi.ContactCenterInsights.V1.Api.Projects do ) end + @doc """ + Exports an issue model to the provided destination. + + ## Parameters + + * `connection` (*type:* `GoogleApi.ContactCenterInsights.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The issue model to export + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ExportIssueModelRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.ContactCenterInsights.V1.Model.GoogleLongrunningOperation{}}` on success + * `{:error, info}` on failure + """ + @spec contactcenterinsights_projects_locations_issue_models_export( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.ContactCenterInsights.V1.Model.GoogleLongrunningOperation.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def contactcenterinsights_projects_locations_issue_models_export( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1/{+name}:export", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.ContactCenterInsights.V1.Model.GoogleLongrunningOperation{}] + ) + end + @doc """ Gets an issue model. @@ -1564,6 +1788,80 @@ defmodule GoogleApi.ContactCenterInsights.V1.Api.Projects do ) end + @doc """ + Imports an issue model from a Cloud Storage bucket. + + ## Parameters + + * `connection` (*type:* `GoogleApi.ContactCenterInsights.V1.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The parent resource of the issue model. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ImportIssueModelRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.ContactCenterInsights.V1.Model.GoogleLongrunningOperation{}}` on success + * `{:error, info}` on failure + """ + @spec contactcenterinsights_projects_locations_issue_models_import( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.ContactCenterInsights.V1.Model.GoogleLongrunningOperation.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def contactcenterinsights_projects_locations_issue_models_import( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1/{+parent}/issueModels:import", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.ContactCenterInsights.V1.Model.GoogleLongrunningOperation{}] + ) + end + @doc """ Lists issue models. @@ -2248,7 +2546,7 @@ defmodule GoogleApi.ContactCenterInsights.V1.Api.Projects do end @doc """ - Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id. + Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. ## Parameters 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 1c468ab44a..a3e45552bc 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 "20221116" + @discovery_revision "20240304" 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_analysis.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_analysis.ex index c803f50b09..07b3698690 100644 --- a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_analysis.ex +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_analysis.ex @@ -22,6 +22,7 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig ## Attributes * `analysisResult` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnalysisResult.t`, *default:* `nil`) - Output only. The result of the analysis, which is populated when the analysis finishes. + * `annotatorSelector` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnnotatorSelector.t`, *default:* `nil`) - To select the annotators to run and the phrase matchers to use (if any). If not specified, all annotators will be run. * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time at which the analysis was created, which occurs when the long-running operation completes. * `name` (*type:* `String.t`, *default:* `nil`) - Immutable. The resource name of the analysis. Format: projects/{project}/locations/{location}/conversations/{conversation}/analyses/{analysis} * `requestTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time at which the analysis was requested. @@ -33,6 +34,9 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig :analysisResult => GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnalysisResult.t() | nil, + :annotatorSelector => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnnotatorSelector.t() + | nil, :createTime => DateTime.t() | nil, :name => String.t() | nil, :requestTime => DateTime.t() | nil @@ -42,6 +46,11 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig as: GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnalysisResult ) + field(:annotatorSelector, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnnotatorSelector + ) + field(:createTime, as: DateTime) field(:name) field(:requestTime, as: DateTime) diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_annotator_selector.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_annotator_selector.ex new file mode 100644 index 0000000000..ec3a91d2eb --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_annotator_selector.ex @@ -0,0 +1,89 @@ +# 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.GoogleCloudContactcenterinsightsV1AnnotatorSelector do + @moduledoc """ + Selector of all available annotators and phrase matchers to run. + + ## Attributes + + * `issueModels` (*type:* `list(String.t)`, *default:* `nil`) - The issue model to run. If not provided, the most recently deployed topic model will be used. The provided issue model will only be used for inference if the issue model is deployed and if run_issue_model_annotator is set to true. If more than one issue model is provided, only the first provided issue model will be used for inference. + * `phraseMatchers` (*type:* `list(String.t)`, *default:* `nil`) - The list of phrase matchers to run. If not provided, all active phrase matchers will be used. If inactive phrase matchers are provided, they will not be used. Phrase matchers will be run only if run_phrase_matcher_annotator is set to true. Format: projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher} + * `runEntityAnnotator` (*type:* `boolean()`, *default:* `nil`) - Whether to run the entity annotator. + * `runIntentAnnotator` (*type:* `boolean()`, *default:* `nil`) - Whether to run the intent annotator. + * `runInterruptionAnnotator` (*type:* `boolean()`, *default:* `nil`) - Whether to run the interruption annotator. + * `runIssueModelAnnotator` (*type:* `boolean()`, *default:* `nil`) - Whether to run the issue model annotator. A model should have already been deployed for this to take effect. + * `runPhraseMatcherAnnotator` (*type:* `boolean()`, *default:* `nil`) - Whether to run the active phrase matcher annotator(s). + * `runSentimentAnnotator` (*type:* `boolean()`, *default:* `nil`) - Whether to run the sentiment annotator. + * `runSilenceAnnotator` (*type:* `boolean()`, *default:* `nil`) - Whether to run the silence annotator. + * `runSummarizationAnnotator` (*type:* `boolean()`, *default:* `nil`) - Whether to run the summarization annotator. + * `summarizationConfig` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnnotatorSelectorSummarizationConfig.t`, *default:* `nil`) - Configuration for the summarization annotator. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :issueModels => list(String.t()) | nil, + :phraseMatchers => list(String.t()) | nil, + :runEntityAnnotator => boolean() | nil, + :runIntentAnnotator => boolean() | nil, + :runInterruptionAnnotator => boolean() | nil, + :runIssueModelAnnotator => boolean() | nil, + :runPhraseMatcherAnnotator => boolean() | nil, + :runSentimentAnnotator => boolean() | nil, + :runSilenceAnnotator => boolean() | nil, + :runSummarizationAnnotator => boolean() | nil, + :summarizationConfig => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnnotatorSelectorSummarizationConfig.t() + | nil + } + + field(:issueModels, type: :list) + field(:phraseMatchers, type: :list) + field(:runEntityAnnotator) + field(:runIntentAnnotator) + field(:runInterruptionAnnotator) + field(:runIssueModelAnnotator) + field(:runPhraseMatcherAnnotator) + field(:runSentimentAnnotator) + field(:runSilenceAnnotator) + field(:runSummarizationAnnotator) + + field(:summarizationConfig, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnnotatorSelectorSummarizationConfig + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnnotatorSelector do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnnotatorSelector.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnnotatorSelector 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_annotator_selector_summarization_config.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_annotator_selector_summarization_config.ex new file mode 100644 index 0000000000..a81b64a1ab --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_annotator_selector_summarization_config.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.GoogleCloudContactcenterinsightsV1AnnotatorSelectorSummarizationConfig do + @moduledoc """ + Configuration for summarization. + + ## Attributes + + * `conversationProfile` (*type:* `String.t`, *default:* `nil`) - Resource name of the Dialogflow conversation profile. Format: projects/{project}/locations/{location}/conversationProfiles/{conversation_profile} + * `summarizationModel` (*type:* `String.t`, *default:* `nil`) - Default summarization model to be used. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :conversationProfile => String.t() | nil, + :summarizationModel => String.t() | nil + } + + field(:conversationProfile) + field(:summarizationModel) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnnotatorSelectorSummarizationConfig do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnnotatorSelectorSummarizationConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnnotatorSelectorSummarizationConfig 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_bulk_analyze_conversations_metadata.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_bulk_analyze_conversations_metadata.ex index c1fa2aac88..d80e7d7d67 100644 --- a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_bulk_analyze_conversations_metadata.ex +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_bulk_analyze_conversations_metadata.ex @@ -25,6 +25,7 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - The time the operation was created. * `endTime` (*type:* `DateTime.t`, *default:* `nil`) - The time the operation finished running. * `failedAnalysesCount` (*type:* `integer()`, *default:* `nil`) - The number of requested analyses that have failed so far. + * `partialErrors` (*type:* `list(GoogleApi.ContactCenterInsights.V1.Model.GoogleRpcStatus.t)`, *default:* `nil`) - Output only. Partial errors during bulk analyze operation that might cause the operation output to be incomplete. * `request` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsRequest.t`, *default:* `nil`) - The original request for bulk analyze. * `totalRequestedAnalysesCount` (*type:* `integer()`, *default:* `nil`) - Total number of analyses requested. Computed by the number of conversations returned by `filter` multiplied by `analysis_percentage` in the request. """ @@ -36,6 +37,8 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig :createTime => DateTime.t() | nil, :endTime => DateTime.t() | nil, :failedAnalysesCount => integer() | nil, + :partialErrors => + list(GoogleApi.ContactCenterInsights.V1.Model.GoogleRpcStatus.t()) | nil, :request => GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsRequest.t() | nil, @@ -46,6 +49,7 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig field(:createTime, as: DateTime) field(:endTime, as: DateTime) field(:failedAnalysesCount) + field(:partialErrors, as: GoogleApi.ContactCenterInsights.V1.Model.GoogleRpcStatus, type: :list) field(:request, as: diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_bulk_analyze_conversations_request.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_bulk_analyze_conversations_request.ex index 6c0cadbf63..1396e6e655 100644 --- a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_bulk_analyze_conversations_request.ex +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_bulk_analyze_conversations_request.ex @@ -22,6 +22,7 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig ## Attributes * `analysisPercentage` (*type:* `number()`, *default:* `nil`) - Required. Percentage of selected conversation to analyze, between [0, 100]. + * `annotatorSelector` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnnotatorSelector.t`, *default:* `nil`) - To select the annotators to run and the phrase matchers to use (if any). If not specified, all annotators will be run. * `filter` (*type:* `String.t`, *default:* `nil`) - Required. Filter used to select the subset of conversations to analyze. * `parent` (*type:* `String.t`, *default:* `nil`) - Required. The parent resource to create analyses in. """ @@ -30,11 +31,20 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig @type t :: %__MODULE__{ :analysisPercentage => number() | nil, + :annotatorSelector => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnnotatorSelector.t() + | nil, :filter => String.t() | nil, :parent => String.t() | nil } field(:analysisPercentage) + + field(:annotatorSelector, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnnotatorSelector + ) + field(:filter) field(:parent) end diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_bulk_delete_conversations_metadata.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_bulk_delete_conversations_metadata.ex new file mode 100644 index 0000000000..419f7d7ad5 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_bulk_delete_conversations_metadata.ex @@ -0,0 +1,69 @@ +# 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.GoogleCloudContactcenterinsightsV1BulkDeleteConversationsMetadata do + @moduledoc """ + The metadata for a bulk delete conversations operation. + + ## Attributes + + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - The time the operation was created. + * `endTime` (*type:* `DateTime.t`, *default:* `nil`) - The time the operation finished running. + * `partialErrors` (*type:* `list(GoogleApi.ContactCenterInsights.V1.Model.GoogleRpcStatus.t)`, *default:* `nil`) - Partial errors during bulk delete conversations operation that might cause the operation output to be incomplete. + * `request` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1BulkDeleteConversationsRequest.t`, *default:* `nil`) - The original request for bulk delete. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :createTime => DateTime.t() | nil, + :endTime => DateTime.t() | nil, + :partialErrors => + list(GoogleApi.ContactCenterInsights.V1.Model.GoogleRpcStatus.t()) | nil, + :request => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1BulkDeleteConversationsRequest.t() + | nil + } + + field(:createTime, as: DateTime) + field(:endTime, as: DateTime) + field(:partialErrors, as: GoogleApi.ContactCenterInsights.V1.Model.GoogleRpcStatus, type: :list) + + field(:request, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1BulkDeleteConversationsRequest + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1BulkDeleteConversationsMetadata do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1BulkDeleteConversationsMetadata.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1BulkDeleteConversationsMetadata 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_bulk_delete_conversations_request.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_bulk_delete_conversations_request.ex new file mode 100644 index 0000000000..b44c69f74b --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_bulk_delete_conversations_request.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.GoogleCloudContactcenterinsightsV1BulkDeleteConversationsRequest do + @moduledoc """ + The request to delete conversations in bulk. + + ## Attributes + + * `filter` (*type:* `String.t`, *default:* `nil`) - Filter used to select the subset of conversations to delete. + * `force` (*type:* `boolean()`, *default:* `nil`) - If set to true, all of this conversation's analyses will also be deleted. Otherwise, the request will only succeed if the conversation has no analyses. + * `maxDeleteCount` (*type:* `integer()`, *default:* `nil`) - Maximum number of conversations to delete. + * `parent` (*type:* `String.t`, *default:* `nil`) - Required. The parent resource to delete conversations from. Format: projects/{project}/locations/{location} + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :filter => String.t() | nil, + :force => boolean() | nil, + :maxDeleteCount => integer() | nil, + :parent => String.t() | nil + } + + field(:filter) + field(:force) + field(:maxDeleteCount) + field(:parent) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1BulkDeleteConversationsRequest do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1BulkDeleteConversationsRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1BulkDeleteConversationsRequest 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_bulk_delete_conversations_response.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_bulk_delete_conversations_response.ex new file mode 100644 index 0000000000..45d55e5766 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_bulk_delete_conversations_response.ex @@ -0,0 +1,48 @@ +# 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.GoogleCloudContactcenterinsightsV1BulkDeleteConversationsResponse do + @moduledoc """ + The response for a bulk delete conversations operation. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1BulkDeleteConversationsResponse do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1BulkDeleteConversationsResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1BulkDeleteConversationsResponse 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_conversation.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_conversation.ex index 8bd6a1f07e..9d2f25d01d 100644 --- a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_conversation.ex +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_conversation.ex @@ -31,9 +31,11 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig * `labels` (*type:* `map()`, *default:* `nil`) - A map for the user to specify any custom fields. A maximum of 20 labels per conversation is allowed, with a maximum of 256 characters per entry. * `languageCode` (*type:* `String.t`, *default:* `nil`) - A user-specified language code for the conversation. * `latestAnalysis` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1Analysis.t`, *default:* `nil`) - Output only. The conversation's latest analysis, if one exists. + * `latestSummary` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ConversationSummarizationSuggestionData.t`, *default:* `nil`) - Output only. Latest summary of the conversation. * `medium` (*type:* `String.t`, *default:* `nil`) - Immutable. The conversation medium, if unspecified will default to PHONE_CALL. * `name` (*type:* `String.t`, *default:* `nil`) - Immutable. The resource name of the conversation. Format: projects/{project}/locations/{location}/conversations/{conversation} * `obfuscatedUserId` (*type:* `String.t`, *default:* `nil`) - Obfuscated user ID which the customer sent to us. + * `qualityMetadata` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ConversationQualityMetadata.t`, *default:* `nil`) - Conversation metadata related to quality management. * `runtimeAnnotations` (*type:* `list(GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1RuntimeAnnotation.t)`, *default:* `nil`) - Output only. The annotations that were generated during the customer and agent interaction. * `startTime` (*type:* `DateTime.t`, *default:* `nil`) - The time at which the conversation started. * `transcript` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ConversationTranscript.t`, *default:* `nil`) - Output only. The conversation transcript. @@ -66,9 +68,15 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig :latestAnalysis => GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1Analysis.t() | nil, + :latestSummary => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ConversationSummarizationSuggestionData.t() + | nil, :medium => String.t() | nil, :name => String.t() | nil, :obfuscatedUserId => String.t() | nil, + :qualityMetadata => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ConversationQualityMetadata.t() + | nil, :runtimeAnnotations => list( GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1RuntimeAnnotation.t() @@ -112,10 +120,20 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig as: GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1Analysis ) + field(:latestSummary, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ConversationSummarizationSuggestionData + ) + field(:medium) field(:name) field(:obfuscatedUserId) + field(:qualityMetadata, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ConversationQualityMetadata + ) + field(:runtimeAnnotations, as: GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1RuntimeAnnotation, diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_conversation_quality_metadata.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_conversation_quality_metadata.ex new file mode 100644 index 0000000000..c25d2efe76 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_conversation_quality_metadata.ex @@ -0,0 +1,71 @@ +# 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.GoogleCloudContactcenterinsightsV1ConversationQualityMetadata do + @moduledoc """ + Conversation metadata related to quality management. + + ## Attributes + + * `agentInfo` (*type:* `list(GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ConversationQualityMetadataAgentInfo.t)`, *default:* `nil`) - Information about agents involved in the call. + * `customerSatisfactionRating` (*type:* `integer()`, *default:* `nil`) - An arbitrary integer value indicating the customer's satisfaction rating. + * `menuPath` (*type:* `String.t`, *default:* `nil`) - An arbitrary string value specifying the menu path the customer took. + * `waitDuration` (*type:* `String.t`, *default:* `nil`) - The amount of time the customer waited to connect with an agent. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :agentInfo => + list( + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ConversationQualityMetadataAgentInfo.t() + ) + | nil, + :customerSatisfactionRating => integer() | nil, + :menuPath => String.t() | nil, + :waitDuration => String.t() | nil + } + + field(:agentInfo, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ConversationQualityMetadataAgentInfo, + type: :list + ) + + field(:customerSatisfactionRating) + field(:menuPath) + field(:waitDuration) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ConversationQualityMetadata do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ConversationQualityMetadata.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ConversationQualityMetadata 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_conversation_quality_metadata_agent_info.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_conversation_quality_metadata_agent_info.ex new file mode 100644 index 0000000000..2afe3c2685 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_conversation_quality_metadata_agent_info.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.GoogleCloudContactcenterinsightsV1ConversationQualityMetadataAgentInfo do + @moduledoc """ + Information about an agent involved in the conversation. + + ## Attributes + + * `agentId` (*type:* `String.t`, *default:* `nil`) - A user-specified string representing the agent. + * `displayName` (*type:* `String.t`, *default:* `nil`) - The agent's name. + * `dispositionCode` (*type:* `String.t`, *default:* `nil`) - A user-provided string indicating the outcome of the agent's segment of the call. + * `team` (*type:* `String.t`, *default:* `nil`) - A user-specified string representing the agent's team. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :agentId => String.t() | nil, + :displayName => String.t() | nil, + :dispositionCode => String.t() | nil, + :team => String.t() | nil + } + + field(:agentId) + field(:displayName) + field(:dispositionCode) + field(:team) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ConversationQualityMetadataAgentInfo do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ConversationQualityMetadataAgentInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ConversationQualityMetadataAgentInfo 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_conversation_summarization_suggestion_data.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_conversation_summarization_suggestion_data.ex new file mode 100644 index 0000000000..5e16ec421f --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_conversation_summarization_suggestion_data.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.GoogleCloudContactcenterinsightsV1ConversationSummarizationSuggestionData do + @moduledoc """ + Conversation summarization suggestion data. + + ## Attributes + + * `answerRecord` (*type:* `String.t`, *default:* `nil`) - The name of the answer record. Format: projects/{project}/locations/{location}/answerRecords/{answer_record} + * `confidence` (*type:* `number()`, *default:* `nil`) - The confidence score of the summarization. + * `conversationModel` (*type:* `String.t`, *default:* `nil`) - The name of the model that generates this summary. Format: projects/{project}/locations/{location}/conversationModels/{conversation_model} + * `metadata` (*type:* `map()`, *default:* `nil`) - A map that contains metadata about the summarization and the document from which it originates. + * `text` (*type:* `String.t`, *default:* `nil`) - The summarization content that is concatenated into one string. + * `textSections` (*type:* `map()`, *default:* `nil`) - The summarization content that is divided into sections. The key is the section's name and the value is the section's content. There is no specific format for the key or value. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :answerRecord => String.t() | nil, + :confidence => number() | nil, + :conversationModel => String.t() | nil, + :metadata => map() | nil, + :text => String.t() | nil, + :textSections => map() | nil + } + + field(:answerRecord) + field(:confidence) + field(:conversationModel) + field(:metadata, type: :map) + field(:text) + field(:textSections, type: :map) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ConversationSummarizationSuggestionData do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ConversationSummarizationSuggestionData.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ConversationSummarizationSuggestionData 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_create_analysis_operation_metadata.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_create_analysis_operation_metadata.ex index 3c97be638f..fa1497a40e 100644 --- a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_create_analysis_operation_metadata.ex +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_create_analysis_operation_metadata.ex @@ -21,6 +21,7 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig ## Attributes + * `annotatorSelector` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnnotatorSelector.t`, *default:* `nil`) - Output only. The annotator selector used for the analysis (if any). * `conversation` (*type:* `String.t`, *default:* `nil`) - Output only. The Conversation that this Analysis Operation belongs to. * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time the operation was created. * `endTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time the operation finished running. @@ -29,11 +30,19 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :annotatorSelector => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnnotatorSelector.t() + | nil, :conversation => String.t() | nil, :createTime => DateTime.t() | nil, :endTime => DateTime.t() | nil } + field(:annotatorSelector, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnnotatorSelector + ) + field(:conversation) field(:createTime, as: DateTime) field(:endTime, as: DateTime) diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_export_issue_model_metadata.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_export_issue_model_metadata.ex new file mode 100644 index 0000000000..6261ae27be --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_export_issue_model_metadata.ex @@ -0,0 +1,65 @@ +# 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.GoogleCloudContactcenterinsightsV1ExportIssueModelMetadata do + @moduledoc """ + Metadata used for export issue model. + + ## Attributes + + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - The time the operation was created. + * `endTime` (*type:* `DateTime.t`, *default:* `nil`) - The time the operation finished running. + * `request` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ExportIssueModelRequest.t`, *default:* `nil`) - The original export request. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :createTime => DateTime.t() | nil, + :endTime => DateTime.t() | nil, + :request => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ExportIssueModelRequest.t() + | nil + } + + field(:createTime, as: DateTime) + field(:endTime, as: DateTime) + + field(:request, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ExportIssueModelRequest + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ExportIssueModelMetadata do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ExportIssueModelMetadata.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ExportIssueModelMetadata 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_export_issue_model_request.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_export_issue_model_request.ex new file mode 100644 index 0000000000..587d22d613 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_export_issue_model_request.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.GoogleCloudContactcenterinsightsV1ExportIssueModelRequest do + @moduledoc """ + Request to export an issue model. + + ## Attributes + + * `gcsDestination` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ExportIssueModelRequestGcsDestination.t`, *default:* `nil`) - Google Cloud Storage URI to export the Issue Model to. + * `name` (*type:* `String.t`, *default:* `nil`) - Required. The issue model to export + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :gcsDestination => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ExportIssueModelRequestGcsDestination.t() + | nil, + :name => String.t() | nil + } + + field(:gcsDestination, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ExportIssueModelRequestGcsDestination + ) + + field(:name) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ExportIssueModelRequest do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ExportIssueModelRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ExportIssueModelRequest 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_export_issue_model_request_gcs_destination.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_export_issue_model_request_gcs_destination.ex new file mode 100644 index 0000000000..ce7b4f6761 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_export_issue_model_request_gcs_destination.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.GoogleCloudContactcenterinsightsV1ExportIssueModelRequestGcsDestination do + @moduledoc """ + Google Cloud Storage Object URI to save the issue model to. + + ## Attributes + + * `objectUri` (*type:* `String.t`, *default:* `nil`) - Required. Format: `gs:///` + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :objectUri => String.t() | nil + } + + field(:objectUri) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ExportIssueModelRequestGcsDestination do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ExportIssueModelRequestGcsDestination.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ExportIssueModelRequestGcsDestination 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_export_issue_model_response.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_export_issue_model_response.ex new file mode 100644 index 0000000000..561250ceaa --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_export_issue_model_response.ex @@ -0,0 +1,48 @@ +# 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.GoogleCloudContactcenterinsightsV1ExportIssueModelResponse do + @moduledoc """ + Response from export issue model + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ExportIssueModelResponse do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ExportIssueModelResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ExportIssueModelResponse 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_import_issue_model_metadata.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_import_issue_model_metadata.ex new file mode 100644 index 0000000000..6c159fe8c4 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_import_issue_model_metadata.ex @@ -0,0 +1,65 @@ +# 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.GoogleCloudContactcenterinsightsV1ImportIssueModelMetadata do + @moduledoc """ + Metadata used for import issue model. + + ## Attributes + + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - The time the operation was created. + * `endTime` (*type:* `DateTime.t`, *default:* `nil`) - The time the operation finished running. + * `request` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ImportIssueModelRequest.t`, *default:* `nil`) - The original import request. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :createTime => DateTime.t() | nil, + :endTime => DateTime.t() | nil, + :request => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ImportIssueModelRequest.t() + | nil + } + + field(:createTime, as: DateTime) + field(:endTime, as: DateTime) + + field(:request, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ImportIssueModelRequest + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ImportIssueModelMetadata do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ImportIssueModelMetadata.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ImportIssueModelMetadata 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_import_issue_model_request.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_import_issue_model_request.ex new file mode 100644 index 0000000000..a668b09f58 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_import_issue_model_request.ex @@ -0,0 +1,66 @@ +# 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.GoogleCloudContactcenterinsightsV1ImportIssueModelRequest do + @moduledoc """ + Request to import an issue model. + + ## Attributes + + * `createNewModel` (*type:* `boolean()`, *default:* `nil`) - Optional. If set to true, will create a new issue model from the imported file with randomly generated IDs for the issue model and corresponding issues. Otherwise, replaces an existing model with the same ID as the file. + * `gcsSource` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ImportIssueModelRequestGcsSource.t`, *default:* `nil`) - Google Cloud Storage source message. + * `parent` (*type:* `String.t`, *default:* `nil`) - Required. The parent resource of the issue model. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :createNewModel => boolean() | nil, + :gcsSource => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ImportIssueModelRequestGcsSource.t() + | nil, + :parent => String.t() | nil + } + + field(:createNewModel) + + field(:gcsSource, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ImportIssueModelRequestGcsSource + ) + + field(:parent) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ImportIssueModelRequest do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ImportIssueModelRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ImportIssueModelRequest 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_import_issue_model_request_gcs_source.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_import_issue_model_request_gcs_source.ex new file mode 100644 index 0000000000..b9c80d1229 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_import_issue_model_request_gcs_source.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.GoogleCloudContactcenterinsightsV1ImportIssueModelRequestGcsSource do + @moduledoc """ + Google Cloud Storage Object URI to get the issue model file from. + + ## Attributes + + * `objectUri` (*type:* `String.t`, *default:* `nil`) - Required. Format: `gs:///` + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :objectUri => String.t() | nil + } + + field(:objectUri) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ImportIssueModelRequestGcsSource do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ImportIssueModelRequestGcsSource.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ImportIssueModelRequestGcsSource 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_import_issue_model_response.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_import_issue_model_response.ex new file mode 100644 index 0000000000..884d0155f0 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_import_issue_model_response.ex @@ -0,0 +1,48 @@ +# 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.GoogleCloudContactcenterinsightsV1ImportIssueModelResponse do + @moduledoc """ + Response from import issue model + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ImportIssueModelResponse do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ImportIssueModelResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ImportIssueModelResponse 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_ingest_conversations_metadata.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_ingest_conversations_metadata.ex index 13c2aa8635..eb383560a2 100644 --- a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_ingest_conversations_metadata.ex +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_ingest_conversations_metadata.ex @@ -23,6 +23,7 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time the operation was created. * `endTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time the operation finished running. + * `ingestConversationsStats` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1IngestConversationsMetadataIngestConversationsStats.t`, *default:* `nil`) - Output only. Statistics for IngestConversations operation. * `partialErrors` (*type:* `list(GoogleApi.ContactCenterInsights.V1.Model.GoogleRpcStatus.t)`, *default:* `nil`) - Output only. Partial errors during ingest operation that might cause the operation output to be incomplete. * `request` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1IngestConversationsRequest.t`, *default:* `nil`) - Output only. The original request for ingest. """ @@ -32,6 +33,9 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig @type t :: %__MODULE__{ :createTime => DateTime.t() | nil, :endTime => DateTime.t() | nil, + :ingestConversationsStats => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1IngestConversationsMetadataIngestConversationsStats.t() + | nil, :partialErrors => list(GoogleApi.ContactCenterInsights.V1.Model.GoogleRpcStatus.t()) | nil, :request => @@ -41,6 +45,12 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig field(:createTime, as: DateTime) field(:endTime, as: DateTime) + + field(:ingestConversationsStats, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1IngestConversationsMetadataIngestConversationsStats + ) + field(:partialErrors, as: GoogleApi.ContactCenterInsights.V1.Model.GoogleRpcStatus, type: :list) field(:request, diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_ingest_conversations_metadata_ingest_conversations_stats.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_ingest_conversations_metadata_ingest_conversations_stats.ex new file mode 100644 index 0000000000..3e8bcc8001 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_ingest_conversations_metadata_ingest_conversations_stats.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.GoogleCloudContactcenterinsightsV1IngestConversationsMetadataIngestConversationsStats do + @moduledoc """ + Statistics for IngestConversations operation. + + ## Attributes + + * `duplicatesSkippedCount` (*type:* `integer()`, *default:* `nil`) - Output only. The number of objects skipped because another conversation with the same transcript uri had already been ingested. + * `failedIngestCount` (*type:* `integer()`, *default:* `nil`) - Output only. The number of objects which were unable to be ingested due to errors. The errors are populated in the partial_errors field. + * `processedObjectCount` (*type:* `integer()`, *default:* `nil`) - Output only. The number of objects processed during the ingest operation. + * `successfulIngestCount` (*type:* `integer()`, *default:* `nil`) - Output only. The number of new conversations added during this ingest operation. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :duplicatesSkippedCount => integer() | nil, + :failedIngestCount => integer() | nil, + :processedObjectCount => integer() | nil, + :successfulIngestCount => integer() | nil + } + + field(:duplicatesSkippedCount) + field(:failedIngestCount) + field(:processedObjectCount) + field(:successfulIngestCount) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1IngestConversationsMetadataIngestConversationsStats do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1IngestConversationsMetadataIngestConversationsStats.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1IngestConversationsMetadataIngestConversationsStats 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_ingest_conversations_request.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_ingest_conversations_request.ex index bddca02430..1b5b98f688 100644 --- a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_ingest_conversations_request.ex +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_ingest_conversations_request.ex @@ -22,8 +22,10 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig ## Attributes * `conversationConfig` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1IngestConversationsRequestConversationConfig.t`, *default:* `nil`) - Configuration that applies to all conversations. - * `gcsSource` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1IngestConversationsRequestGcsSource.t`, *default:* `nil`) - A cloud storage bucket source. + * `gcsSource` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1IngestConversationsRequestGcsSource.t`, *default:* `nil`) - A cloud storage bucket source. Note that any previously ingested objects from the source will be skipped to avoid duplication. * `parent` (*type:* `String.t`, *default:* `nil`) - Required. The parent resource for new conversations. + * `redactionConfig` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1RedactionConfig.t`, *default:* `nil`) - Optional. DLP settings for transcript redaction. Optional, will default to the config specified in Settings. + * `speechConfig` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1SpeechConfig.t`, *default:* `nil`) - Optional. Default Speech-to-Text configuration. Optional, will default to the config specified in Settings. * `transcriptObjectConfig` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1IngestConversationsRequestTranscriptObjectConfig.t`, *default:* `nil`) - Configuration for when `source` contains conversation transcripts. """ @@ -37,6 +39,12 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1IngestConversationsRequestGcsSource.t() | nil, :parent => String.t() | nil, + :redactionConfig => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1RedactionConfig.t() + | nil, + :speechConfig => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1SpeechConfig.t() + | nil, :transcriptObjectConfig => GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1IngestConversationsRequestTranscriptObjectConfig.t() | nil @@ -54,6 +62,14 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig field(:parent) + field(:redactionConfig, + as: GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1RedactionConfig + ) + + field(:speechConfig, + as: GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1SpeechConfig + ) + field(:transcriptObjectConfig, as: GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1IngestConversationsRequestTranscriptObjectConfig diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_ingest_conversations_request_conversation_config.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_ingest_conversations_request_conversation_config.ex index 3ae0aa56fc..834fb0c77a 100644 --- a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_ingest_conversations_request_conversation_config.ex +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_ingest_conversations_request_conversation_config.ex @@ -21,16 +21,22 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig ## Attributes + * `agentChannel` (*type:* `integer()`, *default:* `nil`) - Optional. Indicates which of the channels, 1 or 2, contains the agent. Note that this must be set for conversations to be properly displayed and analyzed. * `agentId` (*type:* `String.t`, *default:* `nil`) - An opaque, user-specified string representing the human agent who handled the conversations. + * `customerChannel` (*type:* `integer()`, *default:* `nil`) - Optional. Indicates which of the channels, 1 or 2, contains the agent. Note that this must be set for conversations to be properly displayed and analyzed. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ - :agentId => String.t() | nil + :agentChannel => integer() | nil, + :agentId => String.t() | nil, + :customerChannel => integer() | nil } + field(:agentChannel) field(:agentId) + field(:customerChannel) end defimpl Poison.Decoder, diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_ingest_conversations_request_gcs_source.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_ingest_conversations_request_gcs_source.ex index 0c4bfdd5fd..bf9cab5417 100644 --- a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_ingest_conversations_request_gcs_source.ex +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_ingest_conversations_request_gcs_source.ex @@ -21,16 +21,25 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig ## Attributes + * `bucketObjectType` (*type:* `String.t`, *default:* `nil`) - Optional. Specifies the type of the objects in `bucket_uri`. * `bucketUri` (*type:* `String.t`, *default:* `nil`) - Required. The Cloud Storage bucket containing source objects. + * `customMetadataKeys` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Custom keys to extract as conversation labels from metadata files in `metadata_bucket_uri`. Keys not included in this field will be ignored. Note that there is a limit of 20 labels per conversation. + * `metadataBucketUri` (*type:* `String.t`, *default:* `nil`) - Optional. The Cloud Storage path to the source object metadata. Note that: [1] metadata files are expected to be in JSON format [2] metadata and source objects must be in separate buckets [3] a source object's metadata object must share the same name to be properly ingested """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ - :bucketUri => String.t() | nil + :bucketObjectType => String.t() | nil, + :bucketUri => String.t() | nil, + :customMetadataKeys => list(String.t()) | nil, + :metadataBucketUri => String.t() | nil } + field(:bucketObjectType) field(:bucketUri) + field(:customMetadataKeys, type: :list) + field(:metadataBucketUri) end defimpl Poison.Decoder, diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_issue_model.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_issue_model.ex index e87f090d9d..74559235a5 100644 --- a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_issue_model.ex +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_issue_model.ex @@ -24,6 +24,9 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time at which this issue model was created. * `displayName` (*type:* `String.t`, *default:* `nil`) - The representative name for the issue model. * `inputDataConfig` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1IssueModelInputDataConfig.t`, *default:* `nil`) - Configs for the input data that used to create the issue model. + * `issueCount` (*type:* `String.t`, *default:* `nil`) - Output only. Number of issues in this issue model. + * `languageCode` (*type:* `String.t`, *default:* `nil`) - Language of the model. + * `modelType` (*type:* `String.t`, *default:* `nil`) - Type of the model. * `name` (*type:* `String.t`, *default:* `nil`) - Immutable. The resource name of the issue model. Format: projects/{project}/locations/{location}/issueModels/{issue_model} * `state` (*type:* `String.t`, *default:* `nil`) - Output only. State of the model. * `trainingStats` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1IssueModelLabelStats.t`, *default:* `nil`) - Output only. Immutable. The issue model's label statistics on its training data. @@ -38,6 +41,9 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig :inputDataConfig => GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1IssueModelInputDataConfig.t() | nil, + :issueCount => String.t() | nil, + :languageCode => String.t() | nil, + :modelType => String.t() | nil, :name => String.t() | nil, :state => String.t() | nil, :trainingStats => @@ -54,6 +60,9 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1IssueModelInputDataConfig ) + field(:issueCount) + field(:languageCode) + field(:modelType) field(:name) field(:state) diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_phrase_match_rule_group.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_phrase_match_rule_group.ex index 01252a5dac..f424e133d5 100644 --- a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_phrase_match_rule_group.ex +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_phrase_match_rule_group.ex @@ -21,7 +21,7 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig ## Attributes - * `phraseMatchRules` (*type:* `list(GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1PhraseMatchRule.t)`, *default:* `nil`) - A list of phase match rules that are included in this group. + * `phraseMatchRules` (*type:* `list(GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1PhraseMatchRule.t)`, *default:* `nil`) - A list of phrase match rules that are included in this group. * `type` (*type:* `String.t`, *default:* `nil`) - Required. The type of this phrase match rule group. """ diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_redaction_config.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_redaction_config.ex new file mode 100644 index 0000000000..3e5e2531d8 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_redaction_config.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1RedactionConfig do + @moduledoc """ + DLP resources used for redaction while ingesting conversations. + + ## Attributes + + * `deidentifyTemplate` (*type:* `String.t`, *default:* `nil`) - The fully-qualified DLP deidentify template resource name. Format: `projects/{project}/deidentifyTemplates/{template}` + * `inspectTemplate` (*type:* `String.t`, *default:* `nil`) - The fully-qualified DLP inspect template resource name. Format: `projects/{project}/locations/{location}/inspectTemplates/{template}` + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :deidentifyTemplate => String.t() | nil, + :inspectTemplate => String.t() | nil + } + + field(:deidentifyTemplate) + field(:inspectTemplate) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1RedactionConfig do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1RedactionConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1RedactionConfig 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 4dc0d1d6c0..a6c13deb3c 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 @@ -24,6 +24,7 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig * `annotationId` (*type:* `String.t`, *default:* `nil`) - The unique identifier of the annotation. Format: projects/{project}/locations/{location}/conversationDatasets/{dataset}/conversationDataItems/{data_item}/conversationAnnotations/{annotation} * `answerFeedback` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnswerFeedback.t`, *default:* `nil`) - The feedback that the customer has about the answer in `data`. * `articleSuggestion` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ArticleSuggestionData.t`, *default:* `nil`) - Agent Assist Article Suggestion data. + * `conversationSummarizationSuggestion` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ConversationSummarizationSuggestionData.t`, *default:* `nil`) - Conversation summarization suggestion data. * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - The time at which this annotation was created. * `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. @@ -43,6 +44,9 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig :articleSuggestion => GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ArticleSuggestionData.t() | nil, + :conversationSummarizationSuggestion => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ConversationSummarizationSuggestionData.t() + | nil, :createTime => DateTime.t() | nil, :dialogflowInteraction => GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1DialogflowInteractionData.t() @@ -75,6 +79,11 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ArticleSuggestionData ) + field(:conversationSummarizationSuggestion, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ConversationSummarizationSuggestionData + ) + field(:createTime, as: DateTime) field(:dialogflowInteraction, diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_settings.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_settings.ex index de7ee59dba..c83f960bb3 100644 --- a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_settings.ex +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_settings.ex @@ -26,7 +26,9 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time at which the settings was created. * `languageCode` (*type:* `String.t`, *default:* `nil`) - A language code to be applied to each transcript segment unless the segment already specifies a language code. Language code defaults to "en-US" if it is neither specified on the segment nor here. * `name` (*type:* `String.t`, *default:* `nil`) - Immutable. The resource name of the settings resource. Format: projects/{project}/locations/{location}/settings - * `pubsubNotificationSettings` (*type:* `map()`, *default:* `nil`) - A map that maps a notification trigger to a Pub/Sub topic. Each time a specified trigger occurs, Insights will notify the corresponding Pub/Sub topic. Keys are notification triggers. Supported keys are: * "all-triggers": Notify each time any of the supported triggers occurs. * "create-analysis": Notify each time an analysis is created. * "create-conversation": Notify each time a conversation is created. * "export-insights-data": Notify each time an export is complete. * "update-conversation": Notify each time a conversation is updated via UpdateConversation. Values are Pub/Sub topics. The format of each Pub/Sub topic is: projects/{project}/topics/{topic} + * `pubsubNotificationSettings` (*type:* `map()`, *default:* `nil`) - A map that maps a notification trigger to a Pub/Sub topic. Each time a specified trigger occurs, Insights will notify the corresponding Pub/Sub topic. Keys are notification triggers. Supported keys are: * "all-triggers": Notify each time any of the supported triggers occurs. * "create-analysis": Notify each time an analysis is created. * "create-conversation": Notify each time a conversation is created. * "export-insights-data": Notify each time an export is complete. * "ingest-conversations": Notify each time an IngestConversations LRO completes. * "update-conversation": Notify each time a conversation is updated via UpdateConversation. * "upload-conversation": Notify when an UploadConversation LRO completes. Values are Pub/Sub topics. The format of each Pub/Sub topic is: projects/{project}/topics/{topic} + * `redactionConfig` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1RedactionConfig.t`, *default:* `nil`) - Default DLP redaction resources to be applied while ingesting conversations. + * `speechConfig` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1SpeechConfig.t`, *default:* `nil`) - Optional. Default Speech-to-Text resources to be used while ingesting audio files. Optional, CCAI Insights will create a default if not provided. * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time at which the settings were last updated. """ @@ -41,6 +43,12 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig :languageCode => String.t() | nil, :name => String.t() | nil, :pubsubNotificationSettings => map() | nil, + :redactionConfig => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1RedactionConfig.t() + | nil, + :speechConfig => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1SpeechConfig.t() + | nil, :updateTime => DateTime.t() | nil } @@ -54,6 +62,15 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig field(:languageCode) field(:name) field(:pubsubNotificationSettings, type: :map) + + field(:redactionConfig, + as: GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1RedactionConfig + ) + + field(:speechConfig, + as: GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1SpeechConfig + ) + field(:updateTime, as: DateTime) end diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_settings_analysis_config.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_settings_analysis_config.ex index 4cbfbfb1e7..5fee1c1965 100644 --- a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_settings_analysis_config.ex +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_settings_analysis_config.ex @@ -21,16 +21,28 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig ## Attributes + * `annotatorSelector` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnnotatorSelector.t`, *default:* `nil`) - To select the annotators to run and the phrase matchers to use (if any). If not specified, all annotators will be run. * `runtimeIntegrationAnalysisPercentage` (*type:* `float()`, *default:* `nil`) - Percentage of conversations created using Dialogflow runtime integration to analyze automatically, between [0, 100]. + * `uploadConversationAnalysisPercentage` (*type:* `float()`, *default:* `nil`) - Percentage of conversations created using the UploadConversation endpoint to analyze automatically, between [0, 100]. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ - :runtimeIntegrationAnalysisPercentage => float() | nil + :annotatorSelector => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnnotatorSelector.t() + | nil, + :runtimeIntegrationAnalysisPercentage => float() | nil, + :uploadConversationAnalysisPercentage => float() | nil } + field(:annotatorSelector, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnnotatorSelector + ) + field(:runtimeIntegrationAnalysisPercentage) + field(:uploadConversationAnalysisPercentage) end defimpl Poison.Decoder, diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_speech_config.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_speech_config.ex new file mode 100644 index 0000000000..535550f49f --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_speech_config.ex @@ -0,0 +1,51 @@ +# 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.GoogleCloudContactcenterinsightsV1SpeechConfig do + @moduledoc """ + Speech-to-Text configuration. + + ## Attributes + + * `speechRecognizer` (*type:* `String.t`, *default:* `nil`) - The fully-qualified Speech Recognizer resource name. Format: `projects/{project_id}/locations/{location}/recognizer/{recognizer}` + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :speechRecognizer => String.t() | nil + } + + field(:speechRecognizer) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1SpeechConfig do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1SpeechConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1SpeechConfig 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_upload_conversation_metadata.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_upload_conversation_metadata.ex new file mode 100644 index 0000000000..9e238a716a --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_upload_conversation_metadata.ex @@ -0,0 +1,77 @@ +# 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.GoogleCloudContactcenterinsightsV1UploadConversationMetadata do + @moduledoc """ + The metadata for an UploadConversation operation. + + ## Attributes + + * `analysisOperation` (*type:* `String.t`, *default:* `nil`) - Output only. The operation name for a successfully created analysis operation, if any. + * `appliedRedactionConfig` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1RedactionConfig.t`, *default:* `nil`) - Output only. The redaction config applied to the uploaded conversation. + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time the operation was created. + * `endTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time the operation finished running. + * `request` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1UploadConversationRequest.t`, *default:* `nil`) - Output only. The original request. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :analysisOperation => String.t() | nil, + :appliedRedactionConfig => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1RedactionConfig.t() + | nil, + :createTime => DateTime.t() | nil, + :endTime => DateTime.t() | nil, + :request => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1UploadConversationRequest.t() + | nil + } + + field(:analysisOperation) + + field(:appliedRedactionConfig, + as: GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1RedactionConfig + ) + + field(:createTime, as: DateTime) + field(:endTime, as: DateTime) + + field(:request, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1UploadConversationRequest + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1UploadConversationMetadata do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1UploadConversationMetadata.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1UploadConversationMetadata 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_upload_conversation_request.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_upload_conversation_request.ex new file mode 100644 index 0000000000..b0d108d7ba --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_upload_conversation_request.ex @@ -0,0 +1,80 @@ +# 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.GoogleCloudContactcenterinsightsV1UploadConversationRequest do + @moduledoc """ + Request to upload a conversation. + + ## Attributes + + * `conversation` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1Conversation.t`, *default:* `nil`) - Required. The conversation resource to create. + * `conversationId` (*type:* `String.t`, *default:* `nil`) - Optional. A unique ID for the new conversation. This ID will become the final component of the conversation's resource name. If no ID is specified, a server-generated ID will be used. This value should be 4-64 characters and must match the regular expression `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-` + * `parent` (*type:* `String.t`, *default:* `nil`) - Required. The parent resource of the conversation. + * `redactionConfig` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1RedactionConfig.t`, *default:* `nil`) - Optional. DLP settings for transcript redaction. Will default to the config specified in Settings. + * `speechConfig` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1SpeechConfig.t`, *default:* `nil`) - Optional. Speech-to-Text configuration. Will default to the config specified in Settings. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :conversation => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1Conversation.t() + | nil, + :conversationId => String.t() | nil, + :parent => String.t() | nil, + :redactionConfig => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1RedactionConfig.t() + | nil, + :speechConfig => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1SpeechConfig.t() + | nil + } + + field(:conversation, + as: GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1Conversation + ) + + field(:conversationId) + field(:parent) + + field(:redactionConfig, + as: GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1RedactionConfig + ) + + field(:speechConfig, + as: GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1SpeechConfig + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1UploadConversationRequest do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1UploadConversationRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1UploadConversationRequest 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_view.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_view.ex index 91a4739c67..17fbf3448a 100644 --- a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_view.ex +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_view.ex @@ -25,7 +25,7 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig * `displayName` (*type:* `String.t`, *default:* `nil`) - The human-readable display name of the view. * `name` (*type:* `String.t`, *default:* `nil`) - Immutable. The resource name of the view. Format: projects/{project}/locations/{location}/views/{view} * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The most recent time at which the view was updated. - * `value` (*type:* `String.t`, *default:* `nil`) - String with specific view properties. + * `value` (*type:* `String.t`, *default:* `nil`) - String with specific view properties, must be non-empty. """ use GoogleApi.Gax.ModelBase diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_analysis.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_analysis.ex new file mode 100644 index 0000000000..386f1ca00b --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_analysis.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.GoogleCloudContactcenterinsightsV1alpha1Analysis do + @moduledoc """ + The analysis resource. + + ## Attributes + + * `analysisResult` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AnalysisResult.t`, *default:* `nil`) - Output only. The result of the analysis, which is populated when the analysis finishes. + * `annotatorSelector` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector.t`, *default:* `nil`) - To select the annotators to run and the phrase matchers to use (if any). If not specified, all annotators will be run. + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time at which the analysis was created, which occurs when the long-running operation completes. + * `name` (*type:* `String.t`, *default:* `nil`) - Immutable. The resource name of the analysis. Format: projects/{project}/locations/{location}/conversations/{conversation}/analyses/{analysis} + * `requestTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time at which the analysis was requested. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :analysisResult => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AnalysisResult.t() + | nil, + :annotatorSelector => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector.t() + | nil, + :createTime => DateTime.t() | nil, + :name => String.t() | nil, + :requestTime => DateTime.t() | nil + } + + field(:analysisResult, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AnalysisResult + ) + + field(:annotatorSelector, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector + ) + + field(:createTime, as: DateTime) + field(:name) + field(:requestTime, as: DateTime) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1Analysis do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1Analysis.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1Analysis 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_analysis_result.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_analysis_result.ex new file mode 100644 index 0000000000..fc8ee68477 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_analysis_result.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.GoogleCloudContactcenterinsightsV1alpha1AnalysisResult do + @moduledoc """ + The result of an analysis. + + ## Attributes + + * `callAnalysisMetadata` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AnalysisResultCallAnalysisMetadata.t`, *default:* `nil`) - Call-specific metadata created by the analysis. + * `endTime` (*type:* `DateTime.t`, *default:* `nil`) - The time at which the analysis ended. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :callAnalysisMetadata => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AnalysisResultCallAnalysisMetadata.t() + | nil, + :endTime => DateTime.t() | nil + } + + field(:callAnalysisMetadata, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AnalysisResultCallAnalysisMetadata + ) + + field(:endTime, as: DateTime) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AnalysisResult do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AnalysisResult.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AnalysisResult 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_analysis_result_call_analysis_metadata.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_analysis_result_call_analysis_metadata.ex new file mode 100644 index 0000000000..21afe2db3a --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_analysis_result_call_analysis_metadata.ex @@ -0,0 +1,119 @@ +# 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.GoogleCloudContactcenterinsightsV1alpha1AnalysisResultCallAnalysisMetadata do + @moduledoc """ + Call-specific metadata created during analysis. + + ## Attributes + + * `annotations` (*type:* `list(GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1CallAnnotation.t)`, *default:* `nil`) - A list of call annotations that apply to this call. + * `entities` (*type:* `%{optional(String.t) => GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1Entity.t}`, *default:* `nil`) - All the entities in the call. + * `intents` (*type:* `%{optional(String.t) => GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1Intent.t}`, *default:* `nil`) - All the matched intents in the call. + * `issueModelResult` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1IssueModelResult.t`, *default:* `nil`) - Overall conversation-level issue modeling result. + * `phraseMatchers` (*type:* `%{optional(String.t) => GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1PhraseMatchData.t}`, *default:* `nil`) - All the matched phrase matchers in the call. + * `sentiments` (*type:* `list(GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSentiment.t)`, *default:* `nil`) - Overall conversation-level sentiment for each channel of the call. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :annotations => + list( + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1CallAnnotation.t() + ) + | nil, + :entities => + %{ + optional(String.t()) => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1Entity.t() + } + | nil, + :intents => + %{ + optional(String.t()) => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1Intent.t() + } + | nil, + :issueModelResult => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1IssueModelResult.t() + | nil, + :phraseMatchers => + %{ + optional(String.t()) => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1PhraseMatchData.t() + } + | nil, + :sentiments => + list( + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSentiment.t() + ) + | nil + } + + field(:annotations, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1CallAnnotation, + type: :list + ) + + field(:entities, + as: GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1Entity, + type: :map + ) + + field(:intents, + as: GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1Intent, + type: :map + ) + + field(:issueModelResult, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1IssueModelResult + ) + + field(:phraseMatchers, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1PhraseMatchData, + type: :map + ) + + field(:sentiments, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSentiment, + type: :list + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AnalysisResultCallAnalysisMetadata do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AnalysisResultCallAnalysisMetadata.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AnalysisResultCallAnalysisMetadata 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_annotation_boundary.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_annotation_boundary.ex new file mode 100644 index 0000000000..1e0c27bb76 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_annotation_boundary.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.GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary do + @moduledoc """ + A point in a conversation that marks the start or the end of an annotation. + + ## Attributes + + * `transcriptIndex` (*type:* `integer()`, *default:* `nil`) - The index in the sequence of transcribed pieces of the conversation where the boundary is located. This index starts at zero. + * `wordIndex` (*type:* `integer()`, *default:* `nil`) - The word index of this boundary with respect to the first word in the transcript piece. This index starts at zero. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :transcriptIndex => integer() | nil, + :wordIndex => integer() | nil + } + + field(:transcriptIndex) + field(:wordIndex) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary 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_annotator_selector.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_annotator_selector.ex new file mode 100644 index 0000000000..892f2a37d3 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_annotator_selector.ex @@ -0,0 +1,89 @@ +# 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.GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector do + @moduledoc """ + Selector of all available annotators and phrase matchers to run. + + ## Attributes + + * `issueModels` (*type:* `list(String.t)`, *default:* `nil`) - The issue model to run. If not provided, the most recently deployed topic model will be used. The provided issue model will only be used for inference if the issue model is deployed and if run_issue_model_annotator is set to true. If more than one issue model is provided, only the first provided issue model will be used for inference. + * `phraseMatchers` (*type:* `list(String.t)`, *default:* `nil`) - The list of phrase matchers to run. If not provided, all active phrase matchers will be used. If inactive phrase matchers are provided, they will not be used. Phrase matchers will be run only if run_phrase_matcher_annotator is set to true. Format: projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher} + * `runEntityAnnotator` (*type:* `boolean()`, *default:* `nil`) - Whether to run the entity annotator. + * `runIntentAnnotator` (*type:* `boolean()`, *default:* `nil`) - Whether to run the intent annotator. + * `runInterruptionAnnotator` (*type:* `boolean()`, *default:* `nil`) - Whether to run the interruption annotator. + * `runIssueModelAnnotator` (*type:* `boolean()`, *default:* `nil`) - Whether to run the issue model annotator. A model should have already been deployed for this to take effect. + * `runPhraseMatcherAnnotator` (*type:* `boolean()`, *default:* `nil`) - Whether to run the active phrase matcher annotator(s). + * `runSentimentAnnotator` (*type:* `boolean()`, *default:* `nil`) - Whether to run the sentiment annotator. + * `runSilenceAnnotator` (*type:* `boolean()`, *default:* `nil`) - Whether to run the silence annotator. + * `runSummarizationAnnotator` (*type:* `boolean()`, *default:* `nil`) - Whether to run the summarization annotator. + * `summarizationConfig` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorSummarizationConfig.t`, *default:* `nil`) - Configuration for the summarization annotator. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :issueModels => list(String.t()) | nil, + :phraseMatchers => list(String.t()) | nil, + :runEntityAnnotator => boolean() | nil, + :runIntentAnnotator => boolean() | nil, + :runInterruptionAnnotator => boolean() | nil, + :runIssueModelAnnotator => boolean() | nil, + :runPhraseMatcherAnnotator => boolean() | nil, + :runSentimentAnnotator => boolean() | nil, + :runSilenceAnnotator => boolean() | nil, + :runSummarizationAnnotator => boolean() | nil, + :summarizationConfig => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorSummarizationConfig.t() + | nil + } + + field(:issueModels, type: :list) + field(:phraseMatchers, type: :list) + field(:runEntityAnnotator) + field(:runIntentAnnotator) + field(:runInterruptionAnnotator) + field(:runIssueModelAnnotator) + field(:runPhraseMatcherAnnotator) + field(:runSentimentAnnotator) + field(:runSilenceAnnotator) + field(:runSummarizationAnnotator) + + field(:summarizationConfig, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorSummarizationConfig + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector 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_annotator_selector_summarization_config.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_annotator_selector_summarization_config.ex new file mode 100644 index 0000000000..4fb33a6259 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_annotator_selector_summarization_config.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.GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorSummarizationConfig do + @moduledoc """ + Configuration for summarization. + + ## Attributes + + * `conversationProfile` (*type:* `String.t`, *default:* `nil`) - Resource name of the Dialogflow conversation profile. Format: projects/{project}/locations/{location}/conversationProfiles/{conversation_profile} + * `summarizationModel` (*type:* `String.t`, *default:* `nil`) - Default summarization model to be used. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :conversationProfile => String.t() | nil, + :summarizationModel => String.t() | nil + } + + field(:conversationProfile) + field(:summarizationModel) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorSummarizationConfig do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorSummarizationConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorSummarizationConfig 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_answer_feedback.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_answer_feedback.ex new file mode 100644 index 0000000000..78ba602aeb --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_answer_feedback.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AnswerFeedback do + @moduledoc """ + The feedback that the customer has about a certain answer in the conversation. + + ## Attributes + + * `clicked` (*type:* `boolean()`, *default:* `nil`) - Indicates whether an answer or item was clicked by the human agent. + * `correctnessLevel` (*type:* `String.t`, *default:* `nil`) - The correctness level of an answer. + * `displayed` (*type:* `boolean()`, *default:* `nil`) - Indicates whether an answer or item was displayed to the human agent in the agent desktop UI. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :clicked => boolean() | nil, + :correctnessLevel => String.t() | nil, + :displayed => boolean() | nil + } + + field(:clicked) + field(:correctnessLevel) + field(:displayed) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AnswerFeedback do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AnswerFeedback.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AnswerFeedback 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_article_suggestion_data.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_article_suggestion_data.ex new file mode 100644 index 0000000000..70889fb991 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_article_suggestion_data.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.GoogleCloudContactcenterinsightsV1alpha1ArticleSuggestionData do + @moduledoc """ + Agent Assist Article Suggestion data. + + ## Attributes + + * `confidenceScore` (*type:* `number()`, *default:* `nil`) - The system's confidence score that this article is a good match for this conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely certain). + * `metadata` (*type:* `map()`, *default:* `nil`) - Map that contains metadata about the Article Suggestion and the document that it originates from. + * `queryRecord` (*type:* `String.t`, *default:* `nil`) - The name of the answer record. Format: projects/{project}/locations/{location}/answerRecords/{answer_record} + * `source` (*type:* `String.t`, *default:* `nil`) - The knowledge document that this answer was extracted from. Format: projects/{project}/knowledgeBases/{knowledge_base}/documents/{document} + * `title` (*type:* `String.t`, *default:* `nil`) - Article title. + * `uri` (*type:* `String.t`, *default:* `nil`) - Article URI. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :confidenceScore => number() | nil, + :metadata => map() | nil, + :queryRecord => String.t() | nil, + :source => String.t() | nil, + :title => String.t() | nil, + :uri => String.t() | nil + } + + field(:confidenceScore) + field(:metadata, type: :map) + field(:queryRecord) + field(:source) + field(:title) + field(:uri) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ArticleSuggestionData do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ArticleSuggestionData.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ArticleSuggestionData 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_bulk_analyze_conversations_metadata.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_bulk_analyze_conversations_metadata.ex index e1808854e6..1cf28817da 100644 --- a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_bulk_analyze_conversations_metadata.ex +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_bulk_analyze_conversations_metadata.ex @@ -25,6 +25,7 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - The time the operation was created. * `endTime` (*type:* `DateTime.t`, *default:* `nil`) - The time the operation finished running. * `failedAnalysesCount` (*type:* `integer()`, *default:* `nil`) - The number of requested analyses that have failed so far. + * `partialErrors` (*type:* `list(GoogleApi.ContactCenterInsights.V1.Model.GoogleRpcStatus.t)`, *default:* `nil`) - Output only. Partial errors during bulk analyze operation that might cause the operation output to be incomplete. * `request` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsRequest.t`, *default:* `nil`) - The original request for bulk analyze. * `totalRequestedAnalysesCount` (*type:* `integer()`, *default:* `nil`) - Total number of analyses requested. Computed by the number of conversations returned by `filter` multiplied by `analysis_percentage` in the request. """ @@ -36,6 +37,8 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig :createTime => DateTime.t() | nil, :endTime => DateTime.t() | nil, :failedAnalysesCount => integer() | nil, + :partialErrors => + list(GoogleApi.ContactCenterInsights.V1.Model.GoogleRpcStatus.t()) | nil, :request => GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsRequest.t() | nil, @@ -46,6 +49,7 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig field(:createTime, as: DateTime) field(:endTime, as: DateTime) field(:failedAnalysesCount) + field(:partialErrors, as: GoogleApi.ContactCenterInsights.V1.Model.GoogleRpcStatus, type: :list) field(:request, as: diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_bulk_analyze_conversations_request.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_bulk_analyze_conversations_request.ex index 8f727aa32a..1fb0570e3d 100644 --- a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_bulk_analyze_conversations_request.ex +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_bulk_analyze_conversations_request.ex @@ -22,6 +22,7 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig ## Attributes * `analysisPercentage` (*type:* `number()`, *default:* `nil`) - Required. Percentage of selected conversation to analyze, between [0, 100]. + * `annotatorSelector` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector.t`, *default:* `nil`) - To select the annotators to run and the phrase matchers to use (if any). If not specified, all annotators will be run. * `filter` (*type:* `String.t`, *default:* `nil`) - Required. Filter used to select the subset of conversations to analyze. * `parent` (*type:* `String.t`, *default:* `nil`) - Required. The parent resource to create analyses in. """ @@ -30,11 +31,20 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig @type t :: %__MODULE__{ :analysisPercentage => number() | nil, + :annotatorSelector => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector.t() + | nil, :filter => String.t() | nil, :parent => String.t() | nil } field(:analysisPercentage) + + field(:annotatorSelector, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector + ) + field(:filter) field(:parent) end diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_bulk_delete_conversations_metadata.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_bulk_delete_conversations_metadata.ex new file mode 100644 index 0000000000..9201475c9e --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_bulk_delete_conversations_metadata.ex @@ -0,0 +1,69 @@ +# 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.GoogleCloudContactcenterinsightsV1alpha1BulkDeleteConversationsMetadata do + @moduledoc """ + The metadata for a bulk delete conversations operation. + + ## Attributes + + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - The time the operation was created. + * `endTime` (*type:* `DateTime.t`, *default:* `nil`) - The time the operation finished running. + * `partialErrors` (*type:* `list(GoogleApi.ContactCenterInsights.V1.Model.GoogleRpcStatus.t)`, *default:* `nil`) - Partial errors during bulk delete conversations operation that might cause the operation output to be incomplete. + * `request` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1BulkDeleteConversationsRequest.t`, *default:* `nil`) - The original request for bulk delete. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :createTime => DateTime.t() | nil, + :endTime => DateTime.t() | nil, + :partialErrors => + list(GoogleApi.ContactCenterInsights.V1.Model.GoogleRpcStatus.t()) | nil, + :request => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1BulkDeleteConversationsRequest.t() + | nil + } + + field(:createTime, as: DateTime) + field(:endTime, as: DateTime) + field(:partialErrors, as: GoogleApi.ContactCenterInsights.V1.Model.GoogleRpcStatus, type: :list) + + field(:request, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1BulkDeleteConversationsRequest + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1BulkDeleteConversationsMetadata do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1BulkDeleteConversationsMetadata.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1BulkDeleteConversationsMetadata 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_bulk_delete_conversations_request.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_bulk_delete_conversations_request.ex new file mode 100644 index 0000000000..6159bc5c98 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_bulk_delete_conversations_request.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.GoogleCloudContactcenterinsightsV1alpha1BulkDeleteConversationsRequest do + @moduledoc """ + The request to delete conversations in bulk. + + ## Attributes + + * `filter` (*type:* `String.t`, *default:* `nil`) - Filter used to select the subset of conversations to delete. + * `force` (*type:* `boolean()`, *default:* `nil`) - If set to true, all of this conversation's analyses will also be deleted. Otherwise, the request will only succeed if the conversation has no analyses. + * `maxDeleteCount` (*type:* `integer()`, *default:* `nil`) - Maximum number of conversations to delete. + * `parent` (*type:* `String.t`, *default:* `nil`) - Required. The parent resource to delete conversations from. Format: projects/{project}/locations/{location} + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :filter => String.t() | nil, + :force => boolean() | nil, + :maxDeleteCount => integer() | nil, + :parent => String.t() | nil + } + + field(:filter) + field(:force) + field(:maxDeleteCount) + field(:parent) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1BulkDeleteConversationsRequest do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1BulkDeleteConversationsRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1BulkDeleteConversationsRequest 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_bulk_delete_conversations_response.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_bulk_delete_conversations_response.ex new file mode 100644 index 0000000000..ed73d3d1cc --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_bulk_delete_conversations_response.ex @@ -0,0 +1,48 @@ +# 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.GoogleCloudContactcenterinsightsV1alpha1BulkDeleteConversationsResponse do + @moduledoc """ + The response for a bulk delete conversations operation. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1BulkDeleteConversationsResponse do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1BulkDeleteConversationsResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1BulkDeleteConversationsResponse 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_call_annotation.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_call_annotation.ex new file mode 100644 index 0000000000..c9b7c4fd71 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_call_annotation.ex @@ -0,0 +1,142 @@ +# 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.GoogleCloudContactcenterinsightsV1alpha1CallAnnotation do + @moduledoc """ + A piece of metadata that applies to a window of a call. + + ## Attributes + + * `annotationEndBoundary` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary.t`, *default:* `nil`) - The boundary in the conversation where the annotation ends, inclusive. + * `annotationStartBoundary` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary.t`, *default:* `nil`) - The boundary in the conversation where the annotation starts, inclusive. + * `channelTag` (*type:* `integer()`, *default:* `nil`) - The channel of the audio where the annotation occurs. For single-channel audio, this field is not populated. + * `entityMentionData` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1EntityMentionData.t`, *default:* `nil`) - Data specifying an entity mention. + * `holdData` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1HoldData.t`, *default:* `nil`) - Data specifying a hold. + * `intentMatchData` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1IntentMatchData.t`, *default:* `nil`) - Data specifying an intent match. + * `interruptionData` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1InterruptionData.t`, *default:* `nil`) - Data specifying an interruption. + * `issueMatchData` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1IssueMatchData.t`, *default:* `nil`) - Data specifying an issue match. + * `phraseMatchData` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1PhraseMatchData.t`, *default:* `nil`) - Data specifying a phrase match. + * `sentimentData` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SentimentData.t`, *default:* `nil`) - Data specifying sentiment. + * `silenceData` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SilenceData.t`, *default:* `nil`) - Data specifying silence. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :annotationEndBoundary => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary.t() + | nil, + :annotationStartBoundary => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary.t() + | nil, + :channelTag => integer() | nil, + :entityMentionData => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1EntityMentionData.t() + | nil, + :holdData => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1HoldData.t() + | nil, + :intentMatchData => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1IntentMatchData.t() + | nil, + :interruptionData => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1InterruptionData.t() + | nil, + :issueMatchData => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1IssueMatchData.t() + | nil, + :phraseMatchData => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1PhraseMatchData.t() + | nil, + :sentimentData => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SentimentData.t() + | nil, + :silenceData => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SilenceData.t() + | nil + } + + field(:annotationEndBoundary, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary + ) + + field(:annotationStartBoundary, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary + ) + + field(:channelTag) + + field(:entityMentionData, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1EntityMentionData + ) + + field(:holdData, + as: GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1HoldData + ) + + field(:intentMatchData, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1IntentMatchData + ) + + field(:interruptionData, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1InterruptionData + ) + + field(:issueMatchData, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1IssueMatchData + ) + + field(:phraseMatchData, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1PhraseMatchData + ) + + field(:sentimentData, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SentimentData + ) + + field(:silenceData, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SilenceData + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1CallAnnotation do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1CallAnnotation.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1CallAnnotation 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_conversation.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_conversation.ex new file mode 100644 index 0000000000..7abe17bb60 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_conversation.ex @@ -0,0 +1,172 @@ +# 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.GoogleCloudContactcenterinsightsV1alpha1Conversation do + @moduledoc """ + The conversation resource. + + ## Attributes + + * `agentId` (*type:* `String.t`, *default:* `nil`) - An opaque, user-specified string representing the human agent who handled the conversation. + * `callMetadata` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationCallMetadata.t`, *default:* `nil`) - Call-specific metadata. + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time at which the conversation was created. + * `dataSource` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationDataSource.t`, *default:* `nil`) - The source of the audio and transcription for the conversation. + * `dialogflowIntents` (*type:* `%{optional(String.t) => GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1DialogflowIntent.t}`, *default:* `nil`) - Output only. All the matched Dialogflow intents in the call. The key corresponds to a Dialogflow intent, format: projects/{project}/agent/{agent}/intents/{intent} + * `duration` (*type:* `String.t`, *default:* `nil`) - Output only. The duration of the conversation. + * `expireTime` (*type:* `DateTime.t`, *default:* `nil`) - The time at which this conversation should expire. After this time, the conversation data and any associated analyses will be deleted. + * `labels` (*type:* `map()`, *default:* `nil`) - A map for the user to specify any custom fields. A maximum of 20 labels per conversation is allowed, with a maximum of 256 characters per entry. + * `languageCode` (*type:* `String.t`, *default:* `nil`) - A user-specified language code for the conversation. + * `latestAnalysis` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1Analysis.t`, *default:* `nil`) - Output only. The conversation's latest analysis, if one exists. + * `latestSummary` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationSummarizationSuggestionData.t`, *default:* `nil`) - Output only. Latest summary of the conversation. + * `medium` (*type:* `String.t`, *default:* `nil`) - Immutable. The conversation medium, if unspecified will default to PHONE_CALL. + * `name` (*type:* `String.t`, *default:* `nil`) - Immutable. The resource name of the conversation. Format: projects/{project}/locations/{location}/conversations/{conversation} + * `obfuscatedUserId` (*type:* `String.t`, *default:* `nil`) - Obfuscated user ID which the customer sent to us. + * `qualityMetadata` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadata.t`, *default:* `nil`) - Conversation metadata related to quality management. + * `runtimeAnnotations` (*type:* `list(GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1RuntimeAnnotation.t)`, *default:* `nil`) - Output only. The annotations that were generated during the customer and agent interaction. + * `startTime` (*type:* `DateTime.t`, *default:* `nil`) - The time at which the conversation started. + * `transcript` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationTranscript.t`, *default:* `nil`) - Output only. The conversation transcript. + * `ttl` (*type:* `String.t`, *default:* `nil`) - Input only. The TTL for this resource. If specified, then this TTL will be used to calculate the expire time. + * `turnCount` (*type:* `integer()`, *default:* `nil`) - Output only. The number of turns in the conversation. + * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The most recent time at which the conversation was updated. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :agentId => String.t() | nil, + :callMetadata => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationCallMetadata.t() + | nil, + :createTime => DateTime.t() | nil, + :dataSource => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationDataSource.t() + | nil, + :dialogflowIntents => + %{ + optional(String.t()) => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1DialogflowIntent.t() + } + | nil, + :duration => String.t() | nil, + :expireTime => DateTime.t() | nil, + :labels => map() | nil, + :languageCode => String.t() | nil, + :latestAnalysis => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1Analysis.t() + | nil, + :latestSummary => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationSummarizationSuggestionData.t() + | nil, + :medium => String.t() | nil, + :name => String.t() | nil, + :obfuscatedUserId => String.t() | nil, + :qualityMetadata => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadata.t() + | nil, + :runtimeAnnotations => + list( + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1RuntimeAnnotation.t() + ) + | nil, + :startTime => DateTime.t() | nil, + :transcript => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationTranscript.t() + | nil, + :ttl => String.t() | nil, + :turnCount => integer() | nil, + :updateTime => DateTime.t() | nil + } + + field(:agentId) + + field(:callMetadata, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationCallMetadata + ) + + field(:createTime, as: DateTime) + + field(:dataSource, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationDataSource + ) + + field(:dialogflowIntents, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1DialogflowIntent, + type: :map + ) + + field(:duration) + field(:expireTime, as: DateTime) + field(:labels, type: :map) + field(:languageCode) + + field(:latestAnalysis, + as: GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1Analysis + ) + + field(:latestSummary, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationSummarizationSuggestionData + ) + + field(:medium) + field(:name) + field(:obfuscatedUserId) + + field(:qualityMetadata, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadata + ) + + field(:runtimeAnnotations, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1RuntimeAnnotation, + type: :list + ) + + field(:startTime, as: DateTime) + + field(:transcript, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationTranscript + ) + + field(:ttl) + field(:turnCount) + field(:updateTime, as: DateTime) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1Conversation do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1Conversation.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1Conversation 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_conversation_call_metadata.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_conversation_call_metadata.ex new file mode 100644 index 0000000000..8e17e80b06 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_conversation_call_metadata.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.GoogleCloudContactcenterinsightsV1alpha1ConversationCallMetadata do + @moduledoc """ + Call-specific metadata. + + ## Attributes + + * `agentChannel` (*type:* `integer()`, *default:* `nil`) - The audio channel that contains the agent. + * `customerChannel` (*type:* `integer()`, *default:* `nil`) - The audio channel that contains the customer. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :agentChannel => integer() | nil, + :customerChannel => integer() | nil + } + + field(:agentChannel) + field(:customerChannel) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationCallMetadata do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationCallMetadata.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationCallMetadata 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_conversation_data_source.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_conversation_data_source.ex new file mode 100644 index 0000000000..7db54676ec --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_conversation_data_source.ex @@ -0,0 +1,66 @@ +# 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.GoogleCloudContactcenterinsightsV1alpha1ConversationDataSource do + @moduledoc """ + The conversation source, which is a combination of transcript and audio. + + ## Attributes + + * `dialogflowSource` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1DialogflowSource.t`, *default:* `nil`) - The source when the conversation comes from Dialogflow. + * `gcsSource` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GcsSource.t`, *default:* `nil`) - A Cloud Storage location specification for the audio and transcript. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :dialogflowSource => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1DialogflowSource.t() + | nil, + :gcsSource => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GcsSource.t() + | nil + } + + field(:dialogflowSource, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1DialogflowSource + ) + + field(:gcsSource, + as: GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GcsSource + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationDataSource do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationDataSource.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationDataSource 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_conversation_level_sentiment.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_conversation_level_sentiment.ex new file mode 100644 index 0000000000..684645d888 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_conversation_level_sentiment.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.GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSentiment do + @moduledoc """ + One channel of conversation-level sentiment data. + + ## Attributes + + * `channelTag` (*type:* `integer()`, *default:* `nil`) - The channel of the audio that the data applies to. + * `sentimentData` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SentimentData.t`, *default:* `nil`) - Data specifying sentiment. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :channelTag => integer() | nil, + :sentimentData => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SentimentData.t() + | nil + } + + field(:channelTag) + + field(:sentimentData, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SentimentData + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSentiment do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSentiment.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSentiment 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_conversation_participant.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_conversation_participant.ex new file mode 100644 index 0000000000..ea914cbc43 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_conversation_participant.ex @@ -0,0 +1,65 @@ +# 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.GoogleCloudContactcenterinsightsV1alpha1ConversationParticipant do + @moduledoc """ + The call participant speaking for a given utterance. + + ## Attributes + + * `dialogflowParticipant` (*type:* `String.t`, *default:* `nil`) - Deprecated. Use `dialogflow_participant_name` instead. The name of the Dialogflow participant. Format: projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant} + * `dialogflowParticipantName` (*type:* `String.t`, *default:* `nil`) - The name of the participant provided by Dialogflow. Format: projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant} + * `obfuscatedExternalUserId` (*type:* `String.t`, *default:* `nil`) - Obfuscated user ID from Dialogflow. + * `role` (*type:* `String.t`, *default:* `nil`) - The role of the participant. + * `userId` (*type:* `String.t`, *default:* `nil`) - A user-specified ID representing the participant. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :dialogflowParticipant => String.t() | nil, + :dialogflowParticipantName => String.t() | nil, + :obfuscatedExternalUserId => String.t() | nil, + :role => String.t() | nil, + :userId => String.t() | nil + } + + field(:dialogflowParticipant) + field(:dialogflowParticipantName) + field(:obfuscatedExternalUserId) + field(:role) + field(:userId) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationParticipant do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationParticipant.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationParticipant 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_conversation_quality_metadata.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_conversation_quality_metadata.ex new file mode 100644 index 0000000000..10dea46bb3 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_conversation_quality_metadata.ex @@ -0,0 +1,71 @@ +# 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.GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadata do + @moduledoc """ + Conversation metadata related to quality management. + + ## Attributes + + * `agentInfo` (*type:* `list(GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadataAgentInfo.t)`, *default:* `nil`) - Information about agents involved in the call. + * `customerSatisfactionRating` (*type:* `integer()`, *default:* `nil`) - An arbitrary integer value indicating the customer's satisfaction rating. + * `menuPath` (*type:* `String.t`, *default:* `nil`) - An arbitrary string value specifying the menu path the customer took. + * `waitDuration` (*type:* `String.t`, *default:* `nil`) - The amount of time the customer waited to connect with an agent. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :agentInfo => + list( + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadataAgentInfo.t() + ) + | nil, + :customerSatisfactionRating => integer() | nil, + :menuPath => String.t() | nil, + :waitDuration => String.t() | nil + } + + field(:agentInfo, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadataAgentInfo, + type: :list + ) + + field(:customerSatisfactionRating) + field(:menuPath) + field(:waitDuration) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadata do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadata.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadata 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_conversation_quality_metadata_agent_info.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_conversation_quality_metadata_agent_info.ex new file mode 100644 index 0000000000..9471b1f82c --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_conversation_quality_metadata_agent_info.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.GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadataAgentInfo do + @moduledoc """ + Information about an agent involved in the conversation. + + ## Attributes + + * `agentId` (*type:* `String.t`, *default:* `nil`) - A user-specified string representing the agent. + * `displayName` (*type:* `String.t`, *default:* `nil`) - The agent's name. + * `dispositionCode` (*type:* `String.t`, *default:* `nil`) - A user-provided string indicating the outcome of the agent's segment of the call. + * `team` (*type:* `String.t`, *default:* `nil`) - A user-specified string representing the agent's team. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :agentId => String.t() | nil, + :displayName => String.t() | nil, + :dispositionCode => String.t() | nil, + :team => String.t() | nil + } + + field(:agentId) + field(:displayName) + field(:dispositionCode) + field(:team) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadataAgentInfo do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadataAgentInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadataAgentInfo 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_conversation_summarization_suggestion_data.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_conversation_summarization_suggestion_data.ex new file mode 100644 index 0000000000..d5b1c6556c --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_conversation_summarization_suggestion_data.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.GoogleCloudContactcenterinsightsV1alpha1ConversationSummarizationSuggestionData do + @moduledoc """ + Conversation summarization suggestion data. + + ## Attributes + + * `answerRecord` (*type:* `String.t`, *default:* `nil`) - The name of the answer record. Format: projects/{project}/locations/{location}/answerRecords/{answer_record} + * `confidence` (*type:* `number()`, *default:* `nil`) - The confidence score of the summarization. + * `conversationModel` (*type:* `String.t`, *default:* `nil`) - The name of the model that generates this summary. Format: projects/{project}/locations/{location}/conversationModels/{conversation_model} + * `metadata` (*type:* `map()`, *default:* `nil`) - A map that contains metadata about the summarization and the document from which it originates. + * `text` (*type:* `String.t`, *default:* `nil`) - The summarization content that is concatenated into one string. + * `textSections` (*type:* `map()`, *default:* `nil`) - The summarization content that is divided into sections. The key is the section's name and the value is the section's content. There is no specific format for the key or value. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :answerRecord => String.t() | nil, + :confidence => number() | nil, + :conversationModel => String.t() | nil, + :metadata => map() | nil, + :text => String.t() | nil, + :textSections => map() | nil + } + + field(:answerRecord) + field(:confidence) + field(:conversationModel) + field(:metadata, type: :map) + field(:text) + field(:textSections, type: :map) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationSummarizationSuggestionData do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationSummarizationSuggestionData.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationSummarizationSuggestionData 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_conversation_transcript.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_conversation_transcript.ex new file mode 100644 index 0000000000..16cf0688b0 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_conversation_transcript.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.GoogleCloudContactcenterinsightsV1alpha1ConversationTranscript do + @moduledoc """ + A message representing the transcript of a conversation. + + ## Attributes + + * `transcriptSegments` (*type:* `list(GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegment.t)`, *default:* `nil`) - A list of sequential transcript segments that comprise the conversation. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :transcriptSegments => + list( + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegment.t() + ) + | nil + } + + field(:transcriptSegments, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegment, + type: :list + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationTranscript do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationTranscript.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationTranscript 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_conversation_transcript_transcript_segment.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_conversation_transcript_transcript_segment.ex new file mode 100644 index 0000000000..0cca7f31e9 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_conversation_transcript_transcript_segment.ex @@ -0,0 +1,106 @@ +# 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.GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegment do + @moduledoc """ + A segment of a full transcript. + + ## Attributes + + * `channelTag` (*type:* `integer()`, *default:* `nil`) - For conversations derived from multi-channel audio, this is the channel number corresponding to the audio from that channel. For audioChannelCount = N, its output values can range from '1' to 'N'. A channel tag of 0 indicates that the audio is mono. + * `confidence` (*type:* `number()`, *default:* `nil`) - A confidence estimate between 0.0 and 1.0 of the fidelity of this segment. A default value of 0.0 indicates that the value is unset. + * `dialogflowSegmentMetadata` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentDialogflowSegmentMetadata.t`, *default:* `nil`) - CCAI metadata relating to the current transcript segment. + * `languageCode` (*type:* `String.t`, *default:* `nil`) - The language code of this segment as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example: "en-US". + * `messageTime` (*type:* `DateTime.t`, *default:* `nil`) - The time that the message occurred, if provided. + * `segmentParticipant` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationParticipant.t`, *default:* `nil`) - The participant of this segment. + * `sentiment` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SentimentData.t`, *default:* `nil`) - The sentiment for this transcript segment. + * `text` (*type:* `String.t`, *default:* `nil`) - The text of this segment. + * `words` (*type:* `list(GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentWordInfo.t)`, *default:* `nil`) - A list of the word-specific information for each word in the segment. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :channelTag => integer() | nil, + :confidence => number() | nil, + :dialogflowSegmentMetadata => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentDialogflowSegmentMetadata.t() + | nil, + :languageCode => String.t() | nil, + :messageTime => DateTime.t() | nil, + :segmentParticipant => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationParticipant.t() + | nil, + :sentiment => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SentimentData.t() + | nil, + :text => String.t() | nil, + :words => + list( + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentWordInfo.t() + ) + | nil + } + + field(:channelTag) + field(:confidence) + + field(:dialogflowSegmentMetadata, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentDialogflowSegmentMetadata + ) + + field(:languageCode) + field(:messageTime, as: DateTime) + + field(:segmentParticipant, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationParticipant + ) + + field(:sentiment, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SentimentData + ) + + field(:text) + + field(:words, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentWordInfo, + type: :list + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegment do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegment.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegment 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_conversation_transcript_transcript_segment_dialogflow_segment_metadata.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_conversation_transcript_transcript_segment_dialogflow_segment_metadata.ex new file mode 100644 index 0000000000..5dd97ed4ab --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_conversation_transcript_transcript_segment_dialogflow_segment_metadata.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.GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentDialogflowSegmentMetadata do + @moduledoc """ + Metadata from Dialogflow relating to the current transcript segment. + + ## Attributes + + * `smartReplyAllowlistCovered` (*type:* `boolean()`, *default:* `nil`) - Whether the transcript segment was covered under the configured smart reply allowlist in Agent Assist. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :smartReplyAllowlistCovered => boolean() | nil + } + + field(:smartReplyAllowlistCovered) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentDialogflowSegmentMetadata do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentDialogflowSegmentMetadata.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentDialogflowSegmentMetadata 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_conversation_transcript_transcript_segment_word_info.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_conversation_transcript_transcript_segment_word_info.ex new file mode 100644 index 0000000000..92387fb3fd --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_conversation_transcript_transcript_segment_word_info.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.GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentWordInfo do + @moduledoc """ + Word-level info for words in a transcript. + + ## Attributes + + * `confidence` (*type:* `number()`, *default:* `nil`) - A confidence estimate between 0.0 and 1.0 of the fidelity of this word. A default value of 0.0 indicates that the value is unset. + * `endOffset` (*type:* `String.t`, *default:* `nil`) - Time offset of the end of this word relative to the beginning of the total conversation. + * `startOffset` (*type:* `String.t`, *default:* `nil`) - Time offset of the start of this word relative to the beginning of the total conversation. + * `word` (*type:* `String.t`, *default:* `nil`) - The word itself. Includes punctuation marks that surround the word. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :confidence => number() | nil, + :endOffset => String.t() | nil, + :startOffset => String.t() | nil, + :word => String.t() | nil + } + + field(:confidence) + field(:endOffset) + field(:startOffset) + field(:word) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentWordInfo do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentWordInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentWordInfo 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_create_analysis_operation_metadata.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_create_analysis_operation_metadata.ex index 6574eff41c..f93df8d4d2 100644 --- a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_create_analysis_operation_metadata.ex +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_create_analysis_operation_metadata.ex @@ -21,6 +21,7 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig ## Attributes + * `annotatorSelector` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector.t`, *default:* `nil`) - Output only. The annotator selector used for the analysis (if any). * `conversation` (*type:* `String.t`, *default:* `nil`) - Output only. The Conversation that this Analysis Operation belongs to. * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time the operation was created. * `endTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time the operation finished running. @@ -29,11 +30,19 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :annotatorSelector => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector.t() + | nil, :conversation => String.t() | nil, :createTime => DateTime.t() | nil, :endTime => DateTime.t() | nil } + field(:annotatorSelector, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector + ) + field(:conversation) field(:createTime, as: DateTime) field(:endTime, as: DateTime) diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_dialogflow_intent.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_dialogflow_intent.ex new file mode 100644 index 0000000000..417d02ef73 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_dialogflow_intent.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.GoogleCloudContactcenterinsightsV1alpha1DialogflowIntent do + @moduledoc """ + The data for a Dialogflow intent. Represents a detected intent in the conversation, e.g. MAKES_PROMISE. + + ## Attributes + + * `displayName` (*type:* `String.t`, *default:* `nil`) - The human-readable name of the intent. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :displayName => String.t() | nil + } + + field(:displayName) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1DialogflowIntent do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1DialogflowIntent.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1DialogflowIntent 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_dialogflow_interaction_data.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_dialogflow_interaction_data.ex new file mode 100644 index 0000000000..b9e8678ad9 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_dialogflow_interaction_data.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.GoogleCloudContactcenterinsightsV1alpha1DialogflowInteractionData do + @moduledoc """ + Dialogflow interaction data. + + ## Attributes + + * `confidence` (*type:* `number()`, *default:* `nil`) - The confidence of the match ranging from 0.0 (completely uncertain) to 1.0 (completely certain). + * `dialogflowIntentId` (*type:* `String.t`, *default:* `nil`) - The Dialogflow intent resource path. Format: projects/{project}/agent/{agent}/intents/{intent} + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :confidence => number() | nil, + :dialogflowIntentId => String.t() | nil + } + + field(:confidence) + field(:dialogflowIntentId) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1DialogflowInteractionData do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1DialogflowInteractionData.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1DialogflowInteractionData 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_dialogflow_source.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_dialogflow_source.ex new file mode 100644 index 0000000000..3cea3b93fd --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_dialogflow_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.GoogleCloudContactcenterinsightsV1alpha1DialogflowSource do + @moduledoc """ + A Dialogflow source of conversation data. + + ## Attributes + + * `audioUri` (*type:* `String.t`, *default:* `nil`) - Cloud Storage URI that points to a file that contains the conversation audio. + * `dialogflowConversation` (*type:* `String.t`, *default:* `nil`) - Output only. The name of the Dialogflow conversation that this conversation resource is derived from. Format: projects/{project}/locations/{location}/conversations/{conversation} + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :audioUri => String.t() | nil, + :dialogflowConversation => String.t() | nil + } + + field(:audioUri) + field(:dialogflowConversation) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1DialogflowSource do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1DialogflowSource.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1DialogflowSource 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_entity.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_entity.ex new file mode 100644 index 0000000000..ce2ef947fa --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_entity.ex @@ -0,0 +1,70 @@ +# 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.GoogleCloudContactcenterinsightsV1alpha1Entity do + @moduledoc """ + The data for an entity annotation. Represents a phrase in the conversation that is a known entity, such as a person, an organization, or location. + + ## Attributes + + * `displayName` (*type:* `String.t`, *default:* `nil`) - The representative name for the entity. + * `metadata` (*type:* `map()`, *default:* `nil`) - Metadata associated with the entity. For most entity types, the metadata is a Wikipedia URL (`wikipedia_url`) and Knowledge Graph MID (`mid`), if they are available. For the metadata associated with other entity types, see the Type table below. + * `salience` (*type:* `number()`, *default:* `nil`) - The salience score associated with the entity in the [0, 1.0] range. The salience score for an entity provides information about the importance or centrality of that entity to the entire document text. Scores closer to 0 are less salient, while scores closer to 1.0 are highly salient. + * `sentiment` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SentimentData.t`, *default:* `nil`) - The aggregate sentiment expressed for this entity in the conversation. + * `type` (*type:* `String.t`, *default:* `nil`) - The entity type. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :displayName => String.t() | nil, + :metadata => map() | nil, + :salience => number() | nil, + :sentiment => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SentimentData.t() + | nil, + :type => String.t() | nil + } + + field(:displayName) + field(:metadata, type: :map) + field(:salience) + + field(:sentiment, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SentimentData + ) + + field(:type) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1Entity do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1Entity.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1Entity 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_entity_mention_data.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_entity_mention_data.ex new file mode 100644 index 0000000000..1df872f962 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_entity_mention_data.ex @@ -0,0 +1,66 @@ +# 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.GoogleCloudContactcenterinsightsV1alpha1EntityMentionData do + @moduledoc """ + The data for an entity mention annotation. This represents a mention of an `Entity` in the conversation. + + ## Attributes + + * `entityUniqueId` (*type:* `String.t`, *default:* `nil`) - The key of this entity in conversation entities. Can be used to retrieve the exact `Entity` this mention is attached to. + * `sentiment` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SentimentData.t`, *default:* `nil`) - Sentiment expressed for this mention of the entity. + * `type` (*type:* `String.t`, *default:* `nil`) - The type of the entity mention. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :entityUniqueId => String.t() | nil, + :sentiment => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SentimentData.t() + | nil, + :type => String.t() | nil + } + + field(:entityUniqueId) + + field(:sentiment, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SentimentData + ) + + field(:type) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1EntityMentionData do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1EntityMentionData.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1EntityMentionData 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_export_issue_model_metadata.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_export_issue_model_metadata.ex new file mode 100644 index 0000000000..e67755ef6b --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_export_issue_model_metadata.ex @@ -0,0 +1,65 @@ +# 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.GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelMetadata do + @moduledoc """ + Metadata used for export issue model. + + ## Attributes + + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - The time the operation was created. + * `endTime` (*type:* `DateTime.t`, *default:* `nil`) - The time the operation finished running. + * `request` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequest.t`, *default:* `nil`) - The original export request. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :createTime => DateTime.t() | nil, + :endTime => DateTime.t() | nil, + :request => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequest.t() + | nil + } + + field(:createTime, as: DateTime) + field(:endTime, as: DateTime) + + field(:request, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequest + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelMetadata do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelMetadata.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelMetadata 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_export_issue_model_request.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_export_issue_model_request.ex new file mode 100644 index 0000000000..1af2861068 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_export_issue_model_request.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.GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequest do + @moduledoc """ + Request to export an issue model. + + ## Attributes + + * `gcsDestination` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequestGcsDestination.t`, *default:* `nil`) - Google Cloud Storage URI to export the Issue Model to. + * `name` (*type:* `String.t`, *default:* `nil`) - Required. The issue model to export + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :gcsDestination => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequestGcsDestination.t() + | nil, + :name => String.t() | nil + } + + field(:gcsDestination, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequestGcsDestination + ) + + field(:name) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequest do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequest 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_export_issue_model_request_gcs_destination.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_export_issue_model_request_gcs_destination.ex new file mode 100644 index 0000000000..b893af0c5e --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_export_issue_model_request_gcs_destination.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.GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequestGcsDestination do + @moduledoc """ + Google Cloud Storage Object URI to save the issue model to. + + ## Attributes + + * `objectUri` (*type:* `String.t`, *default:* `nil`) - Required. Format: `gs:///` + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :objectUri => String.t() | nil + } + + field(:objectUri) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequestGcsDestination do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequestGcsDestination.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequestGcsDestination 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_export_issue_model_response.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_export_issue_model_response.ex new file mode 100644 index 0000000000..07d212a525 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_export_issue_model_response.ex @@ -0,0 +1,48 @@ +# 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.GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelResponse do + @moduledoc """ + Response from export issue model + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelResponse do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelResponse 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_faq_answer_data.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_faq_answer_data.ex new file mode 100644 index 0000000000..c0dfdb8c34 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_faq_answer_data.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.GoogleCloudContactcenterinsightsV1alpha1FaqAnswerData do + @moduledoc """ + Agent Assist frequently-asked-question answer data. + + ## Attributes + + * `answer` (*type:* `String.t`, *default:* `nil`) - The piece of text from the `source` knowledge base document. + * `confidenceScore` (*type:* `number()`, *default:* `nil`) - The system's confidence score that this answer is a good match for this conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely certain). + * `metadata` (*type:* `map()`, *default:* `nil`) - Map that contains metadata about the FAQ answer and the document that it originates from. + * `queryRecord` (*type:* `String.t`, *default:* `nil`) - The name of the answer record. Format: projects/{project}/locations/{location}/answerRecords/{answer_record} + * `question` (*type:* `String.t`, *default:* `nil`) - The corresponding FAQ question. + * `source` (*type:* `String.t`, *default:* `nil`) - The knowledge document that this answer was extracted from. Format: projects/{project}/knowledgeBases/{knowledge_base}/documents/{document}. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :answer => String.t() | nil, + :confidenceScore => number() | nil, + :metadata => map() | nil, + :queryRecord => String.t() | nil, + :question => String.t() | nil, + :source => String.t() | nil + } + + field(:answer) + field(:confidenceScore) + field(:metadata, type: :map) + field(:queryRecord) + field(:question) + field(:source) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1FaqAnswerData do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1FaqAnswerData.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1FaqAnswerData 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_gcs_source.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_gcs_source.ex new file mode 100644 index 0000000000..a54490dd6e --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_gcs_source.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GcsSource do + @moduledoc """ + A Cloud Storage source of conversation data. + + ## Attributes + + * `audioUri` (*type:* `String.t`, *default:* `nil`) - Cloud Storage URI that points to a file that contains the conversation audio. + * `transcriptUri` (*type:* `String.t`, *default:* `nil`) - Immutable. Cloud Storage URI that points to a file that contains the conversation transcript. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :audioUri => String.t() | nil, + :transcriptUri => String.t() | nil + } + + field(:audioUri) + field(:transcriptUri) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GcsSource do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GcsSource.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1GcsSource 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_hold_data.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_hold_data.ex new file mode 100644 index 0000000000..c70148b90a --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_hold_data.ex @@ -0,0 +1,46 @@ +# 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.GoogleCloudContactcenterinsightsV1alpha1HoldData do + @moduledoc """ + The data for a hold annotation. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1HoldData do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1HoldData.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1HoldData 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_import_issue_model_metadata.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_import_issue_model_metadata.ex new file mode 100644 index 0000000000..48e5656e74 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_import_issue_model_metadata.ex @@ -0,0 +1,65 @@ +# 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.GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelMetadata do + @moduledoc """ + Metadata used for import issue model. + + ## Attributes + + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - The time the operation was created. + * `endTime` (*type:* `DateTime.t`, *default:* `nil`) - The time the operation finished running. + * `request` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequest.t`, *default:* `nil`) - The original import request. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :createTime => DateTime.t() | nil, + :endTime => DateTime.t() | nil, + :request => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequest.t() + | nil + } + + field(:createTime, as: DateTime) + field(:endTime, as: DateTime) + + field(:request, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequest + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelMetadata do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelMetadata.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelMetadata 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_import_issue_model_request.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_import_issue_model_request.ex new file mode 100644 index 0000000000..fa07b62a52 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_import_issue_model_request.ex @@ -0,0 +1,66 @@ +# 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.GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequest do + @moduledoc """ + Request to import an issue model. + + ## Attributes + + * `createNewModel` (*type:* `boolean()`, *default:* `nil`) - Optional. If set to true, will create a new issue model from the imported file with randomly generated IDs for the issue model and corresponding issues. Otherwise, replaces an existing model with the same ID as the file. + * `gcsSource` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequestGcsSource.t`, *default:* `nil`) - Google Cloud Storage source message. + * `parent` (*type:* `String.t`, *default:* `nil`) - Required. The parent resource of the issue model. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :createNewModel => boolean() | nil, + :gcsSource => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequestGcsSource.t() + | nil, + :parent => String.t() | nil + } + + field(:createNewModel) + + field(:gcsSource, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequestGcsSource + ) + + field(:parent) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequest do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequest 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_import_issue_model_request_gcs_source.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_import_issue_model_request_gcs_source.ex new file mode 100644 index 0000000000..6a09251fe8 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_import_issue_model_request_gcs_source.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.GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequestGcsSource do + @moduledoc """ + Google Cloud Storage Object URI to get the issue model file from. + + ## Attributes + + * `objectUri` (*type:* `String.t`, *default:* `nil`) - Required. Format: `gs:///` + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :objectUri => String.t() | nil + } + + field(:objectUri) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequestGcsSource do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequestGcsSource.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequestGcsSource 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_import_issue_model_response.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_import_issue_model_response.ex new file mode 100644 index 0000000000..2b734fde26 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_import_issue_model_response.ex @@ -0,0 +1,48 @@ +# 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.GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelResponse do + @moduledoc """ + Response from import issue model + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelResponse do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelResponse 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_ingest_conversations_metadata.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_ingest_conversations_metadata.ex index 81be20de22..bab00b7a6e 100644 --- a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_ingest_conversations_metadata.ex +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_ingest_conversations_metadata.ex @@ -23,6 +23,7 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time the operation was created. * `endTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time the operation finished running. + * `ingestConversationsStats` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadataIngestConversationsStats.t`, *default:* `nil`) - Output only. Statistics for IngestConversations operation. * `partialErrors` (*type:* `list(GoogleApi.ContactCenterInsights.V1.Model.GoogleRpcStatus.t)`, *default:* `nil`) - Output only. Partial errors during ingest operation that might cause the operation output to be incomplete. * `request` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequest.t`, *default:* `nil`) - Output only. The original request for ingest. """ @@ -32,6 +33,9 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig @type t :: %__MODULE__{ :createTime => DateTime.t() | nil, :endTime => DateTime.t() | nil, + :ingestConversationsStats => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadataIngestConversationsStats.t() + | nil, :partialErrors => list(GoogleApi.ContactCenterInsights.V1.Model.GoogleRpcStatus.t()) | nil, :request => @@ -41,6 +45,12 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig field(:createTime, as: DateTime) field(:endTime, as: DateTime) + + field(:ingestConversationsStats, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadataIngestConversationsStats + ) + field(:partialErrors, as: GoogleApi.ContactCenterInsights.V1.Model.GoogleRpcStatus, type: :list) field(:request, diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_ingest_conversations_metadata_ingest_conversations_stats.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_ingest_conversations_metadata_ingest_conversations_stats.ex new file mode 100644 index 0000000000..7b202a2768 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_ingest_conversations_metadata_ingest_conversations_stats.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.GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadataIngestConversationsStats do + @moduledoc """ + Statistics for IngestConversations operation. + + ## Attributes + + * `duplicatesSkippedCount` (*type:* `integer()`, *default:* `nil`) - Output only. The number of objects skipped because another conversation with the same transcript uri had already been ingested. + * `failedIngestCount` (*type:* `integer()`, *default:* `nil`) - Output only. The number of objects which were unable to be ingested due to errors. The errors are populated in the partial_errors field. + * `processedObjectCount` (*type:* `integer()`, *default:* `nil`) - Output only. The number of objects processed during the ingest operation. + * `successfulIngestCount` (*type:* `integer()`, *default:* `nil`) - Output only. The number of new conversations added during this ingest operation. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :duplicatesSkippedCount => integer() | nil, + :failedIngestCount => integer() | nil, + :processedObjectCount => integer() | nil, + :successfulIngestCount => integer() | nil + } + + field(:duplicatesSkippedCount) + field(:failedIngestCount) + field(:processedObjectCount) + field(:successfulIngestCount) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadataIngestConversationsStats do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadataIngestConversationsStats.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadataIngestConversationsStats 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_ingest_conversations_request.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_ingest_conversations_request.ex index 98d925b323..a022b00b3e 100644 --- a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_ingest_conversations_request.ex +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_ingest_conversations_request.ex @@ -22,8 +22,10 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig ## Attributes * `conversationConfig` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestConversationConfig.t`, *default:* `nil`) - Configuration that applies to all conversations. - * `gcsSource` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestGcsSource.t`, *default:* `nil`) - A cloud storage bucket source. + * `gcsSource` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestGcsSource.t`, *default:* `nil`) - A cloud storage bucket source. Note that any previously ingested objects from the source will be skipped to avoid duplication. * `parent` (*type:* `String.t`, *default:* `nil`) - Required. The parent resource for new conversations. + * `redactionConfig` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1RedactionConfig.t`, *default:* `nil`) - Optional. DLP settings for transcript redaction. Optional, will default to the config specified in Settings. + * `speechConfig` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SpeechConfig.t`, *default:* `nil`) - Optional. Default Speech-to-Text configuration. Optional, will default to the config specified in Settings. * `transcriptObjectConfig` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestTranscriptObjectConfig.t`, *default:* `nil`) - Configuration for when `source` contains conversation transcripts. """ @@ -37,6 +39,12 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestGcsSource.t() | nil, :parent => String.t() | nil, + :redactionConfig => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1RedactionConfig.t() + | nil, + :speechConfig => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SpeechConfig.t() + | nil, :transcriptObjectConfig => GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestTranscriptObjectConfig.t() | nil @@ -54,6 +62,16 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig field(:parent) + field(:redactionConfig, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1RedactionConfig + ) + + field(:speechConfig, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SpeechConfig + ) + field(:transcriptObjectConfig, as: GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestTranscriptObjectConfig diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_ingest_conversations_request_conversation_config.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_ingest_conversations_request_conversation_config.ex index 18427132fd..ff165c17a7 100644 --- a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_ingest_conversations_request_conversation_config.ex +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_ingest_conversations_request_conversation_config.ex @@ -21,16 +21,22 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig ## Attributes + * `agentChannel` (*type:* `integer()`, *default:* `nil`) - Optional. Indicates which of the channels, 1 or 2, contains the agent. Note that this must be set for conversations to be properly displayed and analyzed. * `agentId` (*type:* `String.t`, *default:* `nil`) - An opaque, user-specified string representing the human agent who handled the conversations. + * `customerChannel` (*type:* `integer()`, *default:* `nil`) - Optional. Indicates which of the channels, 1 or 2, contains the agent. Note that this must be set for conversations to be properly displayed and analyzed. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ - :agentId => String.t() | nil + :agentChannel => integer() | nil, + :agentId => String.t() | nil, + :customerChannel => integer() | nil } + field(:agentChannel) field(:agentId) + field(:customerChannel) end defimpl Poison.Decoder, diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_ingest_conversations_request_gcs_source.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_ingest_conversations_request_gcs_source.ex index b53115a668..9d5694215f 100644 --- a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_ingest_conversations_request_gcs_source.ex +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_ingest_conversations_request_gcs_source.ex @@ -21,16 +21,25 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig ## Attributes + * `bucketObjectType` (*type:* `String.t`, *default:* `nil`) - Optional. Specifies the type of the objects in `bucket_uri`. * `bucketUri` (*type:* `String.t`, *default:* `nil`) - Required. The Cloud Storage bucket containing source objects. + * `customMetadataKeys` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Custom keys to extract as conversation labels from metadata files in `metadata_bucket_uri`. Keys not included in this field will be ignored. Note that there is a limit of 20 labels per conversation. + * `metadataBucketUri` (*type:* `String.t`, *default:* `nil`) - Optional. The Cloud Storage path to the source object metadata. Note that: [1] metadata files are expected to be in JSON format [2] metadata and source objects must be in separate buckets [3] a source object's metadata object must share the same name to be properly ingested """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ - :bucketUri => String.t() | nil + :bucketObjectType => String.t() | nil, + :bucketUri => String.t() | nil, + :customMetadataKeys => list(String.t()) | nil, + :metadataBucketUri => String.t() | nil } + field(:bucketObjectType) field(:bucketUri) + field(:customMetadataKeys, type: :list) + field(:metadataBucketUri) end defimpl Poison.Decoder, diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_intent.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_intent.ex new file mode 100644 index 0000000000..f326fe7123 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_intent.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1Intent do + @moduledoc """ + The data for an intent. Represents a detected intent in the conversation, for example MAKES_PROMISE. + + ## Attributes + + * `displayName` (*type:* `String.t`, *default:* `nil`) - The human-readable name of the intent. + * `id` (*type:* `String.t`, *default:* `nil`) - The unique identifier of the intent. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :displayName => String.t() | nil, + :id => String.t() | nil + } + + field(:displayName) + field(:id) +end + +defimpl Poison.Decoder, + for: GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1Intent do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1Intent.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1Intent 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_intent_match_data.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_intent_match_data.ex new file mode 100644 index 0000000000..f8f621baef --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_intent_match_data.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.GoogleCloudContactcenterinsightsV1alpha1IntentMatchData do + @moduledoc """ + The data for an intent match. Represents an intent match for a text segment in the conversation. A text segment can be part of a sentence, a complete sentence, or an utterance with multiple sentences. + + ## Attributes + + * `intentUniqueId` (*type:* `String.t`, *default:* `nil`) - The id of the matched intent. Can be used to retrieve the corresponding intent information. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :intentUniqueId => String.t() | nil + } + + field(:intentUniqueId) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1IntentMatchData do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1IntentMatchData.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1IntentMatchData 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_interruption_data.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_interruption_data.ex new file mode 100644 index 0000000000..c3d1f9dc03 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_interruption_data.ex @@ -0,0 +1,48 @@ +# 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.GoogleCloudContactcenterinsightsV1alpha1InterruptionData do + @moduledoc """ + The data for an interruption annotation. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1InterruptionData do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1InterruptionData.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1InterruptionData 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_issue_assignment.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_issue_assignment.ex new file mode 100644 index 0000000000..9e86bbc985 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_issue_assignment.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1IssueAssignment do + @moduledoc """ + Information about the issue. + + ## Attributes + + * `displayName` (*type:* `String.t`, *default:* `nil`) - Immutable. Display name of the assigned issue. This field is set at time of analyis and immutable since then. + * `issue` (*type:* `String.t`, *default:* `nil`) - Resource name of the assigned issue. + * `score` (*type:* `float()`, *default:* `nil`) - Score indicating the likelihood of the issue assignment. currently bounded on [0,1]. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :displayName => String.t() | nil, + :issue => String.t() | nil, + :score => float() | nil + } + + field(:displayName) + field(:issue) + field(:score) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1IssueAssignment do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1IssueAssignment.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1IssueAssignment 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_issue_match_data.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_issue_match_data.ex new file mode 100644 index 0000000000..8f56c098b4 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_issue_match_data.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.GoogleCloudContactcenterinsightsV1alpha1IssueMatchData do + @moduledoc """ + The data for an issue match annotation. + + ## Attributes + + * `issueAssignment` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1IssueAssignment.t`, *default:* `nil`) - Information about the issue's assignment. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :issueAssignment => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1IssueAssignment.t() + | nil + } + + field(:issueAssignment, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1IssueAssignment + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1IssueMatchData do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1IssueMatchData.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1IssueMatchData 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_issue_model.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_issue_model.ex index 75f6a8058e..97927afc0d 100644 --- a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_issue_model.ex +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_issue_model.ex @@ -24,6 +24,9 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time at which this issue model was created. * `displayName` (*type:* `String.t`, *default:* `nil`) - The representative name for the issue model. * `inputDataConfig` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1IssueModelInputDataConfig.t`, *default:* `nil`) - Configs for the input data that used to create the issue model. + * `issueCount` (*type:* `String.t`, *default:* `nil`) - Output only. Number of issues in this issue model. + * `languageCode` (*type:* `String.t`, *default:* `nil`) - Language of the model. + * `modelType` (*type:* `String.t`, *default:* `nil`) - Type of the model. * `name` (*type:* `String.t`, *default:* `nil`) - Immutable. The resource name of the issue model. Format: projects/{project}/locations/{location}/issueModels/{issue_model} * `state` (*type:* `String.t`, *default:* `nil`) - Output only. State of the model. * `trainingStats` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStats.t`, *default:* `nil`) - Output only. Immutable. The issue model's label statistics on its training data. @@ -38,6 +41,9 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig :inputDataConfig => GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1IssueModelInputDataConfig.t() | nil, + :issueCount => String.t() | nil, + :languageCode => String.t() | nil, + :modelType => String.t() | nil, :name => String.t() | nil, :state => String.t() | nil, :trainingStats => @@ -54,6 +60,9 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1IssueModelInputDataConfig ) + field(:issueCount) + field(:languageCode) + field(:modelType) field(:name) field(:state) diff --git a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_issue_model_result.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_issue_model_result.ex new file mode 100644 index 0000000000..5a16875490 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_issue_model_result.ex @@ -0,0 +1,65 @@ +# 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.GoogleCloudContactcenterinsightsV1alpha1IssueModelResult do + @moduledoc """ + Issue Modeling result on a conversation. + + ## Attributes + + * `issueModel` (*type:* `String.t`, *default:* `nil`) - Issue model that generates the result. Format: projects/{project}/locations/{location}/issueModels/{issue_model} + * `issues` (*type:* `list(GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1IssueAssignment.t)`, *default:* `nil`) - All the matched issues. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :issueModel => String.t() | nil, + :issues => + list( + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1IssueAssignment.t() + ) + | nil + } + + field(:issueModel) + + field(:issues, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1IssueAssignment, + type: :list + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1IssueModelResult do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1IssueModelResult.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1IssueModelResult 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_phrase_match_data.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_phrase_match_data.ex new file mode 100644 index 0000000000..115d757cc9 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_phrase_match_data.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.GoogleCloudContactcenterinsightsV1alpha1PhraseMatchData do + @moduledoc """ + The data for a matched phrase matcher. Represents information identifying a phrase matcher for a given match. + + ## Attributes + + * `displayName` (*type:* `String.t`, *default:* `nil`) - The human-readable name of the phrase matcher. + * `phraseMatcher` (*type:* `String.t`, *default:* `nil`) - The unique identifier (the resource name) of the phrase matcher. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :displayName => String.t() | nil, + :phraseMatcher => String.t() | nil + } + + field(:displayName) + field(:phraseMatcher) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1PhraseMatchData do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1PhraseMatchData.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1PhraseMatchData 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_redaction_config.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_redaction_config.ex new file mode 100644 index 0000000000..c9dcb42be1 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_redaction_config.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.GoogleCloudContactcenterinsightsV1alpha1RedactionConfig do + @moduledoc """ + DLP resources used for redaction while ingesting conversations. + + ## Attributes + + * `deidentifyTemplate` (*type:* `String.t`, *default:* `nil`) - The fully-qualified DLP deidentify template resource name. Format: `projects/{project}/deidentifyTemplates/{template}` + * `inspectTemplate` (*type:* `String.t`, *default:* `nil`) - The fully-qualified DLP inspect template resource name. Format: `projects/{project}/locations/{location}/inspectTemplates/{template}` + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :deidentifyTemplate => String.t() | nil, + :inspectTemplate => String.t() | nil + } + + field(:deidentifyTemplate) + field(:inspectTemplate) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1RedactionConfig do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1RedactionConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1RedactionConfig 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 new file mode 100644 index 0000000000..9fd25fbcf1 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_runtime_annotation.ex @@ -0,0 +1,138 @@ +# 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.GoogleCloudContactcenterinsightsV1alpha1RuntimeAnnotation do + @moduledoc """ + An annotation that was generated during the customer and agent interaction. + + ## Attributes + + * `annotationId` (*type:* `String.t`, *default:* `nil`) - The unique identifier of the annotation. Format: projects/{project}/locations/{location}/conversationDatasets/{dataset}/conversationDataItems/{data_item}/conversationAnnotations/{annotation} + * `answerFeedback` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AnswerFeedback.t`, *default:* `nil`) - The feedback that the customer has about the answer in `data`. + * `articleSuggestion` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ArticleSuggestionData.t`, *default:* `nil`) - Agent Assist Article Suggestion data. + * `conversationSummarizationSuggestion` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationSummarizationSuggestionData.t`, *default:* `nil`) - Conversation summarization suggestion data. + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - The time at which this annotation was created. + * `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. + * `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. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :annotationId => String.t() | nil, + :answerFeedback => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AnswerFeedback.t() + | nil, + :articleSuggestion => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ArticleSuggestionData.t() + | nil, + :conversationSummarizationSuggestion => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationSummarizationSuggestionData.t() + | nil, + :createTime => DateTime.t() | nil, + :dialogflowInteraction => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1DialogflowInteractionData.t() + | nil, + :endBoundary => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary.t() + | nil, + :faqAnswer => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1FaqAnswerData.t() + | nil, + :smartComposeSuggestion => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SmartComposeSuggestionData.t() + | nil, + :smartReply => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SmartReplyData.t() + | nil, + :startBoundary => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary.t() + | nil + } + + field(:annotationId) + + field(:answerFeedback, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AnswerFeedback + ) + + field(:articleSuggestion, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ArticleSuggestionData + ) + + field(:conversationSummarizationSuggestion, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1ConversationSummarizationSuggestionData + ) + + field(:createTime, as: DateTime) + + field(:dialogflowInteraction, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1DialogflowInteractionData + ) + + field(:endBoundary, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary + ) + + field(:faqAnswer, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1FaqAnswerData + ) + + field(:smartComposeSuggestion, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SmartComposeSuggestionData + ) + + field(:smartReply, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SmartReplyData + ) + + field(:startBoundary, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1RuntimeAnnotation do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1RuntimeAnnotation.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1RuntimeAnnotation 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_sentiment_data.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_sentiment_data.ex new file mode 100644 index 0000000000..a496fe27f6 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_sentiment_data.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.GoogleCloudContactcenterinsightsV1alpha1SentimentData do + @moduledoc """ + The data for a sentiment annotation. + + ## Attributes + + * `magnitude` (*type:* `number()`, *default:* `nil`) - A non-negative number from 0 to infinity which represents the abolute magnitude of sentiment regardless of score. + * `score` (*type:* `number()`, *default:* `nil`) - The sentiment score between -1.0 (negative) and 1.0 (positive). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :magnitude => number() | nil, + :score => number() | nil + } + + field(:magnitude) + field(:score) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SentimentData do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SentimentData.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SentimentData 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_silence_data.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_silence_data.ex new file mode 100644 index 0000000000..4974f281c9 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_silence_data.ex @@ -0,0 +1,48 @@ +# 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.GoogleCloudContactcenterinsightsV1alpha1SilenceData do + @moduledoc """ + The data for a silence annotation. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SilenceData do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SilenceData.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SilenceData 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_smart_compose_suggestion_data.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_smart_compose_suggestion_data.ex new file mode 100644 index 0000000000..aef3a44221 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_smart_compose_suggestion_data.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.GoogleCloudContactcenterinsightsV1alpha1SmartComposeSuggestionData do + @moduledoc """ + Agent Assist Smart Compose suggestion data. + + ## Attributes + + * `confidenceScore` (*type:* `float()`, *default:* `nil`) - The system's confidence score that this suggestion is a good match for this conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely certain). + * `metadata` (*type:* `map()`, *default:* `nil`) - Map that contains metadata about the Smart Compose suggestion and the document from which it originates. + * `queryRecord` (*type:* `String.t`, *default:* `nil`) - The name of the answer record. Format: projects/{project}/locations/{location}/answerRecords/{answer_record} + * `suggestion` (*type:* `String.t`, *default:* `nil`) - The content of the suggestion. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :confidenceScore => float() | nil, + :metadata => map() | nil, + :queryRecord => String.t() | nil, + :suggestion => String.t() | nil + } + + field(:confidenceScore) + field(:metadata, type: :map) + field(:queryRecord) + field(:suggestion) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SmartComposeSuggestionData do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SmartComposeSuggestionData.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SmartComposeSuggestionData 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_smart_reply_data.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_smart_reply_data.ex new file mode 100644 index 0000000000..0e3a6ecfe0 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_smart_reply_data.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.GoogleCloudContactcenterinsightsV1alpha1SmartReplyData do + @moduledoc """ + Agent Assist Smart Reply data. + + ## Attributes + + * `confidenceScore` (*type:* `float()`, *default:* `nil`) - The system's confidence score that this reply is a good match for this conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely certain). + * `metadata` (*type:* `map()`, *default:* `nil`) - Map that contains metadata about the Smart Reply and the document from which it originates. + * `queryRecord` (*type:* `String.t`, *default:* `nil`) - The name of the answer record. Format: projects/{project}/locations/{location}/answerRecords/{answer_record} + * `reply` (*type:* `String.t`, *default:* `nil`) - The content of the reply. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :confidenceScore => float() | nil, + :metadata => map() | nil, + :queryRecord => String.t() | nil, + :reply => String.t() | nil + } + + field(:confidenceScore) + field(:metadata, type: :map) + field(:queryRecord) + field(:reply) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SmartReplyData do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SmartReplyData.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SmartReplyData 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_speech_config.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_speech_config.ex new file mode 100644 index 0000000000..5d51b57001 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_speech_config.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.GoogleCloudContactcenterinsightsV1alpha1SpeechConfig do + @moduledoc """ + Speech-to-Text configuration. + + ## Attributes + + * `speechRecognizer` (*type:* `String.t`, *default:* `nil`) - The fully-qualified Speech Recognizer resource name. Format: `projects/{project_id}/locations/{location}/recognizer/{recognizer}` + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :speechRecognizer => String.t() | nil + } + + field(:speechRecognizer) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SpeechConfig do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SpeechConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SpeechConfig 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_upload_conversation_metadata.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_upload_conversation_metadata.ex new file mode 100644 index 0000000000..1ce592b072 --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_upload_conversation_metadata.ex @@ -0,0 +1,78 @@ +# 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.GoogleCloudContactcenterinsightsV1alpha1UploadConversationMetadata do + @moduledoc """ + The metadata for an UploadConversation operation. + + ## Attributes + + * `analysisOperation` (*type:* `String.t`, *default:* `nil`) - Output only. The operation name for a successfully created analysis operation, if any. + * `appliedRedactionConfig` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1RedactionConfig.t`, *default:* `nil`) - Output only. The redaction config applied to the uploaded conversation. + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time the operation was created. + * `endTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time the operation finished running. + * `request` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1UploadConversationRequest.t`, *default:* `nil`) - Output only. The original request. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :analysisOperation => String.t() | nil, + :appliedRedactionConfig => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1RedactionConfig.t() + | nil, + :createTime => DateTime.t() | nil, + :endTime => DateTime.t() | nil, + :request => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1UploadConversationRequest.t() + | nil + } + + field(:analysisOperation) + + field(:appliedRedactionConfig, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1RedactionConfig + ) + + field(:createTime, as: DateTime) + field(:endTime, as: DateTime) + + field(:request, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1UploadConversationRequest + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1UploadConversationMetadata do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1UploadConversationMetadata.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1UploadConversationMetadata 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_upload_conversation_request.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_upload_conversation_request.ex new file mode 100644 index 0000000000..a09e11629e --- /dev/null +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1alpha1_upload_conversation_request.ex @@ -0,0 +1,83 @@ +# 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.GoogleCloudContactcenterinsightsV1alpha1UploadConversationRequest do + @moduledoc """ + Request to upload a conversation. + + ## Attributes + + * `conversation` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1Conversation.t`, *default:* `nil`) - Required. The conversation resource to create. + * `conversationId` (*type:* `String.t`, *default:* `nil`) - Optional. A unique ID for the new conversation. This ID will become the final component of the conversation's resource name. If no ID is specified, a server-generated ID will be used. This value should be 4-64 characters and must match the regular expression `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-` + * `parent` (*type:* `String.t`, *default:* `nil`) - Required. The parent resource of the conversation. + * `redactionConfig` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1RedactionConfig.t`, *default:* `nil`) - Optional. DLP settings for transcript redaction. Will default to the config specified in Settings. + * `speechConfig` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SpeechConfig.t`, *default:* `nil`) - Optional. Speech-to-Text configuration. Will default to the config specified in Settings. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :conversation => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1Conversation.t() + | nil, + :conversationId => String.t() | nil, + :parent => String.t() | nil, + :redactionConfig => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1RedactionConfig.t() + | nil, + :speechConfig => + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SpeechConfig.t() + | nil + } + + field(:conversation, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1Conversation + ) + + field(:conversationId) + field(:parent) + + field(:redactionConfig, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1RedactionConfig + ) + + field(:speechConfig, + as: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1SpeechConfig + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1UploadConversationRequest do + def decode(value, options) do + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1UploadConversationRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1alpha1UploadConversationRequest 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_longrunning_operation.ex b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_longrunning_operation.ex index b7a31b9aca..44ab10f370 100644 --- a/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_longrunning_operation.ex +++ b/clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_longrunning_operation.ex @@ -25,7 +25,7 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleLongrunningOperation do * `error` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleRpcStatus.t`, *default:* `nil`) - The error result of the operation in case of failure or cancellation. * `metadata` (*type:* `map()`, *default:* `nil`) - Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. * `name` (*type:* `String.t`, *default:* `nil`) - The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. - * `response` (*type:* `map()`, *default:* `nil`) - The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. + * `response` (*type:* `map()`, *default:* `nil`) - The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. """ use GoogleApi.Gax.ModelBase