Skip to content

Commit

Permalink
feat: Automated regeneration of ContactCenterInsights client (googlea…
Browse files Browse the repository at this point in the history
…pis#12363)

Auto-created at 2024-10-18 13:18:25 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Oct 18, 2024
1 parent 0e3280e commit 1b6e2f3
Show file tree
Hide file tree
Showing 85 changed files with 9,768 additions and 456 deletions.
2 changes: 1 addition & 1 deletion clients/contact_center_insights/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding

```elixir
def deps do
[{:google_api_contact_center_insights, "~> 0.10"}]
[{:google_api_contact_center_insights, "~> 0.11"}]
end
```

Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.ContactCenterInsights.V1 do
API client metadata for GoogleApi.ContactCenterInsights.V1.
"""

@discovery_revision "20241008"
@discovery_revision "20241015"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig
* `intents` (*type:* `%{optional(String.t) => GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1Intent.t}`, *default:* `nil`) - All the matched intents in the call.
* `issueModelResult` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1IssueModelResult.t`, *default:* `nil`) - Overall conversation-level issue modeling result.
* `phraseMatchers` (*type:* `%{optional(String.t) => GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1PhraseMatchData.t}`, *default:* `nil`) - All the matched phrase matchers in the call.
* `qaScorecardResults` (*type:* `list(GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1QaScorecardResult.t)`, *default:* `nil`) - Results of scoring QaScorecards.
* `sentiments` (*type:* `list(GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ConversationLevelSentiment.t)`, *default:* `nil`) - Overall conversation-level sentiment for each channel of the call.
* `silence` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ConversationLevelSilence.t`, *default:* `nil`) - Overall conversation-level silence during the call.
"""
Expand Down Expand Up @@ -59,6 +60,11 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig
GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1PhraseMatchData.t()
}
| nil,
:qaScorecardResults =>
list(
GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1QaScorecardResult.t()
)
| nil,
:sentiments =>
list(
GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ConversationLevelSentiment.t()
Expand Down Expand Up @@ -95,6 +101,12 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig
type: :map
)

field(:qaScorecardResults,
as:
GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1QaScorecardResult,
type: :list
)

