Skip to content

Commit 1b6e2f3

Browse files
feat: Automated regeneration of ContactCenterInsights client (googleapis#12363)
Auto-created at 2024-10-18 13:18:25 +0000 using the toys pull request generator.
1 parent 0e3280e commit 1b6e2f3

File tree

85 files changed

+9768
-456
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+9768
-456
lines changed

clients/contact_center_insights/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding
1111

1212
```elixir
1313
def deps do
14-
[{:google_api_contact_center_insights, "~> 0.10"}]
14+
[{:google_api_contact_center_insights, "~> 0.11"}]
1515
end
1616
```
1717

clients/contact_center_insights/lib/google_api/contact_center_insights/v1/api/projects.ex

Lines changed: 4666 additions & 453 deletions
Large diffs are not rendered by default.

clients/contact_center_insights/lib/google_api/contact_center_insights/v1/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.ContactCenterInsights.V1 do
2020
API client metadata for GoogleApi.ContactCenterInsights.V1.
2121
"""
2222

23-
@discovery_revision "20241008"
23+
@discovery_revision "20241015"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end

clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_analysis_result_call_analysis_metadata.ex

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig
2626
* `intents` (*type:* `%{optional(String.t) => GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1Intent.t}`, *default:* `nil`) - All the matched intents in the call.
2727
* `issueModelResult` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1IssueModelResult.t`, *default:* `nil`) - Overall conversation-level issue modeling result.
2828
* `phraseMatchers` (*type:* `%{optional(String.t) => GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1PhraseMatchData.t}`, *default:* `nil`) - All the matched phrase matchers in the call.
29+
* `qaScorecardResults` (*type:* `list(GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1QaScorecardResult.t)`, *default:* `nil`) - Results of scoring QaScorecards.
2930
* `sentiments` (*type:* `list(GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ConversationLevelSentiment.t)`, *default:* `nil`) - Overall conversation-level sentiment for each channel of the call.
3031
* `silence` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ConversationLevelSilence.t`, *default:* `nil`) - Overall conversation-level silence during the call.
3132
"""
@@ -59,6 +60,11 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig
5960
GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1PhraseMatchData.t()
6061
}
6162
| nil,
63+
:qaScorecardResults =>
64+
list(
65+
GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1QaScorecardResult.t()
66+
)
67+
| nil,
6268
:sentiments =>
6369
list(
6470
GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ConversationLevelSentiment.t()
@@ -95,6 +101,12 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig
95101
type: :map
96102
)
97103

