diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/EvaluationServiceClient.EvaluateInstancesRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/EvaluationServiceClient.EvaluateInstancesRequestObjectAsyncSnippet.g.cs
index bb7266ed73f5..3ca81619f31d 100644
--- a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/EvaluationServiceClient.EvaluateInstancesRequestObjectAsyncSnippet.g.cs
+++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/EvaluationServiceClient.EvaluateInstancesRequestObjectAsyncSnippet.g.cs
@@ -41,6 +41,9 @@ public async Task EvaluateInstancesRequestObjectAsync()
LocationAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
ExactMatchInput = new ExactMatchInput(),
AutoraterConfig = new AutoraterConfig(),
+ Metrics = { new Metric(), },
+ Instance = new EvaluationInstance(),
+ MetricSources = { new MetricSource(), },
};
// Make the request
EvaluateInstancesResponse response = await evaluationServiceClient.EvaluateInstancesAsync(request);
diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/EvaluationServiceClient.EvaluateInstancesRequestObjectSnippet.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/EvaluationServiceClient.EvaluateInstancesRequestObjectSnippet.g.cs
index 177ad9297915..c533ee14170b 100644
--- a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/EvaluationServiceClient.EvaluateInstancesRequestObjectSnippet.g.cs
+++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/EvaluationServiceClient.EvaluateInstancesRequestObjectSnippet.g.cs
@@ -40,6 +40,9 @@ public void EvaluateInstancesRequestObject()
LocationAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
ExactMatchInput = new ExactMatchInput(),
AutoraterConfig = new AutoraterConfig(),
+ Metrics = { new Metric(), },
+ Instance = new EvaluationInstance(),
+ MetricSources = { new MetricSource(), },
};
// Make the request
EvaluateInstancesResponse response = evaluationServiceClient.EvaluateInstances(request);
diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/EvaluationServiceClient.GenerateInstanceRubricsRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/EvaluationServiceClient.GenerateInstanceRubricsRequestObjectAsyncSnippet.g.cs
new file mode 100644
index 000000000000..b9d87f1e40d9
--- /dev/null
+++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/EvaluationServiceClient.GenerateInstanceRubricsRequestObjectAsyncSnippet.g.cs
@@ -0,0 +1,54 @@
+// Copyright 2026 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 aiplatform_v1beta1_generated_EvaluationService_GenerateInstanceRubrics_async]
+ using Google.Api.Gax.ResourceNames;
+ using Google.Cloud.AIPlatform.V1Beta1;
+ using System.Threading.Tasks;
+
+ public sealed partial class GeneratedEvaluationServiceClientSnippets
+ {
+ /// Snippet for GenerateInstanceRubricsAsync
+ ///
+ /// 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.
+ ///
+ public async Task GenerateInstanceRubricsRequestObjectAsync()
+ {
+ // Create client
+ EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ GenerateInstanceRubricsRequest request = new GenerateInstanceRubricsRequest
+ {
+ LocationAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
+ Contents = { new Content(), },
+ RubricGenerationSpec = new RubricGenerationSpec(),
+ PredefinedRubricGenerationSpec = new PredefinedMetricSpec(),
+#pragma warning disable CS0612
+ AgentConfig = new EvaluationInstance.Types.DeprecatedAgentConfig(),
+#pragma warning restore CS0612
+ };
+ // Make the request
+ GenerateInstanceRubricsResponse response = await evaluationServiceClient.GenerateInstanceRubricsAsync(request);
+ }
+ }
+ // [END aiplatform_v1beta1_generated_EvaluationService_GenerateInstanceRubrics_async]
+}
diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/EvaluationServiceClient.GenerateInstanceRubricsRequestObjectSnippet.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/EvaluationServiceClient.GenerateInstanceRubricsRequestObjectSnippet.g.cs
new file mode 100644
index 000000000000..d7014e326037
--- /dev/null
+++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/EvaluationServiceClient.GenerateInstanceRubricsRequestObjectSnippet.g.cs
@@ -0,0 +1,53 @@
+// Copyright 2026 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 aiplatform_v1beta1_generated_EvaluationService_GenerateInstanceRubrics_sync]
+ using Google.Api.Gax.ResourceNames;
+ using Google.Cloud.AIPlatform.V1Beta1;
+
+ public sealed partial class GeneratedEvaluationServiceClientSnippets
+ {
+ /// Snippet for GenerateInstanceRubrics
+ ///
+ /// 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.
+ ///
+ public void GenerateInstanceRubricsRequestObject()
+ {
+ // Create client
+ EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
+ // Initialize request argument(s)
+ GenerateInstanceRubricsRequest request = new GenerateInstanceRubricsRequest
+ {
+ LocationAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
+ Contents = { new Content(), },
+ RubricGenerationSpec = new RubricGenerationSpec(),
+ PredefinedRubricGenerationSpec = new PredefinedMetricSpec(),
+#pragma warning disable CS0612
+ AgentConfig = new EvaluationInstance.Types.DeprecatedAgentConfig(),
+#pragma warning restore CS0612
+ };
+ // Make the request
+ GenerateInstanceRubricsResponse response = evaluationServiceClient.GenerateInstanceRubrics(request);
+ }
+ }
+ // [END aiplatform_v1beta1_generated_EvaluationService_GenerateInstanceRubrics_sync]
+}
diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.ActivateOnlineEvaluatorAsyncSnippet.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.ActivateOnlineEvaluatorAsyncSnippet.g.cs
new file mode 100644
index 000000000000..8000d15b1c5e
--- /dev/null
+++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.ActivateOnlineEvaluatorAsyncSnippet.g.cs
@@ -0,0 +1,61 @@
+// Copyright 2026 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 aiplatform_v1beta1_generated_OnlineEvaluatorService_ActivateOnlineEvaluator_async_flattened]
+ using Google.Cloud.AIPlatform.V1Beta1;
+ using Google.LongRunning;
+ using System.Threading.Tasks;
+
+ public sealed partial class GeneratedOnlineEvaluatorServiceClientSnippets
+ {
+ /// Snippet for ActivateOnlineEvaluatorAsync
+ ///
+ /// 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.
+ ///
+ public async Task ActivateOnlineEvaluatorAsync()
+ {
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ string name = "projects/[PROJECT]/locations/[LOCATION]/onlineEvaluators/[ONLINE_EVALUATOR]";
+ // Make the request
+ Operation response = await onlineEvaluatorServiceClient.ActivateOnlineEvaluatorAsync(name);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = await response.PollUntilCompletedAsync();
+ // Retrieve the operation result
+ OnlineEvaluator 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 retrievedResponse = await onlineEvaluatorServiceClient.PollOnceActivateOnlineEvaluatorAsync(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ OnlineEvaluator retrievedResult = retrievedResponse.Result;
+ }
+ }
+ }
+ // [END aiplatform_v1beta1_generated_OnlineEvaluatorService_ActivateOnlineEvaluator_async_flattened]
+}
diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.ActivateOnlineEvaluatorRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.ActivateOnlineEvaluatorRequestObjectAsyncSnippet.g.cs
new file mode 100644
index 000000000000..5d965681344f
--- /dev/null
+++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.ActivateOnlineEvaluatorRequestObjectAsyncSnippet.g.cs
@@ -0,0 +1,64 @@
+// Copyright 2026 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 aiplatform_v1beta1_generated_OnlineEvaluatorService_ActivateOnlineEvaluator_async]
+ using Google.Cloud.AIPlatform.V1Beta1;
+ using Google.LongRunning;
+ using System.Threading.Tasks;
+
+ public sealed partial class GeneratedOnlineEvaluatorServiceClientSnippets
+ {
+ /// Snippet for ActivateOnlineEvaluatorAsync
+ ///
+ /// 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.
+ ///
+ public async Task ActivateOnlineEvaluatorRequestObjectAsync()
+ {
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ ActivateOnlineEvaluatorRequest request = new ActivateOnlineEvaluatorRequest
+ {
+ OnlineEvaluatorName = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]"),
+ };
+ // Make the request
+ Operation response = await onlineEvaluatorServiceClient.ActivateOnlineEvaluatorAsync(request);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = await response.PollUntilCompletedAsync();
+ // Retrieve the operation result
+ OnlineEvaluator 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 retrievedResponse = await onlineEvaluatorServiceClient.PollOnceActivateOnlineEvaluatorAsync(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ OnlineEvaluator retrievedResult = retrievedResponse.Result;
+ }
+ }
+ }
+ // [END aiplatform_v1beta1_generated_OnlineEvaluatorService_ActivateOnlineEvaluator_async]
+}
diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.ActivateOnlineEvaluatorRequestObjectSnippet.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.ActivateOnlineEvaluatorRequestObjectSnippet.g.cs
new file mode 100644
index 000000000000..b840827ee407
--- /dev/null
+++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.ActivateOnlineEvaluatorRequestObjectSnippet.g.cs
@@ -0,0 +1,63 @@
+// Copyright 2026 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 aiplatform_v1beta1_generated_OnlineEvaluatorService_ActivateOnlineEvaluator_sync]
+ using Google.Cloud.AIPlatform.V1Beta1;
+ using Google.LongRunning;
+
+ public sealed partial class GeneratedOnlineEvaluatorServiceClientSnippets
+ {
+ /// Snippet for ActivateOnlineEvaluator
+ ///
+ /// 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.
+ ///
+ public void ActivateOnlineEvaluatorRequestObject()
+ {
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
+ // Initialize request argument(s)
+ ActivateOnlineEvaluatorRequest request = new ActivateOnlineEvaluatorRequest
+ {
+ OnlineEvaluatorName = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]"),
+ };
+ // Make the request
+ Operation response = onlineEvaluatorServiceClient.ActivateOnlineEvaluator(request);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = response.PollUntilCompleted();
+ // Retrieve the operation result
+ OnlineEvaluator 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 retrievedResponse = onlineEvaluatorServiceClient.PollOnceActivateOnlineEvaluator(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ OnlineEvaluator retrievedResult = retrievedResponse.Result;
+ }
+ }
+ }
+ // [END aiplatform_v1beta1_generated_OnlineEvaluatorService_ActivateOnlineEvaluator_sync]
+}
diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.ActivateOnlineEvaluatorResourceNamesAsyncSnippet.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.ActivateOnlineEvaluatorResourceNamesAsyncSnippet.g.cs
new file mode 100644
index 000000000000..7155b2278abe
--- /dev/null
+++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.ActivateOnlineEvaluatorResourceNamesAsyncSnippet.g.cs
@@ -0,0 +1,61 @@
+// Copyright 2026 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 aiplatform_v1beta1_generated_OnlineEvaluatorService_ActivateOnlineEvaluator_async_flattened_resourceNames]
+ using Google.Cloud.AIPlatform.V1Beta1;
+ using Google.LongRunning;
+ using System.Threading.Tasks;
+
+ public sealed partial class GeneratedOnlineEvaluatorServiceClientSnippets
+ {
+ /// Snippet for ActivateOnlineEvaluatorAsync
+ ///
+ /// 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.
+ ///
+ public async Task ActivateOnlineEvaluatorResourceNamesAsync()
+ {
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ OnlineEvaluatorName name = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]");
+ // Make the request
+ Operation response = await onlineEvaluatorServiceClient.ActivateOnlineEvaluatorAsync(name);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = await response.PollUntilCompletedAsync();
+ // Retrieve the operation result
+ OnlineEvaluator 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 retrievedResponse = await onlineEvaluatorServiceClient.PollOnceActivateOnlineEvaluatorAsync(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ OnlineEvaluator retrievedResult = retrievedResponse.Result;
+ }
+ }
+ }
+ // [END aiplatform_v1beta1_generated_OnlineEvaluatorService_ActivateOnlineEvaluator_async_flattened_resourceNames]
+}
diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.ActivateOnlineEvaluatorResourceNamesSnippet.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.ActivateOnlineEvaluatorResourceNamesSnippet.g.cs
new file mode 100644
index 000000000000..331cade30a40
--- /dev/null
+++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.ActivateOnlineEvaluatorResourceNamesSnippet.g.cs
@@ -0,0 +1,60 @@
+// Copyright 2026 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 aiplatform_v1beta1_generated_OnlineEvaluatorService_ActivateOnlineEvaluator_sync_flattened_resourceNames]
+ using Google.Cloud.AIPlatform.V1Beta1;
+ using Google.LongRunning;
+
+ public sealed partial class GeneratedOnlineEvaluatorServiceClientSnippets
+ {
+ /// Snippet for ActivateOnlineEvaluator
+ ///
+ /// 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.
+ ///
+ public void ActivateOnlineEvaluatorResourceNames()
+ {
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
+ // Initialize request argument(s)
+ OnlineEvaluatorName name = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]");
+ // Make the request
+ Operation response = onlineEvaluatorServiceClient.ActivateOnlineEvaluator(name);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = response.PollUntilCompleted();
+ // Retrieve the operation result
+ OnlineEvaluator 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 retrievedResponse = onlineEvaluatorServiceClient.PollOnceActivateOnlineEvaluator(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ OnlineEvaluator retrievedResult = retrievedResponse.Result;
+ }
+ }
+ }
+ // [END aiplatform_v1beta1_generated_OnlineEvaluatorService_ActivateOnlineEvaluator_sync_flattened_resourceNames]
+}
diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.ActivateOnlineEvaluatorSnippet.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.ActivateOnlineEvaluatorSnippet.g.cs
new file mode 100644
index 000000000000..d5440b3d368c
--- /dev/null
+++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.ActivateOnlineEvaluatorSnippet.g.cs
@@ -0,0 +1,60 @@
+// Copyright 2026 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 aiplatform_v1beta1_generated_OnlineEvaluatorService_ActivateOnlineEvaluator_sync_flattened]
+ using Google.Cloud.AIPlatform.V1Beta1;
+ using Google.LongRunning;
+
+ public sealed partial class GeneratedOnlineEvaluatorServiceClientSnippets
+ {
+ /// Snippet for ActivateOnlineEvaluator
+ ///
+ /// 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.
+ ///
+ public void ActivateOnlineEvaluator()
+ {
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
+ // Initialize request argument(s)
+ string name = "projects/[PROJECT]/locations/[LOCATION]/onlineEvaluators/[ONLINE_EVALUATOR]";
+ // Make the request
+ Operation response = onlineEvaluatorServiceClient.ActivateOnlineEvaluator(name);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = response.PollUntilCompleted();
+ // Retrieve the operation result
+ OnlineEvaluator 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 retrievedResponse = onlineEvaluatorServiceClient.PollOnceActivateOnlineEvaluator(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ OnlineEvaluator retrievedResult = retrievedResponse.Result;
+ }
+ }
+ }
+ // [END aiplatform_v1beta1_generated_OnlineEvaluatorService_ActivateOnlineEvaluator_sync_flattened]
+}
diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.CreateOnlineEvaluatorAsyncSnippet.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.CreateOnlineEvaluatorAsyncSnippet.g.cs
new file mode 100644
index 000000000000..5cf093395cfd
--- /dev/null
+++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.CreateOnlineEvaluatorAsyncSnippet.g.cs
@@ -0,0 +1,62 @@
+// Copyright 2026 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 aiplatform_v1beta1_generated_OnlineEvaluatorService_CreateOnlineEvaluator_async_flattened]
+ using Google.Cloud.AIPlatform.V1Beta1;
+ using Google.LongRunning;
+ using System.Threading.Tasks;
+
+ public sealed partial class GeneratedOnlineEvaluatorServiceClientSnippets
+ {
+ /// Snippet for CreateOnlineEvaluatorAsync
+ ///
+ /// 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.
+ ///
+ public async Task CreateOnlineEvaluatorAsync()
+ {
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ string parent = "projects/[PROJECT]/locations/[LOCATION]";
+ OnlineEvaluator onlineEvaluator = new OnlineEvaluator();
+ // Make the request
+ Operation response = await onlineEvaluatorServiceClient.CreateOnlineEvaluatorAsync(parent, onlineEvaluator);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = await response.PollUntilCompletedAsync();
+ // Retrieve the operation result
+ OnlineEvaluator 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 retrievedResponse = await onlineEvaluatorServiceClient.PollOnceCreateOnlineEvaluatorAsync(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ OnlineEvaluator retrievedResult = retrievedResponse.Result;
+ }
+ }
+ }
+ // [END aiplatform_v1beta1_generated_OnlineEvaluatorService_CreateOnlineEvaluator_async_flattened]
+}
diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.CreateOnlineEvaluatorRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.CreateOnlineEvaluatorRequestObjectAsyncSnippet.g.cs
new file mode 100644
index 000000000000..a520b738837a
--- /dev/null
+++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.CreateOnlineEvaluatorRequestObjectAsyncSnippet.g.cs
@@ -0,0 +1,66 @@
+// Copyright 2026 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 aiplatform_v1beta1_generated_OnlineEvaluatorService_CreateOnlineEvaluator_async]
+ using Google.Api.Gax.ResourceNames;
+ using Google.Cloud.AIPlatform.V1Beta1;
+ using Google.LongRunning;
+ using System.Threading.Tasks;
+
+ public sealed partial class GeneratedOnlineEvaluatorServiceClientSnippets
+ {
+ /// Snippet for CreateOnlineEvaluatorAsync
+ ///
+ /// 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.
+ ///
+ public async Task CreateOnlineEvaluatorRequestObjectAsync()
+ {
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ CreateOnlineEvaluatorRequest request = new CreateOnlineEvaluatorRequest
+ {
+ ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
+ OnlineEvaluator = new OnlineEvaluator(),
+ };
+ // Make the request
+ Operation response = await onlineEvaluatorServiceClient.CreateOnlineEvaluatorAsync(request);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = await response.PollUntilCompletedAsync();
+ // Retrieve the operation result
+ OnlineEvaluator 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 retrievedResponse = await onlineEvaluatorServiceClient.PollOnceCreateOnlineEvaluatorAsync(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ OnlineEvaluator retrievedResult = retrievedResponse.Result;
+ }
+ }
+ }
+ // [END aiplatform_v1beta1_generated_OnlineEvaluatorService_CreateOnlineEvaluator_async]
+}
diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.CreateOnlineEvaluatorRequestObjectSnippet.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.CreateOnlineEvaluatorRequestObjectSnippet.g.cs
new file mode 100644
index 000000000000..38480cbe73aa
--- /dev/null
+++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.CreateOnlineEvaluatorRequestObjectSnippet.g.cs
@@ -0,0 +1,65 @@
+// Copyright 2026 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 aiplatform_v1beta1_generated_OnlineEvaluatorService_CreateOnlineEvaluator_sync]
+ using Google.Api.Gax.ResourceNames;
+ using Google.Cloud.AIPlatform.V1Beta1;
+ using Google.LongRunning;
+
+ public sealed partial class GeneratedOnlineEvaluatorServiceClientSnippets
+ {
+ /// Snippet for CreateOnlineEvaluator
+ ///
+ /// 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.
+ ///
+ public void CreateOnlineEvaluatorRequestObject()
+ {
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
+ // Initialize request argument(s)
+ CreateOnlineEvaluatorRequest request = new CreateOnlineEvaluatorRequest
+ {
+ ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
+ OnlineEvaluator = new OnlineEvaluator(),
+ };
+ // Make the request
+ Operation response = onlineEvaluatorServiceClient.CreateOnlineEvaluator(request);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = response.PollUntilCompleted();
+ // Retrieve the operation result
+ OnlineEvaluator 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 retrievedResponse = onlineEvaluatorServiceClient.PollOnceCreateOnlineEvaluator(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ OnlineEvaluator retrievedResult = retrievedResponse.Result;
+ }
+ }
+ }
+ // [END aiplatform_v1beta1_generated_OnlineEvaluatorService_CreateOnlineEvaluator_sync]
+}
diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.CreateOnlineEvaluatorResourceNamesAsyncSnippet.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.CreateOnlineEvaluatorResourceNamesAsyncSnippet.g.cs
new file mode 100644
index 000000000000..28e49607cd7c
--- /dev/null
+++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.CreateOnlineEvaluatorResourceNamesAsyncSnippet.g.cs
@@ -0,0 +1,63 @@
+// Copyright 2026 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 aiplatform_v1beta1_generated_OnlineEvaluatorService_CreateOnlineEvaluator_async_flattened_resourceNames]
+ using Google.Api.Gax.ResourceNames;
+ using Google.Cloud.AIPlatform.V1Beta1;
+ using Google.LongRunning;
+ using System.Threading.Tasks;
+
+ public sealed partial class GeneratedOnlineEvaluatorServiceClientSnippets
+ {
+ /// Snippet for CreateOnlineEvaluatorAsync
+ ///
+ /// 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.
+ ///
+ public async Task CreateOnlineEvaluatorResourceNamesAsync()
+ {
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
+ OnlineEvaluator onlineEvaluator = new OnlineEvaluator();
+ // Make the request
+ Operation response = await onlineEvaluatorServiceClient.CreateOnlineEvaluatorAsync(parent, onlineEvaluator);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = await response.PollUntilCompletedAsync();
+ // Retrieve the operation result
+ OnlineEvaluator 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 retrievedResponse = await onlineEvaluatorServiceClient.PollOnceCreateOnlineEvaluatorAsync(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ OnlineEvaluator retrievedResult = retrievedResponse.Result;
+ }
+ }
+ }
+ // [END aiplatform_v1beta1_generated_OnlineEvaluatorService_CreateOnlineEvaluator_async_flattened_resourceNames]
+}
diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.CreateOnlineEvaluatorResourceNamesSnippet.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.CreateOnlineEvaluatorResourceNamesSnippet.g.cs
new file mode 100644
index 000000000000..78f8973c3170
--- /dev/null
+++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.CreateOnlineEvaluatorResourceNamesSnippet.g.cs
@@ -0,0 +1,62 @@
+// Copyright 2026 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 aiplatform_v1beta1_generated_OnlineEvaluatorService_CreateOnlineEvaluator_sync_flattened_resourceNames]
+ using Google.Api.Gax.ResourceNames;
+ using Google.Cloud.AIPlatform.V1Beta1;
+ using Google.LongRunning;
+
+ public sealed partial class GeneratedOnlineEvaluatorServiceClientSnippets
+ {
+ /// Snippet for CreateOnlineEvaluator
+ ///
+ /// 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.
+ ///
+ public void CreateOnlineEvaluatorResourceNames()
+ {
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
+ // Initialize request argument(s)
+ LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
+ OnlineEvaluator onlineEvaluator = new OnlineEvaluator();
+ // Make the request
+ Operation response = onlineEvaluatorServiceClient.CreateOnlineEvaluator(parent, onlineEvaluator);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = response.PollUntilCompleted();
+ // Retrieve the operation result
+ OnlineEvaluator 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 retrievedResponse = onlineEvaluatorServiceClient.PollOnceCreateOnlineEvaluator(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ OnlineEvaluator retrievedResult = retrievedResponse.Result;
+ }
+ }
+ }
+ // [END aiplatform_v1beta1_generated_OnlineEvaluatorService_CreateOnlineEvaluator_sync_flattened_resourceNames]
+}
diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.CreateOnlineEvaluatorSnippet.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.CreateOnlineEvaluatorSnippet.g.cs
new file mode 100644
index 000000000000..f0310d1deac6
--- /dev/null
+++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.CreateOnlineEvaluatorSnippet.g.cs
@@ -0,0 +1,61 @@
+// Copyright 2026 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 aiplatform_v1beta1_generated_OnlineEvaluatorService_CreateOnlineEvaluator_sync_flattened]
+ using Google.Cloud.AIPlatform.V1Beta1;
+ using Google.LongRunning;
+
+ public sealed partial class GeneratedOnlineEvaluatorServiceClientSnippets
+ {
+ /// Snippet for CreateOnlineEvaluator
+ ///
+ /// 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.
+ ///
+ public void CreateOnlineEvaluator()
+ {
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
+ // Initialize request argument(s)
+ string parent = "projects/[PROJECT]/locations/[LOCATION]";
+ OnlineEvaluator onlineEvaluator = new OnlineEvaluator();
+ // Make the request
+ Operation response = onlineEvaluatorServiceClient.CreateOnlineEvaluator(parent, onlineEvaluator);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = response.PollUntilCompleted();
+ // Retrieve the operation result
+ OnlineEvaluator 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 retrievedResponse = onlineEvaluatorServiceClient.PollOnceCreateOnlineEvaluator(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ OnlineEvaluator retrievedResult = retrievedResponse.Result;
+ }
+ }
+ }
+ // [END aiplatform_v1beta1_generated_OnlineEvaluatorService_CreateOnlineEvaluator_sync_flattened]
+}
diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.DeleteOnlineEvaluatorAsyncSnippet.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.DeleteOnlineEvaluatorAsyncSnippet.g.cs
new file mode 100644
index 000000000000..b5f4b59c933e
--- /dev/null
+++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.DeleteOnlineEvaluatorAsyncSnippet.g.cs
@@ -0,0 +1,62 @@
+// Copyright 2026 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 aiplatform_v1beta1_generated_OnlineEvaluatorService_DeleteOnlineEvaluator_async_flattened]
+ using Google.Cloud.AIPlatform.V1Beta1;
+ using Google.LongRunning;
+ using Google.Protobuf.WellKnownTypes;
+ using System.Threading.Tasks;
+
+ public sealed partial class GeneratedOnlineEvaluatorServiceClientSnippets
+ {
+ /// Snippet for DeleteOnlineEvaluatorAsync
+ ///
+ /// 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.
+ ///
+ public async Task DeleteOnlineEvaluatorAsync()
+ {
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ string name = "projects/[PROJECT]/locations/[LOCATION]/onlineEvaluators/[ONLINE_EVALUATOR]";
+ // Make the request
+ Operation response = await onlineEvaluatorServiceClient.DeleteOnlineEvaluatorAsync(name);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = await response.PollUntilCompletedAsync();
+ // Retrieve the operation result
+ Empty 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 retrievedResponse = await onlineEvaluatorServiceClient.PollOnceDeleteOnlineEvaluatorAsync(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ Empty retrievedResult = retrievedResponse.Result;
+ }
+ }
+ }
+ // [END aiplatform_v1beta1_generated_OnlineEvaluatorService_DeleteOnlineEvaluator_async_flattened]
+}
diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.DeleteOnlineEvaluatorRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.DeleteOnlineEvaluatorRequestObjectAsyncSnippet.g.cs
new file mode 100644
index 000000000000..738211fdbb34
--- /dev/null
+++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.DeleteOnlineEvaluatorRequestObjectAsyncSnippet.g.cs
@@ -0,0 +1,65 @@
+// Copyright 2026 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 aiplatform_v1beta1_generated_OnlineEvaluatorService_DeleteOnlineEvaluator_async]
+ using Google.Cloud.AIPlatform.V1Beta1;
+ using Google.LongRunning;
+ using Google.Protobuf.WellKnownTypes;
+ using System.Threading.Tasks;
+
+ public sealed partial class GeneratedOnlineEvaluatorServiceClientSnippets
+ {
+ /// Snippet for DeleteOnlineEvaluatorAsync
+ ///
+ /// 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.
+ ///
+ public async Task DeleteOnlineEvaluatorRequestObjectAsync()
+ {
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ DeleteOnlineEvaluatorRequest request = new DeleteOnlineEvaluatorRequest
+ {
+ OnlineEvaluatorName = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]"),
+ };
+ // Make the request
+ Operation response = await onlineEvaluatorServiceClient.DeleteOnlineEvaluatorAsync(request);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = await response.PollUntilCompletedAsync();
+ // Retrieve the operation result
+ Empty 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 retrievedResponse = await onlineEvaluatorServiceClient.PollOnceDeleteOnlineEvaluatorAsync(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ Empty retrievedResult = retrievedResponse.Result;
+ }
+ }
+ }
+ // [END aiplatform_v1beta1_generated_OnlineEvaluatorService_DeleteOnlineEvaluator_async]
+}
diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.DeleteOnlineEvaluatorRequestObjectSnippet.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.DeleteOnlineEvaluatorRequestObjectSnippet.g.cs
new file mode 100644
index 000000000000..083bc97f3f4f
--- /dev/null
+++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.DeleteOnlineEvaluatorRequestObjectSnippet.g.cs
@@ -0,0 +1,64 @@
+// Copyright 2026 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 aiplatform_v1beta1_generated_OnlineEvaluatorService_DeleteOnlineEvaluator_sync]
+ using Google.Cloud.AIPlatform.V1Beta1;
+ using Google.LongRunning;
+ using Google.Protobuf.WellKnownTypes;
+
+ public sealed partial class GeneratedOnlineEvaluatorServiceClientSnippets
+ {
+ /// Snippet for DeleteOnlineEvaluator
+ ///
+ /// 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.
+ ///
+ public void DeleteOnlineEvaluatorRequestObject()
+ {
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
+ // Initialize request argument(s)
+ DeleteOnlineEvaluatorRequest request = new DeleteOnlineEvaluatorRequest
+ {
+ OnlineEvaluatorName = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]"),
+ };
+ // Make the request
+ Operation response = onlineEvaluatorServiceClient.DeleteOnlineEvaluator(request);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = response.PollUntilCompleted();
+ // Retrieve the operation result
+ Empty 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 retrievedResponse = onlineEvaluatorServiceClient.PollOnceDeleteOnlineEvaluator(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ Empty retrievedResult = retrievedResponse.Result;
+ }
+ }
+ }
+ // [END aiplatform_v1beta1_generated_OnlineEvaluatorService_DeleteOnlineEvaluator_sync]
+}
diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.DeleteOnlineEvaluatorResourceNamesAsyncSnippet.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.DeleteOnlineEvaluatorResourceNamesAsyncSnippet.g.cs
new file mode 100644
index 000000000000..94bd80d727e2
--- /dev/null
+++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.DeleteOnlineEvaluatorResourceNamesAsyncSnippet.g.cs
@@ -0,0 +1,62 @@
+// Copyright 2026 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 aiplatform_v1beta1_generated_OnlineEvaluatorService_DeleteOnlineEvaluator_async_flattened_resourceNames]
+ using Google.Cloud.AIPlatform.V1Beta1;
+ using Google.LongRunning;
+ using Google.Protobuf.WellKnownTypes;
+ using System.Threading.Tasks;
+
+ public sealed partial class GeneratedOnlineEvaluatorServiceClientSnippets
+ {
+ /// Snippet for DeleteOnlineEvaluatorAsync
+ ///
+ /// 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.
+ ///
+ public async Task DeleteOnlineEvaluatorResourceNamesAsync()
+ {
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ OnlineEvaluatorName name = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]");
+ // Make the request
+ Operation response = await onlineEvaluatorServiceClient.DeleteOnlineEvaluatorAsync(name);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = await response.PollUntilCompletedAsync();
+ // Retrieve the operation result
+ Empty 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 retrievedResponse = await onlineEvaluatorServiceClient.PollOnceDeleteOnlineEvaluatorAsync(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ Empty retrievedResult = retrievedResponse.Result;
+ }
+ }
+ }
+ // [END aiplatform_v1beta1_generated_OnlineEvaluatorService_DeleteOnlineEvaluator_async_flattened_resourceNames]
+}
diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.DeleteOnlineEvaluatorResourceNamesSnippet.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.DeleteOnlineEvaluatorResourceNamesSnippet.g.cs
new file mode 100644
index 000000000000..a5a4c93eb8a0
--- /dev/null
+++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.DeleteOnlineEvaluatorResourceNamesSnippet.g.cs
@@ -0,0 +1,61 @@
+// Copyright 2026 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 aiplatform_v1beta1_generated_OnlineEvaluatorService_DeleteOnlineEvaluator_sync_flattened_resourceNames]
+ using Google.Cloud.AIPlatform.V1Beta1;
+ using Google.LongRunning;
+ using Google.Protobuf.WellKnownTypes;
+
+ public sealed partial class GeneratedOnlineEvaluatorServiceClientSnippets
+ {
+ /// Snippet for DeleteOnlineEvaluator
+ ///
+ /// 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.
+ ///
+ public void DeleteOnlineEvaluatorResourceNames()
+ {
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
+ // Initialize request argument(s)
+ OnlineEvaluatorName name = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]");
+ // Make the request
+ Operation response = onlineEvaluatorServiceClient.DeleteOnlineEvaluator(name);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = response.PollUntilCompleted();
+ // Retrieve the operation result
+ Empty 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 retrievedResponse = onlineEvaluatorServiceClient.PollOnceDeleteOnlineEvaluator(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ Empty retrievedResult = retrievedResponse.Result;
+ }
+ }
+ }
+ // [END aiplatform_v1beta1_generated_OnlineEvaluatorService_DeleteOnlineEvaluator_sync_flattened_resourceNames]
+}
diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.DeleteOnlineEvaluatorSnippet.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.DeleteOnlineEvaluatorSnippet.g.cs
new file mode 100644
index 000000000000..2d60fbb47312
--- /dev/null
+++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.DeleteOnlineEvaluatorSnippet.g.cs
@@ -0,0 +1,61 @@
+// Copyright 2026 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 aiplatform_v1beta1_generated_OnlineEvaluatorService_DeleteOnlineEvaluator_sync_flattened]
+ using Google.Cloud.AIPlatform.V1Beta1;
+ using Google.LongRunning;
+ using Google.Protobuf.WellKnownTypes;
+
+ public sealed partial class GeneratedOnlineEvaluatorServiceClientSnippets
+ {
+ /// Snippet for DeleteOnlineEvaluator
+ ///
+ /// 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.
+ ///
+ public void DeleteOnlineEvaluator()
+ {
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
+ // Initialize request argument(s)
+ string name = "projects/[PROJECT]/locations/[LOCATION]/onlineEvaluators/[ONLINE_EVALUATOR]";
+ // Make the request
+ Operation response = onlineEvaluatorServiceClient.DeleteOnlineEvaluator(name);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = response.PollUntilCompleted();
+ // Retrieve the operation result
+ Empty 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 retrievedResponse = onlineEvaluatorServiceClient.PollOnceDeleteOnlineEvaluator(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ Empty retrievedResult = retrievedResponse.Result;
+ }
+ }
+ }
+ // [END aiplatform_v1beta1_generated_OnlineEvaluatorService_DeleteOnlineEvaluator_sync_flattened]
+}
diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.GetOnlineEvaluatorAsyncSnippet.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.GetOnlineEvaluatorAsyncSnippet.g.cs
new file mode 100644
index 000000000000..abfd9ad1c280
--- /dev/null
+++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.GetOnlineEvaluatorAsyncSnippet.g.cs
@@ -0,0 +1,44 @@
+// Copyright 2026 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 aiplatform_v1beta1_generated_OnlineEvaluatorService_GetOnlineEvaluator_async_flattened]
+ using Google.Cloud.AIPlatform.V1Beta1;
+ using System.Threading.Tasks;
+
+ public sealed partial class GeneratedOnlineEvaluatorServiceClientSnippets
+ {
+ /// Snippet for GetOnlineEvaluatorAsync
+ ///
+ /// 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.
+ ///
+ public async Task GetOnlineEvaluatorAsync()
+ {
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ string name = "projects/[PROJECT]/locations/[LOCATION]/onlineEvaluators/[ONLINE_EVALUATOR]";
+ // Make the request
+ OnlineEvaluator response = await onlineEvaluatorServiceClient.GetOnlineEvaluatorAsync(name);
+ }
+ }
+ // [END aiplatform_v1beta1_generated_OnlineEvaluatorService_GetOnlineEvaluator_async_flattened]
+}
diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.GetOnlineEvaluatorRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.GetOnlineEvaluatorRequestObjectAsyncSnippet.g.cs
new file mode 100644
index 000000000000..63e34f39b545
--- /dev/null
+++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.GetOnlineEvaluatorRequestObjectAsyncSnippet.g.cs
@@ -0,0 +1,47 @@
+// Copyright 2026 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 aiplatform_v1beta1_generated_OnlineEvaluatorService_GetOnlineEvaluator_async]
+ using Google.Cloud.AIPlatform.V1Beta1;
+ using System.Threading.Tasks;
+
+ public sealed partial class GeneratedOnlineEvaluatorServiceClientSnippets
+ {
+ /// Snippet for GetOnlineEvaluatorAsync
+ ///
+ /// 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.
+ ///
+ public async Task GetOnlineEvaluatorRequestObjectAsync()
+ {
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ GetOnlineEvaluatorRequest request = new GetOnlineEvaluatorRequest
+ {
+ OnlineEvaluatorName = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]"),
+ };
+ // Make the request
+ OnlineEvaluator response = await onlineEvaluatorServiceClient.GetOnlineEvaluatorAsync(request);
+ }
+ }
+ // [END aiplatform_v1beta1_generated_OnlineEvaluatorService_GetOnlineEvaluator_async]
+}
diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.GetOnlineEvaluatorRequestObjectSnippet.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.GetOnlineEvaluatorRequestObjectSnippet.g.cs
new file mode 100644
index 000000000000..feb38ea463d3
--- /dev/null
+++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.GetOnlineEvaluatorRequestObjectSnippet.g.cs
@@ -0,0 +1,46 @@
+// Copyright 2026 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 aiplatform_v1beta1_generated_OnlineEvaluatorService_GetOnlineEvaluator_sync]
+ using Google.Cloud.AIPlatform.V1Beta1;
+
+ public sealed partial class GeneratedOnlineEvaluatorServiceClientSnippets
+ {
+ /// Snippet for GetOnlineEvaluator
+ ///
+ /// 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.
+ ///
+ public void GetOnlineEvaluatorRequestObject()
+ {
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
+ // Initialize request argument(s)
+ GetOnlineEvaluatorRequest request = new GetOnlineEvaluatorRequest
+ {
+ OnlineEvaluatorName = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]"),
+ };
+ // Make the request
+ OnlineEvaluator response = onlineEvaluatorServiceClient.GetOnlineEvaluator(request);
+ }
+ }
+ // [END aiplatform_v1beta1_generated_OnlineEvaluatorService_GetOnlineEvaluator_sync]
+}
diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.GetOnlineEvaluatorResourceNamesAsyncSnippet.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.GetOnlineEvaluatorResourceNamesAsyncSnippet.g.cs
new file mode 100644
index 000000000000..c3c8a5ca6fa7
--- /dev/null
+++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.GetOnlineEvaluatorResourceNamesAsyncSnippet.g.cs
@@ -0,0 +1,44 @@
+// Copyright 2026 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 aiplatform_v1beta1_generated_OnlineEvaluatorService_GetOnlineEvaluator_async_flattened_resourceNames]
+ using Google.Cloud.AIPlatform.V1Beta1;
+ using System.Threading.Tasks;
+
+ public sealed partial class GeneratedOnlineEvaluatorServiceClientSnippets
+ {
+ /// Snippet for GetOnlineEvaluatorAsync
+ ///
+ /// 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.
+ ///
+ public async Task GetOnlineEvaluatorResourceNamesAsync()
+ {
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ OnlineEvaluatorName name = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]");
+ // Make the request
+ OnlineEvaluator response = await onlineEvaluatorServiceClient.GetOnlineEvaluatorAsync(name);
+ }
+ }
+ // [END aiplatform_v1beta1_generated_OnlineEvaluatorService_GetOnlineEvaluator_async_flattened_resourceNames]
+}
diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.GetOnlineEvaluatorResourceNamesSnippet.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.GetOnlineEvaluatorResourceNamesSnippet.g.cs
new file mode 100644
index 000000000000..db37c48ef0a1
--- /dev/null
+++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.GetOnlineEvaluatorResourceNamesSnippet.g.cs
@@ -0,0 +1,43 @@
+// Copyright 2026 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 aiplatform_v1beta1_generated_OnlineEvaluatorService_GetOnlineEvaluator_sync_flattened_resourceNames]
+ using Google.Cloud.AIPlatform.V1Beta1;
+
+ public sealed partial class GeneratedOnlineEvaluatorServiceClientSnippets
+ {
+ /// Snippet for GetOnlineEvaluator
+ ///
+ /// 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.
+ ///
+ public void GetOnlineEvaluatorResourceNames()
+ {
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
+ // Initialize request argument(s)
+ OnlineEvaluatorName name = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]");
+ // Make the request
+ OnlineEvaluator response = onlineEvaluatorServiceClient.GetOnlineEvaluator(name);
+ }
+ }
+ // [END aiplatform_v1beta1_generated_OnlineEvaluatorService_GetOnlineEvaluator_sync_flattened_resourceNames]
+}
diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.GetOnlineEvaluatorSnippet.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.GetOnlineEvaluatorSnippet.g.cs
new file mode 100644
index 000000000000..19635d359907
--- /dev/null
+++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.GetOnlineEvaluatorSnippet.g.cs
@@ -0,0 +1,43 @@
+// Copyright 2026 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 aiplatform_v1beta1_generated_OnlineEvaluatorService_GetOnlineEvaluator_sync_flattened]
+ using Google.Cloud.AIPlatform.V1Beta1;
+
+ public sealed partial class GeneratedOnlineEvaluatorServiceClientSnippets
+ {
+ /// Snippet for GetOnlineEvaluator
+ ///
+ /// 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.
+ ///
+ public void GetOnlineEvaluator()
+ {
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
+ // Initialize request argument(s)
+ string name = "projects/[PROJECT]/locations/[LOCATION]/onlineEvaluators/[ONLINE_EVALUATOR]";
+ // Make the request
+ OnlineEvaluator response = onlineEvaluatorServiceClient.GetOnlineEvaluator(name);
+ }
+ }
+ // [END aiplatform_v1beta1_generated_OnlineEvaluatorService_GetOnlineEvaluator_sync_flattened]
+}
diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.ListOnlineEvaluatorsAsyncSnippet.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.ListOnlineEvaluatorsAsyncSnippet.g.cs
new file mode 100644
index 000000000000..9aeb6ac24d6b
--- /dev/null
+++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.ListOnlineEvaluatorsAsyncSnippet.g.cs
@@ -0,0 +1,78 @@
+// Copyright 2026 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 aiplatform_v1beta1_generated_OnlineEvaluatorService_ListOnlineEvaluators_async_flattened]
+ using Google.Api.Gax;
+ using Google.Cloud.AIPlatform.V1Beta1;
+ using System;
+ using System.Threading.Tasks;
+
+ public sealed partial class GeneratedOnlineEvaluatorServiceClientSnippets
+ {
+ /// Snippet for ListOnlineEvaluatorsAsync
+ ///
+ /// 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.
+ ///
+ public async Task ListOnlineEvaluatorsAsync()
+ {
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ string parent = "projects/[PROJECT]/locations/[LOCATION]";
+ // Make the request
+ PagedAsyncEnumerable response = onlineEvaluatorServiceClient.ListOnlineEvaluatorsAsync(parent);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ await foreach (OnlineEvaluator item in response)
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ }
+
+ // Or iterate over pages (of server-defined size), performing one RPC per page
+ await foreach (ListOnlineEvaluatorsResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (OnlineEvaluator item in page)
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ }
+ }
+
+ // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
+ int pageSize = 10;
+ Page singlePage = await response.ReadPageAsync(pageSize);
+ // Do something with the page of items
+ Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
+ foreach (OnlineEvaluator item in singlePage)
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ }
+ // Store the pageToken, for when the next page is required.
+ string nextPageToken = singlePage.NextPageToken;
+ }
+ }
+ // [END aiplatform_v1beta1_generated_OnlineEvaluatorService_ListOnlineEvaluators_async_flattened]
+}
diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.ListOnlineEvaluatorsRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.ListOnlineEvaluatorsRequestObjectAsyncSnippet.g.cs
new file mode 100644
index 000000000000..7209a9e857bd
--- /dev/null
+++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.ListOnlineEvaluatorsRequestObjectAsyncSnippet.g.cs
@@ -0,0 +1,84 @@
+// Copyright 2026 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 aiplatform_v1beta1_generated_OnlineEvaluatorService_ListOnlineEvaluators_async]
+ using Google.Api.Gax;
+ using Google.Api.Gax.ResourceNames;
+ using Google.Cloud.AIPlatform.V1Beta1;
+ using System;
+ using System.Threading.Tasks;
+
+ public sealed partial class GeneratedOnlineEvaluatorServiceClientSnippets
+ {
+ /// Snippet for ListOnlineEvaluatorsAsync
+ ///
+ /// 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.
+ ///
+ public async Task ListOnlineEvaluatorsRequestObjectAsync()
+ {
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ ListOnlineEvaluatorsRequest request = new ListOnlineEvaluatorsRequest
+ {
+ ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
+ Filter = "",
+ OrderBy = "",
+ };
+ // Make the request
+ PagedAsyncEnumerable response = onlineEvaluatorServiceClient.ListOnlineEvaluatorsAsync(request);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ await foreach (OnlineEvaluator item in response)
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ }
+
+ // Or iterate over pages (of server-defined size), performing one RPC per page
+ await foreach (ListOnlineEvaluatorsResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (OnlineEvaluator item in page)
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ }
+ }
+
+ // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
+ int pageSize = 10;
+ Page singlePage = await response.ReadPageAsync(pageSize);
+ // Do something with the page of items
+ Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
+ foreach (OnlineEvaluator item in singlePage)
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ }
+ // Store the pageToken, for when the next page is required.
+ string nextPageToken = singlePage.NextPageToken;
+ }
+ }
+ // [END aiplatform_v1beta1_generated_OnlineEvaluatorService_ListOnlineEvaluators_async]
+}
diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.ListOnlineEvaluatorsRequestObjectSnippet.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.ListOnlineEvaluatorsRequestObjectSnippet.g.cs
new file mode 100644
index 000000000000..a99d106974ba
--- /dev/null
+++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.ListOnlineEvaluatorsRequestObjectSnippet.g.cs
@@ -0,0 +1,83 @@
+// Copyright 2026 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 aiplatform_v1beta1_generated_OnlineEvaluatorService_ListOnlineEvaluators_sync]
+ using Google.Api.Gax;
+ using Google.Api.Gax.ResourceNames;
+ using Google.Cloud.AIPlatform.V1Beta1;
+ using System;
+
+ public sealed partial class GeneratedOnlineEvaluatorServiceClientSnippets
+ {
+ /// Snippet for ListOnlineEvaluators
+ ///
+ /// 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.
+ ///
+ public void ListOnlineEvaluatorsRequestObject()
+ {
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
+ // Initialize request argument(s)
+ ListOnlineEvaluatorsRequest request = new ListOnlineEvaluatorsRequest
+ {
+ ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
+ Filter = "",
+ OrderBy = "",
+ };
+ // Make the request
+ PagedEnumerable response = onlineEvaluatorServiceClient.ListOnlineEvaluators(request);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ foreach (OnlineEvaluator item in response)
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ }
+
+ // Or iterate over pages (of server-defined size), performing one RPC per page
+ foreach (ListOnlineEvaluatorsResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (OnlineEvaluator item in page)
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ }
+ }
+
+ // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
+ int pageSize = 10;
+ Page singlePage = response.ReadPage(pageSize);
+ // Do something with the page of items
+ Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
+ foreach (OnlineEvaluator item in singlePage)
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ }
+ // Store the pageToken, for when the next page is required.
+ string nextPageToken = singlePage.NextPageToken;
+ }
+ }
+ // [END aiplatform_v1beta1_generated_OnlineEvaluatorService_ListOnlineEvaluators_sync]
+}
diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.ListOnlineEvaluatorsResourceNamesAsyncSnippet.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.ListOnlineEvaluatorsResourceNamesAsyncSnippet.g.cs
new file mode 100644
index 000000000000..da8ba1253a52
--- /dev/null
+++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.ListOnlineEvaluatorsResourceNamesAsyncSnippet.g.cs
@@ -0,0 +1,79 @@
+// Copyright 2026 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 aiplatform_v1beta1_generated_OnlineEvaluatorService_ListOnlineEvaluators_async_flattened_resourceNames]
+ using Google.Api.Gax;
+ using Google.Api.Gax.ResourceNames;
+ using Google.Cloud.AIPlatform.V1Beta1;
+ using System;
+ using System.Threading.Tasks;
+
+ public sealed partial class GeneratedOnlineEvaluatorServiceClientSnippets
+ {
+ /// Snippet for ListOnlineEvaluatorsAsync
+ ///
+ /// 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.
+ ///
+ public async Task ListOnlineEvaluatorsResourceNamesAsync()
+ {
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
+ // Make the request
+ PagedAsyncEnumerable response = onlineEvaluatorServiceClient.ListOnlineEvaluatorsAsync(parent);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ await foreach (OnlineEvaluator item in response)
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ }
+
+ // Or iterate over pages (of server-defined size), performing one RPC per page
+ await foreach (ListOnlineEvaluatorsResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (OnlineEvaluator item in page)
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ }
+ }
+
+ // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
+ int pageSize = 10;
+ Page singlePage = await response.ReadPageAsync(pageSize);
+ // Do something with the page of items
+ Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
+ foreach (OnlineEvaluator item in singlePage)
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ }
+ // Store the pageToken, for when the next page is required.
+ string nextPageToken = singlePage.NextPageToken;
+ }
+ }
+ // [END aiplatform_v1beta1_generated_OnlineEvaluatorService_ListOnlineEvaluators_async_flattened_resourceNames]
+}
diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.ListOnlineEvaluatorsResourceNamesSnippet.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.ListOnlineEvaluatorsResourceNamesSnippet.g.cs
new file mode 100644
index 000000000000..9eb62a9842fc
--- /dev/null
+++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.ListOnlineEvaluatorsResourceNamesSnippet.g.cs
@@ -0,0 +1,78 @@
+// Copyright 2026 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 aiplatform_v1beta1_generated_OnlineEvaluatorService_ListOnlineEvaluators_sync_flattened_resourceNames]
+ using Google.Api.Gax;
+ using Google.Api.Gax.ResourceNames;
+ using Google.Cloud.AIPlatform.V1Beta1;
+ using System;
+
+ public sealed partial class GeneratedOnlineEvaluatorServiceClientSnippets
+ {
+ /// Snippet for ListOnlineEvaluators
+ ///
+ /// 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.
+ ///
+ public void ListOnlineEvaluatorsResourceNames()
+ {
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
+ // Initialize request argument(s)
+ LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
+ // Make the request
+ PagedEnumerable response = onlineEvaluatorServiceClient.ListOnlineEvaluators(parent);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ foreach (OnlineEvaluator item in response)
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ }
+
+ // Or iterate over pages (of server-defined size), performing one RPC per page
+ foreach (ListOnlineEvaluatorsResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (OnlineEvaluator item in page)
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ }
+ }
+
+ // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
+ int pageSize = 10;
+ Page singlePage = response.ReadPage(pageSize);
+ // Do something with the page of items
+ Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
+ foreach (OnlineEvaluator item in singlePage)
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ }
+ // Store the pageToken, for when the next page is required.
+ string nextPageToken = singlePage.NextPageToken;
+ }
+ }
+ // [END aiplatform_v1beta1_generated_OnlineEvaluatorService_ListOnlineEvaluators_sync_flattened_resourceNames]
+}
diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.ListOnlineEvaluatorsSnippet.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.ListOnlineEvaluatorsSnippet.g.cs
new file mode 100644
index 000000000000..44db71116827
--- /dev/null
+++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.ListOnlineEvaluatorsSnippet.g.cs
@@ -0,0 +1,77 @@
+// Copyright 2026 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 aiplatform_v1beta1_generated_OnlineEvaluatorService_ListOnlineEvaluators_sync_flattened]
+ using Google.Api.Gax;
+ using Google.Cloud.AIPlatform.V1Beta1;
+ using System;
+
+ public sealed partial class GeneratedOnlineEvaluatorServiceClientSnippets
+ {
+ /// Snippet for ListOnlineEvaluators
+ ///
+ /// 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.
+ ///
+ public void ListOnlineEvaluators()
+ {
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
+ // Initialize request argument(s)
+ string parent = "projects/[PROJECT]/locations/[LOCATION]";
+ // Make the request
+ PagedEnumerable response = onlineEvaluatorServiceClient.ListOnlineEvaluators(parent);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ foreach (OnlineEvaluator item in response)
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ }
+
+ // Or iterate over pages (of server-defined size), performing one RPC per page
+ foreach (ListOnlineEvaluatorsResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (OnlineEvaluator item in page)
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ }
+ }
+
+ // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
+ int pageSize = 10;
+ Page singlePage = response.ReadPage(pageSize);
+ // Do something with the page of items
+ Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
+ foreach (OnlineEvaluator item in singlePage)
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ }
+ // Store the pageToken, for when the next page is required.
+ string nextPageToken = singlePage.NextPageToken;
+ }
+ }
+ // [END aiplatform_v1beta1_generated_OnlineEvaluatorService_ListOnlineEvaluators_sync_flattened]
+}
diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.SuspendOnlineEvaluatorAsyncSnippet.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.SuspendOnlineEvaluatorAsyncSnippet.g.cs
new file mode 100644
index 000000000000..2e62bb1cb2de
--- /dev/null
+++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.SuspendOnlineEvaluatorAsyncSnippet.g.cs
@@ -0,0 +1,61 @@
+// Copyright 2026 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 aiplatform_v1beta1_generated_OnlineEvaluatorService_SuspendOnlineEvaluator_async_flattened]
+ using Google.Cloud.AIPlatform.V1Beta1;
+ using Google.LongRunning;
+ using System.Threading.Tasks;
+
+ public sealed partial class GeneratedOnlineEvaluatorServiceClientSnippets
+ {
+ /// Snippet for SuspendOnlineEvaluatorAsync
+ ///
+ /// 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.
+ ///
+ public async Task SuspendOnlineEvaluatorAsync()
+ {
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ string name = "projects/[PROJECT]/locations/[LOCATION]/onlineEvaluators/[ONLINE_EVALUATOR]";
+ // Make the request
+ Operation response = await onlineEvaluatorServiceClient.SuspendOnlineEvaluatorAsync(name);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = await response.PollUntilCompletedAsync();
+ // Retrieve the operation result
+ OnlineEvaluator 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 retrievedResponse = await onlineEvaluatorServiceClient.PollOnceSuspendOnlineEvaluatorAsync(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ OnlineEvaluator retrievedResult = retrievedResponse.Result;
+ }
+ }
+ }
+ // [END aiplatform_v1beta1_generated_OnlineEvaluatorService_SuspendOnlineEvaluator_async_flattened]
+}
diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.SuspendOnlineEvaluatorRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.SuspendOnlineEvaluatorRequestObjectAsyncSnippet.g.cs
new file mode 100644
index 000000000000..735c2e77cad1
--- /dev/null
+++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.SuspendOnlineEvaluatorRequestObjectAsyncSnippet.g.cs
@@ -0,0 +1,64 @@
+// Copyright 2026 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 aiplatform_v1beta1_generated_OnlineEvaluatorService_SuspendOnlineEvaluator_async]
+ using Google.Cloud.AIPlatform.V1Beta1;
+ using Google.LongRunning;
+ using System.Threading.Tasks;
+
+ public sealed partial class GeneratedOnlineEvaluatorServiceClientSnippets
+ {
+ /// Snippet for SuspendOnlineEvaluatorAsync
+ ///
+ /// 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.
+ ///
+ public async Task SuspendOnlineEvaluatorRequestObjectAsync()
+ {
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ SuspendOnlineEvaluatorRequest request = new SuspendOnlineEvaluatorRequest
+ {
+ OnlineEvaluatorName = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]"),
+ };
+ // Make the request
+ Operation response = await onlineEvaluatorServiceClient.SuspendOnlineEvaluatorAsync(request);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = await response.PollUntilCompletedAsync();
+ // Retrieve the operation result
+ OnlineEvaluator 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 retrievedResponse = await onlineEvaluatorServiceClient.PollOnceSuspendOnlineEvaluatorAsync(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ OnlineEvaluator retrievedResult = retrievedResponse.Result;
+ }
+ }
+ }
+ // [END aiplatform_v1beta1_generated_OnlineEvaluatorService_SuspendOnlineEvaluator_async]
+}
diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.SuspendOnlineEvaluatorRequestObjectSnippet.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.SuspendOnlineEvaluatorRequestObjectSnippet.g.cs
new file mode 100644
index 000000000000..a84da14305a5
--- /dev/null
+++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.SuspendOnlineEvaluatorRequestObjectSnippet.g.cs
@@ -0,0 +1,63 @@
+// Copyright 2026 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 aiplatform_v1beta1_generated_OnlineEvaluatorService_SuspendOnlineEvaluator_sync]
+ using Google.Cloud.AIPlatform.V1Beta1;
+ using Google.LongRunning;
+
+ public sealed partial class GeneratedOnlineEvaluatorServiceClientSnippets
+ {
+ /// Snippet for SuspendOnlineEvaluator
+ ///
+ /// 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.
+ ///
+ public void SuspendOnlineEvaluatorRequestObject()
+ {
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
+ // Initialize request argument(s)
+ SuspendOnlineEvaluatorRequest request = new SuspendOnlineEvaluatorRequest
+ {
+ OnlineEvaluatorName = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]"),
+ };
+ // Make the request
+ Operation response = onlineEvaluatorServiceClient.SuspendOnlineEvaluator(request);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = response.PollUntilCompleted();
+ // Retrieve the operation result
+ OnlineEvaluator 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 retrievedResponse = onlineEvaluatorServiceClient.PollOnceSuspendOnlineEvaluator(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ OnlineEvaluator retrievedResult = retrievedResponse.Result;
+ }
+ }
+ }
+ // [END aiplatform_v1beta1_generated_OnlineEvaluatorService_SuspendOnlineEvaluator_sync]
+}
diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.SuspendOnlineEvaluatorResourceNamesAsyncSnippet.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.SuspendOnlineEvaluatorResourceNamesAsyncSnippet.g.cs
new file mode 100644
index 000000000000..0bf098de91ca
--- /dev/null
+++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.SuspendOnlineEvaluatorResourceNamesAsyncSnippet.g.cs
@@ -0,0 +1,61 @@
+// Copyright 2026 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 aiplatform_v1beta1_generated_OnlineEvaluatorService_SuspendOnlineEvaluator_async_flattened_resourceNames]
+ using Google.Cloud.AIPlatform.V1Beta1;
+ using Google.LongRunning;
+ using System.Threading.Tasks;
+
+ public sealed partial class GeneratedOnlineEvaluatorServiceClientSnippets
+ {
+ /// Snippet for SuspendOnlineEvaluatorAsync
+ ///
+ /// 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.
+ ///
+ public async Task SuspendOnlineEvaluatorResourceNamesAsync()
+ {
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ OnlineEvaluatorName name = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]");
+ // Make the request
+ Operation response = await onlineEvaluatorServiceClient.SuspendOnlineEvaluatorAsync(name);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = await response.PollUntilCompletedAsync();
+ // Retrieve the operation result
+ OnlineEvaluator 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 retrievedResponse = await onlineEvaluatorServiceClient.PollOnceSuspendOnlineEvaluatorAsync(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ OnlineEvaluator retrievedResult = retrievedResponse.Result;
+ }
+ }
+ }
+ // [END aiplatform_v1beta1_generated_OnlineEvaluatorService_SuspendOnlineEvaluator_async_flattened_resourceNames]
+}
diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.SuspendOnlineEvaluatorResourceNamesSnippet.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.SuspendOnlineEvaluatorResourceNamesSnippet.g.cs
new file mode 100644
index 000000000000..46264a7e26f7
--- /dev/null
+++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.SuspendOnlineEvaluatorResourceNamesSnippet.g.cs
@@ -0,0 +1,60 @@
+// Copyright 2026 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 aiplatform_v1beta1_generated_OnlineEvaluatorService_SuspendOnlineEvaluator_sync_flattened_resourceNames]
+ using Google.Cloud.AIPlatform.V1Beta1;
+ using Google.LongRunning;
+
+ public sealed partial class GeneratedOnlineEvaluatorServiceClientSnippets
+ {
+ /// Snippet for SuspendOnlineEvaluator
+ ///
+ /// 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.
+ ///
+ public void SuspendOnlineEvaluatorResourceNames()
+ {
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
+ // Initialize request argument(s)
+ OnlineEvaluatorName name = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]");
+ // Make the request
+ Operation response = onlineEvaluatorServiceClient.SuspendOnlineEvaluator(name);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = response.PollUntilCompleted();
+ // Retrieve the operation result
+ OnlineEvaluator 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 retrievedResponse = onlineEvaluatorServiceClient.PollOnceSuspendOnlineEvaluator(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ OnlineEvaluator retrievedResult = retrievedResponse.Result;
+ }
+ }
+ }
+ // [END aiplatform_v1beta1_generated_OnlineEvaluatorService_SuspendOnlineEvaluator_sync_flattened_resourceNames]
+}
diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.SuspendOnlineEvaluatorSnippet.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.SuspendOnlineEvaluatorSnippet.g.cs
new file mode 100644
index 000000000000..6e9921395633
--- /dev/null
+++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.SuspendOnlineEvaluatorSnippet.g.cs
@@ -0,0 +1,60 @@
+// Copyright 2026 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 aiplatform_v1beta1_generated_OnlineEvaluatorService_SuspendOnlineEvaluator_sync_flattened]
+ using Google.Cloud.AIPlatform.V1Beta1;
+ using Google.LongRunning;
+
+ public sealed partial class GeneratedOnlineEvaluatorServiceClientSnippets
+ {
+ /// Snippet for SuspendOnlineEvaluator
+ ///
+ /// 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.
+ ///
+ public void SuspendOnlineEvaluator()
+ {
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
+ // Initialize request argument(s)
+ string name = "projects/[PROJECT]/locations/[LOCATION]/onlineEvaluators/[ONLINE_EVALUATOR]";
+ // Make the request
+ Operation response = onlineEvaluatorServiceClient.SuspendOnlineEvaluator(name);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = response.PollUntilCompleted();
+ // Retrieve the operation result
+ OnlineEvaluator 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 retrievedResponse = onlineEvaluatorServiceClient.PollOnceSuspendOnlineEvaluator(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ OnlineEvaluator retrievedResult = retrievedResponse.Result;
+ }
+ }
+ }
+ // [END aiplatform_v1beta1_generated_OnlineEvaluatorService_SuspendOnlineEvaluator_sync_flattened]
+}
diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.UpdateOnlineEvaluatorAsyncSnippet.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.UpdateOnlineEvaluatorAsyncSnippet.g.cs
new file mode 100644
index 000000000000..7f21d3808aef
--- /dev/null
+++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.UpdateOnlineEvaluatorAsyncSnippet.g.cs
@@ -0,0 +1,63 @@
+// Copyright 2026 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 aiplatform_v1beta1_generated_OnlineEvaluatorService_UpdateOnlineEvaluator_async_flattened]
+ using Google.Cloud.AIPlatform.V1Beta1;
+ using Google.LongRunning;
+ using Google.Protobuf.WellKnownTypes;
+ using System.Threading.Tasks;
+
+ public sealed partial class GeneratedOnlineEvaluatorServiceClientSnippets
+ {
+ /// Snippet for UpdateOnlineEvaluatorAsync
+ ///
+ /// 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.
+ ///
+ public async Task UpdateOnlineEvaluatorAsync()
+ {
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ OnlineEvaluator onlineEvaluator = new OnlineEvaluator();
+ FieldMask updateMask = new FieldMask();
+ // Make the request
+ Operation response = await onlineEvaluatorServiceClient.UpdateOnlineEvaluatorAsync(onlineEvaluator, updateMask);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = await response.PollUntilCompletedAsync();
+ // Retrieve the operation result
+ OnlineEvaluator 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 retrievedResponse = await onlineEvaluatorServiceClient.PollOnceUpdateOnlineEvaluatorAsync(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ OnlineEvaluator retrievedResult = retrievedResponse.Result;
+ }
+ }
+ }
+ // [END aiplatform_v1beta1_generated_OnlineEvaluatorService_UpdateOnlineEvaluator_async_flattened]
+}
diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.UpdateOnlineEvaluatorRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.UpdateOnlineEvaluatorRequestObjectAsyncSnippet.g.cs
new file mode 100644
index 000000000000..2a48286bc3b7
--- /dev/null
+++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.UpdateOnlineEvaluatorRequestObjectAsyncSnippet.g.cs
@@ -0,0 +1,66 @@
+// Copyright 2026 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 aiplatform_v1beta1_generated_OnlineEvaluatorService_UpdateOnlineEvaluator_async]
+ using Google.Cloud.AIPlatform.V1Beta1;
+ using Google.LongRunning;
+ using Google.Protobuf.WellKnownTypes;
+ using System.Threading.Tasks;
+
+ public sealed partial class GeneratedOnlineEvaluatorServiceClientSnippets
+ {
+ /// Snippet for UpdateOnlineEvaluatorAsync
+ ///
+ /// 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.
+ ///
+ public async Task UpdateOnlineEvaluatorRequestObjectAsync()
+ {
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ UpdateOnlineEvaluatorRequest request = new UpdateOnlineEvaluatorRequest
+ {
+ OnlineEvaluator = new OnlineEvaluator(),
+ UpdateMask = new FieldMask(),
+ };
+ // Make the request
+ Operation response = await onlineEvaluatorServiceClient.UpdateOnlineEvaluatorAsync(request);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = await response.PollUntilCompletedAsync();
+ // Retrieve the operation result
+ OnlineEvaluator 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 retrievedResponse = await onlineEvaluatorServiceClient.PollOnceUpdateOnlineEvaluatorAsync(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ OnlineEvaluator retrievedResult = retrievedResponse.Result;
+ }
+ }
+ }
+ // [END aiplatform_v1beta1_generated_OnlineEvaluatorService_UpdateOnlineEvaluator_async]
+}
diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.UpdateOnlineEvaluatorRequestObjectSnippet.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.UpdateOnlineEvaluatorRequestObjectSnippet.g.cs
new file mode 100644
index 000000000000..b348a481275c
--- /dev/null
+++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.UpdateOnlineEvaluatorRequestObjectSnippet.g.cs
@@ -0,0 +1,65 @@
+// Copyright 2026 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 aiplatform_v1beta1_generated_OnlineEvaluatorService_UpdateOnlineEvaluator_sync]
+ using Google.Cloud.AIPlatform.V1Beta1;
+ using Google.LongRunning;
+ using Google.Protobuf.WellKnownTypes;
+
+ public sealed partial class GeneratedOnlineEvaluatorServiceClientSnippets
+ {
+ /// Snippet for UpdateOnlineEvaluator
+ ///
+ /// 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.
+ ///
+ public void UpdateOnlineEvaluatorRequestObject()
+ {
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
+ // Initialize request argument(s)
+ UpdateOnlineEvaluatorRequest request = new UpdateOnlineEvaluatorRequest
+ {
+ OnlineEvaluator = new OnlineEvaluator(),
+ UpdateMask = new FieldMask(),
+ };
+ // Make the request
+ Operation response = onlineEvaluatorServiceClient.UpdateOnlineEvaluator(request);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = response.PollUntilCompleted();
+ // Retrieve the operation result
+ OnlineEvaluator 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 retrievedResponse = onlineEvaluatorServiceClient.PollOnceUpdateOnlineEvaluator(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ OnlineEvaluator retrievedResult = retrievedResponse.Result;
+ }
+ }
+ }
+ // [END aiplatform_v1beta1_generated_OnlineEvaluatorService_UpdateOnlineEvaluator_sync]
+}
diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.UpdateOnlineEvaluatorSnippet.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.UpdateOnlineEvaluatorSnippet.g.cs
new file mode 100644
index 000000000000..8628bd71b92e
--- /dev/null
+++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/OnlineEvaluatorServiceClient.UpdateOnlineEvaluatorSnippet.g.cs
@@ -0,0 +1,62 @@
+// Copyright 2026 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 aiplatform_v1beta1_generated_OnlineEvaluatorService_UpdateOnlineEvaluator_sync_flattened]
+ using Google.Cloud.AIPlatform.V1Beta1;
+ using Google.LongRunning;
+ using Google.Protobuf.WellKnownTypes;
+
+ public sealed partial class GeneratedOnlineEvaluatorServiceClientSnippets
+ {
+ /// Snippet for UpdateOnlineEvaluator
+ ///
+ /// 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.
+ ///
+ public void UpdateOnlineEvaluator()
+ {
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
+ // Initialize request argument(s)
+ OnlineEvaluator onlineEvaluator = new OnlineEvaluator();
+ FieldMask updateMask = new FieldMask();
+ // Make the request
+ Operation response = onlineEvaluatorServiceClient.UpdateOnlineEvaluator(onlineEvaluator, updateMask);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = response.PollUntilCompleted();
+ // Retrieve the operation result
+ OnlineEvaluator 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 retrievedResponse = onlineEvaluatorServiceClient.PollOnceUpdateOnlineEvaluator(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ OnlineEvaluator retrievedResult = retrievedResponse.Result;
+ }
+ }
+ }
+ // [END aiplatform_v1beta1_generated_OnlineEvaluatorService_UpdateOnlineEvaluator_sync_flattened]
+}
diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/snippet_metadata_google.cloud.aiplatform.v1beta1.json b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/snippet_metadata_google.cloud.aiplatform.v1beta1.json
index 9cf23fcbff9c..5147739b249a 100644
--- a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/snippet_metadata_google.cloud.aiplatform.v1beta1.json
+++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/snippet_metadata_google.cloud.aiplatform.v1beta1.json
@@ -10532,12 +10532,12 @@
"segments": [
{
"start": 20,
- "end": 47,
+ "end": 50,
"type": "FULL"
},
{
"start": 35,
- "end": 45,
+ "end": 48,
"type": "SHORT"
}
]
@@ -10581,12 +10581,12 @@
"segments": [
{
"start": 20,
- "end": 48,
+ "end": 51,
"type": "FULL"
},
{
"start": 36,
- "end": 46,
+ "end": 49,
"type": "SHORT"
}
]
@@ -10688,6 +10688,103 @@
}
]
},
+ {
+ "regionTag": "aiplatform_v1beta1_generated_EvaluationService_GenerateInstanceRubrics_sync",
+ "title": "GenerateInstanceRubricsRequestObject",
+ "description": "Snippet for GenerateInstanceRubrics",
+ "file": "EvaluationServiceClient.GenerateInstanceRubricsRequestObjectSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "GenerateInstanceRubrics",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.EvaluationServiceClient.GenerateInstanceRubrics",
+ "parameters": [
+ {
+ "type": "Google.Cloud.AIPlatform.V1Beta1.GenerateInstanceRubricsRequest",
+ "name": "request"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.Cloud.AIPlatform.V1Beta1.GenerateInstanceRubricsResponse",
+ "client": {
+ "shortName": "EvaluationServiceClient",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.EvaluationServiceClient"
+ },
+ "method": {
+ "shortName": "GenerateInstanceRubrics",
+ "fullName": "google.cloud.aiplatform.v1beta1.EvaluationService.GenerateInstanceRubrics",
+ "service": {
+ "shortName": "EvaluationService",
+ "fullName": "google.cloud.aiplatform.v1beta1.EvaluationService"
+ }
+ }
+ },
+ "canonical": true,
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 51,
+ "type": "FULL"
+ },
+ {
+ "start": 35,
+ "end": 49,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "aiplatform_v1beta1_generated_EvaluationService_GenerateInstanceRubrics_async",
+ "title": "GenerateInstanceRubricsRequestObjectAsync",
+ "description": "Snippet for GenerateInstanceRubricsAsync",
+ "file": "EvaluationServiceClient.GenerateInstanceRubricsRequestObjectAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "GenerateInstanceRubricsAsync",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.EvaluationServiceClient.GenerateInstanceRubricsAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "Google.Cloud.AIPlatform.V1Beta1.GenerateInstanceRubricsRequest",
+ "name": "request"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task",
+ "client": {
+ "shortName": "EvaluationServiceClient",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.EvaluationServiceClient"
+ },
+ "method": {
+ "shortName": "GenerateInstanceRubrics",
+ "fullName": "google.cloud.aiplatform.v1beta1.EvaluationService.GenerateInstanceRubrics",
+ "service": {
+ "shortName": "EvaluationService",
+ "fullName": "google.cloud.aiplatform.v1beta1.EvaluationService"
+ }
+ }
+ },
+ "canonical": true,
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 52,
+ "type": "FULL"
+ },
+ {
+ "start": 36,
+ "end": 50,
+ "type": "SHORT"
+ }
+ ]
+ },
{
"regionTag": "aiplatform_v1beta1_generated_ExampleStoreService_CreateExampleStore_sync",
"title": "CreateExampleStoreRequestObject",
@@ -77723,6 +77820,1976 @@
}
]
},
+ {
+ "regionTag": "aiplatform_v1beta1_generated_OnlineEvaluatorService_CreateOnlineEvaluator_sync",
+ "title": "CreateOnlineEvaluatorRequestObject",
+ "description": "Snippet for CreateOnlineEvaluator",
+ "file": "OnlineEvaluatorServiceClient.CreateOnlineEvaluatorRequestObjectSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "CreateOnlineEvaluator",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient.CreateOnlineEvaluator",
+ "parameters": [
+ {
+ "type": "Google.Cloud.AIPlatform.V1Beta1.CreateOnlineEvaluatorRequest",
+ "name": "request"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.LongRunning.Operation",
+ "client": {
+ "shortName": "OnlineEvaluatorServiceClient",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient"
+ },
+ "method": {
+ "shortName": "CreateOnlineEvaluator",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService.CreateOnlineEvaluator",
+ "service": {
+ "shortName": "OnlineEvaluatorService",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService"
+ }
+ }
+ },
+ "canonical": true,
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 63,
+ "type": "FULL"
+ },
+ {
+ "start": 36,
+ "end": 61,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "aiplatform_v1beta1_generated_OnlineEvaluatorService_CreateOnlineEvaluator_async",
+ "title": "CreateOnlineEvaluatorRequestObjectAsync",
+ "description": "Snippet for CreateOnlineEvaluatorAsync",
+ "file": "OnlineEvaluatorServiceClient.CreateOnlineEvaluatorRequestObjectAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "CreateOnlineEvaluatorAsync",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient.CreateOnlineEvaluatorAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "Google.Cloud.AIPlatform.V1Beta1.CreateOnlineEvaluatorRequest",
+ "name": "request"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task>",
+ "client": {
+ "shortName": "OnlineEvaluatorServiceClient",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient"
+ },
+ "method": {
+ "shortName": "CreateOnlineEvaluator",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService.CreateOnlineEvaluator",
+ "service": {
+ "shortName": "OnlineEvaluatorService",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService"
+ }
+ }
+ },
+ "canonical": true,
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 64,
+ "type": "FULL"
+ },
+ {
+ "start": 37,
+ "end": 62,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "aiplatform_v1beta1_generated_OnlineEvaluatorService_CreateOnlineEvaluator_sync_flattened",
+ "title": "CreateOnlineEvaluator",
+ "description": "Snippet for CreateOnlineEvaluator",
+ "file": "OnlineEvaluatorServiceClient.CreateOnlineEvaluatorSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "CreateOnlineEvaluator",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient.CreateOnlineEvaluator",
+ "parameters": [
+ {
+ "type": "System.String",
+ "name": "parent"
+ },
+ {
+ "type": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluator",
+ "name": "onlineEvaluator"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.LongRunning.Operation",
+ "client": {
+ "shortName": "OnlineEvaluatorServiceClient",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient"
+ },
+ "method": {
+ "shortName": "CreateOnlineEvaluator",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService.CreateOnlineEvaluator",
+ "service": {
+ "shortName": "OnlineEvaluatorService",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 59,
+ "type": "FULL"
+ },
+ {
+ "start": 35,
+ "end": 57,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "aiplatform_v1beta1_generated_OnlineEvaluatorService_CreateOnlineEvaluator_async_flattened",
+ "title": "CreateOnlineEvaluatorAsync",
+ "description": "Snippet for CreateOnlineEvaluatorAsync",
+ "file": "OnlineEvaluatorServiceClient.CreateOnlineEvaluatorAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "CreateOnlineEvaluatorAsync",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient.CreateOnlineEvaluatorAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "System.String",
+ "name": "parent"
+ },
+ {
+ "type": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluator",
+ "name": "onlineEvaluator"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task>",
+ "client": {
+ "shortName": "OnlineEvaluatorServiceClient",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient"
+ },
+ "method": {
+ "shortName": "CreateOnlineEvaluator",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService.CreateOnlineEvaluator",
+ "service": {
+ "shortName": "OnlineEvaluatorService",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 60,
+ "type": "FULL"
+ },
+ {
+ "start": 36,
+ "end": 58,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "aiplatform_v1beta1_generated_OnlineEvaluatorService_CreateOnlineEvaluator_sync_flattened_resourceNames",
+ "title": "CreateOnlineEvaluatorResourceNames",
+ "description": "Snippet for CreateOnlineEvaluator",
+ "file": "OnlineEvaluatorServiceClient.CreateOnlineEvaluatorResourceNamesSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "CreateOnlineEvaluator",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient.CreateOnlineEvaluator",
+ "parameters": [
+ {
+ "type": "Google.Api.Gax.ResourceNames.LocationName",
+ "name": "parent"
+ },
+ {
+ "type": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluator",
+ "name": "onlineEvaluator"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.LongRunning.Operation",
+ "client": {
+ "shortName": "OnlineEvaluatorServiceClient",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient"
+ },
+ "method": {
+ "shortName": "CreateOnlineEvaluator",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService.CreateOnlineEvaluator",
+ "service": {
+ "shortName": "OnlineEvaluatorService",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 60,
+ "type": "FULL"
+ },
+ {
+ "start": 36,
+ "end": 58,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "aiplatform_v1beta1_generated_OnlineEvaluatorService_CreateOnlineEvaluator_async_flattened_resourceNames",
+ "title": "CreateOnlineEvaluatorResourceNamesAsync",
+ "description": "Snippet for CreateOnlineEvaluatorAsync",
+ "file": "OnlineEvaluatorServiceClient.CreateOnlineEvaluatorResourceNamesAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "CreateOnlineEvaluatorAsync",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient.CreateOnlineEvaluatorAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "Google.Api.Gax.ResourceNames.LocationName",
+ "name": "parent"
+ },
+ {
+ "type": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluator",
+ "name": "onlineEvaluator"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task>",
+ "client": {
+ "shortName": "OnlineEvaluatorServiceClient",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient"
+ },
+ "method": {
+ "shortName": "CreateOnlineEvaluator",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService.CreateOnlineEvaluator",
+ "service": {
+ "shortName": "OnlineEvaluatorService",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 61,
+ "type": "FULL"
+ },
+ {
+ "start": 37,
+ "end": 59,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "aiplatform_v1beta1_generated_OnlineEvaluatorService_GetOnlineEvaluator_sync",
+ "title": "GetOnlineEvaluatorRequestObject",
+ "description": "Snippet for GetOnlineEvaluator",
+ "file": "OnlineEvaluatorServiceClient.GetOnlineEvaluatorRequestObjectSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "GetOnlineEvaluator",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient.GetOnlineEvaluator",
+ "parameters": [
+ {
+ "type": "Google.Cloud.AIPlatform.V1Beta1.GetOnlineEvaluatorRequest",
+ "name": "request"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluator",
+ "client": {
+ "shortName": "OnlineEvaluatorServiceClient",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient"
+ },
+ "method": {
+ "shortName": "GetOnlineEvaluator",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService.GetOnlineEvaluator",
+ "service": {
+ "shortName": "OnlineEvaluatorService",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService"
+ }
+ }
+ },
+ "canonical": true,
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 44,
+ "type": "FULL"
+ },
+ {
+ "start": 34,
+ "end": 42,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "aiplatform_v1beta1_generated_OnlineEvaluatorService_GetOnlineEvaluator_async",
+ "title": "GetOnlineEvaluatorRequestObjectAsync",
+ "description": "Snippet for GetOnlineEvaluatorAsync",
+ "file": "OnlineEvaluatorServiceClient.GetOnlineEvaluatorRequestObjectAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "GetOnlineEvaluatorAsync",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient.GetOnlineEvaluatorAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "Google.Cloud.AIPlatform.V1Beta1.GetOnlineEvaluatorRequest",
+ "name": "request"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task",
+ "client": {
+ "shortName": "OnlineEvaluatorServiceClient",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient"
+ },
+ "method": {
+ "shortName": "GetOnlineEvaluator",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService.GetOnlineEvaluator",
+ "service": {
+ "shortName": "OnlineEvaluatorService",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService"
+ }
+ }
+ },
+ "canonical": true,
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 45,
+ "type": "FULL"
+ },
+ {
+ "start": 35,
+ "end": 43,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "aiplatform_v1beta1_generated_OnlineEvaluatorService_GetOnlineEvaluator_sync_flattened",
+ "title": "GetOnlineEvaluator",
+ "description": "Snippet for GetOnlineEvaluator",
+ "file": "OnlineEvaluatorServiceClient.GetOnlineEvaluatorSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "GetOnlineEvaluator",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient.GetOnlineEvaluator",
+ "parameters": [
+ {
+ "type": "System.String",
+ "name": "name"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluator",
+ "client": {
+ "shortName": "OnlineEvaluatorServiceClient",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient"
+ },
+ "method": {
+ "shortName": "GetOnlineEvaluator",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService.GetOnlineEvaluator",
+ "service": {
+ "shortName": "OnlineEvaluatorService",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 41,
+ "type": "FULL"
+ },
+ {
+ "start": 34,
+ "end": 39,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "aiplatform_v1beta1_generated_OnlineEvaluatorService_GetOnlineEvaluator_async_flattened",
+ "title": "GetOnlineEvaluatorAsync",
+ "description": "Snippet for GetOnlineEvaluatorAsync",
+ "file": "OnlineEvaluatorServiceClient.GetOnlineEvaluatorAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "GetOnlineEvaluatorAsync",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient.GetOnlineEvaluatorAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "System.String",
+ "name": "name"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task",
+ "client": {
+ "shortName": "OnlineEvaluatorServiceClient",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient"
+ },
+ "method": {
+ "shortName": "GetOnlineEvaluator",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService.GetOnlineEvaluator",
+ "service": {
+ "shortName": "OnlineEvaluatorService",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 42,
+ "type": "FULL"
+ },
+ {
+ "start": 35,
+ "end": 40,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "aiplatform_v1beta1_generated_OnlineEvaluatorService_GetOnlineEvaluator_sync_flattened_resourceNames",
+ "title": "GetOnlineEvaluatorResourceNames",
+ "description": "Snippet for GetOnlineEvaluator",
+ "file": "OnlineEvaluatorServiceClient.GetOnlineEvaluatorResourceNamesSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "GetOnlineEvaluator",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient.GetOnlineEvaluator",
+ "parameters": [
+ {
+ "type": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorName",
+ "name": "name"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluator",
+ "client": {
+ "shortName": "OnlineEvaluatorServiceClient",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient"
+ },
+ "method": {
+ "shortName": "GetOnlineEvaluator",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService.GetOnlineEvaluator",
+ "service": {
+ "shortName": "OnlineEvaluatorService",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 41,
+ "type": "FULL"
+ },
+ {
+ "start": 34,
+ "end": 39,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "aiplatform_v1beta1_generated_OnlineEvaluatorService_GetOnlineEvaluator_async_flattened_resourceNames",
+ "title": "GetOnlineEvaluatorResourceNamesAsync",
+ "description": "Snippet for GetOnlineEvaluatorAsync",
+ "file": "OnlineEvaluatorServiceClient.GetOnlineEvaluatorResourceNamesAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "GetOnlineEvaluatorAsync",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient.GetOnlineEvaluatorAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorName",
+ "name": "name"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task",
+ "client": {
+ "shortName": "OnlineEvaluatorServiceClient",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient"
+ },
+ "method": {
+ "shortName": "GetOnlineEvaluator",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService.GetOnlineEvaluator",
+ "service": {
+ "shortName": "OnlineEvaluatorService",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 42,
+ "type": "FULL"
+ },
+ {
+ "start": 35,
+ "end": 40,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "aiplatform_v1beta1_generated_OnlineEvaluatorService_UpdateOnlineEvaluator_sync",
+ "title": "UpdateOnlineEvaluatorRequestObject",
+ "description": "Snippet for UpdateOnlineEvaluator",
+ "file": "OnlineEvaluatorServiceClient.UpdateOnlineEvaluatorRequestObjectSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "UpdateOnlineEvaluator",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient.UpdateOnlineEvaluator",
+ "parameters": [
+ {
+ "type": "Google.Cloud.AIPlatform.V1Beta1.UpdateOnlineEvaluatorRequest",
+ "name": "request"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.LongRunning.Operation",
+ "client": {
+ "shortName": "OnlineEvaluatorServiceClient",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient"
+ },
+ "method": {
+ "shortName": "UpdateOnlineEvaluator",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService.UpdateOnlineEvaluator",
+ "service": {
+ "shortName": "OnlineEvaluatorService",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService"
+ }
+ }
+ },
+ "canonical": true,
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 63,
+ "type": "FULL"
+ },
+ {
+ "start": 36,
+ "end": 61,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "aiplatform_v1beta1_generated_OnlineEvaluatorService_UpdateOnlineEvaluator_async",
+ "title": "UpdateOnlineEvaluatorRequestObjectAsync",
+ "description": "Snippet for UpdateOnlineEvaluatorAsync",
+ "file": "OnlineEvaluatorServiceClient.UpdateOnlineEvaluatorRequestObjectAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "UpdateOnlineEvaluatorAsync",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient.UpdateOnlineEvaluatorAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "Google.Cloud.AIPlatform.V1Beta1.UpdateOnlineEvaluatorRequest",
+ "name": "request"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task>",
+ "client": {
+ "shortName": "OnlineEvaluatorServiceClient",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient"
+ },
+ "method": {
+ "shortName": "UpdateOnlineEvaluator",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService.UpdateOnlineEvaluator",
+ "service": {
+ "shortName": "OnlineEvaluatorService",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService"
+ }
+ }
+ },
+ "canonical": true,
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 64,
+ "type": "FULL"
+ },
+ {
+ "start": 37,
+ "end": 62,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "aiplatform_v1beta1_generated_OnlineEvaluatorService_UpdateOnlineEvaluator_sync_flattened",
+ "title": "UpdateOnlineEvaluator",
+ "description": "Snippet for UpdateOnlineEvaluator",
+ "file": "OnlineEvaluatorServiceClient.UpdateOnlineEvaluatorSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "UpdateOnlineEvaluator",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient.UpdateOnlineEvaluator",
+ "parameters": [
+ {
+ "type": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluator",
+ "name": "onlineEvaluator"
+ },
+ {
+ "type": "Google.Protobuf.WellKnownTypes.FieldMask",
+ "name": "updateMask"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.LongRunning.Operation",
+ "client": {
+ "shortName": "OnlineEvaluatorServiceClient",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient"
+ },
+ "method": {
+ "shortName": "UpdateOnlineEvaluator",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService.UpdateOnlineEvaluator",
+ "service": {
+ "shortName": "OnlineEvaluatorService",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 60,
+ "type": "FULL"
+ },
+ {
+ "start": 36,
+ "end": 58,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "aiplatform_v1beta1_generated_OnlineEvaluatorService_UpdateOnlineEvaluator_async_flattened",
+ "title": "UpdateOnlineEvaluatorAsync",
+ "description": "Snippet for UpdateOnlineEvaluatorAsync",
+ "file": "OnlineEvaluatorServiceClient.UpdateOnlineEvaluatorAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "UpdateOnlineEvaluatorAsync",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient.UpdateOnlineEvaluatorAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluator",
+ "name": "onlineEvaluator"
+ },
+ {
+ "type": "Google.Protobuf.WellKnownTypes.FieldMask",
+ "name": "updateMask"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task>",
+ "client": {
+ "shortName": "OnlineEvaluatorServiceClient",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient"
+ },
+ "method": {
+ "shortName": "UpdateOnlineEvaluator",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService.UpdateOnlineEvaluator",
+ "service": {
+ "shortName": "OnlineEvaluatorService",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 61,
+ "type": "FULL"
+ },
+ {
+ "start": 37,
+ "end": 59,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "aiplatform_v1beta1_generated_OnlineEvaluatorService_DeleteOnlineEvaluator_sync",
+ "title": "DeleteOnlineEvaluatorRequestObject",
+ "description": "Snippet for DeleteOnlineEvaluator",
+ "file": "OnlineEvaluatorServiceClient.DeleteOnlineEvaluatorRequestObjectSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "DeleteOnlineEvaluator",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient.DeleteOnlineEvaluator",
+ "parameters": [
+ {
+ "type": "Google.Cloud.AIPlatform.V1Beta1.DeleteOnlineEvaluatorRequest",
+ "name": "request"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.LongRunning.Operation",
+ "client": {
+ "shortName": "OnlineEvaluatorServiceClient",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient"
+ },
+ "method": {
+ "shortName": "DeleteOnlineEvaluator",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService.DeleteOnlineEvaluator",
+ "service": {
+ "shortName": "OnlineEvaluatorService",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService"
+ }
+ }
+ },
+ "canonical": true,
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 62,
+ "type": "FULL"
+ },
+ {
+ "start": 36,
+ "end": 60,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "aiplatform_v1beta1_generated_OnlineEvaluatorService_DeleteOnlineEvaluator_async",
+ "title": "DeleteOnlineEvaluatorRequestObjectAsync",
+ "description": "Snippet for DeleteOnlineEvaluatorAsync",
+ "file": "OnlineEvaluatorServiceClient.DeleteOnlineEvaluatorRequestObjectAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "DeleteOnlineEvaluatorAsync",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient.DeleteOnlineEvaluatorAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "Google.Cloud.AIPlatform.V1Beta1.DeleteOnlineEvaluatorRequest",
+ "name": "request"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task>",
+ "client": {
+ "shortName": "OnlineEvaluatorServiceClient",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient"
+ },
+ "method": {
+ "shortName": "DeleteOnlineEvaluator",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService.DeleteOnlineEvaluator",
+ "service": {
+ "shortName": "OnlineEvaluatorService",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService"
+ }
+ }
+ },
+ "canonical": true,
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 63,
+ "type": "FULL"
+ },
+ {
+ "start": 37,
+ "end": 61,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "aiplatform_v1beta1_generated_OnlineEvaluatorService_DeleteOnlineEvaluator_sync_flattened",
+ "title": "DeleteOnlineEvaluator",
+ "description": "Snippet for DeleteOnlineEvaluator",
+ "file": "OnlineEvaluatorServiceClient.DeleteOnlineEvaluatorSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "DeleteOnlineEvaluator",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient.DeleteOnlineEvaluator",
+ "parameters": [
+ {
+ "type": "System.String",
+ "name": "name"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.LongRunning.Operation",
+ "client": {
+ "shortName": "OnlineEvaluatorServiceClient",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient"
+ },
+ "method": {
+ "shortName": "DeleteOnlineEvaluator",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService.DeleteOnlineEvaluator",
+ "service": {
+ "shortName": "OnlineEvaluatorService",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 59,
+ "type": "FULL"
+ },
+ {
+ "start": 36,
+ "end": 57,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "aiplatform_v1beta1_generated_OnlineEvaluatorService_DeleteOnlineEvaluator_async_flattened",
+ "title": "DeleteOnlineEvaluatorAsync",
+ "description": "Snippet for DeleteOnlineEvaluatorAsync",
+ "file": "OnlineEvaluatorServiceClient.DeleteOnlineEvaluatorAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "DeleteOnlineEvaluatorAsync",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient.DeleteOnlineEvaluatorAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "System.String",
+ "name": "name"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task>",
+ "client": {
+ "shortName": "OnlineEvaluatorServiceClient",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient"
+ },
+ "method": {
+ "shortName": "DeleteOnlineEvaluator",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService.DeleteOnlineEvaluator",
+ "service": {
+ "shortName": "OnlineEvaluatorService",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 60,
+ "type": "FULL"
+ },
+ {
+ "start": 37,
+ "end": 58,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "aiplatform_v1beta1_generated_OnlineEvaluatorService_DeleteOnlineEvaluator_sync_flattened_resourceNames",
+ "title": "DeleteOnlineEvaluatorResourceNames",
+ "description": "Snippet for DeleteOnlineEvaluator",
+ "file": "OnlineEvaluatorServiceClient.DeleteOnlineEvaluatorResourceNamesSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "DeleteOnlineEvaluator",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient.DeleteOnlineEvaluator",
+ "parameters": [
+ {
+ "type": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorName",
+ "name": "name"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.LongRunning.Operation",
+ "client": {
+ "shortName": "OnlineEvaluatorServiceClient",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient"
+ },
+ "method": {
+ "shortName": "DeleteOnlineEvaluator",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService.DeleteOnlineEvaluator",
+ "service": {
+ "shortName": "OnlineEvaluatorService",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 59,
+ "type": "FULL"
+ },
+ {
+ "start": 36,
+ "end": 57,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "aiplatform_v1beta1_generated_OnlineEvaluatorService_DeleteOnlineEvaluator_async_flattened_resourceNames",
+ "title": "DeleteOnlineEvaluatorResourceNamesAsync",
+ "description": "Snippet for DeleteOnlineEvaluatorAsync",
+ "file": "OnlineEvaluatorServiceClient.DeleteOnlineEvaluatorResourceNamesAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "DeleteOnlineEvaluatorAsync",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient.DeleteOnlineEvaluatorAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorName",
+ "name": "name"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task>",
+ "client": {
+ "shortName": "OnlineEvaluatorServiceClient",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient"
+ },
+ "method": {
+ "shortName": "DeleteOnlineEvaluator",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService.DeleteOnlineEvaluator",
+ "service": {
+ "shortName": "OnlineEvaluatorService",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 60,
+ "type": "FULL"
+ },
+ {
+ "start": 37,
+ "end": 58,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "aiplatform_v1beta1_generated_OnlineEvaluatorService_ListOnlineEvaluators_sync",
+ "title": "ListOnlineEvaluatorsRequestObject",
+ "description": "Snippet for ListOnlineEvaluators",
+ "file": "OnlineEvaluatorServiceClient.ListOnlineEvaluatorsRequestObjectSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "ListOnlineEvaluators",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient.ListOnlineEvaluators",
+ "parameters": [
+ {
+ "type": "Google.Cloud.AIPlatform.V1Beta1.ListOnlineEvaluatorsRequest",
+ "name": "request"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.Api.Gax.PagedEnumerable",
+ "client": {
+ "shortName": "OnlineEvaluatorServiceClient",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient"
+ },
+ "method": {
+ "shortName": "ListOnlineEvaluators",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService.ListOnlineEvaluators",
+ "service": {
+ "shortName": "OnlineEvaluatorService",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService"
+ }
+ }
+ },
+ "canonical": true,
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 81,
+ "type": "FULL"
+ },
+ {
+ "start": 37,
+ "end": 79,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "aiplatform_v1beta1_generated_OnlineEvaluatorService_ListOnlineEvaluators_async",
+ "title": "ListOnlineEvaluatorsRequestObjectAsync",
+ "description": "Snippet for ListOnlineEvaluatorsAsync",
+ "file": "OnlineEvaluatorServiceClient.ListOnlineEvaluatorsRequestObjectAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "ListOnlineEvaluatorsAsync",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient.ListOnlineEvaluatorsAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "Google.Cloud.AIPlatform.V1Beta1.ListOnlineEvaluatorsRequest",
+ "name": "request"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.Api.Gax.PagedAsyncEnumerable",
+ "client": {
+ "shortName": "OnlineEvaluatorServiceClient",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient"
+ },
+ "method": {
+ "shortName": "ListOnlineEvaluators",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService.ListOnlineEvaluators",
+ "service": {
+ "shortName": "OnlineEvaluatorService",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService"
+ }
+ }
+ },
+ "canonical": true,
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 82,
+ "type": "FULL"
+ },
+ {
+ "start": 38,
+ "end": 80,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "aiplatform_v1beta1_generated_OnlineEvaluatorService_ListOnlineEvaluators_sync_flattened",
+ "title": "ListOnlineEvaluators",
+ "description": "Snippet for ListOnlineEvaluators",
+ "file": "OnlineEvaluatorServiceClient.ListOnlineEvaluatorsSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "ListOnlineEvaluators",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient.ListOnlineEvaluators",
+ "parameters": [
+ {
+ "type": "System.String",
+ "name": "parent"
+ },
+ {
+ "type": "System.String",
+ "name": "pageToken"
+ },
+ {
+ "type": "System.Nullable[System.Int32]",
+ "name": "pageSize"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.Api.Gax.PagedEnumerable",
+ "client": {
+ "shortName": "OnlineEvaluatorServiceClient",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient"
+ },
+ "method": {
+ "shortName": "ListOnlineEvaluators",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService.ListOnlineEvaluators",
+ "service": {
+ "shortName": "OnlineEvaluatorService",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 75,
+ "type": "FULL"
+ },
+ {
+ "start": 36,
+ "end": 73,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "aiplatform_v1beta1_generated_OnlineEvaluatorService_ListOnlineEvaluators_async_flattened",
+ "title": "ListOnlineEvaluatorsAsync",
+ "description": "Snippet for ListOnlineEvaluatorsAsync",
+ "file": "OnlineEvaluatorServiceClient.ListOnlineEvaluatorsAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "ListOnlineEvaluatorsAsync",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient.ListOnlineEvaluatorsAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "System.String",
+ "name": "parent"
+ },
+ {
+ "type": "System.String",
+ "name": "pageToken"
+ },
+ {
+ "type": "System.Nullable[System.Int32]",
+ "name": "pageSize"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.Api.Gax.PagedAsyncEnumerable",
+ "client": {
+ "shortName": "OnlineEvaluatorServiceClient",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient"
+ },
+ "method": {
+ "shortName": "ListOnlineEvaluators",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService.ListOnlineEvaluators",
+ "service": {
+ "shortName": "OnlineEvaluatorService",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 76,
+ "type": "FULL"
+ },
+ {
+ "start": 37,
+ "end": 74,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "aiplatform_v1beta1_generated_OnlineEvaluatorService_ListOnlineEvaluators_sync_flattened_resourceNames",
+ "title": "ListOnlineEvaluatorsResourceNames",
+ "description": "Snippet for ListOnlineEvaluators",
+ "file": "OnlineEvaluatorServiceClient.ListOnlineEvaluatorsResourceNamesSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "ListOnlineEvaluators",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient.ListOnlineEvaluators",
+ "parameters": [
+ {
+ "type": "Google.Api.Gax.ResourceNames.LocationName",
+ "name": "parent"
+ },
+ {
+ "type": "System.String",
+ "name": "pageToken"
+ },
+ {
+ "type": "System.Nullable[System.Int32]",
+ "name": "pageSize"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.Api.Gax.PagedEnumerable",
+ "client": {
+ "shortName": "OnlineEvaluatorServiceClient",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient"
+ },
+ "method": {
+ "shortName": "ListOnlineEvaluators",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService.ListOnlineEvaluators",
+ "service": {
+ "shortName": "OnlineEvaluatorService",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 76,
+ "type": "FULL"
+ },
+ {
+ "start": 37,
+ "end": 74,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "aiplatform_v1beta1_generated_OnlineEvaluatorService_ListOnlineEvaluators_async_flattened_resourceNames",
+ "title": "ListOnlineEvaluatorsResourceNamesAsync",
+ "description": "Snippet for ListOnlineEvaluatorsAsync",
+ "file": "OnlineEvaluatorServiceClient.ListOnlineEvaluatorsResourceNamesAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "ListOnlineEvaluatorsAsync",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient.ListOnlineEvaluatorsAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "Google.Api.Gax.ResourceNames.LocationName",
+ "name": "parent"
+ },
+ {
+ "type": "System.String",
+ "name": "pageToken"
+ },
+ {
+ "type": "System.Nullable[System.Int32]",
+ "name": "pageSize"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.Api.Gax.PagedAsyncEnumerable",
+ "client": {
+ "shortName": "OnlineEvaluatorServiceClient",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient"
+ },
+ "method": {
+ "shortName": "ListOnlineEvaluators",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService.ListOnlineEvaluators",
+ "service": {
+ "shortName": "OnlineEvaluatorService",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 77,
+ "type": "FULL"
+ },
+ {
+ "start": 38,
+ "end": 75,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "aiplatform_v1beta1_generated_OnlineEvaluatorService_ActivateOnlineEvaluator_sync",
+ "title": "ActivateOnlineEvaluatorRequestObject",
+ "description": "Snippet for ActivateOnlineEvaluator",
+ "file": "OnlineEvaluatorServiceClient.ActivateOnlineEvaluatorRequestObjectSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "ActivateOnlineEvaluator",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient.ActivateOnlineEvaluator",
+ "parameters": [
+ {
+ "type": "Google.Cloud.AIPlatform.V1Beta1.ActivateOnlineEvaluatorRequest",
+ "name": "request"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.LongRunning.Operation",
+ "client": {
+ "shortName": "OnlineEvaluatorServiceClient",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient"
+ },
+ "method": {
+ "shortName": "ActivateOnlineEvaluator",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService.ActivateOnlineEvaluator",
+ "service": {
+ "shortName": "OnlineEvaluatorService",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService"
+ }
+ }
+ },
+ "canonical": true,
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 61,
+ "type": "FULL"
+ },
+ {
+ "start": 35,
+ "end": 59,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "aiplatform_v1beta1_generated_OnlineEvaluatorService_ActivateOnlineEvaluator_async",
+ "title": "ActivateOnlineEvaluatorRequestObjectAsync",
+ "description": "Snippet for ActivateOnlineEvaluatorAsync",
+ "file": "OnlineEvaluatorServiceClient.ActivateOnlineEvaluatorRequestObjectAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "ActivateOnlineEvaluatorAsync",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient.ActivateOnlineEvaluatorAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "Google.Cloud.AIPlatform.V1Beta1.ActivateOnlineEvaluatorRequest",
+ "name": "request"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task>",
+ "client": {
+ "shortName": "OnlineEvaluatorServiceClient",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient"
+ },
+ "method": {
+ "shortName": "ActivateOnlineEvaluator",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService.ActivateOnlineEvaluator",
+ "service": {
+ "shortName": "OnlineEvaluatorService",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService"
+ }
+ }
+ },
+ "canonical": true,
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 62,
+ "type": "FULL"
+ },
+ {
+ "start": 36,
+ "end": 60,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "aiplatform_v1beta1_generated_OnlineEvaluatorService_ActivateOnlineEvaluator_sync_flattened",
+ "title": "ActivateOnlineEvaluator",
+ "description": "Snippet for ActivateOnlineEvaluator",
+ "file": "OnlineEvaluatorServiceClient.ActivateOnlineEvaluatorSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "ActivateOnlineEvaluator",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient.ActivateOnlineEvaluator",
+ "parameters": [
+ {
+ "type": "System.String",
+ "name": "name"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.LongRunning.Operation",
+ "client": {
+ "shortName": "OnlineEvaluatorServiceClient",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient"
+ },
+ "method": {
+ "shortName": "ActivateOnlineEvaluator",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService.ActivateOnlineEvaluator",
+ "service": {
+ "shortName": "OnlineEvaluatorService",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 58,
+ "type": "FULL"
+ },
+ {
+ "start": 35,
+ "end": 56,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "aiplatform_v1beta1_generated_OnlineEvaluatorService_ActivateOnlineEvaluator_async_flattened",
+ "title": "ActivateOnlineEvaluatorAsync",
+ "description": "Snippet for ActivateOnlineEvaluatorAsync",
+ "file": "OnlineEvaluatorServiceClient.ActivateOnlineEvaluatorAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "ActivateOnlineEvaluatorAsync",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient.ActivateOnlineEvaluatorAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "System.String",
+ "name": "name"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task>",
+ "client": {
+ "shortName": "OnlineEvaluatorServiceClient",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient"
+ },
+ "method": {
+ "shortName": "ActivateOnlineEvaluator",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService.ActivateOnlineEvaluator",
+ "service": {
+ "shortName": "OnlineEvaluatorService",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 59,
+ "type": "FULL"
+ },
+ {
+ "start": 36,
+ "end": 57,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "aiplatform_v1beta1_generated_OnlineEvaluatorService_ActivateOnlineEvaluator_sync_flattened_resourceNames",
+ "title": "ActivateOnlineEvaluatorResourceNames",
+ "description": "Snippet for ActivateOnlineEvaluator",
+ "file": "OnlineEvaluatorServiceClient.ActivateOnlineEvaluatorResourceNamesSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "ActivateOnlineEvaluator",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient.ActivateOnlineEvaluator",
+ "parameters": [
+ {
+ "type": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorName",
+ "name": "name"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.LongRunning.Operation",
+ "client": {
+ "shortName": "OnlineEvaluatorServiceClient",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient"
+ },
+ "method": {
+ "shortName": "ActivateOnlineEvaluator",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService.ActivateOnlineEvaluator",
+ "service": {
+ "shortName": "OnlineEvaluatorService",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 58,
+ "type": "FULL"
+ },
+ {
+ "start": 35,
+ "end": 56,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "aiplatform_v1beta1_generated_OnlineEvaluatorService_ActivateOnlineEvaluator_async_flattened_resourceNames",
+ "title": "ActivateOnlineEvaluatorResourceNamesAsync",
+ "description": "Snippet for ActivateOnlineEvaluatorAsync",
+ "file": "OnlineEvaluatorServiceClient.ActivateOnlineEvaluatorResourceNamesAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "ActivateOnlineEvaluatorAsync",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient.ActivateOnlineEvaluatorAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorName",
+ "name": "name"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task>",
+ "client": {
+ "shortName": "OnlineEvaluatorServiceClient",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient"
+ },
+ "method": {
+ "shortName": "ActivateOnlineEvaluator",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService.ActivateOnlineEvaluator",
+ "service": {
+ "shortName": "OnlineEvaluatorService",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 59,
+ "type": "FULL"
+ },
+ {
+ "start": 36,
+ "end": 57,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "aiplatform_v1beta1_generated_OnlineEvaluatorService_SuspendOnlineEvaluator_sync",
+ "title": "SuspendOnlineEvaluatorRequestObject",
+ "description": "Snippet for SuspendOnlineEvaluator",
+ "file": "OnlineEvaluatorServiceClient.SuspendOnlineEvaluatorRequestObjectSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "SuspendOnlineEvaluator",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient.SuspendOnlineEvaluator",
+ "parameters": [
+ {
+ "type": "Google.Cloud.AIPlatform.V1Beta1.SuspendOnlineEvaluatorRequest",
+ "name": "request"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.LongRunning.Operation",
+ "client": {
+ "shortName": "OnlineEvaluatorServiceClient",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient"
+ },
+ "method": {
+ "shortName": "SuspendOnlineEvaluator",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService.SuspendOnlineEvaluator",
+ "service": {
+ "shortName": "OnlineEvaluatorService",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService"
+ }
+ }
+ },
+ "canonical": true,
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 61,
+ "type": "FULL"
+ },
+ {
+ "start": 35,
+ "end": 59,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "aiplatform_v1beta1_generated_OnlineEvaluatorService_SuspendOnlineEvaluator_async",
+ "title": "SuspendOnlineEvaluatorRequestObjectAsync",
+ "description": "Snippet for SuspendOnlineEvaluatorAsync",
+ "file": "OnlineEvaluatorServiceClient.SuspendOnlineEvaluatorRequestObjectAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "SuspendOnlineEvaluatorAsync",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient.SuspendOnlineEvaluatorAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "Google.Cloud.AIPlatform.V1Beta1.SuspendOnlineEvaluatorRequest",
+ "name": "request"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task>",
+ "client": {
+ "shortName": "OnlineEvaluatorServiceClient",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient"
+ },
+ "method": {
+ "shortName": "SuspendOnlineEvaluator",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService.SuspendOnlineEvaluator",
+ "service": {
+ "shortName": "OnlineEvaluatorService",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService"
+ }
+ }
+ },
+ "canonical": true,
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 62,
+ "type": "FULL"
+ },
+ {
+ "start": 36,
+ "end": 60,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "aiplatform_v1beta1_generated_OnlineEvaluatorService_SuspendOnlineEvaluator_sync_flattened",
+ "title": "SuspendOnlineEvaluator",
+ "description": "Snippet for SuspendOnlineEvaluator",
+ "file": "OnlineEvaluatorServiceClient.SuspendOnlineEvaluatorSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "SuspendOnlineEvaluator",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient.SuspendOnlineEvaluator",
+ "parameters": [
+ {
+ "type": "System.String",
+ "name": "name"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.LongRunning.Operation",
+ "client": {
+ "shortName": "OnlineEvaluatorServiceClient",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient"
+ },
+ "method": {
+ "shortName": "SuspendOnlineEvaluator",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService.SuspendOnlineEvaluator",
+ "service": {
+ "shortName": "OnlineEvaluatorService",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 58,
+ "type": "FULL"
+ },
+ {
+ "start": 35,
+ "end": 56,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "aiplatform_v1beta1_generated_OnlineEvaluatorService_SuspendOnlineEvaluator_async_flattened",
+ "title": "SuspendOnlineEvaluatorAsync",
+ "description": "Snippet for SuspendOnlineEvaluatorAsync",
+ "file": "OnlineEvaluatorServiceClient.SuspendOnlineEvaluatorAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "SuspendOnlineEvaluatorAsync",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient.SuspendOnlineEvaluatorAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "System.String",
+ "name": "name"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task>",
+ "client": {
+ "shortName": "OnlineEvaluatorServiceClient",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient"
+ },
+ "method": {
+ "shortName": "SuspendOnlineEvaluator",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService.SuspendOnlineEvaluator",
+ "service": {
+ "shortName": "OnlineEvaluatorService",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 59,
+ "type": "FULL"
+ },
+ {
+ "start": 36,
+ "end": 57,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "aiplatform_v1beta1_generated_OnlineEvaluatorService_SuspendOnlineEvaluator_sync_flattened_resourceNames",
+ "title": "SuspendOnlineEvaluatorResourceNames",
+ "description": "Snippet for SuspendOnlineEvaluator",
+ "file": "OnlineEvaluatorServiceClient.SuspendOnlineEvaluatorResourceNamesSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "SuspendOnlineEvaluator",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient.SuspendOnlineEvaluator",
+ "parameters": [
+ {
+ "type": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorName",
+ "name": "name"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.LongRunning.Operation",
+ "client": {
+ "shortName": "OnlineEvaluatorServiceClient",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient"
+ },
+ "method": {
+ "shortName": "SuspendOnlineEvaluator",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService.SuspendOnlineEvaluator",
+ "service": {
+ "shortName": "OnlineEvaluatorService",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 58,
+ "type": "FULL"
+ },
+ {
+ "start": 35,
+ "end": 56,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "aiplatform_v1beta1_generated_OnlineEvaluatorService_SuspendOnlineEvaluator_async_flattened_resourceNames",
+ "title": "SuspendOnlineEvaluatorResourceNamesAsync",
+ "description": "Snippet for SuspendOnlineEvaluatorAsync",
+ "file": "OnlineEvaluatorServiceClient.SuspendOnlineEvaluatorResourceNamesAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "SuspendOnlineEvaluatorAsync",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient.SuspendOnlineEvaluatorAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorName",
+ "name": "name"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task>",
+ "client": {
+ "shortName": "OnlineEvaluatorServiceClient",
+ "fullName": "Google.Cloud.AIPlatform.V1Beta1.OnlineEvaluatorServiceClient"
+ },
+ "method": {
+ "shortName": "SuspendOnlineEvaluator",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService.SuspendOnlineEvaluator",
+ "service": {
+ "shortName": "OnlineEvaluatorService",
+ "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 59,
+ "type": "FULL"
+ },
+ {
+ "start": 36,
+ "end": 57,
+ "type": "SHORT"
+ }
+ ]
+ },
{
"regionTag": "aiplatform_v1beta1_generated_PersistentResourceService_CreatePersistentResource_sync",
"title": "CreatePersistentResourceRequestObject",
diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.Snippets/EvaluationServiceClientSnippets.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.Snippets/EvaluationServiceClientSnippets.g.cs
index 69953c428eeb..f1328c7c50d9 100644
--- a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.Snippets/EvaluationServiceClientSnippets.g.cs
+++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.Snippets/EvaluationServiceClientSnippets.g.cs
@@ -36,6 +36,9 @@ public void EvaluateInstancesRequestObject()
LocationAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
ExactMatchInput = new ExactMatchInput(),
AutoraterConfig = new AutoraterConfig(),
+ Metrics = { new Metric(), },
+ Instance = new EvaluationInstance(),
+ MetricSources = { new MetricSource(), },
};
// Make the request
EvaluateInstancesResponse response = evaluationServiceClient.EvaluateInstances(request);
@@ -55,6 +58,9 @@ public async Task EvaluateInstancesRequestObjectAsync()
LocationAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
ExactMatchInput = new ExactMatchInput(),
AutoraterConfig = new AutoraterConfig(),
+ Metrics = { new Metric(), },
+ Instance = new EvaluationInstance(),
+ MetricSources = { new MetricSource(), },
};
// Make the request
EvaluateInstancesResponse response = await evaluationServiceClient.EvaluateInstancesAsync(request);
@@ -133,5 +139,50 @@ public async Task EvaluateDatasetRequestObjectAsync()
}
// End snippet
}
+
+ /// Snippet for GenerateInstanceRubrics
+ public void GenerateInstanceRubricsRequestObject()
+ {
+ // Snippet: GenerateInstanceRubrics(GenerateInstanceRubricsRequest, CallSettings)
+ // Create client
+ EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.Create();
+ // Initialize request argument(s)
+ GenerateInstanceRubricsRequest request = new GenerateInstanceRubricsRequest
+ {
+ LocationAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
+ Contents = { new Content(), },
+ RubricGenerationSpec = new RubricGenerationSpec(),
+ PredefinedRubricGenerationSpec = new PredefinedMetricSpec(),
+#pragma warning disable CS0612
+ AgentConfig = new EvaluationInstance.Types.DeprecatedAgentConfig(),
+#pragma warning restore CS0612
+ };
+ // Make the request
+ GenerateInstanceRubricsResponse response = evaluationServiceClient.GenerateInstanceRubrics(request);
+ // End snippet
+ }
+
+ /// Snippet for GenerateInstanceRubricsAsync
+ public async Task GenerateInstanceRubricsRequestObjectAsync()
+ {
+ // Snippet: GenerateInstanceRubricsAsync(GenerateInstanceRubricsRequest, CallSettings)
+ // Additional: GenerateInstanceRubricsAsync(GenerateInstanceRubricsRequest, CancellationToken)
+ // Create client
+ EvaluationServiceClient evaluationServiceClient = await EvaluationServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ GenerateInstanceRubricsRequest request = new GenerateInstanceRubricsRequest
+ {
+ LocationAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
+ Contents = { new Content(), },
+ RubricGenerationSpec = new RubricGenerationSpec(),
+ PredefinedRubricGenerationSpec = new PredefinedMetricSpec(),
+#pragma warning disable CS0612
+ AgentConfig = new EvaluationInstance.Types.DeprecatedAgentConfig(),
+#pragma warning restore CS0612
+ };
+ // Make the request
+ GenerateInstanceRubricsResponse response = await evaluationServiceClient.GenerateInstanceRubricsAsync(request);
+ // End snippet
+ }
}
}
diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.Snippets/OnlineEvaluatorServiceClientSnippets.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.Snippets/OnlineEvaluatorServiceClientSnippets.g.cs
new file mode 100644
index 000000000000..b424a6e3a2db
--- /dev/null
+++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.Snippets/OnlineEvaluatorServiceClientSnippets.g.cs
@@ -0,0 +1,1263 @@
+// Copyright 2026 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
+{
+ using Google.Api.Gax;
+ using Google.Api.Gax.ResourceNames;
+ using Google.Cloud.AIPlatform.V1Beta1;
+ using Google.LongRunning;
+ using Google.Protobuf.WellKnownTypes;
+ using System;
+ using System.Threading.Tasks;
+
+ /// Generated snippets.
+ public sealed class AllGeneratedOnlineEvaluatorServiceClientSnippets
+ {
+ /// Snippet for CreateOnlineEvaluator
+ public void CreateOnlineEvaluatorRequestObject()
+ {
+ // Snippet: CreateOnlineEvaluator(CreateOnlineEvaluatorRequest, CallSettings)
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
+ // Initialize request argument(s)
+ CreateOnlineEvaluatorRequest request = new CreateOnlineEvaluatorRequest
+ {
+ ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
+ OnlineEvaluator = new OnlineEvaluator(),
+ };
+ // Make the request
+ Operation response = onlineEvaluatorServiceClient.CreateOnlineEvaluator(request);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = response.PollUntilCompleted();
+ // Retrieve the operation result
+ OnlineEvaluator 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 retrievedResponse = onlineEvaluatorServiceClient.PollOnceCreateOnlineEvaluator(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ OnlineEvaluator retrievedResult = retrievedResponse.Result;
+ }
+ // End snippet
+ }
+
+ /// Snippet for CreateOnlineEvaluatorAsync
+ public async Task CreateOnlineEvaluatorRequestObjectAsync()
+ {
+ // Snippet: CreateOnlineEvaluatorAsync(CreateOnlineEvaluatorRequest, CallSettings)
+ // Additional: CreateOnlineEvaluatorAsync(CreateOnlineEvaluatorRequest, CancellationToken)
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ CreateOnlineEvaluatorRequest request = new CreateOnlineEvaluatorRequest
+ {
+ ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
+ OnlineEvaluator = new OnlineEvaluator(),
+ };
+ // Make the request
+ Operation response = await onlineEvaluatorServiceClient.CreateOnlineEvaluatorAsync(request);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = await response.PollUntilCompletedAsync();
+ // Retrieve the operation result
+ OnlineEvaluator 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 retrievedResponse = await onlineEvaluatorServiceClient.PollOnceCreateOnlineEvaluatorAsync(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ OnlineEvaluator retrievedResult = retrievedResponse.Result;
+ }
+ // End snippet
+ }
+
+ /// Snippet for CreateOnlineEvaluator
+ public void CreateOnlineEvaluator()
+ {
+ // Snippet: CreateOnlineEvaluator(string, OnlineEvaluator, CallSettings)
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
+ // Initialize request argument(s)
+ string parent = "projects/[PROJECT]/locations/[LOCATION]";
+ OnlineEvaluator onlineEvaluator = new OnlineEvaluator();
+ // Make the request
+ Operation response = onlineEvaluatorServiceClient.CreateOnlineEvaluator(parent, onlineEvaluator);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = response.PollUntilCompleted();
+ // Retrieve the operation result
+ OnlineEvaluator 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 retrievedResponse = onlineEvaluatorServiceClient.PollOnceCreateOnlineEvaluator(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ OnlineEvaluator retrievedResult = retrievedResponse.Result;
+ }
+ // End snippet
+ }
+
+ /// Snippet for CreateOnlineEvaluatorAsync
+ public async Task CreateOnlineEvaluatorAsync()
+ {
+ // Snippet: CreateOnlineEvaluatorAsync(string, OnlineEvaluator, CallSettings)
+ // Additional: CreateOnlineEvaluatorAsync(string, OnlineEvaluator, CancellationToken)
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ string parent = "projects/[PROJECT]/locations/[LOCATION]";
+ OnlineEvaluator onlineEvaluator = new OnlineEvaluator();
+ // Make the request
+ Operation response = await onlineEvaluatorServiceClient.CreateOnlineEvaluatorAsync(parent, onlineEvaluator);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = await response.PollUntilCompletedAsync();
+ // Retrieve the operation result
+ OnlineEvaluator 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 retrievedResponse = await onlineEvaluatorServiceClient.PollOnceCreateOnlineEvaluatorAsync(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ OnlineEvaluator retrievedResult = retrievedResponse.Result;
+ }
+ // End snippet
+ }
+
+ /// Snippet for CreateOnlineEvaluator
+ public void CreateOnlineEvaluatorResourceNames()
+ {
+ // Snippet: CreateOnlineEvaluator(LocationName, OnlineEvaluator, CallSettings)
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
+ // Initialize request argument(s)
+ LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
+ OnlineEvaluator onlineEvaluator = new OnlineEvaluator();
+ // Make the request
+ Operation response = onlineEvaluatorServiceClient.CreateOnlineEvaluator(parent, onlineEvaluator);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = response.PollUntilCompleted();
+ // Retrieve the operation result
+ OnlineEvaluator 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 retrievedResponse = onlineEvaluatorServiceClient.PollOnceCreateOnlineEvaluator(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ OnlineEvaluator retrievedResult = retrievedResponse.Result;
+ }
+ // End snippet
+ }
+
+ /// Snippet for CreateOnlineEvaluatorAsync
+ public async Task CreateOnlineEvaluatorResourceNamesAsync()
+ {
+ // Snippet: CreateOnlineEvaluatorAsync(LocationName, OnlineEvaluator, CallSettings)
+ // Additional: CreateOnlineEvaluatorAsync(LocationName, OnlineEvaluator, CancellationToken)
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
+ OnlineEvaluator onlineEvaluator = new OnlineEvaluator();
+ // Make the request
+ Operation response = await onlineEvaluatorServiceClient.CreateOnlineEvaluatorAsync(parent, onlineEvaluator);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = await response.PollUntilCompletedAsync();
+ // Retrieve the operation result
+ OnlineEvaluator 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 retrievedResponse = await onlineEvaluatorServiceClient.PollOnceCreateOnlineEvaluatorAsync(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ OnlineEvaluator retrievedResult = retrievedResponse.Result;
+ }
+ // End snippet
+ }
+
+ /// Snippet for GetOnlineEvaluator
+ public void GetOnlineEvaluatorRequestObject()
+ {
+ // Snippet: GetOnlineEvaluator(GetOnlineEvaluatorRequest, CallSettings)
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
+ // Initialize request argument(s)
+ GetOnlineEvaluatorRequest request = new GetOnlineEvaluatorRequest
+ {
+ OnlineEvaluatorName = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]"),
+ };
+ // Make the request
+ OnlineEvaluator response = onlineEvaluatorServiceClient.GetOnlineEvaluator(request);
+ // End snippet
+ }
+
+ /// Snippet for GetOnlineEvaluatorAsync
+ public async Task GetOnlineEvaluatorRequestObjectAsync()
+ {
+ // Snippet: GetOnlineEvaluatorAsync(GetOnlineEvaluatorRequest, CallSettings)
+ // Additional: GetOnlineEvaluatorAsync(GetOnlineEvaluatorRequest, CancellationToken)
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ GetOnlineEvaluatorRequest request = new GetOnlineEvaluatorRequest
+ {
+ OnlineEvaluatorName = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]"),
+ };
+ // Make the request
+ OnlineEvaluator response = await onlineEvaluatorServiceClient.GetOnlineEvaluatorAsync(request);
+ // End snippet
+ }
+
+ /// Snippet for GetOnlineEvaluator
+ public void GetOnlineEvaluator()
+ {
+ // Snippet: GetOnlineEvaluator(string, CallSettings)
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
+ // Initialize request argument(s)
+ string name = "projects/[PROJECT]/locations/[LOCATION]/onlineEvaluators/[ONLINE_EVALUATOR]";
+ // Make the request
+ OnlineEvaluator response = onlineEvaluatorServiceClient.GetOnlineEvaluator(name);
+ // End snippet
+ }
+
+ /// Snippet for GetOnlineEvaluatorAsync
+ public async Task GetOnlineEvaluatorAsync()
+ {
+ // Snippet: GetOnlineEvaluatorAsync(string, CallSettings)
+ // Additional: GetOnlineEvaluatorAsync(string, CancellationToken)
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ string name = "projects/[PROJECT]/locations/[LOCATION]/onlineEvaluators/[ONLINE_EVALUATOR]";
+ // Make the request
+ OnlineEvaluator response = await onlineEvaluatorServiceClient.GetOnlineEvaluatorAsync(name);
+ // End snippet
+ }
+
+ /// Snippet for GetOnlineEvaluator
+ public void GetOnlineEvaluatorResourceNames()
+ {
+ // Snippet: GetOnlineEvaluator(OnlineEvaluatorName, CallSettings)
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
+ // Initialize request argument(s)
+ OnlineEvaluatorName name = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]");
+ // Make the request
+ OnlineEvaluator response = onlineEvaluatorServiceClient.GetOnlineEvaluator(name);
+ // End snippet
+ }
+
+ /// Snippet for GetOnlineEvaluatorAsync
+ public async Task GetOnlineEvaluatorResourceNamesAsync()
+ {
+ // Snippet: GetOnlineEvaluatorAsync(OnlineEvaluatorName, CallSettings)
+ // Additional: GetOnlineEvaluatorAsync(OnlineEvaluatorName, CancellationToken)
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ OnlineEvaluatorName name = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]");
+ // Make the request
+ OnlineEvaluator response = await onlineEvaluatorServiceClient.GetOnlineEvaluatorAsync(name);
+ // End snippet
+ }
+
+ /// Snippet for UpdateOnlineEvaluator
+ public void UpdateOnlineEvaluatorRequestObject()
+ {
+ // Snippet: UpdateOnlineEvaluator(UpdateOnlineEvaluatorRequest, CallSettings)
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
+ // Initialize request argument(s)
+ UpdateOnlineEvaluatorRequest request = new UpdateOnlineEvaluatorRequest
+ {
+ OnlineEvaluator = new OnlineEvaluator(),
+ UpdateMask = new FieldMask(),
+ };
+ // Make the request
+ Operation response = onlineEvaluatorServiceClient.UpdateOnlineEvaluator(request);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = response.PollUntilCompleted();
+ // Retrieve the operation result
+ OnlineEvaluator 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 retrievedResponse = onlineEvaluatorServiceClient.PollOnceUpdateOnlineEvaluator(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ OnlineEvaluator retrievedResult = retrievedResponse.Result;
+ }
+ // End snippet
+ }
+
+ /// Snippet for UpdateOnlineEvaluatorAsync
+ public async Task UpdateOnlineEvaluatorRequestObjectAsync()
+ {
+ // Snippet: UpdateOnlineEvaluatorAsync(UpdateOnlineEvaluatorRequest, CallSettings)
+ // Additional: UpdateOnlineEvaluatorAsync(UpdateOnlineEvaluatorRequest, CancellationToken)
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ UpdateOnlineEvaluatorRequest request = new UpdateOnlineEvaluatorRequest
+ {
+ OnlineEvaluator = new OnlineEvaluator(),
+ UpdateMask = new FieldMask(),
+ };
+ // Make the request
+ Operation response = await onlineEvaluatorServiceClient.UpdateOnlineEvaluatorAsync(request);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = await response.PollUntilCompletedAsync();
+ // Retrieve the operation result
+ OnlineEvaluator 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 retrievedResponse = await onlineEvaluatorServiceClient.PollOnceUpdateOnlineEvaluatorAsync(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ OnlineEvaluator retrievedResult = retrievedResponse.Result;
+ }
+ // End snippet
+ }
+
+ /// Snippet for UpdateOnlineEvaluator
+ public void UpdateOnlineEvaluator()
+ {
+ // Snippet: UpdateOnlineEvaluator(OnlineEvaluator, FieldMask, CallSettings)
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
+ // Initialize request argument(s)
+ OnlineEvaluator onlineEvaluator = new OnlineEvaluator();
+ FieldMask updateMask = new FieldMask();
+ // Make the request
+ Operation response = onlineEvaluatorServiceClient.UpdateOnlineEvaluator(onlineEvaluator, updateMask);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = response.PollUntilCompleted();
+ // Retrieve the operation result
+ OnlineEvaluator 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 retrievedResponse = onlineEvaluatorServiceClient.PollOnceUpdateOnlineEvaluator(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ OnlineEvaluator retrievedResult = retrievedResponse.Result;
+ }
+ // End snippet
+ }
+
+ /// Snippet for UpdateOnlineEvaluatorAsync
+ public async Task UpdateOnlineEvaluatorAsync()
+ {
+ // Snippet: UpdateOnlineEvaluatorAsync(OnlineEvaluator, FieldMask, CallSettings)
+ // Additional: UpdateOnlineEvaluatorAsync(OnlineEvaluator, FieldMask, CancellationToken)
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ OnlineEvaluator onlineEvaluator = new OnlineEvaluator();
+ FieldMask updateMask = new FieldMask();
+ // Make the request
+ Operation response = await onlineEvaluatorServiceClient.UpdateOnlineEvaluatorAsync(onlineEvaluator, updateMask);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = await response.PollUntilCompletedAsync();
+ // Retrieve the operation result
+ OnlineEvaluator 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 retrievedResponse = await onlineEvaluatorServiceClient.PollOnceUpdateOnlineEvaluatorAsync(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ OnlineEvaluator retrievedResult = retrievedResponse.Result;
+ }
+ // End snippet
+ }
+
+ /// Snippet for DeleteOnlineEvaluator
+ public void DeleteOnlineEvaluatorRequestObject()
+ {
+ // Snippet: DeleteOnlineEvaluator(DeleteOnlineEvaluatorRequest, CallSettings)
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
+ // Initialize request argument(s)
+ DeleteOnlineEvaluatorRequest request = new DeleteOnlineEvaluatorRequest
+ {
+ OnlineEvaluatorName = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]"),
+ };
+ // Make the request
+ Operation response = onlineEvaluatorServiceClient.DeleteOnlineEvaluator(request);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = response.PollUntilCompleted();
+ // Retrieve the operation result
+ Empty 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 retrievedResponse = onlineEvaluatorServiceClient.PollOnceDeleteOnlineEvaluator(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ Empty retrievedResult = retrievedResponse.Result;
+ }
+ // End snippet
+ }
+
+ /// Snippet for DeleteOnlineEvaluatorAsync
+ public async Task DeleteOnlineEvaluatorRequestObjectAsync()
+ {
+ // Snippet: DeleteOnlineEvaluatorAsync(DeleteOnlineEvaluatorRequest, CallSettings)
+ // Additional: DeleteOnlineEvaluatorAsync(DeleteOnlineEvaluatorRequest, CancellationToken)
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ DeleteOnlineEvaluatorRequest request = new DeleteOnlineEvaluatorRequest
+ {
+ OnlineEvaluatorName = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]"),
+ };
+ // Make the request
+ Operation response = await onlineEvaluatorServiceClient.DeleteOnlineEvaluatorAsync(request);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = await response.PollUntilCompletedAsync();
+ // Retrieve the operation result
+ Empty 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 retrievedResponse = await onlineEvaluatorServiceClient.PollOnceDeleteOnlineEvaluatorAsync(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ Empty retrievedResult = retrievedResponse.Result;
+ }
+ // End snippet
+ }
+
+ /// Snippet for DeleteOnlineEvaluator
+ public void DeleteOnlineEvaluator()
+ {
+ // Snippet: DeleteOnlineEvaluator(string, CallSettings)
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
+ // Initialize request argument(s)
+ string name = "projects/[PROJECT]/locations/[LOCATION]/onlineEvaluators/[ONLINE_EVALUATOR]";
+ // Make the request
+ Operation response = onlineEvaluatorServiceClient.DeleteOnlineEvaluator(name);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = response.PollUntilCompleted();
+ // Retrieve the operation result
+ Empty 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 retrievedResponse = onlineEvaluatorServiceClient.PollOnceDeleteOnlineEvaluator(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ Empty retrievedResult = retrievedResponse.Result;
+ }
+ // End snippet
+ }
+
+ /// Snippet for DeleteOnlineEvaluatorAsync
+ public async Task DeleteOnlineEvaluatorAsync()
+ {
+ // Snippet: DeleteOnlineEvaluatorAsync(string, CallSettings)
+ // Additional: DeleteOnlineEvaluatorAsync(string, CancellationToken)
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ string name = "projects/[PROJECT]/locations/[LOCATION]/onlineEvaluators/[ONLINE_EVALUATOR]";
+ // Make the request
+ Operation response = await onlineEvaluatorServiceClient.DeleteOnlineEvaluatorAsync(name);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = await response.PollUntilCompletedAsync();
+ // Retrieve the operation result
+ Empty 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 retrievedResponse = await onlineEvaluatorServiceClient.PollOnceDeleteOnlineEvaluatorAsync(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ Empty retrievedResult = retrievedResponse.Result;
+ }
+ // End snippet
+ }
+
+ /// Snippet for DeleteOnlineEvaluator
+ public void DeleteOnlineEvaluatorResourceNames()
+ {
+ // Snippet: DeleteOnlineEvaluator(OnlineEvaluatorName, CallSettings)
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
+ // Initialize request argument(s)
+ OnlineEvaluatorName name = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]");
+ // Make the request
+ Operation response = onlineEvaluatorServiceClient.DeleteOnlineEvaluator(name);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = response.PollUntilCompleted();
+ // Retrieve the operation result
+ Empty 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 retrievedResponse = onlineEvaluatorServiceClient.PollOnceDeleteOnlineEvaluator(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ Empty retrievedResult = retrievedResponse.Result;
+ }
+ // End snippet
+ }
+
+ /// Snippet for DeleteOnlineEvaluatorAsync
+ public async Task DeleteOnlineEvaluatorResourceNamesAsync()
+ {
+ // Snippet: DeleteOnlineEvaluatorAsync(OnlineEvaluatorName, CallSettings)
+ // Additional: DeleteOnlineEvaluatorAsync(OnlineEvaluatorName, CancellationToken)
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ OnlineEvaluatorName name = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]");
+ // Make the request
+ Operation response = await onlineEvaluatorServiceClient.DeleteOnlineEvaluatorAsync(name);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = await response.PollUntilCompletedAsync();
+ // Retrieve the operation result
+ Empty 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 retrievedResponse = await onlineEvaluatorServiceClient.PollOnceDeleteOnlineEvaluatorAsync(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ Empty retrievedResult = retrievedResponse.Result;
+ }
+ // End snippet
+ }
+
+ /// Snippet for ListOnlineEvaluators
+ public void ListOnlineEvaluatorsRequestObject()
+ {
+ // Snippet: ListOnlineEvaluators(ListOnlineEvaluatorsRequest, CallSettings)
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
+ // Initialize request argument(s)
+ ListOnlineEvaluatorsRequest request = new ListOnlineEvaluatorsRequest
+ {
+ ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
+ Filter = "",
+ OrderBy = "",
+ };
+ // Make the request
+ PagedEnumerable response = onlineEvaluatorServiceClient.ListOnlineEvaluators(request);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ foreach (OnlineEvaluator item in response)
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ }
+
+ // Or iterate over pages (of server-defined size), performing one RPC per page
+ foreach (ListOnlineEvaluatorsResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (OnlineEvaluator item in page)
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ }
+ }
+
+ // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
+ int pageSize = 10;
+ Page singlePage = response.ReadPage(pageSize);
+ // Do something with the page of items
+ Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
+ foreach (OnlineEvaluator item in singlePage)
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ }
+ // Store the pageToken, for when the next page is required.
+ string nextPageToken = singlePage.NextPageToken;
+ // End snippet
+ }
+
+ /// Snippet for ListOnlineEvaluatorsAsync
+ public async Task ListOnlineEvaluatorsRequestObjectAsync()
+ {
+ // Snippet: ListOnlineEvaluatorsAsync(ListOnlineEvaluatorsRequest, CallSettings)
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ ListOnlineEvaluatorsRequest request = new ListOnlineEvaluatorsRequest
+ {
+ ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
+ Filter = "",
+ OrderBy = "",
+ };
+ // Make the request
+ PagedAsyncEnumerable response = onlineEvaluatorServiceClient.ListOnlineEvaluatorsAsync(request);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ await foreach (OnlineEvaluator item in response)
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ }
+
+ // Or iterate over pages (of server-defined size), performing one RPC per page
+ await foreach (ListOnlineEvaluatorsResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (OnlineEvaluator item in page)
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ }
+ }
+
+ // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
+ int pageSize = 10;
+ Page singlePage = await response.ReadPageAsync(pageSize);
+ // Do something with the page of items
+ Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
+ foreach (OnlineEvaluator item in singlePage)
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ }
+ // Store the pageToken, for when the next page is required.
+ string nextPageToken = singlePage.NextPageToken;
+ // End snippet
+ }
+
+ /// Snippet for ListOnlineEvaluators
+ public void ListOnlineEvaluators()
+ {
+ // Snippet: ListOnlineEvaluators(string, string, int?, CallSettings)
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
+ // Initialize request argument(s)
+ string parent = "projects/[PROJECT]/locations/[LOCATION]";
+ // Make the request
+ PagedEnumerable response = onlineEvaluatorServiceClient.ListOnlineEvaluators(parent);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ foreach (OnlineEvaluator item in response)
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ }
+
+ // Or iterate over pages (of server-defined size), performing one RPC per page
+ foreach (ListOnlineEvaluatorsResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (OnlineEvaluator item in page)
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ }
+ }
+
+ // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
+ int pageSize = 10;
+ Page singlePage = response.ReadPage(pageSize);
+ // Do something with the page of items
+ Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
+ foreach (OnlineEvaluator item in singlePage)
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ }
+ // Store the pageToken, for when the next page is required.
+ string nextPageToken = singlePage.NextPageToken;
+ // End snippet
+ }
+
+ /// Snippet for ListOnlineEvaluatorsAsync
+ public async Task ListOnlineEvaluatorsAsync()
+ {
+ // Snippet: ListOnlineEvaluatorsAsync(string, string, int?, CallSettings)
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ string parent = "projects/[PROJECT]/locations/[LOCATION]";
+ // Make the request
+ PagedAsyncEnumerable response = onlineEvaluatorServiceClient.ListOnlineEvaluatorsAsync(parent);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ await foreach (OnlineEvaluator item in response)
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ }
+
+ // Or iterate over pages (of server-defined size), performing one RPC per page
+ await foreach (ListOnlineEvaluatorsResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (OnlineEvaluator item in page)
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ }
+ }
+
+ // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
+ int pageSize = 10;
+ Page singlePage = await response.ReadPageAsync(pageSize);
+ // Do something with the page of items
+ Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
+ foreach (OnlineEvaluator item in singlePage)
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ }
+ // Store the pageToken, for when the next page is required.
+ string nextPageToken = singlePage.NextPageToken;
+ // End snippet
+ }
+
+ /// Snippet for ListOnlineEvaluators
+ public void ListOnlineEvaluatorsResourceNames()
+ {
+ // Snippet: ListOnlineEvaluators(LocationName, string, int?, CallSettings)
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
+ // Initialize request argument(s)
+ LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
+ // Make the request
+ PagedEnumerable response = onlineEvaluatorServiceClient.ListOnlineEvaluators(parent);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ foreach (OnlineEvaluator item in response)
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ }
+
+ // Or iterate over pages (of server-defined size), performing one RPC per page
+ foreach (ListOnlineEvaluatorsResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (OnlineEvaluator item in page)
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ }
+ }
+
+ // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
+ int pageSize = 10;
+ Page singlePage = response.ReadPage(pageSize);
+ // Do something with the page of items
+ Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
+ foreach (OnlineEvaluator item in singlePage)
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ }
+ // Store the pageToken, for when the next page is required.
+ string nextPageToken = singlePage.NextPageToken;
+ // End snippet
+ }
+
+ /// Snippet for ListOnlineEvaluatorsAsync
+ public async Task ListOnlineEvaluatorsResourceNamesAsync()
+ {
+ // Snippet: ListOnlineEvaluatorsAsync(LocationName, string, int?, CallSettings)
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
+ // Make the request
+ PagedAsyncEnumerable response = onlineEvaluatorServiceClient.ListOnlineEvaluatorsAsync(parent);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ await foreach (OnlineEvaluator item in response)
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ }
+
+ // Or iterate over pages (of server-defined size), performing one RPC per page
+ await foreach (ListOnlineEvaluatorsResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (OnlineEvaluator item in page)
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ }
+ }
+
+ // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
+ int pageSize = 10;
+ Page singlePage = await response.ReadPageAsync(pageSize);
+ // Do something with the page of items
+ Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
+ foreach (OnlineEvaluator item in singlePage)
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ }
+ // Store the pageToken, for when the next page is required.
+ string nextPageToken = singlePage.NextPageToken;
+ // End snippet
+ }
+
+ /// Snippet for ActivateOnlineEvaluator
+ public void ActivateOnlineEvaluatorRequestObject()
+ {
+ // Snippet: ActivateOnlineEvaluator(ActivateOnlineEvaluatorRequest, CallSettings)
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
+ // Initialize request argument(s)
+ ActivateOnlineEvaluatorRequest request = new ActivateOnlineEvaluatorRequest
+ {
+ OnlineEvaluatorName = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]"),
+ };
+ // Make the request
+ Operation response = onlineEvaluatorServiceClient.ActivateOnlineEvaluator(request);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = response.PollUntilCompleted();
+ // Retrieve the operation result
+ OnlineEvaluator 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 retrievedResponse = onlineEvaluatorServiceClient.PollOnceActivateOnlineEvaluator(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ OnlineEvaluator retrievedResult = retrievedResponse.Result;
+ }
+ // End snippet
+ }
+
+ /// Snippet for ActivateOnlineEvaluatorAsync
+ public async Task ActivateOnlineEvaluatorRequestObjectAsync()
+ {
+ // Snippet: ActivateOnlineEvaluatorAsync(ActivateOnlineEvaluatorRequest, CallSettings)
+ // Additional: ActivateOnlineEvaluatorAsync(ActivateOnlineEvaluatorRequest, CancellationToken)
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ ActivateOnlineEvaluatorRequest request = new ActivateOnlineEvaluatorRequest
+ {
+ OnlineEvaluatorName = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]"),
+ };
+ // Make the request
+ Operation response = await onlineEvaluatorServiceClient.ActivateOnlineEvaluatorAsync(request);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = await response.PollUntilCompletedAsync();
+ // Retrieve the operation result
+ OnlineEvaluator 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 retrievedResponse = await onlineEvaluatorServiceClient.PollOnceActivateOnlineEvaluatorAsync(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ OnlineEvaluator retrievedResult = retrievedResponse.Result;
+ }
+ // End snippet
+ }
+
+ /// Snippet for ActivateOnlineEvaluator
+ public void ActivateOnlineEvaluator()
+ {
+ // Snippet: ActivateOnlineEvaluator(string, CallSettings)
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
+ // Initialize request argument(s)
+ string name = "projects/[PROJECT]/locations/[LOCATION]/onlineEvaluators/[ONLINE_EVALUATOR]";
+ // Make the request
+ Operation response = onlineEvaluatorServiceClient.ActivateOnlineEvaluator(name);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = response.PollUntilCompleted();
+ // Retrieve the operation result
+ OnlineEvaluator 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 retrievedResponse = onlineEvaluatorServiceClient.PollOnceActivateOnlineEvaluator(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ OnlineEvaluator retrievedResult = retrievedResponse.Result;
+ }
+ // End snippet
+ }
+
+ /// Snippet for ActivateOnlineEvaluatorAsync
+ public async Task ActivateOnlineEvaluatorAsync()
+ {
+ // Snippet: ActivateOnlineEvaluatorAsync(string, CallSettings)
+ // Additional: ActivateOnlineEvaluatorAsync(string, CancellationToken)
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ string name = "projects/[PROJECT]/locations/[LOCATION]/onlineEvaluators/[ONLINE_EVALUATOR]";
+ // Make the request
+ Operation response = await onlineEvaluatorServiceClient.ActivateOnlineEvaluatorAsync(name);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = await response.PollUntilCompletedAsync();
+ // Retrieve the operation result
+ OnlineEvaluator 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 retrievedResponse = await onlineEvaluatorServiceClient.PollOnceActivateOnlineEvaluatorAsync(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ OnlineEvaluator retrievedResult = retrievedResponse.Result;
+ }
+ // End snippet
+ }
+
+ /// Snippet for ActivateOnlineEvaluator
+ public void ActivateOnlineEvaluatorResourceNames()
+ {
+ // Snippet: ActivateOnlineEvaluator(OnlineEvaluatorName, CallSettings)
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
+ // Initialize request argument(s)
+ OnlineEvaluatorName name = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]");
+ // Make the request
+ Operation response = onlineEvaluatorServiceClient.ActivateOnlineEvaluator(name);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = response.PollUntilCompleted();
+ // Retrieve the operation result
+ OnlineEvaluator 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 retrievedResponse = onlineEvaluatorServiceClient.PollOnceActivateOnlineEvaluator(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ OnlineEvaluator retrievedResult = retrievedResponse.Result;
+ }
+ // End snippet
+ }
+
+ /// Snippet for ActivateOnlineEvaluatorAsync
+ public async Task ActivateOnlineEvaluatorResourceNamesAsync()
+ {
+ // Snippet: ActivateOnlineEvaluatorAsync(OnlineEvaluatorName, CallSettings)
+ // Additional: ActivateOnlineEvaluatorAsync(OnlineEvaluatorName, CancellationToken)
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ OnlineEvaluatorName name = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]");
+ // Make the request
+ Operation response = await onlineEvaluatorServiceClient.ActivateOnlineEvaluatorAsync(name);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = await response.PollUntilCompletedAsync();
+ // Retrieve the operation result
+ OnlineEvaluator 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 retrievedResponse = await onlineEvaluatorServiceClient.PollOnceActivateOnlineEvaluatorAsync(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ OnlineEvaluator retrievedResult = retrievedResponse.Result;
+ }
+ // End snippet
+ }
+
+ /// Snippet for SuspendOnlineEvaluator
+ public void SuspendOnlineEvaluatorRequestObject()
+ {
+ // Snippet: SuspendOnlineEvaluator(SuspendOnlineEvaluatorRequest, CallSettings)
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
+ // Initialize request argument(s)
+ SuspendOnlineEvaluatorRequest request = new SuspendOnlineEvaluatorRequest
+ {
+ OnlineEvaluatorName = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]"),
+ };
+ // Make the request
+ Operation response = onlineEvaluatorServiceClient.SuspendOnlineEvaluator(request);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = response.PollUntilCompleted();
+ // Retrieve the operation result
+ OnlineEvaluator 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 retrievedResponse = onlineEvaluatorServiceClient.PollOnceSuspendOnlineEvaluator(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ OnlineEvaluator retrievedResult = retrievedResponse.Result;
+ }
+ // End snippet
+ }
+
+ /// Snippet for SuspendOnlineEvaluatorAsync
+ public async Task SuspendOnlineEvaluatorRequestObjectAsync()
+ {
+ // Snippet: SuspendOnlineEvaluatorAsync(SuspendOnlineEvaluatorRequest, CallSettings)
+ // Additional: SuspendOnlineEvaluatorAsync(SuspendOnlineEvaluatorRequest, CancellationToken)
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ SuspendOnlineEvaluatorRequest request = new SuspendOnlineEvaluatorRequest
+ {
+ OnlineEvaluatorName = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]"),
+ };
+ // Make the request
+ Operation response = await onlineEvaluatorServiceClient.SuspendOnlineEvaluatorAsync(request);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = await response.PollUntilCompletedAsync();
+ // Retrieve the operation result
+ OnlineEvaluator 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 retrievedResponse = await onlineEvaluatorServiceClient.PollOnceSuspendOnlineEvaluatorAsync(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ OnlineEvaluator retrievedResult = retrievedResponse.Result;
+ }
+ // End snippet
+ }
+
+ /// Snippet for SuspendOnlineEvaluator
+ public void SuspendOnlineEvaluator()
+ {
+ // Snippet: SuspendOnlineEvaluator(string, CallSettings)
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
+ // Initialize request argument(s)
+ string name = "projects/[PROJECT]/locations/[LOCATION]/onlineEvaluators/[ONLINE_EVALUATOR]";
+ // Make the request
+ Operation response = onlineEvaluatorServiceClient.SuspendOnlineEvaluator(name);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = response.PollUntilCompleted();
+ // Retrieve the operation result
+ OnlineEvaluator 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 retrievedResponse = onlineEvaluatorServiceClient.PollOnceSuspendOnlineEvaluator(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ OnlineEvaluator retrievedResult = retrievedResponse.Result;
+ }
+ // End snippet
+ }
+
+ /// Snippet for SuspendOnlineEvaluatorAsync
+ public async Task SuspendOnlineEvaluatorAsync()
+ {
+ // Snippet: SuspendOnlineEvaluatorAsync(string, CallSettings)
+ // Additional: SuspendOnlineEvaluatorAsync(string, CancellationToken)
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ string name = "projects/[PROJECT]/locations/[LOCATION]/onlineEvaluators/[ONLINE_EVALUATOR]";
+ // Make the request
+ Operation response = await onlineEvaluatorServiceClient.SuspendOnlineEvaluatorAsync(name);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = await response.PollUntilCompletedAsync();
+ // Retrieve the operation result
+ OnlineEvaluator 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 retrievedResponse = await onlineEvaluatorServiceClient.PollOnceSuspendOnlineEvaluatorAsync(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ OnlineEvaluator retrievedResult = retrievedResponse.Result;
+ }
+ // End snippet
+ }
+
+ /// Snippet for SuspendOnlineEvaluator
+ public void SuspendOnlineEvaluatorResourceNames()
+ {
+ // Snippet: SuspendOnlineEvaluator(OnlineEvaluatorName, CallSettings)
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = OnlineEvaluatorServiceClient.Create();
+ // Initialize request argument(s)
+ OnlineEvaluatorName name = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]");
+ // Make the request
+ Operation response = onlineEvaluatorServiceClient.SuspendOnlineEvaluator(name);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = response.PollUntilCompleted();
+ // Retrieve the operation result
+ OnlineEvaluator 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 retrievedResponse = onlineEvaluatorServiceClient.PollOnceSuspendOnlineEvaluator(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ OnlineEvaluator retrievedResult = retrievedResponse.Result;
+ }
+ // End snippet
+ }
+
+ /// Snippet for SuspendOnlineEvaluatorAsync
+ public async Task SuspendOnlineEvaluatorResourceNamesAsync()
+ {
+ // Snippet: SuspendOnlineEvaluatorAsync(OnlineEvaluatorName, CallSettings)
+ // Additional: SuspendOnlineEvaluatorAsync(OnlineEvaluatorName, CancellationToken)
+ // Create client
+ OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = await OnlineEvaluatorServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ OnlineEvaluatorName name = OnlineEvaluatorName.FromProjectLocationOnlineEvaluator("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]");
+ // Make the request
+ Operation response = await onlineEvaluatorServiceClient.SuspendOnlineEvaluatorAsync(name);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = await response.PollUntilCompletedAsync();
+ // Retrieve the operation result
+ OnlineEvaluator 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 retrievedResponse = await onlineEvaluatorServiceClient.PollOnceSuspendOnlineEvaluatorAsync(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ OnlineEvaluator retrievedResult = retrievedResponse.Result;
+ }
+ // End snippet
+ }
+ }
+}
diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1/EvaluationAgentData.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1/EvaluationAgentData.g.cs
new file mode 100644
index 000000000000..fa03bc79afc4
--- /dev/null
+++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1/EvaluationAgentData.g.cs
@@ -0,0 +1,1398 @@
+//
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/aiplatform/v1beta1/evaluation_agent_data.proto
+//
+#pragma warning disable 1591, 0612, 3021, 8981
+#region Designer generated code
+
+using pb = global::Google.Protobuf;
+using pbc = global::Google.Protobuf.Collections;
+using pbr = global::Google.Protobuf.Reflection;
+using scg = global::System.Collections.Generic;
+namespace Google.Cloud.AIPlatform.V1Beta1 {
+
+ /// Holder for reflection information generated from google/cloud/aiplatform/v1beta1/evaluation_agent_data.proto
+ public static partial class EvaluationAgentDataReflection {
+
+ #region Descriptor
+ /// File descriptor for google/cloud/aiplatform/v1beta1/evaluation_agent_data.proto
+ public static pbr::FileDescriptor Descriptor {
+ get { return descriptor; }
+ }
+ private static pbr::FileDescriptor descriptor;
+
+ static EvaluationAgentDataReflection() {
+ byte[] descriptorData = global::System.Convert.FromBase64String(
+ string.Concat(
+ "Cjtnb29nbGUvY2xvdWQvYWlwbGF0Zm9ybS92MWJldGExL2V2YWx1YXRpb25f",
+ "YWdlbnRfZGF0YS5wcm90bxIfZ29vZ2xlLmNsb3VkLmFpcGxhdGZvcm0udjFi",
+ "ZXRhMRofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5wcm90bxotZ29vZ2xl",
+ "L2Nsb3VkL2FpcGxhdGZvcm0vdjFiZXRhMS9jb250ZW50LnByb3RvGipnb29n",
+ "bGUvY2xvdWQvYWlwbGF0Zm9ybS92MWJldGExL3Rvb2wucHJvdG8aHGdvb2ds",
+ "ZS9wcm90b2J1Zi9zdHJ1Y3QucHJvdG8aH2dvb2dsZS9wcm90b2J1Zi90aW1l",
+ "c3RhbXAucHJvdG8i/AEKCUFnZW50RGF0YRJLCgZhZ2VudHMYASADKAsyNi5n",
+ "b29nbGUuY2xvdWQuYWlwbGF0Zm9ybS52MWJldGExLkFnZW50RGF0YS5BZ2Vu",
+ "dHNFbnRyeUID4EEBEkUKBXR1cm5zGAIgAygLMjEuZ29vZ2xlLmNsb3VkLmFp",
+ "cGxhdGZvcm0udjFiZXRhMS5Db252ZXJzYXRpb25UdXJuQgPgQQEaWwoLQWdl",
+ "bnRzRW50cnkSCwoDa2V5GAEgASgJEjsKBXZhbHVlGAIgASgLMiwuZ29vZ2xl",
+ "LmNsb3VkLmFpcGxhdGZvcm0udjFiZXRhMS5BZ2VudENvbmZpZzoCOAEi1wEK",
+ "C0FnZW50Q29uZmlnEhoKCGFnZW50X2lkGAEgASgJQgPgQQJIAIgBARIXCgph",
+ "Z2VudF90eXBlGAIgASgJQgPgQQESGAoLZGVzY3JpcHRpb24YAyABKAlCA+BB",
+ "ARIYCgtpbnN0cnVjdGlvbhgEIAEoCUID4EEBEjkKBXRvb2xzGAUgAygLMiUu",
+ "Z29vZ2xlLmNsb3VkLmFpcGxhdGZvcm0udjFiZXRhMS5Ub29sQgPgQQESFwoK",
+ "c3ViX2FnZW50cxgGIAMoCUID4EEBQgsKCV9hZ2VudF9pZCKXAQoQQ29udmVy",
+ "c2F0aW9uVHVybhIcCgp0dXJuX2luZGV4GAEgASgFQgPgQQJIAIgBARIUCgd0",
+ "dXJuX2lkGAIgASgJQgPgQQESQAoGZXZlbnRzGAMgAygLMisuZ29vZ2xlLmNs",
+ "b3VkLmFpcGxhdGZvcm0udjFiZXRhMS5BZ2VudEV2ZW50QgPgQQFCDQoLX3R1",
+ "cm5faW5kZXgirAIKCkFnZW50RXZlbnQSGAoGYXV0aG9yGAEgASgJQgPgQQJI",
+ "AIgBARJDCgdjb250ZW50GAIgASgLMiguZ29vZ2xlLmNsb3VkLmFpcGxhdGZv",
+ "cm0udjFiZXRhMS5Db250ZW50QgPgQQJIAYgBARIzCgpldmVudF90aW1lGAMg",
+ "ASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEID4EEBEjEKC3N0YXRl",
+ "X2RlbHRhGAQgASgLMhcuZ29vZ2xlLnByb3RvYnVmLlN0cnVjdEID4EEBEkAK",
+ "DGFjdGl2ZV90b29scxgFIAMoCzIlLmdvb2dsZS5jbG91ZC5haXBsYXRmb3Jt",
+ "LnYxYmV0YTEuVG9vbEID4EEBQgkKB19hdXRob3JCCgoIX2NvbnRlbnRC7wEK",
+ "I2NvbS5nb29nbGUuY2xvdWQuYWlwbGF0Zm9ybS52MWJldGExQhhFdmFsdWF0",
+ "aW9uQWdlbnREYXRhUHJvdG9QAVpDY2xvdWQuZ29vZ2xlLmNvbS9nby9haXBs",
+ "YXRmb3JtL2FwaXYxYmV0YTEvYWlwbGF0Zm9ybXBiO2FpcGxhdGZvcm1wYqoC",
+ "H0dvb2dsZS5DbG91ZC5BSVBsYXRmb3JtLlYxQmV0YTHKAh9Hb29nbGVcQ2xv",
+ "dWRcQUlQbGF0Zm9ybVxWMWJldGEx6gIiR29vZ2xlOjpDbG91ZDo6QUlQbGF0",
+ "Zm9ybTo6VjFiZXRhMWIGcHJvdG8z"));
+ descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
+ new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Cloud.AIPlatform.V1Beta1.ContentReflection.Descriptor, global::Google.Cloud.AIPlatform.V1Beta1.ToolReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.StructReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, },
+ new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
+ new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.AgentData), global::Google.Cloud.AIPlatform.V1Beta1.AgentData.Parser, new[]{ "Agents", "Turns" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.AgentConfig), global::Google.Cloud.AIPlatform.V1Beta1.AgentConfig.Parser, new[]{ "AgentId", "AgentType", "Description", "Instruction", "Tools", "SubAgents" }, new[]{ "AgentId" }, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.ConversationTurn), global::Google.Cloud.AIPlatform.V1Beta1.ConversationTurn.Parser, new[]{ "TurnIndex", "TurnId", "Events" }, new[]{ "TurnIndex" }, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.AgentEvent), global::Google.Cloud.AIPlatform.V1Beta1.AgentEvent.Parser, new[]{ "Author", "Content", "EventTime", "StateDelta", "ActiveTools" }, new[]{ "Author", "Content" }, null, null, null)
+ }));
+ }
+ #endregion
+
+ }
+ #region Messages
+ ///
+ /// Represents data specific to multi-turn agent evaluations.
+ ///
+ [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
+ public sealed partial class AgentData : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AgentData());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Google.Cloud.AIPlatform.V1Beta1.EvaluationAgentDataReflection.Descriptor.MessageTypes[0]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public AgentData() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public AgentData(AgentData other) : this() {
+ agents_ = other.agents_.Clone();
+ turns_ = other.turns_.Clone();
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public AgentData Clone() {
+ return new AgentData(this);
+ }
+
+ /// Field number for the "agents" field.
+ public const int AgentsFieldNumber = 1;
+ private static readonly pbc::MapField.Codec _map_agents_codec
+ = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Google.Cloud.AIPlatform.V1Beta1.AgentConfig.Parser), 10);
+ private readonly pbc::MapField agents_ = new pbc::MapField();
+ ///
+ /// Optional. A map containing the static configurations for each agent in the
+ /// system. Key: agent_id (matches the `author` field in events). Value: The
+ /// static configuration of the agent.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pbc::MapField Agents {
+ get { return agents_; }
+ }
+
+ /// Field number for the "turns" field.
+ public const int TurnsFieldNumber = 2;
+ private static readonly pb::FieldCodec _repeated_turns_codec
+ = pb::FieldCodec.ForMessage(18, global::Google.Cloud.AIPlatform.V1Beta1.ConversationTurn.Parser);
+ private readonly pbc::RepeatedField turns_ = new pbc::RepeatedField();
+ ///
+ /// Optional. A chronological list of conversation turns.
+ /// Each turn represents a logical execution cycle (e.g., User Input -> Agent
+ /// Response).
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pbc::RepeatedField Turns {
+ get { return turns_; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as AgentData);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(AgentData other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (!Agents.Equals(other.Agents)) return false;
+ if(!turns_.Equals(other.turns_)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ hash ^= Agents.GetHashCode();
+ hash ^= turns_.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ agents_.WriteTo(output, _map_agents_codec);
+ turns_.WriteTo(output, _repeated_turns_codec);
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ agents_.WriteTo(ref output, _map_agents_codec);
+ turns_.WriteTo(ref output, _repeated_turns_codec);
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ size += agents_.CalculateSize(_map_agents_codec);
+ size += turns_.CalculateSize(_repeated_turns_codec);
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(AgentData other) {
+ if (other == null) {
+ return;
+ }
+ agents_.MergeFrom(other.agents_);
+ turns_.Add(other.turns_);
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ agents_.AddEntriesFrom(input, _map_agents_codec);
+ break;
+ }
+ case 18: {
+ turns_.AddEntriesFrom(input, _repeated_turns_codec);
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ agents_.AddEntriesFrom(ref input, _map_agents_codec);
+ break;
+ }
+ case 18: {
+ turns_.AddEntriesFrom(ref input, _repeated_turns_codec);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// Represents configuration for an Agent.
+ ///
+ [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
+ public sealed partial class AgentConfig : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AgentConfig());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::Google.Cloud.AIPlatform.V1Beta1.EvaluationAgentDataReflection.Descriptor.MessageTypes[1]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public AgentConfig() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public AgentConfig(AgentConfig other) : this() {
+ agentId_ = other.agentId_;
+ agentType_ = other.agentType_;
+ description_ = other.description_;
+ instruction_ = other.instruction_;
+ tools_ = other.tools_.Clone();
+ subAgents_ = other.subAgents_.Clone();
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public AgentConfig Clone() {
+ return new AgentConfig(this);
+ }
+
+ /// Field number for the "agent_id" field.
+ public const int AgentIdFieldNumber = 1;
+ private readonly static string AgentIdDefaultValue = "";
+
+ private string agentId_;
+ ///
+ /// Required. Unique identifier of the agent.
+ /// This ID is used to refer to this agent, e.g., in AgentEvent.author, or in
+ /// the `sub_agents` field. It must be unique within the `agents` map.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string AgentId {
+ get { return agentId_ ?? AgentIdDefaultValue; }
+ set {
+ agentId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+ /// Gets whether the "agent_id" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasAgentId {
+ get { return agentId_ != null; }
+ }
+ /// Clears the value of the "agent_id" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearAgentId() {
+ agentId_ = null;
+ }
+
+ /// Field number for the "agent_type" field.
+ public const int AgentTypeFieldNumber = 2;
+ private string agentType_ = "";
+ ///
+ /// Optional. The type or class of the agent (e.g., "LlmAgent", "RouterAgent",
+ /// "ToolUseAgent"). Useful for the autorater to understand the expected
+ /// behavior of the agent.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string AgentType {
+ get { return agentType_; }
+ set {
+ agentType_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "description" field.
+ public const int DescriptionFieldNumber = 3;
+ private string description_ = "";
+ ///
+ /// Optional. A high-level description of the agent's role and
+ /// responsibilities. Critical for evaluating if the agent is routing tasks
+ /// correctly.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Description {
+ get { return description_; }
+ set {
+ description_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "instruction" field.
+ public const int InstructionFieldNumber = 4;
+ private string instruction_ = "";
+ ///
+ /// Optional. Provides instructions for the LLM model, guiding the agent's
+ /// behavior. Can be static or dynamic. Dynamic instructions can contain
+ /// placeholders like {variable_name} that will be resolved at runtime using
+ /// the `AgentEvent.state_delta` field.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Instruction {
+ get { return instruction_; }
+ set {
+ instruction_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "tools" field.
+ public const int ToolsFieldNumber = 5;
+ private static readonly pb::FieldCodec _repeated_tools_codec
+ = pb::FieldCodec.ForMessage(42, global::Google.Cloud.AIPlatform.V1Beta1.Tool.Parser);
+ private readonly pbc::RepeatedField tools_ = new pbc::RepeatedField();
+ ///
+ /// Optional. The list of tools available to this agent.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pbc::RepeatedField Tools {
+ get { return tools_; }
+ }
+
+ /// Field number for the "sub_agents" field.
+ public const int SubAgentsFieldNumber = 6;
+ private static readonly pb::FieldCodec _repeated_subAgents_codec
+ = pb::FieldCodec.ForString(50);
+ private readonly pbc::RepeatedField subAgents_ = new pbc::RepeatedField();
+ ///