-
Notifications
You must be signed in to change notification settings - Fork 362
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: extended StreamingListCallCompanionEvents timeout to 600 seconds
feat: added debug info for StreamingDetectIntent feat: added GenerateStatelessSummary method PiperOrigin-RevId: 530102437 Source-Link: googleapis/googleapis@cea4ed9 Source-Link: googleapis/googleapis-gen@624b26c Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuRGlhbG9nZmxvdy5WMi8uT3dsQm90LnlhbWwiLCJoIjoiNjI0YjI2YzA5OWZiMmM2MDE3NDFkNzc0MDE1NTAyYmVmOTllMWJlYSJ9
- Loading branch information
1 parent
00b27cd
commit ddd7f08
Showing
33 changed files
with
3,189 additions
and
510 deletions.
There are no files selected for viewing
50 changes: 50 additions & 0 deletions
50
...eratedSnippets/ConversationsClient.GenerateStatelessSummaryRequestObjectAsyncSnippet.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,50 @@ | ||
// Copyright 2023 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 dialogflow_v2_generated_Conversations_GenerateStatelessSummary_async] | ||
using Google.Cloud.Dialogflow.V2; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedConversationsClientSnippets | ||
{ | ||
/// <summary>Snippet for GenerateStatelessSummaryAsync</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 GenerateStatelessSummaryRequestObjectAsync() | ||
{ | ||
// Create client | ||
ConversationsClient conversationsClient = await ConversationsClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
GenerateStatelessSummaryRequest request = new GenerateStatelessSummaryRequest | ||
{ | ||
StatelessConversation = new GenerateStatelessSummaryRequest.Types.MinimalConversation(), | ||
ConversationProfile = new ConversationProfile(), | ||
LatestMessageAsMessageName = MessageName.FromProjectConversationMessage("[PROJECT]", "[CONVERSATION]", "[MESSAGE]"), | ||
MaxContextSize = 0, | ||
}; | ||
// Make the request | ||
GenerateStatelessSummaryResponse response = await conversationsClient.GenerateStatelessSummaryAsync(request); | ||
} | ||
} | ||
// [END dialogflow_v2_generated_Conversations_GenerateStatelessSummary_async] | ||
} |
49 changes: 49 additions & 0 deletions
49
...2.GeneratedSnippets/ConversationsClient.GenerateStatelessSummaryRequestObjectSnippet.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,49 @@ | ||
// Copyright 2023 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 dialogflow_v2_generated_Conversations_GenerateStatelessSummary_sync] | ||
using Google.Cloud.Dialogflow.V2; | ||
|
||
public sealed partial class GeneratedConversationsClientSnippets | ||
{ | ||
/// <summary>Snippet for GenerateStatelessSummary</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 GenerateStatelessSummaryRequestObject() | ||
{ | ||
// Create client | ||
ConversationsClient conversationsClient = ConversationsClient.Create(); | ||
// Initialize request argument(s) | ||
GenerateStatelessSummaryRequest request = new GenerateStatelessSummaryRequest | ||
{ | ||
StatelessConversation = new GenerateStatelessSummaryRequest.Types.MinimalConversation(), | ||
ConversationProfile = new ConversationProfile(), | ||
LatestMessageAsMessageName = MessageName.FromProjectConversationMessage("[PROJECT]", "[CONVERSATION]", "[MESSAGE]"), | ||
MaxContextSize = 0, | ||
}; | ||
// Make the request | ||
GenerateStatelessSummaryResponse response = conversationsClient.GenerateStatelessSummary(request); | ||
} | ||
} | ||
// [END dialogflow_v2_generated_Conversations_GenerateStatelessSummary_sync] | ||
} |
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
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
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
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
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
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
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
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
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
Oops, something went wrong.