-
Notifications
You must be signed in to change notification settings - Fork 371
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: properly mark TrainingPhrase name field output-only
docs: fixed the references to proto method / fields PiperOrigin-RevId: 702736565 Source-Link: googleapis/googleapis@6989f67 Source-Link: googleapis/googleapis-gen@5036471 Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuRGlhbG9nZmxvdy5WMi8uT3dsQm90LnlhbWwiLCJoIjoiNTAzNjQ3MThhZjA0ODZlYWE1YzJmYTI5MjU0MTRiZTg1OGQwY2Y3ZCJ9
- Loading branch information
1 parent
0436b0d
commit 1203d4d
Showing
743 changed files
with
246,139 additions
and
0 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
...V2/Google.Cloud.Dialogflow.V2.GeneratedSnippets/AgentsClient.DeleteAgentAsyncSnippet.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,44 @@ | ||
// 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 dialogflow_v2_generated_Agents_DeleteAgent_async_flattened] | ||
using Google.Cloud.Dialogflow.V2; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedAgentsClientSnippets | ||
{ | ||
/// <summary>Snippet for DeleteAgentAsync</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 DeleteAgentAsync() | ||
{ | ||
// Create client | ||
AgentsClient agentsClient = await AgentsClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
string parent = "projects/[PROJECT]"; | ||
// Make the request | ||
await agentsClient.DeleteAgentAsync(parent); | ||
} | ||
} | ||
// [END dialogflow_v2_generated_Agents_DeleteAgent_async_flattened] | ||
} |
48 changes: 48 additions & 0 deletions
48
...ud.Dialogflow.V2.GeneratedSnippets/AgentsClient.DeleteAgentRequestObjectAsyncSnippet.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,48 @@ | ||
// 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 dialogflow_v2_generated_Agents_DeleteAgent_async] | ||
using Google.Api.Gax.ResourceNames; | ||
using Google.Cloud.Dialogflow.V2; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedAgentsClientSnippets | ||
{ | ||
/// <summary>Snippet for DeleteAgentAsync</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 DeleteAgentRequestObjectAsync() | ||
{ | ||
// Create client | ||
AgentsClient agentsClient = await AgentsClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
DeleteAgentRequest request = new DeleteAgentRequest | ||
{ | ||
ParentAsProjectName = ProjectName.FromProject("[PROJECT]"), | ||
}; | ||
// Make the request | ||
await agentsClient.DeleteAgentAsync(request); | ||
} | ||
} | ||
// [END dialogflow_v2_generated_Agents_DeleteAgent_async] | ||
} |
47 changes: 47 additions & 0 deletions
47
...e.Cloud.Dialogflow.V2.GeneratedSnippets/AgentsClient.DeleteAgentRequestObjectSnippet.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,47 @@ | ||
// 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 dialogflow_v2_generated_Agents_DeleteAgent_sync] | ||
using Google.Api.Gax.ResourceNames; | ||
using Google.Cloud.Dialogflow.V2; | ||
|
||
public sealed partial class GeneratedAgentsClientSnippets | ||
{ | ||
/// <summary>Snippet for DeleteAgent</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 DeleteAgentRequestObject() | ||
{ | ||
// Create client | ||
AgentsClient agentsClient = AgentsClient.Create(); | ||
// Initialize request argument(s) | ||
DeleteAgentRequest request = new DeleteAgentRequest | ||
{ | ||
ParentAsProjectName = ProjectName.FromProject("[PROJECT]"), | ||
}; | ||
// Make the request | ||
agentsClient.DeleteAgent(request); | ||
} | ||
} | ||
// [END dialogflow_v2_generated_Agents_DeleteAgent_sync] | ||
} |
45 changes: 45 additions & 0 deletions
45
...d.Dialogflow.V2.GeneratedSnippets/AgentsClient.DeleteAgentResourceNames1AsyncSnippet.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,45 @@ | ||
// 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 dialogflow_v2_generated_Agents_DeleteAgent_async_flattened_resourceNames1] | ||
using Google.Api.Gax.ResourceNames; | ||
using Google.Cloud.Dialogflow.V2; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedAgentsClientSnippets | ||
{ | ||
/// <summary>Snippet for DeleteAgentAsync</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 DeleteAgentResourceNames1Async() | ||
{ | ||
// Create client | ||
AgentsClient agentsClient = await AgentsClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
ProjectName parent = ProjectName.FromProject("[PROJECT]"); | ||
// Make the request | ||
await agentsClient.DeleteAgentAsync(parent); | ||
} | ||
} | ||
// [END dialogflow_v2_generated_Agents_DeleteAgent_async_flattened_resourceNames1] | ||
} |
44 changes: 44 additions & 0 deletions
44
....Cloud.Dialogflow.V2.GeneratedSnippets/AgentsClient.DeleteAgentResourceNames1Snippet.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,44 @@ | ||
// 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 dialogflow_v2_generated_Agents_DeleteAgent_sync_flattened_resourceNames1] | ||
using Google.Api.Gax.ResourceNames; | ||
using Google.Cloud.Dialogflow.V2; | ||
|
||
public sealed partial class GeneratedAgentsClientSnippets | ||
{ | ||
/// <summary>Snippet for DeleteAgent</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 DeleteAgentResourceNames1() | ||
{ | ||
// Create client | ||
AgentsClient agentsClient = AgentsClient.Create(); | ||
// Initialize request argument(s) | ||
ProjectName parent = ProjectName.FromProject("[PROJECT]"); | ||
// Make the request | ||
agentsClient.DeleteAgent(parent); | ||
} | ||
} | ||
// [END dialogflow_v2_generated_Agents_DeleteAgent_sync_flattened_resourceNames1] | ||
} |
45 changes: 45 additions & 0 deletions
45
...d.Dialogflow.V2.GeneratedSnippets/AgentsClient.DeleteAgentResourceNames2AsyncSnippet.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,45 @@ | ||
// 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 dialogflow_v2_generated_Agents_DeleteAgent_async_flattened_resourceNames2] | ||
using Google.Api.Gax.ResourceNames; | ||
using Google.Cloud.Dialogflow.V2; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedAgentsClientSnippets | ||
{ | ||
/// <summary>Snippet for DeleteAgentAsync</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 DeleteAgentResourceNames2Async() | ||
{ | ||
// Create client | ||
AgentsClient agentsClient = await AgentsClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); | ||
// Make the request | ||
await agentsClient.DeleteAgentAsync(parent); | ||
} | ||
} | ||
// [END dialogflow_v2_generated_Agents_DeleteAgent_async_flattened_resourceNames2] | ||
} |
44 changes: 44 additions & 0 deletions
44
....Cloud.Dialogflow.V2.GeneratedSnippets/AgentsClient.DeleteAgentResourceNames2Snippet.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,44 @@ | ||
// 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 dialogflow_v2_generated_Agents_DeleteAgent_sync_flattened_resourceNames2] | ||
using Google.Api.Gax.ResourceNames; | ||
using Google.Cloud.Dialogflow.V2; | ||
|
||
public sealed partial class GeneratedAgentsClientSnippets | ||
{ | ||
/// <summary>Snippet for DeleteAgent</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 DeleteAgentResourceNames2() | ||
{ | ||
// Create client | ||
AgentsClient agentsClient = AgentsClient.Create(); | ||
// Initialize request argument(s) | ||
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); | ||
// Make the request | ||
agentsClient.DeleteAgent(parent); | ||
} | ||
} | ||
// [END dialogflow_v2_generated_Agents_DeleteAgent_sync_flattened_resourceNames2] | ||
} |
43 changes: 43 additions & 0 deletions
43
...flow.V2/Google.Cloud.Dialogflow.V2.GeneratedSnippets/AgentsClient.DeleteAgentSnippet.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,43 @@ | ||
// 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 dialogflow_v2_generated_Agents_DeleteAgent_sync_flattened] | ||
using Google.Cloud.Dialogflow.V2; | ||
|
||
public sealed partial class GeneratedAgentsClientSnippets | ||
{ | ||
/// <summary>Snippet for DeleteAgent</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 DeleteAgent() | ||
{ | ||
// Create client | ||
AgentsClient agentsClient = AgentsClient.Create(); | ||
// Initialize request argument(s) | ||
string parent = "projects/[PROJECT]"; | ||
// Make the request | ||
agentsClient.DeleteAgent(parent); | ||
} | ||
} | ||
// [END dialogflow_v2_generated_Agents_DeleteAgent_sync_flattened] | ||
} |
Oops, something went wrong.