104+
field(:qaScorecardResults,
105+
as:
106+
GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1QaScorecardResult,
107+
type: :list
108+
)
109+
98110
field(:sentiments,
99111
as:
100112
GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1ConversationLevelSentiment,
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnalysisRule do
19+
@moduledoc """
20+
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.
21+
22+
## Attributes
23+
24+
* `active` (*type:* `boolean()`, *default:* `nil`) - If true, apply this rule to conversations. Otherwise, this rule is inactive and saved as a draft.
25+
* `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.
26+
* `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.
27+
* `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.
28+
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time at which this analysis rule was created.
29+
* `displayName` (*type:* `String.t`, *default:* `nil`) - Display Name of the analysis rule.
30+
* `name` (*type:* `String.t`, *default:* `nil`) - Identifier. The resource name of the analysis rule. Format: projects/{project}/locations/{location}/analysisRules/{analysis_rule}
31+
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The most recent time at which this analysis rule was updated.
32+
"""
33+
34+
use GoogleApi.Gax.ModelBase
35+
36+
@type t :: %__MODULE__{
37+
:active => boolean() | nil,
38+
:analysisPercentage => float() | nil,
39+
:annotatorSelector =>
40+
GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnnotatorSelector.t()
41+
| nil,
42+
:conversationFilter => String.t() | nil,
43+
:createTime => DateTime.t() | nil,
44+
:displayName => String.t() | nil,
45+
:name => String.t() | nil,
46+
:updateTime => DateTime.t() | nil
47+
}
48+
49+
field(:active)
50+
field(:analysisPercentage)
51+
52+
field(:annotatorSelector,
53+
as:
54+
GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnnotatorSelector
55+
)
56+
57+
field(:conversationFilter)
58+
field(:createTime, as: DateTime)
59+
field(:displayName)
60+
field(:name)
61+
field(:updateTime, as: DateTime)
62+
end
63+
64+
defimpl Poison.Decoder,
65+
for: GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnalysisRule do
66+
def decode(value, options) do
67+
GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnalysisRule.decode(
68+
value,
69+
options
70+
)
71+
end
72+
end
73+
74+
defimpl Poison.Encoder,
75+
for: GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnalysisRule do
76+
def encode(value, options) do
77+
GoogleApi.Gax.ModelBase.encode(value, options)
78+
end
79+
end

clients/contact_center_insights/lib/google_api/contact_center_insights/v1/model/google_cloud_contactcenterinsights_v1_annotator_selector.ex

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,13 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig
2323
2424
* `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.
2525
* `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}
26+
* `qaConfig` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfig.t`, *default:* `nil`) - Configuration for the QA annotator.
2627
* `runEntityAnnotator` (*type:* `boolean()`, *default:* `nil`) - Whether to run the entity annotator.
2728
* `runIntentAnnotator` (*type:* `boolean()`, *default:* `nil`) - Whether to run the intent annotator.
2829
* `runInterruptionAnnotator` (*type:* `boolean()`, *default:* `nil`) - Whether to run the interruption annotator.
2930
* `runIssueModelAnnotator` (*type:* `boolean()`, *default:* `nil`) - Whether to run the issue model annotator. A model should have already been deployed for this to take effect.
3031
* `runPhraseMatcherAnnotator` (*type:* `boolean()`, *default:* `nil`) - Whether to run the active phrase matcher annotator(s).
32+
* `runQaAnnotator` (*type:* `boolean()`, *default:* `nil`) - Whether to run the QA annotator.
3133
* `runSentimentAnnotator` (*type:* `boolean()`, *default:* `nil`) - Whether to run the sentiment annotator.
3234
* `runSilenceAnnotator` (*type:* `boolean()`, *default:* `nil`) - Whether to run the silence annotator.
3335
* `runSummarizationAnnotator` (*type:* `boolean()`, *default:* `nil`) - Whether to run the summarization annotator.
@@ -39,11 +41,15 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig
3941
@type t :: %__MODULE__{
4042
:issueModels => list(String.t()) | nil,
4143
:phraseMatchers => list(String.t()) | nil,
44+
:qaConfig =>
45+
GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfig.t()
46+
| nil,
4247
:runEntityAnnotator => boolean() | nil,
4348
:runIntentAnnotator => boolean() | nil,
4449
:runInterruptionAnnotator => boolean() | nil,
4550
:runIssueModelAnnotator => boolean() | nil,
4651
:runPhraseMatcherAnnotator => boolean() | nil,
52+
:runQaAnnotator => boolean() | nil,
4753
:runSentimentAnnotator => boolean() | nil,
4854
:runSilenceAnnotator => boolean() | nil,
4955
:runSummarizationAnnotator => boolean() | nil,
@@ -54,11 +60,18 @@ defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsig
5460

5561
field(:issueModels, type: :list)
5662
field(:phraseMatchers, type: :list)
63+
64+
field(:qaConfig,
65+
as:
66+
GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfig
67+
)
68+
5769
field(:runEntityAnnotator)
5870
field(:runIntentAnnotator)
5971
field(:runInterruptionAnnotator)
6072
field(:runIssueModelAnnotator)
6173
field(:runPhraseMatcherAnnotator)
74+
field(:runQaAnnotator)
6275
field(:runSentimentAnnotator)
6376
field(:runSilenceAnnotator)
6477
field(:runSummarizationAnnotator)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfig do
19+
@moduledoc """
20+
Configuration for the QA feature.
21+
22+
## Attributes
23+
24+
* `scorecardList` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfigScorecardList.t`, *default:* `nil`) - A manual list of scorecards to score.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:scorecardList =>
31+
GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfigScorecardList.t()
32+
| nil
33+
}
34+
35+
field(:scorecardList,
36+
as:
37+
GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfigScorecardList
38+
)
39+
end
40+
41+
defimpl Poison.Decoder,
42+
for:
43+
GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfig do
44+
def decode(value, options) do
45+
GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfig.decode(
46+
value,
47+
options
48+
)
49+
end
50+
end
51+
52+
defimpl Poison.Encoder,
53+
for:
54+
GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfig do
55+
def encode(value, options) do
56+
GoogleApi.Gax.ModelBase.encode(value, options)
57+
end
58+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfigScorecardList do
19+
@moduledoc """
20+
Container for a list of scorecards.
21+
22+
## Attributes
23+
24+
* `qaScorecardRevisions` (*type:* `list(String.t)`, *default:* `nil`) - List of QaScorecardRevisions.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:qaScorecardRevisions => list(String.t()) | nil
31+
}
32+
33+
field(:qaScorecardRevisions, type: :list)
34+
end
35+
36+
defimpl Poison.Decoder,
37+
for:
38+
GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfigScorecardList do
39+
def decode(value, options) do
40+
GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfigScorecardList.decode(
41+
value,
42+
options
43+
)
44+
end
45+
end
46+
47+
defimpl Poison.Encoder,
48+
for:
49+
GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfigScorecardList do
50+
def encode(value, options) do
51+
GoogleApi.Gax.ModelBase.encode(value, options)
52+
end
53+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadata do
19+
@moduledoc """
20+
Metadata for the BulkDownloadFeedbackLabel endpoint.
21+
22+
## Attributes
23+
24+
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time the operation was created.
25+
* `downloadStats` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadataDownloadStats.t`, *default:* `nil`) - Output only. Statistics for BulkDownloadFeedbackLabels operation.
26+
* `endTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time the operation finished running.
27+
* `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.
28+
* `request` (*type:* `GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest.t`, *default:* `nil`) - Output only. The original request for download.
29+
"""
30+
31+
use GoogleApi.Gax.ModelBase
32+
33+
@type t :: %__MODULE__{
34+
:createTime => DateTime.t() | nil,
35+
:downloadStats =>
36+
GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadataDownloadStats.t()
37+
| nil,
38+
:endTime => DateTime.t() | nil,
39+
:partialErrors =>
40+
list(GoogleApi.ContactCenterInsights.V1.Model.GoogleRpcStatus.t()) | nil,
41+
:request =>
42+
GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest.t()
43+
| nil
44+
}
45+
46+
field(:createTime, as: DateTime)
47+
48+
field(:downloadStats,
49+
as:
50+
GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadataDownloadStats
51+
)
52+
53+
field(:endTime, as: DateTime)
54+
field(:partialErrors, as: GoogleApi.ContactCenterInsights.V1.Model.GoogleRpcStatus, type: :list)
55+
56+
field(:request,
57+
as:
58+
GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest
59+
)
60+
end
61+
62+
defimpl Poison.Decoder,
63+
for:
64+
GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadata do
65+
def decode(value, options) do
66+
GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadata.decode(
67+
value,
68+
options
69+
)
70+
end
71+
end
72+
73+
defimpl Poison.Encoder,
74+
for:
75+
GoogleApi.ContactCenterInsights.V1.Model.GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadata do
76+
def encode(value, options) do
77+
GoogleApi.Gax.ModelBase.encode(value, options)
78+
end
79+
end

0 commit comments

Comments
 (0)