diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.CancelJobAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.CancelJobAsyncSnippet.g.cs
new file mode 100755
index 000000000000..8a3a8d02d1c0
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.CancelJobAsyncSnippet.g.cs
@@ -0,0 +1,63 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+#pragma warning disable CS8981
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_CancelJob_async_flattened]
+ using Google.LongRunning;
+ using System.Threading.Tasks;
+ using gcbv = Google.Cloud.Batch.V1Alpha;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for CancelJobAsync
+ ///
+ /// 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 CancelJobAsync()
+ {
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ string name = "projects/[PROJECT]/locations/[LOCATION]/jobs/[JOB]";
+ // Make the request
+ Operation response = await batchServiceClient.CancelJobAsync(name);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = await response.PollUntilCompletedAsync();
+ // Retrieve the operation result
+ gcbv::CancelJobResponse 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 batchServiceClient.PollOnceCancelJobAsync(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ gcbv::CancelJobResponse retrievedResult = retrievedResponse.Result;
+ }
+ }
+ }
+ // [END batch_v1alpha_generated_BatchService_CancelJob_async_flattened]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.CancelJobRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.CancelJobRequestObjectAsyncSnippet.g.cs
new file mode 100755
index 000000000000..2a49e4bb7185
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.CancelJobRequestObjectAsyncSnippet.g.cs
@@ -0,0 +1,67 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+#pragma warning disable CS8981
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_CancelJob_async]
+ using Google.LongRunning;
+ using System.Threading.Tasks;
+ using gcbv = Google.Cloud.Batch.V1Alpha;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for CancelJobAsync
+ ///
+ /// 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 CancelJobRequestObjectAsync()
+ {
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ gcbv::CancelJobRequest request = new gcbv::CancelJobRequest
+ {
+ JobName = gcbv::JobName.FromProjectLocationJob("[PROJECT]", "[LOCATION]", "[JOB]"),
+ RequestId = "",
+ };
+ // Make the request
+ Operation response = await batchServiceClient.CancelJobAsync(request);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = await response.PollUntilCompletedAsync();
+ // Retrieve the operation result
+ gcbv::CancelJobResponse 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 batchServiceClient.PollOnceCancelJobAsync(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ gcbv::CancelJobResponse retrievedResult = retrievedResponse.Result;
+ }
+ }
+ }
+ // [END batch_v1alpha_generated_BatchService_CancelJob_async]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.CancelJobRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.CancelJobRequestObjectSnippet.g.cs
new file mode 100755
index 000000000000..7e7db288b740
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.CancelJobRequestObjectSnippet.g.cs
@@ -0,0 +1,64 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_CancelJob_sync]
+ using Google.Cloud.Batch.V1Alpha;
+ using Google.LongRunning;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for CancelJob
+ ///
+ /// 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 CancelJobRequestObject()
+ {
+ // Create client
+ BatchServiceClient batchServiceClient = BatchServiceClient.Create();
+ // Initialize request argument(s)
+ CancelJobRequest request = new CancelJobRequest
+ {
+ JobName = JobName.FromProjectLocationJob("[PROJECT]", "[LOCATION]", "[JOB]"),
+ RequestId = "",
+ };
+ // Make the request
+ Operation response = batchServiceClient.CancelJob(request);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = response.PollUntilCompleted();
+ // Retrieve the operation result
+ CancelJobResponse 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 = batchServiceClient.PollOnceCancelJob(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ CancelJobResponse retrievedResult = retrievedResponse.Result;
+ }
+ }
+ }
+ // [END batch_v1alpha_generated_BatchService_CancelJob_sync]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.CancelJobResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.CancelJobResourceNamesAsyncSnippet.g.cs
new file mode 100755
index 000000000000..20d01a1b40cb
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.CancelJobResourceNamesAsyncSnippet.g.cs
@@ -0,0 +1,63 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+#pragma warning disable CS8981
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_CancelJob_async_flattened_resourceNames]
+ using Google.LongRunning;
+ using System.Threading.Tasks;
+ using gcbv = Google.Cloud.Batch.V1Alpha;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for CancelJobAsync
+ ///
+ /// 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 CancelJobResourceNamesAsync()
+ {
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ gcbv::JobName name = gcbv::JobName.FromProjectLocationJob("[PROJECT]", "[LOCATION]", "[JOB]");
+ // Make the request
+ Operation response = await batchServiceClient.CancelJobAsync(name);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = await response.PollUntilCompletedAsync();
+ // Retrieve the operation result
+ gcbv::CancelJobResponse 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 batchServiceClient.PollOnceCancelJobAsync(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ gcbv::CancelJobResponse retrievedResult = retrievedResponse.Result;
+ }
+ }
+ }
+ // [END batch_v1alpha_generated_BatchService_CancelJob_async_flattened_resourceNames]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.CancelJobResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.CancelJobResourceNamesSnippet.g.cs
new file mode 100755
index 000000000000..f27c06601471
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.CancelJobResourceNamesSnippet.g.cs
@@ -0,0 +1,60 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_CancelJob_sync_flattened_resourceNames]
+ using Google.Cloud.Batch.V1Alpha;
+ using Google.LongRunning;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for CancelJob
+ ///
+ /// 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 CancelJobResourceNames()
+ {
+ // Create client
+ BatchServiceClient batchServiceClient = BatchServiceClient.Create();
+ // Initialize request argument(s)
+ JobName name = JobName.FromProjectLocationJob("[PROJECT]", "[LOCATION]", "[JOB]");
+ // Make the request
+ Operation response = batchServiceClient.CancelJob(name);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = response.PollUntilCompleted();
+ // Retrieve the operation result
+ CancelJobResponse 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 = batchServiceClient.PollOnceCancelJob(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ CancelJobResponse retrievedResult = retrievedResponse.Result;
+ }
+ }
+ }
+ // [END batch_v1alpha_generated_BatchService_CancelJob_sync_flattened_resourceNames]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.CancelJobSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.CancelJobSnippet.g.cs
new file mode 100755
index 000000000000..8c5310324299
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.CancelJobSnippet.g.cs
@@ -0,0 +1,60 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_CancelJob_sync_flattened]
+ using Google.Cloud.Batch.V1Alpha;
+ using Google.LongRunning;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for CancelJob
+ ///
+ /// 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 CancelJob()
+ {
+ // Create client
+ BatchServiceClient batchServiceClient = BatchServiceClient.Create();
+ // Initialize request argument(s)
+ string name = "projects/[PROJECT]/locations/[LOCATION]/jobs/[JOB]";
+ // Make the request
+ Operation response = batchServiceClient.CancelJob(name);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = response.PollUntilCompleted();
+ // Retrieve the operation result
+ CancelJobResponse 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 = batchServiceClient.PollOnceCancelJob(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ CancelJobResponse retrievedResult = retrievedResponse.Result;
+ }
+ }
+ }
+ // [END batch_v1alpha_generated_BatchService_CancelJob_sync_flattened]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.CreateJobAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.CreateJobAsyncSnippet.g.cs
new file mode 100755
index 000000000000..8b5fd5a53928
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.CreateJobAsyncSnippet.g.cs
@@ -0,0 +1,48 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+#pragma warning disable CS8981
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_CreateJob_async_flattened]
+ using System.Threading.Tasks;
+ using gcbv = Google.Cloud.Batch.V1Alpha;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for CreateJobAsync
+ ///
+ /// 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 CreateJobAsync()
+ {
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ string parent = "projects/[PROJECT]/locations/[LOCATION]";
+ gcbv::Job job = new gcbv::Job();
+ string jobId = "";
+ // Make the request
+ gcbv::Job response = await batchServiceClient.CreateJobAsync(parent, job, jobId);
+ }
+ }
+ // [END batch_v1alpha_generated_BatchService_CreateJob_async_flattened]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.CreateJobRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.CreateJobRequestObjectAsyncSnippet.g.cs
new file mode 100755
index 000000000000..f12ca4b15032
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.CreateJobRequestObjectAsyncSnippet.g.cs
@@ -0,0 +1,53 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+#pragma warning disable CS8981
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_CreateJob_async]
+ using Google.Api.Gax.ResourceNames;
+ using System.Threading.Tasks;
+ using gcbv = Google.Cloud.Batch.V1Alpha;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for CreateJobAsync
+ ///
+ /// 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 CreateJobRequestObjectAsync()
+ {
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ gcbv::CreateJobRequest request = new gcbv::CreateJobRequest
+ {
+ ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
+ JobId = "",
+ Job = new gcbv::Job(),
+ RequestId = "",
+ };
+ // Make the request
+ gcbv::Job response = await batchServiceClient.CreateJobAsync(request);
+ }
+ }
+ // [END batch_v1alpha_generated_BatchService_CreateJob_async]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.CreateJobRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.CreateJobRequestObjectSnippet.g.cs
new file mode 100755
index 000000000000..a7690238236b
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.CreateJobRequestObjectSnippet.g.cs
@@ -0,0 +1,50 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_CreateJob_sync]
+ using Google.Api.Gax.ResourceNames;
+ using Google.Cloud.Batch.V1Alpha;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for CreateJob
+ ///
+ /// 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 CreateJobRequestObject()
+ {
+ // Create client
+ BatchServiceClient batchServiceClient = BatchServiceClient.Create();
+ // Initialize request argument(s)
+ CreateJobRequest request = new CreateJobRequest
+ {
+ ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
+ JobId = "",
+ Job = new Job(),
+ RequestId = "",
+ };
+ // Make the request
+ Job response = batchServiceClient.CreateJob(request);
+ }
+ }
+ // [END batch_v1alpha_generated_BatchService_CreateJob_sync]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.CreateJobResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.CreateJobResourceNamesAsyncSnippet.g.cs
new file mode 100755
index 000000000000..a67c96743fb3
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.CreateJobResourceNamesAsyncSnippet.g.cs
@@ -0,0 +1,49 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+#pragma warning disable CS8981
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_CreateJob_async_flattened_resourceNames]
+ using Google.Api.Gax.ResourceNames;
+ using System.Threading.Tasks;
+ using gcbv = Google.Cloud.Batch.V1Alpha;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for CreateJobAsync
+ ///
+ /// 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 CreateJobResourceNamesAsync()
+ {
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
+ gcbv::Job job = new gcbv::Job();
+ string jobId = "";
+ // Make the request
+ gcbv::Job response = await batchServiceClient.CreateJobAsync(parent, job, jobId);
+ }
+ }
+ // [END batch_v1alpha_generated_BatchService_CreateJob_async_flattened_resourceNames]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.CreateJobResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.CreateJobResourceNamesSnippet.g.cs
new file mode 100755
index 000000000000..7762c4a89ef9
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.CreateJobResourceNamesSnippet.g.cs
@@ -0,0 +1,46 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_CreateJob_sync_flattened_resourceNames]
+ using Google.Api.Gax.ResourceNames;
+ using Google.Cloud.Batch.V1Alpha;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for CreateJob
+ ///
+ /// 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 CreateJobResourceNames()
+ {
+ // Create client
+ BatchServiceClient batchServiceClient = BatchServiceClient.Create();
+ // Initialize request argument(s)
+ LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
+ Job job = new Job();
+ string jobId = "";
+ // Make the request
+ Job response = batchServiceClient.CreateJob(parent, job, jobId);
+ }
+ }
+ // [END batch_v1alpha_generated_BatchService_CreateJob_sync_flattened_resourceNames]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.CreateJobSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.CreateJobSnippet.g.cs
new file mode 100755
index 000000000000..e47e373994c9
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.CreateJobSnippet.g.cs
@@ -0,0 +1,45 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_CreateJob_sync_flattened]
+ using Google.Cloud.Batch.V1Alpha;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for CreateJob
+ ///
+ /// 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 CreateJob()
+ {
+ // Create client
+ BatchServiceClient batchServiceClient = BatchServiceClient.Create();
+ // Initialize request argument(s)
+ string parent = "projects/[PROJECT]/locations/[LOCATION]";
+ Job job = new Job();
+ string jobId = "";
+ // Make the request
+ Job response = batchServiceClient.CreateJob(parent, job, jobId);
+ }
+ }
+ // [END batch_v1alpha_generated_BatchService_CreateJob_sync_flattened]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.CreateResourceAllowanceAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.CreateResourceAllowanceAsyncSnippet.g.cs
new file mode 100755
index 000000000000..98ad0ba0291d
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.CreateResourceAllowanceAsyncSnippet.g.cs
@@ -0,0 +1,48 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+#pragma warning disable CS8981
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_CreateResourceAllowance_async_flattened]
+ using System.Threading.Tasks;
+ using gcbv = Google.Cloud.Batch.V1Alpha;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for CreateResourceAllowanceAsync
+ ///
+ /// 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 CreateResourceAllowanceAsync()
+ {
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ string parent = "projects/[PROJECT]/locations/[LOCATION]";
+ gcbv::ResourceAllowance resourceAllowance = new gcbv::ResourceAllowance();
+ string resourceAllowanceId = "";
+ // Make the request
+ gcbv::ResourceAllowance response = await batchServiceClient.CreateResourceAllowanceAsync(parent, resourceAllowance, resourceAllowanceId);
+ }
+ }
+ // [END batch_v1alpha_generated_BatchService_CreateResourceAllowance_async_flattened]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.CreateResourceAllowanceRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.CreateResourceAllowanceRequestObjectAsyncSnippet.g.cs
new file mode 100755
index 000000000000..a0acc8eccf57
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.CreateResourceAllowanceRequestObjectAsyncSnippet.g.cs
@@ -0,0 +1,53 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+#pragma warning disable CS8981
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_CreateResourceAllowance_async]
+ using Google.Api.Gax.ResourceNames;
+ using System.Threading.Tasks;
+ using gcbv = Google.Cloud.Batch.V1Alpha;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for CreateResourceAllowanceAsync
+ ///
+ /// 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 CreateResourceAllowanceRequestObjectAsync()
+ {
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ gcbv::CreateResourceAllowanceRequest request = new gcbv::CreateResourceAllowanceRequest
+ {
+ ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
+ ResourceAllowanceId = "",
+ ResourceAllowance = new gcbv::ResourceAllowance(),
+ RequestId = "",
+ };
+ // Make the request
+ gcbv::ResourceAllowance response = await batchServiceClient.CreateResourceAllowanceAsync(request);
+ }
+ }
+ // [END batch_v1alpha_generated_BatchService_CreateResourceAllowance_async]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.CreateResourceAllowanceRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.CreateResourceAllowanceRequestObjectSnippet.g.cs
new file mode 100755
index 000000000000..227f7fe2b76b
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.CreateResourceAllowanceRequestObjectSnippet.g.cs
@@ -0,0 +1,50 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_CreateResourceAllowance_sync]
+ using Google.Api.Gax.ResourceNames;
+ using Google.Cloud.Batch.V1Alpha;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for CreateResourceAllowance
+ ///
+ /// 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 CreateResourceAllowanceRequestObject()
+ {
+ // Create client
+ BatchServiceClient batchServiceClient = BatchServiceClient.Create();
+ // Initialize request argument(s)
+ CreateResourceAllowanceRequest request = new CreateResourceAllowanceRequest
+ {
+ ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
+ ResourceAllowanceId = "",
+ ResourceAllowance = new ResourceAllowance(),
+ RequestId = "",
+ };
+ // Make the request
+ ResourceAllowance response = batchServiceClient.CreateResourceAllowance(request);
+ }
+ }
+ // [END batch_v1alpha_generated_BatchService_CreateResourceAllowance_sync]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.CreateResourceAllowanceResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.CreateResourceAllowanceResourceNamesAsyncSnippet.g.cs
new file mode 100755
index 000000000000..a2c24edd9857
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.CreateResourceAllowanceResourceNamesAsyncSnippet.g.cs
@@ -0,0 +1,49 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+#pragma warning disable CS8981
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_CreateResourceAllowance_async_flattened_resourceNames]
+ using Google.Api.Gax.ResourceNames;
+ using System.Threading.Tasks;
+ using gcbv = Google.Cloud.Batch.V1Alpha;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for CreateResourceAllowanceAsync
+ ///
+ /// 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 CreateResourceAllowanceResourceNamesAsync()
+ {
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
+ gcbv::ResourceAllowance resourceAllowance = new gcbv::ResourceAllowance();
+ string resourceAllowanceId = "";
+ // Make the request
+ gcbv::ResourceAllowance response = await batchServiceClient.CreateResourceAllowanceAsync(parent, resourceAllowance, resourceAllowanceId);
+ }
+ }
+ // [END batch_v1alpha_generated_BatchService_CreateResourceAllowance_async_flattened_resourceNames]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.CreateResourceAllowanceResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.CreateResourceAllowanceResourceNamesSnippet.g.cs
new file mode 100755
index 000000000000..e991b55b5224
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.CreateResourceAllowanceResourceNamesSnippet.g.cs
@@ -0,0 +1,46 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_CreateResourceAllowance_sync_flattened_resourceNames]
+ using Google.Api.Gax.ResourceNames;
+ using Google.Cloud.Batch.V1Alpha;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for CreateResourceAllowance
+ ///
+ /// 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 CreateResourceAllowanceResourceNames()
+ {
+ // Create client
+ BatchServiceClient batchServiceClient = BatchServiceClient.Create();
+ // Initialize request argument(s)
+ LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
+ ResourceAllowance resourceAllowance = new ResourceAllowance();
+ string resourceAllowanceId = "";
+ // Make the request
+ ResourceAllowance response = batchServiceClient.CreateResourceAllowance(parent, resourceAllowance, resourceAllowanceId);
+ }
+ }
+ // [END batch_v1alpha_generated_BatchService_CreateResourceAllowance_sync_flattened_resourceNames]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.CreateResourceAllowanceSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.CreateResourceAllowanceSnippet.g.cs
new file mode 100755
index 000000000000..26610af1339d
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.CreateResourceAllowanceSnippet.g.cs
@@ -0,0 +1,45 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_CreateResourceAllowance_sync_flattened]
+ using Google.Cloud.Batch.V1Alpha;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for CreateResourceAllowance
+ ///
+ /// 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 CreateResourceAllowance()
+ {
+ // Create client
+ BatchServiceClient batchServiceClient = BatchServiceClient.Create();
+ // Initialize request argument(s)
+ string parent = "projects/[PROJECT]/locations/[LOCATION]";
+ ResourceAllowance resourceAllowance = new ResourceAllowance();
+ string resourceAllowanceId = "";
+ // Make the request
+ ResourceAllowance response = batchServiceClient.CreateResourceAllowance(parent, resourceAllowance, resourceAllowanceId);
+ }
+ }
+ // [END batch_v1alpha_generated_BatchService_CreateResourceAllowance_sync_flattened]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.DeleteJobAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.DeleteJobAsyncSnippet.g.cs
new file mode 100755
index 000000000000..cff2c0c431d2
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.DeleteJobAsyncSnippet.g.cs
@@ -0,0 +1,64 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+#pragma warning disable CS8981
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_DeleteJob_async_flattened]
+ using Google.LongRunning;
+ using Google.Protobuf.WellKnownTypes;
+ using System.Threading.Tasks;
+ using gcbv = Google.Cloud.Batch.V1Alpha;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for DeleteJobAsync
+ ///
+ /// 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 DeleteJobAsync()
+ {
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ string name = "";
+ // Make the request
+ Operation response = await batchServiceClient.DeleteJobAsync(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 batchServiceClient.PollOnceDeleteJobAsync(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 batch_v1alpha_generated_BatchService_DeleteJob_async_flattened]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.DeleteJobRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.DeleteJobRequestObjectAsyncSnippet.g.cs
new file mode 100755
index 000000000000..c6c718f9160f
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.DeleteJobRequestObjectAsyncSnippet.g.cs
@@ -0,0 +1,69 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+#pragma warning disable CS8981
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_DeleteJob_async]
+ using Google.LongRunning;
+ using Google.Protobuf.WellKnownTypes;
+ using System.Threading.Tasks;
+ using gcbv = Google.Cloud.Batch.V1Alpha;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for DeleteJobAsync
+ ///
+ /// 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 DeleteJobRequestObjectAsync()
+ {
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ gcbv::DeleteJobRequest request = new gcbv::DeleteJobRequest
+ {
+ Name = "",
+ Reason = "",
+ RequestId = "",
+ };
+ // Make the request
+ Operation response = await batchServiceClient.DeleteJobAsync(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 batchServiceClient.PollOnceDeleteJobAsync(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 batch_v1alpha_generated_BatchService_DeleteJob_async]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.DeleteJobRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.DeleteJobRequestObjectSnippet.g.cs
new file mode 100755
index 000000000000..dd8d4821d9e6
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.DeleteJobRequestObjectSnippet.g.cs
@@ -0,0 +1,66 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_DeleteJob_sync]
+ using Google.Cloud.Batch.V1Alpha;
+ using Google.LongRunning;
+ using Google.Protobuf.WellKnownTypes;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for DeleteJob
+ ///
+ /// 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 DeleteJobRequestObject()
+ {
+ // Create client
+ BatchServiceClient batchServiceClient = BatchServiceClient.Create();
+ // Initialize request argument(s)
+ DeleteJobRequest request = new DeleteJobRequest
+ {
+ Name = "",
+ Reason = "",
+ RequestId = "",
+ };
+ // Make the request
+ Operation response = batchServiceClient.DeleteJob(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 = batchServiceClient.PollOnceDeleteJob(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 batch_v1alpha_generated_BatchService_DeleteJob_sync]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.DeleteJobSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.DeleteJobSnippet.g.cs
new file mode 100755
index 000000000000..ea9eabf9ab38
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.DeleteJobSnippet.g.cs
@@ -0,0 +1,61 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_DeleteJob_sync_flattened]
+ using Google.Cloud.Batch.V1Alpha;
+ using Google.LongRunning;
+ using Google.Protobuf.WellKnownTypes;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for DeleteJob
+ ///
+ /// 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 DeleteJob()
+ {
+ // Create client
+ BatchServiceClient batchServiceClient = BatchServiceClient.Create();
+ // Initialize request argument(s)
+ string name = "";
+ // Make the request
+ Operation response = batchServiceClient.DeleteJob(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 = batchServiceClient.PollOnceDeleteJob(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 batch_v1alpha_generated_BatchService_DeleteJob_sync_flattened]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.DeleteResourceAllowanceAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.DeleteResourceAllowanceAsyncSnippet.g.cs
new file mode 100755
index 000000000000..37e5ad914ce4
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.DeleteResourceAllowanceAsyncSnippet.g.cs
@@ -0,0 +1,64 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+#pragma warning disable CS8981
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_DeleteResourceAllowance_async_flattened]
+ using Google.LongRunning;
+ using Google.Protobuf.WellKnownTypes;
+ using System.Threading.Tasks;
+ using gcbv = Google.Cloud.Batch.V1Alpha;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for DeleteResourceAllowanceAsync
+ ///
+ /// 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 DeleteResourceAllowanceAsync()
+ {
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ string name = "projects/[PROJECT]/locations/[LOCATION]/resourceAllowances/[RESOURCE_ALLOWANCE]";
+ // Make the request
+ Operation response = await batchServiceClient.DeleteResourceAllowanceAsync(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 batchServiceClient.PollOnceDeleteResourceAllowanceAsync(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 batch_v1alpha_generated_BatchService_DeleteResourceAllowance_async_flattened]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.DeleteResourceAllowanceRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.DeleteResourceAllowanceRequestObjectAsyncSnippet.g.cs
new file mode 100755
index 000000000000..a56d6949be22
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.DeleteResourceAllowanceRequestObjectAsyncSnippet.g.cs
@@ -0,0 +1,69 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+#pragma warning disable CS8981
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_DeleteResourceAllowance_async]
+ using Google.LongRunning;
+ using Google.Protobuf.WellKnownTypes;
+ using System.Threading.Tasks;
+ using gcbv = Google.Cloud.Batch.V1Alpha;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for DeleteResourceAllowanceAsync
+ ///
+ /// 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 DeleteResourceAllowanceRequestObjectAsync()
+ {
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ gcbv::DeleteResourceAllowanceRequest request = new gcbv::DeleteResourceAllowanceRequest
+ {
+ ResourceAllowanceName = gcbv::ResourceAllowanceName.FromProjectLocationResourceAllowance("[PROJECT]", "[LOCATION]", "[RESOURCE_ALLOWANCE]"),
+ Reason = "",
+ RequestId = "",
+ };
+ // Make the request
+ Operation response = await batchServiceClient.DeleteResourceAllowanceAsync(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 batchServiceClient.PollOnceDeleteResourceAllowanceAsync(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 batch_v1alpha_generated_BatchService_DeleteResourceAllowance_async]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.DeleteResourceAllowanceRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.DeleteResourceAllowanceRequestObjectSnippet.g.cs
new file mode 100755
index 000000000000..541473ebcaf8
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.DeleteResourceAllowanceRequestObjectSnippet.g.cs
@@ -0,0 +1,66 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_DeleteResourceAllowance_sync]
+ using Google.Cloud.Batch.V1Alpha;
+ using Google.LongRunning;
+ using Google.Protobuf.WellKnownTypes;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for DeleteResourceAllowance
+ ///
+ /// 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 DeleteResourceAllowanceRequestObject()
+ {
+ // Create client
+ BatchServiceClient batchServiceClient = BatchServiceClient.Create();
+ // Initialize request argument(s)
+ DeleteResourceAllowanceRequest request = new DeleteResourceAllowanceRequest
+ {
+ ResourceAllowanceName = ResourceAllowanceName.FromProjectLocationResourceAllowance("[PROJECT]", "[LOCATION]", "[RESOURCE_ALLOWANCE]"),
+ Reason = "",
+ RequestId = "",
+ };
+ // Make the request
+ Operation response = batchServiceClient.DeleteResourceAllowance(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 = batchServiceClient.PollOnceDeleteResourceAllowance(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 batch_v1alpha_generated_BatchService_DeleteResourceAllowance_sync]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.DeleteResourceAllowanceResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.DeleteResourceAllowanceResourceNamesAsyncSnippet.g.cs
new file mode 100755
index 000000000000..ce88c038293c
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.DeleteResourceAllowanceResourceNamesAsyncSnippet.g.cs
@@ -0,0 +1,64 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+#pragma warning disable CS8981
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_DeleteResourceAllowance_async_flattened_resourceNames]
+ using Google.LongRunning;
+ using Google.Protobuf.WellKnownTypes;
+ using System.Threading.Tasks;
+ using gcbv = Google.Cloud.Batch.V1Alpha;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for DeleteResourceAllowanceAsync
+ ///
+ /// 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 DeleteResourceAllowanceResourceNamesAsync()
+ {
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ gcbv::ResourceAllowanceName name = gcbv::ResourceAllowanceName.FromProjectLocationResourceAllowance("[PROJECT]", "[LOCATION]", "[RESOURCE_ALLOWANCE]");
+ // Make the request
+ Operation response = await batchServiceClient.DeleteResourceAllowanceAsync(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 batchServiceClient.PollOnceDeleteResourceAllowanceAsync(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 batch_v1alpha_generated_BatchService_DeleteResourceAllowance_async_flattened_resourceNames]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.DeleteResourceAllowanceResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.DeleteResourceAllowanceResourceNamesSnippet.g.cs
new file mode 100755
index 000000000000..045d1dc4c660
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.DeleteResourceAllowanceResourceNamesSnippet.g.cs
@@ -0,0 +1,61 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_DeleteResourceAllowance_sync_flattened_resourceNames]
+ using Google.Cloud.Batch.V1Alpha;
+ using Google.LongRunning;
+ using Google.Protobuf.WellKnownTypes;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for DeleteResourceAllowance
+ ///
+ /// 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 DeleteResourceAllowanceResourceNames()
+ {
+ // Create client
+ BatchServiceClient batchServiceClient = BatchServiceClient.Create();
+ // Initialize request argument(s)
+ ResourceAllowanceName name = ResourceAllowanceName.FromProjectLocationResourceAllowance("[PROJECT]", "[LOCATION]", "[RESOURCE_ALLOWANCE]");
+ // Make the request
+ Operation response = batchServiceClient.DeleteResourceAllowance(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 = batchServiceClient.PollOnceDeleteResourceAllowance(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 batch_v1alpha_generated_BatchService_DeleteResourceAllowance_sync_flattened_resourceNames]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.DeleteResourceAllowanceSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.DeleteResourceAllowanceSnippet.g.cs
new file mode 100755
index 000000000000..bcc76b5e88e1
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.DeleteResourceAllowanceSnippet.g.cs
@@ -0,0 +1,61 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_DeleteResourceAllowance_sync_flattened]
+ using Google.Cloud.Batch.V1Alpha;
+ using Google.LongRunning;
+ using Google.Protobuf.WellKnownTypes;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for DeleteResourceAllowance
+ ///
+ /// 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 DeleteResourceAllowance()
+ {
+ // Create client
+ BatchServiceClient batchServiceClient = BatchServiceClient.Create();
+ // Initialize request argument(s)
+ string name = "projects/[PROJECT]/locations/[LOCATION]/resourceAllowances/[RESOURCE_ALLOWANCE]";
+ // Make the request
+ Operation response = batchServiceClient.DeleteResourceAllowance(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 = batchServiceClient.PollOnceDeleteResourceAllowance(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 batch_v1alpha_generated_BatchService_DeleteResourceAllowance_sync_flattened]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.GetJobAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.GetJobAsyncSnippet.g.cs
new file mode 100755
index 000000000000..3ebd4d3a7bbd
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.GetJobAsyncSnippet.g.cs
@@ -0,0 +1,46 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+#pragma warning disable CS8981
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_GetJob_async_flattened]
+ using System.Threading.Tasks;
+ using gcbv = Google.Cloud.Batch.V1Alpha;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for GetJobAsync
+ ///
+ /// 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 GetJobAsync()
+ {
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ string name = "projects/[PROJECT]/locations/[LOCATION]/jobs/[JOB]";
+ // Make the request
+ gcbv::Job response = await batchServiceClient.GetJobAsync(name);
+ }
+ }
+ // [END batch_v1alpha_generated_BatchService_GetJob_async_flattened]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.GetJobRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.GetJobRequestObjectAsyncSnippet.g.cs
new file mode 100755
index 000000000000..29e4cac58635
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.GetJobRequestObjectAsyncSnippet.g.cs
@@ -0,0 +1,49 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+#pragma warning disable CS8981
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_GetJob_async]
+ using System.Threading.Tasks;
+ using gcbv = Google.Cloud.Batch.V1Alpha;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for GetJobAsync
+ ///
+ /// 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 GetJobRequestObjectAsync()
+ {
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ gcbv::GetJobRequest request = new gcbv::GetJobRequest
+ {
+ JobName = gcbv::JobName.FromProjectLocationJob("[PROJECT]", "[LOCATION]", "[JOB]"),
+ };
+ // Make the request
+ gcbv::Job response = await batchServiceClient.GetJobAsync(request);
+ }
+ }
+ // [END batch_v1alpha_generated_BatchService_GetJob_async]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.GetJobRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.GetJobRequestObjectSnippet.g.cs
new file mode 100755
index 000000000000..af0dc68055e9
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.GetJobRequestObjectSnippet.g.cs
@@ -0,0 +1,46 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_GetJob_sync]
+ using Google.Cloud.Batch.V1Alpha;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for GetJob
+ ///
+ /// 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 GetJobRequestObject()
+ {
+ // Create client
+ BatchServiceClient batchServiceClient = BatchServiceClient.Create();
+ // Initialize request argument(s)
+ GetJobRequest request = new GetJobRequest
+ {
+ JobName = JobName.FromProjectLocationJob("[PROJECT]", "[LOCATION]", "[JOB]"),
+ };
+ // Make the request
+ Job response = batchServiceClient.GetJob(request);
+ }
+ }
+ // [END batch_v1alpha_generated_BatchService_GetJob_sync]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.GetJobResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.GetJobResourceNamesAsyncSnippet.g.cs
new file mode 100755
index 000000000000..a8a7325b27b7
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.GetJobResourceNamesAsyncSnippet.g.cs
@@ -0,0 +1,46 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+#pragma warning disable CS8981
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_GetJob_async_flattened_resourceNames]
+ using System.Threading.Tasks;
+ using gcbv = Google.Cloud.Batch.V1Alpha;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for GetJobAsync
+ ///
+ /// 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 GetJobResourceNamesAsync()
+ {
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ gcbv::JobName name = gcbv::JobName.FromProjectLocationJob("[PROJECT]", "[LOCATION]", "[JOB]");
+ // Make the request
+ gcbv::Job response = await batchServiceClient.GetJobAsync(name);
+ }
+ }
+ // [END batch_v1alpha_generated_BatchService_GetJob_async_flattened_resourceNames]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.GetJobResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.GetJobResourceNamesSnippet.g.cs
new file mode 100755
index 000000000000..580609b391ca
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.GetJobResourceNamesSnippet.g.cs
@@ -0,0 +1,43 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_GetJob_sync_flattened_resourceNames]
+ using Google.Cloud.Batch.V1Alpha;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for GetJob
+ ///
+ /// 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 GetJobResourceNames()
+ {
+ // Create client
+ BatchServiceClient batchServiceClient = BatchServiceClient.Create();
+ // Initialize request argument(s)
+ JobName name = JobName.FromProjectLocationJob("[PROJECT]", "[LOCATION]", "[JOB]");
+ // Make the request
+ Job response = batchServiceClient.GetJob(name);
+ }
+ }
+ // [END batch_v1alpha_generated_BatchService_GetJob_sync_flattened_resourceNames]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.GetJobSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.GetJobSnippet.g.cs
new file mode 100755
index 000000000000..cfb8d1008314
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.GetJobSnippet.g.cs
@@ -0,0 +1,43 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_GetJob_sync_flattened]
+ using Google.Cloud.Batch.V1Alpha;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for GetJob
+ ///
+ /// 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 GetJob()
+ {
+ // Create client
+ BatchServiceClient batchServiceClient = BatchServiceClient.Create();
+ // Initialize request argument(s)
+ string name = "projects/[PROJECT]/locations/[LOCATION]/jobs/[JOB]";
+ // Make the request
+ Job response = batchServiceClient.GetJob(name);
+ }
+ }
+ // [END batch_v1alpha_generated_BatchService_GetJob_sync_flattened]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.GetResourceAllowanceAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.GetResourceAllowanceAsyncSnippet.g.cs
new file mode 100755
index 000000000000..f7e55183e5b7
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.GetResourceAllowanceAsyncSnippet.g.cs
@@ -0,0 +1,46 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+#pragma warning disable CS8981
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_GetResourceAllowance_async_flattened]
+ using System.Threading.Tasks;
+ using gcbv = Google.Cloud.Batch.V1Alpha;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for GetResourceAllowanceAsync
+ ///
+ /// 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 GetResourceAllowanceAsync()
+ {
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ string name = "projects/[PROJECT]/locations/[LOCATION]/resourceAllowances/[RESOURCE_ALLOWANCE]";
+ // Make the request
+ gcbv::ResourceAllowance response = await batchServiceClient.GetResourceAllowanceAsync(name);
+ }
+ }
+ // [END batch_v1alpha_generated_BatchService_GetResourceAllowance_async_flattened]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.GetResourceAllowanceRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.GetResourceAllowanceRequestObjectAsyncSnippet.g.cs
new file mode 100755
index 000000000000..92b1288c33c2
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.GetResourceAllowanceRequestObjectAsyncSnippet.g.cs
@@ -0,0 +1,49 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+#pragma warning disable CS8981
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_GetResourceAllowance_async]
+ using System.Threading.Tasks;
+ using gcbv = Google.Cloud.Batch.V1Alpha;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for GetResourceAllowanceAsync
+ ///
+ /// 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 GetResourceAllowanceRequestObjectAsync()
+ {
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ gcbv::GetResourceAllowanceRequest request = new gcbv::GetResourceAllowanceRequest
+ {
+ ResourceAllowanceName = gcbv::ResourceAllowanceName.FromProjectLocationResourceAllowance("[PROJECT]", "[LOCATION]", "[RESOURCE_ALLOWANCE]"),
+ };
+ // Make the request
+ gcbv::ResourceAllowance response = await batchServiceClient.GetResourceAllowanceAsync(request);
+ }
+ }
+ // [END batch_v1alpha_generated_BatchService_GetResourceAllowance_async]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.GetResourceAllowanceRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.GetResourceAllowanceRequestObjectSnippet.g.cs
new file mode 100755
index 000000000000..39a636f50cf3
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.GetResourceAllowanceRequestObjectSnippet.g.cs
@@ -0,0 +1,46 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_GetResourceAllowance_sync]
+ using Google.Cloud.Batch.V1Alpha;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for GetResourceAllowance
+ ///
+ /// 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 GetResourceAllowanceRequestObject()
+ {
+ // Create client
+ BatchServiceClient batchServiceClient = BatchServiceClient.Create();
+ // Initialize request argument(s)
+ GetResourceAllowanceRequest request = new GetResourceAllowanceRequest
+ {
+ ResourceAllowanceName = ResourceAllowanceName.FromProjectLocationResourceAllowance("[PROJECT]", "[LOCATION]", "[RESOURCE_ALLOWANCE]"),
+ };
+ // Make the request
+ ResourceAllowance response = batchServiceClient.GetResourceAllowance(request);
+ }
+ }
+ // [END batch_v1alpha_generated_BatchService_GetResourceAllowance_sync]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.GetResourceAllowanceResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.GetResourceAllowanceResourceNamesAsyncSnippet.g.cs
new file mode 100755
index 000000000000..1db220b06e3e
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.GetResourceAllowanceResourceNamesAsyncSnippet.g.cs
@@ -0,0 +1,46 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+#pragma warning disable CS8981
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_GetResourceAllowance_async_flattened_resourceNames]
+ using System.Threading.Tasks;
+ using gcbv = Google.Cloud.Batch.V1Alpha;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for GetResourceAllowanceAsync
+ ///
+ /// 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 GetResourceAllowanceResourceNamesAsync()
+ {
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ gcbv::ResourceAllowanceName name = gcbv::ResourceAllowanceName.FromProjectLocationResourceAllowance("[PROJECT]", "[LOCATION]", "[RESOURCE_ALLOWANCE]");
+ // Make the request
+ gcbv::ResourceAllowance response = await batchServiceClient.GetResourceAllowanceAsync(name);
+ }
+ }
+ // [END batch_v1alpha_generated_BatchService_GetResourceAllowance_async_flattened_resourceNames]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.GetResourceAllowanceResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.GetResourceAllowanceResourceNamesSnippet.g.cs
new file mode 100755
index 000000000000..b68a47d62c70
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.GetResourceAllowanceResourceNamesSnippet.g.cs
@@ -0,0 +1,43 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_GetResourceAllowance_sync_flattened_resourceNames]
+ using Google.Cloud.Batch.V1Alpha;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for GetResourceAllowance
+ ///
+ /// 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 GetResourceAllowanceResourceNames()
+ {
+ // Create client
+ BatchServiceClient batchServiceClient = BatchServiceClient.Create();
+ // Initialize request argument(s)
+ ResourceAllowanceName name = ResourceAllowanceName.FromProjectLocationResourceAllowance("[PROJECT]", "[LOCATION]", "[RESOURCE_ALLOWANCE]");
+ // Make the request
+ ResourceAllowance response = batchServiceClient.GetResourceAllowance(name);
+ }
+ }
+ // [END batch_v1alpha_generated_BatchService_GetResourceAllowance_sync_flattened_resourceNames]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.GetResourceAllowanceSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.GetResourceAllowanceSnippet.g.cs
new file mode 100755
index 000000000000..c40e928eed6b
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.GetResourceAllowanceSnippet.g.cs
@@ -0,0 +1,43 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_GetResourceAllowance_sync_flattened]
+ using Google.Cloud.Batch.V1Alpha;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for GetResourceAllowance
+ ///
+ /// 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 GetResourceAllowance()
+ {
+ // Create client
+ BatchServiceClient batchServiceClient = BatchServiceClient.Create();
+ // Initialize request argument(s)
+ string name = "projects/[PROJECT]/locations/[LOCATION]/resourceAllowances/[RESOURCE_ALLOWANCE]";
+ // Make the request
+ ResourceAllowance response = batchServiceClient.GetResourceAllowance(name);
+ }
+ }
+ // [END batch_v1alpha_generated_BatchService_GetResourceAllowance_sync_flattened]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.GetTaskAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.GetTaskAsyncSnippet.g.cs
new file mode 100755
index 000000000000..aaac879781f3
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.GetTaskAsyncSnippet.g.cs
@@ -0,0 +1,46 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+#pragma warning disable CS8981
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_GetTask_async_flattened]
+ using System.Threading.Tasks;
+ using gcbv = Google.Cloud.Batch.V1Alpha;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for GetTaskAsync
+ ///
+ /// 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 GetTaskAsync()
+ {
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ string name = "projects/[PROJECT]/locations/[LOCATION]/jobs/[JOB]/taskGroups/[TASK_GROUP]/tasks/[TASK]";
+ // Make the request
+ gcbv::Task response = await batchServiceClient.GetTaskAsync(name);
+ }
+ }
+ // [END batch_v1alpha_generated_BatchService_GetTask_async_flattened]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.GetTaskRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.GetTaskRequestObjectAsyncSnippet.g.cs
new file mode 100755
index 000000000000..52f0e80c2d15
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.GetTaskRequestObjectAsyncSnippet.g.cs
@@ -0,0 +1,49 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+#pragma warning disable CS8981
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_GetTask_async]
+ using System.Threading.Tasks;
+ using gcbv = Google.Cloud.Batch.V1Alpha;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for GetTaskAsync
+ ///
+ /// 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 GetTaskRequestObjectAsync()
+ {
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ gcbv::GetTaskRequest request = new gcbv::GetTaskRequest
+ {
+ TaskName = gcbv::TaskName.FromProjectLocationJobTaskGroupTask("[PROJECT]", "[LOCATION]", "[JOB]", "[TASK_GROUP]", "[TASK]"),
+ };
+ // Make the request
+ gcbv::Task response = await batchServiceClient.GetTaskAsync(request);
+ }
+ }
+ // [END batch_v1alpha_generated_BatchService_GetTask_async]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.GetTaskRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.GetTaskRequestObjectSnippet.g.cs
new file mode 100755
index 000000000000..1f9656e5ffb7
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.GetTaskRequestObjectSnippet.g.cs
@@ -0,0 +1,46 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_GetTask_sync]
+ using Google.Cloud.Batch.V1Alpha;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for GetTask
+ ///
+ /// 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 GetTaskRequestObject()
+ {
+ // Create client
+ BatchServiceClient batchServiceClient = BatchServiceClient.Create();
+ // Initialize request argument(s)
+ GetTaskRequest request = new GetTaskRequest
+ {
+ TaskName = TaskName.FromProjectLocationJobTaskGroupTask("[PROJECT]", "[LOCATION]", "[JOB]", "[TASK_GROUP]", "[TASK]"),
+ };
+ // Make the request
+ Task response = batchServiceClient.GetTask(request);
+ }
+ }
+ // [END batch_v1alpha_generated_BatchService_GetTask_sync]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.GetTaskResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.GetTaskResourceNamesAsyncSnippet.g.cs
new file mode 100755
index 000000000000..ff922b2c84ae
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.GetTaskResourceNamesAsyncSnippet.g.cs
@@ -0,0 +1,46 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+#pragma warning disable CS8981
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_GetTask_async_flattened_resourceNames]
+ using System.Threading.Tasks;
+ using gcbv = Google.Cloud.Batch.V1Alpha;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for GetTaskAsync
+ ///
+ /// 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 GetTaskResourceNamesAsync()
+ {
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ gcbv::TaskName name = gcbv::TaskName.FromProjectLocationJobTaskGroupTask("[PROJECT]", "[LOCATION]", "[JOB]", "[TASK_GROUP]", "[TASK]");
+ // Make the request
+ gcbv::Task response = await batchServiceClient.GetTaskAsync(name);
+ }
+ }
+ // [END batch_v1alpha_generated_BatchService_GetTask_async_flattened_resourceNames]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.GetTaskResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.GetTaskResourceNamesSnippet.g.cs
new file mode 100755
index 000000000000..8e8b69ce2ae0
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.GetTaskResourceNamesSnippet.g.cs
@@ -0,0 +1,43 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_GetTask_sync_flattened_resourceNames]
+ using Google.Cloud.Batch.V1Alpha;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for GetTask
+ ///
+ /// 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 GetTaskResourceNames()
+ {
+ // Create client
+ BatchServiceClient batchServiceClient = BatchServiceClient.Create();
+ // Initialize request argument(s)
+ TaskName name = TaskName.FromProjectLocationJobTaskGroupTask("[PROJECT]", "[LOCATION]", "[JOB]", "[TASK_GROUP]", "[TASK]");
+ // Make the request
+ Task response = batchServiceClient.GetTask(name);
+ }
+ }
+ // [END batch_v1alpha_generated_BatchService_GetTask_sync_flattened_resourceNames]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.GetTaskSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.GetTaskSnippet.g.cs
new file mode 100755
index 000000000000..897147732763
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.GetTaskSnippet.g.cs
@@ -0,0 +1,43 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_GetTask_sync_flattened]
+ using Google.Cloud.Batch.V1Alpha;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for GetTask
+ ///
+ /// 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 GetTask()
+ {
+ // Create client
+ BatchServiceClient batchServiceClient = BatchServiceClient.Create();
+ // Initialize request argument(s)
+ string name = "projects/[PROJECT]/locations/[LOCATION]/jobs/[JOB]/taskGroups/[TASK_GROUP]/tasks/[TASK]";
+ // Make the request
+ Task response = batchServiceClient.GetTask(name);
+ }
+ }
+ // [END batch_v1alpha_generated_BatchService_GetTask_sync_flattened]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.ListJobsAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.ListJobsAsyncSnippet.g.cs
new file mode 100755
index 000000000000..e3ff07ecdc8f
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.ListJobsAsyncSnippet.g.cs
@@ -0,0 +1,81 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+#pragma warning disable CS8981
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_ListJobs_async_flattened]
+ using Google.Api.Gax;
+ using System;
+ using System.Linq;
+ using System.Threading.Tasks;
+ using gcbv = Google.Cloud.Batch.V1Alpha;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for ListJobsAsync
+ ///
+ /// 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 ListJobsAsync()
+ {
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ string parent = "";
+ // Make the request
+ PagedAsyncEnumerable response = batchServiceClient.ListJobsAsync(parent);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ await response.ForEachAsync((gcbv::Job item) =>
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ });
+
+ // Or iterate over pages (of server-defined size), performing one RPC per page
+ await response.AsRawResponses().ForEachAsync((gcbv::ListJobsResponse page) =>
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (gcbv::Job 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 (gcbv::Job 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 batch_v1alpha_generated_BatchService_ListJobs_async_flattened]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.ListJobsRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.ListJobsRequestObjectAsyncSnippet.g.cs
new file mode 100755
index 000000000000..2af9fe59f613
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.ListJobsRequestObjectAsyncSnippet.g.cs
@@ -0,0 +1,86 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+#pragma warning disable CS8981
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_ListJobs_async]
+ using Google.Api.Gax;
+ using System;
+ using System.Linq;
+ using System.Threading.Tasks;
+ using gcbv = Google.Cloud.Batch.V1Alpha;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for ListJobsAsync
+ ///
+ /// 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 ListJobsRequestObjectAsync()
+ {
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ gcbv::ListJobsRequest request = new gcbv::ListJobsRequest
+ {
+ Parent = "",
+ Filter = "",
+ OrderBy = "",
+ };
+ // Make the request
+ PagedAsyncEnumerable response = batchServiceClient.ListJobsAsync(request);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ await response.ForEachAsync((gcbv::Job item) =>
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ });
+
+ // Or iterate over pages (of server-defined size), performing one RPC per page
+ await response.AsRawResponses().ForEachAsync((gcbv::ListJobsResponse page) =>
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (gcbv::Job 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 (gcbv::Job 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 batch_v1alpha_generated_BatchService_ListJobs_async]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.ListJobsRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.ListJobsRequestObjectSnippet.g.cs
new file mode 100755
index 000000000000..5aa357de152a
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.ListJobsRequestObjectSnippet.g.cs
@@ -0,0 +1,82 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_ListJobs_sync]
+ using Google.Api.Gax;
+ using Google.Cloud.Batch.V1Alpha;
+ using System;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for ListJobs
+ ///
+ /// 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 ListJobsRequestObject()
+ {
+ // Create client
+ BatchServiceClient batchServiceClient = BatchServiceClient.Create();
+ // Initialize request argument(s)
+ ListJobsRequest request = new ListJobsRequest
+ {
+ Parent = "",
+ Filter = "",
+ OrderBy = "",
+ };
+ // Make the request
+ PagedEnumerable response = batchServiceClient.ListJobs(request);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ foreach (Job 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 (ListJobsResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (Job 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 (Job 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 batch_v1alpha_generated_BatchService_ListJobs_sync]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.ListJobsSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.ListJobsSnippet.g.cs
new file mode 100755
index 000000000000..df0fd3e5e203
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.ListJobsSnippet.g.cs
@@ -0,0 +1,77 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_ListJobs_sync_flattened]
+ using Google.Api.Gax;
+ using Google.Cloud.Batch.V1Alpha;
+ using System;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for ListJobs
+ ///
+ /// 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 ListJobs()
+ {
+ // Create client
+ BatchServiceClient batchServiceClient = BatchServiceClient.Create();
+ // Initialize request argument(s)
+ string parent = "";
+ // Make the request
+ PagedEnumerable response = batchServiceClient.ListJobs(parent);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ foreach (Job 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 (ListJobsResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (Job 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 (Job 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 batch_v1alpha_generated_BatchService_ListJobs_sync_flattened]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.ListResourceAllowancesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.ListResourceAllowancesAsyncSnippet.g.cs
new file mode 100755
index 000000000000..a5da403b379c
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.ListResourceAllowancesAsyncSnippet.g.cs
@@ -0,0 +1,81 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+#pragma warning disable CS8981
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_ListResourceAllowances_async_flattened]
+ using Google.Api.Gax;
+ using System;
+ using System.Linq;
+ using System.Threading.Tasks;
+ using gcbv = Google.Cloud.Batch.V1Alpha;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for ListResourceAllowancesAsync
+ ///
+ /// 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 ListResourceAllowancesAsync()
+ {
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ string parent = "projects/[PROJECT]/locations/[LOCATION]";
+ // Make the request
+ PagedAsyncEnumerable response = batchServiceClient.ListResourceAllowancesAsync(parent);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ await response.ForEachAsync((gcbv::ResourceAllowance item) =>
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ });
+
+ // Or iterate over pages (of server-defined size), performing one RPC per page
+ await response.AsRawResponses().ForEachAsync((gcbv::ListResourceAllowancesResponse page) =>
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (gcbv::ResourceAllowance 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 (gcbv::ResourceAllowance 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 batch_v1alpha_generated_BatchService_ListResourceAllowances_async_flattened]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.ListResourceAllowancesRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.ListResourceAllowancesRequestObjectAsyncSnippet.g.cs
new file mode 100755
index 000000000000..dacc75422f9d
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.ListResourceAllowancesRequestObjectAsyncSnippet.g.cs
@@ -0,0 +1,85 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+#pragma warning disable CS8981
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_ListResourceAllowances_async]
+ using Google.Api.Gax;
+ using Google.Api.Gax.ResourceNames;
+ using System;
+ using System.Linq;
+ using System.Threading.Tasks;
+ using gcbv = Google.Cloud.Batch.V1Alpha;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for ListResourceAllowancesAsync
+ ///
+ /// 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 ListResourceAllowancesRequestObjectAsync()
+ {
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ gcbv::ListResourceAllowancesRequest request = new gcbv::ListResourceAllowancesRequest
+ {
+ ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
+ };
+ // Make the request
+ PagedAsyncEnumerable response = batchServiceClient.ListResourceAllowancesAsync(request);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ await response.ForEachAsync((gcbv::ResourceAllowance item) =>
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ });
+
+ // Or iterate over pages (of server-defined size), performing one RPC per page
+ await response.AsRawResponses().ForEachAsync((gcbv::ListResourceAllowancesResponse page) =>
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (gcbv::ResourceAllowance 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 (gcbv::ResourceAllowance 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 batch_v1alpha_generated_BatchService_ListResourceAllowances_async]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.ListResourceAllowancesRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.ListResourceAllowancesRequestObjectSnippet.g.cs
new file mode 100755
index 000000000000..b278837ca885
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.ListResourceAllowancesRequestObjectSnippet.g.cs
@@ -0,0 +1,81 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_ListResourceAllowances_sync]
+ using Google.Api.Gax;
+ using Google.Api.Gax.ResourceNames;
+ using Google.Cloud.Batch.V1Alpha;
+ using System;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for ListResourceAllowances
+ ///
+ /// 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 ListResourceAllowancesRequestObject()
+ {
+ // Create client
+ BatchServiceClient batchServiceClient = BatchServiceClient.Create();
+ // Initialize request argument(s)
+ ListResourceAllowancesRequest request = new ListResourceAllowancesRequest
+ {
+ ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
+ };
+ // Make the request
+ PagedEnumerable response = batchServiceClient.ListResourceAllowances(request);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ foreach (ResourceAllowance 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 (ListResourceAllowancesResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (ResourceAllowance 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 (ResourceAllowance 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 batch_v1alpha_generated_BatchService_ListResourceAllowances_sync]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.ListResourceAllowancesResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.ListResourceAllowancesResourceNamesAsyncSnippet.g.cs
new file mode 100755
index 000000000000..4617a354ef80
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.ListResourceAllowancesResourceNamesAsyncSnippet.g.cs
@@ -0,0 +1,82 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+#pragma warning disable CS8981
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_ListResourceAllowances_async_flattened_resourceNames]
+ using Google.Api.Gax;
+ using Google.Api.Gax.ResourceNames;
+ using System;
+ using System.Linq;
+ using System.Threading.Tasks;
+ using gcbv = Google.Cloud.Batch.V1Alpha;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for ListResourceAllowancesAsync
+ ///
+ /// 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 ListResourceAllowancesResourceNamesAsync()
+ {
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
+ // Make the request
+ PagedAsyncEnumerable response = batchServiceClient.ListResourceAllowancesAsync(parent);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ await response.ForEachAsync((gcbv::ResourceAllowance item) =>
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ });
+
+ // Or iterate over pages (of server-defined size), performing one RPC per page
+ await response.AsRawResponses().ForEachAsync((gcbv::ListResourceAllowancesResponse page) =>
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (gcbv::ResourceAllowance 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 (gcbv::ResourceAllowance 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 batch_v1alpha_generated_BatchService_ListResourceAllowances_async_flattened_resourceNames]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.ListResourceAllowancesResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.ListResourceAllowancesResourceNamesSnippet.g.cs
new file mode 100755
index 000000000000..822ba92f033e
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.ListResourceAllowancesResourceNamesSnippet.g.cs
@@ -0,0 +1,78 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_ListResourceAllowances_sync_flattened_resourceNames]
+ using Google.Api.Gax;
+ using Google.Api.Gax.ResourceNames;
+ using Google.Cloud.Batch.V1Alpha;
+ using System;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for ListResourceAllowances
+ ///
+ /// 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 ListResourceAllowancesResourceNames()
+ {
+ // Create client
+ BatchServiceClient batchServiceClient = BatchServiceClient.Create();
+ // Initialize request argument(s)
+ LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
+ // Make the request
+ PagedEnumerable response = batchServiceClient.ListResourceAllowances(parent);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ foreach (ResourceAllowance 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 (ListResourceAllowancesResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (ResourceAllowance 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 (ResourceAllowance 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 batch_v1alpha_generated_BatchService_ListResourceAllowances_sync_flattened_resourceNames]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.ListResourceAllowancesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.ListResourceAllowancesSnippet.g.cs
new file mode 100755
index 000000000000..cfeda2110fb1
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.ListResourceAllowancesSnippet.g.cs
@@ -0,0 +1,77 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_ListResourceAllowances_sync_flattened]
+ using Google.Api.Gax;
+ using Google.Cloud.Batch.V1Alpha;
+ using System;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for ListResourceAllowances
+ ///
+ /// 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 ListResourceAllowances()
+ {
+ // Create client
+ BatchServiceClient batchServiceClient = BatchServiceClient.Create();
+ // Initialize request argument(s)
+ string parent = "projects/[PROJECT]/locations/[LOCATION]";
+ // Make the request
+ PagedEnumerable response = batchServiceClient.ListResourceAllowances(parent);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ foreach (ResourceAllowance 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 (ListResourceAllowancesResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (ResourceAllowance 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 (ResourceAllowance 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 batch_v1alpha_generated_BatchService_ListResourceAllowances_sync_flattened]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.ListTasksAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.ListTasksAsyncSnippet.g.cs
new file mode 100755
index 000000000000..61b82da24075
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.ListTasksAsyncSnippet.g.cs
@@ -0,0 +1,81 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+#pragma warning disable CS8981
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_ListTasks_async_flattened]
+ using Google.Api.Gax;
+ using System;
+ using System.Linq;
+ using System.Threading.Tasks;
+ using gcbv = Google.Cloud.Batch.V1Alpha;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for ListTasksAsync
+ ///
+ /// 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 ListTasksAsync()
+ {
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ string parent = "projects/[PROJECT]/locations/[LOCATION]/jobs/[JOB]/taskGroups/[TASK_GROUP]";
+ // Make the request
+ PagedAsyncEnumerable response = batchServiceClient.ListTasksAsync(parent);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ await response.ForEachAsync((gcbv::Task item) =>
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ });
+
+ // Or iterate over pages (of server-defined size), performing one RPC per page
+ await response.AsRawResponses().ForEachAsync((gcbv::ListTasksResponse page) =>
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (gcbv::Task 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 (gcbv::Task 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 batch_v1alpha_generated_BatchService_ListTasks_async_flattened]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.ListTasksRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.ListTasksRequestObjectAsyncSnippet.g.cs
new file mode 100755
index 000000000000..0994e5baf878
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.ListTasksRequestObjectAsyncSnippet.g.cs
@@ -0,0 +1,86 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+#pragma warning disable CS8981
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_ListTasks_async]
+ using Google.Api.Gax;
+ using System;
+ using System.Linq;
+ using System.Threading.Tasks;
+ using gcbv = Google.Cloud.Batch.V1Alpha;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for ListTasksAsync
+ ///
+ /// 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 ListTasksRequestObjectAsync()
+ {
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ gcbv::ListTasksRequest request = new gcbv::ListTasksRequest
+ {
+ ParentAsTaskGroupName = gcbv::TaskGroupName.FromProjectLocationJobTaskGroup("[PROJECT]", "[LOCATION]", "[JOB]", "[TASK_GROUP]"),
+ Filter = "",
+ OrderBy = "",
+ };
+ // Make the request
+ PagedAsyncEnumerable response = batchServiceClient.ListTasksAsync(request);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ await response.ForEachAsync((gcbv::Task item) =>
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ });
+
+ // Or iterate over pages (of server-defined size), performing one RPC per page
+ await response.AsRawResponses().ForEachAsync((gcbv::ListTasksResponse page) =>
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (gcbv::Task 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 (gcbv::Task 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 batch_v1alpha_generated_BatchService_ListTasks_async]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.ListTasksRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.ListTasksRequestObjectSnippet.g.cs
new file mode 100755
index 000000000000..5e7d7b9658f4
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.ListTasksRequestObjectSnippet.g.cs
@@ -0,0 +1,82 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_ListTasks_sync]
+ using Google.Api.Gax;
+ using Google.Cloud.Batch.V1Alpha;
+ using System;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for ListTasks
+ ///
+ /// 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 ListTasksRequestObject()
+ {
+ // Create client
+ BatchServiceClient batchServiceClient = BatchServiceClient.Create();
+ // Initialize request argument(s)
+ ListTasksRequest request = new ListTasksRequest
+ {
+ ParentAsTaskGroupName = TaskGroupName.FromProjectLocationJobTaskGroup("[PROJECT]", "[LOCATION]", "[JOB]", "[TASK_GROUP]"),
+ Filter = "",
+ OrderBy = "",
+ };
+ // Make the request
+ PagedEnumerable response = batchServiceClient.ListTasks(request);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ foreach (Task 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 (ListTasksResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (Task 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 (Task 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 batch_v1alpha_generated_BatchService_ListTasks_sync]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.ListTasksResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.ListTasksResourceNamesAsyncSnippet.g.cs
new file mode 100755
index 000000000000..fdf3c10b2d6f
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.ListTasksResourceNamesAsyncSnippet.g.cs
@@ -0,0 +1,81 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+#pragma warning disable CS8981
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_ListTasks_async_flattened_resourceNames]
+ using Google.Api.Gax;
+ using System;
+ using System.Linq;
+ using System.Threading.Tasks;
+ using gcbv = Google.Cloud.Batch.V1Alpha;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for ListTasksAsync
+ ///
+ /// 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 ListTasksResourceNamesAsync()
+ {
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ gcbv::TaskGroupName parent = gcbv::TaskGroupName.FromProjectLocationJobTaskGroup("[PROJECT]", "[LOCATION]", "[JOB]", "[TASK_GROUP]");
+ // Make the request
+ PagedAsyncEnumerable response = batchServiceClient.ListTasksAsync(parent);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ await response.ForEachAsync((gcbv::Task item) =>
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ });
+
+ // Or iterate over pages (of server-defined size), performing one RPC per page
+ await response.AsRawResponses().ForEachAsync((gcbv::ListTasksResponse page) =>
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (gcbv::Task 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 (gcbv::Task 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 batch_v1alpha_generated_BatchService_ListTasks_async_flattened_resourceNames]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.ListTasksResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.ListTasksResourceNamesSnippet.g.cs
new file mode 100755
index 000000000000..2b90f8bfc71c
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.ListTasksResourceNamesSnippet.g.cs
@@ -0,0 +1,77 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_ListTasks_sync_flattened_resourceNames]
+ using Google.Api.Gax;
+ using Google.Cloud.Batch.V1Alpha;
+ using System;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for ListTasks
+ ///
+ /// 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 ListTasksResourceNames()
+ {
+ // Create client
+ BatchServiceClient batchServiceClient = BatchServiceClient.Create();
+ // Initialize request argument(s)
+ TaskGroupName parent = TaskGroupName.FromProjectLocationJobTaskGroup("[PROJECT]", "[LOCATION]", "[JOB]", "[TASK_GROUP]");
+ // Make the request
+ PagedEnumerable response = batchServiceClient.ListTasks(parent);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ foreach (Task 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 (ListTasksResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (Task 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 (Task 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 batch_v1alpha_generated_BatchService_ListTasks_sync_flattened_resourceNames]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.ListTasksSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.ListTasksSnippet.g.cs
new file mode 100755
index 000000000000..e3fedd73af64
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.ListTasksSnippet.g.cs
@@ -0,0 +1,77 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_ListTasks_sync_flattened]
+ using Google.Api.Gax;
+ using Google.Cloud.Batch.V1Alpha;
+ using System;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for ListTasks
+ ///
+ /// 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 ListTasks()
+ {
+ // Create client
+ BatchServiceClient batchServiceClient = BatchServiceClient.Create();
+ // Initialize request argument(s)
+ string parent = "projects/[PROJECT]/locations/[LOCATION]/jobs/[JOB]/taskGroups/[TASK_GROUP]";
+ // Make the request
+ PagedEnumerable response = batchServiceClient.ListTasks(parent);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ foreach (Task 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 (ListTasksResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (Task 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 (Task 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 batch_v1alpha_generated_BatchService_ListTasks_sync_flattened]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.UpdateJobAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.UpdateJobAsyncSnippet.g.cs
new file mode 100755
index 000000000000..46584e50d733
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.UpdateJobAsyncSnippet.g.cs
@@ -0,0 +1,48 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+#pragma warning disable CS8981
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_UpdateJob_async_flattened]
+ using Google.Protobuf.WellKnownTypes;
+ using System.Threading.Tasks;
+ using gcbv = Google.Cloud.Batch.V1Alpha;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for UpdateJobAsync
+ ///
+ /// 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 UpdateJobAsync()
+ {
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ gcbv::Job job = new gcbv::Job();
+ FieldMask updateMask = new FieldMask();
+ // Make the request
+ gcbv::Job response = await batchServiceClient.UpdateJobAsync(job, updateMask);
+ }
+ }
+ // [END batch_v1alpha_generated_BatchService_UpdateJob_async_flattened]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.UpdateJobRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.UpdateJobRequestObjectAsyncSnippet.g.cs
new file mode 100755
index 000000000000..a2e1b030fe8f
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.UpdateJobRequestObjectAsyncSnippet.g.cs
@@ -0,0 +1,52 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+#pragma warning disable CS8981
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_UpdateJob_async]
+ using Google.Protobuf.WellKnownTypes;
+ using System.Threading.Tasks;
+ using gcbv = Google.Cloud.Batch.V1Alpha;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for UpdateJobAsync
+ ///
+ /// 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 UpdateJobRequestObjectAsync()
+ {
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ gcbv::UpdateJobRequest request = new gcbv::UpdateJobRequest
+ {
+ Job = new gcbv::Job(),
+ UpdateMask = new FieldMask(),
+ RequestId = "",
+ };
+ // Make the request
+ gcbv::Job response = await batchServiceClient.UpdateJobAsync(request);
+ }
+ }
+ // [END batch_v1alpha_generated_BatchService_UpdateJob_async]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.UpdateJobRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.UpdateJobRequestObjectSnippet.g.cs
new file mode 100755
index 000000000000..e0f00286e6c3
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.UpdateJobRequestObjectSnippet.g.cs
@@ -0,0 +1,49 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_UpdateJob_sync]
+ using Google.Cloud.Batch.V1Alpha;
+ using Google.Protobuf.WellKnownTypes;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for UpdateJob
+ ///
+ /// 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 UpdateJobRequestObject()
+ {
+ // Create client
+ BatchServiceClient batchServiceClient = BatchServiceClient.Create();
+ // Initialize request argument(s)
+ UpdateJobRequest request = new UpdateJobRequest
+ {
+ Job = new Job(),
+ UpdateMask = new FieldMask(),
+ RequestId = "",
+ };
+ // Make the request
+ Job response = batchServiceClient.UpdateJob(request);
+ }
+ }
+ // [END batch_v1alpha_generated_BatchService_UpdateJob_sync]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.UpdateJobSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.UpdateJobSnippet.g.cs
new file mode 100755
index 000000000000..3e2beb82af47
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.UpdateJobSnippet.g.cs
@@ -0,0 +1,45 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_UpdateJob_sync_flattened]
+ using Google.Cloud.Batch.V1Alpha;
+ using Google.Protobuf.WellKnownTypes;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for UpdateJob
+ ///
+ /// 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 UpdateJob()
+ {
+ // Create client
+ BatchServiceClient batchServiceClient = BatchServiceClient.Create();
+ // Initialize request argument(s)
+ Job job = new Job();
+ FieldMask updateMask = new FieldMask();
+ // Make the request
+ Job response = batchServiceClient.UpdateJob(job, updateMask);
+ }
+ }
+ // [END batch_v1alpha_generated_BatchService_UpdateJob_sync_flattened]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.UpdateResourceAllowanceAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.UpdateResourceAllowanceAsyncSnippet.g.cs
new file mode 100755
index 000000000000..fd02f7d02acd
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.UpdateResourceAllowanceAsyncSnippet.g.cs
@@ -0,0 +1,48 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+#pragma warning disable CS8981
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_UpdateResourceAllowance_async_flattened]
+ using Google.Protobuf.WellKnownTypes;
+ using System.Threading.Tasks;
+ using gcbv = Google.Cloud.Batch.V1Alpha;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for UpdateResourceAllowanceAsync
+ ///
+ /// 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 UpdateResourceAllowanceAsync()
+ {
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ gcbv::ResourceAllowance resourceAllowance = new gcbv::ResourceAllowance();
+ FieldMask updateMask = new FieldMask();
+ // Make the request
+ gcbv::ResourceAllowance response = await batchServiceClient.UpdateResourceAllowanceAsync(resourceAllowance, updateMask);
+ }
+ }
+ // [END batch_v1alpha_generated_BatchService_UpdateResourceAllowance_async_flattened]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.UpdateResourceAllowanceRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.UpdateResourceAllowanceRequestObjectAsyncSnippet.g.cs
new file mode 100755
index 000000000000..214ad9e9d4e8
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.UpdateResourceAllowanceRequestObjectAsyncSnippet.g.cs
@@ -0,0 +1,52 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+#pragma warning disable CS8981
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_UpdateResourceAllowance_async]
+ using Google.Protobuf.WellKnownTypes;
+ using System.Threading.Tasks;
+ using gcbv = Google.Cloud.Batch.V1Alpha;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for UpdateResourceAllowanceAsync
+ ///
+ /// 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 UpdateResourceAllowanceRequestObjectAsync()
+ {
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ gcbv::UpdateResourceAllowanceRequest request = new gcbv::UpdateResourceAllowanceRequest
+ {
+ ResourceAllowance = new gcbv::ResourceAllowance(),
+ UpdateMask = new FieldMask(),
+ RequestId = "",
+ };
+ // Make the request
+ gcbv::ResourceAllowance response = await batchServiceClient.UpdateResourceAllowanceAsync(request);
+ }
+ }
+ // [END batch_v1alpha_generated_BatchService_UpdateResourceAllowance_async]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.UpdateResourceAllowanceRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.UpdateResourceAllowanceRequestObjectSnippet.g.cs
new file mode 100755
index 000000000000..2cf9474705c7
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.UpdateResourceAllowanceRequestObjectSnippet.g.cs
@@ -0,0 +1,49 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_UpdateResourceAllowance_sync]
+ using Google.Cloud.Batch.V1Alpha;
+ using Google.Protobuf.WellKnownTypes;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for UpdateResourceAllowance
+ ///
+ /// 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 UpdateResourceAllowanceRequestObject()
+ {
+ // Create client
+ BatchServiceClient batchServiceClient = BatchServiceClient.Create();
+ // Initialize request argument(s)
+ UpdateResourceAllowanceRequest request = new UpdateResourceAllowanceRequest
+ {
+ ResourceAllowance = new ResourceAllowance(),
+ UpdateMask = new FieldMask(),
+ RequestId = "",
+ };
+ // Make the request
+ ResourceAllowance response = batchServiceClient.UpdateResourceAllowance(request);
+ }
+ }
+ // [END batch_v1alpha_generated_BatchService_UpdateResourceAllowance_sync]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.UpdateResourceAllowanceSnippet.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.UpdateResourceAllowanceSnippet.g.cs
new file mode 100755
index 000000000000..f968d63d8ff0
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/BatchServiceClient.UpdateResourceAllowanceSnippet.g.cs
@@ -0,0 +1,45 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+namespace GoogleCSharpSnippets
+{
+ // [START batch_v1alpha_generated_BatchService_UpdateResourceAllowance_sync_flattened]
+ using Google.Cloud.Batch.V1Alpha;
+ using Google.Protobuf.WellKnownTypes;
+
+ public sealed partial class GeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for UpdateResourceAllowance
+ ///
+ /// 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 UpdateResourceAllowance()
+ {
+ // Create client
+ BatchServiceClient batchServiceClient = BatchServiceClient.Create();
+ // Initialize request argument(s)
+ ResourceAllowance resourceAllowance = new ResourceAllowance();
+ FieldMask updateMask = new FieldMask();
+ // Make the request
+ ResourceAllowance response = batchServiceClient.UpdateResourceAllowance(resourceAllowance, updateMask);
+ }
+ }
+ // [END batch_v1alpha_generated_BatchService_UpdateResourceAllowance_sync_flattened]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/Google.Cloud.Batch.V1Alpha.GeneratedSnippets.csproj b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/Google.Cloud.Batch.V1Alpha.GeneratedSnippets.csproj
new file mode 100755
index 000000000000..7b2c051e501a
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/Google.Cloud.Batch.V1Alpha.GeneratedSnippets.csproj
@@ -0,0 +1,15 @@
+
+
+
+
+ net6.0;net462
+ latest
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/snippet_metadata_google.cloud.batch.v1alpha.json b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/snippet_metadata_google.cloud.batch.v1alpha.json
new file mode 100755
index 000000000000..293b46b5257a
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.GeneratedSnippets/snippet_metadata_google.cloud.batch.v1alpha.json
@@ -0,0 +1,3525 @@
+{
+ "clientLibrary": {
+ "name": "Google.Cloud.Batch.V1Alpha",
+ "language": "C_SHARP",
+ "apis": [
+ {
+ "id": "google.cloud.batch.v1alpha",
+ "version": "v1alpha"
+ }
+ ]
+ },
+ "snippets": [
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_CreateJob_sync",
+ "title": "CreateJobRequestObject",
+ "description": "Snippet for CreateJob",
+ "file": "BatchServiceClient.CreateJobRequestObjectSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "CreateJob",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.CreateJob",
+ "parameters": [
+ {
+ "type": "Google.Cloud.Batch.V1Alpha.CreateJobRequest",
+ "name": "request"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.Cloud.Batch.V1Alpha.Job",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "CreateJob",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.CreateJob",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "canonical": true,
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 48,
+ "type": "FULL"
+ },
+ {
+ "start": 35,
+ "end": 46,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_CreateJob_async",
+ "title": "CreateJobRequestObjectAsync",
+ "description": "Snippet for CreateJobAsync",
+ "file": "BatchServiceClient.CreateJobRequestObjectAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "CreateJobAsync",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.CreateJobAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "Google.Cloud.Batch.V1Alpha.CreateJobRequest",
+ "name": "request"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "CreateJob",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.CreateJob",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "canonical": true,
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 22,
+ "end": 51,
+ "type": "FULL"
+ },
+ {
+ "start": 38,
+ "end": 49,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_CreateJob_sync_flattened",
+ "title": "CreateJob",
+ "description": "Snippet for CreateJob",
+ "file": "BatchServiceClient.CreateJobSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "CreateJob",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.CreateJob",
+ "parameters": [
+ {
+ "type": "System.String",
+ "name": "parent"
+ },
+ {
+ "type": "Google.Cloud.Batch.V1Alpha.Job",
+ "name": "job"
+ },
+ {
+ "type": "System.String",
+ "name": "jobId"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.Cloud.Batch.V1Alpha.Job",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "CreateJob",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.CreateJob",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 43,
+ "type": "FULL"
+ },
+ {
+ "start": 34,
+ "end": 41,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_CreateJob_async_flattened",
+ "title": "CreateJobAsync",
+ "description": "Snippet for CreateJobAsync",
+ "file": "BatchServiceClient.CreateJobAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "CreateJobAsync",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.CreateJobAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "System.String",
+ "name": "parent"
+ },
+ {
+ "type": "Google.Cloud.Batch.V1Alpha.Job",
+ "name": "job"
+ },
+ {
+ "type": "System.String",
+ "name": "jobId"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "CreateJob",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.CreateJob",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 22,
+ "end": 46,
+ "type": "FULL"
+ },
+ {
+ "start": 37,
+ "end": 44,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_CreateJob_sync_flattened_resourceNames",
+ "title": "CreateJobResourceNames",
+ "description": "Snippet for CreateJob",
+ "file": "BatchServiceClient.CreateJobResourceNamesSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "CreateJob",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.CreateJob",
+ "parameters": [
+ {
+ "type": "Google.Api.Gax.ResourceNames.LocationName",
+ "name": "parent"
+ },
+ {
+ "type": "Google.Cloud.Batch.V1Alpha.Job",
+ "name": "job"
+ },
+ {
+ "type": "System.String",
+ "name": "jobId"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.Cloud.Batch.V1Alpha.Job",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "CreateJob",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.CreateJob",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 44,
+ "type": "FULL"
+ },
+ {
+ "start": 35,
+ "end": 42,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_CreateJob_async_flattened_resourceNames",
+ "title": "CreateJobResourceNamesAsync",
+ "description": "Snippet for CreateJobAsync",
+ "file": "BatchServiceClient.CreateJobResourceNamesAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "CreateJobAsync",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.CreateJobAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "Google.Api.Gax.ResourceNames.LocationName",
+ "name": "parent"
+ },
+ {
+ "type": "Google.Cloud.Batch.V1Alpha.Job",
+ "name": "job"
+ },
+ {
+ "type": "System.String",
+ "name": "jobId"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "CreateJob",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.CreateJob",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 22,
+ "end": 47,
+ "type": "FULL"
+ },
+ {
+ "start": 38,
+ "end": 45,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_GetJob_sync",
+ "title": "GetJobRequestObject",
+ "description": "Snippet for GetJob",
+ "file": "BatchServiceClient.GetJobRequestObjectSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "GetJob",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.GetJob",
+ "parameters": [
+ {
+ "type": "Google.Cloud.Batch.V1Alpha.GetJobRequest",
+ "name": "request"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.Cloud.Batch.V1Alpha.Job",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "GetJob",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.GetJob",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "canonical": true,
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 44,
+ "type": "FULL"
+ },
+ {
+ "start": 34,
+ "end": 42,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_GetJob_async",
+ "title": "GetJobRequestObjectAsync",
+ "description": "Snippet for GetJobAsync",
+ "file": "BatchServiceClient.GetJobRequestObjectAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "GetJobAsync",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.GetJobAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "Google.Cloud.Batch.V1Alpha.GetJobRequest",
+ "name": "request"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "GetJob",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.GetJob",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "canonical": true,
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 22,
+ "end": 47,
+ "type": "FULL"
+ },
+ {
+ "start": 37,
+ "end": 45,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_GetJob_sync_flattened",
+ "title": "GetJob",
+ "description": "Snippet for GetJob",
+ "file": "BatchServiceClient.GetJobSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "GetJob",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.GetJob",
+ "parameters": [
+ {
+ "type": "System.String",
+ "name": "name"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.Cloud.Batch.V1Alpha.Job",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "GetJob",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.GetJob",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 41,
+ "type": "FULL"
+ },
+ {
+ "start": 34,
+ "end": 39,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_GetJob_async_flattened",
+ "title": "GetJobAsync",
+ "description": "Snippet for GetJobAsync",
+ "file": "BatchServiceClient.GetJobAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "GetJobAsync",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.GetJobAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "System.String",
+ "name": "name"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "GetJob",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.GetJob",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 22,
+ "end": 44,
+ "type": "FULL"
+ },
+ {
+ "start": 37,
+ "end": 42,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_GetJob_sync_flattened_resourceNames",
+ "title": "GetJobResourceNames",
+ "description": "Snippet for GetJob",
+ "file": "BatchServiceClient.GetJobResourceNamesSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "GetJob",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.GetJob",
+ "parameters": [
+ {
+ "type": "Google.Cloud.Batch.V1Alpha.JobName",
+ "name": "name"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.Cloud.Batch.V1Alpha.Job",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "GetJob",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.GetJob",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 41,
+ "type": "FULL"
+ },
+ {
+ "start": 34,
+ "end": 39,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_GetJob_async_flattened_resourceNames",
+ "title": "GetJobResourceNamesAsync",
+ "description": "Snippet for GetJobAsync",
+ "file": "BatchServiceClient.GetJobResourceNamesAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "GetJobAsync",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.GetJobAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "Google.Cloud.Batch.V1Alpha.JobName",
+ "name": "name"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "GetJob",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.GetJob",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 22,
+ "end": 44,
+ "type": "FULL"
+ },
+ {
+ "start": 37,
+ "end": 42,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_DeleteJob_sync",
+ "title": "DeleteJobRequestObject",
+ "description": "Snippet for DeleteJob",
+ "file": "BatchServiceClient.DeleteJobRequestObjectSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "DeleteJob",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.DeleteJob",
+ "parameters": [
+ {
+ "type": "Google.Cloud.Batch.V1Alpha.DeleteJobRequest",
+ "name": "request"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.LongRunning.Operation",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "DeleteJob",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.DeleteJob",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "canonical": true,
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 64,
+ "type": "FULL"
+ },
+ {
+ "start": 36,
+ "end": 62,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_DeleteJob_async",
+ "title": "DeleteJobRequestObjectAsync",
+ "description": "Snippet for DeleteJobAsync",
+ "file": "BatchServiceClient.DeleteJobRequestObjectAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "DeleteJobAsync",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.DeleteJobAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "Google.Cloud.Batch.V1Alpha.DeleteJobRequest",
+ "name": "request"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task>",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "DeleteJob",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.DeleteJob",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "canonical": true,
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 22,
+ "end": 67,
+ "type": "FULL"
+ },
+ {
+ "start": 39,
+ "end": 65,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_DeleteJob_sync_flattened",
+ "title": "DeleteJob",
+ "description": "Snippet for DeleteJob",
+ "file": "BatchServiceClient.DeleteJobSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "DeleteJob",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.DeleteJob",
+ "parameters": [
+ {
+ "type": "System.String",
+ "name": "name"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.LongRunning.Operation",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "DeleteJob",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.DeleteJob",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 59,
+ "type": "FULL"
+ },
+ {
+ "start": 36,
+ "end": 57,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_DeleteJob_async_flattened",
+ "title": "DeleteJobAsync",
+ "description": "Snippet for DeleteJobAsync",
+ "file": "BatchServiceClient.DeleteJobAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "DeleteJobAsync",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.DeleteJobAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "System.String",
+ "name": "name"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task>",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "DeleteJob",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.DeleteJob",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 22,
+ "end": 62,
+ "type": "FULL"
+ },
+ {
+ "start": 39,
+ "end": 60,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_CancelJob_sync",
+ "title": "CancelJobRequestObject",
+ "description": "Snippet for CancelJob",
+ "file": "BatchServiceClient.CancelJobRequestObjectSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "CancelJob",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.CancelJob",
+ "parameters": [
+ {
+ "type": "Google.Cloud.Batch.V1Alpha.CancelJobRequest",
+ "name": "request"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.LongRunning.Operation",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "CancelJob",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.CancelJob",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "canonical": true,
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 62,
+ "type": "FULL"
+ },
+ {
+ "start": 35,
+ "end": 60,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_CancelJob_async",
+ "title": "CancelJobRequestObjectAsync",
+ "description": "Snippet for CancelJobAsync",
+ "file": "BatchServiceClient.CancelJobRequestObjectAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "CancelJobAsync",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.CancelJobAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "Google.Cloud.Batch.V1Alpha.CancelJobRequest",
+ "name": "request"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task>",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "CancelJob",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.CancelJob",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "canonical": true,
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 22,
+ "end": 65,
+ "type": "FULL"
+ },
+ {
+ "start": 38,
+ "end": 63,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_CancelJob_sync_flattened",
+ "title": "CancelJob",
+ "description": "Snippet for CancelJob",
+ "file": "BatchServiceClient.CancelJobSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "CancelJob",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.CancelJob",
+ "parameters": [
+ {
+ "type": "System.String",
+ "name": "name"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.LongRunning.Operation",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "CancelJob",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.CancelJob",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 58,
+ "type": "FULL"
+ },
+ {
+ "start": 35,
+ "end": 56,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_CancelJob_async_flattened",
+ "title": "CancelJobAsync",
+ "description": "Snippet for CancelJobAsync",
+ "file": "BatchServiceClient.CancelJobAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "CancelJobAsync",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.CancelJobAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "System.String",
+ "name": "name"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task>",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "CancelJob",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.CancelJob",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 22,
+ "end": 61,
+ "type": "FULL"
+ },
+ {
+ "start": 38,
+ "end": 59,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_CancelJob_sync_flattened_resourceNames",
+ "title": "CancelJobResourceNames",
+ "description": "Snippet for CancelJob",
+ "file": "BatchServiceClient.CancelJobResourceNamesSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "CancelJob",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.CancelJob",
+ "parameters": [
+ {
+ "type": "Google.Cloud.Batch.V1Alpha.JobName",
+ "name": "name"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.LongRunning.Operation",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "CancelJob",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.CancelJob",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 58,
+ "type": "FULL"
+ },
+ {
+ "start": 35,
+ "end": 56,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_CancelJob_async_flattened_resourceNames",
+ "title": "CancelJobResourceNamesAsync",
+ "description": "Snippet for CancelJobAsync",
+ "file": "BatchServiceClient.CancelJobResourceNamesAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "CancelJobAsync",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.CancelJobAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "Google.Cloud.Batch.V1Alpha.JobName",
+ "name": "name"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task>",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "CancelJob",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.CancelJob",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 22,
+ "end": 61,
+ "type": "FULL"
+ },
+ {
+ "start": 38,
+ "end": 59,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_UpdateJob_sync",
+ "title": "UpdateJobRequestObject",
+ "description": "Snippet for UpdateJob",
+ "file": "BatchServiceClient.UpdateJobRequestObjectSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "UpdateJob",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.UpdateJob",
+ "parameters": [
+ {
+ "type": "Google.Cloud.Batch.V1Alpha.UpdateJobRequest",
+ "name": "request"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.Cloud.Batch.V1Alpha.Job",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "UpdateJob",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.UpdateJob",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "canonical": true,
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 47,
+ "type": "FULL"
+ },
+ {
+ "start": 35,
+ "end": 45,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_UpdateJob_async",
+ "title": "UpdateJobRequestObjectAsync",
+ "description": "Snippet for UpdateJobAsync",
+ "file": "BatchServiceClient.UpdateJobRequestObjectAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "UpdateJobAsync",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.UpdateJobAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "Google.Cloud.Batch.V1Alpha.UpdateJobRequest",
+ "name": "request"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "UpdateJob",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.UpdateJob",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "canonical": true,
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 22,
+ "end": 50,
+ "type": "FULL"
+ },
+ {
+ "start": 38,
+ "end": 48,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_UpdateJob_sync_flattened",
+ "title": "UpdateJob",
+ "description": "Snippet for UpdateJob",
+ "file": "BatchServiceClient.UpdateJobSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "UpdateJob",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.UpdateJob",
+ "parameters": [
+ {
+ "type": "Google.Cloud.Batch.V1Alpha.Job",
+ "name": "job"
+ },
+ {
+ "type": "Google.Protobuf.WellKnownTypes.FieldMask",
+ "name": "updateMask"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.Cloud.Batch.V1Alpha.Job",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "UpdateJob",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.UpdateJob",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 43,
+ "type": "FULL"
+ },
+ {
+ "start": 35,
+ "end": 41,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_UpdateJob_async_flattened",
+ "title": "UpdateJobAsync",
+ "description": "Snippet for UpdateJobAsync",
+ "file": "BatchServiceClient.UpdateJobAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "UpdateJobAsync",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.UpdateJobAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "Google.Cloud.Batch.V1Alpha.Job",
+ "name": "job"
+ },
+ {
+ "type": "Google.Protobuf.WellKnownTypes.FieldMask",
+ "name": "updateMask"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "UpdateJob",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.UpdateJob",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 22,
+ "end": 46,
+ "type": "FULL"
+ },
+ {
+ "start": 38,
+ "end": 44,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_ListJobs_sync",
+ "title": "ListJobsRequestObject",
+ "description": "Snippet for ListJobs",
+ "file": "BatchServiceClient.ListJobsRequestObjectSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "ListJobs",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.ListJobs",
+ "parameters": [
+ {
+ "type": "Google.Cloud.Batch.V1Alpha.ListJobsRequest",
+ "name": "request"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.Api.Gax.PagedEnumerable",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "ListJobs",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.ListJobs",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "canonical": true,
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 80,
+ "type": "FULL"
+ },
+ {
+ "start": 36,
+ "end": 78,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_ListJobs_async",
+ "title": "ListJobsRequestObjectAsync",
+ "description": "Snippet for ListJobsAsync",
+ "file": "BatchServiceClient.ListJobsRequestObjectAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "ListJobsAsync",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.ListJobsAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "Google.Cloud.Batch.V1Alpha.ListJobsRequest",
+ "name": "request"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.Api.Gax.PagedAsyncEnumerable",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "ListJobs",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.ListJobs",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "canonical": true,
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 22,
+ "end": 84,
+ "type": "FULL"
+ },
+ {
+ "start": 40,
+ "end": 82,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_ListJobs_sync_flattened",
+ "title": "ListJobs",
+ "description": "Snippet for ListJobs",
+ "file": "BatchServiceClient.ListJobsSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "ListJobs",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.ListJobs",
+ "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": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "ListJobs",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.ListJobs",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 75,
+ "type": "FULL"
+ },
+ {
+ "start": 36,
+ "end": 73,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_ListJobs_async_flattened",
+ "title": "ListJobsAsync",
+ "description": "Snippet for ListJobsAsync",
+ "file": "BatchServiceClient.ListJobsAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "ListJobsAsync",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.ListJobsAsync",
+ "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": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "ListJobs",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.ListJobs",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 22,
+ "end": 79,
+ "type": "FULL"
+ },
+ {
+ "start": 40,
+ "end": 77,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_GetTask_sync",
+ "title": "GetTaskRequestObject",
+ "description": "Snippet for GetTask",
+ "file": "BatchServiceClient.GetTaskRequestObjectSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "GetTask",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.GetTask",
+ "parameters": [
+ {
+ "type": "Google.Cloud.Batch.V1Alpha.GetTaskRequest",
+ "name": "request"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.Cloud.Batch.V1Alpha.Task",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "GetTask",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.GetTask",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "canonical": true,
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 44,
+ "type": "FULL"
+ },
+ {
+ "start": 34,
+ "end": 42,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_GetTask_async",
+ "title": "GetTaskRequestObjectAsync",
+ "description": "Snippet for GetTaskAsync",
+ "file": "BatchServiceClient.GetTaskRequestObjectAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "GetTaskAsync",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.GetTaskAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "Google.Cloud.Batch.V1Alpha.GetTaskRequest",
+ "name": "request"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "GetTask",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.GetTask",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "canonical": true,
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 22,
+ "end": 47,
+ "type": "FULL"
+ },
+ {
+ "start": 37,
+ "end": 45,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_GetTask_sync_flattened",
+ "title": "GetTask",
+ "description": "Snippet for GetTask",
+ "file": "BatchServiceClient.GetTaskSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "GetTask",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.GetTask",
+ "parameters": [
+ {
+ "type": "System.String",
+ "name": "name"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.Cloud.Batch.V1Alpha.Task",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "GetTask",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.GetTask",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 41,
+ "type": "FULL"
+ },
+ {
+ "start": 34,
+ "end": 39,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_GetTask_async_flattened",
+ "title": "GetTaskAsync",
+ "description": "Snippet for GetTaskAsync",
+ "file": "BatchServiceClient.GetTaskAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "GetTaskAsync",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.GetTaskAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "System.String",
+ "name": "name"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "GetTask",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.GetTask",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 22,
+ "end": 44,
+ "type": "FULL"
+ },
+ {
+ "start": 37,
+ "end": 42,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_GetTask_sync_flattened_resourceNames",
+ "title": "GetTaskResourceNames",
+ "description": "Snippet for GetTask",
+ "file": "BatchServiceClient.GetTaskResourceNamesSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "GetTask",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.GetTask",
+ "parameters": [
+ {
+ "type": "Google.Cloud.Batch.V1Alpha.TaskName",
+ "name": "name"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.Cloud.Batch.V1Alpha.Task",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "GetTask",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.GetTask",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 41,
+ "type": "FULL"
+ },
+ {
+ "start": 34,
+ "end": 39,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_GetTask_async_flattened_resourceNames",
+ "title": "GetTaskResourceNamesAsync",
+ "description": "Snippet for GetTaskAsync",
+ "file": "BatchServiceClient.GetTaskResourceNamesAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "GetTaskAsync",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.GetTaskAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "Google.Cloud.Batch.V1Alpha.TaskName",
+ "name": "name"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "GetTask",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.GetTask",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 22,
+ "end": 44,
+ "type": "FULL"
+ },
+ {
+ "start": 37,
+ "end": 42,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_ListTasks_sync",
+ "title": "ListTasksRequestObject",
+ "description": "Snippet for ListTasks",
+ "file": "BatchServiceClient.ListTasksRequestObjectSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "ListTasks",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.ListTasks",
+ "parameters": [
+ {
+ "type": "Google.Cloud.Batch.V1Alpha.ListTasksRequest",
+ "name": "request"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.Api.Gax.PagedEnumerable",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "ListTasks",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.ListTasks",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "canonical": true,
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 80,
+ "type": "FULL"
+ },
+ {
+ "start": 36,
+ "end": 78,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_ListTasks_async",
+ "title": "ListTasksRequestObjectAsync",
+ "description": "Snippet for ListTasksAsync",
+ "file": "BatchServiceClient.ListTasksRequestObjectAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "ListTasksAsync",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.ListTasksAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "Google.Cloud.Batch.V1Alpha.ListTasksRequest",
+ "name": "request"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.Api.Gax.PagedAsyncEnumerable",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "ListTasks",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.ListTasks",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "canonical": true,
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 22,
+ "end": 84,
+ "type": "FULL"
+ },
+ {
+ "start": 40,
+ "end": 82,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_ListTasks_sync_flattened",
+ "title": "ListTasks",
+ "description": "Snippet for ListTasks",
+ "file": "BatchServiceClient.ListTasksSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "ListTasks",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.ListTasks",
+ "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": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "ListTasks",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.ListTasks",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 75,
+ "type": "FULL"
+ },
+ {
+ "start": 36,
+ "end": 73,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_ListTasks_async_flattened",
+ "title": "ListTasksAsync",
+ "description": "Snippet for ListTasksAsync",
+ "file": "BatchServiceClient.ListTasksAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "ListTasksAsync",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.ListTasksAsync",
+ "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": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "ListTasks",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.ListTasks",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 22,
+ "end": 79,
+ "type": "FULL"
+ },
+ {
+ "start": 40,
+ "end": 77,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_ListTasks_sync_flattened_resourceNames",
+ "title": "ListTasksResourceNames",
+ "description": "Snippet for ListTasks",
+ "file": "BatchServiceClient.ListTasksResourceNamesSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "ListTasks",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.ListTasks",
+ "parameters": [
+ {
+ "type": "Google.Cloud.Batch.V1Alpha.TaskGroupName",
+ "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": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "ListTasks",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.ListTasks",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 75,
+ "type": "FULL"
+ },
+ {
+ "start": 36,
+ "end": 73,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_ListTasks_async_flattened_resourceNames",
+ "title": "ListTasksResourceNamesAsync",
+ "description": "Snippet for ListTasksAsync",
+ "file": "BatchServiceClient.ListTasksResourceNamesAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "ListTasksAsync",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.ListTasksAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "Google.Cloud.Batch.V1Alpha.TaskGroupName",
+ "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": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "ListTasks",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.ListTasks",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 22,
+ "end": 79,
+ "type": "FULL"
+ },
+ {
+ "start": 40,
+ "end": 77,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_CreateResourceAllowance_sync",
+ "title": "CreateResourceAllowanceRequestObject",
+ "description": "Snippet for CreateResourceAllowance",
+ "file": "BatchServiceClient.CreateResourceAllowanceRequestObjectSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "CreateResourceAllowance",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.CreateResourceAllowance",
+ "parameters": [
+ {
+ "type": "Google.Cloud.Batch.V1Alpha.CreateResourceAllowanceRequest",
+ "name": "request"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.Cloud.Batch.V1Alpha.ResourceAllowance",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "CreateResourceAllowance",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.CreateResourceAllowance",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "canonical": true,
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 48,
+ "type": "FULL"
+ },
+ {
+ "start": 35,
+ "end": 46,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_CreateResourceAllowance_async",
+ "title": "CreateResourceAllowanceRequestObjectAsync",
+ "description": "Snippet for CreateResourceAllowanceAsync",
+ "file": "BatchServiceClient.CreateResourceAllowanceRequestObjectAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "CreateResourceAllowanceAsync",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.CreateResourceAllowanceAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "Google.Cloud.Batch.V1Alpha.CreateResourceAllowanceRequest",
+ "name": "request"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "CreateResourceAllowance",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.CreateResourceAllowance",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "canonical": true,
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 22,
+ "end": 51,
+ "type": "FULL"
+ },
+ {
+ "start": 38,
+ "end": 49,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_CreateResourceAllowance_sync_flattened",
+ "title": "CreateResourceAllowance",
+ "description": "Snippet for CreateResourceAllowance",
+ "file": "BatchServiceClient.CreateResourceAllowanceSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "CreateResourceAllowance",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.CreateResourceAllowance",
+ "parameters": [
+ {
+ "type": "System.String",
+ "name": "parent"
+ },
+ {
+ "type": "Google.Cloud.Batch.V1Alpha.ResourceAllowance",
+ "name": "resourceAllowance"
+ },
+ {
+ "type": "System.String",
+ "name": "resourceAllowanceId"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.Cloud.Batch.V1Alpha.ResourceAllowance",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "CreateResourceAllowance",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.CreateResourceAllowance",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 43,
+ "type": "FULL"
+ },
+ {
+ "start": 34,
+ "end": 41,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_CreateResourceAllowance_async_flattened",
+ "title": "CreateResourceAllowanceAsync",
+ "description": "Snippet for CreateResourceAllowanceAsync",
+ "file": "BatchServiceClient.CreateResourceAllowanceAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "CreateResourceAllowanceAsync",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.CreateResourceAllowanceAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "System.String",
+ "name": "parent"
+ },
+ {
+ "type": "Google.Cloud.Batch.V1Alpha.ResourceAllowance",
+ "name": "resourceAllowance"
+ },
+ {
+ "type": "System.String",
+ "name": "resourceAllowanceId"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "CreateResourceAllowance",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.CreateResourceAllowance",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 22,
+ "end": 46,
+ "type": "FULL"
+ },
+ {
+ "start": 37,
+ "end": 44,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_CreateResourceAllowance_sync_flattened_resourceNames",
+ "title": "CreateResourceAllowanceResourceNames",
+ "description": "Snippet for CreateResourceAllowance",
+ "file": "BatchServiceClient.CreateResourceAllowanceResourceNamesSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "CreateResourceAllowance",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.CreateResourceAllowance",
+ "parameters": [
+ {
+ "type": "Google.Api.Gax.ResourceNames.LocationName",
+ "name": "parent"
+ },
+ {
+ "type": "Google.Cloud.Batch.V1Alpha.ResourceAllowance",
+ "name": "resourceAllowance"
+ },
+ {
+ "type": "System.String",
+ "name": "resourceAllowanceId"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.Cloud.Batch.V1Alpha.ResourceAllowance",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "CreateResourceAllowance",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.CreateResourceAllowance",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 44,
+ "type": "FULL"
+ },
+ {
+ "start": 35,
+ "end": 42,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_CreateResourceAllowance_async_flattened_resourceNames",
+ "title": "CreateResourceAllowanceResourceNamesAsync",
+ "description": "Snippet for CreateResourceAllowanceAsync",
+ "file": "BatchServiceClient.CreateResourceAllowanceResourceNamesAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "CreateResourceAllowanceAsync",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.CreateResourceAllowanceAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "Google.Api.Gax.ResourceNames.LocationName",
+ "name": "parent"
+ },
+ {
+ "type": "Google.Cloud.Batch.V1Alpha.ResourceAllowance",
+ "name": "resourceAllowance"
+ },
+ {
+ "type": "System.String",
+ "name": "resourceAllowanceId"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "CreateResourceAllowance",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.CreateResourceAllowance",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 22,
+ "end": 47,
+ "type": "FULL"
+ },
+ {
+ "start": 38,
+ "end": 45,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_GetResourceAllowance_sync",
+ "title": "GetResourceAllowanceRequestObject",
+ "description": "Snippet for GetResourceAllowance",
+ "file": "BatchServiceClient.GetResourceAllowanceRequestObjectSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "GetResourceAllowance",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.GetResourceAllowance",
+ "parameters": [
+ {
+ "type": "Google.Cloud.Batch.V1Alpha.GetResourceAllowanceRequest",
+ "name": "request"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.Cloud.Batch.V1Alpha.ResourceAllowance",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "GetResourceAllowance",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.GetResourceAllowance",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "canonical": true,
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 44,
+ "type": "FULL"
+ },
+ {
+ "start": 34,
+ "end": 42,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_GetResourceAllowance_async",
+ "title": "GetResourceAllowanceRequestObjectAsync",
+ "description": "Snippet for GetResourceAllowanceAsync",
+ "file": "BatchServiceClient.GetResourceAllowanceRequestObjectAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "GetResourceAllowanceAsync",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.GetResourceAllowanceAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "Google.Cloud.Batch.V1Alpha.GetResourceAllowanceRequest",
+ "name": "request"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "GetResourceAllowance",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.GetResourceAllowance",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "canonical": true,
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 22,
+ "end": 47,
+ "type": "FULL"
+ },
+ {
+ "start": 37,
+ "end": 45,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_GetResourceAllowance_sync_flattened",
+ "title": "GetResourceAllowance",
+ "description": "Snippet for GetResourceAllowance",
+ "file": "BatchServiceClient.GetResourceAllowanceSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "GetResourceAllowance",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.GetResourceAllowance",
+ "parameters": [
+ {
+ "type": "System.String",
+ "name": "name"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.Cloud.Batch.V1Alpha.ResourceAllowance",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "GetResourceAllowance",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.GetResourceAllowance",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 41,
+ "type": "FULL"
+ },
+ {
+ "start": 34,
+ "end": 39,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_GetResourceAllowance_async_flattened",
+ "title": "GetResourceAllowanceAsync",
+ "description": "Snippet for GetResourceAllowanceAsync",
+ "file": "BatchServiceClient.GetResourceAllowanceAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "GetResourceAllowanceAsync",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.GetResourceAllowanceAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "System.String",
+ "name": "name"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "GetResourceAllowance",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.GetResourceAllowance",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 22,
+ "end": 44,
+ "type": "FULL"
+ },
+ {
+ "start": 37,
+ "end": 42,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_GetResourceAllowance_sync_flattened_resourceNames",
+ "title": "GetResourceAllowanceResourceNames",
+ "description": "Snippet for GetResourceAllowance",
+ "file": "BatchServiceClient.GetResourceAllowanceResourceNamesSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "GetResourceAllowance",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.GetResourceAllowance",
+ "parameters": [
+ {
+ "type": "Google.Cloud.Batch.V1Alpha.ResourceAllowanceName",
+ "name": "name"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.Cloud.Batch.V1Alpha.ResourceAllowance",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "GetResourceAllowance",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.GetResourceAllowance",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 41,
+ "type": "FULL"
+ },
+ {
+ "start": 34,
+ "end": 39,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_GetResourceAllowance_async_flattened_resourceNames",
+ "title": "GetResourceAllowanceResourceNamesAsync",
+ "description": "Snippet for GetResourceAllowanceAsync",
+ "file": "BatchServiceClient.GetResourceAllowanceResourceNamesAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "GetResourceAllowanceAsync",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.GetResourceAllowanceAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "Google.Cloud.Batch.V1Alpha.ResourceAllowanceName",
+ "name": "name"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "GetResourceAllowance",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.GetResourceAllowance",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 22,
+ "end": 44,
+ "type": "FULL"
+ },
+ {
+ "start": 37,
+ "end": 42,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_DeleteResourceAllowance_sync",
+ "title": "DeleteResourceAllowanceRequestObject",
+ "description": "Snippet for DeleteResourceAllowance",
+ "file": "BatchServiceClient.DeleteResourceAllowanceRequestObjectSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "DeleteResourceAllowance",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.DeleteResourceAllowance",
+ "parameters": [
+ {
+ "type": "Google.Cloud.Batch.V1Alpha.DeleteResourceAllowanceRequest",
+ "name": "request"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.LongRunning.Operation",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "DeleteResourceAllowance",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.DeleteResourceAllowance",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "canonical": true,
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 64,
+ "type": "FULL"
+ },
+ {
+ "start": 36,
+ "end": 62,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_DeleteResourceAllowance_async",
+ "title": "DeleteResourceAllowanceRequestObjectAsync",
+ "description": "Snippet for DeleteResourceAllowanceAsync",
+ "file": "BatchServiceClient.DeleteResourceAllowanceRequestObjectAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "DeleteResourceAllowanceAsync",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.DeleteResourceAllowanceAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "Google.Cloud.Batch.V1Alpha.DeleteResourceAllowanceRequest",
+ "name": "request"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task>",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "DeleteResourceAllowance",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.DeleteResourceAllowance",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "canonical": true,
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 22,
+ "end": 67,
+ "type": "FULL"
+ },
+ {
+ "start": 39,
+ "end": 65,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_DeleteResourceAllowance_sync_flattened",
+ "title": "DeleteResourceAllowance",
+ "description": "Snippet for DeleteResourceAllowance",
+ "file": "BatchServiceClient.DeleteResourceAllowanceSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "DeleteResourceAllowance",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.DeleteResourceAllowance",
+ "parameters": [
+ {
+ "type": "System.String",
+ "name": "name"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.LongRunning.Operation",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "DeleteResourceAllowance",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.DeleteResourceAllowance",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 59,
+ "type": "FULL"
+ },
+ {
+ "start": 36,
+ "end": 57,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_DeleteResourceAllowance_async_flattened",
+ "title": "DeleteResourceAllowanceAsync",
+ "description": "Snippet for DeleteResourceAllowanceAsync",
+ "file": "BatchServiceClient.DeleteResourceAllowanceAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "DeleteResourceAllowanceAsync",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.DeleteResourceAllowanceAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "System.String",
+ "name": "name"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task>",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "DeleteResourceAllowance",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.DeleteResourceAllowance",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 22,
+ "end": 62,
+ "type": "FULL"
+ },
+ {
+ "start": 39,
+ "end": 60,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_DeleteResourceAllowance_sync_flattened_resourceNames",
+ "title": "DeleteResourceAllowanceResourceNames",
+ "description": "Snippet for DeleteResourceAllowance",
+ "file": "BatchServiceClient.DeleteResourceAllowanceResourceNamesSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "DeleteResourceAllowance",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.DeleteResourceAllowance",
+ "parameters": [
+ {
+ "type": "Google.Cloud.Batch.V1Alpha.ResourceAllowanceName",
+ "name": "name"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.LongRunning.Operation",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "DeleteResourceAllowance",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.DeleteResourceAllowance",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 59,
+ "type": "FULL"
+ },
+ {
+ "start": 36,
+ "end": 57,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_DeleteResourceAllowance_async_flattened_resourceNames",
+ "title": "DeleteResourceAllowanceResourceNamesAsync",
+ "description": "Snippet for DeleteResourceAllowanceAsync",
+ "file": "BatchServiceClient.DeleteResourceAllowanceResourceNamesAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "DeleteResourceAllowanceAsync",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.DeleteResourceAllowanceAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "Google.Cloud.Batch.V1Alpha.ResourceAllowanceName",
+ "name": "name"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task>",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "DeleteResourceAllowance",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.DeleteResourceAllowance",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 22,
+ "end": 62,
+ "type": "FULL"
+ },
+ {
+ "start": 39,
+ "end": 60,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_ListResourceAllowances_sync",
+ "title": "ListResourceAllowancesRequestObject",
+ "description": "Snippet for ListResourceAllowances",
+ "file": "BatchServiceClient.ListResourceAllowancesRequestObjectSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "ListResourceAllowances",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.ListResourceAllowances",
+ "parameters": [
+ {
+ "type": "Google.Cloud.Batch.V1Alpha.ListResourceAllowancesRequest",
+ "name": "request"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.Api.Gax.PagedEnumerable",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "ListResourceAllowances",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.ListResourceAllowances",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "canonical": true,
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 79,
+ "type": "FULL"
+ },
+ {
+ "start": 37,
+ "end": 77,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_ListResourceAllowances_async",
+ "title": "ListResourceAllowancesRequestObjectAsync",
+ "description": "Snippet for ListResourceAllowancesAsync",
+ "file": "BatchServiceClient.ListResourceAllowancesRequestObjectAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "ListResourceAllowancesAsync",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.ListResourceAllowancesAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "Google.Cloud.Batch.V1Alpha.ListResourceAllowancesRequest",
+ "name": "request"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.Api.Gax.PagedAsyncEnumerable",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "ListResourceAllowances",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.ListResourceAllowances",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "canonical": true,
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 22,
+ "end": 83,
+ "type": "FULL"
+ },
+ {
+ "start": 41,
+ "end": 81,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_ListResourceAllowances_sync_flattened",
+ "title": "ListResourceAllowances",
+ "description": "Snippet for ListResourceAllowances",
+ "file": "BatchServiceClient.ListResourceAllowancesSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "ListResourceAllowances",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.ListResourceAllowances",
+ "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": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "ListResourceAllowances",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.ListResourceAllowances",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 75,
+ "type": "FULL"
+ },
+ {
+ "start": 36,
+ "end": 73,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_ListResourceAllowances_async_flattened",
+ "title": "ListResourceAllowancesAsync",
+ "description": "Snippet for ListResourceAllowancesAsync",
+ "file": "BatchServiceClient.ListResourceAllowancesAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "ListResourceAllowancesAsync",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.ListResourceAllowancesAsync",
+ "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": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "ListResourceAllowances",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.ListResourceAllowances",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 22,
+ "end": 79,
+ "type": "FULL"
+ },
+ {
+ "start": 40,
+ "end": 77,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_ListResourceAllowances_sync_flattened_resourceNames",
+ "title": "ListResourceAllowancesResourceNames",
+ "description": "Snippet for ListResourceAllowances",
+ "file": "BatchServiceClient.ListResourceAllowancesResourceNamesSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "ListResourceAllowances",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.ListResourceAllowances",
+ "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": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "ListResourceAllowances",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.ListResourceAllowances",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 76,
+ "type": "FULL"
+ },
+ {
+ "start": 37,
+ "end": 74,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_ListResourceAllowances_async_flattened_resourceNames",
+ "title": "ListResourceAllowancesResourceNamesAsync",
+ "description": "Snippet for ListResourceAllowancesAsync",
+ "file": "BatchServiceClient.ListResourceAllowancesResourceNamesAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "ListResourceAllowancesAsync",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.ListResourceAllowancesAsync",
+ "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": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "ListResourceAllowances",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.ListResourceAllowances",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 22,
+ "end": 80,
+ "type": "FULL"
+ },
+ {
+ "start": 41,
+ "end": 78,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_UpdateResourceAllowance_sync",
+ "title": "UpdateResourceAllowanceRequestObject",
+ "description": "Snippet for UpdateResourceAllowance",
+ "file": "BatchServiceClient.UpdateResourceAllowanceRequestObjectSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "UpdateResourceAllowance",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.UpdateResourceAllowance",
+ "parameters": [
+ {
+ "type": "Google.Cloud.Batch.V1Alpha.UpdateResourceAllowanceRequest",
+ "name": "request"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.Cloud.Batch.V1Alpha.ResourceAllowance",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "UpdateResourceAllowance",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.UpdateResourceAllowance",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "canonical": true,
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 47,
+ "type": "FULL"
+ },
+ {
+ "start": 35,
+ "end": 45,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_UpdateResourceAllowance_async",
+ "title": "UpdateResourceAllowanceRequestObjectAsync",
+ "description": "Snippet for UpdateResourceAllowanceAsync",
+ "file": "BatchServiceClient.UpdateResourceAllowanceRequestObjectAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "UpdateResourceAllowanceAsync",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.UpdateResourceAllowanceAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "Google.Cloud.Batch.V1Alpha.UpdateResourceAllowanceRequest",
+ "name": "request"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "UpdateResourceAllowance",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.UpdateResourceAllowance",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "canonical": true,
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 22,
+ "end": 50,
+ "type": "FULL"
+ },
+ {
+ "start": 38,
+ "end": 48,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_UpdateResourceAllowance_sync_flattened",
+ "title": "UpdateResourceAllowance",
+ "description": "Snippet for UpdateResourceAllowance",
+ "file": "BatchServiceClient.UpdateResourceAllowanceSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "UpdateResourceAllowance",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.UpdateResourceAllowance",
+ "parameters": [
+ {
+ "type": "Google.Cloud.Batch.V1Alpha.ResourceAllowance",
+ "name": "resourceAllowance"
+ },
+ {
+ "type": "Google.Protobuf.WellKnownTypes.FieldMask",
+ "name": "updateMask"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "Google.Cloud.Batch.V1Alpha.ResourceAllowance",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "UpdateResourceAllowance",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.UpdateResourceAllowance",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 20,
+ "end": 43,
+ "type": "FULL"
+ },
+ {
+ "start": 35,
+ "end": 41,
+ "type": "SHORT"
+ }
+ ]
+ },
+ {
+ "regionTag": "batch_v1alpha_generated_BatchService_UpdateResourceAllowance_async_flattened",
+ "title": "UpdateResourceAllowanceAsync",
+ "description": "Snippet for UpdateResourceAllowanceAsync",
+ "file": "BatchServiceClient.UpdateResourceAllowanceAsyncSnippet.g.cs",
+ "language": "C_SHARP",
+ "clientMethod": {
+ "shortName": "UpdateResourceAllowanceAsync",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient.UpdateResourceAllowanceAsync",
+ "async": true,
+ "parameters": [
+ {
+ "type": "Google.Cloud.Batch.V1Alpha.ResourceAllowance",
+ "name": "resourceAllowance"
+ },
+ {
+ "type": "Google.Protobuf.WellKnownTypes.FieldMask",
+ "name": "updateMask"
+ },
+ {
+ "type": "Google.Api.Gax.Grpc.CallSettings",
+ "name": "callSettings"
+ }
+ ],
+ "resultType": "System.Threading.Tasks.Task",
+ "client": {
+ "shortName": "BatchServiceClient",
+ "fullName": "Google.Cloud.Batch.V1Alpha.BatchServiceClient"
+ },
+ "method": {
+ "shortName": "UpdateResourceAllowance",
+ "fullName": "google.cloud.batch.v1alpha.BatchService.UpdateResourceAllowance",
+ "service": {
+ "shortName": "BatchService",
+ "fullName": "google.cloud.batch.v1alpha.BatchService"
+ }
+ }
+ },
+ "origin": "API_DEFINITION",
+ "segments": [
+ {
+ "start": 22,
+ "end": 46,
+ "type": "FULL"
+ },
+ {
+ "start": 38,
+ "end": 44,
+ "type": "SHORT"
+ }
+ ]
+ }
+ ]
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.Snippets/BatchServiceClientSnippets.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.Snippets/BatchServiceClientSnippets.g.cs
new file mode 100755
index 000000000000..351ca8a5e037
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.Snippets/BatchServiceClientSnippets.g.cs
@@ -0,0 +1,1874 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Generated code. DO NOT EDIT!
+
+#pragma warning disable CS8981
+
+namespace GoogleCSharpSnippets
+{
+ using Google.Api.Gax;
+ using Google.Api.Gax.ResourceNames;
+ using Google.LongRunning;
+ using Google.Protobuf.WellKnownTypes;
+ using System;
+ using System.Linq;
+ using System.Threading.Tasks;
+ using gcbv = Google.Cloud.Batch.V1Alpha;
+
+ /// Generated snippets.
+ public sealed class AllGeneratedBatchServiceClientSnippets
+ {
+ /// Snippet for CreateJob
+ public void CreateJobRequestObject()
+ {
+ // Snippet: CreateJob(CreateJobRequest, CallSettings)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = gcbv::BatchServiceClient.Create();
+ // Initialize request argument(s)
+ gcbv::CreateJobRequest request = new gcbv::CreateJobRequest
+ {
+ ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
+ JobId = "",
+ Job = new gcbv::Job(),
+ RequestId = "",
+ };
+ // Make the request
+ gcbv::Job response = batchServiceClient.CreateJob(request);
+ // End snippet
+ }
+
+ /// Snippet for CreateJobAsync
+ public async Task CreateJobRequestObjectAsync()
+ {
+ // Snippet: CreateJobAsync(CreateJobRequest, CallSettings)
+ // Additional: CreateJobAsync(CreateJobRequest, CancellationToken)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ gcbv::CreateJobRequest request = new gcbv::CreateJobRequest
+ {
+ ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
+ JobId = "",
+ Job = new gcbv::Job(),
+ RequestId = "",
+ };
+ // Make the request
+ gcbv::Job response = await batchServiceClient.CreateJobAsync(request);
+ // End snippet
+ }
+
+ /// Snippet for CreateJob
+ public void CreateJob()
+ {
+ // Snippet: CreateJob(string, Job, string, CallSettings)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = gcbv::BatchServiceClient.Create();
+ // Initialize request argument(s)
+ string parent = "projects/[PROJECT]/locations/[LOCATION]";
+ gcbv::Job job = new gcbv::Job();
+ string jobId = "";
+ // Make the request
+ gcbv::Job response = batchServiceClient.CreateJob(parent, job, jobId);
+ // End snippet
+ }
+
+ /// Snippet for CreateJobAsync
+ public async Task CreateJobAsync()
+ {
+ // Snippet: CreateJobAsync(string, Job, string, CallSettings)
+ // Additional: CreateJobAsync(string, Job, string, CancellationToken)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ string parent = "projects/[PROJECT]/locations/[LOCATION]";
+ gcbv::Job job = new gcbv::Job();
+ string jobId = "";
+ // Make the request
+ gcbv::Job response = await batchServiceClient.CreateJobAsync(parent, job, jobId);
+ // End snippet
+ }
+
+ /// Snippet for CreateJob
+ public void CreateJobResourceNames()
+ {
+ // Snippet: CreateJob(LocationName, Job, string, CallSettings)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = gcbv::BatchServiceClient.Create();
+ // Initialize request argument(s)
+ LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
+ gcbv::Job job = new gcbv::Job();
+ string jobId = "";
+ // Make the request
+ gcbv::Job response = batchServiceClient.CreateJob(parent, job, jobId);
+ // End snippet
+ }
+
+ /// Snippet for CreateJobAsync
+ public async Task CreateJobResourceNamesAsync()
+ {
+ // Snippet: CreateJobAsync(LocationName, Job, string, CallSettings)
+ // Additional: CreateJobAsync(LocationName, Job, string, CancellationToken)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
+ gcbv::Job job = new gcbv::Job();
+ string jobId = "";
+ // Make the request
+ gcbv::Job response = await batchServiceClient.CreateJobAsync(parent, job, jobId);
+ // End snippet
+ }
+
+ /// Snippet for GetJob
+ public void GetJobRequestObject()
+ {
+ // Snippet: GetJob(GetJobRequest, CallSettings)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = gcbv::BatchServiceClient.Create();
+ // Initialize request argument(s)
+ gcbv::GetJobRequest request = new gcbv::GetJobRequest
+ {
+ JobName = gcbv::JobName.FromProjectLocationJob("[PROJECT]", "[LOCATION]", "[JOB]"),
+ };
+ // Make the request
+ gcbv::Job response = batchServiceClient.GetJob(request);
+ // End snippet
+ }
+
+ /// Snippet for GetJobAsync
+ public async Task GetJobRequestObjectAsync()
+ {
+ // Snippet: GetJobAsync(GetJobRequest, CallSettings)
+ // Additional: GetJobAsync(GetJobRequest, CancellationToken)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ gcbv::GetJobRequest request = new gcbv::GetJobRequest
+ {
+ JobName = gcbv::JobName.FromProjectLocationJob("[PROJECT]", "[LOCATION]", "[JOB]"),
+ };
+ // Make the request
+ gcbv::Job response = await batchServiceClient.GetJobAsync(request);
+ // End snippet
+ }
+
+ /// Snippet for GetJob
+ public void GetJob()
+ {
+ // Snippet: GetJob(string, CallSettings)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = gcbv::BatchServiceClient.Create();
+ // Initialize request argument(s)
+ string name = "projects/[PROJECT]/locations/[LOCATION]/jobs/[JOB]";
+ // Make the request
+ gcbv::Job response = batchServiceClient.GetJob(name);
+ // End snippet
+ }
+
+ /// Snippet for GetJobAsync
+ public async Task GetJobAsync()
+ {
+ // Snippet: GetJobAsync(string, CallSettings)
+ // Additional: GetJobAsync(string, CancellationToken)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ string name = "projects/[PROJECT]/locations/[LOCATION]/jobs/[JOB]";
+ // Make the request
+ gcbv::Job response = await batchServiceClient.GetJobAsync(name);
+ // End snippet
+ }
+
+ /// Snippet for GetJob
+ public void GetJobResourceNames()
+ {
+ // Snippet: GetJob(JobName, CallSettings)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = gcbv::BatchServiceClient.Create();
+ // Initialize request argument(s)
+ gcbv::JobName name = gcbv::JobName.FromProjectLocationJob("[PROJECT]", "[LOCATION]", "[JOB]");
+ // Make the request
+ gcbv::Job response = batchServiceClient.GetJob(name);
+ // End snippet
+ }
+
+ /// Snippet for GetJobAsync
+ public async Task GetJobResourceNamesAsync()
+ {
+ // Snippet: GetJobAsync(JobName, CallSettings)
+ // Additional: GetJobAsync(JobName, CancellationToken)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ gcbv::JobName name = gcbv::JobName.FromProjectLocationJob("[PROJECT]", "[LOCATION]", "[JOB]");
+ // Make the request
+ gcbv::Job response = await batchServiceClient.GetJobAsync(name);
+ // End snippet
+ }
+
+ /// Snippet for DeleteJob
+ public void DeleteJobRequestObject()
+ {
+ // Snippet: DeleteJob(DeleteJobRequest, CallSettings)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = gcbv::BatchServiceClient.Create();
+ // Initialize request argument(s)
+ gcbv::DeleteJobRequest request = new gcbv::DeleteJobRequest
+ {
+ Name = "",
+ Reason = "",
+ RequestId = "",
+ };
+ // Make the request
+ Operation response = batchServiceClient.DeleteJob(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 = batchServiceClient.PollOnceDeleteJob(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 DeleteJobAsync
+ public async Task DeleteJobRequestObjectAsync()
+ {
+ // Snippet: DeleteJobAsync(DeleteJobRequest, CallSettings)
+ // Additional: DeleteJobAsync(DeleteJobRequest, CancellationToken)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ gcbv::DeleteJobRequest request = new gcbv::DeleteJobRequest
+ {
+ Name = "",
+ Reason = "",
+ RequestId = "",
+ };
+ // Make the request
+ Operation response = await batchServiceClient.DeleteJobAsync(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 batchServiceClient.PollOnceDeleteJobAsync(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 DeleteJob
+ public void DeleteJob()
+ {
+ // Snippet: DeleteJob(string, CallSettings)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = gcbv::BatchServiceClient.Create();
+ // Initialize request argument(s)
+ string name = "";
+ // Make the request
+ Operation response = batchServiceClient.DeleteJob(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 = batchServiceClient.PollOnceDeleteJob(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 DeleteJobAsync
+ public async Task DeleteJobAsync()
+ {
+ // Snippet: DeleteJobAsync(string, CallSettings)
+ // Additional: DeleteJobAsync(string, CancellationToken)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ string name = "";
+ // Make the request
+ Operation response = await batchServiceClient.DeleteJobAsync(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 batchServiceClient.PollOnceDeleteJobAsync(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 CancelJob
+ public void CancelJobRequestObject()
+ {
+ // Snippet: CancelJob(CancelJobRequest, CallSettings)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = gcbv::BatchServiceClient.Create();
+ // Initialize request argument(s)
+ gcbv::CancelJobRequest request = new gcbv::CancelJobRequest
+ {
+ JobName = gcbv::JobName.FromProjectLocationJob("[PROJECT]", "[LOCATION]", "[JOB]"),
+ RequestId = "",
+ };
+ // Make the request
+ Operation response = batchServiceClient.CancelJob(request);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = response.PollUntilCompleted();
+ // Retrieve the operation result
+ gcbv::CancelJobResponse 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 = batchServiceClient.PollOnceCancelJob(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ gcbv::CancelJobResponse retrievedResult = retrievedResponse.Result;
+ }
+ // End snippet
+ }
+
+ /// Snippet for CancelJobAsync
+ public async Task CancelJobRequestObjectAsync()
+ {
+ // Snippet: CancelJobAsync(CancelJobRequest, CallSettings)
+ // Additional: CancelJobAsync(CancelJobRequest, CancellationToken)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ gcbv::CancelJobRequest request = new gcbv::CancelJobRequest
+ {
+ JobName = gcbv::JobName.FromProjectLocationJob("[PROJECT]", "[LOCATION]", "[JOB]"),
+ RequestId = "",
+ };
+ // Make the request
+ Operation response = await batchServiceClient.CancelJobAsync(request);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = await response.PollUntilCompletedAsync();
+ // Retrieve the operation result
+ gcbv::CancelJobResponse 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 batchServiceClient.PollOnceCancelJobAsync(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ gcbv::CancelJobResponse retrievedResult = retrievedResponse.Result;
+ }
+ // End snippet
+ }
+
+ /// Snippet for CancelJob
+ public void CancelJob()
+ {
+ // Snippet: CancelJob(string, CallSettings)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = gcbv::BatchServiceClient.Create();
+ // Initialize request argument(s)
+ string name = "projects/[PROJECT]/locations/[LOCATION]/jobs/[JOB]";
+ // Make the request
+ Operation response = batchServiceClient.CancelJob(name);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = response.PollUntilCompleted();
+ // Retrieve the operation result
+ gcbv::CancelJobResponse 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 = batchServiceClient.PollOnceCancelJob(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ gcbv::CancelJobResponse retrievedResult = retrievedResponse.Result;
+ }
+ // End snippet
+ }
+
+ /// Snippet for CancelJobAsync
+ public async Task CancelJobAsync()
+ {
+ // Snippet: CancelJobAsync(string, CallSettings)
+ // Additional: CancelJobAsync(string, CancellationToken)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ string name = "projects/[PROJECT]/locations/[LOCATION]/jobs/[JOB]";
+ // Make the request
+ Operation response = await batchServiceClient.CancelJobAsync(name);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = await response.PollUntilCompletedAsync();
+ // Retrieve the operation result
+ gcbv::CancelJobResponse 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 batchServiceClient.PollOnceCancelJobAsync(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ gcbv::CancelJobResponse retrievedResult = retrievedResponse.Result;
+ }
+ // End snippet
+ }
+
+ /// Snippet for CancelJob
+ public void CancelJobResourceNames()
+ {
+ // Snippet: CancelJob(JobName, CallSettings)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = gcbv::BatchServiceClient.Create();
+ // Initialize request argument(s)
+ gcbv::JobName name = gcbv::JobName.FromProjectLocationJob("[PROJECT]", "[LOCATION]", "[JOB]");
+ // Make the request
+ Operation response = batchServiceClient.CancelJob(name);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = response.PollUntilCompleted();
+ // Retrieve the operation result
+ gcbv::CancelJobResponse 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 = batchServiceClient.PollOnceCancelJob(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ gcbv::CancelJobResponse retrievedResult = retrievedResponse.Result;
+ }
+ // End snippet
+ }
+
+ /// Snippet for CancelJobAsync
+ public async Task CancelJobResourceNamesAsync()
+ {
+ // Snippet: CancelJobAsync(JobName, CallSettings)
+ // Additional: CancelJobAsync(JobName, CancellationToken)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ gcbv::JobName name = gcbv::JobName.FromProjectLocationJob("[PROJECT]", "[LOCATION]", "[JOB]");
+ // Make the request
+ Operation response = await batchServiceClient.CancelJobAsync(name);
+
+ // Poll until the returned long-running operation is complete
+ Operation completedResponse = await response.PollUntilCompletedAsync();
+ // Retrieve the operation result
+ gcbv::CancelJobResponse 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 batchServiceClient.PollOnceCancelJobAsync(operationName);
+ // Check if the retrieved long-running operation has completed
+ if (retrievedResponse.IsCompleted)
+ {
+ // If it has completed, then access the result
+ gcbv::CancelJobResponse retrievedResult = retrievedResponse.Result;
+ }
+ // End snippet
+ }
+
+ /// Snippet for UpdateJob
+ public void UpdateJobRequestObject()
+ {
+ // Snippet: UpdateJob(UpdateJobRequest, CallSettings)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = gcbv::BatchServiceClient.Create();
+ // Initialize request argument(s)
+ gcbv::UpdateJobRequest request = new gcbv::UpdateJobRequest
+ {
+ Job = new gcbv::Job(),
+ UpdateMask = new FieldMask(),
+ RequestId = "",
+ };
+ // Make the request
+ gcbv::Job response = batchServiceClient.UpdateJob(request);
+ // End snippet
+ }
+
+ /// Snippet for UpdateJobAsync
+ public async Task UpdateJobRequestObjectAsync()
+ {
+ // Snippet: UpdateJobAsync(UpdateJobRequest, CallSettings)
+ // Additional: UpdateJobAsync(UpdateJobRequest, CancellationToken)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ gcbv::UpdateJobRequest request = new gcbv::UpdateJobRequest
+ {
+ Job = new gcbv::Job(),
+ UpdateMask = new FieldMask(),
+ RequestId = "",
+ };
+ // Make the request
+ gcbv::Job response = await batchServiceClient.UpdateJobAsync(request);
+ // End snippet
+ }
+
+ /// Snippet for UpdateJob
+ public void UpdateJob()
+ {
+ // Snippet: UpdateJob(Job, FieldMask, CallSettings)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = gcbv::BatchServiceClient.Create();
+ // Initialize request argument(s)
+ gcbv::Job job = new gcbv::Job();
+ FieldMask updateMask = new FieldMask();
+ // Make the request
+ gcbv::Job response = batchServiceClient.UpdateJob(job, updateMask);
+ // End snippet
+ }
+
+ /// Snippet for UpdateJobAsync
+ public async Task UpdateJobAsync()
+ {
+ // Snippet: UpdateJobAsync(Job, FieldMask, CallSettings)
+ // Additional: UpdateJobAsync(Job, FieldMask, CancellationToken)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ gcbv::Job job = new gcbv::Job();
+ FieldMask updateMask = new FieldMask();
+ // Make the request
+ gcbv::Job response = await batchServiceClient.UpdateJobAsync(job, updateMask);
+ // End snippet
+ }
+
+ /// Snippet for ListJobs
+ public void ListJobsRequestObject()
+ {
+ // Snippet: ListJobs(ListJobsRequest, CallSettings)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = gcbv::BatchServiceClient.Create();
+ // Initialize request argument(s)
+ gcbv::ListJobsRequest request = new gcbv::ListJobsRequest
+ {
+ Parent = "",
+ Filter = "",
+ OrderBy = "",
+ };
+ // Make the request
+ PagedEnumerable response = batchServiceClient.ListJobs(request);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ foreach (gcbv::Job 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 (gcbv::ListJobsResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (gcbv::Job 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 (gcbv::Job 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 ListJobsAsync
+ public async Task ListJobsRequestObjectAsync()
+ {
+ // Snippet: ListJobsAsync(ListJobsRequest, CallSettings)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ gcbv::ListJobsRequest request = new gcbv::ListJobsRequest
+ {
+ Parent = "",
+ Filter = "",
+ OrderBy = "",
+ };
+ // Make the request
+ PagedAsyncEnumerable response = batchServiceClient.ListJobsAsync(request);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ await response.ForEachAsync((gcbv::Job item) =>
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ });
+
+ // Or iterate over pages (of server-defined size), performing one RPC per page
+ await response.AsRawResponses().ForEachAsync((gcbv::ListJobsResponse page) =>
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (gcbv::Job 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 (gcbv::Job 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 ListJobs
+ public void ListJobs()
+ {
+ // Snippet: ListJobs(string, string, int?, CallSettings)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = gcbv::BatchServiceClient.Create();
+ // Initialize request argument(s)
+ string parent = "";
+ // Make the request
+ PagedEnumerable response = batchServiceClient.ListJobs(parent);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ foreach (gcbv::Job 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 (gcbv::ListJobsResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (gcbv::Job 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 (gcbv::Job 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 ListJobsAsync
+ public async Task ListJobsAsync()
+ {
+ // Snippet: ListJobsAsync(string, string, int?, CallSettings)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ string parent = "";
+ // Make the request
+ PagedAsyncEnumerable response = batchServiceClient.ListJobsAsync(parent);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ await response.ForEachAsync((gcbv::Job item) =>
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ });
+
+ // Or iterate over pages (of server-defined size), performing one RPC per page
+ await response.AsRawResponses().ForEachAsync((gcbv::ListJobsResponse page) =>
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (gcbv::Job 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 (gcbv::Job 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 GetTask
+ public void GetTaskRequestObject()
+ {
+ // Snippet: GetTask(GetTaskRequest, CallSettings)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = gcbv::BatchServiceClient.Create();
+ // Initialize request argument(s)
+ gcbv::GetTaskRequest request = new gcbv::GetTaskRequest
+ {
+ TaskName = gcbv::TaskName.FromProjectLocationJobTaskGroupTask("[PROJECT]", "[LOCATION]", "[JOB]", "[TASK_GROUP]", "[TASK]"),
+ };
+ // Make the request
+ gcbv::Task response = batchServiceClient.GetTask(request);
+ // End snippet
+ }
+
+ /// Snippet for GetTaskAsync
+ public async Task GetTaskRequestObjectAsync()
+ {
+ // Snippet: GetTaskAsync(GetTaskRequest, CallSettings)
+ // Additional: GetTaskAsync(GetTaskRequest, CancellationToken)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ gcbv::GetTaskRequest request = new gcbv::GetTaskRequest
+ {
+ TaskName = gcbv::TaskName.FromProjectLocationJobTaskGroupTask("[PROJECT]", "[LOCATION]", "[JOB]", "[TASK_GROUP]", "[TASK]"),
+ };
+ // Make the request
+ gcbv::Task response = await batchServiceClient.GetTaskAsync(request);
+ // End snippet
+ }
+
+ /// Snippet for GetTask
+ public void GetTask()
+ {
+ // Snippet: GetTask(string, CallSettings)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = gcbv::BatchServiceClient.Create();
+ // Initialize request argument(s)
+ string name = "projects/[PROJECT]/locations/[LOCATION]/jobs/[JOB]/taskGroups/[TASK_GROUP]/tasks/[TASK]";
+ // Make the request
+ gcbv::Task response = batchServiceClient.GetTask(name);
+ // End snippet
+ }
+
+ /// Snippet for GetTaskAsync
+ public async Task GetTaskAsync()
+ {
+ // Snippet: GetTaskAsync(string, CallSettings)
+ // Additional: GetTaskAsync(string, CancellationToken)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ string name = "projects/[PROJECT]/locations/[LOCATION]/jobs/[JOB]/taskGroups/[TASK_GROUP]/tasks/[TASK]";
+ // Make the request
+ gcbv::Task response = await batchServiceClient.GetTaskAsync(name);
+ // End snippet
+ }
+
+ /// Snippet for GetTask
+ public void GetTaskResourceNames()
+ {
+ // Snippet: GetTask(TaskName, CallSettings)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = gcbv::BatchServiceClient.Create();
+ // Initialize request argument(s)
+ gcbv::TaskName name = gcbv::TaskName.FromProjectLocationJobTaskGroupTask("[PROJECT]", "[LOCATION]", "[JOB]", "[TASK_GROUP]", "[TASK]");
+ // Make the request
+ gcbv::Task response = batchServiceClient.GetTask(name);
+ // End snippet
+ }
+
+ /// Snippet for GetTaskAsync
+ public async Task GetTaskResourceNamesAsync()
+ {
+ // Snippet: GetTaskAsync(TaskName, CallSettings)
+ // Additional: GetTaskAsync(TaskName, CancellationToken)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ gcbv::TaskName name = gcbv::TaskName.FromProjectLocationJobTaskGroupTask("[PROJECT]", "[LOCATION]", "[JOB]", "[TASK_GROUP]", "[TASK]");
+ // Make the request
+ gcbv::Task response = await batchServiceClient.GetTaskAsync(name);
+ // End snippet
+ }
+
+ /// Snippet for ListTasks
+ public void ListTasksRequestObject()
+ {
+ // Snippet: ListTasks(ListTasksRequest, CallSettings)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = gcbv::BatchServiceClient.Create();
+ // Initialize request argument(s)
+ gcbv::ListTasksRequest request = new gcbv::ListTasksRequest
+ {
+ ParentAsTaskGroupName = gcbv::TaskGroupName.FromProjectLocationJobTaskGroup("[PROJECT]", "[LOCATION]", "[JOB]", "[TASK_GROUP]"),
+ Filter = "",
+ OrderBy = "",
+ };
+ // Make the request
+ PagedEnumerable response = batchServiceClient.ListTasks(request);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ foreach (gcbv::Task 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 (gcbv::ListTasksResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (gcbv::Task 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 (gcbv::Task 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 ListTasksAsync
+ public async Task ListTasksRequestObjectAsync()
+ {
+ // Snippet: ListTasksAsync(ListTasksRequest, CallSettings)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ gcbv::ListTasksRequest request = new gcbv::ListTasksRequest
+ {
+ ParentAsTaskGroupName = gcbv::TaskGroupName.FromProjectLocationJobTaskGroup("[PROJECT]", "[LOCATION]", "[JOB]", "[TASK_GROUP]"),
+ Filter = "",
+ OrderBy = "",
+ };
+ // Make the request
+ PagedAsyncEnumerable response = batchServiceClient.ListTasksAsync(request);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ await response.ForEachAsync((gcbv::Task item) =>
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ });
+
+ // Or iterate over pages (of server-defined size), performing one RPC per page
+ await response.AsRawResponses().ForEachAsync((gcbv::ListTasksResponse page) =>
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (gcbv::Task 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 (gcbv::Task 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 ListTasks
+ public void ListTasks()
+ {
+ // Snippet: ListTasks(string, string, int?, CallSettings)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = gcbv::BatchServiceClient.Create();
+ // Initialize request argument(s)
+ string parent = "projects/[PROJECT]/locations/[LOCATION]/jobs/[JOB]/taskGroups/[TASK_GROUP]";
+ // Make the request
+ PagedEnumerable response = batchServiceClient.ListTasks(parent);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ foreach (gcbv::Task 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 (gcbv::ListTasksResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (gcbv::Task 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 (gcbv::Task 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 ListTasksAsync
+ public async Task ListTasksAsync()
+ {
+ // Snippet: ListTasksAsync(string, string, int?, CallSettings)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ string parent = "projects/[PROJECT]/locations/[LOCATION]/jobs/[JOB]/taskGroups/[TASK_GROUP]";
+ // Make the request
+ PagedAsyncEnumerable response = batchServiceClient.ListTasksAsync(parent);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ await response.ForEachAsync((gcbv::Task item) =>
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ });
+
+ // Or iterate over pages (of server-defined size), performing one RPC per page
+ await response.AsRawResponses().ForEachAsync((gcbv::ListTasksResponse page) =>
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (gcbv::Task 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 (gcbv::Task 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 ListTasks
+ public void ListTasksResourceNames()
+ {
+ // Snippet: ListTasks(TaskGroupName, string, int?, CallSettings)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = gcbv::BatchServiceClient.Create();
+ // Initialize request argument(s)
+ gcbv::TaskGroupName parent = gcbv::TaskGroupName.FromProjectLocationJobTaskGroup("[PROJECT]", "[LOCATION]", "[JOB]", "[TASK_GROUP]");
+ // Make the request
+ PagedEnumerable response = batchServiceClient.ListTasks(parent);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ foreach (gcbv::Task 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 (gcbv::ListTasksResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (gcbv::Task 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 (gcbv::Task 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 ListTasksAsync
+ public async Task ListTasksResourceNamesAsync()
+ {
+ // Snippet: ListTasksAsync(TaskGroupName, string, int?, CallSettings)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ gcbv::TaskGroupName parent = gcbv::TaskGroupName.FromProjectLocationJobTaskGroup("[PROJECT]", "[LOCATION]", "[JOB]", "[TASK_GROUP]");
+ // Make the request
+ PagedAsyncEnumerable response = batchServiceClient.ListTasksAsync(parent);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ await response.ForEachAsync((gcbv::Task item) =>
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ });
+
+ // Or iterate over pages (of server-defined size), performing one RPC per page
+ await response.AsRawResponses().ForEachAsync((gcbv::ListTasksResponse page) =>
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (gcbv::Task 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 (gcbv::Task 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 CreateResourceAllowance
+ public void CreateResourceAllowanceRequestObject()
+ {
+ // Snippet: CreateResourceAllowance(CreateResourceAllowanceRequest, CallSettings)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = gcbv::BatchServiceClient.Create();
+ // Initialize request argument(s)
+ gcbv::CreateResourceAllowanceRequest request = new gcbv::CreateResourceAllowanceRequest
+ {
+ ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
+ ResourceAllowanceId = "",
+ ResourceAllowance = new gcbv::ResourceAllowance(),
+ RequestId = "",
+ };
+ // Make the request
+ gcbv::ResourceAllowance response = batchServiceClient.CreateResourceAllowance(request);
+ // End snippet
+ }
+
+ /// Snippet for CreateResourceAllowanceAsync
+ public async Task CreateResourceAllowanceRequestObjectAsync()
+ {
+ // Snippet: CreateResourceAllowanceAsync(CreateResourceAllowanceRequest, CallSettings)
+ // Additional: CreateResourceAllowanceAsync(CreateResourceAllowanceRequest, CancellationToken)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ gcbv::CreateResourceAllowanceRequest request = new gcbv::CreateResourceAllowanceRequest
+ {
+ ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
+ ResourceAllowanceId = "",
+ ResourceAllowance = new gcbv::ResourceAllowance(),
+ RequestId = "",
+ };
+ // Make the request
+ gcbv::ResourceAllowance response = await batchServiceClient.CreateResourceAllowanceAsync(request);
+ // End snippet
+ }
+
+ /// Snippet for CreateResourceAllowance
+ public void CreateResourceAllowance()
+ {
+ // Snippet: CreateResourceAllowance(string, ResourceAllowance, string, CallSettings)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = gcbv::BatchServiceClient.Create();
+ // Initialize request argument(s)
+ string parent = "projects/[PROJECT]/locations/[LOCATION]";
+ gcbv::ResourceAllowance resourceAllowance = new gcbv::ResourceAllowance();
+ string resourceAllowanceId = "";
+ // Make the request
+ gcbv::ResourceAllowance response = batchServiceClient.CreateResourceAllowance(parent, resourceAllowance, resourceAllowanceId);
+ // End snippet
+ }
+
+ /// Snippet for CreateResourceAllowanceAsync
+ public async Task CreateResourceAllowanceAsync()
+ {
+ // Snippet: CreateResourceAllowanceAsync(string, ResourceAllowance, string, CallSettings)
+ // Additional: CreateResourceAllowanceAsync(string, ResourceAllowance, string, CancellationToken)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ string parent = "projects/[PROJECT]/locations/[LOCATION]";
+ gcbv::ResourceAllowance resourceAllowance = new gcbv::ResourceAllowance();
+ string resourceAllowanceId = "";
+ // Make the request
+ gcbv::ResourceAllowance response = await batchServiceClient.CreateResourceAllowanceAsync(parent, resourceAllowance, resourceAllowanceId);
+ // End snippet
+ }
+
+ /// Snippet for CreateResourceAllowance
+ public void CreateResourceAllowanceResourceNames()
+ {
+ // Snippet: CreateResourceAllowance(LocationName, ResourceAllowance, string, CallSettings)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = gcbv::BatchServiceClient.Create();
+ // Initialize request argument(s)
+ LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
+ gcbv::ResourceAllowance resourceAllowance = new gcbv::ResourceAllowance();
+ string resourceAllowanceId = "";
+ // Make the request
+ gcbv::ResourceAllowance response = batchServiceClient.CreateResourceAllowance(parent, resourceAllowance, resourceAllowanceId);
+ // End snippet
+ }
+
+ /// Snippet for CreateResourceAllowanceAsync
+ public async Task CreateResourceAllowanceResourceNamesAsync()
+ {
+ // Snippet: CreateResourceAllowanceAsync(LocationName, ResourceAllowance, string, CallSettings)
+ // Additional: CreateResourceAllowanceAsync(LocationName, ResourceAllowance, string, CancellationToken)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
+ gcbv::ResourceAllowance resourceAllowance = new gcbv::ResourceAllowance();
+ string resourceAllowanceId = "";
+ // Make the request
+ gcbv::ResourceAllowance response = await batchServiceClient.CreateResourceAllowanceAsync(parent, resourceAllowance, resourceAllowanceId);
+ // End snippet
+ }
+
+ /// Snippet for GetResourceAllowance
+ public void GetResourceAllowanceRequestObject()
+ {
+ // Snippet: GetResourceAllowance(GetResourceAllowanceRequest, CallSettings)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = gcbv::BatchServiceClient.Create();
+ // Initialize request argument(s)
+ gcbv::GetResourceAllowanceRequest request = new gcbv::GetResourceAllowanceRequest
+ {
+ ResourceAllowanceName = gcbv::ResourceAllowanceName.FromProjectLocationResourceAllowance("[PROJECT]", "[LOCATION]", "[RESOURCE_ALLOWANCE]"),
+ };
+ // Make the request
+ gcbv::ResourceAllowance response = batchServiceClient.GetResourceAllowance(request);
+ // End snippet
+ }
+
+ /// Snippet for GetResourceAllowanceAsync
+ public async Task GetResourceAllowanceRequestObjectAsync()
+ {
+ // Snippet: GetResourceAllowanceAsync(GetResourceAllowanceRequest, CallSettings)
+ // Additional: GetResourceAllowanceAsync(GetResourceAllowanceRequest, CancellationToken)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ gcbv::GetResourceAllowanceRequest request = new gcbv::GetResourceAllowanceRequest
+ {
+ ResourceAllowanceName = gcbv::ResourceAllowanceName.FromProjectLocationResourceAllowance("[PROJECT]", "[LOCATION]", "[RESOURCE_ALLOWANCE]"),
+ };
+ // Make the request
+ gcbv::ResourceAllowance response = await batchServiceClient.GetResourceAllowanceAsync(request);
+ // End snippet
+ }
+
+ /// Snippet for GetResourceAllowance
+ public void GetResourceAllowance()
+ {
+ // Snippet: GetResourceAllowance(string, CallSettings)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = gcbv::BatchServiceClient.Create();
+ // Initialize request argument(s)
+ string name = "projects/[PROJECT]/locations/[LOCATION]/resourceAllowances/[RESOURCE_ALLOWANCE]";
+ // Make the request
+ gcbv::ResourceAllowance response = batchServiceClient.GetResourceAllowance(name);
+ // End snippet
+ }
+
+ /// Snippet for GetResourceAllowanceAsync
+ public async Task GetResourceAllowanceAsync()
+ {
+ // Snippet: GetResourceAllowanceAsync(string, CallSettings)
+ // Additional: GetResourceAllowanceAsync(string, CancellationToken)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ string name = "projects/[PROJECT]/locations/[LOCATION]/resourceAllowances/[RESOURCE_ALLOWANCE]";
+ // Make the request
+ gcbv::ResourceAllowance response = await batchServiceClient.GetResourceAllowanceAsync(name);
+ // End snippet
+ }
+
+ /// Snippet for GetResourceAllowance
+ public void GetResourceAllowanceResourceNames()
+ {
+ // Snippet: GetResourceAllowance(ResourceAllowanceName, CallSettings)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = gcbv::BatchServiceClient.Create();
+ // Initialize request argument(s)
+ gcbv::ResourceAllowanceName name = gcbv::ResourceAllowanceName.FromProjectLocationResourceAllowance("[PROJECT]", "[LOCATION]", "[RESOURCE_ALLOWANCE]");
+ // Make the request
+ gcbv::ResourceAllowance response = batchServiceClient.GetResourceAllowance(name);
+ // End snippet
+ }
+
+ /// Snippet for GetResourceAllowanceAsync
+ public async Task GetResourceAllowanceResourceNamesAsync()
+ {
+ // Snippet: GetResourceAllowanceAsync(ResourceAllowanceName, CallSettings)
+ // Additional: GetResourceAllowanceAsync(ResourceAllowanceName, CancellationToken)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ gcbv::ResourceAllowanceName name = gcbv::ResourceAllowanceName.FromProjectLocationResourceAllowance("[PROJECT]", "[LOCATION]", "[RESOURCE_ALLOWANCE]");
+ // Make the request
+ gcbv::ResourceAllowance response = await batchServiceClient.GetResourceAllowanceAsync(name);
+ // End snippet
+ }
+
+ /// Snippet for DeleteResourceAllowance
+ public void DeleteResourceAllowanceRequestObject()
+ {
+ // Snippet: DeleteResourceAllowance(DeleteResourceAllowanceRequest, CallSettings)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = gcbv::BatchServiceClient.Create();
+ // Initialize request argument(s)
+ gcbv::DeleteResourceAllowanceRequest request = new gcbv::DeleteResourceAllowanceRequest
+ {
+ ResourceAllowanceName = gcbv::ResourceAllowanceName.FromProjectLocationResourceAllowance("[PROJECT]", "[LOCATION]", "[RESOURCE_ALLOWANCE]"),
+ Reason = "",
+ RequestId = "",
+ };
+ // Make the request
+ Operation response = batchServiceClient.DeleteResourceAllowance(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 = batchServiceClient.PollOnceDeleteResourceAllowance(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 DeleteResourceAllowanceAsync
+ public async Task DeleteResourceAllowanceRequestObjectAsync()
+ {
+ // Snippet: DeleteResourceAllowanceAsync(DeleteResourceAllowanceRequest, CallSettings)
+ // Additional: DeleteResourceAllowanceAsync(DeleteResourceAllowanceRequest, CancellationToken)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ gcbv::DeleteResourceAllowanceRequest request = new gcbv::DeleteResourceAllowanceRequest
+ {
+ ResourceAllowanceName = gcbv::ResourceAllowanceName.FromProjectLocationResourceAllowance("[PROJECT]", "[LOCATION]", "[RESOURCE_ALLOWANCE]"),
+ Reason = "",
+ RequestId = "",
+ };
+ // Make the request
+ Operation response = await batchServiceClient.DeleteResourceAllowanceAsync(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 batchServiceClient.PollOnceDeleteResourceAllowanceAsync(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 DeleteResourceAllowance
+ public void DeleteResourceAllowance()
+ {
+ // Snippet: DeleteResourceAllowance(string, CallSettings)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = gcbv::BatchServiceClient.Create();
+ // Initialize request argument(s)
+ string name = "projects/[PROJECT]/locations/[LOCATION]/resourceAllowances/[RESOURCE_ALLOWANCE]";
+ // Make the request
+ Operation response = batchServiceClient.DeleteResourceAllowance(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 = batchServiceClient.PollOnceDeleteResourceAllowance(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 DeleteResourceAllowanceAsync
+ public async Task DeleteResourceAllowanceAsync()
+ {
+ // Snippet: DeleteResourceAllowanceAsync(string, CallSettings)
+ // Additional: DeleteResourceAllowanceAsync(string, CancellationToken)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ string name = "projects/[PROJECT]/locations/[LOCATION]/resourceAllowances/[RESOURCE_ALLOWANCE]";
+ // Make the request
+ Operation response = await batchServiceClient.DeleteResourceAllowanceAsync(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 batchServiceClient.PollOnceDeleteResourceAllowanceAsync(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 DeleteResourceAllowance
+ public void DeleteResourceAllowanceResourceNames()
+ {
+ // Snippet: DeleteResourceAllowance(ResourceAllowanceName, CallSettings)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = gcbv::BatchServiceClient.Create();
+ // Initialize request argument(s)
+ gcbv::ResourceAllowanceName name = gcbv::ResourceAllowanceName.FromProjectLocationResourceAllowance("[PROJECT]", "[LOCATION]", "[RESOURCE_ALLOWANCE]");
+ // Make the request
+ Operation response = batchServiceClient.DeleteResourceAllowance(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 = batchServiceClient.PollOnceDeleteResourceAllowance(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 DeleteResourceAllowanceAsync
+ public async Task DeleteResourceAllowanceResourceNamesAsync()
+ {
+ // Snippet: DeleteResourceAllowanceAsync(ResourceAllowanceName, CallSettings)
+ // Additional: DeleteResourceAllowanceAsync(ResourceAllowanceName, CancellationToken)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ gcbv::ResourceAllowanceName name = gcbv::ResourceAllowanceName.FromProjectLocationResourceAllowance("[PROJECT]", "[LOCATION]", "[RESOURCE_ALLOWANCE]");
+ // Make the request
+ Operation response = await batchServiceClient.DeleteResourceAllowanceAsync(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 batchServiceClient.PollOnceDeleteResourceAllowanceAsync(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 ListResourceAllowances
+ public void ListResourceAllowancesRequestObject()
+ {
+ // Snippet: ListResourceAllowances(ListResourceAllowancesRequest, CallSettings)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = gcbv::BatchServiceClient.Create();
+ // Initialize request argument(s)
+ gcbv::ListResourceAllowancesRequest request = new gcbv::ListResourceAllowancesRequest
+ {
+ ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
+ };
+ // Make the request
+ PagedEnumerable response = batchServiceClient.ListResourceAllowances(request);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ foreach (gcbv::ResourceAllowance 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 (gcbv::ListResourceAllowancesResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (gcbv::ResourceAllowance 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 (gcbv::ResourceAllowance 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 ListResourceAllowancesAsync
+ public async Task ListResourceAllowancesRequestObjectAsync()
+ {
+ // Snippet: ListResourceAllowancesAsync(ListResourceAllowancesRequest, CallSettings)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ gcbv::ListResourceAllowancesRequest request = new gcbv::ListResourceAllowancesRequest
+ {
+ ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
+ };
+ // Make the request
+ PagedAsyncEnumerable response = batchServiceClient.ListResourceAllowancesAsync(request);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ await response.ForEachAsync((gcbv::ResourceAllowance item) =>
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ });
+
+ // Or iterate over pages (of server-defined size), performing one RPC per page
+ await response.AsRawResponses().ForEachAsync((gcbv::ListResourceAllowancesResponse page) =>
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (gcbv::ResourceAllowance 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 (gcbv::ResourceAllowance 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 ListResourceAllowances
+ public void ListResourceAllowances()
+ {
+ // Snippet: ListResourceAllowances(string, string, int?, CallSettings)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = gcbv::BatchServiceClient.Create();
+ // Initialize request argument(s)
+ string parent = "projects/[PROJECT]/locations/[LOCATION]";
+ // Make the request
+ PagedEnumerable response = batchServiceClient.ListResourceAllowances(parent);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ foreach (gcbv::ResourceAllowance 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 (gcbv::ListResourceAllowancesResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (gcbv::ResourceAllowance 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 (gcbv::ResourceAllowance 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 ListResourceAllowancesAsync
+ public async Task ListResourceAllowancesAsync()
+ {
+ // Snippet: ListResourceAllowancesAsync(string, string, int?, CallSettings)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ string parent = "projects/[PROJECT]/locations/[LOCATION]";
+ // Make the request
+ PagedAsyncEnumerable response = batchServiceClient.ListResourceAllowancesAsync(parent);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ await response.ForEachAsync((gcbv::ResourceAllowance item) =>
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ });
+
+ // Or iterate over pages (of server-defined size), performing one RPC per page
+ await response.AsRawResponses().ForEachAsync((gcbv::ListResourceAllowancesResponse page) =>
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (gcbv::ResourceAllowance 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 (gcbv::ResourceAllowance 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 ListResourceAllowances
+ public void ListResourceAllowancesResourceNames()
+ {
+ // Snippet: ListResourceAllowances(LocationName, string, int?, CallSettings)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = gcbv::BatchServiceClient.Create();
+ // Initialize request argument(s)
+ LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
+ // Make the request
+ PagedEnumerable response = batchServiceClient.ListResourceAllowances(parent);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ foreach (gcbv::ResourceAllowance 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 (gcbv::ListResourceAllowancesResponse page in response.AsRawResponses())
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (gcbv::ResourceAllowance 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 (gcbv::ResourceAllowance 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 ListResourceAllowancesAsync
+ public async Task ListResourceAllowancesResourceNamesAsync()
+ {
+ // Snippet: ListResourceAllowancesAsync(LocationName, string, int?, CallSettings)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
+ // Make the request
+ PagedAsyncEnumerable response = batchServiceClient.ListResourceAllowancesAsync(parent);
+
+ // Iterate over all response items, lazily performing RPCs as required
+ await response.ForEachAsync((gcbv::ResourceAllowance item) =>
+ {
+ // Do something with each item
+ Console.WriteLine(item);
+ });
+
+ // Or iterate over pages (of server-defined size), performing one RPC per page
+ await response.AsRawResponses().ForEachAsync((gcbv::ListResourceAllowancesResponse page) =>
+ {
+ // Do something with each page of items
+ Console.WriteLine("A page of results:");
+ foreach (gcbv::ResourceAllowance 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 (gcbv::ResourceAllowance 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 UpdateResourceAllowance
+ public void UpdateResourceAllowanceRequestObject()
+ {
+ // Snippet: UpdateResourceAllowance(UpdateResourceAllowanceRequest, CallSettings)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = gcbv::BatchServiceClient.Create();
+ // Initialize request argument(s)
+ gcbv::UpdateResourceAllowanceRequest request = new gcbv::UpdateResourceAllowanceRequest
+ {
+ ResourceAllowance = new gcbv::ResourceAllowance(),
+ UpdateMask = new FieldMask(),
+ RequestId = "",
+ };
+ // Make the request
+ gcbv::ResourceAllowance response = batchServiceClient.UpdateResourceAllowance(request);
+ // End snippet
+ }
+
+ /// Snippet for UpdateResourceAllowanceAsync
+ public async Task UpdateResourceAllowanceRequestObjectAsync()
+ {
+ // Snippet: UpdateResourceAllowanceAsync(UpdateResourceAllowanceRequest, CallSettings)
+ // Additional: UpdateResourceAllowanceAsync(UpdateResourceAllowanceRequest, CancellationToken)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ gcbv::UpdateResourceAllowanceRequest request = new gcbv::UpdateResourceAllowanceRequest
+ {
+ ResourceAllowance = new gcbv::ResourceAllowance(),
+ UpdateMask = new FieldMask(),
+ RequestId = "",
+ };
+ // Make the request
+ gcbv::ResourceAllowance response = await batchServiceClient.UpdateResourceAllowanceAsync(request);
+ // End snippet
+ }
+
+ /// Snippet for UpdateResourceAllowance
+ public void UpdateResourceAllowance()
+ {
+ // Snippet: UpdateResourceAllowance(ResourceAllowance, FieldMask, CallSettings)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = gcbv::BatchServiceClient.Create();
+ // Initialize request argument(s)
+ gcbv::ResourceAllowance resourceAllowance = new gcbv::ResourceAllowance();
+ FieldMask updateMask = new FieldMask();
+ // Make the request
+ gcbv::ResourceAllowance response = batchServiceClient.UpdateResourceAllowance(resourceAllowance, updateMask);
+ // End snippet
+ }
+
+ /// Snippet for UpdateResourceAllowanceAsync
+ public async Task UpdateResourceAllowanceAsync()
+ {
+ // Snippet: UpdateResourceAllowanceAsync(ResourceAllowance, FieldMask, CallSettings)
+ // Additional: UpdateResourceAllowanceAsync(ResourceAllowance, FieldMask, CancellationToken)
+ // Create client
+ gcbv::BatchServiceClient batchServiceClient = await gcbv::BatchServiceClient.CreateAsync();
+ // Initialize request argument(s)
+ gcbv::ResourceAllowance resourceAllowance = new gcbv::ResourceAllowance();
+ FieldMask updateMask = new FieldMask();
+ // Make the request
+ gcbv::ResourceAllowance response = await batchServiceClient.UpdateResourceAllowanceAsync(resourceAllowance, updateMask);
+ // End snippet
+ }
+ }
+}
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.Snippets/Google.Cloud.Batch.V1Alpha.Snippets.csproj b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.Snippets/Google.Cloud.Batch.V1Alpha.Snippets.csproj
new file mode 100755
index 000000000000..7b2c051e501a
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha.Snippets/Google.Cloud.Batch.V1Alpha.Snippets.csproj
@@ -0,0 +1,15 @@
+
+
+
+
+ net6.0;net462
+ latest
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha/Batch.g.cs b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha/Batch.g.cs
new file mode 100755
index 000000000000..31178271ca5d
--- /dev/null
+++ b/owl-bot-staging/Google.Cloud.Batch.V1Alpha/Google.Cloud.Batch.V1Alpha/Batch.g.cs
@@ -0,0 +1,5303 @@
+//
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/batch/v1alpha/batch.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.Batch.V1Alpha {
+
+ /// Holder for reflection information generated from google/cloud/batch/v1alpha/batch.proto
+ public static partial class BatchReflection {
+
+ #region Descriptor
+ /// File descriptor for google/cloud/batch/v1alpha/batch.proto
+ public static pbr::FileDescriptor Descriptor {
+ get { return descriptor; }
+ }
+ private static pbr::FileDescriptor descriptor;
+
+ static BatchReflection() {
+ byte[] descriptorData = global::System.Convert.FromBase64String(
+ string.Concat(
+ "CiZnb29nbGUvY2xvdWQvYmF0Y2gvdjFhbHBoYS9iYXRjaC5wcm90bxIaZ29v",
+ "Z2xlLmNsb3VkLmJhdGNoLnYxYWxwaGEaHGdvb2dsZS9hcGkvYW5ub3RhdGlv",
+ "bnMucHJvdG8aF2dvb2dsZS9hcGkvY2xpZW50LnByb3RvGh9nb29nbGUvYXBp",
+ "L2ZpZWxkX2JlaGF2aW9yLnByb3RvGhtnb29nbGUvYXBpL2ZpZWxkX2luZm8u",
+ "cHJvdG8aGWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8aJGdvb2dsZS9jbG91",
+ "ZC9iYXRjaC92MWFscGhhL2pvYi5wcm90bxozZ29vZ2xlL2Nsb3VkL2JhdGNo",
+ "L3YxYWxwaGEvcmVzb3VyY2VfYWxsb3dhbmNlLnByb3RvGiVnb29nbGUvY2xv",
+ "dWQvYmF0Y2gvdjFhbHBoYS90YXNrLnByb3RvGiNnb29nbGUvbG9uZ3J1bm5p",
+ "bmcvb3BlcmF0aW9ucy5wcm90bxobZ29vZ2xlL3Byb3RvYnVmL2VtcHR5LnBy",
+ "b3RvGiBnb29nbGUvcHJvdG9idWYvZmllbGRfbWFzay5wcm90bxofZ29vZ2xl",
+ "L3Byb3RvYnVmL3RpbWVzdGFtcC5wcm90byKgAQoQQ3JlYXRlSm9iUmVxdWVz",
+ "dBIwCgZwYXJlbnQYASABKAlCIOBBAvpBGhIYYmF0Y2guZ29vZ2xlYXBpcy5j",
+ "b20vSm9iEg4KBmpvYl9pZBgCIAEoCRIxCgNqb2IYAyABKAsyHy5nb29nbGUu",
+ "Y2xvdWQuYmF0Y2gudjFhbHBoYS5Kb2JCA+BBAhIXCgpyZXF1ZXN0X2lkGAQg",
+ "ASgJQgPgQQEiPwoNR2V0Sm9iUmVxdWVzdBIuCgRuYW1lGAEgASgJQiDgQQL6",
+ "QRoKGGJhdGNoLmdvb2dsZWFwaXMuY29tL0pvYiJOChBEZWxldGVKb2JSZXF1",
+ "ZXN0EgwKBG5hbWUYASABKAkSEwoGcmVhc29uGAIgASgJQgPgQQESFwoKcmVx",
+ "dWVzdF9pZBgEIAEoCUID4EEBImMKEENhbmNlbEpvYlJlcXVlc3QSLgoEbmFt",
+ "ZRgBIAEoCUIg4EEC+kEaChhiYXRjaC5nb29nbGVhcGlzLmNvbS9Kb2ISHwoK",
+ "cmVxdWVzdF9pZBgEIAEoCUIL4EEB4ozP1wgCCAEiEwoRQ2FuY2VsSm9iUmVz",
+ "cG9uc2UinAEKEFVwZGF0ZUpvYlJlcXVlc3QSMQoDam9iGAEgASgLMh8uZ29v",
+ "Z2xlLmNsb3VkLmJhdGNoLnYxYWxwaGEuSm9iQgPgQQISNAoLdXBkYXRlX21h",
+ "c2sYAiABKAsyGi5nb29nbGUucHJvdG9idWYuRmllbGRNYXNrQgPgQQISHwoK",
+ "cmVxdWVzdF9pZBgDIAEoCUIL4EEB4ozP1wgCCAEibwoPTGlzdEpvYnNSZXF1",
+ "ZXN0Eg4KBnBhcmVudBgBIAEoCRIOCgZmaWx0ZXIYBCABKAkSFQoIb3JkZXJf",
+ "YnkYBSABKAlCA+BBARIRCglwYWdlX3NpemUYAiABKAUSEgoKcGFnZV90b2tl",
+ "bhgDIAEoCSJvChBMaXN0Sm9ic1Jlc3BvbnNlEi0KBGpvYnMYASADKAsyHy5n",
+ "b29nbGUuY2xvdWQuYmF0Y2gudjFhbHBoYS5Kb2ISFwoPbmV4dF9wYWdlX3Rv",
+ "a2VuGAIgASgJEhMKC3VucmVhY2hhYmxlGAMgAygJIpMBChBMaXN0VGFza3NS",
+ "ZXF1ZXN0EjYKBnBhcmVudBgBIAEoCUIm4EEC+kEgCh5iYXRjaC5nb29nbGVh",
+ "cGlzLmNvbS9UYXNrR3JvdXASDgoGZmlsdGVyGAIgASgJEhAKCG9yZGVyX2J5",
+ "GAUgASgJEhEKCXBhZ2Vfc2l6ZRgDIAEoBRISCgpwYWdlX3Rva2VuGAQgASgJ",
+ "InIKEUxpc3RUYXNrc1Jlc3BvbnNlEi8KBXRhc2tzGAEgAygLMiAuZ29vZ2xl",
+ "LmNsb3VkLmJhdGNoLnYxYWxwaGEuVGFzaxIXCg9uZXh0X3BhZ2VfdG9rZW4Y",
+ "AiABKAkSEwoLdW5yZWFjaGFibGUYAyADKAkiQQoOR2V0VGFza1JlcXVlc3QS",
+ "LwoEbmFtZRgBIAEoCUIh4EEC+kEbChliYXRjaC5nb29nbGVhcGlzLmNvbS9U",
+ "YXNrIvABCh5DcmVhdGVSZXNvdXJjZUFsbG93YW5jZVJlcXVlc3QSPgoGcGFy",
+ "ZW50GAEgASgJQi7gQQL6QSgSJmJhdGNoLmdvb2dsZWFwaXMuY29tL1Jlc291",
+ "cmNlQWxsb3dhbmNlEh0KFXJlc291cmNlX2FsbG93YW5jZV9pZBgCIAEoCRJO",
+ "ChJyZXNvdXJjZV9hbGxvd2FuY2UYAyABKAsyLS5nb29nbGUuY2xvdWQuYmF0",
+ "Y2gudjFhbHBoYS5SZXNvdXJjZUFsbG93YW5jZUID4EECEh8KCnJlcXVlc3Rf",
+ "aWQYBCABKAlCC+BBAeKMz9cIAggBIlsKG0dldFJlc291cmNlQWxsb3dhbmNl",
+ "UmVxdWVzdBI8CgRuYW1lGAEgASgJQi7gQQL6QSgKJmJhdGNoLmdvb2dsZWFw",
+ "aXMuY29tL1Jlc291cmNlQWxsb3dhbmNlIpQBCh5EZWxldGVSZXNvdXJjZUFs",
+ "bG93YW5jZVJlcXVlc3QSPAoEbmFtZRgBIAEoCUIu4EEC+kEoCiZiYXRjaC5n",
+ "b29nbGVhcGlzLmNvbS9SZXNvdXJjZUFsbG93YW5jZRITCgZyZWFzb24YAiAB",
+ "KAlCA+BBARIfCgpyZXF1ZXN0X2lkGAQgASgJQgvgQQHijM/XCAIIASKQAQod",
+ "TGlzdFJlc291cmNlQWxsb3dhbmNlc1JlcXVlc3QSPgoGcGFyZW50GAEgASgJ",
+ "Qi7gQQL6QSgSJmJhdGNoLmdvb2dsZWFwaXMuY29tL1Jlc291cmNlQWxsb3dh",
+ "bmNlEhYKCXBhZ2Vfc2l6ZRgCIAEoBUID4EEBEhcKCnBhZ2VfdG9rZW4YAyAB",
+ "KAlCA+BBASKaAQoeTGlzdFJlc291cmNlQWxsb3dhbmNlc1Jlc3BvbnNlEkoK",
+ "E3Jlc291cmNlX2FsbG93YW5jZXMYASADKAsyLS5nb29nbGUuY2xvdWQuYmF0",
+ "Y2gudjFhbHBoYS5SZXNvdXJjZUFsbG93YW5jZRIXCg9uZXh0X3BhZ2VfdG9r",
+ "ZW4YAiABKAkSEwoLdW5yZWFjaGFibGUYAyADKAkixwEKHlVwZGF0ZVJlc291",
+ "cmNlQWxsb3dhbmNlUmVxdWVzdBJOChJyZXNvdXJjZV9hbGxvd2FuY2UYASAB",
+ "KAsyLS5nb29nbGUuY2xvdWQuYmF0Y2gudjFhbHBoYS5SZXNvdXJjZUFsbG93",
+ "YW5jZUID4EECEjQKC3VwZGF0ZV9tYXNrGAIgASgLMhouZ29vZ2xlLnByb3Rv",
+ "YnVmLkZpZWxkTWFza0ID4EECEh8KCnJlcXVlc3RfaWQYAyABKAlCC+BBAeKM",
+ "z9cIAggBIoACChFPcGVyYXRpb25NZXRhZGF0YRI0CgtjcmVhdGVfdGltZRgB",
+ "IAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCA+BBAxIxCghlbmRf",
+ "dGltZRgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCA+BBAxIT",
+ "CgZ0YXJnZXQYAyABKAlCA+BBAxIRCgR2ZXJiGAQgASgJQgPgQQMSGwoOc3Rh",
+ "dHVzX21lc3NhZ2UYBSABKAlCA+BBAxIjChZyZXF1ZXN0ZWRfY2FuY2VsbGF0",
+ "aW9uGAYgASgIQgPgQQMSGAoLYXBpX3ZlcnNpb24YByABKAlCA+BBAzKkFgoM",
+ "QmF0Y2hTZXJ2aWNlEqoBCglDcmVhdGVKb2ISLC5nb29nbGUuY2xvdWQuYmF0",
+ "Y2gudjFhbHBoYS5DcmVhdGVKb2JSZXF1ZXN0Gh8uZ29vZ2xlLmNsb3VkLmJh",
+ "dGNoLnYxYWxwaGEuSm9iIk7aQRFwYXJlbnQsam9iLGpvYl9pZILT5JMCNCIt",
+ "L3YxYWxwaGEve3BhcmVudD1wcm9qZWN0cy8qL2xvY2F0aW9ucy8qfS9qb2Jz",
+ "OgNqb2ISkgEKBkdldEpvYhIpLmdvb2dsZS5jbG91ZC5iYXRjaC52MWFscGhh",
+ "LkdldEpvYlJlcXVlc3QaHy5nb29nbGUuY2xvdWQuYmF0Y2gudjFhbHBoYS5K",
+ "b2IiPNpBBG5hbWWC0+STAi8SLS92MWFscGhhL3tuYW1lPXByb2plY3RzLyov",
+ "bG9jYXRpb25zLyovam9icy8qfRLfAQoJRGVsZXRlSm9iEiwuZ29vZ2xlLmNs",
+ "b3VkLmJhdGNoLnYxYWxwaGEuRGVsZXRlSm9iUmVxdWVzdBodLmdvb2dsZS5s",
+ "b25ncnVubmluZy5PcGVyYXRpb24ihAHKQUUKFWdvb2dsZS5wcm90b2J1Zi5F",
+ "bXB0eRIsZ29vZ2xlLmNsb3VkLmJhdGNoLnYxYWxwaGEuT3BlcmF0aW9uTWV0",
+ "YWRhdGHaQQRuYW1lgtPkkwIvKi0vdjFhbHBoYS97bmFtZT1wcm9qZWN0cy8q",
+ "L2xvY2F0aW9ucy8qL2pvYnMvKn0SgAIKCUNhbmNlbEpvYhIsLmdvb2dsZS5j",
+ "bG91ZC5iYXRjaC52MWFscGhhLkNhbmNlbEpvYlJlcXVlc3QaHS5nb29nbGUu",
+ "bG9uZ3J1bm5pbmcuT3BlcmF0aW9uIqUBykFcCixnb29nbGUuY2xvdWQuYmF0",
+ "Y2gudjFhbHBoYS5DYW5jZWxKb2JSZXNwb25zZRIsZ29vZ2xlLmNsb3VkLmJh",
+ "dGNoLnYxYWxwaGEuT3BlcmF0aW9uTWV0YWRhdGHaQQRuYW1lgtPkkwI5IjQv",
+ "djFhbHBoYS97bmFtZT1wcm9qZWN0cy8qL2xvY2F0aW9ucy8qL2pvYnMvKn06",
+ "Y2FuY2VsOgEqEqwBCglVcGRhdGVKb2ISLC5nb29nbGUuY2xvdWQuYmF0Y2gu",
+ "djFhbHBoYS5VcGRhdGVKb2JSZXF1ZXN0Gh8uZ29vZ2xlLmNsb3VkLmJhdGNo",
+ "LnYxYWxwaGEuSm9iIlDaQQ9qb2IsdXBkYXRlX21hc2uC0+STAjgyMS92MWFs",
+ "cGhhL3tqb2IubmFtZT1wcm9qZWN0cy8qL2xvY2F0aW9ucy8qL2pvYnMvKn06",
+ "A2pvYhKlAQoITGlzdEpvYnMSKy5nb29nbGUuY2xvdWQuYmF0Y2gudjFhbHBo",
+ "YS5MaXN0Sm9ic1JlcXVlc3QaLC5nb29nbGUuY2xvdWQuYmF0Y2gudjFhbHBo",
+ "YS5MaXN0Sm9ic1Jlc3BvbnNlIj7aQQZwYXJlbnSC0+STAi8SLS92MWFscGhh",
+ "L3twYXJlbnQ9cHJvamVjdHMvKi9sb2NhdGlvbnMvKn0vam9icxKqAQoHR2V0",
+ "VGFzaxIqLmdvb2dsZS5jbG91ZC5iYXRjaC52MWFscGhhLkdldFRhc2tSZXF1",
+ "ZXN0GiAuZ29vZ2xlLmNsb3VkLmJhdGNoLnYxYWxwaGEuVGFzayJR2kEEbmFt",
+ "ZYLT5JMCRBJCL3YxYWxwaGEve25hbWU9cHJvamVjdHMvKi9sb2NhdGlvbnMv",
+ "Ki9qb2JzLyovdGFza0dyb3Vwcy8qL3Rhc2tzLyp9Er0BCglMaXN0VGFza3MS",
+ "LC5nb29nbGUuY2xvdWQuYmF0Y2gudjFhbHBoYS5MaXN0VGFza3NSZXF1ZXN0",
+ "Gi0uZ29vZ2xlLmNsb3VkLmJhdGNoLnYxYWxwaGEuTGlzdFRhc2tzUmVzcG9u",
+ "c2UiU9pBBnBhcmVudILT5JMCRBJCL3YxYWxwaGEve3BhcmVudD1wcm9qZWN0",
+ "cy8qL2xvY2F0aW9ucy8qL2pvYnMvKi90YXNrR3JvdXBzLyp9L3Rhc2tzEpAC",
+ "ChdDcmVhdGVSZXNvdXJjZUFsbG93YW5jZRI6Lmdvb2dsZS5jbG91ZC5iYXRj",
+ "aC52MWFscGhhLkNyZWF0ZVJlc291cmNlQWxsb3dhbmNlUmVxdWVzdBotLmdv",
+ "b2dsZS5jbG91ZC5iYXRjaC52MWFscGhhLlJlc291cmNlQWxsb3dhbmNlIokB",
+ "2kEvcGFyZW50LHJlc291cmNlX2FsbG93YW5jZSxyZXNvdXJjZV9hbGxvd2Fu",
+ "Y2VfaWSC0+STAlEiOy92MWFscGhhL3twYXJlbnQ9cHJvamVjdHMvKi9sb2Nh",
+ "dGlvbnMvKn0vcmVzb3VyY2VBbGxvd2FuY2VzOhJyZXNvdXJjZV9hbGxvd2Fu",
+ "Y2USygEKFEdldFJlc291cmNlQWxsb3dhbmNlEjcuZ29vZ2xlLmNsb3VkLmJh",
+ "dGNoLnYxYWxwaGEuR2V0UmVzb3VyY2VBbGxvd2FuY2VSZXF1ZXN0Gi0uZ29v",
+ "Z2xlLmNsb3VkLmJhdGNoLnYxYWxwaGEuUmVzb3VyY2VBbGxvd2FuY2UiStpB",
+ "BG5hbWWC0+STAj0SOy92MWFscGhhL3tuYW1lPXByb2plY3RzLyovbG9jYXRp",
+ "b25zLyovcmVzb3VyY2VBbGxvd2FuY2VzLyp9EokCChdEZWxldGVSZXNvdXJj",
+ "ZUFsbG93YW5jZRI6Lmdvb2dsZS5jbG91ZC5iYXRjaC52MWFscGhhLkRlbGV0",
+ "ZVJlc291cmNlQWxsb3dhbmNlUmVxdWVzdBodLmdvb2dsZS5sb25ncnVubmlu",
+ "Zy5PcGVyYXRpb24ikgHKQUUKFWdvb2dsZS5wcm90b2J1Zi5FbXB0eRIsZ29v",
+ "Z2xlLmNsb3VkLmJhdGNoLnYxYWxwaGEuT3BlcmF0aW9uTWV0YWRhdGHaQQRu",
+ "YW1lgtPkkwI9KjsvdjFhbHBoYS97bmFtZT1wcm9qZWN0cy8qL2xvY2F0aW9u",
+ "cy8qL3Jlc291cmNlQWxsb3dhbmNlcy8qfRLdAQoWTGlzdFJlc291cmNlQWxs",
+ "b3dhbmNlcxI5Lmdvb2dsZS5jbG91ZC5iYXRjaC52MWFscGhhLkxpc3RSZXNv",
+ "dXJjZUFsbG93YW5jZXNSZXF1ZXN0GjouZ29vZ2xlLmNsb3VkLmJhdGNoLnYx",
+ "YWxwaGEuTGlzdFJlc291cmNlQWxsb3dhbmNlc1Jlc3BvbnNlIkzaQQZwYXJl",
+ "bnSC0+STAj0SOy92MWFscGhhL3twYXJlbnQ9cHJvamVjdHMvKi9sb2NhdGlv",
+ "bnMvKn0vcmVzb3VyY2VBbGxvd2FuY2VzEpICChdVcGRhdGVSZXNvdXJjZUFs",
+ "bG93YW5jZRI6Lmdvb2dsZS5jbG91ZC5iYXRjaC52MWFscGhhLlVwZGF0ZVJl",
+ "c291cmNlQWxsb3dhbmNlUmVxdWVzdBotLmdvb2dsZS5jbG91ZC5iYXRjaC52",
+ "MWFscGhhLlJlc291cmNlQWxsb3dhbmNlIosB2kEecmVzb3VyY2VfYWxsb3dh",
+ "bmNlLHVwZGF0ZV9tYXNrgtPkkwJkMk4vdjFhbHBoYS97cmVzb3VyY2VfYWxs",
+ "b3dhbmNlLm5hbWU9cHJvamVjdHMvKi9sb2NhdGlvbnMvKi9yZXNvdXJjZUFs",
+ "bG93YW5jZXMvKn06EnJlc291cmNlX2FsbG93YW5jZRpIykEUYmF0Y2guZ29v",
+ "Z2xlYXBpcy5jb23SQS5odHRwczovL3d3dy5nb29nbGVhcGlzLmNvbS9hdXRo",
+ "L2Nsb3VkLXBsYXRmb3JtQsQBCh5jb20uZ29vZ2xlLmNsb3VkLmJhdGNoLnYx",
+ "YWxwaGFCCkJhdGNoUHJvdG9QAVo0Y2xvdWQuZ29vZ2xlLmNvbS9nby9iYXRj",
+ "aC9hcGl2MWFscGhhL2JhdGNocGI7YmF0Y2hwYqICA0dDQqoCGkdvb2dsZS5D",
+ "bG91ZC5CYXRjaC5WMUFscGhhygIaR29vZ2xlXENsb3VkXEJhdGNoXFYxYWxw",
+ "aGHqAh1Hb29nbGU6OkNsb3VkOjpCYXRjaDo6VjFhbHBoYWIGcHJvdG8z"));
+ descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
+ new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.FieldInfoReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Cloud.Batch.V1Alpha.JobReflection.Descriptor, global::Google.Cloud.Batch.V1Alpha.ResourceAllowanceReflection.Descriptor, global::Google.Cloud.Batch.V1Alpha.TaskReflection.Descriptor, global::Google.LongRunning.OperationsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, },
+ new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
+ new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Batch.V1Alpha.CreateJobRequest), global::Google.Cloud.Batch.V1Alpha.CreateJobRequest.Parser, new[]{ "Parent", "JobId", "Job", "RequestId" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Batch.V1Alpha.GetJobRequest), global::Google.Cloud.Batch.V1Alpha.GetJobRequest.Parser, new[]{ "Name" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Batch.V1Alpha.DeleteJobRequest), global::Google.Cloud.Batch.V1Alpha.DeleteJobRequest.Parser, new[]{ "Name", "Reason", "RequestId" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Batch.V1Alpha.CancelJobRequest), global::Google.Cloud.Batch.V1Alpha.CancelJobRequest.Parser, new[]{ "Name", "RequestId" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Batch.V1Alpha.CancelJobResponse), global::Google.Cloud.Batch.V1Alpha.CancelJobResponse.Parser, null, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Batch.V1Alpha.UpdateJobRequest), global::Google.Cloud.Batch.V1Alpha.UpdateJobRequest.Parser, new[]{ "Job", "UpdateMask", "RequestId" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Batch.V1Alpha.ListJobsRequest), global::Google.Cloud.Batch.V1Alpha.ListJobsRequest.Parser, new[]{ "Parent", "Filter", "OrderBy", "PageSize", "PageToken" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Batch.V1Alpha.ListJobsResponse), global::Google.Cloud.Batch.V1Alpha.ListJobsResponse.Parser, new[]{ "Jobs", "NextPageToken", "Unreachable" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Batch.V1Alpha.ListTasksRequest), global::Google.Cloud.Batch.V1Alpha.ListTasksRequest.Parser, new[]{ "Parent", "Filter", "OrderBy", "PageSize", "PageToken" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Batch.V1Alpha.ListTasksResponse), global::Google.Cloud.Batch.V1Alpha.ListTasksResponse.Parser, new[]{ "Tasks", "NextPageToken", "Unreachable" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Batch.V1Alpha.GetTaskRequest), global::Google.Cloud.Batch.V1Alpha.GetTaskRequest.Parser, new[]{ "Name" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Batch.V1Alpha.CreateResourceAllowanceRequest), global::Google.Cloud.Batch.V1Alpha.CreateResourceAllowanceRequest.Parser, new[]{ "Parent", "ResourceAllowanceId", "ResourceAllowance", "RequestId" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Batch.V1Alpha.GetResourceAllowanceRequest), global::Google.Cloud.Batch.V1Alpha.GetResourceAllowanceRequest.Parser, new[]{ "Name" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Batch.V1Alpha.DeleteResourceAllowanceRequest), global::Google.Cloud.Batch.V1Alpha.DeleteResourceAllowanceRequest.Parser, new[]{ "Name", "Reason", "RequestId" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Batch.V1Alpha.ListResourceAllowancesRequest), global::Google.Cloud.Batch.V1Alpha.ListResourceAllowancesRequest.Parser, new[]{ "Parent", "PageSize", "PageToken" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Batch.V1Alpha.ListResourceAllowancesResponse), global::Google.Cloud.Batch.V1Alpha.ListResourceAllowancesResponse.Parser, new[]{ "ResourceAllowances", "NextPageToken", "Unreachable" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Batch.V1Alpha.UpdateResourceAllowanceRequest), global::Google.Cloud.Batch.V1Alpha.UpdateResourceAllowanceRequest.Parser, new[]{ "ResourceAllowance", "UpdateMask", "RequestId" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Batch.V1Alpha.OperationMetadata), global::Google.Cloud.Batch.V1Alpha.OperationMetadata.Parser, new[]{ "CreateTime", "EndTime", "Target", "Verb", "StatusMessage", "RequestedCancellation", "ApiVersion" }, null, null, null, null)
+ }));
+ }
+ #endregion
+
+ }
+ #region Messages
+ ///
+ /// CreateJob Request.
+ ///
+ [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
+ public sealed partial class CreateJobRequest : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateJobRequest());
+ 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.Batch.V1Alpha.BatchReflection.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 CreateJobRequest() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public CreateJobRequest(CreateJobRequest other) : this() {
+ parent_ = other.parent_;
+ jobId_ = other.jobId_;
+ job_ = other.job_ != null ? other.job_.Clone() : null;
+ requestId_ = other.requestId_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public CreateJobRequest Clone() {
+ return new CreateJobRequest(this);
+ }
+
+ /// Field number for the "parent" field.
+ public const int ParentFieldNumber = 1;
+ private string parent_ = "";
+ ///
+ /// Required. The parent resource name where the Job will be created.
+ /// Pattern: "projects/{project}/locations/{location}"
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Parent {
+ get { return parent_; }
+ set {
+ parent_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "job_id" field.
+ public const int JobIdFieldNumber = 2;
+ private string jobId_ = "";
+ ///
+ /// ID used to uniquely identify the Job within its parent scope.
+ /// This field should contain at most 63 characters and must start with
+ /// lowercase characters.
+ /// Only lowercase characters, numbers and '-' are accepted.
+ /// The '-' character cannot be the first or the last one.
+ /// A system generated ID will be used if the field is not set.
+ ///
+ /// The job.name field in the request will be ignored and the created resource
+ /// name of the Job will be "{parent}/jobs/{job_id}".
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string JobId {
+ get { return jobId_; }
+ set {
+ jobId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "job" field.
+ public const int JobFieldNumber = 3;
+ private global::Google.Cloud.Batch.V1Alpha.Job job_;
+ ///
+ /// Required. The Job to create.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Google.Cloud.Batch.V1Alpha.Job Job {
+ get { return job_; }
+ set {
+ job_ = value;
+ }
+ }
+
+ /// Field number for the "request_id" field.
+ public const int RequestIdFieldNumber = 4;
+ private string requestId_ = "";
+ ///
+ /// Optional. An optional request ID to identify requests. Specify a unique
+ /// request ID so that if you must retry your request, the server will know to
+ /// ignore the request if it has already been completed. The server will
+ /// guarantee that for at least 60 minutes since the first request.
+ ///
+ /// For example, consider a situation where you make an initial request and
+ /// the request times out. If you make the request again with the same request
+ /// ID, the server can check if original operation with the same request ID
+ /// was received, and if so, will ignore the second request. This prevents
+ /// clients from accidentally creating duplicate commitments.
+ ///
+ /// The request ID must be a valid UUID with the exception that zero UUID is
+ /// not supported (00000000-0000-0000-0000-000000000000).
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string RequestId {
+ get { return requestId_; }
+ set {
+ requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as CreateJobRequest);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(CreateJobRequest other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Parent != other.Parent) return false;
+ if (JobId != other.JobId) return false;
+ if (!object.Equals(Job, other.Job)) return false;
+ if (RequestId != other.RequestId) 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;
+ if (Parent.Length != 0) hash ^= Parent.GetHashCode();
+ if (JobId.Length != 0) hash ^= JobId.GetHashCode();
+ if (job_ != null) hash ^= Job.GetHashCode();
+ if (RequestId.Length != 0) hash ^= RequestId.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
+ if (Parent.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(Parent);
+ }
+ if (JobId.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteString(JobId);
+ }
+ if (job_ != null) {
+ output.WriteRawTag(26);
+ output.WriteMessage(Job);
+ }
+ if (RequestId.Length != 0) {
+ output.WriteRawTag(34);
+ output.WriteString(RequestId);
+ }
+ 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) {
+ if (Parent.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(Parent);
+ }
+ if (JobId.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteString(JobId);
+ }
+ if (job_ != null) {
+ output.WriteRawTag(26);
+ output.WriteMessage(Job);
+ }
+ if (RequestId.Length != 0) {
+ output.WriteRawTag(34);
+ output.WriteString(RequestId);
+ }
+ 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;
+ if (Parent.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Parent);
+ }
+ if (JobId.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(JobId);
+ }
+ if (job_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Job);
+ }
+ if (RequestId.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(CreateJobRequest other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Parent.Length != 0) {
+ Parent = other.Parent;
+ }
+ if (other.JobId.Length != 0) {
+ JobId = other.JobId;
+ }
+ if (other.job_ != null) {
+ if (job_ == null) {
+ Job = new global::Google.Cloud.Batch.V1Alpha.Job();
+ }
+ Job.MergeFrom(other.Job);
+ }
+ if (other.RequestId.Length != 0) {
+ RequestId = other.RequestId;
+ }
+ _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) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ Parent = input.ReadString();
+ break;
+ }
+ case 18: {
+ JobId = input.ReadString();
+ break;
+ }
+ case 26: {
+ if (job_ == null) {
+ Job = new global::Google.Cloud.Batch.V1Alpha.Job();
+ }
+ input.ReadMessage(Job);
+ break;
+ }
+ case 34: {
+ RequestId = input.ReadString();
+ 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) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ Parent = input.ReadString();
+ break;
+ }
+ case 18: {
+ JobId = input.ReadString();
+ break;
+ }
+ case 26: {
+ if (job_ == null) {
+ Job = new global::Google.Cloud.Batch.V1Alpha.Job();
+ }
+ input.ReadMessage(Job);
+ break;
+ }
+ case 34: {
+ RequestId = input.ReadString();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// GetJob Request.
+ ///
+ [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
+ public sealed partial class GetJobRequest : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetJobRequest());
+ 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.Batch.V1Alpha.BatchReflection.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 GetJobRequest() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public GetJobRequest(GetJobRequest other) : this() {
+ name_ = other.name_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public GetJobRequest Clone() {
+ return new GetJobRequest(this);
+ }
+
+ /// Field number for the "name" field.
+ public const int NameFieldNumber = 1;
+ private string name_ = "";
+ ///
+ /// Required. Job name.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Name {
+ get { return name_; }
+ set {
+ name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as GetJobRequest);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(GetJobRequest other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Name != other.Name) 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;
+ if (Name.Length != 0) hash ^= Name.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
+ if (Name.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(Name);
+ }
+ 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) {
+ if (Name.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(Name);
+ }
+ 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;
+ if (Name.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(GetJobRequest other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Name.Length != 0) {
+ Name = other.Name;
+ }
+ _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) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ Name = input.ReadString();
+ 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) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ Name = input.ReadString();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// DeleteJob Request.
+ ///
+ [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
+ public sealed partial class DeleteJobRequest : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteJobRequest());
+ 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.Batch.V1Alpha.BatchReflection.Descriptor.MessageTypes[2]; }
+ }
+
+ [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 DeleteJobRequest() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DeleteJobRequest(DeleteJobRequest other) : this() {
+ name_ = other.name_;
+ reason_ = other.reason_;
+ requestId_ = other.requestId_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public DeleteJobRequest Clone() {
+ return new DeleteJobRequest(this);
+ }
+
+ /// Field number for the "name" field.
+ public const int NameFieldNumber = 1;
+ private string name_ = "";
+ ///
+ /// Job name.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Name {
+ get { return name_; }
+ set {
+ name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "reason" field.
+ public const int ReasonFieldNumber = 2;
+ private string reason_ = "";
+ ///
+ /// Optional. Reason for this deletion.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Reason {
+ get { return reason_; }
+ set {
+ reason_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "request_id" field.
+ public const int RequestIdFieldNumber = 4;
+ private string requestId_ = "";
+ ///
+ /// Optional. An optional request ID to identify requests. Specify a unique
+ /// request ID so that if you must retry your request, the server will know to
+ /// ignore the request if it has already been completed. The server will
+ /// guarantee that for at least 60 minutes after the first request.
+ ///
+ /// For example, consider a situation where you make an initial request and
+ /// the request times out. If you make the request again with the same request
+ /// ID, the server can check if original operation with the same request ID
+ /// was received, and if so, will ignore the second request. This prevents
+ /// clients from accidentally creating duplicate commitments.
+ ///
+ /// The request ID must be a valid UUID with the exception that zero UUID is
+ /// not supported (00000000-0000-0000-0000-000000000000).
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string RequestId {
+ get { return requestId_; }
+ set {
+ requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as DeleteJobRequest);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(DeleteJobRequest other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Name != other.Name) return false;
+ if (Reason != other.Reason) return false;
+ if (RequestId != other.RequestId) 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;
+ if (Name.Length != 0) hash ^= Name.GetHashCode();
+ if (Reason.Length != 0) hash ^= Reason.GetHashCode();
+ if (RequestId.Length != 0) hash ^= RequestId.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
+ if (Name.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(Name);
+ }
+ if (Reason.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteString(Reason);
+ }
+ if (RequestId.Length != 0) {
+ output.WriteRawTag(34);
+ output.WriteString(RequestId);
+ }
+ 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) {
+ if (Name.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(Name);
+ }
+ if (Reason.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteString(Reason);
+ }
+ if (RequestId.Length != 0) {
+ output.WriteRawTag(34);
+ output.WriteString(RequestId);
+ }
+ 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;
+ if (Name.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
+ }
+ if (Reason.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Reason);
+ }
+ if (RequestId.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(DeleteJobRequest other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Name.Length != 0) {
+ Name = other.Name;
+ }
+ if (other.Reason.Length != 0) {
+ Reason = other.Reason;
+ }
+ if (other.RequestId.Length != 0) {
+ RequestId = other.RequestId;
+ }
+ _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) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ Name = input.ReadString();
+ break;
+ }
+ case 18: {
+ Reason = input.ReadString();
+ break;
+ }
+ case 34: {
+ RequestId = input.ReadString();
+ 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) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ Name = input.ReadString();
+ break;
+ }
+ case 18: {
+ Reason = input.ReadString();
+ break;
+ }
+ case 34: {
+ RequestId = input.ReadString();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// CancelJob Request.
+ ///
+ [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
+ public sealed partial class CancelJobRequest : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CancelJobRequest());
+ 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.Batch.V1Alpha.BatchReflection.Descriptor.MessageTypes[3]; }
+ }
+
+ [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 CancelJobRequest() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public CancelJobRequest(CancelJobRequest other) : this() {
+ name_ = other.name_;
+ requestId_ = other.requestId_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public CancelJobRequest Clone() {
+ return new CancelJobRequest(this);
+ }
+
+ /// Field number for the "name" field.
+ public const int NameFieldNumber = 1;
+ private string name_ = "";
+ ///
+ /// Required. Job name.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Name {
+ get { return name_; }
+ set {
+ name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "request_id" field.
+ public const int RequestIdFieldNumber = 4;
+ private string requestId_ = "";
+ ///
+ /// Optional. An optional request ID to identify requests. Specify a unique
+ /// request ID so that if you must retry your request, the server will know to
+ /// ignore the request if it has already been completed. The server will
+ /// guarantee that for at least 60 minutes after the first request.
+ ///
+ /// For example, consider a situation where you make an initial request and
+ /// the request times out. If you make the request again with the same request
+ /// ID, the server can check if original operation with the same request ID
+ /// was received, and if so, will ignore the second request. This prevents
+ /// clients from accidentally creating duplicate commitments.
+ ///
+ /// The request ID must be a valid UUID with the exception that zero UUID is
+ /// not supported (00000000-0000-0000-0000-000000000000).
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string RequestId {
+ get { return requestId_; }
+ set {
+ requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as CancelJobRequest);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(CancelJobRequest other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Name != other.Name) return false;
+ if (RequestId != other.RequestId) 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;
+ if (Name.Length != 0) hash ^= Name.GetHashCode();
+ if (RequestId.Length != 0) hash ^= RequestId.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
+ if (Name.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(Name);
+ }
+ if (RequestId.Length != 0) {
+ output.WriteRawTag(34);
+ output.WriteString(RequestId);
+ }
+ 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) {
+ if (Name.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(Name);
+ }
+ if (RequestId.Length != 0) {
+ output.WriteRawTag(34);
+ output.WriteString(RequestId);
+ }
+ 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;
+ if (Name.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
+ }
+ if (RequestId.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(CancelJobRequest other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Name.Length != 0) {
+ Name = other.Name;
+ }
+ if (other.RequestId.Length != 0) {
+ RequestId = other.RequestId;
+ }
+ _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) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ Name = input.ReadString();
+ break;
+ }
+ case 34: {
+ RequestId = input.ReadString();
+ 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) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ Name = input.ReadString();
+ break;
+ }
+ case 34: {
+ RequestId = input.ReadString();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// Response to the CancelJob request.
+ ///
+ [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
+ public sealed partial class CancelJobResponse : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CancelJobResponse());
+ 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.Batch.V1Alpha.BatchReflection.Descriptor.MessageTypes[4]; }
+ }
+
+ [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 CancelJobResponse() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public CancelJobResponse(CancelJobResponse other) : this() {
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public CancelJobResponse Clone() {
+ return new CancelJobResponse(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as CancelJobResponse);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(CancelJobResponse other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ 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
+ 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) {
+ 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;
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(CancelJobResponse other) {
+ if (other == null) {
+ return;
+ }
+ _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) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ 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) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// UpdateJob Request.
+ ///
+ [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
+ public sealed partial class UpdateJobRequest : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateJobRequest());
+ 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.Batch.V1Alpha.BatchReflection.Descriptor.MessageTypes[5]; }
+ }
+
+ [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 UpdateJobRequest() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public UpdateJobRequest(UpdateJobRequest other) : this() {
+ job_ = other.job_ != null ? other.job_.Clone() : null;
+ updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null;
+ requestId_ = other.requestId_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public UpdateJobRequest Clone() {
+ return new UpdateJobRequest(this);
+ }
+
+ /// Field number for the "job" field.
+ public const int JobFieldNumber = 1;
+ private global::Google.Cloud.Batch.V1Alpha.Job job_;
+ ///
+ /// Required. The Job to update.
+ /// Only fields specified in `updateMask` are updated.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Google.Cloud.Batch.V1Alpha.Job Job {
+ get { return job_; }
+ set {
+ job_ = value;
+ }
+ }
+
+ /// Field number for the "update_mask" field.
+ public const int UpdateMaskFieldNumber = 2;
+ private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_;
+ ///
+ /// Required. Mask of fields to update.
+ ///
+ /// The `jobs.patch` method can only be used while a job is in the `QUEUED`,
+ /// `SCHEDULED`, or `RUNNING` state and currently only supports increasing the
+ /// value of the first `taskCount` field in the job's `taskGroups` field.
+ /// Therefore, you must set the value of `updateMask` to `taskGroups`. Any
+ /// other job fields in the update request will be ignored.
+ ///
+ /// For example, to update a job's `taskCount` to `2`, set `updateMask` to
+ /// `taskGroups` and use the following request body:
+ /// ```
+ /// {
+ /// "taskGroups":[{
+ /// "taskCount": 2
+ /// }]
+ /// }
+ /// ```
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask {
+ get { return updateMask_; }
+ set {
+ updateMask_ = value;
+ }
+ }
+
+ /// Field number for the "request_id" field.
+ public const int RequestIdFieldNumber = 3;
+ private string requestId_ = "";
+ ///
+ /// Optional. An optional request ID to identify requests. Specify a unique
+ /// request ID so that if you must retry your request, the server will know to
+ /// ignore the request if it has already been completed. The server will
+ /// guarantee that for at least 60 minutes after the first request.
+ ///
+ /// For example, consider a situation where you make an initial request and
+ /// the request times out. If you make the request again with the same request
+ /// ID, the server can check if original operation with the same request ID
+ /// was received, and if so, will ignore the second request. This prevents
+ /// clients from accidentally creating duplicate commitments.
+ ///
+ /// The request ID must be a valid UUID with the exception that zero UUID is
+ /// not supported (00000000-0000-0000-0000-000000000000).
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string RequestId {
+ get { return requestId_; }
+ set {
+ requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as UpdateJobRequest);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(UpdateJobRequest other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (!object.Equals(Job, other.Job)) return false;
+ if (!object.Equals(UpdateMask, other.UpdateMask)) return false;
+ if (RequestId != other.RequestId) 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;
+ if (job_ != null) hash ^= Job.GetHashCode();
+ if (updateMask_ != null) hash ^= UpdateMask.GetHashCode();
+ if (RequestId.Length != 0) hash ^= RequestId.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
+ if (job_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Job);
+ }
+ if (updateMask_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(UpdateMask);
+ }
+ if (RequestId.Length != 0) {
+ output.WriteRawTag(26);
+ output.WriteString(RequestId);
+ }
+ 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) {
+ if (job_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Job);
+ }
+ if (updateMask_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(UpdateMask);
+ }
+ if (RequestId.Length != 0) {
+ output.WriteRawTag(26);
+ output.WriteString(RequestId);
+ }
+ 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;
+ if (job_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Job);
+ }
+ if (updateMask_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask);
+ }
+ if (RequestId.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(UpdateJobRequest other) {
+ if (other == null) {
+ return;
+ }
+ if (other.job_ != null) {
+ if (job_ == null) {
+ Job = new global::Google.Cloud.Batch.V1Alpha.Job();
+ }
+ Job.MergeFrom(other.Job);
+ }
+ if (other.updateMask_ != null) {
+ if (updateMask_ == null) {
+ UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask();
+ }
+ UpdateMask.MergeFrom(other.UpdateMask);
+ }
+ if (other.RequestId.Length != 0) {
+ RequestId = other.RequestId;
+ }
+ _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) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ if (job_ == null) {
+ Job = new global::Google.Cloud.Batch.V1Alpha.Job();
+ }
+ input.ReadMessage(Job);
+ break;
+ }
+ case 18: {
+ if (updateMask_ == null) {
+ UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask();
+ }
+ input.ReadMessage(UpdateMask);
+ break;
+ }
+ case 26: {
+ RequestId = input.ReadString();
+ 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) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ if (job_ == null) {
+ Job = new global::Google.Cloud.Batch.V1Alpha.Job();
+ }
+ input.ReadMessage(Job);
+ break;
+ }
+ case 18: {
+ if (updateMask_ == null) {
+ UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask();
+ }
+ input.ReadMessage(UpdateMask);
+ break;
+ }
+ case 26: {
+ RequestId = input.ReadString();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// ListJob Request.
+ ///
+ [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
+ public sealed partial class ListJobsRequest : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListJobsRequest());
+ 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.Batch.V1Alpha.BatchReflection.Descriptor.MessageTypes[6]; }
+ }
+
+ [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 ListJobsRequest() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ListJobsRequest(ListJobsRequest other) : this() {
+ parent_ = other.parent_;
+ filter_ = other.filter_;
+ orderBy_ = other.orderBy_;
+ pageSize_ = other.pageSize_;
+ pageToken_ = other.pageToken_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ListJobsRequest Clone() {
+ return new ListJobsRequest(this);
+ }
+
+ /// Field number for the "parent" field.
+ public const int ParentFieldNumber = 1;
+ private string parent_ = "";
+ ///
+ /// Parent path.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Parent {
+ get { return parent_; }
+ set {
+ parent_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "filter" field.
+ public const int FilterFieldNumber = 4;
+ private string filter_ = "";
+ ///
+ /// List filter.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Filter {
+ get { return filter_; }
+ set {
+ filter_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "order_by" field.
+ public const int OrderByFieldNumber = 5;
+ private string orderBy_ = "";
+ ///
+ /// Optional. Sort results. Supported are "name", "name desc", "create_time",
+ /// and "create_time desc".
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string OrderBy {
+ get { return orderBy_; }
+ set {
+ orderBy_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "page_size" field.
+ public const int PageSizeFieldNumber = 2;
+ private int pageSize_;
+ ///
+ /// Page size.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int PageSize {
+ get { return pageSize_; }
+ set {
+ pageSize_ = value;
+ }
+ }
+
+ /// Field number for the "page_token" field.
+ public const int PageTokenFieldNumber = 3;
+ private string pageToken_ = "";
+ ///
+ /// Page token.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string PageToken {
+ get { return pageToken_; }
+ set {
+ pageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as ListJobsRequest);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(ListJobsRequest other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Parent != other.Parent) return false;
+ if (Filter != other.Filter) return false;
+ if (OrderBy != other.OrderBy) return false;
+ if (PageSize != other.PageSize) return false;
+ if (PageToken != other.PageToken) 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;
+ if (Parent.Length != 0) hash ^= Parent.GetHashCode();
+ if (Filter.Length != 0) hash ^= Filter.GetHashCode();
+ if (OrderBy.Length != 0) hash ^= OrderBy.GetHashCode();
+ if (PageSize != 0) hash ^= PageSize.GetHashCode();
+ if (PageToken.Length != 0) hash ^= PageToken.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
+ if (Parent.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(Parent);
+ }
+ if (PageSize != 0) {
+ output.WriteRawTag(16);
+ output.WriteInt32(PageSize);
+ }
+ if (PageToken.Length != 0) {
+ output.WriteRawTag(26);
+ output.WriteString(PageToken);
+ }
+ if (Filter.Length != 0) {
+ output.WriteRawTag(34);
+ output.WriteString(Filter);
+ }
+ if (OrderBy.Length != 0) {
+ output.WriteRawTag(42);
+ output.WriteString(OrderBy);
+ }
+ 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) {
+ if (Parent.Length != 0) {
+ output.WriteRawTag(10);
+ output.WriteString(Parent);
+ }
+ if (PageSize != 0) {
+ output.WriteRawTag(16);
+ output.WriteInt32(PageSize);
+ }
+ if (PageToken.Length != 0) {
+ output.WriteRawTag(26);
+ output.WriteString(PageToken);
+ }
+ if (Filter.Length != 0) {
+ output.WriteRawTag(34);
+ output.WriteString(Filter);
+ }
+ if (OrderBy.Length != 0) {
+ output.WriteRawTag(42);
+ output.WriteString(OrderBy);
+ }
+ 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;
+ if (Parent.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Parent);
+ }
+ if (Filter.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Filter);
+ }
+ if (OrderBy.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(OrderBy);
+ }
+ if (PageSize != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(PageSize);
+ }
+ if (PageToken.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(PageToken);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(ListJobsRequest other) {
+ if (other == null) {
+ return;
+ }
+ if (other.Parent.Length != 0) {
+ Parent = other.Parent;
+ }
+ if (other.Filter.Length != 0) {
+ Filter = other.Filter;
+ }
+ if (other.OrderBy.Length != 0) {
+ OrderBy = other.OrderBy;
+ }
+ if (other.PageSize != 0) {
+ PageSize = other.PageSize;
+ }
+ if (other.PageToken.Length != 0) {
+ PageToken = other.PageToken;
+ }
+ _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) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ Parent = input.ReadString();
+ break;
+ }
+ case 16: {
+ PageSize = input.ReadInt32();
+ break;
+ }
+ case 26: {
+ PageToken = input.ReadString();
+ break;
+ }
+ case 34: {
+ Filter = input.ReadString();
+ break;
+ }
+ case 42: {
+ OrderBy = input.ReadString();
+ 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) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ Parent = input.ReadString();
+ break;
+ }
+ case 16: {
+ PageSize = input.ReadInt32();
+ break;
+ }
+ case 26: {
+ PageToken = input.ReadString();
+ break;
+ }
+ case 34: {
+ Filter = input.ReadString();
+ break;
+ }
+ case 42: {
+ OrderBy = input.ReadString();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// ListJob Response.
+ ///
+ [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
+ public sealed partial class ListJobsResponse : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListJobsResponse());
+ 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.Batch.V1Alpha.BatchReflection.Descriptor.MessageTypes[7]; }
+ }
+
+ [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 ListJobsResponse() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ListJobsResponse(ListJobsResponse other) : this() {
+ jobs_ = other.jobs_.Clone();
+ nextPageToken_ = other.nextPageToken_;
+ unreachable_ = other.unreachable_.Clone();
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ListJobsResponse Clone() {
+ return new ListJobsResponse(this);
+ }
+
+ /// Field number for the "jobs" field.
+ public const int JobsFieldNumber = 1;
+ private static readonly pb::FieldCodec _repeated_jobs_codec
+ = pb::FieldCodec.ForMessage(10, global::Google.Cloud.Batch.V1Alpha.Job.Parser);
+ private readonly pbc::RepeatedField jobs_ = new pbc::RepeatedField();
+ ///
+ /// Jobs.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pbc::RepeatedField Jobs {
+ get { return jobs_; }
+ }
+
+ /// Field number for the "next_page_token" field.
+ public const int NextPageTokenFieldNumber = 2;
+ private string nextPageToken_ = "";
+ ///
+ /// Next page token.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string NextPageToken {
+ get { return nextPageToken_; }
+ set {
+ nextPageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
+ /// Field number for the "unreachable" field.
+ public const int UnreachableFieldNumber = 3;
+ private static readonly pb::FieldCodec _repeated_unreachable_codec
+ = pb::FieldCodec.ForString(26);
+ private readonly pbc::RepeatedField unreachable_ = new pbc::RepeatedField();
+ ///
+ /// Locations that could not be reached.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pbc::RepeatedField Unreachable {
+ get { return unreachable_; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as ListJobsResponse);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(ListJobsResponse other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if(!jobs_.Equals(other.jobs_)) return false;
+ if (NextPageToken != other.NextPageToken) return false;
+ if(!unreachable_.Equals(other.unreachable_)) 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 ^= jobs_.GetHashCode();
+ if (NextPageToken.Length != 0) hash ^= NextPageToken.GetHashCode();
+ hash ^= unreachable_.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
+ jobs_.WriteTo(output, _repeated_jobs_codec);
+ if (NextPageToken.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteString(NextPageToken);
+ }
+ unreachable_.WriteTo(output, _repeated_unreachable_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) {
+ jobs_.WriteTo(ref output, _repeated_jobs_codec);
+ if (NextPageToken.Length != 0) {
+ output.WriteRawTag(18);
+ output.WriteString(NextPageToken);
+ }
+ unreachable_.WriteTo(ref output, _repeated_unreachable_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 += jobs_.CalculateSize(_repeated_jobs_codec);
+ if (NextPageToken.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(NextPageToken);
+ }
+ size += unreachable_.CalculateSize(_repeated_unreachable_codec);
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(ListJobsResponse other) {
+ if (other == null) {
+ return;
+ }
+ jobs_.Add(other.jobs_);
+ if (other.NextPageToken.Length != 0) {
+ NextPageToken = other.NextPageToken;
+ }
+ unreachable_.Add(other.unreachable_);
+ _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) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ jobs_.AddEntriesFrom(input, _repeated_jobs_codec);
+ break;
+ }
+ case 18: {
+ NextPageToken = input.ReadString();
+ break;
+ }
+ case 26: {
+ unreachable_.AddEntriesFrom(input, _repeated_unreachable_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) {
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ jobs_.AddEntriesFrom(ref input, _repeated_jobs_codec);
+ break;
+ }
+ case 18: {
+ NextPageToken = input.ReadString();
+ break;
+ }
+ case 26: {
+ unreachable_.AddEntriesFrom(ref input, _repeated_unreachable_codec);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// ListTasks Request.
+ ///
+ [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
+ public sealed partial class ListTasksRequest : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListTasksRequest());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser