-
Notifications
You must be signed in to change notification settings - Fork 367
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add FeedbackLabel resource and APIs
feat: Add QueryMetrics API feat: Add Quality AI resources and APIs feat: Add AnalysisRules resource and APIs docs: A comment for method `InitializeEncryptionSpec` in service `ContactCenterInsights` is changed docs: A comment for field `custom_metadata_keys` in message `.google.cloud.contactcenterinsights.v1.IngestConversationsRequest` is changed docs: A comment for field `encryption_spec` in message `.google.cloud.contactcenterinsights.v1.InitializeEncryptionSpecRequest` is changed docs: A comment for field `partial_errors` in message `.google.cloud.contactcenterinsights.v1.InitializeEncryptionSpecMetadata` is changed docs: A comment for field `labels` in message `.google.cloud.contactcenterinsights.v1.Conversation` is changed docs: A comment for field `metadata_json` in message `.google.cloud.contactcenterinsights.v1.Conversation` is changed docs: A comment for message `EncryptionSpec` is changed docs: A comment for field `kms_key` in message `.google.cloud.contactcenterinsights.v1.EncryptionSpec` is changed PiperOrigin-RevId: 696581715 Source-Link: googleapis/googleapis@242a5f1 Source-Link: googleapis/googleapis-gen@1a51252 Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuQ29udGFjdENlbnRlckluc2lnaHRzLlYxLy5Pd2xCb3QueWFtbCIsImgiOiIxYTUxMjUyNTNjM2RiZGQ5MTIyNzhkNDU5MDlhZDZjZmIwMDMxMDg1In0=
- Loading branch information
1 parent
8ce9e18
commit b3414fa
Showing
420 changed files
with
144,301 additions
and
0 deletions.
There are no files selected for viewing
63 changes: 63 additions & 0 deletions
63
...1.GeneratedSnippets/ContactCenterInsightsClient.BulkAnalyzeConversationsAsyncSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
// Copyright 2024 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 | ||
// | ||
// https://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. | ||
|
||
// Generated code. DO NOT EDIT! | ||
|
||
namespace GoogleCSharpSnippets | ||
{ | ||
// [START contactcenterinsights_v1_generated_ContactCenterInsights_BulkAnalyzeConversations_async_flattened] | ||
using Google.Cloud.ContactCenterInsights.V1; | ||
using Google.LongRunning; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedContactCenterInsightsClientSnippets | ||
{ | ||
/// <summary>Snippet for BulkAnalyzeConversationsAsync</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated and should be regarded as a code template only. | ||
/// It will require modifications to work: | ||
/// - It may require correct/in-range values for request initialization. | ||
/// - It may require specifying regional endpoints when creating the service client as shown in | ||
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. | ||
/// </remarks> | ||
public async Task BulkAnalyzeConversationsAsync() | ||
{ | ||
// Create client | ||
ContactCenterInsightsClient contactCenterInsightsClient = await ContactCenterInsightsClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
string parent = "projects/[PROJECT]/locations/[LOCATION]"; | ||
string filter = ""; | ||
float analysisPercentage = 0F; | ||
// Make the request | ||
Operation<BulkAnalyzeConversationsResponse, BulkAnalyzeConversationsMetadata> response = await contactCenterInsightsClient.BulkAnalyzeConversationsAsync(parent, filter, analysisPercentage); | ||
|
||
// Poll until the returned long-running operation is complete | ||
Operation<BulkAnalyzeConversationsResponse, BulkAnalyzeConversationsMetadata> completedResponse = await response.PollUntilCompletedAsync(); | ||
// Retrieve the operation result | ||
BulkAnalyzeConversationsResponse result = completedResponse.Result; | ||
|
||
// Or get the name of the operation | ||
string operationName = response.Name; | ||
// This name can be stored, then the long-running operation retrieved later by name | ||
Operation<BulkAnalyzeConversationsResponse, BulkAnalyzeConversationsMetadata> retrievedResponse = await contactCenterInsightsClient.PollOnceBulkAnalyzeConversationsAsync(operationName); | ||
// Check if the retrieved long-running operation has completed | ||
if (retrievedResponse.IsCompleted) | ||
{ | ||
// If it has completed, then access the result | ||
BulkAnalyzeConversationsResponse retrievedResult = retrievedResponse.Result; | ||
} | ||
} | ||
} | ||
// [END contactcenterinsights_v1_generated_ContactCenterInsights_BulkAnalyzeConversations_async_flattened] | ||
} |
68 changes: 68 additions & 0 deletions
68
...ippets/ContactCenterInsightsClient.BulkAnalyzeConversationsRequestObjectAsyncSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
// Copyright 2024 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 | ||
// | ||
// https://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. | ||
|
||
// Generated code. DO NOT EDIT! | ||
|
||
namespace GoogleCSharpSnippets | ||
{ | ||
// [START contactcenterinsights_v1_generated_ContactCenterInsights_BulkAnalyzeConversations_async] | ||
using Google.Api.Gax.ResourceNames; | ||
using Google.Cloud.ContactCenterInsights.V1; | ||
using Google.LongRunning; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedContactCenterInsightsClientSnippets | ||
{ | ||
/// <summary>Snippet for BulkAnalyzeConversationsAsync</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated and should be regarded as a code template only. | ||
/// It will require modifications to work: | ||
/// - It may require correct/in-range values for request initialization. | ||
/// - It may require specifying regional endpoints when creating the service client as shown in | ||
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. | ||
/// </remarks> | ||
public async Task BulkAnalyzeConversationsRequestObjectAsync() | ||
{ | ||
// Create client | ||
ContactCenterInsightsClient contactCenterInsightsClient = await ContactCenterInsightsClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
BulkAnalyzeConversationsRequest request = new BulkAnalyzeConversationsRequest | ||
{ | ||
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), | ||
Filter = "", | ||
AnalysisPercentage = 0F, | ||
AnnotatorSelector = new AnnotatorSelector(), | ||
}; | ||
// Make the request | ||
Operation<BulkAnalyzeConversationsResponse, BulkAnalyzeConversationsMetadata> response = await contactCenterInsightsClient.BulkAnalyzeConversationsAsync(request); | ||
|
||
// Poll until the returned long-running operation is complete | ||
Operation<BulkAnalyzeConversationsResponse, BulkAnalyzeConversationsMetadata> completedResponse = await response.PollUntilCompletedAsync(); | ||
// Retrieve the operation result | ||
BulkAnalyzeConversationsResponse result = completedResponse.Result; | ||
|
||
// Or get the name of the operation | ||
string operationName = response.Name; | ||
// This name can be stored, then the long-running operation retrieved later by name | ||
Operation<BulkAnalyzeConversationsResponse, BulkAnalyzeConversationsMetadata> retrievedResponse = await contactCenterInsightsClient.PollOnceBulkAnalyzeConversationsAsync(operationName); | ||
// Check if the retrieved long-running operation has completed | ||
if (retrievedResponse.IsCompleted) | ||
{ | ||
// If it has completed, then access the result | ||
BulkAnalyzeConversationsResponse retrievedResult = retrievedResponse.Result; | ||
} | ||
} | ||
} | ||
// [END contactcenterinsights_v1_generated_ContactCenterInsights_BulkAnalyzeConversations_async] | ||
} |
67 changes: 67 additions & 0 deletions
67
...tedSnippets/ContactCenterInsightsClient.BulkAnalyzeConversationsRequestObjectSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
// Copyright 2024 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 | ||
// | ||
// https://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. | ||
|
||
// Generated code. DO NOT EDIT! | ||
|
||
namespace GoogleCSharpSnippets | ||
{ | ||
// [START contactcenterinsights_v1_generated_ContactCenterInsights_BulkAnalyzeConversations_sync] | ||
using Google.Api.Gax.ResourceNames; | ||
using Google.Cloud.ContactCenterInsights.V1; | ||
using Google.LongRunning; | ||
|
||
public sealed partial class GeneratedContactCenterInsightsClientSnippets | ||
{ | ||
/// <summary>Snippet for BulkAnalyzeConversations</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated and should be regarded as a code template only. | ||
/// It will require modifications to work: | ||
/// - It may require correct/in-range values for request initialization. | ||
/// - It may require specifying regional endpoints when creating the service client as shown in | ||
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. | ||
/// </remarks> | ||
public void BulkAnalyzeConversationsRequestObject() | ||
{ | ||
// Create client | ||
ContactCenterInsightsClient contactCenterInsightsClient = ContactCenterInsightsClient.Create(); | ||
// Initialize request argument(s) | ||
BulkAnalyzeConversationsRequest request = new BulkAnalyzeConversationsRequest | ||
{ | ||
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), | ||
Filter = "", | ||
AnalysisPercentage = 0F, | ||
AnnotatorSelector = new AnnotatorSelector(), | ||
}; | ||
// Make the request | ||
Operation<BulkAnalyzeConversationsResponse, BulkAnalyzeConversationsMetadata> response = contactCenterInsightsClient.BulkAnalyzeConversations(request); | ||
|
||
// Poll until the returned long-running operation is complete | ||
Operation<BulkAnalyzeConversationsResponse, BulkAnalyzeConversationsMetadata> completedResponse = response.PollUntilCompleted(); | ||
// Retrieve the operation result | ||
BulkAnalyzeConversationsResponse result = completedResponse.Result; | ||
|
||
// Or get the name of the operation | ||
string operationName = response.Name; | ||
// This name can be stored, then the long-running operation retrieved later by name | ||
Operation<BulkAnalyzeConversationsResponse, BulkAnalyzeConversationsMetadata> retrievedResponse = contactCenterInsightsClient.PollOnceBulkAnalyzeConversations(operationName); | ||
// Check if the retrieved long-running operation has completed | ||
if (retrievedResponse.IsCompleted) | ||
{ | ||
// If it has completed, then access the result | ||
BulkAnalyzeConversationsResponse retrievedResult = retrievedResponse.Result; | ||
} | ||
} | ||
} | ||
// [END contactcenterinsights_v1_generated_ContactCenterInsights_BulkAnalyzeConversations_sync] | ||
} |
64 changes: 64 additions & 0 deletions
64
...ippets/ContactCenterInsightsClient.BulkAnalyzeConversationsResourceNamesAsyncSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
// Copyright 2024 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 | ||
// | ||
// https://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. | ||
|
||
// Generated code. DO NOT EDIT! | ||
|
||
namespace GoogleCSharpSnippets | ||
{ | ||
// [START contactcenterinsights_v1_generated_ContactCenterInsights_BulkAnalyzeConversations_async_flattened_resourceNames] | ||
using Google.Api.Gax.ResourceNames; | ||
using Google.Cloud.ContactCenterInsights.V1; | ||
using Google.LongRunning; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedContactCenterInsightsClientSnippets | ||
{ | ||
/// <summary>Snippet for BulkAnalyzeConversationsAsync</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated and should be regarded as a code template only. | ||
/// It will require modifications to work: | ||
/// - It may require correct/in-range values for request initialization. | ||
/// - It may require specifying regional endpoints when creating the service client as shown in | ||
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. | ||
/// </remarks> | ||
public async Task BulkAnalyzeConversationsResourceNamesAsync() | ||
{ | ||
// Create client | ||
ContactCenterInsightsClient contactCenterInsightsClient = await ContactCenterInsightsClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); | ||
string filter = ""; | ||
float analysisPercentage = 0F; | ||
// Make the request | ||
Operation<BulkAnalyzeConversationsResponse, BulkAnalyzeConversationsMetadata> response = await contactCenterInsightsClient.BulkAnalyzeConversationsAsync(parent, filter, analysisPercentage); | ||
|
||
// Poll until the returned long-running operation is complete | ||
Operation<BulkAnalyzeConversationsResponse, BulkAnalyzeConversationsMetadata> completedResponse = await response.PollUntilCompletedAsync(); | ||
// Retrieve the operation result | ||
BulkAnalyzeConversationsResponse result = completedResponse.Result; | ||
|
||
// Or get the name of the operation | ||
string operationName = response.Name; | ||
// This name can be stored, then the long-running operation retrieved later by name | ||
Operation<BulkAnalyzeConversationsResponse, BulkAnalyzeConversationsMetadata> retrievedResponse = await contactCenterInsightsClient.PollOnceBulkAnalyzeConversationsAsync(operationName); | ||
// Check if the retrieved long-running operation has completed | ||
if (retrievedResponse.IsCompleted) | ||
{ | ||
// If it has completed, then access the result | ||
BulkAnalyzeConversationsResponse retrievedResult = retrievedResponse.Result; | ||
} | ||
} | ||
} | ||
// [END contactcenterinsights_v1_generated_ContactCenterInsights_BulkAnalyzeConversations_async_flattened_resourceNames] | ||
} |
63 changes: 63 additions & 0 deletions
63
...tedSnippets/ContactCenterInsightsClient.BulkAnalyzeConversationsResourceNamesSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
// Copyright 2024 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 | ||
// | ||
// https://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. | ||
|
||
// Generated code. DO NOT EDIT! | ||
|
||
namespace GoogleCSharpSnippets | ||
{ | ||
// [START contactcenterinsights_v1_generated_ContactCenterInsights_BulkAnalyzeConversations_sync_flattened_resourceNames] | ||
using Google.Api.Gax.ResourceNames; | ||
using Google.Cloud.ContactCenterInsights.V1; | ||
using Google.LongRunning; | ||
|
||
public sealed partial class GeneratedContactCenterInsightsClientSnippets | ||
{ | ||
/// <summary>Snippet for BulkAnalyzeConversations</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated and should be regarded as a code template only. | ||
/// It will require modifications to work: | ||
/// - It may require correct/in-range values for request initialization. | ||
/// - It may require specifying regional endpoints when creating the service client as shown in | ||
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. | ||
/// </remarks> | ||
public void BulkAnalyzeConversationsResourceNames() | ||
{ | ||
// Create client | ||
ContactCenterInsightsClient contactCenterInsightsClient = ContactCenterInsightsClient.Create(); | ||
// Initialize request argument(s) | ||
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); | ||
string filter = ""; | ||
float analysisPercentage = 0F; | ||
// Make the request | ||
Operation<BulkAnalyzeConversationsResponse, BulkAnalyzeConversationsMetadata> response = contactCenterInsightsClient.BulkAnalyzeConversations(parent, filter, analysisPercentage); | ||
|
||
// Poll until the returned long-running operation is complete | ||
Operation<BulkAnalyzeConversationsResponse, BulkAnalyzeConversationsMetadata> completedResponse = response.PollUntilCompleted(); | ||
// Retrieve the operation result | ||
BulkAnalyzeConversationsResponse result = completedResponse.Result; | ||
|
||
// Or get the name of the operation | ||
string operationName = response.Name; | ||
// This name can be stored, then the long-running operation retrieved later by name | ||
Operation<BulkAnalyzeConversationsResponse, BulkAnalyzeConversationsMetadata> retrievedResponse = contactCenterInsightsClient.PollOnceBulkAnalyzeConversations(operationName); | ||
// Check if the retrieved long-running operation has completed | ||
if (retrievedResponse.IsCompleted) | ||
{ | ||
// If it has completed, then access the result | ||
BulkAnalyzeConversationsResponse retrievedResult = retrievedResponse.Result; | ||
} | ||
} | ||
} | ||
// [END contactcenterinsights_v1_generated_ContactCenterInsights_BulkAnalyzeConversations_sync_flattened_resourceNames] | ||
} |
Oops, something went wrong.