field(:sentiments,
as:
GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ConversationLevelSentiment,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# 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.GoogleCloudContactcenterinsightsV1AnalysisRule do
@moduledoc """
The CCAI Insights project wide analysis rule. This rule will be applied to all conversations that match the filter defined in the rule. For a conversation matches the filter, the annotators specified in the rule will be run. If a conversation matches multiple rules, a union of all the annotators will be run. One project can have multiple analysis rules.
## Attributes
* `active` (*type:* `boolean()`, *default:* `nil`) - If true, apply this rule to conversations. Otherwise, this rule is inactive and saved as a draft.
* `analysisPercentage` (*type:* `float()`, *default:* `nil`) - Percentage of conversations that we should apply this analysis setting automatically, between [0, 1]. For example, 0.1 means 10%. Conversations are sampled in a determenestic way. The original runtime_percentage & upload percentage will be replaced by defining filters on the conversation.
* `annotatorSelector` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnnotatorSelector.t`, *default:* `nil`) - Selector of annotators to run and the phrase matchers to use for conversations that matches the conversation_filter. If not specified, NO annotators will be run.
* `conversationFilter` (*type:* `String.t`, *default:* `nil`) - Filter for the conversations that should apply this analysis rule. An empty filter means this analysis rule applies to all conversations.
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time at which this analysis rule was created.
* `displayName` (*type:* `String.t`, *default:* `nil`) - Display Name of the analysis rule.
* `name` (*type:* `String.t`, *default:* `nil`) - Identifier. The resource name of the analysis rule. Format: projects/{project}/locations/{location}/analysisRules/{analysis_rule}
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The most recent time at which this analysis rule was updated.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:active => boolean() | nil,
:analysisPercentage => float() | nil,
:annotatorSelector =>
GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnnotatorSelector.t()
| nil,
:conversationFilter => String.t() | nil,
:createTime => DateTime.t() | nil,
:displayName => String.t() | nil,
:name => String.t() | nil,
:updateTime => DateTime.t() | nil
}

field(:active)
field(:analysisPercentage)

field(:annotatorSelector,
as:
GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnnotatorSelector
)

field(:conversationFilter)
field(:createTime, as: DateTime)
field(:displayName)
field(:name)
field(:updateTime, as: DateTime)
end

defimpl Poison.Decoder,
for: GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnalysisRule do
def decode(value, options) do
GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnalysisRule.decode(
value,
options
)
end
end

defimpl Poison.Encoder,
for: GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnalysisRule do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig
* `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}
* `qaConfig` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfig.t`, *default:* `nil`) - Configuration for the QA annotator.
* `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).
* `runQaAnnotator` (*type:* `boolean()`, *default:* `nil`) - Whether to run the QA annotator.
* `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.
Expand All @@ -39,11 +41,15 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig
@type t :: %__MODULE__{
:issueModels => list(String.t()) | nil,
:phraseMatchers => list(String.t()) | nil,
:qaConfig =>
GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfig.t()
| nil,
:runEntityAnnotator => boolean() | nil,
:runIntentAnnotator => boolean() | nil,
:runInterruptionAnnotator => boolean() | nil,
:runIssueModelAnnotator => boolean() | nil,
:runPhraseMatcherAnnotator => boolean() | nil,
:runQaAnnotator => boolean() | nil,
:runSentimentAnnotator => boolean() | nil,
:runSilenceAnnotator => boolean() | nil,
:runSummarizationAnnotator => boolean() | nil,
Expand All @@ -54,11 +60,18 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig

field(:issueModels, type: :list)
field(:phraseMatchers, type: :list)

field(:qaConfig,
as:
GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfig
)

field(:runEntityAnnotator)
field(:runIntentAnnotator)
field(:runInterruptionAnnotator)
field(:runIssueModelAnnotator)
field(:runPhraseMatcherAnnotator)
field(:runQaAnnotator)
field(:runSentimentAnnotator)
field(:runSilenceAnnotator)
field(:runSummarizationAnnotator)
Expand Down
Original file line number Diff line number Diff line change
@@ -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.GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfig do
@moduledoc """
Configuration for the QA feature.
## Attributes
* `scorecardList` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfigScorecardList.t`, *default:* `nil`) - A manual list of scorecards to score.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:scorecardList =>
GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfigScorecardList.t()
| nil
}

field(:scorecardList,
as:
GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfigScorecardList
)
end

defimpl Poison.Decoder,
for:
GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfig do
def decode(value, options) do
GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfig.decode(
value,
options
)
end
end

defimpl Poison.Encoder,
for:
GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfig do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
@@ -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.GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfigScorecardList do
@moduledoc """
Container for a list of scorecards.
## Attributes
* `qaScorecardRevisions` (*type:* `list(String.t)`, *default:* `nil`) - List of QaScorecardRevisions.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:qaScorecardRevisions => list(String.t()) | nil
}

field(:qaScorecardRevisions, type: :list)
end

defimpl Poison.Decoder,
for:
GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfigScorecardList do
def decode(value, options) do
GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfigScorecardList.decode(
value,
options
)
end
end

defimpl Poison.Encoder,
for:
GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfigScorecardList do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# 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.GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadata do
@moduledoc """
Metadata for the BulkDownloadFeedbackLabel endpoint.
## Attributes
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time the operation was created.
* `downloadStats` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadataDownloadStats.t`, *default:* `nil`) - Output only. Statistics for BulkDownloadFeedbackLabels operation.
* `endTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time the operation finished running.
* `partialErrors` (*type:* `list(GoogleApi.ContactCenterInsights.V1.Model.GoogleRpcStatus.t)`, *default:* `nil`) - Partial errors during ingest operation that might cause the operation output to be incomplete.
* `request` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest.t`, *default:* `nil`) - Output only. The original request for download.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:createTime => DateTime.t() | nil,
:downloadStats =>
GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadataDownloadStats.t()
| nil,
:endTime => DateTime.t() | nil,
:partialErrors =>
list(GoogleApi.ContactCenterInsights.V1.Model.GoogleRpcStatus.t()) | nil,
:request =>
GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest.t()
| nil
}

field(:createTime, as: DateTime)

field(:downloadStats,
as:
GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadataDownloadStats
)

field(:endTime, as: DateTime)
field(:partialErrors, as: GoogleApi.ContactCenterInsights.V1.Model.GoogleRpcStatus, type: :list)

field(:request,
as:
GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest
)
end

defimpl Poison.Decoder,
for:
GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadata do
def decode(value, options) do
GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadata.decode(
value,
options
)
end
end

defimpl Poison.Encoder,
for:
GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadata do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Loading

0 comments on commit 1b6e2f3

Please sign in to comment.