Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Automated regeneration of ContactCenterInsights client #10780

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

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 "20221116"
@discovery_revision "20240304"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand All @@ -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)
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""
Expand All @@ -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,
Expand All @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Loading
Loading