From 5c6dc41fbbc9f2ca2fb7c1097379cbce6a89e1c9 Mon Sep 17 00:00:00 2001 From: Google Cloud SDK Librarian Date: Mon, 20 Apr 2026 07:07:41 +0000 Subject: [PATCH 1/5] regen: Regenerate Google.Cloud.Iam.V3Beta at API commit ef57648 feat: new iam v3beta client for AccessPolicies, this is step 4&5 for go/client-user-guide?API_NAME=iam.googleapis.com%09&API_SHORTNAME=iam&API_PATH=google%2Fiam&API_VERSION=v3&PROTO_SERVICE=AccessPolicies#run-api-publish-changelist docs: Updated comments across various messages, fields, enums, and methods in the IAM v3beta API, including PolicyBinding, PolicyKind, ListPolicyBindingsRequest, and SearchTargetPolicyBindingsRequest to improve clarity PiperOrigin-RevId: 901360203 Source-Link: https://github.com/googleapis/googleapis/commit/ef576481d03c4c969c0c930cf6998c0176f47015 --- ...Client.CreateAccessPolicyAsyncSnippet.g.cs | 63 + ...AccessPolicyRequestObjectAsyncSnippet.g.cs | 67 + ...reateAccessPolicyRequestObjectSnippet.g.cs | 66 + ...ccessPolicyResourceNames1AsyncSnippet.g.cs | 63 + ...eateAccessPolicyResourceNames1Snippet.g.cs | 62 + ...ccessPolicyResourceNames2AsyncSnippet.g.cs | 63 + ...eateAccessPolicyResourceNames2Snippet.g.cs | 62 + ...ccessPolicyResourceNames3AsyncSnippet.g.cs | 64 + ...eateAccessPolicyResourceNames3Snippet.g.cs | 63 + ...iciesClient.CreateAccessPolicySnippet.g.cs | 62 + ...Client.DeleteAccessPolicyAsyncSnippet.g.cs | 62 + ...AccessPolicyRequestObjectAsyncSnippet.g.cs | 68 + ...eleteAccessPolicyRequestObjectSnippet.g.cs | 67 + ...AccessPolicyResourceNamesAsyncSnippet.g.cs | 62 + ...eleteAccessPolicyResourceNamesSnippet.g.cs | 61 + ...iciesClient.DeleteAccessPolicySnippet.g.cs | 61 + ...iesClient.GetAccessPolicyAsyncSnippet.g.cs | 44 + ...AccessPolicyRequestObjectAsyncSnippet.g.cs | 47 + ...t.GetAccessPolicyRequestObjectSnippet.g.cs | 46 + ...AccessPolicyResourceNamesAsyncSnippet.g.cs | 44 + ...t.GetAccessPolicyResourceNamesSnippet.g.cs | 43 + ...PoliciesClient.GetAccessPolicySnippet.g.cs | 43 + ...Client.ListAccessPoliciesAsyncSnippet.g.cs | 78 + ...cessPoliciesRequestObjectAsyncSnippet.g.cs | 81 + ...istAccessPoliciesRequestObjectSnippet.g.cs | 80 + ...essPoliciesResourceNames1AsyncSnippet.g.cs | 78 + ...stAccessPoliciesResourceNames1Snippet.g.cs | 77 + ...essPoliciesResourceNames2AsyncSnippet.g.cs | 78 + ...stAccessPoliciesResourceNames2Snippet.g.cs | 77 + ...essPoliciesResourceNames3AsyncSnippet.g.cs | 79 + ...stAccessPoliciesResourceNames3Snippet.g.cs | 78 + ...iciesClient.ListAccessPoliciesSnippet.g.cs | 77 + ...earchAccessPolicyBindingsAsyncSnippet.g.cs | 78 + ...licyBindingsRequestObjectAsyncSnippet.g.cs | 81 + ...essPolicyBindingsRequestObjectSnippet.g.cs | 80 + ...licyBindingsResourceNamesAsyncSnippet.g.cs | 78 + ...essPolicyBindingsResourceNamesSnippet.g.cs | 77 + ...ent.SearchAccessPolicyBindingsSnippet.g.cs | 77 + ...AccessPolicyRequestObjectAsyncSnippet.g.cs | 65 + ...pdateAccessPolicyRequestObjectSnippet.g.cs | 64 + ...licyBindingsRequestObjectAsyncSnippet.g.cs | 1 + ...getPolicyBindingsRequestObjectSnippet.g.cs | 1 + .../snippet_metadata_google.iam.v3beta.json | 2080 ++++++++++++++- .../AccessPoliciesClientSnippets.g.cs | 1428 ++++++++++ .../PolicyBindingsClientSnippets.g.cs | 2 + .../AccessPoliciesClient.g.cs | 2006 ++++++++++++++ .../AccessPoliciesService.g.cs | 2350 +++++++++++++++++ .../AccessPoliciesServiceGrpc.g.cs | 578 ++++ .../AccessPoliciesServiceResourceNames.g.cs | 175 ++ .../AccessPolicyResources.g.cs | 1527 +++++++++++ .../AccessPolicyResourcesResourceNames.g.cs | 411 +++ .../PackageApiMetadata.g.cs | 2 + .../PolicyBindingResources.g.cs | 168 +- .../PolicyBindingsClient.g.cs | 88 +- .../PolicyBindingsService.g.cs | 188 +- .../PolicyBindingsServiceGrpc.g.cs | 42 +- ...ipalAccessBoundaryPoliciesServiceGrpc.g.cs | 2 +- .../ServiceCollectionExtensions.g.cs | 32 + .../gapic_metadata.json | 45 + generator-input/pipeline-state.json | 2 +- 60 files changed, 13593 insertions(+), 201 deletions(-) create mode 100644 apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyAsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyRequestObjectAsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyRequestObjectSnippet.g.cs create mode 100644 apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyResourceNames1AsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyResourceNames1Snippet.g.cs create mode 100644 apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyResourceNames2AsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyResourceNames2Snippet.g.cs create mode 100644 apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyResourceNames3AsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyResourceNames3Snippet.g.cs create mode 100644 apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicySnippet.g.cs create mode 100644 apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.DeleteAccessPolicyAsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.DeleteAccessPolicyRequestObjectAsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.DeleteAccessPolicyRequestObjectSnippet.g.cs create mode 100644 apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.DeleteAccessPolicyResourceNamesAsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.DeleteAccessPolicyResourceNamesSnippet.g.cs create mode 100644 apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.DeleteAccessPolicySnippet.g.cs create mode 100644 apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.GetAccessPolicyAsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.GetAccessPolicyRequestObjectAsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.GetAccessPolicyRequestObjectSnippet.g.cs create mode 100644 apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.GetAccessPolicyResourceNamesAsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.GetAccessPolicyResourceNamesSnippet.g.cs create mode 100644 apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.GetAccessPolicySnippet.g.cs create mode 100644 apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesAsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesRequestObjectAsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesRequestObjectSnippet.g.cs create mode 100644 apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesResourceNames1AsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesResourceNames1Snippet.g.cs create mode 100644 apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesResourceNames2AsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesResourceNames2Snippet.g.cs create mode 100644 apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesResourceNames3AsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesResourceNames3Snippet.g.cs create mode 100644 apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesSnippet.g.cs create mode 100644 apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.SearchAccessPolicyBindingsAsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.SearchAccessPolicyBindingsRequestObjectAsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.SearchAccessPolicyBindingsRequestObjectSnippet.g.cs create mode 100644 apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.SearchAccessPolicyBindingsResourceNamesAsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.SearchAccessPolicyBindingsResourceNamesSnippet.g.cs create mode 100644 apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.SearchAccessPolicyBindingsSnippet.g.cs create mode 100644 apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.UpdateAccessPolicyRequestObjectAsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.UpdateAccessPolicyRequestObjectSnippet.g.cs create mode 100644 apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.Snippets/AccessPoliciesClientSnippets.g.cs create mode 100644 apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/AccessPoliciesClient.g.cs create mode 100644 apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/AccessPoliciesService.g.cs create mode 100644 apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/AccessPoliciesServiceGrpc.g.cs create mode 100644 apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/AccessPoliciesServiceResourceNames.g.cs create mode 100644 apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/AccessPolicyResources.g.cs create mode 100644 apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/AccessPolicyResourcesResourceNames.g.cs diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyAsyncSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyAsyncSnippet.g.cs new file mode 100644 index 000000000000..68e5757c8dd7 --- /dev/null +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyAsyncSnippet.g.cs @@ -0,0 +1,63 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_async_flattened] + using Google.Cloud.Iam.V3Beta; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedAccessPoliciesClientSnippets + { + /// Snippet for CreateAccessPolicyAsync + /// + /// 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 CreateAccessPolicyAsync() + { + // Create client + AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]"; + AccessPolicy accessPolicy = new AccessPolicy(); + string accessPolicyId = ""; + // Make the request + Operation response = await accessPoliciesClient.CreateAccessPolicyAsync(parent, accessPolicy, accessPolicyId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + AccessPolicy 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 accessPoliciesClient.PollOnceCreateAccessPolicyAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + AccessPolicy retrievedResult = retrievedResponse.Result; + } + } + } + // [END iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_async_flattened] +} diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..502ab2d18c6f --- /dev/null +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,67 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_async] + using Google.Cloud.Iam.V3Beta; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedAccessPoliciesClientSnippets + { + /// Snippet for CreateAccessPolicyAsync + /// + /// 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 CreateAccessPolicyRequestObjectAsync() + { + // Create client + AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync(); + // Initialize request argument(s) + CreateAccessPolicyRequest request = new CreateAccessPolicyRequest + { + ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"), + AccessPolicyId = "", + AccessPolicy = new AccessPolicy(), + ValidateOnly = false, + }; + // Make the request + Operation response = await accessPoliciesClient.CreateAccessPolicyAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + AccessPolicy 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 accessPoliciesClient.PollOnceCreateAccessPolicyAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + AccessPolicy retrievedResult = retrievedResponse.Result; + } + } + } + // [END iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_async] +} diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyRequestObjectSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..07155e3ac0bb --- /dev/null +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyRequestObjectSnippet.g.cs @@ -0,0 +1,66 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_sync] + using Google.Cloud.Iam.V3Beta; + using Google.LongRunning; + + public sealed partial class GeneratedAccessPoliciesClientSnippets + { + /// Snippet for CreateAccessPolicy + /// + /// 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 CreateAccessPolicyRequestObject() + { + // Create client + AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create(); + // Initialize request argument(s) + CreateAccessPolicyRequest request = new CreateAccessPolicyRequest + { + ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"), + AccessPolicyId = "", + AccessPolicy = new AccessPolicy(), + ValidateOnly = false, + }; + // Make the request + Operation response = accessPoliciesClient.CreateAccessPolicy(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + AccessPolicy 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 = accessPoliciesClient.PollOnceCreateAccessPolicy(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + AccessPolicy retrievedResult = retrievedResponse.Result; + } + } + } + // [END iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_sync] +} diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyResourceNames1AsyncSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyResourceNames1AsyncSnippet.g.cs new file mode 100644 index 000000000000..8513a1d57001 --- /dev/null +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyResourceNames1AsyncSnippet.g.cs @@ -0,0 +1,63 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_async_flattened_resourceNames1] + using Google.Cloud.Iam.V3Beta; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedAccessPoliciesClientSnippets + { + /// Snippet for CreateAccessPolicyAsync + /// + /// 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 CreateAccessPolicyResourceNames1Async() + { + // Create client + AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync(); + // Initialize request argument(s) + OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"); + AccessPolicy accessPolicy = new AccessPolicy(); + string accessPolicyId = ""; + // Make the request + Operation response = await accessPoliciesClient.CreateAccessPolicyAsync(parent, accessPolicy, accessPolicyId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + AccessPolicy 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 accessPoliciesClient.PollOnceCreateAccessPolicyAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + AccessPolicy retrievedResult = retrievedResponse.Result; + } + } + } + // [END iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_async_flattened_resourceNames1] +} diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyResourceNames1Snippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyResourceNames1Snippet.g.cs new file mode 100644 index 000000000000..9cf2b0d95733 --- /dev/null +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyResourceNames1Snippet.g.cs @@ -0,0 +1,62 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_sync_flattened_resourceNames1] + using Google.Cloud.Iam.V3Beta; + using Google.LongRunning; + + public sealed partial class GeneratedAccessPoliciesClientSnippets + { + /// Snippet for CreateAccessPolicy + /// + /// 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 CreateAccessPolicyResourceNames1() + { + // Create client + AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create(); + // Initialize request argument(s) + OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"); + AccessPolicy accessPolicy = new AccessPolicy(); + string accessPolicyId = ""; + // Make the request + Operation response = accessPoliciesClient.CreateAccessPolicy(parent, accessPolicy, accessPolicyId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + AccessPolicy 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 = accessPoliciesClient.PollOnceCreateAccessPolicy(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + AccessPolicy retrievedResult = retrievedResponse.Result; + } + } + } + // [END iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_sync_flattened_resourceNames1] +} diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyResourceNames2AsyncSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyResourceNames2AsyncSnippet.g.cs new file mode 100644 index 000000000000..f4fcee62f4cd --- /dev/null +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyResourceNames2AsyncSnippet.g.cs @@ -0,0 +1,63 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_async_flattened_resourceNames2] + using Google.Cloud.Iam.V3Beta; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedAccessPoliciesClientSnippets + { + /// Snippet for CreateAccessPolicyAsync + /// + /// 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 CreateAccessPolicyResourceNames2Async() + { + // Create client + AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync(); + // Initialize request argument(s) + FolderLocationName parent = FolderLocationName.FromFolderLocation("[FOLDER]", "[LOCATION]"); + AccessPolicy accessPolicy = new AccessPolicy(); + string accessPolicyId = ""; + // Make the request + Operation response = await accessPoliciesClient.CreateAccessPolicyAsync(parent, accessPolicy, accessPolicyId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + AccessPolicy 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 accessPoliciesClient.PollOnceCreateAccessPolicyAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + AccessPolicy retrievedResult = retrievedResponse.Result; + } + } + } + // [END iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_async_flattened_resourceNames2] +} diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyResourceNames2Snippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyResourceNames2Snippet.g.cs new file mode 100644 index 000000000000..27cabe02969e --- /dev/null +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyResourceNames2Snippet.g.cs @@ -0,0 +1,62 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_sync_flattened_resourceNames2] + using Google.Cloud.Iam.V3Beta; + using Google.LongRunning; + + public sealed partial class GeneratedAccessPoliciesClientSnippets + { + /// Snippet for CreateAccessPolicy + /// + /// 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 CreateAccessPolicyResourceNames2() + { + // Create client + AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create(); + // Initialize request argument(s) + FolderLocationName parent = FolderLocationName.FromFolderLocation("[FOLDER]", "[LOCATION]"); + AccessPolicy accessPolicy = new AccessPolicy(); + string accessPolicyId = ""; + // Make the request + Operation response = accessPoliciesClient.CreateAccessPolicy(parent, accessPolicy, accessPolicyId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + AccessPolicy 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 = accessPoliciesClient.PollOnceCreateAccessPolicy(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + AccessPolicy retrievedResult = retrievedResponse.Result; + } + } + } + // [END iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_sync_flattened_resourceNames2] +} diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyResourceNames3AsyncSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyResourceNames3AsyncSnippet.g.cs new file mode 100644 index 000000000000..45e6d9834375 --- /dev/null +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyResourceNames3AsyncSnippet.g.cs @@ -0,0 +1,64 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_async_flattened_resourceNames3] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Iam.V3Beta; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedAccessPoliciesClientSnippets + { + /// Snippet for CreateAccessPolicyAsync + /// + /// 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 CreateAccessPolicyResourceNames3Async() + { + // Create client + AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + AccessPolicy accessPolicy = new AccessPolicy(); + string accessPolicyId = ""; + // Make the request + Operation response = await accessPoliciesClient.CreateAccessPolicyAsync(parent, accessPolicy, accessPolicyId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + AccessPolicy 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 accessPoliciesClient.PollOnceCreateAccessPolicyAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + AccessPolicy retrievedResult = retrievedResponse.Result; + } + } + } + // [END iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_async_flattened_resourceNames3] +} diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyResourceNames3Snippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyResourceNames3Snippet.g.cs new file mode 100644 index 000000000000..9e6df3cafe7d --- /dev/null +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicyResourceNames3Snippet.g.cs @@ -0,0 +1,63 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_sync_flattened_resourceNames3] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Iam.V3Beta; + using Google.LongRunning; + + public sealed partial class GeneratedAccessPoliciesClientSnippets + { + /// Snippet for CreateAccessPolicy + /// + /// 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 CreateAccessPolicyResourceNames3() + { + // Create client + AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + AccessPolicy accessPolicy = new AccessPolicy(); + string accessPolicyId = ""; + // Make the request + Operation response = accessPoliciesClient.CreateAccessPolicy(parent, accessPolicy, accessPolicyId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + AccessPolicy 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 = accessPoliciesClient.PollOnceCreateAccessPolicy(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + AccessPolicy retrievedResult = retrievedResponse.Result; + } + } + } + // [END iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_sync_flattened_resourceNames3] +} diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicySnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicySnippet.g.cs new file mode 100644 index 000000000000..b83c53dc3e71 --- /dev/null +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.CreateAccessPolicySnippet.g.cs @@ -0,0 +1,62 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_sync_flattened] + using Google.Cloud.Iam.V3Beta; + using Google.LongRunning; + + public sealed partial class GeneratedAccessPoliciesClientSnippets + { + /// Snippet for CreateAccessPolicy + /// + /// 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 CreateAccessPolicy() + { + // Create client + AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]"; + AccessPolicy accessPolicy = new AccessPolicy(); + string accessPolicyId = ""; + // Make the request + Operation response = accessPoliciesClient.CreateAccessPolicy(parent, accessPolicy, accessPolicyId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + AccessPolicy 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 = accessPoliciesClient.PollOnceCreateAccessPolicy(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + AccessPolicy retrievedResult = retrievedResponse.Result; + } + } + } + // [END iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_sync_flattened] +} diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.DeleteAccessPolicyAsyncSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.DeleteAccessPolicyAsyncSnippet.g.cs new file mode 100644 index 000000000000..258873a44edc --- /dev/null +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.DeleteAccessPolicyAsyncSnippet.g.cs @@ -0,0 +1,62 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START iam_v3beta_generated_AccessPolicies_DeleteAccessPolicy_async_flattened] + using Google.Cloud.Iam.V3Beta; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedAccessPoliciesClientSnippets + { + /// Snippet for DeleteAccessPolicyAsync + /// + /// 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 DeleteAccessPolicyAsync() + { + // Create client + AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/accessPolicies/[ACCESS_POLICY]"; + // Make the request + Operation response = await accessPoliciesClient.DeleteAccessPolicyAsync(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 accessPoliciesClient.PollOnceDeleteAccessPolicyAsync(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 iam_v3beta_generated_AccessPolicies_DeleteAccessPolicy_async_flattened] +} diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.DeleteAccessPolicyRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.DeleteAccessPolicyRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..d76e7e9555af --- /dev/null +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.DeleteAccessPolicyRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,68 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START iam_v3beta_generated_AccessPolicies_DeleteAccessPolicy_async] + using Google.Cloud.Iam.V3Beta; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedAccessPoliciesClientSnippets + { + /// Snippet for DeleteAccessPolicyAsync + /// + /// 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 DeleteAccessPolicyRequestObjectAsync() + { + // Create client + AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync(); + // Initialize request argument(s) + DeleteAccessPolicyRequest request = new DeleteAccessPolicyRequest + { + AccessPolicyName = AccessPolicyName.FromOrganizationLocationAccessPolicy("[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]"), + Etag = "", + ValidateOnly = false, + Force = false, + }; + // Make the request + Operation response = await accessPoliciesClient.DeleteAccessPolicyAsync(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 accessPoliciesClient.PollOnceDeleteAccessPolicyAsync(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 iam_v3beta_generated_AccessPolicies_DeleteAccessPolicy_async] +} diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.DeleteAccessPolicyRequestObjectSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.DeleteAccessPolicyRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..04710a189de9 --- /dev/null +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.DeleteAccessPolicyRequestObjectSnippet.g.cs @@ -0,0 +1,67 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START iam_v3beta_generated_AccessPolicies_DeleteAccessPolicy_sync] + using Google.Cloud.Iam.V3Beta; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedAccessPoliciesClientSnippets + { + /// Snippet for DeleteAccessPolicy + /// + /// 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 DeleteAccessPolicyRequestObject() + { + // Create client + AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create(); + // Initialize request argument(s) + DeleteAccessPolicyRequest request = new DeleteAccessPolicyRequest + { + AccessPolicyName = AccessPolicyName.FromOrganizationLocationAccessPolicy("[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]"), + Etag = "", + ValidateOnly = false, + Force = false, + }; + // Make the request + Operation response = accessPoliciesClient.DeleteAccessPolicy(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 = accessPoliciesClient.PollOnceDeleteAccessPolicy(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 iam_v3beta_generated_AccessPolicies_DeleteAccessPolicy_sync] +} diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.DeleteAccessPolicyResourceNamesAsyncSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.DeleteAccessPolicyResourceNamesAsyncSnippet.g.cs new file mode 100644 index 000000000000..0f4104fe7be4 --- /dev/null +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.DeleteAccessPolicyResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,62 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START iam_v3beta_generated_AccessPolicies_DeleteAccessPolicy_async_flattened_resourceNames] + using Google.Cloud.Iam.V3Beta; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedAccessPoliciesClientSnippets + { + /// Snippet for DeleteAccessPolicyAsync + /// + /// 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 DeleteAccessPolicyResourceNamesAsync() + { + // Create client + AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync(); + // Initialize request argument(s) + AccessPolicyName name = AccessPolicyName.FromOrganizationLocationAccessPolicy("[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]"); + // Make the request + Operation response = await accessPoliciesClient.DeleteAccessPolicyAsync(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 accessPoliciesClient.PollOnceDeleteAccessPolicyAsync(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 iam_v3beta_generated_AccessPolicies_DeleteAccessPolicy_async_flattened_resourceNames] +} diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.DeleteAccessPolicyResourceNamesSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.DeleteAccessPolicyResourceNamesSnippet.g.cs new file mode 100644 index 000000000000..1ec8fd993003 --- /dev/null +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.DeleteAccessPolicyResourceNamesSnippet.g.cs @@ -0,0 +1,61 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START iam_v3beta_generated_AccessPolicies_DeleteAccessPolicy_sync_flattened_resourceNames] + using Google.Cloud.Iam.V3Beta; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedAccessPoliciesClientSnippets + { + /// Snippet for DeleteAccessPolicy + /// + /// 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 DeleteAccessPolicyResourceNames() + { + // Create client + AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create(); + // Initialize request argument(s) + AccessPolicyName name = AccessPolicyName.FromOrganizationLocationAccessPolicy("[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]"); + // Make the request + Operation response = accessPoliciesClient.DeleteAccessPolicy(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 = accessPoliciesClient.PollOnceDeleteAccessPolicy(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 iam_v3beta_generated_AccessPolicies_DeleteAccessPolicy_sync_flattened_resourceNames] +} diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.DeleteAccessPolicySnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.DeleteAccessPolicySnippet.g.cs new file mode 100644 index 000000000000..76fe957e09f0 --- /dev/null +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.DeleteAccessPolicySnippet.g.cs @@ -0,0 +1,61 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START iam_v3beta_generated_AccessPolicies_DeleteAccessPolicy_sync_flattened] + using Google.Cloud.Iam.V3Beta; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedAccessPoliciesClientSnippets + { + /// Snippet for DeleteAccessPolicy + /// + /// 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 DeleteAccessPolicy() + { + // Create client + AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/accessPolicies/[ACCESS_POLICY]"; + // Make the request + Operation response = accessPoliciesClient.DeleteAccessPolicy(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 = accessPoliciesClient.PollOnceDeleteAccessPolicy(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 iam_v3beta_generated_AccessPolicies_DeleteAccessPolicy_sync_flattened] +} diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.GetAccessPolicyAsyncSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.GetAccessPolicyAsyncSnippet.g.cs new file mode 100644 index 000000000000..742ca21a0ad5 --- /dev/null +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.GetAccessPolicyAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START iam_v3beta_generated_AccessPolicies_GetAccessPolicy_async_flattened] + using Google.Cloud.Iam.V3Beta; + using System.Threading.Tasks; + + public sealed partial class GeneratedAccessPoliciesClientSnippets + { + /// Snippet for GetAccessPolicyAsync + /// + /// 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 GetAccessPolicyAsync() + { + // Create client + AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/accessPolicies/[ACCESS_POLICY]"; + // Make the request + AccessPolicy response = await accessPoliciesClient.GetAccessPolicyAsync(name); + } + } + // [END iam_v3beta_generated_AccessPolicies_GetAccessPolicy_async_flattened] +} diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.GetAccessPolicyRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.GetAccessPolicyRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..8e0c4850a5e1 --- /dev/null +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.GetAccessPolicyRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,47 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START iam_v3beta_generated_AccessPolicies_GetAccessPolicy_async] + using Google.Cloud.Iam.V3Beta; + using System.Threading.Tasks; + + public sealed partial class GeneratedAccessPoliciesClientSnippets + { + /// Snippet for GetAccessPolicyAsync + /// + /// 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 GetAccessPolicyRequestObjectAsync() + { + // Create client + AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync(); + // Initialize request argument(s) + GetAccessPolicyRequest request = new GetAccessPolicyRequest + { + AccessPolicyName = AccessPolicyName.FromOrganizationLocationAccessPolicy("[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]"), + }; + // Make the request + AccessPolicy response = await accessPoliciesClient.GetAccessPolicyAsync(request); + } + } + // [END iam_v3beta_generated_AccessPolicies_GetAccessPolicy_async] +} diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.GetAccessPolicyRequestObjectSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.GetAccessPolicyRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..6a545726e612 --- /dev/null +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.GetAccessPolicyRequestObjectSnippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START iam_v3beta_generated_AccessPolicies_GetAccessPolicy_sync] + using Google.Cloud.Iam.V3Beta; + + public sealed partial class GeneratedAccessPoliciesClientSnippets + { + /// Snippet for GetAccessPolicy + /// + /// 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 GetAccessPolicyRequestObject() + { + // Create client + AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create(); + // Initialize request argument(s) + GetAccessPolicyRequest request = new GetAccessPolicyRequest + { + AccessPolicyName = AccessPolicyName.FromOrganizationLocationAccessPolicy("[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]"), + }; + // Make the request + AccessPolicy response = accessPoliciesClient.GetAccessPolicy(request); + } + } + // [END iam_v3beta_generated_AccessPolicies_GetAccessPolicy_sync] +} diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.GetAccessPolicyResourceNamesAsyncSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.GetAccessPolicyResourceNamesAsyncSnippet.g.cs new file mode 100644 index 000000000000..24cdcee3b256 --- /dev/null +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.GetAccessPolicyResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START iam_v3beta_generated_AccessPolicies_GetAccessPolicy_async_flattened_resourceNames] + using Google.Cloud.Iam.V3Beta; + using System.Threading.Tasks; + + public sealed partial class GeneratedAccessPoliciesClientSnippets + { + /// Snippet for GetAccessPolicyAsync + /// + /// 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 GetAccessPolicyResourceNamesAsync() + { + // Create client + AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync(); + // Initialize request argument(s) + AccessPolicyName name = AccessPolicyName.FromOrganizationLocationAccessPolicy("[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]"); + // Make the request + AccessPolicy response = await accessPoliciesClient.GetAccessPolicyAsync(name); + } + } + // [END iam_v3beta_generated_AccessPolicies_GetAccessPolicy_async_flattened_resourceNames] +} diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.GetAccessPolicyResourceNamesSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.GetAccessPolicyResourceNamesSnippet.g.cs new file mode 100644 index 000000000000..ad834993b37f --- /dev/null +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.GetAccessPolicyResourceNamesSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START iam_v3beta_generated_AccessPolicies_GetAccessPolicy_sync_flattened_resourceNames] + using Google.Cloud.Iam.V3Beta; + + public sealed partial class GeneratedAccessPoliciesClientSnippets + { + /// Snippet for GetAccessPolicy + /// + /// 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 GetAccessPolicyResourceNames() + { + // Create client + AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create(); + // Initialize request argument(s) + AccessPolicyName name = AccessPolicyName.FromOrganizationLocationAccessPolicy("[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]"); + // Make the request + AccessPolicy response = accessPoliciesClient.GetAccessPolicy(name); + } + } + // [END iam_v3beta_generated_AccessPolicies_GetAccessPolicy_sync_flattened_resourceNames] +} diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.GetAccessPolicySnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.GetAccessPolicySnippet.g.cs new file mode 100644 index 000000000000..a2e0e7ba0fba --- /dev/null +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.GetAccessPolicySnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START iam_v3beta_generated_AccessPolicies_GetAccessPolicy_sync_flattened] + using Google.Cloud.Iam.V3Beta; + + public sealed partial class GeneratedAccessPoliciesClientSnippets + { + /// Snippet for GetAccessPolicy + /// + /// 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 GetAccessPolicy() + { + // Create client + AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/accessPolicies/[ACCESS_POLICY]"; + // Make the request + AccessPolicy response = accessPoliciesClient.GetAccessPolicy(name); + } + } + // [END iam_v3beta_generated_AccessPolicies_GetAccessPolicy_sync_flattened] +} diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesAsyncSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesAsyncSnippet.g.cs new file mode 100644 index 000000000000..c2100182d6d5 --- /dev/null +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesAsyncSnippet.g.cs @@ -0,0 +1,78 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START iam_v3beta_generated_AccessPolicies_ListAccessPolicies_async_flattened] + using Google.Api.Gax; + using Google.Cloud.Iam.V3Beta; + using System; + using System.Threading.Tasks; + + public sealed partial class GeneratedAccessPoliciesClientSnippets + { + /// Snippet for ListAccessPoliciesAsync + /// + /// 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 ListAccessPoliciesAsync() + { + // Create client + AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]"; + // Make the request + PagedAsyncEnumerable response = accessPoliciesClient.ListAccessPoliciesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await foreach (AccessPolicy item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + await foreach (ListAccessPoliciesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AccessPolicy 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 (AccessPolicy 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 iam_v3beta_generated_AccessPolicies_ListAccessPolicies_async_flattened] +} diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..6db7657cb016 --- /dev/null +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,81 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START iam_v3beta_generated_AccessPolicies_ListAccessPolicies_async] + using Google.Api.Gax; + using Google.Cloud.Iam.V3Beta; + using System; + using System.Threading.Tasks; + + public sealed partial class GeneratedAccessPoliciesClientSnippets + { + /// Snippet for ListAccessPoliciesAsync + /// + /// 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 ListAccessPoliciesRequestObjectAsync() + { + // Create client + AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync(); + // Initialize request argument(s) + ListAccessPoliciesRequest request = new ListAccessPoliciesRequest + { + ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"), + }; + // Make the request + PagedAsyncEnumerable response = accessPoliciesClient.ListAccessPoliciesAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await foreach (AccessPolicy item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + await foreach (ListAccessPoliciesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AccessPolicy 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 (AccessPolicy 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 iam_v3beta_generated_AccessPolicies_ListAccessPolicies_async] +} diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesRequestObjectSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..92c7b1166450 --- /dev/null +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesRequestObjectSnippet.g.cs @@ -0,0 +1,80 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START iam_v3beta_generated_AccessPolicies_ListAccessPolicies_sync] + using Google.Api.Gax; + using Google.Cloud.Iam.V3Beta; + using System; + + public sealed partial class GeneratedAccessPoliciesClientSnippets + { + /// Snippet for ListAccessPolicies + /// + /// 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 ListAccessPoliciesRequestObject() + { + // Create client + AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create(); + // Initialize request argument(s) + ListAccessPoliciesRequest request = new ListAccessPoliciesRequest + { + ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"), + }; + // Make the request + PagedEnumerable response = accessPoliciesClient.ListAccessPolicies(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (AccessPolicy 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 (ListAccessPoliciesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AccessPolicy 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 (AccessPolicy 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 iam_v3beta_generated_AccessPolicies_ListAccessPolicies_sync] +} diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesResourceNames1AsyncSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesResourceNames1AsyncSnippet.g.cs new file mode 100644 index 000000000000..d2c4f42c6489 --- /dev/null +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesResourceNames1AsyncSnippet.g.cs @@ -0,0 +1,78 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START iam_v3beta_generated_AccessPolicies_ListAccessPolicies_async_flattened_resourceNames1] + using Google.Api.Gax; + using Google.Cloud.Iam.V3Beta; + using System; + using System.Threading.Tasks; + + public sealed partial class GeneratedAccessPoliciesClientSnippets + { + /// Snippet for ListAccessPoliciesAsync + /// + /// 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 ListAccessPoliciesResourceNames1Async() + { + // Create client + AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync(); + // Initialize request argument(s) + OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"); + // Make the request + PagedAsyncEnumerable response = accessPoliciesClient.ListAccessPoliciesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await foreach (AccessPolicy item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + await foreach (ListAccessPoliciesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AccessPolicy 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 (AccessPolicy 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 iam_v3beta_generated_AccessPolicies_ListAccessPolicies_async_flattened_resourceNames1] +} diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesResourceNames1Snippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesResourceNames1Snippet.g.cs new file mode 100644 index 000000000000..1c0b1bd7dbfd --- /dev/null +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesResourceNames1Snippet.g.cs @@ -0,0 +1,77 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START iam_v3beta_generated_AccessPolicies_ListAccessPolicies_sync_flattened_resourceNames1] + using Google.Api.Gax; + using Google.Cloud.Iam.V3Beta; + using System; + + public sealed partial class GeneratedAccessPoliciesClientSnippets + { + /// Snippet for ListAccessPolicies + /// + /// 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 ListAccessPoliciesResourceNames1() + { + // Create client + AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create(); + // Initialize request argument(s) + OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"); + // Make the request + PagedEnumerable response = accessPoliciesClient.ListAccessPolicies(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (AccessPolicy 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 (ListAccessPoliciesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AccessPolicy 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 (AccessPolicy 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 iam_v3beta_generated_AccessPolicies_ListAccessPolicies_sync_flattened_resourceNames1] +} diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesResourceNames2AsyncSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesResourceNames2AsyncSnippet.g.cs new file mode 100644 index 000000000000..db25a0158bda --- /dev/null +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesResourceNames2AsyncSnippet.g.cs @@ -0,0 +1,78 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START iam_v3beta_generated_AccessPolicies_ListAccessPolicies_async_flattened_resourceNames2] + using Google.Api.Gax; + using Google.Cloud.Iam.V3Beta; + using System; + using System.Threading.Tasks; + + public sealed partial class GeneratedAccessPoliciesClientSnippets + { + /// Snippet for ListAccessPoliciesAsync + /// + /// 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 ListAccessPoliciesResourceNames2Async() + { + // Create client + AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync(); + // Initialize request argument(s) + FolderLocationName parent = FolderLocationName.FromFolderLocation("[FOLDER]", "[LOCATION]"); + // Make the request + PagedAsyncEnumerable response = accessPoliciesClient.ListAccessPoliciesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await foreach (AccessPolicy item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + await foreach (ListAccessPoliciesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AccessPolicy 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 (AccessPolicy 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 iam_v3beta_generated_AccessPolicies_ListAccessPolicies_async_flattened_resourceNames2] +} diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesResourceNames2Snippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesResourceNames2Snippet.g.cs new file mode 100644 index 000000000000..b72d083f83f7 --- /dev/null +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesResourceNames2Snippet.g.cs @@ -0,0 +1,77 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START iam_v3beta_generated_AccessPolicies_ListAccessPolicies_sync_flattened_resourceNames2] + using Google.Api.Gax; + using Google.Cloud.Iam.V3Beta; + using System; + + public sealed partial class GeneratedAccessPoliciesClientSnippets + { + /// Snippet for ListAccessPolicies + /// + /// 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 ListAccessPoliciesResourceNames2() + { + // Create client + AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create(); + // Initialize request argument(s) + FolderLocationName parent = FolderLocationName.FromFolderLocation("[FOLDER]", "[LOCATION]"); + // Make the request + PagedEnumerable response = accessPoliciesClient.ListAccessPolicies(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (AccessPolicy 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 (ListAccessPoliciesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AccessPolicy 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 (AccessPolicy 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 iam_v3beta_generated_AccessPolicies_ListAccessPolicies_sync_flattened_resourceNames2] +} diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesResourceNames3AsyncSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesResourceNames3AsyncSnippet.g.cs new file mode 100644 index 000000000000..a2aa20c1b9ab --- /dev/null +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesResourceNames3AsyncSnippet.g.cs @@ -0,0 +1,79 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START iam_v3beta_generated_AccessPolicies_ListAccessPolicies_async_flattened_resourceNames3] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Iam.V3Beta; + using System; + using System.Threading.Tasks; + + public sealed partial class GeneratedAccessPoliciesClientSnippets + { + /// Snippet for ListAccessPoliciesAsync + /// + /// 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 ListAccessPoliciesResourceNames3Async() + { + // Create client + AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + // Make the request + PagedAsyncEnumerable response = accessPoliciesClient.ListAccessPoliciesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await foreach (AccessPolicy item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + await foreach (ListAccessPoliciesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AccessPolicy 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 (AccessPolicy 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 iam_v3beta_generated_AccessPolicies_ListAccessPolicies_async_flattened_resourceNames3] +} diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesResourceNames3Snippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesResourceNames3Snippet.g.cs new file mode 100644 index 000000000000..8f2bcc85bc2e --- /dev/null +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesResourceNames3Snippet.g.cs @@ -0,0 +1,78 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START iam_v3beta_generated_AccessPolicies_ListAccessPolicies_sync_flattened_resourceNames3] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Iam.V3Beta; + using System; + + public sealed partial class GeneratedAccessPoliciesClientSnippets + { + /// Snippet for ListAccessPolicies + /// + /// 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 ListAccessPoliciesResourceNames3() + { + // Create client + AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + // Make the request + PagedEnumerable response = accessPoliciesClient.ListAccessPolicies(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (AccessPolicy 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 (ListAccessPoliciesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AccessPolicy 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 (AccessPolicy 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 iam_v3beta_generated_AccessPolicies_ListAccessPolicies_sync_flattened_resourceNames3] +} diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesSnippet.g.cs new file mode 100644 index 000000000000..a949c4d47af7 --- /dev/null +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.ListAccessPoliciesSnippet.g.cs @@ -0,0 +1,77 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START iam_v3beta_generated_AccessPolicies_ListAccessPolicies_sync_flattened] + using Google.Api.Gax; + using Google.Cloud.Iam.V3Beta; + using System; + + public sealed partial class GeneratedAccessPoliciesClientSnippets + { + /// Snippet for ListAccessPolicies + /// + /// 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 ListAccessPolicies() + { + // Create client + AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]"; + // Make the request + PagedEnumerable response = accessPoliciesClient.ListAccessPolicies(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (AccessPolicy 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 (ListAccessPoliciesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AccessPolicy 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 (AccessPolicy 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 iam_v3beta_generated_AccessPolicies_ListAccessPolicies_sync_flattened] +} diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.SearchAccessPolicyBindingsAsyncSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.SearchAccessPolicyBindingsAsyncSnippet.g.cs new file mode 100644 index 000000000000..94ae8a7d88c8 --- /dev/null +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.SearchAccessPolicyBindingsAsyncSnippet.g.cs @@ -0,0 +1,78 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START iam_v3beta_generated_AccessPolicies_SearchAccessPolicyBindings_async_flattened] + using Google.Api.Gax; + using Google.Cloud.Iam.V3Beta; + using System; + using System.Threading.Tasks; + + public sealed partial class GeneratedAccessPoliciesClientSnippets + { + /// Snippet for SearchAccessPolicyBindingsAsync + /// + /// 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 SearchAccessPolicyBindingsAsync() + { + // Create client + AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/accessPolicies/[ACCESS_POLICY]"; + // Make the request + PagedAsyncEnumerable response = accessPoliciesClient.SearchAccessPolicyBindingsAsync(name); + + // Iterate over all response items, lazily performing RPCs as required + await foreach (PolicyBinding item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + await foreach (SearchAccessPolicyBindingsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (PolicyBinding 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 (PolicyBinding 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 iam_v3beta_generated_AccessPolicies_SearchAccessPolicyBindings_async_flattened] +} diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.SearchAccessPolicyBindingsRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.SearchAccessPolicyBindingsRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..8d4349da1ee7 --- /dev/null +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.SearchAccessPolicyBindingsRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,81 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START iam_v3beta_generated_AccessPolicies_SearchAccessPolicyBindings_async] + using Google.Api.Gax; + using Google.Cloud.Iam.V3Beta; + using System; + using System.Threading.Tasks; + + public sealed partial class GeneratedAccessPoliciesClientSnippets + { + /// Snippet for SearchAccessPolicyBindingsAsync + /// + /// 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 SearchAccessPolicyBindingsRequestObjectAsync() + { + // Create client + AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync(); + // Initialize request argument(s) + SearchAccessPolicyBindingsRequest request = new SearchAccessPolicyBindingsRequest + { + AccessPolicyName = AccessPolicyName.FromOrganizationLocationAccessPolicy("[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]"), + }; + // Make the request + PagedAsyncEnumerable response = accessPoliciesClient.SearchAccessPolicyBindingsAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await foreach (PolicyBinding item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + await foreach (SearchAccessPolicyBindingsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (PolicyBinding 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 (PolicyBinding 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 iam_v3beta_generated_AccessPolicies_SearchAccessPolicyBindings_async] +} diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.SearchAccessPolicyBindingsRequestObjectSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.SearchAccessPolicyBindingsRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..9f82779eb41d --- /dev/null +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.SearchAccessPolicyBindingsRequestObjectSnippet.g.cs @@ -0,0 +1,80 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START iam_v3beta_generated_AccessPolicies_SearchAccessPolicyBindings_sync] + using Google.Api.Gax; + using Google.Cloud.Iam.V3Beta; + using System; + + public sealed partial class GeneratedAccessPoliciesClientSnippets + { + /// Snippet for SearchAccessPolicyBindings + /// + /// 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 SearchAccessPolicyBindingsRequestObject() + { + // Create client + AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create(); + // Initialize request argument(s) + SearchAccessPolicyBindingsRequest request = new SearchAccessPolicyBindingsRequest + { + AccessPolicyName = AccessPolicyName.FromOrganizationLocationAccessPolicy("[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]"), + }; + // Make the request + PagedEnumerable response = accessPoliciesClient.SearchAccessPolicyBindings(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (PolicyBinding 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 (SearchAccessPolicyBindingsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (PolicyBinding 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 (PolicyBinding 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 iam_v3beta_generated_AccessPolicies_SearchAccessPolicyBindings_sync] +} diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.SearchAccessPolicyBindingsResourceNamesAsyncSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.SearchAccessPolicyBindingsResourceNamesAsyncSnippet.g.cs new file mode 100644 index 000000000000..a860c9ac3548 --- /dev/null +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.SearchAccessPolicyBindingsResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,78 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START iam_v3beta_generated_AccessPolicies_SearchAccessPolicyBindings_async_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.Iam.V3Beta; + using System; + using System.Threading.Tasks; + + public sealed partial class GeneratedAccessPoliciesClientSnippets + { + /// Snippet for SearchAccessPolicyBindingsAsync + /// + /// 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 SearchAccessPolicyBindingsResourceNamesAsync() + { + // Create client + AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync(); + // Initialize request argument(s) + AccessPolicyName name = AccessPolicyName.FromOrganizationLocationAccessPolicy("[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]"); + // Make the request + PagedAsyncEnumerable response = accessPoliciesClient.SearchAccessPolicyBindingsAsync(name); + + // Iterate over all response items, lazily performing RPCs as required + await foreach (PolicyBinding item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + await foreach (SearchAccessPolicyBindingsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (PolicyBinding 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 (PolicyBinding 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 iam_v3beta_generated_AccessPolicies_SearchAccessPolicyBindings_async_flattened_resourceNames] +} diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.SearchAccessPolicyBindingsResourceNamesSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.SearchAccessPolicyBindingsResourceNamesSnippet.g.cs new file mode 100644 index 000000000000..ada8429c0f84 --- /dev/null +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.SearchAccessPolicyBindingsResourceNamesSnippet.g.cs @@ -0,0 +1,77 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START iam_v3beta_generated_AccessPolicies_SearchAccessPolicyBindings_sync_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.Iam.V3Beta; + using System; + + public sealed partial class GeneratedAccessPoliciesClientSnippets + { + /// Snippet for SearchAccessPolicyBindings + /// + /// 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 SearchAccessPolicyBindingsResourceNames() + { + // Create client + AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create(); + // Initialize request argument(s) + AccessPolicyName name = AccessPolicyName.FromOrganizationLocationAccessPolicy("[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]"); + // Make the request + PagedEnumerable response = accessPoliciesClient.SearchAccessPolicyBindings(name); + + // Iterate over all response items, lazily performing RPCs as required + foreach (PolicyBinding 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 (SearchAccessPolicyBindingsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (PolicyBinding 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 (PolicyBinding 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 iam_v3beta_generated_AccessPolicies_SearchAccessPolicyBindings_sync_flattened_resourceNames] +} diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.SearchAccessPolicyBindingsSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.SearchAccessPolicyBindingsSnippet.g.cs new file mode 100644 index 000000000000..e940c070f39d --- /dev/null +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.SearchAccessPolicyBindingsSnippet.g.cs @@ -0,0 +1,77 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START iam_v3beta_generated_AccessPolicies_SearchAccessPolicyBindings_sync_flattened] + using Google.Api.Gax; + using Google.Cloud.Iam.V3Beta; + using System; + + public sealed partial class GeneratedAccessPoliciesClientSnippets + { + /// Snippet for SearchAccessPolicyBindings + /// + /// 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 SearchAccessPolicyBindings() + { + // Create client + AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/accessPolicies/[ACCESS_POLICY]"; + // Make the request + PagedEnumerable response = accessPoliciesClient.SearchAccessPolicyBindings(name); + + // Iterate over all response items, lazily performing RPCs as required + foreach (PolicyBinding 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 (SearchAccessPolicyBindingsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (PolicyBinding 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 (PolicyBinding 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 iam_v3beta_generated_AccessPolicies_SearchAccessPolicyBindings_sync_flattened] +} diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.UpdateAccessPolicyRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.UpdateAccessPolicyRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..b874b3018723 --- /dev/null +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.UpdateAccessPolicyRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,65 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START iam_v3beta_generated_AccessPolicies_UpdateAccessPolicy_async] + using Google.Cloud.Iam.V3Beta; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedAccessPoliciesClientSnippets + { + /// Snippet for UpdateAccessPolicyAsync + /// + /// 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 UpdateAccessPolicyRequestObjectAsync() + { + // Create client + AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync(); + // Initialize request argument(s) + UpdateAccessPolicyRequest request = new UpdateAccessPolicyRequest + { + AccessPolicy = new AccessPolicy(), + ValidateOnly = false, + }; + // Make the request + Operation response = await accessPoliciesClient.UpdateAccessPolicyAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + AccessPolicy 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 accessPoliciesClient.PollOnceUpdateAccessPolicyAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + AccessPolicy retrievedResult = retrievedResponse.Result; + } + } + } + // [END iam_v3beta_generated_AccessPolicies_UpdateAccessPolicy_async] +} diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.UpdateAccessPolicyRequestObjectSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.UpdateAccessPolicyRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..fa46c07c4524 --- /dev/null +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/AccessPoliciesClient.UpdateAccessPolicyRequestObjectSnippet.g.cs @@ -0,0 +1,64 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START iam_v3beta_generated_AccessPolicies_UpdateAccessPolicy_sync] + using Google.Cloud.Iam.V3Beta; + using Google.LongRunning; + + public sealed partial class GeneratedAccessPoliciesClientSnippets + { + /// Snippet for UpdateAccessPolicy + /// + /// 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 UpdateAccessPolicyRequestObject() + { + // Create client + AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create(); + // Initialize request argument(s) + UpdateAccessPolicyRequest request = new UpdateAccessPolicyRequest + { + AccessPolicy = new AccessPolicy(), + ValidateOnly = false, + }; + // Make the request + Operation response = accessPoliciesClient.UpdateAccessPolicy(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + AccessPolicy 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 = accessPoliciesClient.PollOnceUpdateAccessPolicy(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + AccessPolicy retrievedResult = retrievedResponse.Result; + } + } + } + // [END iam_v3beta_generated_AccessPolicies_UpdateAccessPolicy_sync] +} diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/PolicyBindingsClient.SearchTargetPolicyBindingsRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/PolicyBindingsClient.SearchTargetPolicyBindingsRequestObjectAsyncSnippet.g.cs index 2d671f47073e..61a4f6f0071c 100644 --- a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/PolicyBindingsClient.SearchTargetPolicyBindingsRequestObjectAsyncSnippet.g.cs +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/PolicyBindingsClient.SearchTargetPolicyBindingsRequestObjectAsyncSnippet.g.cs @@ -41,6 +41,7 @@ public async Task SearchTargetPolicyBindingsRequestObjectAsync() { Target = "", ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"), + Filter = "", }; // Make the request PagedAsyncEnumerable response = policyBindingsClient.SearchTargetPolicyBindingsAsync(request); diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/PolicyBindingsClient.SearchTargetPolicyBindingsRequestObjectSnippet.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/PolicyBindingsClient.SearchTargetPolicyBindingsRequestObjectSnippet.g.cs index a3defaeef00e..0b1937f0ab4f 100644 --- a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/PolicyBindingsClient.SearchTargetPolicyBindingsRequestObjectSnippet.g.cs +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/PolicyBindingsClient.SearchTargetPolicyBindingsRequestObjectSnippet.g.cs @@ -40,6 +40,7 @@ public void SearchTargetPolicyBindingsRequestObject() { Target = "", ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"), + Filter = "", }; // Make the request PagedEnumerable response = policyBindingsClient.SearchTargetPolicyBindings(request); diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/snippet_metadata_google.iam.v3beta.json b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/snippet_metadata_google.iam.v3beta.json index 8a83ba44d6c8..994222788cea 100644 --- a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/snippet_metadata_google.iam.v3beta.json +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.GeneratedSnippets/snippet_metadata_google.iam.v3beta.json @@ -10,6 +10,2078 @@ ] }, "snippets": [ + { + "regionTag": "iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_sync", + "title": "CreateAccessPolicyRequestObject", + "description": "Snippet for CreateAccessPolicy", + "file": "AccessPoliciesClient.CreateAccessPolicyRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateAccessPolicy", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.CreateAccessPolicy", + "parameters": [ + { + "type": "Google.Cloud.Iam.V3Beta.CreateAccessPolicyRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "AccessPoliciesClient", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient" + }, + "method": { + "shortName": "CreateAccessPolicy", + "fullName": "google.iam.v3beta.AccessPolicies.CreateAccessPolicy", + "service": { + "shortName": "AccessPolicies", + "fullName": "google.iam.v3beta.AccessPolicies" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 64, + "type": "FULL" + }, + { + "start": 35, + "end": 62, + "type": "SHORT" + } + ] + }, + { + "regionTag": "iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_async", + "title": "CreateAccessPolicyRequestObjectAsync", + "description": "Snippet for CreateAccessPolicyAsync", + "file": "AccessPoliciesClient.CreateAccessPolicyRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateAccessPolicyAsync", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.CreateAccessPolicyAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Iam.V3Beta.CreateAccessPolicyRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "AccessPoliciesClient", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient" + }, + "method": { + "shortName": "CreateAccessPolicy", + "fullName": "google.iam.v3beta.AccessPolicies.CreateAccessPolicy", + "service": { + "shortName": "AccessPolicies", + "fullName": "google.iam.v3beta.AccessPolicies" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 65, + "type": "FULL" + }, + { + "start": 36, + "end": 63, + "type": "SHORT" + } + ] + }, + { + "regionTag": "iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_sync_flattened", + "title": "CreateAccessPolicy", + "description": "Snippet for CreateAccessPolicy", + "file": "AccessPoliciesClient.CreateAccessPolicySnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateAccessPolicy", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.CreateAccessPolicy", + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Cloud.Iam.V3Beta.AccessPolicy", + "name": "accessPolicy" + }, + { + "type": "System.String", + "name": "accessPolicyId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "AccessPoliciesClient", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient" + }, + "method": { + "shortName": "CreateAccessPolicy", + "fullName": "google.iam.v3beta.AccessPolicies.CreateAccessPolicy", + "service": { + "shortName": "AccessPolicies", + "fullName": "google.iam.v3beta.AccessPolicies" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 35, + "end": 58, + "type": "SHORT" + } + ] + }, + { + "regionTag": "iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_async_flattened", + "title": "CreateAccessPolicyAsync", + "description": "Snippet for CreateAccessPolicyAsync", + "file": "AccessPoliciesClient.CreateAccessPolicyAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateAccessPolicyAsync", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.CreateAccessPolicyAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Cloud.Iam.V3Beta.AccessPolicy", + "name": "accessPolicy" + }, + { + "type": "System.String", + "name": "accessPolicyId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "AccessPoliciesClient", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient" + }, + "method": { + "shortName": "CreateAccessPolicy", + "fullName": "google.iam.v3beta.AccessPolicies.CreateAccessPolicy", + "service": { + "shortName": "AccessPolicies", + "fullName": "google.iam.v3beta.AccessPolicies" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 61, + "type": "FULL" + }, + { + "start": 36, + "end": 59, + "type": "SHORT" + } + ] + }, + { + "regionTag": "iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_sync_flattened_resourceNames1", + "title": "CreateAccessPolicyResourceNames1", + "description": "Snippet for CreateAccessPolicy", + "file": "AccessPoliciesClient.CreateAccessPolicyResourceNames1Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateAccessPolicy", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.CreateAccessPolicy", + "parameters": [ + { + "type": "Google.Cloud.Iam.V3Beta.OrganizationLocationName", + "name": "parent" + }, + { + "type": "Google.Cloud.Iam.V3Beta.AccessPolicy", + "name": "accessPolicy" + }, + { + "type": "System.String", + "name": "accessPolicyId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "AccessPoliciesClient", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient" + }, + "method": { + "shortName": "CreateAccessPolicy", + "fullName": "google.iam.v3beta.AccessPolicies.CreateAccessPolicy", + "service": { + "shortName": "AccessPolicies", + "fullName": "google.iam.v3beta.AccessPolicies" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 35, + "end": 58, + "type": "SHORT" + } + ] + }, + { + "regionTag": "iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_async_flattened_resourceNames1", + "title": "CreateAccessPolicyResourceNames1Async", + "description": "Snippet for CreateAccessPolicyAsync", + "file": "AccessPoliciesClient.CreateAccessPolicyResourceNames1AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateAccessPolicyAsync", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.CreateAccessPolicyAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Iam.V3Beta.OrganizationLocationName", + "name": "parent" + }, + { + "type": "Google.Cloud.Iam.V3Beta.AccessPolicy", + "name": "accessPolicy" + }, + { + "type": "System.String", + "name": "accessPolicyId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "AccessPoliciesClient", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient" + }, + "method": { + "shortName": "CreateAccessPolicy", + "fullName": "google.iam.v3beta.AccessPolicies.CreateAccessPolicy", + "service": { + "shortName": "AccessPolicies", + "fullName": "google.iam.v3beta.AccessPolicies" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 61, + "type": "FULL" + }, + { + "start": 36, + "end": 59, + "type": "SHORT" + } + ] + }, + { + "regionTag": "iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_sync_flattened_resourceNames2", + "title": "CreateAccessPolicyResourceNames2", + "description": "Snippet for CreateAccessPolicy", + "file": "AccessPoliciesClient.CreateAccessPolicyResourceNames2Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateAccessPolicy", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.CreateAccessPolicy", + "parameters": [ + { + "type": "Google.Cloud.Iam.V3Beta.FolderLocationName", + "name": "parent" + }, + { + "type": "Google.Cloud.Iam.V3Beta.AccessPolicy", + "name": "accessPolicy" + }, + { + "type": "System.String", + "name": "accessPolicyId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "AccessPoliciesClient", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient" + }, + "method": { + "shortName": "CreateAccessPolicy", + "fullName": "google.iam.v3beta.AccessPolicies.CreateAccessPolicy", + "service": { + "shortName": "AccessPolicies", + "fullName": "google.iam.v3beta.AccessPolicies" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 35, + "end": 58, + "type": "SHORT" + } + ] + }, + { + "regionTag": "iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_async_flattened_resourceNames2", + "title": "CreateAccessPolicyResourceNames2Async", + "description": "Snippet for CreateAccessPolicyAsync", + "file": "AccessPoliciesClient.CreateAccessPolicyResourceNames2AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateAccessPolicyAsync", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.CreateAccessPolicyAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Iam.V3Beta.FolderLocationName", + "name": "parent" + }, + { + "type": "Google.Cloud.Iam.V3Beta.AccessPolicy", + "name": "accessPolicy" + }, + { + "type": "System.String", + "name": "accessPolicyId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "AccessPoliciesClient", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient" + }, + "method": { + "shortName": "CreateAccessPolicy", + "fullName": "google.iam.v3beta.AccessPolicies.CreateAccessPolicy", + "service": { + "shortName": "AccessPolicies", + "fullName": "google.iam.v3beta.AccessPolicies" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 61, + "type": "FULL" + }, + { + "start": 36, + "end": 59, + "type": "SHORT" + } + ] + }, + { + "regionTag": "iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_sync_flattened_resourceNames3", + "title": "CreateAccessPolicyResourceNames3", + "description": "Snippet for CreateAccessPolicy", + "file": "AccessPoliciesClient.CreateAccessPolicyResourceNames3Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateAccessPolicy", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.CreateAccessPolicy", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.LocationName", + "name": "parent" + }, + { + "type": "Google.Cloud.Iam.V3Beta.AccessPolicy", + "name": "accessPolicy" + }, + { + "type": "System.String", + "name": "accessPolicyId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "AccessPoliciesClient", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient" + }, + "method": { + "shortName": "CreateAccessPolicy", + "fullName": "google.iam.v3beta.AccessPolicies.CreateAccessPolicy", + "service": { + "shortName": "AccessPolicies", + "fullName": "google.iam.v3beta.AccessPolicies" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 61, + "type": "FULL" + }, + { + "start": 36, + "end": 59, + "type": "SHORT" + } + ] + }, + { + "regionTag": "iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_async_flattened_resourceNames3", + "title": "CreateAccessPolicyResourceNames3Async", + "description": "Snippet for CreateAccessPolicyAsync", + "file": "AccessPoliciesClient.CreateAccessPolicyResourceNames3AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateAccessPolicyAsync", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.CreateAccessPolicyAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.LocationName", + "name": "parent" + }, + { + "type": "Google.Cloud.Iam.V3Beta.AccessPolicy", + "name": "accessPolicy" + }, + { + "type": "System.String", + "name": "accessPolicyId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "AccessPoliciesClient", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient" + }, + "method": { + "shortName": "CreateAccessPolicy", + "fullName": "google.iam.v3beta.AccessPolicies.CreateAccessPolicy", + "service": { + "shortName": "AccessPolicies", + "fullName": "google.iam.v3beta.AccessPolicies" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 62, + "type": "FULL" + }, + { + "start": 37, + "end": 60, + "type": "SHORT" + } + ] + }, + { + "regionTag": "iam_v3beta_generated_AccessPolicies_GetAccessPolicy_sync", + "title": "GetAccessPolicyRequestObject", + "description": "Snippet for GetAccessPolicy", + "file": "AccessPoliciesClient.GetAccessPolicyRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetAccessPolicy", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.GetAccessPolicy", + "parameters": [ + { + "type": "Google.Cloud.Iam.V3Beta.GetAccessPolicyRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Iam.V3Beta.AccessPolicy", + "client": { + "shortName": "AccessPoliciesClient", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient" + }, + "method": { + "shortName": "GetAccessPolicy", + "fullName": "google.iam.v3beta.AccessPolicies.GetAccessPolicy", + "service": { + "shortName": "AccessPolicies", + "fullName": "google.iam.v3beta.AccessPolicies" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "iam_v3beta_generated_AccessPolicies_GetAccessPolicy_async", + "title": "GetAccessPolicyRequestObjectAsync", + "description": "Snippet for GetAccessPolicyAsync", + "file": "AccessPoliciesClient.GetAccessPolicyRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetAccessPolicyAsync", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.GetAccessPolicyAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Iam.V3Beta.GetAccessPolicyRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "AccessPoliciesClient", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient" + }, + "method": { + "shortName": "GetAccessPolicy", + "fullName": "google.iam.v3beta.AccessPolicies.GetAccessPolicy", + "service": { + "shortName": "AccessPolicies", + "fullName": "google.iam.v3beta.AccessPolicies" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "iam_v3beta_generated_AccessPolicies_GetAccessPolicy_sync_flattened", + "title": "GetAccessPolicy", + "description": "Snippet for GetAccessPolicy", + "file": "AccessPoliciesClient.GetAccessPolicySnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetAccessPolicy", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.GetAccessPolicy", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Iam.V3Beta.AccessPolicy", + "client": { + "shortName": "AccessPoliciesClient", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient" + }, + "method": { + "shortName": "GetAccessPolicy", + "fullName": "google.iam.v3beta.AccessPolicies.GetAccessPolicy", + "service": { + "shortName": "AccessPolicies", + "fullName": "google.iam.v3beta.AccessPolicies" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "iam_v3beta_generated_AccessPolicies_GetAccessPolicy_async_flattened", + "title": "GetAccessPolicyAsync", + "description": "Snippet for GetAccessPolicyAsync", + "file": "AccessPoliciesClient.GetAccessPolicyAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetAccessPolicyAsync", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.GetAccessPolicyAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "AccessPoliciesClient", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient" + }, + "method": { + "shortName": "GetAccessPolicy", + "fullName": "google.iam.v3beta.AccessPolicies.GetAccessPolicy", + "service": { + "shortName": "AccessPolicies", + "fullName": "google.iam.v3beta.AccessPolicies" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "iam_v3beta_generated_AccessPolicies_GetAccessPolicy_sync_flattened_resourceNames", + "title": "GetAccessPolicyResourceNames", + "description": "Snippet for GetAccessPolicy", + "file": "AccessPoliciesClient.GetAccessPolicyResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetAccessPolicy", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.GetAccessPolicy", + "parameters": [ + { + "type": "Google.Cloud.Iam.V3Beta.AccessPolicyName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Iam.V3Beta.AccessPolicy", + "client": { + "shortName": "AccessPoliciesClient", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient" + }, + "method": { + "shortName": "GetAccessPolicy", + "fullName": "google.iam.v3beta.AccessPolicies.GetAccessPolicy", + "service": { + "shortName": "AccessPolicies", + "fullName": "google.iam.v3beta.AccessPolicies" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "iam_v3beta_generated_AccessPolicies_GetAccessPolicy_async_flattened_resourceNames", + "title": "GetAccessPolicyResourceNamesAsync", + "description": "Snippet for GetAccessPolicyAsync", + "file": "AccessPoliciesClient.GetAccessPolicyResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetAccessPolicyAsync", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.GetAccessPolicyAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Iam.V3Beta.AccessPolicyName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "AccessPoliciesClient", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient" + }, + "method": { + "shortName": "GetAccessPolicy", + "fullName": "google.iam.v3beta.AccessPolicies.GetAccessPolicy", + "service": { + "shortName": "AccessPolicies", + "fullName": "google.iam.v3beta.AccessPolicies" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "iam_v3beta_generated_AccessPolicies_UpdateAccessPolicy_sync", + "title": "UpdateAccessPolicyRequestObject", + "description": "Snippet for UpdateAccessPolicy", + "file": "AccessPoliciesClient.UpdateAccessPolicyRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateAccessPolicy", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.UpdateAccessPolicy", + "parameters": [ + { + "type": "Google.Cloud.Iam.V3Beta.UpdateAccessPolicyRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "AccessPoliciesClient", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient" + }, + "method": { + "shortName": "UpdateAccessPolicy", + "fullName": "google.iam.v3beta.AccessPolicies.UpdateAccessPolicy", + "service": { + "shortName": "AccessPolicies", + "fullName": "google.iam.v3beta.AccessPolicies" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 62, + "type": "FULL" + }, + { + "start": 35, + "end": 60, + "type": "SHORT" + } + ] + }, + { + "regionTag": "iam_v3beta_generated_AccessPolicies_UpdateAccessPolicy_async", + "title": "UpdateAccessPolicyRequestObjectAsync", + "description": "Snippet for UpdateAccessPolicyAsync", + "file": "AccessPoliciesClient.UpdateAccessPolicyRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateAccessPolicyAsync", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.UpdateAccessPolicyAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Iam.V3Beta.UpdateAccessPolicyRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "AccessPoliciesClient", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient" + }, + "method": { + "shortName": "UpdateAccessPolicy", + "fullName": "google.iam.v3beta.AccessPolicies.UpdateAccessPolicy", + "service": { + "shortName": "AccessPolicies", + "fullName": "google.iam.v3beta.AccessPolicies" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 63, + "type": "FULL" + }, + { + "start": 36, + "end": 61, + "type": "SHORT" + } + ] + }, + { + "regionTag": "iam_v3beta_generated_AccessPolicies_DeleteAccessPolicy_sync", + "title": "DeleteAccessPolicyRequestObject", + "description": "Snippet for DeleteAccessPolicy", + "file": "AccessPoliciesClient.DeleteAccessPolicyRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteAccessPolicy", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.DeleteAccessPolicy", + "parameters": [ + { + "type": "Google.Cloud.Iam.V3Beta.DeleteAccessPolicyRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "AccessPoliciesClient", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient" + }, + "method": { + "shortName": "DeleteAccessPolicy", + "fullName": "google.iam.v3beta.AccessPolicies.DeleteAccessPolicy", + "service": { + "shortName": "AccessPolicies", + "fullName": "google.iam.v3beta.AccessPolicies" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 65, + "type": "FULL" + }, + { + "start": 36, + "end": 63, + "type": "SHORT" + } + ] + }, + { + "regionTag": "iam_v3beta_generated_AccessPolicies_DeleteAccessPolicy_async", + "title": "DeleteAccessPolicyRequestObjectAsync", + "description": "Snippet for DeleteAccessPolicyAsync", + "file": "AccessPoliciesClient.DeleteAccessPolicyRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteAccessPolicyAsync", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.DeleteAccessPolicyAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Iam.V3Beta.DeleteAccessPolicyRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "AccessPoliciesClient", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient" + }, + "method": { + "shortName": "DeleteAccessPolicy", + "fullName": "google.iam.v3beta.AccessPolicies.DeleteAccessPolicy", + "service": { + "shortName": "AccessPolicies", + "fullName": "google.iam.v3beta.AccessPolicies" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 66, + "type": "FULL" + }, + { + "start": 37, + "end": 64, + "type": "SHORT" + } + ] + }, + { + "regionTag": "iam_v3beta_generated_AccessPolicies_DeleteAccessPolicy_sync_flattened", + "title": "DeleteAccessPolicy", + "description": "Snippet for DeleteAccessPolicy", + "file": "AccessPoliciesClient.DeleteAccessPolicySnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteAccessPolicy", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.DeleteAccessPolicy", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "AccessPoliciesClient", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient" + }, + "method": { + "shortName": "DeleteAccessPolicy", + "fullName": "google.iam.v3beta.AccessPolicies.DeleteAccessPolicy", + "service": { + "shortName": "AccessPolicies", + "fullName": "google.iam.v3beta.AccessPolicies" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 59, + "type": "FULL" + }, + { + "start": 36, + "end": 57, + "type": "SHORT" + } + ] + }, + { + "regionTag": "iam_v3beta_generated_AccessPolicies_DeleteAccessPolicy_async_flattened", + "title": "DeleteAccessPolicyAsync", + "description": "Snippet for DeleteAccessPolicyAsync", + "file": "AccessPoliciesClient.DeleteAccessPolicyAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteAccessPolicyAsync", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.DeleteAccessPolicyAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "AccessPoliciesClient", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient" + }, + "method": { + "shortName": "DeleteAccessPolicy", + "fullName": "google.iam.v3beta.AccessPolicies.DeleteAccessPolicy", + "service": { + "shortName": "AccessPolicies", + "fullName": "google.iam.v3beta.AccessPolicies" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 37, + "end": 58, + "type": "SHORT" + } + ] + }, + { + "regionTag": "iam_v3beta_generated_AccessPolicies_DeleteAccessPolicy_sync_flattened_resourceNames", + "title": "DeleteAccessPolicyResourceNames", + "description": "Snippet for DeleteAccessPolicy", + "file": "AccessPoliciesClient.DeleteAccessPolicyResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteAccessPolicy", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.DeleteAccessPolicy", + "parameters": [ + { + "type": "Google.Cloud.Iam.V3Beta.AccessPolicyName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "AccessPoliciesClient", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient" + }, + "method": { + "shortName": "DeleteAccessPolicy", + "fullName": "google.iam.v3beta.AccessPolicies.DeleteAccessPolicy", + "service": { + "shortName": "AccessPolicies", + "fullName": "google.iam.v3beta.AccessPolicies" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 59, + "type": "FULL" + }, + { + "start": 36, + "end": 57, + "type": "SHORT" + } + ] + }, + { + "regionTag": "iam_v3beta_generated_AccessPolicies_DeleteAccessPolicy_async_flattened_resourceNames", + "title": "DeleteAccessPolicyResourceNamesAsync", + "description": "Snippet for DeleteAccessPolicyAsync", + "file": "AccessPoliciesClient.DeleteAccessPolicyResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteAccessPolicyAsync", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.DeleteAccessPolicyAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Iam.V3Beta.AccessPolicyName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "AccessPoliciesClient", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient" + }, + "method": { + "shortName": "DeleteAccessPolicy", + "fullName": "google.iam.v3beta.AccessPolicies.DeleteAccessPolicy", + "service": { + "shortName": "AccessPolicies", + "fullName": "google.iam.v3beta.AccessPolicies" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 37, + "end": 58, + "type": "SHORT" + } + ] + }, + { + "regionTag": "iam_v3beta_generated_AccessPolicies_ListAccessPolicies_sync", + "title": "ListAccessPoliciesRequestObject", + "description": "Snippet for ListAccessPolicies", + "file": "AccessPoliciesClient.ListAccessPoliciesRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListAccessPolicies", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.ListAccessPolicies", + "parameters": [ + { + "type": "Google.Cloud.Iam.V3Beta.ListAccessPoliciesRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "AccessPoliciesClient", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient" + }, + "method": { + "shortName": "ListAccessPolicies", + "fullName": "google.iam.v3beta.AccessPolicies.ListAccessPolicies", + "service": { + "shortName": "AccessPolicies", + "fullName": "google.iam.v3beta.AccessPolicies" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 78, + "type": "FULL" + }, + { + "start": 36, + "end": 76, + "type": "SHORT" + } + ] + }, + { + "regionTag": "iam_v3beta_generated_AccessPolicies_ListAccessPolicies_async", + "title": "ListAccessPoliciesRequestObjectAsync", + "description": "Snippet for ListAccessPoliciesAsync", + "file": "AccessPoliciesClient.ListAccessPoliciesRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListAccessPoliciesAsync", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.ListAccessPoliciesAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Iam.V3Beta.ListAccessPoliciesRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "AccessPoliciesClient", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient" + }, + "method": { + "shortName": "ListAccessPolicies", + "fullName": "google.iam.v3beta.AccessPolicies.ListAccessPolicies", + "service": { + "shortName": "AccessPolicies", + "fullName": "google.iam.v3beta.AccessPolicies" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 79, + "type": "FULL" + }, + { + "start": 37, + "end": 77, + "type": "SHORT" + } + ] + }, + { + "regionTag": "iam_v3beta_generated_AccessPolicies_ListAccessPolicies_sync_flattened", + "title": "ListAccessPolicies", + "description": "Snippet for ListAccessPolicies", + "file": "AccessPoliciesClient.ListAccessPoliciesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListAccessPolicies", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.ListAccessPolicies", + "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": "AccessPoliciesClient", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient" + }, + "method": { + "shortName": "ListAccessPolicies", + "fullName": "google.iam.v3beta.AccessPolicies.ListAccessPolicies", + "service": { + "shortName": "AccessPolicies", + "fullName": "google.iam.v3beta.AccessPolicies" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "iam_v3beta_generated_AccessPolicies_ListAccessPolicies_async_flattened", + "title": "ListAccessPoliciesAsync", + "description": "Snippet for ListAccessPoliciesAsync", + "file": "AccessPoliciesClient.ListAccessPoliciesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListAccessPoliciesAsync", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.ListAccessPoliciesAsync", + "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": "AccessPoliciesClient", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient" + }, + "method": { + "shortName": "ListAccessPolicies", + "fullName": "google.iam.v3beta.AccessPolicies.ListAccessPolicies", + "service": { + "shortName": "AccessPolicies", + "fullName": "google.iam.v3beta.AccessPolicies" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 76, + "type": "FULL" + }, + { + "start": 37, + "end": 74, + "type": "SHORT" + } + ] + }, + { + "regionTag": "iam_v3beta_generated_AccessPolicies_ListAccessPolicies_sync_flattened_resourceNames1", + "title": "ListAccessPoliciesResourceNames1", + "description": "Snippet for ListAccessPolicies", + "file": "AccessPoliciesClient.ListAccessPoliciesResourceNames1Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListAccessPolicies", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.ListAccessPolicies", + "parameters": [ + { + "type": "Google.Cloud.Iam.V3Beta.OrganizationLocationName", + "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": "AccessPoliciesClient", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient" + }, + "method": { + "shortName": "ListAccessPolicies", + "fullName": "google.iam.v3beta.AccessPolicies.ListAccessPolicies", + "service": { + "shortName": "AccessPolicies", + "fullName": "google.iam.v3beta.AccessPolicies" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "iam_v3beta_generated_AccessPolicies_ListAccessPolicies_async_flattened_resourceNames1", + "title": "ListAccessPoliciesResourceNames1Async", + "description": "Snippet for ListAccessPoliciesAsync", + "file": "AccessPoliciesClient.ListAccessPoliciesResourceNames1AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListAccessPoliciesAsync", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.ListAccessPoliciesAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Iam.V3Beta.OrganizationLocationName", + "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": "AccessPoliciesClient", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient" + }, + "method": { + "shortName": "ListAccessPolicies", + "fullName": "google.iam.v3beta.AccessPolicies.ListAccessPolicies", + "service": { + "shortName": "AccessPolicies", + "fullName": "google.iam.v3beta.AccessPolicies" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 76, + "type": "FULL" + }, + { + "start": 37, + "end": 74, + "type": "SHORT" + } + ] + }, + { + "regionTag": "iam_v3beta_generated_AccessPolicies_ListAccessPolicies_sync_flattened_resourceNames2", + "title": "ListAccessPoliciesResourceNames2", + "description": "Snippet for ListAccessPolicies", + "file": "AccessPoliciesClient.ListAccessPoliciesResourceNames2Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListAccessPolicies", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.ListAccessPolicies", + "parameters": [ + { + "type": "Google.Cloud.Iam.V3Beta.FolderLocationName", + "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": "AccessPoliciesClient", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient" + }, + "method": { + "shortName": "ListAccessPolicies", + "fullName": "google.iam.v3beta.AccessPolicies.ListAccessPolicies", + "service": { + "shortName": "AccessPolicies", + "fullName": "google.iam.v3beta.AccessPolicies" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "iam_v3beta_generated_AccessPolicies_ListAccessPolicies_async_flattened_resourceNames2", + "title": "ListAccessPoliciesResourceNames2Async", + "description": "Snippet for ListAccessPoliciesAsync", + "file": "AccessPoliciesClient.ListAccessPoliciesResourceNames2AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListAccessPoliciesAsync", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.ListAccessPoliciesAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Iam.V3Beta.FolderLocationName", + "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": "AccessPoliciesClient", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient" + }, + "method": { + "shortName": "ListAccessPolicies", + "fullName": "google.iam.v3beta.AccessPolicies.ListAccessPolicies", + "service": { + "shortName": "AccessPolicies", + "fullName": "google.iam.v3beta.AccessPolicies" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 76, + "type": "FULL" + }, + { + "start": 37, + "end": 74, + "type": "SHORT" + } + ] + }, + { + "regionTag": "iam_v3beta_generated_AccessPolicies_ListAccessPolicies_sync_flattened_resourceNames3", + "title": "ListAccessPoliciesResourceNames3", + "description": "Snippet for ListAccessPolicies", + "file": "AccessPoliciesClient.ListAccessPoliciesResourceNames3Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListAccessPolicies", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.ListAccessPolicies", + "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": "AccessPoliciesClient", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient" + }, + "method": { + "shortName": "ListAccessPolicies", + "fullName": "google.iam.v3beta.AccessPolicies.ListAccessPolicies", + "service": { + "shortName": "AccessPolicies", + "fullName": "google.iam.v3beta.AccessPolicies" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 76, + "type": "FULL" + }, + { + "start": 37, + "end": 74, + "type": "SHORT" + } + ] + }, + { + "regionTag": "iam_v3beta_generated_AccessPolicies_ListAccessPolicies_async_flattened_resourceNames3", + "title": "ListAccessPoliciesResourceNames3Async", + "description": "Snippet for ListAccessPoliciesAsync", + "file": "AccessPoliciesClient.ListAccessPoliciesResourceNames3AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListAccessPoliciesAsync", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.ListAccessPoliciesAsync", + "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": "AccessPoliciesClient", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient" + }, + "method": { + "shortName": "ListAccessPolicies", + "fullName": "google.iam.v3beta.AccessPolicies.ListAccessPolicies", + "service": { + "shortName": "AccessPolicies", + "fullName": "google.iam.v3beta.AccessPolicies" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "iam_v3beta_generated_AccessPolicies_SearchAccessPolicyBindings_sync", + "title": "SearchAccessPolicyBindingsRequestObject", + "description": "Snippet for SearchAccessPolicyBindings", + "file": "AccessPoliciesClient.SearchAccessPolicyBindingsRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SearchAccessPolicyBindings", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.SearchAccessPolicyBindings", + "parameters": [ + { + "type": "Google.Cloud.Iam.V3Beta.SearchAccessPolicyBindingsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "AccessPoliciesClient", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient" + }, + "method": { + "shortName": "SearchAccessPolicyBindings", + "fullName": "google.iam.v3beta.AccessPolicies.SearchAccessPolicyBindings", + "service": { + "shortName": "AccessPolicies", + "fullName": "google.iam.v3beta.AccessPolicies" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 78, + "type": "FULL" + }, + { + "start": 36, + "end": 76, + "type": "SHORT" + } + ] + }, + { + "regionTag": "iam_v3beta_generated_AccessPolicies_SearchAccessPolicyBindings_async", + "title": "SearchAccessPolicyBindingsRequestObjectAsync", + "description": "Snippet for SearchAccessPolicyBindingsAsync", + "file": "AccessPoliciesClient.SearchAccessPolicyBindingsRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SearchAccessPolicyBindingsAsync", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.SearchAccessPolicyBindingsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Iam.V3Beta.SearchAccessPolicyBindingsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "AccessPoliciesClient", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient" + }, + "method": { + "shortName": "SearchAccessPolicyBindings", + "fullName": "google.iam.v3beta.AccessPolicies.SearchAccessPolicyBindings", + "service": { + "shortName": "AccessPolicies", + "fullName": "google.iam.v3beta.AccessPolicies" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 79, + "type": "FULL" + }, + { + "start": 37, + "end": 77, + "type": "SHORT" + } + ] + }, + { + "regionTag": "iam_v3beta_generated_AccessPolicies_SearchAccessPolicyBindings_sync_flattened", + "title": "SearchAccessPolicyBindings", + "description": "Snippet for SearchAccessPolicyBindings", + "file": "AccessPoliciesClient.SearchAccessPolicyBindingsSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SearchAccessPolicyBindings", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.SearchAccessPolicyBindings", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "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": "AccessPoliciesClient", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient" + }, + "method": { + "shortName": "SearchAccessPolicyBindings", + "fullName": "google.iam.v3beta.AccessPolicies.SearchAccessPolicyBindings", + "service": { + "shortName": "AccessPolicies", + "fullName": "google.iam.v3beta.AccessPolicies" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "iam_v3beta_generated_AccessPolicies_SearchAccessPolicyBindings_async_flattened", + "title": "SearchAccessPolicyBindingsAsync", + "description": "Snippet for SearchAccessPolicyBindingsAsync", + "file": "AccessPoliciesClient.SearchAccessPolicyBindingsAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SearchAccessPolicyBindingsAsync", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.SearchAccessPolicyBindingsAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "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": "AccessPoliciesClient", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient" + }, + "method": { + "shortName": "SearchAccessPolicyBindings", + "fullName": "google.iam.v3beta.AccessPolicies.SearchAccessPolicyBindings", + "service": { + "shortName": "AccessPolicies", + "fullName": "google.iam.v3beta.AccessPolicies" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 76, + "type": "FULL" + }, + { + "start": 37, + "end": 74, + "type": "SHORT" + } + ] + }, + { + "regionTag": "iam_v3beta_generated_AccessPolicies_SearchAccessPolicyBindings_sync_flattened_resourceNames", + "title": "SearchAccessPolicyBindingsResourceNames", + "description": "Snippet for SearchAccessPolicyBindings", + "file": "AccessPoliciesClient.SearchAccessPolicyBindingsResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SearchAccessPolicyBindings", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.SearchAccessPolicyBindings", + "parameters": [ + { + "type": "Google.Cloud.Iam.V3Beta.AccessPolicyName", + "name": "name" + }, + { + "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": "AccessPoliciesClient", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient" + }, + "method": { + "shortName": "SearchAccessPolicyBindings", + "fullName": "google.iam.v3beta.AccessPolicies.SearchAccessPolicyBindings", + "service": { + "shortName": "AccessPolicies", + "fullName": "google.iam.v3beta.AccessPolicies" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "iam_v3beta_generated_AccessPolicies_SearchAccessPolicyBindings_async_flattened_resourceNames", + "title": "SearchAccessPolicyBindingsResourceNamesAsync", + "description": "Snippet for SearchAccessPolicyBindingsAsync", + "file": "AccessPoliciesClient.SearchAccessPolicyBindingsResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SearchAccessPolicyBindingsAsync", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient.SearchAccessPolicyBindingsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Iam.V3Beta.AccessPolicyName", + "name": "name" + }, + { + "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": "AccessPoliciesClient", + "fullName": "Google.Cloud.Iam.V3Beta.AccessPoliciesClient" + }, + "method": { + "shortName": "SearchAccessPolicyBindings", + "fullName": "google.iam.v3beta.AccessPolicies.SearchAccessPolicyBindings", + "service": { + "shortName": "AccessPolicies", + "fullName": "google.iam.v3beta.AccessPolicies" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 76, + "type": "FULL" + }, + { + "start": 37, + "end": 74, + "type": "SHORT" + } + ] + }, { "regionTag": "iam_v3beta_generated_PolicyBindings_CreatePolicyBinding_sync", "title": "CreatePolicyBindingRequestObject", @@ -1904,12 +3976,12 @@ "segments": [ { "start": 20, - "end": 79, + "end": 80, "type": "FULL" }, { "start": 36, - "end": 77, + "end": 78, "type": "SHORT" } ] @@ -1953,12 +4025,12 @@ "segments": [ { "start": 20, - "end": 80, + "end": 81, "type": "FULL" }, { "start": 37, - "end": 78, + "end": 79, "type": "SHORT" } ] diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.Snippets/AccessPoliciesClientSnippets.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.Snippets/AccessPoliciesClientSnippets.g.cs new file mode 100644 index 000000000000..8ad428692a02 --- /dev/null +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.Snippets/AccessPoliciesClientSnippets.g.cs @@ -0,0 +1,1428 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Iam.V3Beta; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System; + using System.Threading.Tasks; + + /// Generated snippets. + public sealed class AllGeneratedAccessPoliciesClientSnippets + { + /// Snippet for CreateAccessPolicy + public void CreateAccessPolicyRequestObject() + { + // Snippet: CreateAccessPolicy(CreateAccessPolicyRequest, CallSettings) + // Create client + AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create(); + // Initialize request argument(s) + CreateAccessPolicyRequest request = new CreateAccessPolicyRequest + { + ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"), + AccessPolicyId = "", + AccessPolicy = new AccessPolicy(), + ValidateOnly = false, + }; + // Make the request + Operation response = accessPoliciesClient.CreateAccessPolicy(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + AccessPolicy 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 = accessPoliciesClient.PollOnceCreateAccessPolicy(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + AccessPolicy retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateAccessPolicyAsync + public async Task CreateAccessPolicyRequestObjectAsync() + { + // Snippet: CreateAccessPolicyAsync(CreateAccessPolicyRequest, CallSettings) + // Additional: CreateAccessPolicyAsync(CreateAccessPolicyRequest, CancellationToken) + // Create client + AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync(); + // Initialize request argument(s) + CreateAccessPolicyRequest request = new CreateAccessPolicyRequest + { + ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"), + AccessPolicyId = "", + AccessPolicy = new AccessPolicy(), + ValidateOnly = false, + }; + // Make the request + Operation response = await accessPoliciesClient.CreateAccessPolicyAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + AccessPolicy 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 accessPoliciesClient.PollOnceCreateAccessPolicyAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + AccessPolicy retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateAccessPolicy + public void CreateAccessPolicy() + { + // Snippet: CreateAccessPolicy(string, AccessPolicy, string, CallSettings) + // Create client + AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]"; + AccessPolicy accessPolicy = new AccessPolicy(); + string accessPolicyId = ""; + // Make the request + Operation response = accessPoliciesClient.CreateAccessPolicy(parent, accessPolicy, accessPolicyId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + AccessPolicy 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 = accessPoliciesClient.PollOnceCreateAccessPolicy(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + AccessPolicy retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateAccessPolicyAsync + public async Task CreateAccessPolicyAsync() + { + // Snippet: CreateAccessPolicyAsync(string, AccessPolicy, string, CallSettings) + // Additional: CreateAccessPolicyAsync(string, AccessPolicy, string, CancellationToken) + // Create client + AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]"; + AccessPolicy accessPolicy = new AccessPolicy(); + string accessPolicyId = ""; + // Make the request + Operation response = await accessPoliciesClient.CreateAccessPolicyAsync(parent, accessPolicy, accessPolicyId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + AccessPolicy 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 accessPoliciesClient.PollOnceCreateAccessPolicyAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + AccessPolicy retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateAccessPolicy + public void CreateAccessPolicyResourceNames1() + { + // Snippet: CreateAccessPolicy(OrganizationLocationName, AccessPolicy, string, CallSettings) + // Create client + AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create(); + // Initialize request argument(s) + OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"); + AccessPolicy accessPolicy = new AccessPolicy(); + string accessPolicyId = ""; + // Make the request + Operation response = accessPoliciesClient.CreateAccessPolicy(parent, accessPolicy, accessPolicyId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + AccessPolicy 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 = accessPoliciesClient.PollOnceCreateAccessPolicy(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + AccessPolicy retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateAccessPolicyAsync + public async Task CreateAccessPolicyResourceNames1Async() + { + // Snippet: CreateAccessPolicyAsync(OrganizationLocationName, AccessPolicy, string, CallSettings) + // Additional: CreateAccessPolicyAsync(OrganizationLocationName, AccessPolicy, string, CancellationToken) + // Create client + AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync(); + // Initialize request argument(s) + OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"); + AccessPolicy accessPolicy = new AccessPolicy(); + string accessPolicyId = ""; + // Make the request + Operation response = await accessPoliciesClient.CreateAccessPolicyAsync(parent, accessPolicy, accessPolicyId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + AccessPolicy 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 accessPoliciesClient.PollOnceCreateAccessPolicyAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + AccessPolicy retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateAccessPolicy + public void CreateAccessPolicyResourceNames2() + { + // Snippet: CreateAccessPolicy(FolderLocationName, AccessPolicy, string, CallSettings) + // Create client + AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create(); + // Initialize request argument(s) + FolderLocationName parent = FolderLocationName.FromFolderLocation("[FOLDER]", "[LOCATION]"); + AccessPolicy accessPolicy = new AccessPolicy(); + string accessPolicyId = ""; + // Make the request + Operation response = accessPoliciesClient.CreateAccessPolicy(parent, accessPolicy, accessPolicyId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + AccessPolicy 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 = accessPoliciesClient.PollOnceCreateAccessPolicy(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + AccessPolicy retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateAccessPolicyAsync + public async Task CreateAccessPolicyResourceNames2Async() + { + // Snippet: CreateAccessPolicyAsync(FolderLocationName, AccessPolicy, string, CallSettings) + // Additional: CreateAccessPolicyAsync(FolderLocationName, AccessPolicy, string, CancellationToken) + // Create client + AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync(); + // Initialize request argument(s) + FolderLocationName parent = FolderLocationName.FromFolderLocation("[FOLDER]", "[LOCATION]"); + AccessPolicy accessPolicy = new AccessPolicy(); + string accessPolicyId = ""; + // Make the request + Operation response = await accessPoliciesClient.CreateAccessPolicyAsync(parent, accessPolicy, accessPolicyId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + AccessPolicy 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 accessPoliciesClient.PollOnceCreateAccessPolicyAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + AccessPolicy retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateAccessPolicy + public void CreateAccessPolicyResourceNames3() + { + // Snippet: CreateAccessPolicy(LocationName, AccessPolicy, string, CallSettings) + // Create client + AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + AccessPolicy accessPolicy = new AccessPolicy(); + string accessPolicyId = ""; + // Make the request + Operation response = accessPoliciesClient.CreateAccessPolicy(parent, accessPolicy, accessPolicyId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + AccessPolicy 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 = accessPoliciesClient.PollOnceCreateAccessPolicy(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + AccessPolicy retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateAccessPolicyAsync + public async Task CreateAccessPolicyResourceNames3Async() + { + // Snippet: CreateAccessPolicyAsync(LocationName, AccessPolicy, string, CallSettings) + // Additional: CreateAccessPolicyAsync(LocationName, AccessPolicy, string, CancellationToken) + // Create client + AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + AccessPolicy accessPolicy = new AccessPolicy(); + string accessPolicyId = ""; + // Make the request + Operation response = await accessPoliciesClient.CreateAccessPolicyAsync(parent, accessPolicy, accessPolicyId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + AccessPolicy 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 accessPoliciesClient.PollOnceCreateAccessPolicyAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + AccessPolicy retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for GetAccessPolicy + public void GetAccessPolicyRequestObject() + { + // Snippet: GetAccessPolicy(GetAccessPolicyRequest, CallSettings) + // Create client + AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create(); + // Initialize request argument(s) + GetAccessPolicyRequest request = new GetAccessPolicyRequest + { + AccessPolicyName = AccessPolicyName.FromOrganizationLocationAccessPolicy("[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]"), + }; + // Make the request + AccessPolicy response = accessPoliciesClient.GetAccessPolicy(request); + // End snippet + } + + /// Snippet for GetAccessPolicyAsync + public async Task GetAccessPolicyRequestObjectAsync() + { + // Snippet: GetAccessPolicyAsync(GetAccessPolicyRequest, CallSettings) + // Additional: GetAccessPolicyAsync(GetAccessPolicyRequest, CancellationToken) + // Create client + AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync(); + // Initialize request argument(s) + GetAccessPolicyRequest request = new GetAccessPolicyRequest + { + AccessPolicyName = AccessPolicyName.FromOrganizationLocationAccessPolicy("[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]"), + }; + // Make the request + AccessPolicy response = await accessPoliciesClient.GetAccessPolicyAsync(request); + // End snippet + } + + /// Snippet for GetAccessPolicy + public void GetAccessPolicy() + { + // Snippet: GetAccessPolicy(string, CallSettings) + // Create client + AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/accessPolicies/[ACCESS_POLICY]"; + // Make the request + AccessPolicy response = accessPoliciesClient.GetAccessPolicy(name); + // End snippet + } + + /// Snippet for GetAccessPolicyAsync + public async Task GetAccessPolicyAsync() + { + // Snippet: GetAccessPolicyAsync(string, CallSettings) + // Additional: GetAccessPolicyAsync(string, CancellationToken) + // Create client + AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/accessPolicies/[ACCESS_POLICY]"; + // Make the request + AccessPolicy response = await accessPoliciesClient.GetAccessPolicyAsync(name); + // End snippet + } + + /// Snippet for GetAccessPolicy + public void GetAccessPolicyResourceNames() + { + // Snippet: GetAccessPolicy(AccessPolicyName, CallSettings) + // Create client + AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create(); + // Initialize request argument(s) + AccessPolicyName name = AccessPolicyName.FromOrganizationLocationAccessPolicy("[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]"); + // Make the request + AccessPolicy response = accessPoliciesClient.GetAccessPolicy(name); + // End snippet + } + + /// Snippet for GetAccessPolicyAsync + public async Task GetAccessPolicyResourceNamesAsync() + { + // Snippet: GetAccessPolicyAsync(AccessPolicyName, CallSettings) + // Additional: GetAccessPolicyAsync(AccessPolicyName, CancellationToken) + // Create client + AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync(); + // Initialize request argument(s) + AccessPolicyName name = AccessPolicyName.FromOrganizationLocationAccessPolicy("[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]"); + // Make the request + AccessPolicy response = await accessPoliciesClient.GetAccessPolicyAsync(name); + // End snippet + } + + /// Snippet for UpdateAccessPolicy + public void UpdateAccessPolicyRequestObject() + { + // Snippet: UpdateAccessPolicy(UpdateAccessPolicyRequest, CallSettings) + // Create client + AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create(); + // Initialize request argument(s) + UpdateAccessPolicyRequest request = new UpdateAccessPolicyRequest + { + AccessPolicy = new AccessPolicy(), + ValidateOnly = false, + }; + // Make the request + Operation response = accessPoliciesClient.UpdateAccessPolicy(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + AccessPolicy 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 = accessPoliciesClient.PollOnceUpdateAccessPolicy(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + AccessPolicy retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for UpdateAccessPolicyAsync + public async Task UpdateAccessPolicyRequestObjectAsync() + { + // Snippet: UpdateAccessPolicyAsync(UpdateAccessPolicyRequest, CallSettings) + // Additional: UpdateAccessPolicyAsync(UpdateAccessPolicyRequest, CancellationToken) + // Create client + AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync(); + // Initialize request argument(s) + UpdateAccessPolicyRequest request = new UpdateAccessPolicyRequest + { + AccessPolicy = new AccessPolicy(), + ValidateOnly = false, + }; + // Make the request + Operation response = await accessPoliciesClient.UpdateAccessPolicyAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + AccessPolicy 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 accessPoliciesClient.PollOnceUpdateAccessPolicyAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + AccessPolicy retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for DeleteAccessPolicy + public void DeleteAccessPolicyRequestObject() + { + // Snippet: DeleteAccessPolicy(DeleteAccessPolicyRequest, CallSettings) + // Create client + AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create(); + // Initialize request argument(s) + DeleteAccessPolicyRequest request = new DeleteAccessPolicyRequest + { + AccessPolicyName = AccessPolicyName.FromOrganizationLocationAccessPolicy("[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]"), + Etag = "", + ValidateOnly = false, + Force = false, + }; + // Make the request + Operation response = accessPoliciesClient.DeleteAccessPolicy(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 = accessPoliciesClient.PollOnceDeleteAccessPolicy(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 DeleteAccessPolicyAsync + public async Task DeleteAccessPolicyRequestObjectAsync() + { + // Snippet: DeleteAccessPolicyAsync(DeleteAccessPolicyRequest, CallSettings) + // Additional: DeleteAccessPolicyAsync(DeleteAccessPolicyRequest, CancellationToken) + // Create client + AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync(); + // Initialize request argument(s) + DeleteAccessPolicyRequest request = new DeleteAccessPolicyRequest + { + AccessPolicyName = AccessPolicyName.FromOrganizationLocationAccessPolicy("[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]"), + Etag = "", + ValidateOnly = false, + Force = false, + }; + // Make the request + Operation response = await accessPoliciesClient.DeleteAccessPolicyAsync(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 accessPoliciesClient.PollOnceDeleteAccessPolicyAsync(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 DeleteAccessPolicy + public void DeleteAccessPolicy() + { + // Snippet: DeleteAccessPolicy(string, CallSettings) + // Create client + AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/accessPolicies/[ACCESS_POLICY]"; + // Make the request + Operation response = accessPoliciesClient.DeleteAccessPolicy(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 = accessPoliciesClient.PollOnceDeleteAccessPolicy(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 DeleteAccessPolicyAsync + public async Task DeleteAccessPolicyAsync() + { + // Snippet: DeleteAccessPolicyAsync(string, CallSettings) + // Additional: DeleteAccessPolicyAsync(string, CancellationToken) + // Create client + AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/accessPolicies/[ACCESS_POLICY]"; + // Make the request + Operation response = await accessPoliciesClient.DeleteAccessPolicyAsync(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 accessPoliciesClient.PollOnceDeleteAccessPolicyAsync(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 DeleteAccessPolicy + public void DeleteAccessPolicyResourceNames() + { + // Snippet: DeleteAccessPolicy(AccessPolicyName, CallSettings) + // Create client + AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create(); + // Initialize request argument(s) + AccessPolicyName name = AccessPolicyName.FromOrganizationLocationAccessPolicy("[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]"); + // Make the request + Operation response = accessPoliciesClient.DeleteAccessPolicy(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 = accessPoliciesClient.PollOnceDeleteAccessPolicy(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 DeleteAccessPolicyAsync + public async Task DeleteAccessPolicyResourceNamesAsync() + { + // Snippet: DeleteAccessPolicyAsync(AccessPolicyName, CallSettings) + // Additional: DeleteAccessPolicyAsync(AccessPolicyName, CancellationToken) + // Create client + AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync(); + // Initialize request argument(s) + AccessPolicyName name = AccessPolicyName.FromOrganizationLocationAccessPolicy("[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]"); + // Make the request + Operation response = await accessPoliciesClient.DeleteAccessPolicyAsync(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 accessPoliciesClient.PollOnceDeleteAccessPolicyAsync(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 ListAccessPolicies + public void ListAccessPoliciesRequestObject() + { + // Snippet: ListAccessPolicies(ListAccessPoliciesRequest, CallSettings) + // Create client + AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create(); + // Initialize request argument(s) + ListAccessPoliciesRequest request = new ListAccessPoliciesRequest + { + ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"), + }; + // Make the request + PagedEnumerable response = accessPoliciesClient.ListAccessPolicies(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (AccessPolicy 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 (ListAccessPoliciesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AccessPolicy 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 (AccessPolicy 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 ListAccessPoliciesAsync + public async Task ListAccessPoliciesRequestObjectAsync() + { + // Snippet: ListAccessPoliciesAsync(ListAccessPoliciesRequest, CallSettings) + // Create client + AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync(); + // Initialize request argument(s) + ListAccessPoliciesRequest request = new ListAccessPoliciesRequest + { + ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"), + }; + // Make the request + PagedAsyncEnumerable response = accessPoliciesClient.ListAccessPoliciesAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await foreach (AccessPolicy item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + await foreach (ListAccessPoliciesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AccessPolicy 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 (AccessPolicy 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 ListAccessPolicies + public void ListAccessPolicies() + { + // Snippet: ListAccessPolicies(string, string, int?, CallSettings) + // Create client + AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]"; + // Make the request + PagedEnumerable response = accessPoliciesClient.ListAccessPolicies(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (AccessPolicy 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 (ListAccessPoliciesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AccessPolicy 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 (AccessPolicy 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 ListAccessPoliciesAsync + public async Task ListAccessPoliciesAsync() + { + // Snippet: ListAccessPoliciesAsync(string, string, int?, CallSettings) + // Create client + AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]"; + // Make the request + PagedAsyncEnumerable response = accessPoliciesClient.ListAccessPoliciesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await foreach (AccessPolicy item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + await foreach (ListAccessPoliciesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AccessPolicy 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 (AccessPolicy 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 ListAccessPolicies + public void ListAccessPoliciesResourceNames1() + { + // Snippet: ListAccessPolicies(OrganizationLocationName, string, int?, CallSettings) + // Create client + AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create(); + // Initialize request argument(s) + OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"); + // Make the request + PagedEnumerable response = accessPoliciesClient.ListAccessPolicies(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (AccessPolicy 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 (ListAccessPoliciesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AccessPolicy 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 (AccessPolicy 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 ListAccessPoliciesAsync + public async Task ListAccessPoliciesResourceNames1Async() + { + // Snippet: ListAccessPoliciesAsync(OrganizationLocationName, string, int?, CallSettings) + // Create client + AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync(); + // Initialize request argument(s) + OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"); + // Make the request + PagedAsyncEnumerable response = accessPoliciesClient.ListAccessPoliciesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await foreach (AccessPolicy item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + await foreach (ListAccessPoliciesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AccessPolicy 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 (AccessPolicy 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 ListAccessPolicies + public void ListAccessPoliciesResourceNames2() + { + // Snippet: ListAccessPolicies(FolderLocationName, string, int?, CallSettings) + // Create client + AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create(); + // Initialize request argument(s) + FolderLocationName parent = FolderLocationName.FromFolderLocation("[FOLDER]", "[LOCATION]"); + // Make the request + PagedEnumerable response = accessPoliciesClient.ListAccessPolicies(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (AccessPolicy 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 (ListAccessPoliciesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AccessPolicy 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 (AccessPolicy 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 ListAccessPoliciesAsync + public async Task ListAccessPoliciesResourceNames2Async() + { + // Snippet: ListAccessPoliciesAsync(FolderLocationName, string, int?, CallSettings) + // Create client + AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync(); + // Initialize request argument(s) + FolderLocationName parent = FolderLocationName.FromFolderLocation("[FOLDER]", "[LOCATION]"); + // Make the request + PagedAsyncEnumerable response = accessPoliciesClient.ListAccessPoliciesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await foreach (AccessPolicy item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + await foreach (ListAccessPoliciesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AccessPolicy 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 (AccessPolicy 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 ListAccessPolicies + public void ListAccessPoliciesResourceNames3() + { + // Snippet: ListAccessPolicies(LocationName, string, int?, CallSettings) + // Create client + AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + // Make the request + PagedEnumerable response = accessPoliciesClient.ListAccessPolicies(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (AccessPolicy 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 (ListAccessPoliciesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AccessPolicy 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 (AccessPolicy 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 ListAccessPoliciesAsync + public async Task ListAccessPoliciesResourceNames3Async() + { + // Snippet: ListAccessPoliciesAsync(LocationName, string, int?, CallSettings) + // Create client + AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + // Make the request + PagedAsyncEnumerable response = accessPoliciesClient.ListAccessPoliciesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await foreach (AccessPolicy item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + await foreach (ListAccessPoliciesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AccessPolicy 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 (AccessPolicy 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 SearchAccessPolicyBindings + public void SearchAccessPolicyBindingsRequestObject() + { + // Snippet: SearchAccessPolicyBindings(SearchAccessPolicyBindingsRequest, CallSettings) + // Create client + AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create(); + // Initialize request argument(s) + SearchAccessPolicyBindingsRequest request = new SearchAccessPolicyBindingsRequest + { + AccessPolicyName = AccessPolicyName.FromOrganizationLocationAccessPolicy("[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]"), + }; + // Make the request + PagedEnumerable response = accessPoliciesClient.SearchAccessPolicyBindings(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (PolicyBinding 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 (SearchAccessPolicyBindingsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (PolicyBinding 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 (PolicyBinding 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 SearchAccessPolicyBindingsAsync + public async Task SearchAccessPolicyBindingsRequestObjectAsync() + { + // Snippet: SearchAccessPolicyBindingsAsync(SearchAccessPolicyBindingsRequest, CallSettings) + // Create client + AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync(); + // Initialize request argument(s) + SearchAccessPolicyBindingsRequest request = new SearchAccessPolicyBindingsRequest + { + AccessPolicyName = AccessPolicyName.FromOrganizationLocationAccessPolicy("[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]"), + }; + // Make the request + PagedAsyncEnumerable response = accessPoliciesClient.SearchAccessPolicyBindingsAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await foreach (PolicyBinding item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + await foreach (SearchAccessPolicyBindingsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (PolicyBinding 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 (PolicyBinding 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 SearchAccessPolicyBindings + public void SearchAccessPolicyBindings() + { + // Snippet: SearchAccessPolicyBindings(string, string, int?, CallSettings) + // Create client + AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/accessPolicies/[ACCESS_POLICY]"; + // Make the request + PagedEnumerable response = accessPoliciesClient.SearchAccessPolicyBindings(name); + + // Iterate over all response items, lazily performing RPCs as required + foreach (PolicyBinding 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 (SearchAccessPolicyBindingsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (PolicyBinding 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 (PolicyBinding 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 SearchAccessPolicyBindingsAsync + public async Task SearchAccessPolicyBindingsAsync() + { + // Snippet: SearchAccessPolicyBindingsAsync(string, string, int?, CallSettings) + // Create client + AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/accessPolicies/[ACCESS_POLICY]"; + // Make the request + PagedAsyncEnumerable response = accessPoliciesClient.SearchAccessPolicyBindingsAsync(name); + + // Iterate over all response items, lazily performing RPCs as required + await foreach (PolicyBinding item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + await foreach (SearchAccessPolicyBindingsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (PolicyBinding 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 (PolicyBinding 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 SearchAccessPolicyBindings + public void SearchAccessPolicyBindingsResourceNames() + { + // Snippet: SearchAccessPolicyBindings(AccessPolicyName, string, int?, CallSettings) + // Create client + AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.Create(); + // Initialize request argument(s) + AccessPolicyName name = AccessPolicyName.FromOrganizationLocationAccessPolicy("[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]"); + // Make the request + PagedEnumerable response = accessPoliciesClient.SearchAccessPolicyBindings(name); + + // Iterate over all response items, lazily performing RPCs as required + foreach (PolicyBinding 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 (SearchAccessPolicyBindingsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (PolicyBinding 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 (PolicyBinding 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 SearchAccessPolicyBindingsAsync + public async Task SearchAccessPolicyBindingsResourceNamesAsync() + { + // Snippet: SearchAccessPolicyBindingsAsync(AccessPolicyName, string, int?, CallSettings) + // Create client + AccessPoliciesClient accessPoliciesClient = await AccessPoliciesClient.CreateAsync(); + // Initialize request argument(s) + AccessPolicyName name = AccessPolicyName.FromOrganizationLocationAccessPolicy("[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]"); + // Make the request + PagedAsyncEnumerable response = accessPoliciesClient.SearchAccessPolicyBindingsAsync(name); + + // Iterate over all response items, lazily performing RPCs as required + await foreach (PolicyBinding item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + await foreach (SearchAccessPolicyBindingsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (PolicyBinding 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 (PolicyBinding 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 + } + } +} diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.Snippets/PolicyBindingsClientSnippets.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.Snippets/PolicyBindingsClientSnippets.g.cs index 938254e7d3bb..8475ba5ac22c 100644 --- a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.Snippets/PolicyBindingsClientSnippets.g.cs +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta.Snippets/PolicyBindingsClientSnippets.g.cs @@ -1223,6 +1223,7 @@ public void SearchTargetPolicyBindingsRequestObject() { Target = "", ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"), + Filter = "", }; // Make the request PagedEnumerable response = policyBindingsClient.SearchTargetPolicyBindings(request); @@ -1272,6 +1273,7 @@ public async Task SearchTargetPolicyBindingsRequestObjectAsync() { Target = "", ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"), + Filter = "", }; // Make the request PagedAsyncEnumerable response = policyBindingsClient.SearchTargetPolicyBindingsAsync(request); diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/AccessPoliciesClient.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/AccessPoliciesClient.g.cs new file mode 100644 index 000000000000..786cddee41b6 --- /dev/null +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/AccessPoliciesClient.g.cs @@ -0,0 +1,2006 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +#pragma warning disable CS8981 +using gagr = Google.Api.Gax.ResourceNames; +using gax = Google.Api.Gax; +using gaxgrpc = Google.Api.Gax.Grpc; +using gcl = Google.Cloud.Location; +using grpccore = Grpc.Core; +using grpcinter = Grpc.Core.Interceptors; +using lro = Google.LongRunning; +using mel = Microsoft.Extensions.Logging; +using proto = Google.Protobuf; +using sc = System.Collections; +using scg = System.Collections.Generic; +using sco = System.Collections.ObjectModel; +using st = System.Threading; +using stt = System.Threading.Tasks; +using sys = System; +using wkt = Google.Protobuf.WellKnownTypes; + +namespace Google.Cloud.Iam.V3Beta +{ + /// Settings for instances. + public sealed partial class AccessPoliciesSettings : gaxgrpc::ServiceSettingsBase + { + /// Get a new instance of the default . + /// A new instance of the default . + public static AccessPoliciesSettings GetDefault() => new AccessPoliciesSettings(); + + /// Constructs a new object with default settings. + public AccessPoliciesSettings() + { + } + + private AccessPoliciesSettings(AccessPoliciesSettings existing) : base(existing) + { + gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); + CreateAccessPolicySettings = existing.CreateAccessPolicySettings; + CreateAccessPolicyOperationsSettings = existing.CreateAccessPolicyOperationsSettings.Clone(); + GetAccessPolicySettings = existing.GetAccessPolicySettings; + UpdateAccessPolicySettings = existing.UpdateAccessPolicySettings; + UpdateAccessPolicyOperationsSettings = existing.UpdateAccessPolicyOperationsSettings.Clone(); + DeleteAccessPolicySettings = existing.DeleteAccessPolicySettings; + DeleteAccessPolicyOperationsSettings = existing.DeleteAccessPolicyOperationsSettings.Clone(); + ListAccessPoliciesSettings = existing.ListAccessPoliciesSettings; + SearchAccessPolicyBindingsSettings = existing.SearchAccessPolicyBindingsSettings; + LocationsSettings = existing.LocationsSettings; + OnCopy(existing); + } + + partial void OnCopy(AccessPoliciesSettings existing); + + /// + /// for synchronous and asynchronous calls to + /// AccessPoliciesClient.CreateAccessPolicy and AccessPoliciesClient.CreateAccessPolicyAsync. + /// + /// + /// + /// This call will not be retried. + /// Timeout: 30 seconds. + /// + /// + public gaxgrpc::CallSettings CreateAccessPolicySettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(30000))); + + /// + /// Long Running Operation settings for calls to AccessPoliciesClient.CreateAccessPolicy and + /// AccessPoliciesClient.CreateAccessPolicyAsync. + /// + /// + /// Uses default of: + /// + /// Initial delay: 20 seconds. + /// Delay multiplier: 1.5 + /// Maximum delay: 45 seconds. + /// Total timeout: 24 hours. + /// + /// + public lro::OperationsSettings CreateAccessPolicyOperationsSettings { get; set; } = new lro::OperationsSettings + { + DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)), + }; + + /// + /// for synchronous and asynchronous calls to + /// AccessPoliciesClient.GetAccessPolicy and AccessPoliciesClient.GetAccessPolicyAsync. + /// + /// + /// + /// Initial retry delay: 1000 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 10000 milliseconds. + /// Maximum attempts: 5 + /// + /// Retriable status codes: . + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings GetAccessPolicySettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(10000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable))); + + /// + /// for synchronous and asynchronous calls to + /// AccessPoliciesClient.UpdateAccessPolicy and AccessPoliciesClient.UpdateAccessPolicyAsync. + /// + /// + /// + /// This call will not be retried. + /// Timeout: 30 seconds. + /// + /// + public gaxgrpc::CallSettings UpdateAccessPolicySettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(30000))); + + /// + /// Long Running Operation settings for calls to AccessPoliciesClient.UpdateAccessPolicy and + /// AccessPoliciesClient.UpdateAccessPolicyAsync. + /// + /// + /// Uses default of: + /// + /// Initial delay: 20 seconds. + /// Delay multiplier: 1.5 + /// Maximum delay: 45 seconds. + /// Total timeout: 24 hours. + /// + /// + public lro::OperationsSettings UpdateAccessPolicyOperationsSettings { get; set; } = new lro::OperationsSettings + { + DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)), + }; + + /// + /// for synchronous and asynchronous calls to + /// AccessPoliciesClient.DeleteAccessPolicy and AccessPoliciesClient.DeleteAccessPolicyAsync. + /// + /// + /// + /// This call will not be retried. + /// Timeout: 30 seconds. + /// + /// + public gaxgrpc::CallSettings DeleteAccessPolicySettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(30000))); + + /// + /// Long Running Operation settings for calls to AccessPoliciesClient.DeleteAccessPolicy and + /// AccessPoliciesClient.DeleteAccessPolicyAsync. + /// + /// + /// Uses default of: + /// + /// Initial delay: 20 seconds. + /// Delay multiplier: 1.5 + /// Maximum delay: 45 seconds. + /// Total timeout: 24 hours. + /// + /// + public lro::OperationsSettings DeleteAccessPolicyOperationsSettings { get; set; } = new lro::OperationsSettings + { + DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)), + }; + + /// + /// for synchronous and asynchronous calls to + /// AccessPoliciesClient.ListAccessPolicies and AccessPoliciesClient.ListAccessPoliciesAsync. + /// + /// + /// + /// Initial retry delay: 1000 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 10000 milliseconds. + /// Maximum attempts: 5 + /// + /// Retriable status codes: . + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings ListAccessPoliciesSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(10000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable))); + + /// + /// for synchronous and asynchronous calls to + /// AccessPoliciesClient.SearchAccessPolicyBindings and + /// AccessPoliciesClient.SearchAccessPolicyBindingsAsync. + /// + /// + /// + /// Initial retry delay: 1000 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 10000 milliseconds. + /// Maximum attempts: 5 + /// + /// Retriable status codes: . + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings SearchAccessPolicyBindingsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(10000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable))); + + /// + /// The settings to use for the associated with the client. + /// + public gcl::LocationsSettings LocationsSettings { get; set; } = gcl::LocationsSettings.GetDefault(); + + /// Creates a deep clone of this object, with all the same property values. + /// A deep clone of this object. + public AccessPoliciesSettings Clone() => new AccessPoliciesSettings(this); + } + + /// + /// Builder class for to provide simple configuration of credentials, endpoint + /// etc. + /// + public sealed partial class AccessPoliciesClientBuilder : gaxgrpc::ClientBuilderBase + { + /// The settings to use for RPCs, or null for the default settings. + public AccessPoliciesSettings Settings { get; set; } + + /// Creates a new builder with default settings. + public AccessPoliciesClientBuilder() : base(AccessPoliciesClient.ServiceMetadata) + { + } + + partial void InterceptBuild(ref AccessPoliciesClient client); + + partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); + + /// Builds the resulting client. + public override AccessPoliciesClient Build() + { + AccessPoliciesClient client = null; + InterceptBuild(ref client); + return client ?? BuildImpl(); + } + + /// Builds the resulting client asynchronously. + public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) + { + stt::Task task = null; + InterceptBuildAsync(cancellationToken, ref task); + return task ?? BuildAsyncImpl(cancellationToken); + } + + private AccessPoliciesClient BuildImpl() + { + Validate(); + grpccore::CallInvoker callInvoker = CreateCallInvoker(); + return AccessPoliciesClient.Create(callInvoker, GetEffectiveSettings(Settings?.Clone()), Logger); + } + + private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) + { + Validate(); + grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); + return AccessPoliciesClient.Create(callInvoker, GetEffectiveSettings(Settings?.Clone()), Logger); + } + + /// Returns the channel pool to use when no other options are specified. + protected override gaxgrpc::ChannelPool GetChannelPool() => AccessPoliciesClient.ChannelPool; + } + + /// AccessPolicies client wrapper, for convenient use. + /// + /// Manages Identity and Access Management (IAM) access policies. + /// + public abstract partial class AccessPoliciesClient + { + /// + /// The default endpoint for the AccessPolicies service, which is a host of "iam.googleapis.com" and a port of + /// 443. + /// + public static string DefaultEndpoint { get; } = "iam.googleapis.com:443"; + + /// The default AccessPolicies scopes. + /// + /// The default AccessPolicies scopes are: + /// + /// https://www.googleapis.com/auth/cloud-platform + /// + /// + public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] + { + "https://www.googleapis.com/auth/cloud-platform", + }); + + /// The service metadata associated with this client type. + public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(AccessPolicies.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc | gax::ApiTransports.Rest, PackageApiMetadata.ApiMetadata); + + internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); + + /// + /// Asynchronously creates a using the default credentials, endpoint and + /// settings. To specify custom credentials or other settings, use . + /// + /// + /// The to use while creating the client. + /// + /// The task representing the created . + public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => + new AccessPoliciesClientBuilder().BuildAsync(cancellationToken); + + /// + /// Synchronously creates a using the default credentials, endpoint and + /// settings. To specify custom credentials or other settings, use . + /// + /// The created . + public static AccessPoliciesClient Create() => new AccessPoliciesClientBuilder().Build(); + + /// + /// Creates a which uses the specified call invoker for remote operations. + /// + /// + /// The for remote operations. Must not be null. + /// + /// Optional . + /// Optional . + /// The created . + internal static AccessPoliciesClient Create(grpccore::CallInvoker callInvoker, AccessPoliciesSettings settings = null, mel::ILogger logger = null) + { + gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); + grpcinter::Interceptor interceptor = settings?.Interceptor; + if (interceptor != null) + { + callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); + } + AccessPolicies.AccessPoliciesClient grpcClient = new AccessPolicies.AccessPoliciesClient(callInvoker); + return new AccessPoliciesClientImpl(grpcClient, settings, logger); + } + + /// + /// Shuts down any channels automatically created by and + /// . Channels which weren't automatically created are not + /// affected. + /// + /// + /// After calling this method, further calls to and + /// will create new channels, which could in turn be shut down + /// by another call to this method. + /// + /// A task representing the asynchronous shutdown operation. + public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); + + /// The underlying gRPC AccessPolicies client + public virtual AccessPolicies.AccessPoliciesClient GrpcClient => throw new sys::NotImplementedException(); + + /// The associated with this client. + public virtual gcl::LocationsClient LocationsClient => throw new sys::NotImplementedException(); + + /// + /// Creates an access policy, and returns a long running operation. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation CreateAccessPolicy(CreateAccessPolicyRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Creates an access policy, and returns a long running operation. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> CreateAccessPolicyAsync(CreateAccessPolicyRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Creates an access policy, and returns a long running operation. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> CreateAccessPolicyAsync(CreateAccessPolicyRequest request, st::CancellationToken cancellationToken) => + CreateAccessPolicyAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// The long-running operations client for CreateAccessPolicy. + public virtual lro::OperationsClient CreateAccessPolicyOperationsClient => throw new sys::NotImplementedException(); + + /// + /// Poll an operation once, using an operationName from a previous invocation of CreateAccessPolicy + /// . + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// The result of polling the operation. + public virtual lro::Operation PollOnceCreateAccessPolicy(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), CreateAccessPolicyOperationsClient, callSettings); + + /// + /// Asynchronously poll an operation once, using an operationName from a previous invocation of + /// CreateAccessPolicy. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// A task representing the result of polling the operation. + public virtual stt::Task> PollOnceCreateAccessPolicyAsync(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), CreateAccessPolicyOperationsClient, callSettings); + + /// + /// Creates an access policy, and returns a long running operation. + /// + /// + /// Required. The parent resource where this access policy will be created. + /// + /// Format: + /// `projects/{project_id}/locations/{location}` + /// `projects/{project_number}/locations/{location}` + /// `folders/{folder_id}/locations/{location}` + /// `organizations/{organization_id}/locations/{location}` + /// + /// + /// Required. The access policy to create. + /// + /// + /// Required. The ID to use for the access policy, which + /// will become the final component of the access policy's + /// resource name. + /// + /// This value must start with a lowercase letter followed by up to 62 + /// lowercase letters, numbers, hyphens, or dots. Pattern, + /// /[a-z][a-z0-9-\.]{2,62}/. + /// + /// This value must be unique among all access policies with the same parent. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation CreateAccessPolicy(string parent, AccessPolicy accessPolicy, string accessPolicyId, gaxgrpc::CallSettings callSettings = null) => + CreateAccessPolicy(new CreateAccessPolicyRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + AccessPolicyId = gax::GaxPreconditions.CheckNotNullOrEmpty(accessPolicyId, nameof(accessPolicyId)), + AccessPolicy = gax::GaxPreconditions.CheckNotNull(accessPolicy, nameof(accessPolicy)), + }, callSettings); + + /// + /// Creates an access policy, and returns a long running operation. + /// + /// + /// Required. The parent resource where this access policy will be created. + /// + /// Format: + /// `projects/{project_id}/locations/{location}` + /// `projects/{project_number}/locations/{location}` + /// `folders/{folder_id}/locations/{location}` + /// `organizations/{organization_id}/locations/{location}` + /// + /// + /// Required. The access policy to create. + /// + /// + /// Required. The ID to use for the access policy, which + /// will become the final component of the access policy's + /// resource name. + /// + /// This value must start with a lowercase letter followed by up to 62 + /// lowercase letters, numbers, hyphens, or dots. Pattern, + /// /[a-z][a-z0-9-\.]{2,62}/. + /// + /// This value must be unique among all access policies with the same parent. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> CreateAccessPolicyAsync(string parent, AccessPolicy accessPolicy, string accessPolicyId, gaxgrpc::CallSettings callSettings = null) => + CreateAccessPolicyAsync(new CreateAccessPolicyRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + AccessPolicyId = gax::GaxPreconditions.CheckNotNullOrEmpty(accessPolicyId, nameof(accessPolicyId)), + AccessPolicy = gax::GaxPreconditions.CheckNotNull(accessPolicy, nameof(accessPolicy)), + }, callSettings); + + /// + /// Creates an access policy, and returns a long running operation. + /// + /// + /// Required. The parent resource where this access policy will be created. + /// + /// Format: + /// `projects/{project_id}/locations/{location}` + /// `projects/{project_number}/locations/{location}` + /// `folders/{folder_id}/locations/{location}` + /// `organizations/{organization_id}/locations/{location}` + /// + /// + /// Required. The access policy to create. + /// + /// + /// Required. The ID to use for the access policy, which + /// will become the final component of the access policy's + /// resource name. + /// + /// This value must start with a lowercase letter followed by up to 62 + /// lowercase letters, numbers, hyphens, or dots. Pattern, + /// /[a-z][a-z0-9-\.]{2,62}/. + /// + /// This value must be unique among all access policies with the same parent. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> CreateAccessPolicyAsync(string parent, AccessPolicy accessPolicy, string accessPolicyId, st::CancellationToken cancellationToken) => + CreateAccessPolicyAsync(parent, accessPolicy, accessPolicyId, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Creates an access policy, and returns a long running operation. + /// + /// + /// Required. The parent resource where this access policy will be created. + /// + /// Format: + /// `projects/{project_id}/locations/{location}` + /// `projects/{project_number}/locations/{location}` + /// `folders/{folder_id}/locations/{location}` + /// `organizations/{organization_id}/locations/{location}` + /// + /// + /// Required. The access policy to create. + /// + /// + /// Required. The ID to use for the access policy, which + /// will become the final component of the access policy's + /// resource name. + /// + /// This value must start with a lowercase letter followed by up to 62 + /// lowercase letters, numbers, hyphens, or dots. Pattern, + /// /[a-z][a-z0-9-\.]{2,62}/. + /// + /// This value must be unique among all access policies with the same parent. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation CreateAccessPolicy(OrganizationLocationName parent, AccessPolicy accessPolicy, string accessPolicyId, gaxgrpc::CallSettings callSettings = null) => + CreateAccessPolicy(new CreateAccessPolicyRequest + { + ParentAsOrganizationLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + AccessPolicyId = gax::GaxPreconditions.CheckNotNullOrEmpty(accessPolicyId, nameof(accessPolicyId)), + AccessPolicy = gax::GaxPreconditions.CheckNotNull(accessPolicy, nameof(accessPolicy)), + }, callSettings); + + /// + /// Creates an access policy, and returns a long running operation. + /// + /// + /// Required. The parent resource where this access policy will be created. + /// + /// Format: + /// `projects/{project_id}/locations/{location}` + /// `projects/{project_number}/locations/{location}` + /// `folders/{folder_id}/locations/{location}` + /// `organizations/{organization_id}/locations/{location}` + /// + /// + /// Required. The access policy to create. + /// + /// + /// Required. The ID to use for the access policy, which + /// will become the final component of the access policy's + /// resource name. + /// + /// This value must start with a lowercase letter followed by up to 62 + /// lowercase letters, numbers, hyphens, or dots. Pattern, + /// /[a-z][a-z0-9-\.]{2,62}/. + /// + /// This value must be unique among all access policies with the same parent. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> CreateAccessPolicyAsync(OrganizationLocationName parent, AccessPolicy accessPolicy, string accessPolicyId, gaxgrpc::CallSettings callSettings = null) => + CreateAccessPolicyAsync(new CreateAccessPolicyRequest + { + ParentAsOrganizationLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + AccessPolicyId = gax::GaxPreconditions.CheckNotNullOrEmpty(accessPolicyId, nameof(accessPolicyId)), + AccessPolicy = gax::GaxPreconditions.CheckNotNull(accessPolicy, nameof(accessPolicy)), + }, callSettings); + + /// + /// Creates an access policy, and returns a long running operation. + /// + /// + /// Required. The parent resource where this access policy will be created. + /// + /// Format: + /// `projects/{project_id}/locations/{location}` + /// `projects/{project_number}/locations/{location}` + /// `folders/{folder_id}/locations/{location}` + /// `organizations/{organization_id}/locations/{location}` + /// + /// + /// Required. The access policy to create. + /// + /// + /// Required. The ID to use for the access policy, which + /// will become the final component of the access policy's + /// resource name. + /// + /// This value must start with a lowercase letter followed by up to 62 + /// lowercase letters, numbers, hyphens, or dots. Pattern, + /// /[a-z][a-z0-9-\.]{2,62}/. + /// + /// This value must be unique among all access policies with the same parent. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> CreateAccessPolicyAsync(OrganizationLocationName parent, AccessPolicy accessPolicy, string accessPolicyId, st::CancellationToken cancellationToken) => + CreateAccessPolicyAsync(parent, accessPolicy, accessPolicyId, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Creates an access policy, and returns a long running operation. + /// + /// + /// Required. The parent resource where this access policy will be created. + /// + /// Format: + /// `projects/{project_id}/locations/{location}` + /// `projects/{project_number}/locations/{location}` + /// `folders/{folder_id}/locations/{location}` + /// `organizations/{organization_id}/locations/{location}` + /// + /// + /// Required. The access policy to create. + /// + /// + /// Required. The ID to use for the access policy, which + /// will become the final component of the access policy's + /// resource name. + /// + /// This value must start with a lowercase letter followed by up to 62 + /// lowercase letters, numbers, hyphens, or dots. Pattern, + /// /[a-z][a-z0-9-\.]{2,62}/. + /// + /// This value must be unique among all access policies with the same parent. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation CreateAccessPolicy(FolderLocationName parent, AccessPolicy accessPolicy, string accessPolicyId, gaxgrpc::CallSettings callSettings = null) => + CreateAccessPolicy(new CreateAccessPolicyRequest + { + ParentAsFolderLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + AccessPolicyId = gax::GaxPreconditions.CheckNotNullOrEmpty(accessPolicyId, nameof(accessPolicyId)), + AccessPolicy = gax::GaxPreconditions.CheckNotNull(accessPolicy, nameof(accessPolicy)), + }, callSettings); + + /// + /// Creates an access policy, and returns a long running operation. + /// + /// + /// Required. The parent resource where this access policy will be created. + /// + /// Format: + /// `projects/{project_id}/locations/{location}` + /// `projects/{project_number}/locations/{location}` + /// `folders/{folder_id}/locations/{location}` + /// `organizations/{organization_id}/locations/{location}` + /// + /// + /// Required. The access policy to create. + /// + /// + /// Required. The ID to use for the access policy, which + /// will become the final component of the access policy's + /// resource name. + /// + /// This value must start with a lowercase letter followed by up to 62 + /// lowercase letters, numbers, hyphens, or dots. Pattern, + /// /[a-z][a-z0-9-\.]{2,62}/. + /// + /// This value must be unique among all access policies with the same parent. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> CreateAccessPolicyAsync(FolderLocationName parent, AccessPolicy accessPolicy, string accessPolicyId, gaxgrpc::CallSettings callSettings = null) => + CreateAccessPolicyAsync(new CreateAccessPolicyRequest + { + ParentAsFolderLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + AccessPolicyId = gax::GaxPreconditions.CheckNotNullOrEmpty(accessPolicyId, nameof(accessPolicyId)), + AccessPolicy = gax::GaxPreconditions.CheckNotNull(accessPolicy, nameof(accessPolicy)), + }, callSettings); + + /// + /// Creates an access policy, and returns a long running operation. + /// + /// + /// Required. The parent resource where this access policy will be created. + /// + /// Format: + /// `projects/{project_id}/locations/{location}` + /// `projects/{project_number}/locations/{location}` + /// `folders/{folder_id}/locations/{location}` + /// `organizations/{organization_id}/locations/{location}` + /// + /// + /// Required. The access policy to create. + /// + /// + /// Required. The ID to use for the access policy, which + /// will become the final component of the access policy's + /// resource name. + /// + /// This value must start with a lowercase letter followed by up to 62 + /// lowercase letters, numbers, hyphens, or dots. Pattern, + /// /[a-z][a-z0-9-\.]{2,62}/. + /// + /// This value must be unique among all access policies with the same parent. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> CreateAccessPolicyAsync(FolderLocationName parent, AccessPolicy accessPolicy, string accessPolicyId, st::CancellationToken cancellationToken) => + CreateAccessPolicyAsync(parent, accessPolicy, accessPolicyId, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Creates an access policy, and returns a long running operation. + /// + /// + /// Required. The parent resource where this access policy will be created. + /// + /// Format: + /// `projects/{project_id}/locations/{location}` + /// `projects/{project_number}/locations/{location}` + /// `folders/{folder_id}/locations/{location}` + /// `organizations/{organization_id}/locations/{location}` + /// + /// + /// Required. The access policy to create. + /// + /// + /// Required. The ID to use for the access policy, which + /// will become the final component of the access policy's + /// resource name. + /// + /// This value must start with a lowercase letter followed by up to 62 + /// lowercase letters, numbers, hyphens, or dots. Pattern, + /// /[a-z][a-z0-9-\.]{2,62}/. + /// + /// This value must be unique among all access policies with the same parent. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation CreateAccessPolicy(gagr::LocationName parent, AccessPolicy accessPolicy, string accessPolicyId, gaxgrpc::CallSettings callSettings = null) => + CreateAccessPolicy(new CreateAccessPolicyRequest + { + ParentAsLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + AccessPolicyId = gax::GaxPreconditions.CheckNotNullOrEmpty(accessPolicyId, nameof(accessPolicyId)), + AccessPolicy = gax::GaxPreconditions.CheckNotNull(accessPolicy, nameof(accessPolicy)), + }, callSettings); + + /// + /// Creates an access policy, and returns a long running operation. + /// + /// + /// Required. The parent resource where this access policy will be created. + /// + /// Format: + /// `projects/{project_id}/locations/{location}` + /// `projects/{project_number}/locations/{location}` + /// `folders/{folder_id}/locations/{location}` + /// `organizations/{organization_id}/locations/{location}` + /// + /// + /// Required. The access policy to create. + /// + /// + /// Required. The ID to use for the access policy, which + /// will become the final component of the access policy's + /// resource name. + /// + /// This value must start with a lowercase letter followed by up to 62 + /// lowercase letters, numbers, hyphens, or dots. Pattern, + /// /[a-z][a-z0-9-\.]{2,62}/. + /// + /// This value must be unique among all access policies with the same parent. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> CreateAccessPolicyAsync(gagr::LocationName parent, AccessPolicy accessPolicy, string accessPolicyId, gaxgrpc::CallSettings callSettings = null) => + CreateAccessPolicyAsync(new CreateAccessPolicyRequest + { + ParentAsLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + AccessPolicyId = gax::GaxPreconditions.CheckNotNullOrEmpty(accessPolicyId, nameof(accessPolicyId)), + AccessPolicy = gax::GaxPreconditions.CheckNotNull(accessPolicy, nameof(accessPolicy)), + }, callSettings); + + /// + /// Creates an access policy, and returns a long running operation. + /// + /// + /// Required. The parent resource where this access policy will be created. + /// + /// Format: + /// `projects/{project_id}/locations/{location}` + /// `projects/{project_number}/locations/{location}` + /// `folders/{folder_id}/locations/{location}` + /// `organizations/{organization_id}/locations/{location}` + /// + /// + /// Required. The access policy to create. + /// + /// + /// Required. The ID to use for the access policy, which + /// will become the final component of the access policy's + /// resource name. + /// + /// This value must start with a lowercase letter followed by up to 62 + /// lowercase letters, numbers, hyphens, or dots. Pattern, + /// /[a-z][a-z0-9-\.]{2,62}/. + /// + /// This value must be unique among all access policies with the same parent. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> CreateAccessPolicyAsync(gagr::LocationName parent, AccessPolicy accessPolicy, string accessPolicyId, st::CancellationToken cancellationToken) => + CreateAccessPolicyAsync(parent, accessPolicy, accessPolicyId, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets an access policy. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual AccessPolicy GetAccessPolicy(GetAccessPolicyRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Gets an access policy. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetAccessPolicyAsync(GetAccessPolicyRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Gets an access policy. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetAccessPolicyAsync(GetAccessPolicyRequest request, st::CancellationToken cancellationToken) => + GetAccessPolicyAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets an access policy. + /// + /// + /// Required. The name of the access policy to retrieve. + /// + /// Format: + /// `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}` + /// `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual AccessPolicy GetAccessPolicy(string name, gaxgrpc::CallSettings callSettings = null) => + GetAccessPolicy(new GetAccessPolicyRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Gets an access policy. + /// + /// + /// Required. The name of the access policy to retrieve. + /// + /// Format: + /// `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}` + /// `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetAccessPolicyAsync(string name, gaxgrpc::CallSettings callSettings = null) => + GetAccessPolicyAsync(new GetAccessPolicyRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Gets an access policy. + /// + /// + /// Required. The name of the access policy to retrieve. + /// + /// Format: + /// `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}` + /// `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetAccessPolicyAsync(string name, st::CancellationToken cancellationToken) => + GetAccessPolicyAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets an access policy. + /// + /// + /// Required. The name of the access policy to retrieve. + /// + /// Format: + /// `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}` + /// `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual AccessPolicy GetAccessPolicy(AccessPolicyName name, gaxgrpc::CallSettings callSettings = null) => + GetAccessPolicy(new GetAccessPolicyRequest + { + AccessPolicyName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Gets an access policy. + /// + /// + /// Required. The name of the access policy to retrieve. + /// + /// Format: + /// `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}` + /// `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetAccessPolicyAsync(AccessPolicyName name, gaxgrpc::CallSettings callSettings = null) => + GetAccessPolicyAsync(new GetAccessPolicyRequest + { + AccessPolicyName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Gets an access policy. + /// + /// + /// Required. The name of the access policy to retrieve. + /// + /// Format: + /// `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}` + /// `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetAccessPolicyAsync(AccessPolicyName name, st::CancellationToken cancellationToken) => + GetAccessPolicyAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Updates an access policy. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation UpdateAccessPolicy(UpdateAccessPolicyRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Updates an access policy. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> UpdateAccessPolicyAsync(UpdateAccessPolicyRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Updates an access policy. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> UpdateAccessPolicyAsync(UpdateAccessPolicyRequest request, st::CancellationToken cancellationToken) => + UpdateAccessPolicyAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// The long-running operations client for UpdateAccessPolicy. + public virtual lro::OperationsClient UpdateAccessPolicyOperationsClient => throw new sys::NotImplementedException(); + + /// + /// Poll an operation once, using an operationName from a previous invocation of UpdateAccessPolicy + /// . + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// The result of polling the operation. + public virtual lro::Operation PollOnceUpdateAccessPolicy(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), UpdateAccessPolicyOperationsClient, callSettings); + + /// + /// Asynchronously poll an operation once, using an operationName from a previous invocation of + /// UpdateAccessPolicy. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// A task representing the result of polling the operation. + public virtual stt::Task> PollOnceUpdateAccessPolicyAsync(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), UpdateAccessPolicyOperationsClient, callSettings); + + /// + /// Deletes an access policy. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation DeleteAccessPolicy(DeleteAccessPolicyRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Deletes an access policy. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> DeleteAccessPolicyAsync(DeleteAccessPolicyRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Deletes an access policy. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> DeleteAccessPolicyAsync(DeleteAccessPolicyRequest request, st::CancellationToken cancellationToken) => + DeleteAccessPolicyAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// The long-running operations client for DeleteAccessPolicy. + public virtual lro::OperationsClient DeleteAccessPolicyOperationsClient => throw new sys::NotImplementedException(); + + /// + /// Poll an operation once, using an operationName from a previous invocation of DeleteAccessPolicy + /// . + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// The result of polling the operation. + public virtual lro::Operation PollOnceDeleteAccessPolicy(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), DeleteAccessPolicyOperationsClient, callSettings); + + /// + /// Asynchronously poll an operation once, using an operationName from a previous invocation of + /// DeleteAccessPolicy. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// A task representing the result of polling the operation. + public virtual stt::Task> PollOnceDeleteAccessPolicyAsync(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), DeleteAccessPolicyOperationsClient, callSettings); + + /// + /// Deletes an access policy. + /// + /// + /// Required. The name of the access policy to delete. + /// + /// Format: + /// `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}` + /// `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation DeleteAccessPolicy(string name, gaxgrpc::CallSettings callSettings = null) => + DeleteAccessPolicy(new DeleteAccessPolicyRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Deletes an access policy. + /// + /// + /// Required. The name of the access policy to delete. + /// + /// Format: + /// `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}` + /// `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> DeleteAccessPolicyAsync(string name, gaxgrpc::CallSettings callSettings = null) => + DeleteAccessPolicyAsync(new DeleteAccessPolicyRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Deletes an access policy. + /// + /// + /// Required. The name of the access policy to delete. + /// + /// Format: + /// `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}` + /// `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> DeleteAccessPolicyAsync(string name, st::CancellationToken cancellationToken) => + DeleteAccessPolicyAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Deletes an access policy. + /// + /// + /// Required. The name of the access policy to delete. + /// + /// Format: + /// `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}` + /// `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation DeleteAccessPolicy(AccessPolicyName name, gaxgrpc::CallSettings callSettings = null) => + DeleteAccessPolicy(new DeleteAccessPolicyRequest + { + AccessPolicyName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Deletes an access policy. + /// + /// + /// Required. The name of the access policy to delete. + /// + /// Format: + /// `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}` + /// `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> DeleteAccessPolicyAsync(AccessPolicyName name, gaxgrpc::CallSettings callSettings = null) => + DeleteAccessPolicyAsync(new DeleteAccessPolicyRequest + { + AccessPolicyName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Deletes an access policy. + /// + /// + /// Required. The name of the access policy to delete. + /// + /// Format: + /// `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}` + /// `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> DeleteAccessPolicyAsync(AccessPolicyName name, st::CancellationToken cancellationToken) => + DeleteAccessPolicyAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Lists access policies. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable ListAccessPolicies(ListAccessPoliciesRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Lists access policies. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable ListAccessPoliciesAsync(ListAccessPoliciesRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Lists access policies. + /// + /// + /// Required. The parent resource, which owns the collection of access policy + /// resources. + /// + /// Format: + /// `projects/{project_id}/locations/{location}` + /// `projects/{project_number}/locations/{location}` + /// `folders/{folder_id}/locations/{location}` + /// `organizations/{organization_id}/locations/{location}` + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable ListAccessPolicies(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListAccessPoliciesRequest request = new ListAccessPoliciesRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListAccessPolicies(request, callSettings); + } + + /// + /// Lists access policies. + /// + /// + /// Required. The parent resource, which owns the collection of access policy + /// resources. + /// + /// Format: + /// `projects/{project_id}/locations/{location}` + /// `projects/{project_number}/locations/{location}` + /// `folders/{folder_id}/locations/{location}` + /// `organizations/{organization_id}/locations/{location}` + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable ListAccessPoliciesAsync(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListAccessPoliciesRequest request = new ListAccessPoliciesRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListAccessPoliciesAsync(request, callSettings); + } + + /// + /// Lists access policies. + /// + /// + /// Required. The parent resource, which owns the collection of access policy + /// resources. + /// + /// Format: + /// `projects/{project_id}/locations/{location}` + /// `projects/{project_number}/locations/{location}` + /// `folders/{folder_id}/locations/{location}` + /// `organizations/{organization_id}/locations/{location}` + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable ListAccessPolicies(OrganizationLocationName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListAccessPoliciesRequest request = new ListAccessPoliciesRequest + { + ParentAsOrganizationLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListAccessPolicies(request, callSettings); + } + + /// + /// Lists access policies. + /// + /// + /// Required. The parent resource, which owns the collection of access policy + /// resources. + /// + /// Format: + /// `projects/{project_id}/locations/{location}` + /// `projects/{project_number}/locations/{location}` + /// `folders/{folder_id}/locations/{location}` + /// `organizations/{organization_id}/locations/{location}` + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable ListAccessPoliciesAsync(OrganizationLocationName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListAccessPoliciesRequest request = new ListAccessPoliciesRequest + { + ParentAsOrganizationLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListAccessPoliciesAsync(request, callSettings); + } + + /// + /// Lists access policies. + /// + /// + /// Required. The parent resource, which owns the collection of access policy + /// resources. + /// + /// Format: + /// `projects/{project_id}/locations/{location}` + /// `projects/{project_number}/locations/{location}` + /// `folders/{folder_id}/locations/{location}` + /// `organizations/{organization_id}/locations/{location}` + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable ListAccessPolicies(FolderLocationName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListAccessPoliciesRequest request = new ListAccessPoliciesRequest + { + ParentAsFolderLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListAccessPolicies(request, callSettings); + } + + /// + /// Lists access policies. + /// + /// + /// Required. The parent resource, which owns the collection of access policy + /// resources. + /// + /// Format: + /// `projects/{project_id}/locations/{location}` + /// `projects/{project_number}/locations/{location}` + /// `folders/{folder_id}/locations/{location}` + /// `organizations/{organization_id}/locations/{location}` + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable ListAccessPoliciesAsync(FolderLocationName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListAccessPoliciesRequest request = new ListAccessPoliciesRequest + { + ParentAsFolderLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListAccessPoliciesAsync(request, callSettings); + } + + /// + /// Lists access policies. + /// + /// + /// Required. The parent resource, which owns the collection of access policy + /// resources. + /// + /// Format: + /// `projects/{project_id}/locations/{location}` + /// `projects/{project_number}/locations/{location}` + /// `folders/{folder_id}/locations/{location}` + /// `organizations/{organization_id}/locations/{location}` + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable ListAccessPolicies(gagr::LocationName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListAccessPoliciesRequest request = new ListAccessPoliciesRequest + { + ParentAsLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListAccessPolicies(request, callSettings); + } + + /// + /// Lists access policies. + /// + /// + /// Required. The parent resource, which owns the collection of access policy + /// resources. + /// + /// Format: + /// `projects/{project_id}/locations/{location}` + /// `projects/{project_number}/locations/{location}` + /// `folders/{folder_id}/locations/{location}` + /// `organizations/{organization_id}/locations/{location}` + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable ListAccessPoliciesAsync(gagr::LocationName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListAccessPoliciesRequest request = new ListAccessPoliciesRequest + { + ParentAsLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListAccessPoliciesAsync(request, callSettings); + } + + /// + /// Returns all policy bindings that bind a specific policy if a user has + /// searchPolicyBindings permission on that policy. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable SearchAccessPolicyBindings(SearchAccessPolicyBindingsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Returns all policy bindings that bind a specific policy if a user has + /// searchPolicyBindings permission on that policy. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable SearchAccessPolicyBindingsAsync(SearchAccessPolicyBindingsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Returns all policy bindings that bind a specific policy if a user has + /// searchPolicyBindings permission on that policy. + /// + /// + /// Required. The name of the access policy. + /// Format: + /// `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}` + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable SearchAccessPolicyBindings(string name, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + SearchAccessPolicyBindingsRequest request = new SearchAccessPolicyBindingsRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return SearchAccessPolicyBindings(request, callSettings); + } + + /// + /// Returns all policy bindings that bind a specific policy if a user has + /// searchPolicyBindings permission on that policy. + /// + /// + /// Required. The name of the access policy. + /// Format: + /// `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}` + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable SearchAccessPolicyBindingsAsync(string name, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + SearchAccessPolicyBindingsRequest request = new SearchAccessPolicyBindingsRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return SearchAccessPolicyBindingsAsync(request, callSettings); + } + + /// + /// Returns all policy bindings that bind a specific policy if a user has + /// searchPolicyBindings permission on that policy. + /// + /// + /// Required. The name of the access policy. + /// Format: + /// `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}` + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable SearchAccessPolicyBindings(AccessPolicyName name, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + SearchAccessPolicyBindingsRequest request = new SearchAccessPolicyBindingsRequest + { + AccessPolicyName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return SearchAccessPolicyBindings(request, callSettings); + } + + /// + /// Returns all policy bindings that bind a specific policy if a user has + /// searchPolicyBindings permission on that policy. + /// + /// + /// Required. The name of the access policy. + /// Format: + /// `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}` + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable SearchAccessPolicyBindingsAsync(AccessPolicyName name, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + SearchAccessPolicyBindingsRequest request = new SearchAccessPolicyBindingsRequest + { + AccessPolicyName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return SearchAccessPolicyBindingsAsync(request, callSettings); + } + } + + /// AccessPolicies client wrapper implementation, for convenient use. + /// + /// Manages Identity and Access Management (IAM) access policies. + /// + public sealed partial class AccessPoliciesClientImpl : AccessPoliciesClient + { + private readonly gaxgrpc::ApiCall _callCreateAccessPolicy; + + private readonly gaxgrpc::ApiCall _callGetAccessPolicy; + + private readonly gaxgrpc::ApiCall _callUpdateAccessPolicy; + + private readonly gaxgrpc::ApiCall _callDeleteAccessPolicy; + + private readonly gaxgrpc::ApiCall _callListAccessPolicies; + + private readonly gaxgrpc::ApiCall _callSearchAccessPolicyBindings; + + /// + /// Constructs a client wrapper for the AccessPolicies service, with the specified gRPC client and settings. + /// + /// The underlying gRPC client. + /// The base used within this client. + /// Optional to use within this client. + public AccessPoliciesClientImpl(AccessPolicies.AccessPoliciesClient grpcClient, AccessPoliciesSettings settings, mel::ILogger logger) + { + GrpcClient = grpcClient; + AccessPoliciesSettings effectiveSettings = settings ?? AccessPoliciesSettings.GetDefault(); + gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(new gaxgrpc::ClientHelper.Options + { + Settings = effectiveSettings, + Logger = logger, + }); + CreateAccessPolicyOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.CreateAccessPolicyOperationsSettings, logger); + UpdateAccessPolicyOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.UpdateAccessPolicyOperationsSettings, logger); + DeleteAccessPolicyOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.DeleteAccessPolicyOperationsSettings, logger); + LocationsClient = new gcl::LocationsClientImpl(grpcClient.CreateLocationsClient(), effectiveSettings.LocationsSettings, logger); + _callCreateAccessPolicy = clientHelper.BuildApiCall("CreateAccessPolicy", grpcClient.CreateAccessPolicyAsync, grpcClient.CreateAccessPolicy, effectiveSettings.CreateAccessPolicySettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callCreateAccessPolicy); + Modify_CreateAccessPolicyApiCall(ref _callCreateAccessPolicy); + _callGetAccessPolicy = clientHelper.BuildApiCall("GetAccessPolicy", grpcClient.GetAccessPolicyAsync, grpcClient.GetAccessPolicy, effectiveSettings.GetAccessPolicySettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callGetAccessPolicy); + Modify_GetAccessPolicyApiCall(ref _callGetAccessPolicy); + _callUpdateAccessPolicy = clientHelper.BuildApiCall("UpdateAccessPolicy", grpcClient.UpdateAccessPolicyAsync, grpcClient.UpdateAccessPolicy, effectiveSettings.UpdateAccessPolicySettings).WithGoogleRequestParam("access_policy.name", request => request.AccessPolicy?.Name); + Modify_ApiCall(ref _callUpdateAccessPolicy); + Modify_UpdateAccessPolicyApiCall(ref _callUpdateAccessPolicy); + _callDeleteAccessPolicy = clientHelper.BuildApiCall("DeleteAccessPolicy", grpcClient.DeleteAccessPolicyAsync, grpcClient.DeleteAccessPolicy, effectiveSettings.DeleteAccessPolicySettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callDeleteAccessPolicy); + Modify_DeleteAccessPolicyApiCall(ref _callDeleteAccessPolicy); + _callListAccessPolicies = clientHelper.BuildApiCall("ListAccessPolicies", grpcClient.ListAccessPoliciesAsync, grpcClient.ListAccessPolicies, effectiveSettings.ListAccessPoliciesSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callListAccessPolicies); + Modify_ListAccessPoliciesApiCall(ref _callListAccessPolicies); + _callSearchAccessPolicyBindings = clientHelper.BuildApiCall("SearchAccessPolicyBindings", grpcClient.SearchAccessPolicyBindingsAsync, grpcClient.SearchAccessPolicyBindings, effectiveSettings.SearchAccessPolicyBindingsSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callSearchAccessPolicyBindings); + Modify_SearchAccessPolicyBindingsApiCall(ref _callSearchAccessPolicyBindings); + OnConstruction(grpcClient, effectiveSettings, clientHelper); + } + + partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; + + partial void Modify_CreateAccessPolicyApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_GetAccessPolicyApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_UpdateAccessPolicyApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_DeleteAccessPolicyApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_ListAccessPoliciesApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_SearchAccessPolicyBindingsApiCall(ref gaxgrpc::ApiCall call); + + partial void OnConstruction(AccessPolicies.AccessPoliciesClient grpcClient, AccessPoliciesSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); + + /// The underlying gRPC AccessPolicies client + public override AccessPolicies.AccessPoliciesClient GrpcClient { get; } + + /// The associated with this client. + public override gcl::LocationsClient LocationsClient { get; } + + partial void Modify_CreateAccessPolicyRequest(ref CreateAccessPolicyRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_GetAccessPolicyRequest(ref GetAccessPolicyRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_UpdateAccessPolicyRequest(ref UpdateAccessPolicyRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_DeleteAccessPolicyRequest(ref DeleteAccessPolicyRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_ListAccessPoliciesRequest(ref ListAccessPoliciesRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_SearchAccessPolicyBindingsRequest(ref SearchAccessPolicyBindingsRequest request, ref gaxgrpc::CallSettings settings); + + /// The long-running operations client for CreateAccessPolicy. + public override lro::OperationsClient CreateAccessPolicyOperationsClient { get; } + + /// + /// Creates an access policy, and returns a long running operation. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override lro::Operation CreateAccessPolicy(CreateAccessPolicyRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CreateAccessPolicyRequest(ref request, ref callSettings); + return new lro::Operation(_callCreateAccessPolicy.Sync(request, callSettings), CreateAccessPolicyOperationsClient); + } + + /// + /// Creates an access policy, and returns a long running operation. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override async stt::Task> CreateAccessPolicyAsync(CreateAccessPolicyRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CreateAccessPolicyRequest(ref request, ref callSettings); + return new lro::Operation(await _callCreateAccessPolicy.Async(request, callSettings).ConfigureAwait(false), CreateAccessPolicyOperationsClient); + } + + /// + /// Gets an access policy. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override AccessPolicy GetAccessPolicy(GetAccessPolicyRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetAccessPolicyRequest(ref request, ref callSettings); + return _callGetAccessPolicy.Sync(request, callSettings); + } + + /// + /// Gets an access policy. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task GetAccessPolicyAsync(GetAccessPolicyRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetAccessPolicyRequest(ref request, ref callSettings); + return _callGetAccessPolicy.Async(request, callSettings); + } + + /// The long-running operations client for UpdateAccessPolicy. + public override lro::OperationsClient UpdateAccessPolicyOperationsClient { get; } + + /// + /// Updates an access policy. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override lro::Operation UpdateAccessPolicy(UpdateAccessPolicyRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_UpdateAccessPolicyRequest(ref request, ref callSettings); + return new lro::Operation(_callUpdateAccessPolicy.Sync(request, callSettings), UpdateAccessPolicyOperationsClient); + } + + /// + /// Updates an access policy. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override async stt::Task> UpdateAccessPolicyAsync(UpdateAccessPolicyRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_UpdateAccessPolicyRequest(ref request, ref callSettings); + return new lro::Operation(await _callUpdateAccessPolicy.Async(request, callSettings).ConfigureAwait(false), UpdateAccessPolicyOperationsClient); + } + + /// The long-running operations client for DeleteAccessPolicy. + public override lro::OperationsClient DeleteAccessPolicyOperationsClient { get; } + + /// + /// Deletes an access policy. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override lro::Operation DeleteAccessPolicy(DeleteAccessPolicyRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_DeleteAccessPolicyRequest(ref request, ref callSettings); + return new lro::Operation(_callDeleteAccessPolicy.Sync(request, callSettings), DeleteAccessPolicyOperationsClient); + } + + /// + /// Deletes an access policy. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override async stt::Task> DeleteAccessPolicyAsync(DeleteAccessPolicyRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_DeleteAccessPolicyRequest(ref request, ref callSettings); + return new lro::Operation(await _callDeleteAccessPolicy.Async(request, callSettings).ConfigureAwait(false), DeleteAccessPolicyOperationsClient); + } + + /// + /// Lists access policies. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public override gax::PagedEnumerable ListAccessPolicies(ListAccessPoliciesRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ListAccessPoliciesRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedEnumerable(_callListAccessPolicies, request, callSettings); + } + + /// + /// Lists access policies. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public override gax::PagedAsyncEnumerable ListAccessPoliciesAsync(ListAccessPoliciesRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ListAccessPoliciesRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedAsyncEnumerable(_callListAccessPolicies, request, callSettings); + } + + /// + /// Returns all policy bindings that bind a specific policy if a user has + /// searchPolicyBindings permission on that policy. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public override gax::PagedEnumerable SearchAccessPolicyBindings(SearchAccessPolicyBindingsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_SearchAccessPolicyBindingsRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedEnumerable(_callSearchAccessPolicyBindings, request, callSettings); + } + + /// + /// Returns all policy bindings that bind a specific policy if a user has + /// searchPolicyBindings permission on that policy. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public override gax::PagedAsyncEnumerable SearchAccessPolicyBindingsAsync(SearchAccessPolicyBindingsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_SearchAccessPolicyBindingsRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedAsyncEnumerable(_callSearchAccessPolicyBindings, request, callSettings); + } + } + + public partial class ListAccessPoliciesRequest : gaxgrpc::IPageRequest + { + } + + public partial class SearchAccessPolicyBindingsRequest : gaxgrpc::IPageRequest + { + } + + public partial class ListAccessPoliciesResponse : gaxgrpc::IPageResponse + { + /// Returns an enumerator that iterates through the resources in this response. + public scg::IEnumerator GetEnumerator() => AccessPolicies.GetEnumerator(); + + sc::IEnumerator sc::IEnumerable.GetEnumerator() => GetEnumerator(); + } + + public partial class SearchAccessPolicyBindingsResponse : gaxgrpc::IPageResponse + { + /// Returns an enumerator that iterates through the resources in this response. + public scg::IEnumerator GetEnumerator() => PolicyBindings.GetEnumerator(); + + sc::IEnumerator sc::IEnumerable.GetEnumerator() => GetEnumerator(); + } + + public static partial class AccessPolicies + { + public partial class AccessPoliciesClient + { + /// + /// Creates a new instance of using the same call invoker as + /// this client. + /// + /// A new Operations client for the same target as this client. + public virtual lro::Operations.OperationsClient CreateOperationsClient() => + new lro::Operations.OperationsClient(CallInvoker); + } + } + + public static partial class AccessPolicies + { + public partial class AccessPoliciesClient + { + /// + /// Creates a new instance of using the same call invoker as + /// this client. + /// + /// + /// A new for the same target as this client. + /// + public virtual gcl::Locations.LocationsClient CreateLocationsClient() => + new gcl::Locations.LocationsClient(CallInvoker); + } + } +} diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/AccessPoliciesService.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/AccessPoliciesService.g.cs new file mode 100644 index 000000000000..fb3fd7161d0b --- /dev/null +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/AccessPoliciesService.g.cs @@ -0,0 +1,2350 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/iam/v3beta/access_policies_service.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.Iam.V3Beta { + + /// Holder for reflection information generated from google/iam/v3beta/access_policies_service.proto + public static partial class AccessPoliciesServiceReflection { + + #region Descriptor + /// File descriptor for google/iam/v3beta/access_policies_service.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static AccessPoliciesServiceReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ci9nb29nbGUvaWFtL3YzYmV0YS9hY2Nlc3NfcG9saWNpZXNfc2VydmljZS5w", + "cm90bxIRZ29vZ2xlLmlhbS52M2JldGEaHGdvb2dsZS9hcGkvYW5ub3RhdGlv", + "bnMucHJvdG8aF2dvb2dsZS9hcGkvY2xpZW50LnByb3RvGh9nb29nbGUvYXBp", + "L2ZpZWxkX2JlaGF2aW9yLnByb3RvGhlnb29nbGUvYXBpL3Jlc291cmNlLnBy", + "b3RvGi9nb29nbGUvaWFtL3YzYmV0YS9hY2Nlc3NfcG9saWN5X3Jlc291cmNl", + "cy5wcm90bxoqZ29vZ2xlL2lhbS92M2JldGEvb3BlcmF0aW9uX21ldGFkYXRh", + "LnByb3RvGjBnb29nbGUvaWFtL3YzYmV0YS9wb2xpY3lfYmluZGluZ19yZXNv", + "dXJjZXMucHJvdG8aI2dvb2dsZS9sb25ncnVubmluZy9vcGVyYXRpb25zLnBy", + "b3RvGhtnb29nbGUvcHJvdG9idWYvZW1wdHkucHJvdG8izAEKGUNyZWF0ZUFj", + "Y2Vzc1BvbGljeVJlcXVlc3QSNwoGcGFyZW50GAEgASgJQifgQQL6QSESH2lh", + "bS5nb29nbGVhcGlzLmNvbS9BY2Nlc3NQb2xpY3kSHQoQYWNjZXNzX3BvbGlj", + "eV9pZBgCIAEoCUID4EECEjsKDWFjY2Vzc19wb2xpY3kYAyABKAsyHy5nb29n", + "bGUuaWFtLnYzYmV0YS5BY2Nlc3NQb2xpY3lCA+BBAhIaCg12YWxpZGF0ZV9v", + "bmx5GAQgASgIQgPgQQEiTwoWR2V0QWNjZXNzUG9saWN5UmVxdWVzdBI1CgRu", + "YW1lGAEgASgJQifgQQL6QSEKH2lhbS5nb29nbGVhcGlzLmNvbS9BY2Nlc3NQ", + "b2xpY3kidAoZVXBkYXRlQWNjZXNzUG9saWN5UmVxdWVzdBI7Cg1hY2Nlc3Nf", + "cG9saWN5GAEgASgLMh8uZ29vZ2xlLmlhbS52M2JldGEuQWNjZXNzUG9saWN5", + "QgPgQQISGgoNdmFsaWRhdGVfb25seRgCIAEoCEID4EEBIpUBChlEZWxldGVB", + "Y2Nlc3NQb2xpY3lSZXF1ZXN0EjUKBG5hbWUYASABKAlCJ+BBAvpBIQofaWFt", + "Lmdvb2dsZWFwaXMuY29tL0FjY2Vzc1BvbGljeRIRCgRldGFnGAIgASgJQgPg", + "QQESGgoNdmFsaWRhdGVfb25seRgDIAEoCEID4EEBEhIKBWZvcmNlGAQgASgI", + "QgPgQQEihQEKGUxpc3RBY2Nlc3NQb2xpY2llc1JlcXVlc3QSNwoGcGFyZW50", + "GAEgASgJQifgQQL6QSESH2lhbS5nb29nbGVhcGlzLmNvbS9BY2Nlc3NQb2xp", + "Y3kSFgoJcGFnZV9zaXplGAIgASgFQgPgQQESFwoKcGFnZV90b2tlbhgDIAEo", + "CUID4EEBInQKGkxpc3RBY2Nlc3NQb2xpY2llc1Jlc3BvbnNlEjgKD2FjY2Vz", + "c19wb2xpY2llcxgBIAMoCzIfLmdvb2dsZS5pYW0udjNiZXRhLkFjY2Vzc1Bv", + "bGljeRIcCg9uZXh0X3BhZ2VfdG9rZW4YAiABKAlCA+BBASKLAQohU2VhcmNo", + "QWNjZXNzUG9saWN5QmluZGluZ3NSZXF1ZXN0EjUKBG5hbWUYASABKAlCJ+BB", + "AvpBIQofaWFtLmdvb2dsZWFwaXMuY29tL0FjY2Vzc1BvbGljeRIWCglwYWdl", + "X3NpemUYAiABKAVCA+BBARIXCgpwYWdlX3Rva2VuGAMgASgJQgPgQQEifQoi", + "U2VhcmNoQWNjZXNzUG9saWN5QmluZGluZ3NSZXNwb25zZRI5Cg9wb2xpY3lf", + "YmluZGluZ3MYASADKAsyIC5nb29nbGUuaWFtLnYzYmV0YS5Qb2xpY3lCaW5k", + "aW5nEhwKD25leHRfcGFnZV90b2tlbhgCIAEoCUID4EEBMr4RCg5BY2Nlc3NQ", + "b2xpY2llcxKUAwoSQ3JlYXRlQWNjZXNzUG9saWN5EiwuZ29vZ2xlLmlhbS52", + "M2JldGEuQ3JlYXRlQWNjZXNzUG9saWN5UmVxdWVzdBodLmdvb2dsZS5sb25n", + "cnVubmluZy5PcGVyYXRpb24isALKQSEKDEFjY2Vzc1BvbGljeRIRT3BlcmF0", + "aW9uTWV0YWRhdGHaQSVwYXJlbnQsYWNjZXNzX3BvbGljeSxhY2Nlc3NfcG9s", + "aWN5X2lkgtPkkwLdASI2L3YzYmV0YS97cGFyZW50PXByb2plY3RzLyovbG9j", + "YXRpb25zLyp9L2FjY2Vzc1BvbGljaWVzOg1hY2Nlc3NfcG9saWN5WkYiNS92", + "M2JldGEve3BhcmVudD1mb2xkZXJzLyovbG9jYXRpb25zLyp9L2FjY2Vzc1Bv", + "bGljaWVzOg1hY2Nlc3NfcG9saWN5WkwiOy92M2JldGEve3BhcmVudD1vcmdh", + "bml6YXRpb25zLyovbG9jYXRpb25zLyp9L2FjY2Vzc1BvbGljaWVzOg1hY2Nl", + "c3NfcG9saWN5Ep4CCg9HZXRBY2Nlc3NQb2xpY3kSKS5nb29nbGUuaWFtLnYz", + "YmV0YS5HZXRBY2Nlc3NQb2xpY3lSZXF1ZXN0Gh8uZ29vZ2xlLmlhbS52M2Jl", + "dGEuQWNjZXNzUG9saWN5Ir4B2kEEbmFtZYLT5JMCsAESNi92M2JldGEve25h", + "bWU9cHJvamVjdHMvKi9sb2NhdGlvbnMvKi9hY2Nlc3NQb2xpY2llcy8qfVo3", + "EjUvdjNiZXRhL3tuYW1lPWZvbGRlcnMvKi9sb2NhdGlvbnMvKi9hY2Nlc3NQ", + "b2xpY2llcy8qfVo9EjsvdjNiZXRhL3tuYW1lPW9yZ2FuaXphdGlvbnMvKi9s", + "b2NhdGlvbnMvKi9hY2Nlc3NQb2xpY2llcy8qfRKWAwoSVXBkYXRlQWNjZXNz", + "UG9saWN5EiwuZ29vZ2xlLmlhbS52M2JldGEuVXBkYXRlQWNjZXNzUG9saWN5", + "UmVxdWVzdBodLmdvb2dsZS5sb25ncnVubmluZy5PcGVyYXRpb24isgLKQSEK", + "DEFjY2Vzc1BvbGljeRIRT3BlcmF0aW9uTWV0YWRhdGGC0+STAocCMkQvdjNi", + "ZXRhL3thY2Nlc3NfcG9saWN5Lm5hbWU9cHJvamVjdHMvKi9sb2NhdGlvbnMv", + "Ki9hY2Nlc3NQb2xpY2llcy8qfToNYWNjZXNzX3BvbGljeVpUMkMvdjNiZXRh", + "L3thY2Nlc3NfcG9saWN5Lm5hbWU9Zm9sZGVycy8qL2xvY2F0aW9ucy8qL2Fj", + "Y2Vzc1BvbGljaWVzLyp9Og1hY2Nlc3NfcG9saWN5WloySS92M2JldGEve2Fj", + "Y2Vzc19wb2xpY3kubmFtZT1vcmdhbml6YXRpb25zLyovbG9jYXRpb25zLyov", + "YWNjZXNzUG9saWNpZXMvKn06DWFjY2Vzc19wb2xpY3kSzwIKEkRlbGV0ZUFj", + "Y2Vzc1BvbGljeRIsLmdvb2dsZS5pYW0udjNiZXRhLkRlbGV0ZUFjY2Vzc1Bv", + "bGljeVJlcXVlc3QaHS5nb29nbGUubG9uZ3J1bm5pbmcuT3BlcmF0aW9uIusB", + "ykEqChVnb29nbGUucHJvdG9idWYuRW1wdHkSEU9wZXJhdGlvbk1ldGFkYXRh", + "2kEEbmFtZYLT5JMCsAEqNi92M2JldGEve25hbWU9cHJvamVjdHMvKi9sb2Nh", + "dGlvbnMvKi9hY2Nlc3NQb2xpY2llcy8qfVo3KjUvdjNiZXRhL3tuYW1lPWZv", + "bGRlcnMvKi9sb2NhdGlvbnMvKi9hY2Nlc3NQb2xpY2llcy8qfVo9KjsvdjNi", + "ZXRhL3tuYW1lPW9yZ2FuaXphdGlvbnMvKi9sb2NhdGlvbnMvKi9hY2Nlc3NQ", + "b2xpY2llcy8qfRK0AgoSTGlzdEFjY2Vzc1BvbGljaWVzEiwuZ29vZ2xlLmlh", + "bS52M2JldGEuTGlzdEFjY2Vzc1BvbGljaWVzUmVxdWVzdBotLmdvb2dsZS5p", + "YW0udjNiZXRhLkxpc3RBY2Nlc3NQb2xpY2llc1Jlc3BvbnNlIsAB2kEGcGFy", + "ZW50gtPkkwKwARI2L3YzYmV0YS97cGFyZW50PXByb2plY3RzLyovbG9jYXRp", + "b25zLyp9L2FjY2Vzc1BvbGljaWVzWjcSNS92M2JldGEve3BhcmVudD1mb2xk", + "ZXJzLyovbG9jYXRpb25zLyp9L2FjY2Vzc1BvbGljaWVzWj0SOy92M2JldGEv", + "e3BhcmVudD1vcmdhbml6YXRpb25zLyovbG9jYXRpb25zLyp9L2FjY2Vzc1Bv", + "bGljaWVzEokDChpTZWFyY2hBY2Nlc3NQb2xpY3lCaW5kaW5ncxI0Lmdvb2ds", + "ZS5pYW0udjNiZXRhLlNlYXJjaEFjY2Vzc1BvbGljeUJpbmRpbmdzUmVxdWVz", + "dBo1Lmdvb2dsZS5pYW0udjNiZXRhLlNlYXJjaEFjY2Vzc1BvbGljeUJpbmRp", + "bmdzUmVzcG9uc2Ui/QHaQQRuYW1lgtPkkwLvARJQL3YzYmV0YS97bmFtZT1v", + "cmdhbml6YXRpb25zLyovbG9jYXRpb25zLyovYWNjZXNzUG9saWNpZXMvKn06", + "c2VhcmNoUG9saWN5QmluZGluZ3NaTBJKL3YzYmV0YS97bmFtZT1mb2xkZXJz", + "LyovbG9jYXRpb25zLyovYWNjZXNzUG9saWNpZXMvKn06c2VhcmNoUG9saWN5", + "QmluZGluZ3NaTRJLL3YzYmV0YS97bmFtZT1wcm9qZWN0cy8qL2xvY2F0aW9u", + "cy8qL2FjY2Vzc1BvbGljaWVzLyp9OnNlYXJjaFBvbGljeUJpbmRpbmdzGkbK", + "QRJpYW0uZ29vZ2xlYXBpcy5jb23SQS5odHRwczovL3d3dy5nb29nbGVhcGlz", + "LmNvbS9hdXRoL2Nsb3VkLXBsYXRmb3JtQpEBChVjb20uZ29vZ2xlLmlhbS52", + "M2JldGFCE0FjY2Vzc1BvbGljaWVzUHJvdG9QAVotY2xvdWQuZ29vZ2xlLmNv", + "bS9nby9pYW0vYXBpdjNiZXRhL2lhbXBiO2lhbXBiqgIXR29vZ2xlLkNsb3Vk", + "LklhbS5WM0JldGHKAhdHb29nbGVcQ2xvdWRcSWFtXFYzYmV0YWIGcHJvdG8z")); + 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.ResourceReflection.Descriptor, global::Google.Cloud.Iam.V3Beta.AccessPolicyResourcesReflection.Descriptor, global::Google.Cloud.Iam.V3Beta.OperationMetadataReflection.Descriptor, global::Google.Cloud.Iam.V3Beta.PolicyBindingResourcesReflection.Descriptor, global::Google.LongRunning.OperationsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Iam.V3Beta.CreateAccessPolicyRequest), global::Google.Cloud.Iam.V3Beta.CreateAccessPolicyRequest.Parser, new[]{ "Parent", "AccessPolicyId", "AccessPolicy", "ValidateOnly" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Iam.V3Beta.GetAccessPolicyRequest), global::Google.Cloud.Iam.V3Beta.GetAccessPolicyRequest.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Iam.V3Beta.UpdateAccessPolicyRequest), global::Google.Cloud.Iam.V3Beta.UpdateAccessPolicyRequest.Parser, new[]{ "AccessPolicy", "ValidateOnly" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Iam.V3Beta.DeleteAccessPolicyRequest), global::Google.Cloud.Iam.V3Beta.DeleteAccessPolicyRequest.Parser, new[]{ "Name", "Etag", "ValidateOnly", "Force" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Iam.V3Beta.ListAccessPoliciesRequest), global::Google.Cloud.Iam.V3Beta.ListAccessPoliciesRequest.Parser, new[]{ "Parent", "PageSize", "PageToken" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Iam.V3Beta.ListAccessPoliciesResponse), global::Google.Cloud.Iam.V3Beta.ListAccessPoliciesResponse.Parser, new[]{ "AccessPolicies", "NextPageToken" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Iam.V3Beta.SearchAccessPolicyBindingsRequest), global::Google.Cloud.Iam.V3Beta.SearchAccessPolicyBindingsRequest.Parser, new[]{ "Name", "PageSize", "PageToken" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Iam.V3Beta.SearchAccessPolicyBindingsResponse), global::Google.Cloud.Iam.V3Beta.SearchAccessPolicyBindingsResponse.Parser, new[]{ "PolicyBindings", "NextPageToken" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// Request message for CreateAccessPolicy method. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CreateAccessPolicyRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateAccessPolicyRequest()); + 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.Iam.V3Beta.AccessPoliciesServiceReflection.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 CreateAccessPolicyRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateAccessPolicyRequest(CreateAccessPolicyRequest other) : this() { + parent_ = other.parent_; + accessPolicyId_ = other.accessPolicyId_; + accessPolicy_ = other.accessPolicy_ != null ? other.accessPolicy_.Clone() : null; + validateOnly_ = other.validateOnly_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateAccessPolicyRequest Clone() { + return new CreateAccessPolicyRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; + /// + /// Required. The parent resource where this access policy will be created. + /// + /// Format: + /// `projects/{project_id}/locations/{location}` + /// `projects/{project_number}/locations/{location}` + /// `folders/{folder_id}/locations/{location}` + /// `organizations/{organization_id}/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 "access_policy_id" field. + public const int AccessPolicyIdFieldNumber = 2; + private string accessPolicyId_ = ""; + /// + /// Required. The ID to use for the access policy, which + /// will become the final component of the access policy's + /// resource name. + /// + /// This value must start with a lowercase letter followed by up to 62 + /// lowercase letters, numbers, hyphens, or dots. Pattern, + /// /[a-z][a-z0-9-\.]{2,62}/. + /// + /// This value must be unique among all access policies with the same parent. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AccessPolicyId { + get { return accessPolicyId_; } + set { + accessPolicyId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "access_policy" field. + public const int AccessPolicyFieldNumber = 3; + private global::Google.Cloud.Iam.V3Beta.AccessPolicy accessPolicy_; + /// + /// Required. The access policy to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Iam.V3Beta.AccessPolicy AccessPolicy { + get { return accessPolicy_; } + set { + accessPolicy_ = value; + } + } + + /// Field number for the "validate_only" field. + public const int ValidateOnlyFieldNumber = 4; + private bool validateOnly_; + /// + /// Optional. If set, validate the request and preview the creation, but do not + /// actually post it. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool ValidateOnly { + get { return validateOnly_; } + set { + validateOnly_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateAccessPolicyRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateAccessPolicyRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Parent != other.Parent) return false; + if (AccessPolicyId != other.AccessPolicyId) return false; + if (!object.Equals(AccessPolicy, other.AccessPolicy)) return false; + if (ValidateOnly != other.ValidateOnly) 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 (AccessPolicyId.Length != 0) hash ^= AccessPolicyId.GetHashCode(); + if (accessPolicy_ != null) hash ^= AccessPolicy.GetHashCode(); + if (ValidateOnly != false) hash ^= ValidateOnly.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 (AccessPolicyId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(AccessPolicyId); + } + if (accessPolicy_ != null) { + output.WriteRawTag(26); + output.WriteMessage(AccessPolicy); + } + if (ValidateOnly != false) { + output.WriteRawTag(32); + output.WriteBool(ValidateOnly); + } + 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 (AccessPolicyId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(AccessPolicyId); + } + if (accessPolicy_ != null) { + output.WriteRawTag(26); + output.WriteMessage(AccessPolicy); + } + if (ValidateOnly != false) { + output.WriteRawTag(32); + output.WriteBool(ValidateOnly); + } + 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 (AccessPolicyId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AccessPolicyId); + } + if (accessPolicy_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccessPolicy); + } + if (ValidateOnly != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateAccessPolicyRequest other) { + if (other == null) { + return; + } + if (other.Parent.Length != 0) { + Parent = other.Parent; + } + if (other.AccessPolicyId.Length != 0) { + AccessPolicyId = other.AccessPolicyId; + } + if (other.accessPolicy_ != null) { + if (accessPolicy_ == null) { + AccessPolicy = new global::Google.Cloud.Iam.V3Beta.AccessPolicy(); + } + AccessPolicy.MergeFrom(other.AccessPolicy); + } + if (other.ValidateOnly != false) { + ValidateOnly = other.ValidateOnly; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + AccessPolicyId = input.ReadString(); + break; + } + case 26: { + if (accessPolicy_ == null) { + AccessPolicy = new global::Google.Cloud.Iam.V3Beta.AccessPolicy(); + } + input.ReadMessage(AccessPolicy); + break; + } + case 32: { + ValidateOnly = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + AccessPolicyId = input.ReadString(); + break; + } + case 26: { + if (accessPolicy_ == null) { + AccessPolicy = new global::Google.Cloud.Iam.V3Beta.AccessPolicy(); + } + input.ReadMessage(AccessPolicy); + break; + } + case 32: { + ValidateOnly = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for GetAccessPolicy method. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetAccessPolicyRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetAccessPolicyRequest()); + 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.Iam.V3Beta.AccessPoliciesServiceReflection.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 GetAccessPolicyRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetAccessPolicyRequest(GetAccessPolicyRequest other) : this() { + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetAccessPolicyRequest Clone() { + return new GetAccessPolicyRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. The name of the access policy to retrieve. + /// + /// Format: + /// `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}` + /// `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// + [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 GetAccessPolicyRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetAccessPolicyRequest 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(GetAccessPolicyRequest 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for UpdateAccessPolicy method. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UpdateAccessPolicyRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateAccessPolicyRequest()); + 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.Iam.V3Beta.AccessPoliciesServiceReflection.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 UpdateAccessPolicyRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateAccessPolicyRequest(UpdateAccessPolicyRequest other) : this() { + accessPolicy_ = other.accessPolicy_ != null ? other.accessPolicy_.Clone() : null; + validateOnly_ = other.validateOnly_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateAccessPolicyRequest Clone() { + return new UpdateAccessPolicyRequest(this); + } + + /// Field number for the "access_policy" field. + public const int AccessPolicyFieldNumber = 1; + private global::Google.Cloud.Iam.V3Beta.AccessPolicy accessPolicy_; + /// + /// Required. The access policy to update. + /// + /// The access policy's `name` field is used to identify the + /// policy to update. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Iam.V3Beta.AccessPolicy AccessPolicy { + get { return accessPolicy_; } + set { + accessPolicy_ = value; + } + } + + /// Field number for the "validate_only" field. + public const int ValidateOnlyFieldNumber = 2; + private bool validateOnly_; + /// + /// Optional. If set, validate the request and preview the update, but do not + /// actually post it. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool ValidateOnly { + get { return validateOnly_; } + set { + validateOnly_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateAccessPolicyRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateAccessPolicyRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AccessPolicy, other.AccessPolicy)) return false; + if (ValidateOnly != other.ValidateOnly) 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 (accessPolicy_ != null) hash ^= AccessPolicy.GetHashCode(); + if (ValidateOnly != false) hash ^= ValidateOnly.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 (accessPolicy_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AccessPolicy); + } + if (ValidateOnly != false) { + output.WriteRawTag(16); + output.WriteBool(ValidateOnly); + } + 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 (accessPolicy_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AccessPolicy); + } + if (ValidateOnly != false) { + output.WriteRawTag(16); + output.WriteBool(ValidateOnly); + } + 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 (accessPolicy_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccessPolicy); + } + if (ValidateOnly != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateAccessPolicyRequest other) { + if (other == null) { + return; + } + if (other.accessPolicy_ != null) { + if (accessPolicy_ == null) { + AccessPolicy = new global::Google.Cloud.Iam.V3Beta.AccessPolicy(); + } + AccessPolicy.MergeFrom(other.AccessPolicy); + } + if (other.ValidateOnly != false) { + ValidateOnly = other.ValidateOnly; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (accessPolicy_ == null) { + AccessPolicy = new global::Google.Cloud.Iam.V3Beta.AccessPolicy(); + } + input.ReadMessage(AccessPolicy); + break; + } + case 16: { + ValidateOnly = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (accessPolicy_ == null) { + AccessPolicy = new global::Google.Cloud.Iam.V3Beta.AccessPolicy(); + } + input.ReadMessage(AccessPolicy); + break; + } + case 16: { + ValidateOnly = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for DeleteAccessPolicy method. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DeleteAccessPolicyRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteAccessPolicyRequest()); + 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.Iam.V3Beta.AccessPoliciesServiceReflection.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 DeleteAccessPolicyRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteAccessPolicyRequest(DeleteAccessPolicyRequest other) : this() { + name_ = other.name_; + etag_ = other.etag_; + validateOnly_ = other.validateOnly_; + force_ = other.force_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteAccessPolicyRequest Clone() { + return new DeleteAccessPolicyRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. The name of the access policy to delete. + /// + /// Format: + /// `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}` + /// `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// + [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 "etag" field. + public const int EtagFieldNumber = 2; + private string etag_ = ""; + /// + /// Optional. The etag of the access policy. If this is provided, it must match + /// the server's etag. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Etag { + get { return etag_; } + set { + etag_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "validate_only" field. + public const int ValidateOnlyFieldNumber = 3; + private bool validateOnly_; + /// + /// Optional. If set, validate the request and preview the deletion, but do not + /// actually post it. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool ValidateOnly { + get { return validateOnly_; } + set { + validateOnly_ = value; + } + } + + /// Field number for the "force" field. + public const int ForceFieldNumber = 4; + private bool force_; + /// + /// Optional. If set to true, the request will force the deletion of the Policy + /// even if the Policy references PolicyBindings. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Force { + get { return force_; } + set { + force_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeleteAccessPolicyRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteAccessPolicyRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Etag != other.Etag) return false; + if (ValidateOnly != other.ValidateOnly) return false; + if (Force != other.Force) 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 (Etag.Length != 0) hash ^= Etag.GetHashCode(); + if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); + if (Force != false) hash ^= Force.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 (Etag.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Etag); + } + if (ValidateOnly != false) { + output.WriteRawTag(24); + output.WriteBool(ValidateOnly); + } + if (Force != false) { + output.WriteRawTag(32); + output.WriteBool(Force); + } + 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 (Etag.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Etag); + } + if (ValidateOnly != false) { + output.WriteRawTag(24); + output.WriteBool(ValidateOnly); + } + if (Force != false) { + output.WriteRawTag(32); + output.WriteBool(Force); + } + 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 (Etag.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Etag); + } + if (ValidateOnly != false) { + size += 1 + 1; + } + if (Force != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteAccessPolicyRequest other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Etag.Length != 0) { + Etag = other.Etag; + } + if (other.ValidateOnly != false) { + ValidateOnly = other.ValidateOnly; + } + if (other.Force != false) { + Force = other.Force; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Etag = input.ReadString(); + break; + } + case 24: { + ValidateOnly = input.ReadBool(); + break; + } + case 32: { + Force = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Etag = input.ReadString(); + break; + } + case 24: { + ValidateOnly = input.ReadBool(); + break; + } + case 32: { + Force = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for ListAccessPolicies method. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ListAccessPoliciesRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListAccessPoliciesRequest()); + 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.Iam.V3Beta.AccessPoliciesServiceReflection.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 ListAccessPoliciesRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListAccessPoliciesRequest(ListAccessPoliciesRequest other) : this() { + parent_ = other.parent_; + pageSize_ = other.pageSize_; + pageToken_ = other.pageToken_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListAccessPoliciesRequest Clone() { + return new ListAccessPoliciesRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; + /// + /// Required. The parent resource, which owns the collection of access policy + /// resources. + /// + /// Format: + /// `projects/{project_id}/locations/{location}` + /// `projects/{project_number}/locations/{location}` + /// `folders/{folder_id}/locations/{location}` + /// `organizations/{organization_id}/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 "page_size" field. + public const int PageSizeFieldNumber = 2; + private int pageSize_; + /// + /// Optional. The maximum number of access policies to return. The + /// service may return fewer than this value. + /// + /// If unspecified, at most 50 access policies will be returned. Valid value + /// ranges from 1 to 1000; values above 1000 will be coerced to 1000. + /// + [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_ = ""; + /// + /// Optional. A page token, received from a previous + /// `ListAccessPolicies` call. Provide this to retrieve the + /// subsequent page. + /// + /// When paginating, all other parameters provided to + /// `ListAccessPolicies` must match the call that provided the + /// 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 ListAccessPoliciesRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListAccessPoliciesRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Parent != other.Parent) 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 (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 (_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 (_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 (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(ListAccessPoliciesRequest other) { + if (other == null) { + return; + } + if (other.Parent.Length != 0) { + Parent = other.Parent; + } + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + 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; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 16: { + PageSize = input.ReadInt32(); + break; + } + case 26: { + PageToken = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Response message for ListAccessPolicies method. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ListAccessPoliciesResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListAccessPoliciesResponse()); + 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.Iam.V3Beta.AccessPoliciesServiceReflection.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 ListAccessPoliciesResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListAccessPoliciesResponse(ListAccessPoliciesResponse other) : this() { + accessPolicies_ = other.accessPolicies_.Clone(); + nextPageToken_ = other.nextPageToken_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListAccessPoliciesResponse Clone() { + return new ListAccessPoliciesResponse(this); + } + + /// Field number for the "access_policies" field. + public const int AccessPoliciesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_accessPolicies_codec + = pb::FieldCodec.ForMessage(10, global::Google.Cloud.Iam.V3Beta.AccessPolicy.Parser); + private readonly pbc::RepeatedField accessPolicies_ = new pbc::RepeatedField(); + /// + /// The access policies from the specified parent. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField AccessPolicies { + get { return accessPolicies_; } + } + + /// Field number for the "next_page_token" field. + public const int NextPageTokenFieldNumber = 2; + private string nextPageToken_ = ""; + /// + /// Optional. A token, which can be sent as `page_token` to retrieve the next + /// page. If this field is omitted, there are no subsequent pages. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NextPageToken { + get { return nextPageToken_; } + set { + nextPageToken_ = 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 ListAccessPoliciesResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListAccessPoliciesResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!accessPolicies_.Equals(other.accessPolicies_)) return false; + if (NextPageToken != other.NextPageToken) 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 ^= accessPolicies_.GetHashCode(); + if (NextPageToken.Length != 0) hash ^= NextPageToken.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 + accessPolicies_.WriteTo(output, _repeated_accessPolicies_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + 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) { + accessPolicies_.WriteTo(ref output, _repeated_accessPolicies_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + 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 += accessPolicies_.CalculateSize(_repeated_accessPolicies_codec); + if (NextPageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NextPageToken); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListAccessPoliciesResponse other) { + if (other == null) { + return; + } + accessPolicies_.Add(other.accessPolicies_); + if (other.NextPageToken.Length != 0) { + NextPageToken = other.NextPageToken; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + accessPolicies_.AddEntriesFrom(input, _repeated_accessPolicies_codec); + break; + } + case 18: { + NextPageToken = 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + accessPolicies_.AddEntriesFrom(ref input, _repeated_accessPolicies_codec); + break; + } + case 18: { + NextPageToken = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for SearchAccessPolicyBindings rpc. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SearchAccessPolicyBindingsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SearchAccessPolicyBindingsRequest()); + 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.Iam.V3Beta.AccessPoliciesServiceReflection.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 SearchAccessPolicyBindingsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SearchAccessPolicyBindingsRequest(SearchAccessPolicyBindingsRequest other) : this() { + name_ = other.name_; + pageSize_ = other.pageSize_; + pageToken_ = other.pageToken_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SearchAccessPolicyBindingsRequest Clone() { + return new SearchAccessPolicyBindingsRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. The name of the access policy. + /// Format: + /// `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}` + /// `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}` + /// + [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 "page_size" field. + public const int PageSizeFieldNumber = 2; + private int pageSize_; + /// + /// Optional. The maximum number of policy bindings to return. The service may + /// return fewer than this value. + /// + /// If unspecified, at most 50 policy bindings will be returned. + /// The maximum value is 1000; values above 1000 will be coerced to 1000. + /// + [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_ = ""; + /// + /// Optional. A page token, received from a previous + /// `SearchAccessPolicyBindingsRequest` call. Provide this to + /// retrieve the subsequent page. + /// + /// When paginating, all other parameters provided to + /// `SearchAccessPolicyBindingsRequest` must match the call + /// that provided the 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 SearchAccessPolicyBindingsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SearchAccessPolicyBindingsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) 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 (Name.Length != 0) hash ^= Name.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 (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (PageSize != 0) { + output.WriteRawTag(16); + output.WriteInt32(PageSize); + } + if (PageToken.Length != 0) { + output.WriteRawTag(26); + output.WriteString(PageToken); + } + 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 (PageSize != 0) { + output.WriteRawTag(16); + output.WriteInt32(PageSize); + } + if (PageToken.Length != 0) { + output.WriteRawTag(26); + output.WriteString(PageToken); + } + 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 (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(SearchAccessPolicyBindingsRequest other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 16: { + PageSize = input.ReadInt32(); + break; + } + case 26: { + PageToken = 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 16: { + PageSize = input.ReadInt32(); + break; + } + case 26: { + PageToken = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Response message for SearchAccessPolicyBindings rpc. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SearchAccessPolicyBindingsResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SearchAccessPolicyBindingsResponse()); + 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.Iam.V3Beta.AccessPoliciesServiceReflection.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 SearchAccessPolicyBindingsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SearchAccessPolicyBindingsResponse(SearchAccessPolicyBindingsResponse other) : this() { + policyBindings_ = other.policyBindings_.Clone(); + nextPageToken_ = other.nextPageToken_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SearchAccessPolicyBindingsResponse Clone() { + return new SearchAccessPolicyBindingsResponse(this); + } + + /// Field number for the "policy_bindings" field. + public const int PolicyBindingsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_policyBindings_codec + = pb::FieldCodec.ForMessage(10, global::Google.Cloud.Iam.V3Beta.PolicyBinding.Parser); + private readonly pbc::RepeatedField policyBindings_ = new pbc::RepeatedField(); + /// + /// The policy bindings that reference the specified policy. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField PolicyBindings { + get { return policyBindings_; } + } + + /// Field number for the "next_page_token" field. + public const int NextPageTokenFieldNumber = 2; + private string nextPageToken_ = ""; + /// + /// Optional. A token, which can be sent as `page_token` to retrieve the next + /// page. If this field is omitted, there are no subsequent pages. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NextPageToken { + get { return nextPageToken_; } + set { + nextPageToken_ = 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 SearchAccessPolicyBindingsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SearchAccessPolicyBindingsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!policyBindings_.Equals(other.policyBindings_)) return false; + if (NextPageToken != other.NextPageToken) 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 ^= policyBindings_.GetHashCode(); + if (NextPageToken.Length != 0) hash ^= NextPageToken.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 + policyBindings_.WriteTo(output, _repeated_policyBindings_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + 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) { + policyBindings_.WriteTo(ref output, _repeated_policyBindings_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + 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 += policyBindings_.CalculateSize(_repeated_policyBindings_codec); + if (NextPageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NextPageToken); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SearchAccessPolicyBindingsResponse other) { + if (other == null) { + return; + } + policyBindings_.Add(other.policyBindings_); + if (other.NextPageToken.Length != 0) { + NextPageToken = other.NextPageToken; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + policyBindings_.AddEntriesFrom(input, _repeated_policyBindings_codec); + break; + } + case 18: { + NextPageToken = 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + policyBindings_.AddEntriesFrom(ref input, _repeated_policyBindings_codec); + break; + } + case 18: { + NextPageToken = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/AccessPoliciesServiceGrpc.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/AccessPoliciesServiceGrpc.g.cs new file mode 100644 index 000000000000..ba8ef2d83332 --- /dev/null +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/AccessPoliciesServiceGrpc.g.cs @@ -0,0 +1,578 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/iam/v3beta/access_policies_service.proto +// +// Original file comments: +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#pragma warning disable 0414, 1591, 8981, 0612 +#region Designer generated code + +using grpc = global::Grpc.Core; + +namespace Google.Cloud.Iam.V3Beta { + /// + /// Manages Identity and Access Management (IAM) access policies. + /// + public static partial class AccessPolicies + { + static readonly string __ServiceName = "google.iam.v3beta.AccessPolicies"; + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) + { + #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION + if (message is global::Google.Protobuf.IBufferMessage) + { + context.SetPayloadLength(message.CalculateSize()); + global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); + context.Complete(); + return; + } + #endif + context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static class __Helper_MessageCache + { + public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage + { + #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION + if (__Helper_MessageCache.IsBufferMessage) + { + return parser.ParseFrom(context.PayloadAsReadOnlySequence()); + } + #endif + return parser.ParseFrom(context.PayloadAsNewBuffer()); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_iam_v3beta_CreateAccessPolicyRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Iam.V3Beta.CreateAccessPolicyRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_longrunning_Operation = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.LongRunning.Operation.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_iam_v3beta_GetAccessPolicyRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Iam.V3Beta.GetAccessPolicyRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_iam_v3beta_AccessPolicy = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Iam.V3Beta.AccessPolicy.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_iam_v3beta_UpdateAccessPolicyRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Iam.V3Beta.UpdateAccessPolicyRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_iam_v3beta_DeleteAccessPolicyRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Iam.V3Beta.DeleteAccessPolicyRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_iam_v3beta_ListAccessPoliciesRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Iam.V3Beta.ListAccessPoliciesRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_iam_v3beta_ListAccessPoliciesResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Iam.V3Beta.ListAccessPoliciesResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_iam_v3beta_SearchAccessPolicyBindingsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Iam.V3Beta.SearchAccessPolicyBindingsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_iam_v3beta_SearchAccessPolicyBindingsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Iam.V3Beta.SearchAccessPolicyBindingsResponse.Parser)); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_CreateAccessPolicy = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "CreateAccessPolicy", + __Marshaller_google_iam_v3beta_CreateAccessPolicyRequest, + __Marshaller_google_longrunning_Operation); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetAccessPolicy = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetAccessPolicy", + __Marshaller_google_iam_v3beta_GetAccessPolicyRequest, + __Marshaller_google_iam_v3beta_AccessPolicy); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_UpdateAccessPolicy = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "UpdateAccessPolicy", + __Marshaller_google_iam_v3beta_UpdateAccessPolicyRequest, + __Marshaller_google_longrunning_Operation); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_DeleteAccessPolicy = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "DeleteAccessPolicy", + __Marshaller_google_iam_v3beta_DeleteAccessPolicyRequest, + __Marshaller_google_longrunning_Operation); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_ListAccessPolicies = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "ListAccessPolicies", + __Marshaller_google_iam_v3beta_ListAccessPoliciesRequest, + __Marshaller_google_iam_v3beta_ListAccessPoliciesResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_SearchAccessPolicyBindings = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "SearchAccessPolicyBindings", + __Marshaller_google_iam_v3beta_SearchAccessPolicyBindingsRequest, + __Marshaller_google_iam_v3beta_SearchAccessPolicyBindingsResponse); + + /// Service descriptor + public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor + { + get { return global::Google.Cloud.Iam.V3Beta.AccessPoliciesServiceReflection.Descriptor.Services[0]; } + } + + /// Base class for server-side implementations of AccessPolicies + [grpc::BindServiceMethod(typeof(AccessPolicies), "BindService")] + public abstract partial class AccessPoliciesBase + { + /// + /// Creates an access policy, and returns a long running operation. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task CreateAccessPolicy(global::Google.Cloud.Iam.V3Beta.CreateAccessPolicyRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Gets an access policy. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task GetAccessPolicy(global::Google.Cloud.Iam.V3Beta.GetAccessPolicyRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Updates an access policy. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task UpdateAccessPolicy(global::Google.Cloud.Iam.V3Beta.UpdateAccessPolicyRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Deletes an access policy. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task DeleteAccessPolicy(global::Google.Cloud.Iam.V3Beta.DeleteAccessPolicyRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Lists access policies. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task ListAccessPolicies(global::Google.Cloud.Iam.V3Beta.ListAccessPoliciesRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Returns all policy bindings that bind a specific policy if a user has + /// searchPolicyBindings permission on that policy. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task SearchAccessPolicyBindings(global::Google.Cloud.Iam.V3Beta.SearchAccessPolicyBindingsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + } + + /// Client for AccessPolicies + public partial class AccessPoliciesClient : grpc::ClientBase + { + /// Creates a new client for AccessPolicies + /// The channel to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public AccessPoliciesClient(grpc::ChannelBase channel) : base(channel) + { + } + /// Creates a new client for AccessPolicies that uses a custom CallInvoker. + /// The callInvoker to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public AccessPoliciesClient(grpc::CallInvoker callInvoker) : base(callInvoker) + { + } + /// Protected parameterless constructor to allow creation of test doubles. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected AccessPoliciesClient() : base() + { + } + /// Protected constructor to allow creation of configured clients. + /// The client configuration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected AccessPoliciesClient(ClientBaseConfiguration configuration) : base(configuration) + { + } + + /// + /// Creates an access policy, and returns a long running operation. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation CreateAccessPolicy(global::Google.Cloud.Iam.V3Beta.CreateAccessPolicyRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateAccessPolicy(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Creates an access policy, and returns a long running operation. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation CreateAccessPolicy(global::Google.Cloud.Iam.V3Beta.CreateAccessPolicyRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateAccessPolicy, null, options, request); + } + /// + /// Creates an access policy, and returns a long running operation. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateAccessPolicyAsync(global::Google.Cloud.Iam.V3Beta.CreateAccessPolicyRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateAccessPolicyAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Creates an access policy, and returns a long running operation. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateAccessPolicyAsync(global::Google.Cloud.Iam.V3Beta.CreateAccessPolicyRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateAccessPolicy, null, options, request); + } + /// + /// Gets an access policy. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Iam.V3Beta.AccessPolicy GetAccessPolicy(global::Google.Cloud.Iam.V3Beta.GetAccessPolicyRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetAccessPolicy(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Gets an access policy. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Iam.V3Beta.AccessPolicy GetAccessPolicy(global::Google.Cloud.Iam.V3Beta.GetAccessPolicyRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetAccessPolicy, null, options, request); + } + /// + /// Gets an access policy. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetAccessPolicyAsync(global::Google.Cloud.Iam.V3Beta.GetAccessPolicyRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetAccessPolicyAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Gets an access policy. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetAccessPolicyAsync(global::Google.Cloud.Iam.V3Beta.GetAccessPolicyRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetAccessPolicy, null, options, request); + } + /// + /// Updates an access policy. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation UpdateAccessPolicy(global::Google.Cloud.Iam.V3Beta.UpdateAccessPolicyRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateAccessPolicy(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Updates an access policy. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation UpdateAccessPolicy(global::Google.Cloud.Iam.V3Beta.UpdateAccessPolicyRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateAccessPolicy, null, options, request); + } + /// + /// Updates an access policy. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateAccessPolicyAsync(global::Google.Cloud.Iam.V3Beta.UpdateAccessPolicyRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateAccessPolicyAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Updates an access policy. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateAccessPolicyAsync(global::Google.Cloud.Iam.V3Beta.UpdateAccessPolicyRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateAccessPolicy, null, options, request); + } + /// + /// Deletes an access policy. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation DeleteAccessPolicy(global::Google.Cloud.Iam.V3Beta.DeleteAccessPolicyRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteAccessPolicy(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Deletes an access policy. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation DeleteAccessPolicy(global::Google.Cloud.Iam.V3Beta.DeleteAccessPolicyRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeleteAccessPolicy, null, options, request); + } + /// + /// Deletes an access policy. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteAccessPolicyAsync(global::Google.Cloud.Iam.V3Beta.DeleteAccessPolicyRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteAccessPolicyAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Deletes an access policy. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteAccessPolicyAsync(global::Google.Cloud.Iam.V3Beta.DeleteAccessPolicyRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeleteAccessPolicy, null, options, request); + } + /// + /// Lists access policies. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Iam.V3Beta.ListAccessPoliciesResponse ListAccessPolicies(global::Google.Cloud.Iam.V3Beta.ListAccessPoliciesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListAccessPolicies(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Lists access policies. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Iam.V3Beta.ListAccessPoliciesResponse ListAccessPolicies(global::Google.Cloud.Iam.V3Beta.ListAccessPoliciesRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_ListAccessPolicies, null, options, request); + } + /// + /// Lists access policies. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListAccessPoliciesAsync(global::Google.Cloud.Iam.V3Beta.ListAccessPoliciesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListAccessPoliciesAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Lists access policies. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListAccessPoliciesAsync(global::Google.Cloud.Iam.V3Beta.ListAccessPoliciesRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_ListAccessPolicies, null, options, request); + } + /// + /// Returns all policy bindings that bind a specific policy if a user has + /// searchPolicyBindings permission on that policy. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Iam.V3Beta.SearchAccessPolicyBindingsResponse SearchAccessPolicyBindings(global::Google.Cloud.Iam.V3Beta.SearchAccessPolicyBindingsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return SearchAccessPolicyBindings(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Returns all policy bindings that bind a specific policy if a user has + /// searchPolicyBindings permission on that policy. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Iam.V3Beta.SearchAccessPolicyBindingsResponse SearchAccessPolicyBindings(global::Google.Cloud.Iam.V3Beta.SearchAccessPolicyBindingsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_SearchAccessPolicyBindings, null, options, request); + } + /// + /// Returns all policy bindings that bind a specific policy if a user has + /// searchPolicyBindings permission on that policy. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall SearchAccessPolicyBindingsAsync(global::Google.Cloud.Iam.V3Beta.SearchAccessPolicyBindingsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return SearchAccessPolicyBindingsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Returns all policy bindings that bind a specific policy if a user has + /// searchPolicyBindings permission on that policy. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall SearchAccessPolicyBindingsAsync(global::Google.Cloud.Iam.V3Beta.SearchAccessPolicyBindingsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_SearchAccessPolicyBindings, null, options, request); + } + /// Creates a new instance of client from given ClientBaseConfiguration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected override AccessPoliciesClient NewInstance(ClientBaseConfiguration configuration) + { + return new AccessPoliciesClient(configuration); + } + } + + /// Creates service definition that can be registered with a server + /// An object implementing the server-side handling logic. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public static grpc::ServerServiceDefinition BindService(AccessPoliciesBase serviceImpl) + { + return grpc::ServerServiceDefinition.CreateBuilder() + .AddMethod(__Method_CreateAccessPolicy, serviceImpl.CreateAccessPolicy) + .AddMethod(__Method_GetAccessPolicy, serviceImpl.GetAccessPolicy) + .AddMethod(__Method_UpdateAccessPolicy, serviceImpl.UpdateAccessPolicy) + .AddMethod(__Method_DeleteAccessPolicy, serviceImpl.DeleteAccessPolicy) + .AddMethod(__Method_ListAccessPolicies, serviceImpl.ListAccessPolicies) + .AddMethod(__Method_SearchAccessPolicyBindings, serviceImpl.SearchAccessPolicyBindings).Build(); + } + + /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. + /// Note: this method is part of an experimental API that can change or be removed without any prior notice. + /// Service methods will be bound by calling AddMethod on this object. + /// An object implementing the server-side handling logic. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public static void BindService(grpc::ServiceBinderBase serviceBinder, AccessPoliciesBase serviceImpl) + { + serviceBinder.AddMethod(__Method_CreateAccessPolicy, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateAccessPolicy)); + serviceBinder.AddMethod(__Method_GetAccessPolicy, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetAccessPolicy)); + serviceBinder.AddMethod(__Method_UpdateAccessPolicy, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateAccessPolicy)); + serviceBinder.AddMethod(__Method_DeleteAccessPolicy, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteAccessPolicy)); + serviceBinder.AddMethod(__Method_ListAccessPolicies, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListAccessPolicies)); + serviceBinder.AddMethod(__Method_SearchAccessPolicyBindings, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.SearchAccessPolicyBindings)); + } + + } +} +#endregion diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/AccessPoliciesServiceResourceNames.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/AccessPoliciesServiceResourceNames.g.cs new file mode 100644 index 000000000000..c4542ebc8522 --- /dev/null +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/AccessPoliciesServiceResourceNames.g.cs @@ -0,0 +1,175 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +#pragma warning disable CS8981 +using gagr = Google.Api.Gax.ResourceNames; +using gax = Google.Api.Gax; +using gciv = Google.Cloud.Iam.V3Beta; + +namespace Google.Cloud.Iam.V3Beta +{ + public partial class CreateAccessPolicyRequest + { + /// + /// -typed view over the resource name property. + /// + public OrganizationLocationName ParentAsOrganizationLocationName + { + get => string.IsNullOrEmpty(Parent) ? null : OrganizationLocationName.Parse(Parent, allowUnparsed: true); + set => Parent = value?.ToString() ?? ""; + } + + /// + /// -typed view over the resource name property. + /// + public FolderLocationName ParentAsFolderLocationName + { + get => string.IsNullOrEmpty(Parent) ? null : FolderLocationName.Parse(Parent, allowUnparsed: true); + set => Parent = value?.ToString() ?? ""; + } + + /// + /// -typed view over the resource name property. + /// + public gagr::LocationName ParentAsLocationName + { + get => string.IsNullOrEmpty(Parent) ? null : gagr::LocationName.Parse(Parent, allowUnparsed: true); + set => Parent = value?.ToString() ?? ""; + } + + /// + /// -typed view over the resource name property. + /// + public gax::IResourceName ParentAsResourceName + { + get + { + if (string.IsNullOrEmpty(Parent)) + { + return null; + } + if (OrganizationLocationName.TryParse(Parent, out OrganizationLocationName organizationLocation)) + { + return organizationLocation; + } + if (FolderLocationName.TryParse(Parent, out FolderLocationName folderLocation)) + { + return folderLocation; + } + if (gagr::LocationName.TryParse(Parent, out gagr::LocationName location)) + { + return location; + } + return gax::UnparsedResourceName.Parse(Parent); + } + set => Parent = value?.ToString() ?? ""; + } + } + + public partial class GetAccessPolicyRequest + { + /// + /// -typed view over the resource name property. + /// + public gciv::AccessPolicyName AccessPolicyName + { + get => string.IsNullOrEmpty(Name) ? null : gciv::AccessPolicyName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class DeleteAccessPolicyRequest + { + /// + /// -typed view over the resource name property. + /// + public gciv::AccessPolicyName AccessPolicyName + { + get => string.IsNullOrEmpty(Name) ? null : gciv::AccessPolicyName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class ListAccessPoliciesRequest + { + /// + /// -typed view over the resource name property. + /// + public OrganizationLocationName ParentAsOrganizationLocationName + { + get => string.IsNullOrEmpty(Parent) ? null : OrganizationLocationName.Parse(Parent, allowUnparsed: true); + set => Parent = value?.ToString() ?? ""; + } + + /// + /// -typed view over the resource name property. + /// + public FolderLocationName ParentAsFolderLocationName + { + get => string.IsNullOrEmpty(Parent) ? null : FolderLocationName.Parse(Parent, allowUnparsed: true); + set => Parent = value?.ToString() ?? ""; + } + + /// + /// -typed view over the resource name property. + /// + public gagr::LocationName ParentAsLocationName + { + get => string.IsNullOrEmpty(Parent) ? null : gagr::LocationName.Parse(Parent, allowUnparsed: true); + set => Parent = value?.ToString() ?? ""; + } + + /// + /// -typed view over the resource name property. + /// + public gax::IResourceName ParentAsResourceName + { + get + { + if (string.IsNullOrEmpty(Parent)) + { + return null; + } + if (OrganizationLocationName.TryParse(Parent, out OrganizationLocationName organizationLocation)) + { + return organizationLocation; + } + if (FolderLocationName.TryParse(Parent, out FolderLocationName folderLocation)) + { + return folderLocation; + } + if (gagr::LocationName.TryParse(Parent, out gagr::LocationName location)) + { + return location; + } + return gax::UnparsedResourceName.Parse(Parent); + } + set => Parent = value?.ToString() ?? ""; + } + } + + public partial class SearchAccessPolicyBindingsRequest + { + /// + /// -typed view over the resource name property. + /// + public gciv::AccessPolicyName AccessPolicyName + { + get => string.IsNullOrEmpty(Name) ? null : gciv::AccessPolicyName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } +} diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/AccessPolicyResources.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/AccessPolicyResources.g.cs new file mode 100644 index 000000000000..88e694fc2a2f --- /dev/null +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/AccessPolicyResources.g.cs @@ -0,0 +1,1527 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/iam/v3beta/access_policy_resources.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.Iam.V3Beta { + + /// Holder for reflection information generated from google/iam/v3beta/access_policy_resources.proto + public static partial class AccessPolicyResourcesReflection { + + #region Descriptor + /// File descriptor for google/iam/v3beta/access_policy_resources.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static AccessPolicyResourcesReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ci9nb29nbGUvaWFtL3YzYmV0YS9hY2Nlc3NfcG9saWN5X3Jlc291cmNlcy5w", + "cm90bxIRZ29vZ2xlLmlhbS52M2JldGEaH2dvb2dsZS9hcGkvZmllbGRfYmVo", + "YXZpb3IucHJvdG8aG2dvb2dsZS9hcGkvZmllbGRfaW5mby5wcm90bxoZZ29v", + "Z2xlL2FwaS9yZXNvdXJjZS5wcm90bxofZ29vZ2xlL3Byb3RvYnVmL3RpbWVz", + "dGFtcC5wcm90bxoWZ29vZ2xlL3R5cGUvZXhwci5wcm90byK5BQoMQWNjZXNz", + "UG9saWN5EhEKBG5hbWUYASABKAlCA+BBCBIYCgN1aWQYAiABKAlCC+BBA+KM", + "z9cIAggBEhEKBGV0YWcYAyABKAlCA+BBARIZCgxkaXNwbGF5X25hbWUYBCAB", + "KAlCA+BBARJKCgthbm5vdGF0aW9ucxgFIAMoCzIwLmdvb2dsZS5pYW0udjNi", + "ZXRhLkFjY2Vzc1BvbGljeS5Bbm5vdGF0aW9uc0VudHJ5QgPgQQESNAoLY3Jl", + "YXRlX3RpbWUYBiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQgPg", + "QQMSNAoLdXBkYXRlX3RpbWUYByABKAsyGi5nb29nbGUucHJvdG9idWYuVGlt", + "ZXN0YW1wQgPgQQMSPAoHZGV0YWlscxgIIAEoCzImLmdvb2dsZS5pYW0udjNi", + "ZXRhLkFjY2Vzc1BvbGljeURldGFpbHNCA+BBARoyChBBbm5vdGF0aW9uc0Vu", + "dHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAE6owLqQZ8CCh9p", + "YW0uZ29vZ2xlYXBpcy5jb20vQWNjZXNzUG9saWN5ElBvcmdhbml6YXRpb25z", + "L3tvcmdhbml6YXRpb259L2xvY2F0aW9ucy97bG9jYXRpb259L2FjY2Vzc1Bv", + "bGljaWVzL3thY2Nlc3NfcG9saWN5fRJEZm9sZGVycy97Zm9sZGVyfS9sb2Nh", + "dGlvbnMve2xvY2F0aW9ufS9hY2Nlc3NQb2xpY2llcy97YWNjZXNzX3BvbGlj", + "eX0SRnByb2plY3RzL3twcm9qZWN0fS9sb2NhdGlvbnMve2xvY2F0aW9ufS9h", + "Y2Nlc3NQb2xpY2llcy97YWNjZXNzX3BvbGljeX0qDmFjY2Vzc1BvbGljaWVz", + "MgxhY2Nlc3NQb2xpY3kiTgoTQWNjZXNzUG9saWN5RGV0YWlscxI3CgVydWxl", + "cxgBIAMoCzIjLmdvb2dsZS5pYW0udjNiZXRhLkFjY2Vzc1BvbGljeVJ1bGVC", + "A+BBAiKpBAoQQWNjZXNzUG9saWN5UnVsZRIdCgtkZXNjcmlwdGlvbhgBIAEo", + "CUID4EEBSACIAQESRAoGZWZmZWN0GAIgASgOMiouZ29vZ2xlLmlhbS52M2Jl", + "dGEuQWNjZXNzUG9saWN5UnVsZS5FZmZlY3RCA+BBAkgBiAEBEhcKCnByaW5j", + "aXBhbHMYAyADKAlCA+BBAhIgChNleGNsdWRlZF9wcmluY2lwYWxzGAQgAygJ", + "QgPgQQESRQoJb3BlcmF0aW9uGAogASgLMi0uZ29vZ2xlLmlhbS52M2JldGEu", + "QWNjZXNzUG9saWN5UnVsZS5PcGVyYXRpb25CA+BBAhJMCgpjb25kaXRpb25z", + "GAkgAygLMjMuZ29vZ2xlLmlhbS52M2JldGEuQWNjZXNzUG9saWN5UnVsZS5D", + "b25kaXRpb25zRW50cnlCA+BBARpICglPcGVyYXRpb24SGAoLcGVybWlzc2lv", + "bnMYASADKAlCA+BBARIhChRleGNsdWRlZF9wZXJtaXNzaW9ucxgCIAMoCUID", + "4EEBGkQKD0NvbmRpdGlvbnNFbnRyeRILCgNrZXkYASABKAkSIAoFdmFsdWUY", + "AiABKAsyES5nb29nbGUudHlwZS5FeHByOgI4ASI1CgZFZmZlY3QSFgoSRUZG", + "RUNUX1VOU1BFQ0lGSUVEEAASCAoEREVOWRABEgkKBUFMTE9XEAJCDgoMX2Rl", + "c2NyaXB0aW9uQgkKB19lZmZlY3RCmAEKFWNvbS5nb29nbGUuaWFtLnYzYmV0", + "YUIaQWNjZXNzUG9saWN5UmVzb3VyY2VzUHJvdG9QAVotY2xvdWQuZ29vZ2xl", + "LmNvbS9nby9pYW0vYXBpdjNiZXRhL2lhbXBiO2lhbXBiqgIXR29vZ2xlLkNs", + "b3VkLklhbS5WM0JldGHKAhdHb29nbGVcQ2xvdWRcSWFtXFYzYmV0YWIGcHJv", + "dG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.FieldInfoReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Type.ExprReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Iam.V3Beta.AccessPolicy), global::Google.Cloud.Iam.V3Beta.AccessPolicy.Parser, new[]{ "Name", "Uid", "Etag", "DisplayName", "Annotations", "CreateTime", "UpdateTime", "Details" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Iam.V3Beta.AccessPolicyDetails), global::Google.Cloud.Iam.V3Beta.AccessPolicyDetails.Parser, new[]{ "Rules" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Iam.V3Beta.AccessPolicyRule), global::Google.Cloud.Iam.V3Beta.AccessPolicyRule.Parser, new[]{ "Description", "Effect", "Principals", "ExcludedPrincipals", "Operation", "Conditions" }, new[]{ "Description", "Effect" }, new[]{ typeof(global::Google.Cloud.Iam.V3Beta.AccessPolicyRule.Types.Effect) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Iam.V3Beta.AccessPolicyRule.Types.Operation), global::Google.Cloud.Iam.V3Beta.AccessPolicyRule.Types.Operation.Parser, new[]{ "Permissions", "ExcludedPermissions" }, null, null, null, null), + null, }) + })); + } + #endregion + + } + #region Messages + /// + /// An IAM access policy resource. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AccessPolicy : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccessPolicy()); + 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.Iam.V3Beta.AccessPolicyResourcesReflection.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 AccessPolicy() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AccessPolicy(AccessPolicy other) : this() { + name_ = other.name_; + uid_ = other.uid_; + etag_ = other.etag_; + displayName_ = other.displayName_; + annotations_ = other.annotations_.Clone(); + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null; + details_ = other.details_ != null ? other.details_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AccessPolicy Clone() { + return new AccessPolicy(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Identifier. The resource name of the access policy. + /// + /// The following formats are supported: + /// + /// * `projects/{project_id}/locations/{location}/accessPolicies/{policy_id}` + /// * `projects/{project_number}/locations/{location}/accessPolicies/{policy_id}` + /// * `folders/{folder_id}/locations/{location}/accessPolicies/{policy_id}` + /// * `organizations/{organization_id}/locations/{location}/accessPolicies/{policy_id}` + /// + [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 "uid" field. + public const int UidFieldNumber = 2; + private string uid_ = ""; + /// + /// Output only. The globally unique ID of the access policy. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Uid { + get { return uid_; } + set { + uid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "etag" field. + public const int EtagFieldNumber = 3; + private string etag_ = ""; + /// + /// Optional. The etag for the access policy. + /// If this is provided on update, it must match the server's etag. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Etag { + get { return etag_; } + set { + etag_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "display_name" field. + public const int DisplayNameFieldNumber = 4; + private string displayName_ = ""; + /// + /// Optional. The description of the access policy. Must be less than + /// or equal to 63 characters. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DisplayName { + get { return displayName_; } + set { + displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "annotations" field. + public const int AnnotationsFieldNumber = 5; + private static readonly pbc::MapField.Codec _map_annotations_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 42); + private readonly pbc::MapField annotations_ = new pbc::MapField(); + /// + /// Optional. User defined annotations. See + /// https://google.aip.dev/148#annotations for more details such as format and + /// size limitations + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Annotations { + get { return annotations_; } + } + + /// Field number for the "create_time" field. + public const int CreateTimeFieldNumber = 6; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. The time when the access policy was created. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime { + get { return createTime_; } + set { + createTime_ = value; + } + } + + /// Field number for the "update_time" field. + public const int UpdateTimeFieldNumber = 7; + private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_; + /// + /// Output only. The time when the access policy was most recently + /// updated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime { + get { return updateTime_; } + set { + updateTime_ = value; + } + } + + /// Field number for the "details" field. + public const int DetailsFieldNumber = 8; + private global::Google.Cloud.Iam.V3Beta.AccessPolicyDetails details_; + /// + /// Optional. The details for the access policy. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Iam.V3Beta.AccessPolicyDetails Details { + get { return details_; } + set { + details_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AccessPolicy); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AccessPolicy other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Uid != other.Uid) return false; + if (Etag != other.Etag) return false; + if (DisplayName != other.DisplayName) return false; + if (!Annotations.Equals(other.Annotations)) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (!object.Equals(UpdateTime, other.UpdateTime)) return false; + if (!object.Equals(Details, other.Details)) 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 (Uid.Length != 0) hash ^= Uid.GetHashCode(); + if (Etag.Length != 0) hash ^= Etag.GetHashCode(); + if (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); + hash ^= Annotations.GetHashCode(); + if (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (updateTime_ != null) hash ^= UpdateTime.GetHashCode(); + if (details_ != null) hash ^= Details.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 (Uid.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Uid); + } + if (Etag.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Etag); + } + if (DisplayName.Length != 0) { + output.WriteRawTag(34); + output.WriteString(DisplayName); + } + annotations_.WriteTo(output, _map_annotations_codec); + if (createTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(58); + output.WriteMessage(UpdateTime); + } + if (details_ != null) { + output.WriteRawTag(66); + output.WriteMessage(Details); + } + 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 (Uid.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Uid); + } + if (Etag.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Etag); + } + if (DisplayName.Length != 0) { + output.WriteRawTag(34); + output.WriteString(DisplayName); + } + annotations_.WriteTo(ref output, _map_annotations_codec); + if (createTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(58); + output.WriteMessage(UpdateTime); + } + if (details_ != null) { + output.WriteRawTag(66); + output.WriteMessage(Details); + } + 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 (Uid.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Uid); + } + if (Etag.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Etag); + } + if (DisplayName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName); + } + size += annotations_.CalculateSize(_map_annotations_codec); + if (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (updateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime); + } + if (details_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Details); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AccessPolicy other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Uid.Length != 0) { + Uid = other.Uid; + } + if (other.Etag.Length != 0) { + Etag = other.Etag; + } + if (other.DisplayName.Length != 0) { + DisplayName = other.DisplayName; + } + annotations_.MergeFrom(other.annotations_); + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.updateTime_ != null) { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdateTime.MergeFrom(other.UpdateTime); + } + if (other.details_ != null) { + if (details_ == null) { + Details = new global::Google.Cloud.Iam.V3Beta.AccessPolicyDetails(); + } + Details.MergeFrom(other.Details); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Uid = input.ReadString(); + break; + } + case 26: { + Etag = input.ReadString(); + break; + } + case 34: { + DisplayName = input.ReadString(); + break; + } + case 42: { + annotations_.AddEntriesFrom(input, _map_annotations_codec); + break; + } + case 50: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 58: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 66: { + if (details_ == null) { + Details = new global::Google.Cloud.Iam.V3Beta.AccessPolicyDetails(); + } + input.ReadMessage(Details); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Uid = input.ReadString(); + break; + } + case 26: { + Etag = input.ReadString(); + break; + } + case 34: { + DisplayName = input.ReadString(); + break; + } + case 42: { + annotations_.AddEntriesFrom(ref input, _map_annotations_codec); + break; + } + case 50: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 58: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 66: { + if (details_ == null) { + Details = new global::Google.Cloud.Iam.V3Beta.AccessPolicyDetails(); + } + input.ReadMessage(Details); + break; + } + } + } + } + #endif + + } + + /// + /// Access policy details. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AccessPolicyDetails : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccessPolicyDetails()); + 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.Iam.V3Beta.AccessPolicyResourcesReflection.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 AccessPolicyDetails() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AccessPolicyDetails(AccessPolicyDetails other) : this() { + rules_ = other.rules_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AccessPolicyDetails Clone() { + return new AccessPolicyDetails(this); + } + + /// Field number for the "rules" field. + public const int RulesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_rules_codec + = pb::FieldCodec.ForMessage(10, global::Google.Cloud.Iam.V3Beta.AccessPolicyRule.Parser); + private readonly pbc::RepeatedField rules_ = new pbc::RepeatedField(); + /// + /// Required. A list of access policy rules. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Rules { + get { return rules_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AccessPolicyDetails); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AccessPolicyDetails other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!rules_.Equals(other.rules_)) 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 ^= rules_.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 + rules_.WriteTo(output, _repeated_rules_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) { + rules_.WriteTo(ref output, _repeated_rules_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 += rules_.CalculateSize(_repeated_rules_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AccessPolicyDetails other) { + if (other == null) { + return; + } + rules_.Add(other.rules_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + rules_.AddEntriesFrom(input, _repeated_rules_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + rules_.AddEntriesFrom(ref input, _repeated_rules_codec); + break; + } + } + } + } + #endif + + } + + /// + /// Access Policy Rule that determines the behavior of the policy. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AccessPolicyRule : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccessPolicyRule()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [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.Iam.V3Beta.AccessPolicyResourcesReflection.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 AccessPolicyRule() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AccessPolicyRule(AccessPolicyRule other) : this() { + _hasBits0 = other._hasBits0; + description_ = other.description_; + effect_ = other.effect_; + principals_ = other.principals_.Clone(); + excludedPrincipals_ = other.excludedPrincipals_.Clone(); + operation_ = other.operation_ != null ? other.operation_.Clone() : null; + conditions_ = other.conditions_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AccessPolicyRule Clone() { + return new AccessPolicyRule(this); + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 1; + private readonly static string DescriptionDefaultValue = ""; + + private string description_; + /// + /// Optional. Customer specified description of the rule. Must be less than or + /// equal to 256 characters. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Description { + get { return description_ ?? DescriptionDefaultValue; } + set { + description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "description" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDescription { + get { return description_ != null; } + } + /// Clears the value of the "description" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDescription() { + description_ = null; + } + + /// Field number for the "effect" field. + public const int EffectFieldNumber = 2; + private readonly static global::Google.Cloud.Iam.V3Beta.AccessPolicyRule.Types.Effect EffectDefaultValue = global::Google.Cloud.Iam.V3Beta.AccessPolicyRule.Types.Effect.Unspecified; + + private global::Google.Cloud.Iam.V3Beta.AccessPolicyRule.Types.Effect effect_; + /// + /// Required. The effect of the rule. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Iam.V3Beta.AccessPolicyRule.Types.Effect Effect { + get { if ((_hasBits0 & 1) != 0) { return effect_; } else { return EffectDefaultValue; } } + set { + _hasBits0 |= 1; + effect_ = value; + } + } + /// Gets whether the "effect" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEffect { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "effect" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEffect() { + _hasBits0 &= ~1; + } + + /// Field number for the "principals" field. + public const int PrincipalsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_principals_codec + = pb::FieldCodec.ForString(26); + private readonly pbc::RepeatedField principals_ = new pbc::RepeatedField(); + /// + /// Required. The identities for which this rule's effect governs using one or + /// more permissions on Google Cloud resources. This field can contain the + /// following values: + /// + /// * `principal://goog/subject/{email_id}`: A specific Google Account. + /// Includes Gmail, Cloud Identity, and Google Workspace user accounts. For + /// example, `principal://goog/subject/alice@example.com`. + /// + /// * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`: + /// A Google Cloud service account. For example, + /// `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`. + /// + /// * `principalSet://goog/group/{group_id}`: A Google group. For example, + /// `principalSet://goog/group/admins@example.com`. + /// + /// * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the + /// principals associated with the specified Google Workspace or Cloud + /// Identity customer ID. For example, + /// `principalSet://goog/cloudIdentityCustomerId/C01Abc35`. + /// + /// If an identifier that was previously set on a policy is soft deleted, then + /// calls to read that policy will return the identifier with a deleted + /// prefix. Users cannot set identifiers with this syntax. + /// + /// * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific + /// Google Account that was deleted recently. For example, + /// `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If + /// the Google Account is recovered, this identifier reverts to the standard + /// identifier for a Google Account. + /// + /// * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group + /// that was deleted recently. For example, + /// `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. + /// If the Google group is restored, this identifier reverts to the standard + /// identifier for a Google group. + /// + /// * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`: + /// A Google Cloud service account that was deleted recently. For example, + /// `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`. + /// If the service account is undeleted, this identifier reverts to the + /// standard identifier for a service account. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Principals { + get { return principals_; } + } + + /// Field number for the "excluded_principals" field. + public const int ExcludedPrincipalsFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_excludedPrincipals_codec + = pb::FieldCodec.ForString(34); + private readonly pbc::RepeatedField excludedPrincipals_ = new pbc::RepeatedField(); + /// + /// Optional. The identities that are excluded from the access policy rule, + /// even if they are listed in the `principals`. For example, you could add a + /// Google group to the `principals`, then exclude specific users who belong to + /// that group. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ExcludedPrincipals { + get { return excludedPrincipals_; } + } + + /// Field number for the "operation" field. + public const int OperationFieldNumber = 10; + private global::Google.Cloud.Iam.V3Beta.AccessPolicyRule.Types.Operation operation_; + /// + /// Required. Attributes that are used to determine whether this rule applies + /// to a request. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Iam.V3Beta.AccessPolicyRule.Types.Operation Operation { + get { return operation_; } + set { + operation_ = value; + } + } + + /// Field number for the "conditions" field. + public const int ConditionsFieldNumber = 9; + private static readonly pbc::MapField.Codec _map_conditions_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Google.Type.Expr.Parser), 74); + private readonly pbc::MapField conditions_ = new pbc::MapField(); + /// + /// Optional. The conditions that determine whether this rule applies to a + /// request. Conditions are identified by their key, which is the FQDN of the + /// service that they are relevant to. For example: + /// + /// ``` + /// "conditions": { + /// "iam.googleapis.com": { + /// "expression": <cel expression> + /// } + /// } + /// ``` + /// + /// Each rule is evaluated independently. If this rule does not apply + /// to a request, other rules might still apply. + /// Currently supported keys are as follows: + /// + /// * `eventarc.googleapis.com`: Can use `CEL` functions that evaluate + /// resource fields. + /// + /// * `iam.googleapis.com`: Can use `CEL` functions that evaluate + /// [resource + /// tags](https://cloud.google.com/iam/help/conditions/resource-tags) and + /// combine them using boolean and logical operators. Other functions and + /// operators are not supported. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Conditions { + get { return conditions_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AccessPolicyRule); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AccessPolicyRule other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Description != other.Description) return false; + if (Effect != other.Effect) return false; + if(!principals_.Equals(other.principals_)) return false; + if(!excludedPrincipals_.Equals(other.excludedPrincipals_)) return false; + if (!object.Equals(Operation, other.Operation)) return false; + if (!Conditions.Equals(other.Conditions)) 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 (HasDescription) hash ^= Description.GetHashCode(); + if (HasEffect) hash ^= Effect.GetHashCode(); + hash ^= principals_.GetHashCode(); + hash ^= excludedPrincipals_.GetHashCode(); + if (operation_ != null) hash ^= Operation.GetHashCode(); + hash ^= Conditions.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 (HasDescription) { + output.WriteRawTag(10); + output.WriteString(Description); + } + if (HasEffect) { + output.WriteRawTag(16); + output.WriteEnum((int) Effect); + } + principals_.WriteTo(output, _repeated_principals_codec); + excludedPrincipals_.WriteTo(output, _repeated_excludedPrincipals_codec); + conditions_.WriteTo(output, _map_conditions_codec); + if (operation_ != null) { + output.WriteRawTag(82); + output.WriteMessage(Operation); + } + 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 (HasDescription) { + output.WriteRawTag(10); + output.WriteString(Description); + } + if (HasEffect) { + output.WriteRawTag(16); + output.WriteEnum((int) Effect); + } + principals_.WriteTo(ref output, _repeated_principals_codec); + excludedPrincipals_.WriteTo(ref output, _repeated_excludedPrincipals_codec); + conditions_.WriteTo(ref output, _map_conditions_codec); + if (operation_ != null) { + output.WriteRawTag(82); + output.WriteMessage(Operation); + } + 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 (HasDescription) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (HasEffect) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Effect); + } + size += principals_.CalculateSize(_repeated_principals_codec); + size += excludedPrincipals_.CalculateSize(_repeated_excludedPrincipals_codec); + if (operation_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Operation); + } + size += conditions_.CalculateSize(_map_conditions_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AccessPolicyRule other) { + if (other == null) { + return; + } + if (other.HasDescription) { + Description = other.Description; + } + if (other.HasEffect) { + Effect = other.Effect; + } + principals_.Add(other.principals_); + excludedPrincipals_.Add(other.excludedPrincipals_); + if (other.operation_ != null) { + if (operation_ == null) { + Operation = new global::Google.Cloud.Iam.V3Beta.AccessPolicyRule.Types.Operation(); + } + Operation.MergeFrom(other.Operation); + } + conditions_.MergeFrom(other.conditions_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Description = input.ReadString(); + break; + } + case 16: { + Effect = (global::Google.Cloud.Iam.V3Beta.AccessPolicyRule.Types.Effect) input.ReadEnum(); + break; + } + case 26: { + principals_.AddEntriesFrom(input, _repeated_principals_codec); + break; + } + case 34: { + excludedPrincipals_.AddEntriesFrom(input, _repeated_excludedPrincipals_codec); + break; + } + case 74: { + conditions_.AddEntriesFrom(input, _map_conditions_codec); + break; + } + case 82: { + if (operation_ == null) { + Operation = new global::Google.Cloud.Iam.V3Beta.AccessPolicyRule.Types.Operation(); + } + input.ReadMessage(Operation); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Description = input.ReadString(); + break; + } + case 16: { + Effect = (global::Google.Cloud.Iam.V3Beta.AccessPolicyRule.Types.Effect) input.ReadEnum(); + break; + } + case 26: { + principals_.AddEntriesFrom(ref input, _repeated_principals_codec); + break; + } + case 34: { + excludedPrincipals_.AddEntriesFrom(ref input, _repeated_excludedPrincipals_codec); + break; + } + case 74: { + conditions_.AddEntriesFrom(ref input, _map_conditions_codec); + break; + } + case 82: { + if (operation_ == null) { + Operation = new global::Google.Cloud.Iam.V3Beta.AccessPolicyRule.Types.Operation(); + } + input.ReadMessage(Operation); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the AccessPolicyRule message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// An effect to describe the access relationship. + /// + public enum Effect { + /// + /// The effect is unspecified. + /// + [pbr::OriginalName("EFFECT_UNSPECIFIED")] Unspecified = 0, + /// + /// The policy will deny access if it evaluates to true. + /// + [pbr::OriginalName("DENY")] Deny = 1, + /// + /// The policy will grant access if it evaluates to true. + /// + [pbr::OriginalName("ALLOW")] Allow = 2, + } + + /// + /// Attributes that are used to determine whether this rule applies to a + /// request. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Operation : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Operation()); + 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.Iam.V3Beta.AccessPolicyRule.Descriptor.NestedTypes[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 Operation() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Operation(Operation other) : this() { + permissions_ = other.permissions_.Clone(); + excludedPermissions_ = other.excludedPermissions_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Operation Clone() { + return new Operation(this); + } + + /// Field number for the "permissions" field. + public const int PermissionsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_permissions_codec + = pb::FieldCodec.ForString(10); + private readonly pbc::RepeatedField permissions_ = new pbc::RepeatedField(); + /// + /// Optional. The permissions that are explicitly affected by this rule. Each + /// permission uses the format `{service_fqdn}/{resource}.{verb}`, where + /// `{service_fqdn}` is the fully qualified domain name for the service. + /// Currently supported permissions are as follows: + /// + /// * `eventarc.googleapis.com/messageBuses.publish`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Permissions { + get { return permissions_; } + } + + /// Field number for the "excluded_permissions" field. + public const int ExcludedPermissionsFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_excludedPermissions_codec + = pb::FieldCodec.ForString(18); + private readonly pbc::RepeatedField excludedPermissions_ = new pbc::RepeatedField(); + /// + /// Optional. Specifies the permissions that this rule excludes from the set + /// of affected permissions given by `permissions`. If a permission appears + /// in `permissions` _and_ in `excluded_permissions` then it will _not_ be + /// subject to the policy effect. + /// + /// The excluded permissions can be specified using the same syntax as + /// `permissions`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ExcludedPermissions { + get { return excludedPermissions_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Operation); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Operation other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!permissions_.Equals(other.permissions_)) return false; + if(!excludedPermissions_.Equals(other.excludedPermissions_)) 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 ^= permissions_.GetHashCode(); + hash ^= excludedPermissions_.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 + permissions_.WriteTo(output, _repeated_permissions_codec); + excludedPermissions_.WriteTo(output, _repeated_excludedPermissions_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) { + permissions_.WriteTo(ref output, _repeated_permissions_codec); + excludedPermissions_.WriteTo(ref output, _repeated_excludedPermissions_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 += permissions_.CalculateSize(_repeated_permissions_codec); + size += excludedPermissions_.CalculateSize(_repeated_excludedPermissions_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Operation other) { + if (other == null) { + return; + } + permissions_.Add(other.permissions_); + excludedPermissions_.Add(other.excludedPermissions_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + permissions_.AddEntriesFrom(input, _repeated_permissions_codec); + break; + } + case 18: { + excludedPermissions_.AddEntriesFrom(input, _repeated_excludedPermissions_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + permissions_.AddEntriesFrom(ref input, _repeated_permissions_codec); + break; + } + case 18: { + excludedPermissions_.AddEntriesFrom(ref input, _repeated_excludedPermissions_codec); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/AccessPolicyResourcesResourceNames.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/AccessPolicyResourcesResourceNames.g.cs new file mode 100644 index 000000000000..25a0e56dfa10 --- /dev/null +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/AccessPolicyResourcesResourceNames.g.cs @@ -0,0 +1,411 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +#pragma warning disable CS8981 +using gax = Google.Api.Gax; +using gciv = Google.Cloud.Iam.V3Beta; +using sys = System; + +namespace Google.Cloud.Iam.V3Beta +{ + /// Resource name for the AccessPolicy resource. + public sealed partial class AccessPolicyName : gax::IResourceName, sys::IEquatable + { + /// The possible contents of . + public enum ResourceNameType + { + /// An unparsed resource name. + Unparsed = 0, + + /// + /// A resource name with pattern + /// organizations/{organization}/locations/{location}/accessPolicies/{access_policy}. + /// + OrganizationLocationAccessPolicy = 1, + + /// + /// A resource name with pattern folders/{folder}/locations/{location}/accessPolicies/{access_policy} + /// . + /// + FolderLocationAccessPolicy = 2, + + /// + /// A resource name with pattern projects/{project}/locations/{location}/accessPolicies/{access_policy} + /// . + /// + ProjectLocationAccessPolicy = 3, + } + + private static gax::PathTemplate s_organizationLocationAccessPolicy = new gax::PathTemplate("organizations/{organization}/locations/{location}/accessPolicies/{access_policy}"); + + private static gax::PathTemplate s_folderLocationAccessPolicy = new gax::PathTemplate("folders/{folder}/locations/{location}/accessPolicies/{access_policy}"); + + private static gax::PathTemplate s_projectLocationAccessPolicy = new gax::PathTemplate("projects/{project}/locations/{location}/accessPolicies/{access_policy}"); + + /// Creates a containing an unparsed resource name. + /// The unparsed resource name. Must not be null. + /// + /// A new instance of containing the provided + /// . + /// + public static AccessPolicyName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new AccessPolicyName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// + /// Creates a with the pattern + /// organizations/{organization}/locations/{location}/accessPolicies/{access_policy}. + /// + /// The Organization ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The AccessPolicy ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static AccessPolicyName FromOrganizationLocationAccessPolicy(string organizationId, string locationId, string accessPolicyId) => + new AccessPolicyName(ResourceNameType.OrganizationLocationAccessPolicy, organizationId: gax::GaxPreconditions.CheckNotNullOrEmpty(organizationId, nameof(organizationId)), locationId: gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), accessPolicyId: gax::GaxPreconditions.CheckNotNullOrEmpty(accessPolicyId, nameof(accessPolicyId))); + + /// + /// Creates a with the pattern + /// folders/{folder}/locations/{location}/accessPolicies/{access_policy}. + /// + /// The Folder ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The AccessPolicy ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static AccessPolicyName FromFolderLocationAccessPolicy(string folderId, string locationId, string accessPolicyId) => + new AccessPolicyName(ResourceNameType.FolderLocationAccessPolicy, folderId: gax::GaxPreconditions.CheckNotNullOrEmpty(folderId, nameof(folderId)), locationId: gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), accessPolicyId: gax::GaxPreconditions.CheckNotNullOrEmpty(accessPolicyId, nameof(accessPolicyId))); + + /// + /// Creates a with the pattern + /// projects/{project}/locations/{location}/accessPolicies/{access_policy}. + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The AccessPolicy ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static AccessPolicyName FromProjectLocationAccessPolicy(string projectId, string locationId, string accessPolicyId) => + new AccessPolicyName(ResourceNameType.ProjectLocationAccessPolicy, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), locationId: gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), accessPolicyId: gax::GaxPreconditions.CheckNotNullOrEmpty(accessPolicyId, nameof(accessPolicyId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// organizations/{organization}/locations/{location}/accessPolicies/{access_policy}. + /// + /// The Organization ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The AccessPolicy ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// organizations/{organization}/locations/{location}/accessPolicies/{access_policy}. + /// + public static string Format(string organizationId, string locationId, string accessPolicyId) => + FormatOrganizationLocationAccessPolicy(organizationId, locationId, accessPolicyId); + + /// + /// Formats the IDs into the string representation of this with pattern + /// organizations/{organization}/locations/{location}/accessPolicies/{access_policy}. + /// + /// The Organization ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The AccessPolicy ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// organizations/{organization}/locations/{location}/accessPolicies/{access_policy}. + /// + public static string FormatOrganizationLocationAccessPolicy(string organizationId, string locationId, string accessPolicyId) => + s_organizationLocationAccessPolicy.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(organizationId, nameof(organizationId)), gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), gax::GaxPreconditions.CheckNotNullOrEmpty(accessPolicyId, nameof(accessPolicyId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// folders/{folder}/locations/{location}/accessPolicies/{access_policy}. + /// + /// The Folder ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The AccessPolicy ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// folders/{folder}/locations/{location}/accessPolicies/{access_policy}. + /// + public static string FormatFolderLocationAccessPolicy(string folderId, string locationId, string accessPolicyId) => + s_folderLocationAccessPolicy.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(folderId, nameof(folderId)), gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), gax::GaxPreconditions.CheckNotNullOrEmpty(accessPolicyId, nameof(accessPolicyId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/locations/{location}/accessPolicies/{access_policy}. + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The AccessPolicy ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/locations/{location}/accessPolicies/{access_policy}. + /// + public static string FormatProjectLocationAccessPolicy(string projectId, string locationId, string accessPolicyId) => + s_projectLocationAccessPolicy.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), gax::GaxPreconditions.CheckNotNullOrEmpty(accessPolicyId, nameof(accessPolicyId))); + + /// Parses the given resource name string into a new instance. + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// + /// + /// organizations/{organization}/locations/{location}/accessPolicies/{access_policy} + /// + /// + /// + /// folders/{folder}/locations/{location}/accessPolicies/{access_policy} + /// + /// + /// projects/{project}/locations/{location}/accessPolicies/{access_policy} + /// + /// + /// + /// The resource name in string form. Must not be null. + /// The parsed if successful. + public static AccessPolicyName Parse(string accessPolicyName) => Parse(accessPolicyName, false); + + /// + /// Parses the given resource name string into a new instance; optionally + /// allowing an unparseable resource name. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// + /// + /// organizations/{organization}/locations/{location}/accessPolicies/{access_policy} + /// + /// + /// + /// folders/{folder}/locations/{location}/accessPolicies/{access_policy} + /// + /// + /// projects/{project}/locations/{location}/accessPolicies/{access_policy} + /// + /// + /// Or may be in any format if is true. + /// + /// The resource name in string form. Must not be null. + /// + /// If true will successfully store an unparseable resource name into the + /// property; otherwise will throw an if an unparseable resource name is + /// specified. + /// + /// The parsed if successful. + public static AccessPolicyName Parse(string accessPolicyName, bool allowUnparsed) => + TryParse(accessPolicyName, allowUnparsed, out AccessPolicyName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); + + /// + /// Tries to parse the given resource name string into a new instance. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// + /// + /// organizations/{organization}/locations/{location}/accessPolicies/{access_policy} + /// + /// + /// + /// folders/{folder}/locations/{location}/accessPolicies/{access_policy} + /// + /// + /// projects/{project}/locations/{location}/accessPolicies/{access_policy} + /// + /// + /// + /// The resource name in string form. Must not be null. + /// + /// When this method returns, the parsed , or null if parsing failed. + /// + /// true if the name was parsed successfully; false otherwise. + public static bool TryParse(string accessPolicyName, out AccessPolicyName result) => + TryParse(accessPolicyName, false, out result); + + /// + /// Tries to parse the given resource name string into a new instance; optionally + /// allowing an unparseable resource name. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// + /// + /// organizations/{organization}/locations/{location}/accessPolicies/{access_policy} + /// + /// + /// + /// folders/{folder}/locations/{location}/accessPolicies/{access_policy} + /// + /// + /// projects/{project}/locations/{location}/accessPolicies/{access_policy} + /// + /// + /// Or may be in any format if is true. + /// + /// The resource name in string form. Must not be null. + /// + /// If true will successfully store an unparseable resource name into the + /// property; otherwise will throw an if an unparseable resource name is + /// specified. + /// + /// + /// When this method returns, the parsed , or null if parsing failed. + /// + /// true if the name was parsed successfully; false otherwise. + public static bool TryParse(string accessPolicyName, bool allowUnparsed, out AccessPolicyName result) + { + gax::GaxPreconditions.CheckNotNull(accessPolicyName, nameof(accessPolicyName)); + gax::TemplatedResourceName resourceName; + if (s_organizationLocationAccessPolicy.TryParseName(accessPolicyName, out resourceName)) + { + result = FromOrganizationLocationAccessPolicy(resourceName[0], resourceName[1], resourceName[2]); + return true; + } + if (s_folderLocationAccessPolicy.TryParseName(accessPolicyName, out resourceName)) + { + result = FromFolderLocationAccessPolicy(resourceName[0], resourceName[1], resourceName[2]); + return true; + } + if (s_projectLocationAccessPolicy.TryParseName(accessPolicyName, out resourceName)) + { + result = FromProjectLocationAccessPolicy(resourceName[0], resourceName[1], resourceName[2]); + return true; + } + if (allowUnparsed) + { + if (gax::UnparsedResourceName.TryParse(accessPolicyName, out gax::UnparsedResourceName unparsedResourceName)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + private AccessPolicyName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string accessPolicyId = null, string folderId = null, string locationId = null, string organizationId = null, string projectId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + AccessPolicyId = accessPolicyId; + FolderId = folderId; + LocationId = locationId; + OrganizationId = organizationId; + ProjectId = projectId; + } + + /// + /// Constructs a new instance of a class from the component parts of pattern + /// organizations/{organization}/locations/{location}/accessPolicies/{access_policy} + /// + /// The Organization ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The AccessPolicy ID. Must not be null or empty. + public AccessPolicyName(string organizationId, string locationId, string accessPolicyId) : this(ResourceNameType.OrganizationLocationAccessPolicy, organizationId: gax::GaxPreconditions.CheckNotNullOrEmpty(organizationId, nameof(organizationId)), locationId: gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), accessPolicyId: gax::GaxPreconditions.CheckNotNullOrEmpty(accessPolicyId, nameof(accessPolicyId))) + { + } + + /// The of the contained resource name. + public ResourceNameType Type { get; } + + /// + /// The contained . Only non-null if this instance contains an + /// unparsed resource name. + /// + public gax::UnparsedResourceName UnparsedResource { get; } + + /// + /// The AccessPolicy ID. May be null, depending on which resource name is contained by this + /// instance. + /// + public string AccessPolicyId { get; } + + /// + /// The Folder ID. May be null, depending on which resource name is contained by this instance. + /// + public string FolderId { get; } + + /// + /// The Location ID. May be null, depending on which resource name is contained by this instance. + /// + public string LocationId { get; } + + /// + /// The Organization ID. May be null, depending on which resource name is contained by this + /// instance. + /// + public string OrganizationId { get; } + + /// + /// The Project ID. May be null, depending on which resource name is contained by this instance. + /// + public string ProjectId { get; } + + /// Whether this instance contains a resource name with a known pattern. + public bool IsKnownPattern => Type != ResourceNameType.Unparsed; + + /// The string representation of the resource name. + /// The string representation of the resource name. + public override string ToString() + { + switch (Type) + { + case ResourceNameType.Unparsed: return UnparsedResource.ToString(); + case ResourceNameType.OrganizationLocationAccessPolicy: return s_organizationLocationAccessPolicy.Expand(OrganizationId, LocationId, AccessPolicyId); + case ResourceNameType.FolderLocationAccessPolicy: return s_folderLocationAccessPolicy.Expand(FolderId, LocationId, AccessPolicyId); + case ResourceNameType.ProjectLocationAccessPolicy: return s_projectLocationAccessPolicy.Expand(ProjectId, LocationId, AccessPolicyId); + default: throw new sys::InvalidOperationException("Unrecognized resource-type."); + } + } + + /// Returns a hash code for this resource name. + public override int GetHashCode() => ToString().GetHashCode(); + + /// + public override bool Equals(object obj) => Equals(obj as AccessPolicyName); + + /// + public bool Equals(AccessPolicyName other) => ToString() == other?.ToString(); + + /// Determines whether two specified resource names have the same value. + /// The first resource name to compare, or null. + /// The second resource name to compare, or null. + /// + /// true if the value of is the same as the value of ; otherwise, + /// false. + /// + public static bool operator ==(AccessPolicyName a, AccessPolicyName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); + + /// Determines whether two specified resource names have different values. + /// The first resource name to compare, or null. + /// The second resource name to compare, or null. + /// + /// true if the value of is different from the value of ; otherwise, + /// false. + /// + public static bool operator !=(AccessPolicyName a, AccessPolicyName b) => !(a == b); + } + + public partial class AccessPolicy + { + /// + /// -typed view over the resource name property. + /// + public gciv::AccessPolicyName AccessPolicyName + { + get => string.IsNullOrEmpty(Name) ? null : gciv::AccessPolicyName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } +} diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/PackageApiMetadata.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/PackageApiMetadata.g.cs index 506b5d397d53..654c824a87de 100644 --- a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/PackageApiMetadata.g.cs +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/PackageApiMetadata.g.cs @@ -41,6 +41,8 @@ internal static class PackageApiMetadata private static scg::IEnumerable GetFileDescriptors() { + yield return AccessPoliciesServiceReflection.Descriptor; + yield return AccessPolicyResourcesReflection.Descriptor; yield return OperationMetadataReflection.Descriptor; yield return PolicyBindingResourcesReflection.Descriptor; yield return PolicyBindingsServiceReflection.Descriptor; diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/PolicyBindingResources.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/PolicyBindingResources.g.cs index 42d94cbb2451..2fc51b19b38a 100644 --- a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/PolicyBindingResources.g.cs +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/PolicyBindingResources.g.cs @@ -28,7 +28,7 @@ static PolicyBindingResourcesReflection() { "cHJvdG8SEWdvb2dsZS5pYW0udjNiZXRhGh9nb29nbGUvYXBpL2ZpZWxkX2Jl", "aGF2aW9yLnByb3RvGhtnb29nbGUvYXBpL2ZpZWxkX2luZm8ucHJvdG8aGWdv", "b2dsZS9hcGkvcmVzb3VyY2UucHJvdG8aH2dvb2dsZS9wcm90b2J1Zi90aW1l", - "c3RhbXAucHJvdG8aFmdvb2dsZS90eXBlL2V4cHIucHJvdG8i4gcKDVBvbGlj", + "c3RhbXAucHJvdG8aFmdvb2dsZS90eXBlL2V4cHIucHJvdG8ihwgKDVBvbGlj", "eUJpbmRpbmcSEQoEbmFtZRgBIAEoCUID4EEIEhgKA3VpZBgCIAEoCUIL4EED", "4ozP1wgCCAESEQoEZXRhZxgDIAEoCUID4EEBEhkKDGRpc3BsYXlfbmFtZRgE", "IAEoCUID4EEBEksKC2Fubm90YXRpb25zGAUgAygLMjEuZ29vZ2xlLmlhbS52", @@ -40,25 +40,26 @@ static PolicyBindingResourcesReflection() { "AxIpCgljb25kaXRpb24YCCABKAsyES5nb29nbGUudHlwZS5FeHByQgPgQQES", "NAoLY3JlYXRlX3RpbWUYCSABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0", "YW1wQgPgQQMSNAoLdXBkYXRlX3RpbWUYCiABKAsyGi5nb29nbGUucHJvdG9i", - "dWYuVGltZXN0YW1wQgPgQQMaMAoGVGFyZ2V0EhwKDXByaW5jaXBhbF9zZXQY", - "ASABKAlCA+BBBUgAQggKBnRhcmdldBoyChBBbm5vdGF0aW9uc0VudHJ5EgsK", - "A2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEiSAoKUG9saWN5S2luZBIb", - "ChdQT0xJQ1lfS0lORF9VTlNQRUNJRklFRBAAEh0KGVBSSU5DSVBBTF9BQ0NF", - "U1NfQk9VTkRBUlkQATqoAupBpAIKIGlhbS5nb29nbGVhcGlzLmNvbS9Qb2xp", - "Y3lCaW5kaW5nElFvcmdhbml6YXRpb25zL3tvcmdhbml6YXRpb259L2xvY2F0", - "aW9ucy97bG9jYXRpb259L3BvbGljeUJpbmRpbmdzL3twb2xpY3lfYmluZGlu", - "Z30SRWZvbGRlcnMve2ZvbGRlcn0vbG9jYXRpb25zL3tsb2NhdGlvbn0vcG9s", - "aWN5QmluZGluZ3Mve3BvbGljeV9iaW5kaW5nfRJHcHJvamVjdHMve3Byb2pl", - "Y3R9L2xvY2F0aW9ucy97bG9jYXRpb259L3BvbGljeUJpbmRpbmdzL3twb2xp", - "Y3lfYmluZGluZ30qDnBvbGljeUJpbmRpbmdzMg1wb2xpY3lCaW5kaW5nQpkB", - "ChVjb20uZ29vZ2xlLmlhbS52M2JldGFCG1BvbGljeUJpbmRpbmdSZXNvdXJj", - "ZXNQcm90b1ABWi1jbG91ZC5nb29nbGUuY29tL2dvL2lhbS9hcGl2M2JldGEv", - "aWFtcGI7aWFtcGKqAhdHb29nbGUuQ2xvdWQuSWFtLlYzQmV0YcoCF0dvb2ds", - "ZVxDbG91ZFxJYW1cVjNiZXRhYgZwcm90bzM=")); + "dWYuVGltZXN0YW1wQgPgQQMaSQoGVGFyZ2V0EhwKDXByaW5jaXBhbF9zZXQY", + "ASABKAlCA+BBBUgAEhcKCHJlc291cmNlGAIgASgJQgPgQQVIAEIICgZ0YXJn", + "ZXQaMgoQQW5ub3RhdGlvbnNFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUY", + "AiABKAk6AjgBIlQKClBvbGljeUtpbmQSGwoXUE9MSUNZX0tJTkRfVU5TUEVD", + "SUZJRUQQABIdChlQUklOQ0lQQUxfQUNDRVNTX0JPVU5EQVJZEAESCgoGQUND", + "RVNTEAI6qALqQaQCCiBpYW0uZ29vZ2xlYXBpcy5jb20vUG9saWN5QmluZGlu", + "ZxJRb3JnYW5pemF0aW9ucy97b3JnYW5pemF0aW9ufS9sb2NhdGlvbnMve2xv", + "Y2F0aW9ufS9wb2xpY3lCaW5kaW5ncy97cG9saWN5X2JpbmRpbmd9EkVmb2xk", + "ZXJzL3tmb2xkZXJ9L2xvY2F0aW9ucy97bG9jYXRpb259L3BvbGljeUJpbmRp", + "bmdzL3twb2xpY3lfYmluZGluZ30SR3Byb2plY3RzL3twcm9qZWN0fS9sb2Nh", + "dGlvbnMve2xvY2F0aW9ufS9wb2xpY3lCaW5kaW5ncy97cG9saWN5X2JpbmRp", + "bmd9Kg5wb2xpY3lCaW5kaW5nczINcG9saWN5QmluZGluZ0KZAQoVY29tLmdv", + "b2dsZS5pYW0udjNiZXRhQhtQb2xpY3lCaW5kaW5nUmVzb3VyY2VzUHJvdG9Q", + "AVotY2xvdWQuZ29vZ2xlLmNvbS9nby9pYW0vYXBpdjNiZXRhL2lhbXBiO2lh", + "bXBiqgIXR29vZ2xlLkNsb3VkLklhbS5WM0JldGHKAhdHb29nbGVcQ2xvdWRc", + "SWFtXFYzYmV0YWIGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.FieldInfoReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Type.ExprReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Iam.V3Beta.PolicyBinding), global::Google.Cloud.Iam.V3Beta.PolicyBinding.Parser, new[]{ "Name", "Uid", "Etag", "DisplayName", "Annotations", "Target", "PolicyKind", "Policy", "PolicyUid", "Condition", "CreateTime", "UpdateTime" }, null, new[]{ typeof(global::Google.Cloud.Iam.V3Beta.PolicyBinding.Types.PolicyKind) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Iam.V3Beta.PolicyBinding.Types.Target), global::Google.Cloud.Iam.V3Beta.PolicyBinding.Types.Target.Parser, new[]{ "PrincipalSet" }, new[]{ "Target" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Iam.V3Beta.PolicyBinding), global::Google.Cloud.Iam.V3Beta.PolicyBinding.Parser, new[]{ "Name", "Uid", "Etag", "DisplayName", "Annotations", "Target", "PolicyKind", "Policy", "PolicyUid", "Condition", "CreateTime", "UpdateTime" }, null, new[]{ typeof(global::Google.Cloud.Iam.V3Beta.PolicyBinding.Types.PolicyKind) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Iam.V3Beta.PolicyBinding.Types.Target), global::Google.Cloud.Iam.V3Beta.PolicyBinding.Types.Target.Parser, new[]{ "PrincipalSet", "Resource" }, new[]{ "Target" }, null, null, null), null, }) })); } @@ -218,8 +219,8 @@ public string DisplayName { public const int TargetFieldNumber = 6; private global::Google.Cloud.Iam.V3Beta.PolicyBinding.Types.Target target_; /// - /// Required. Immutable. Target is the full resource name of the resource to - /// which the policy will be bound. Immutable once set. + /// Required. Immutable. The full resource name of the resource to which the + /// policy will be bound. Immutable once set. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -313,13 +314,14 @@ public string PolicyUid { /// - `principal.type != <principal type string>` /// - `principal.type in [<list of principal types>]` /// - /// Supported principal types are Workspace, Workforce Pool, Workload Pool and - /// Service Account. Allowed string must be one of: + /// Supported principal types are workspace, workforce pool, workload pool, + /// service account, and Agent Identity. Allowed string must be one of: /// - /// - iam.googleapis.com/WorkspaceIdentity - /// - iam.googleapis.com/WorkforcePoolIdentity - /// - iam.googleapis.com/WorkloadPoolIdentity - /// - iam.googleapis.com/ServiceAccount + /// - `iam.googleapis.com/WorkspaceIdentity` + /// - `iam.googleapis.com/WorkforcePoolIdentity` + /// - `iam.googleapis.com/WorkloadPoolIdentity` + /// - `iam.googleapis.com/ServiceAccount` + /// - `iam.googleapis.com/AgentPoolIdentity` (available in Preview) /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -795,7 +797,7 @@ public void MergeFrom(pb::CodedInputStream input) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// - /// Different policy kinds supported in this binding. + /// The different policy kinds supported in this binding. /// public enum PolicyKind { /// @@ -806,10 +808,14 @@ public enum PolicyKind { /// Principal access boundary policy kind /// [pbr::OriginalName("PRINCIPAL_ACCESS_BOUNDARY")] PrincipalAccessBoundary = 1, + /// + /// Access policy kind. + /// + [pbr::OriginalName("ACCESS")] Access = 2, } /// - /// Target is the full resource name of the resource to which the policy will + /// The full resource name of the resource to which the policy will /// be bound. Immutable once set. /// [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] @@ -851,6 +857,9 @@ public Target(Target other) : this() { case TargetOneofCase.PrincipalSet: PrincipalSet = other.PrincipalSet; break; + case TargetOneofCase.Resource: + Resource = other.Resource; + break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -865,28 +874,29 @@ public Target Clone() { /// Field number for the "principal_set" field. public const int PrincipalSetFieldNumber = 1; /// - /// Immutable. Full Resource Name used for principal access boundary policy - /// bindings. The principal set must be directly parented by the policy - /// binding's parent or same as the parent if the target is a - /// project/folder/organization. + /// Immutable. The full resource name that's used for principal access + /// boundary policy bindings. The principal set must be directly parented + /// by the policy binding's parent or same as the parent if the target is a + /// project, folder, or organization. /// /// Examples: - /// * For binding's parented by an organization: - /// * Organization: - /// `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID` - /// * Workforce Identity: - /// `//iam.googleapis.com/locations/global/workforcePools/WORKFORCE_POOL_ID` - /// * Workspace Identity: - /// `//iam.googleapis.com/locations/global/workspace/WORKSPACE_ID` - /// * For binding's parented by a folder: - /// * Folder: - /// `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID` - /// * For binding's parented by a project: - /// * Project: - /// * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER` - /// * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID` - /// * Workload Identity Pool: - /// `//iam.googleapis.com/projects/PROJECT_NUMBER/locations/LOCATION/workloadIdentityPools/WORKLOAD_POOL_ID` + /// + /// * For bindings parented by an organization: + /// * Organization: + /// `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID` + /// * Workforce Identity: + /// `//iam.googleapis.com/locations/global/workforcePools/WORKFORCE_POOL_ID` + /// * Workspace Identity: + /// `//iam.googleapis.com/locations/global/workspace/WORKSPACE_ID` + /// * For bindings parented by a folder: + /// * Folder: + /// `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID` + /// * For bindings parented by a project: + /// * Project: + /// * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER` + /// * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID` + /// * Workload Identity Pool: + /// `//iam.googleapis.com/projects/PROJECT_NUMBER/locations/LOCATION/workloadIdentityPools/WORKLOAD_POOL_ID` /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -912,11 +922,51 @@ public void ClearPrincipalSet() { } } + /// Field number for the "resource" field. + public const int ResourceFieldNumber = 2; + /// + /// Immutable. The full resource name that's used for access policy + /// bindings. + /// + /// Examples: + /// + /// * Organization: + /// `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID` + /// * Folder: `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID` + /// * Project: + /// * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER` + /// * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Resource { + get { return HasResource ? (string) target_ : ""; } + set { + target_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + targetCase_ = TargetOneofCase.Resource; + } + } + /// Gets whether the "resource" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasResource { + get { return targetCase_ == TargetOneofCase.Resource; } + } + /// Clears the value of the oneof if it's currently set to "resource" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearResource() { + if (HasResource) { + ClearTarget(); + } + } + private object target_; /// Enum of possible cases for the "target" oneof. public enum TargetOneofCase { None = 0, PrincipalSet = 1, + Resource = 2, } private TargetOneofCase targetCase_ = TargetOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -948,6 +998,7 @@ public bool Equals(Target other) { return true; } if (PrincipalSet != other.PrincipalSet) return false; + if (Resource != other.Resource) return false; if (TargetCase != other.TargetCase) return false; return Equals(_unknownFields, other._unknownFields); } @@ -957,6 +1008,7 @@ public bool Equals(Target other) { public override int GetHashCode() { int hash = 1; if (HasPrincipalSet) hash ^= PrincipalSet.GetHashCode(); + if (HasResource) hash ^= Resource.GetHashCode(); hash ^= (int) targetCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -980,6 +1032,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(PrincipalSet); } + if (HasResource) { + output.WriteRawTag(18); + output.WriteString(Resource); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -994,6 +1050,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(PrincipalSet); } + if (HasResource) { + output.WriteRawTag(18); + output.WriteString(Resource); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -1007,6 +1067,9 @@ public int CalculateSize() { if (HasPrincipalSet) { size += 1 + pb::CodedOutputStream.ComputeStringSize(PrincipalSet); } + if (HasResource) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Resource); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -1023,6 +1086,9 @@ public void MergeFrom(Target other) { case TargetOneofCase.PrincipalSet: PrincipalSet = other.PrincipalSet; break; + case TargetOneofCase.Resource: + Resource = other.Resource; + break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -1048,6 +1114,10 @@ public void MergeFrom(pb::CodedInputStream input) { PrincipalSet = input.ReadString(); break; } + case 18: { + Resource = input.ReadString(); + break; + } } } #endif @@ -1071,6 +1141,10 @@ public void MergeFrom(pb::CodedInputStream input) { PrincipalSet = input.ReadString(); break; } + case 18: { + Resource = input.ReadString(); + break; + } } } } diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/PolicyBindingsClient.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/PolicyBindingsClient.g.cs index f2a31440e849..ccb23890ea1e 100644 --- a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/PolicyBindingsClient.g.cs +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/PolicyBindingsClient.g.cs @@ -362,7 +362,7 @@ internal static PolicyBindingsClient Create(grpccore::CallInvoker callInvoker, P /// /// Creates a policy binding and returns a long-running operation. /// Callers will need the IAM permissions on both the policy and target. - /// Once the binding is created, the policy is applied to the target. + /// After the binding is created, the policy is applied to the target. /// /// The request object containing all of the parameters for the API call. /// If not null, applies overrides to this RPC call. @@ -373,7 +373,7 @@ internal static PolicyBindingsClient Create(grpccore::CallInvoker callInvoker, P /// /// Creates a policy binding and returns a long-running operation. /// Callers will need the IAM permissions on both the policy and target. - /// Once the binding is created, the policy is applied to the target. + /// After the binding is created, the policy is applied to the target. /// /// The request object containing all of the parameters for the API call. /// If not null, applies overrides to this RPC call. @@ -384,7 +384,7 @@ internal static PolicyBindingsClient Create(grpccore::CallInvoker callInvoker, P /// /// Creates a policy binding and returns a long-running operation. /// Callers will need the IAM permissions on both the policy and target. - /// Once the binding is created, the policy is applied to the target. + /// After the binding is created, the policy is applied to the target. /// /// The request object containing all of the parameters for the API call. /// A to use for this RPC. @@ -422,7 +422,7 @@ internal static PolicyBindingsClient Create(grpccore::CallInvoker callInvoker, P /// /// Creates a policy binding and returns a long-running operation. /// Callers will need the IAM permissions on both the policy and target. - /// Once the binding is created, the policy is applied to the target. + /// After the binding is created, the policy is applied to the target. /// /// /// Required. The parent resource where this policy binding will be created. @@ -460,7 +460,7 @@ internal static PolicyBindingsClient Create(grpccore::CallInvoker callInvoker, P /// /// Creates a policy binding and returns a long-running operation. /// Callers will need the IAM permissions on both the policy and target. - /// Once the binding is created, the policy is applied to the target. + /// After the binding is created, the policy is applied to the target. /// /// /// Required. The parent resource where this policy binding will be created. @@ -498,7 +498,7 @@ internal static PolicyBindingsClient Create(grpccore::CallInvoker callInvoker, P /// /// Creates a policy binding and returns a long-running operation. /// Callers will need the IAM permissions on both the policy and target. - /// Once the binding is created, the policy is applied to the target. + /// After the binding is created, the policy is applied to the target. /// /// /// Required. The parent resource where this policy binding will be created. @@ -531,7 +531,7 @@ internal static PolicyBindingsClient Create(grpccore::CallInvoker callInvoker, P /// /// Creates a policy binding and returns a long-running operation. /// Callers will need the IAM permissions on both the policy and target. - /// Once the binding is created, the policy is applied to the target. + /// After the binding is created, the policy is applied to the target. /// /// /// Required. The parent resource where this policy binding will be created. @@ -569,7 +569,7 @@ internal static PolicyBindingsClient Create(grpccore::CallInvoker callInvoker, P /// /// Creates a policy binding and returns a long-running operation. /// Callers will need the IAM permissions on both the policy and target. - /// Once the binding is created, the policy is applied to the target. + /// After the binding is created, the policy is applied to the target. /// /// /// Required. The parent resource where this policy binding will be created. @@ -607,7 +607,7 @@ internal static PolicyBindingsClient Create(grpccore::CallInvoker callInvoker, P /// /// Creates a policy binding and returns a long-running operation. /// Callers will need the IAM permissions on both the policy and target. - /// Once the binding is created, the policy is applied to the target. + /// After the binding is created, the policy is applied to the target. /// /// /// Required. The parent resource where this policy binding will be created. @@ -640,7 +640,7 @@ internal static PolicyBindingsClient Create(grpccore::CallInvoker callInvoker, P /// /// Creates a policy binding and returns a long-running operation. /// Callers will need the IAM permissions on both the policy and target. - /// Once the binding is created, the policy is applied to the target. + /// After the binding is created, the policy is applied to the target. /// /// /// Required. The parent resource where this policy binding will be created. @@ -678,7 +678,7 @@ internal static PolicyBindingsClient Create(grpccore::CallInvoker callInvoker, P /// /// Creates a policy binding and returns a long-running operation. /// Callers will need the IAM permissions on both the policy and target. - /// Once the binding is created, the policy is applied to the target. + /// After the binding is created, the policy is applied to the target. /// /// /// Required. The parent resource where this policy binding will be created. @@ -716,7 +716,7 @@ internal static PolicyBindingsClient Create(grpccore::CallInvoker callInvoker, P /// /// Creates a policy binding and returns a long-running operation. /// Callers will need the IAM permissions on both the policy and target. - /// Once the binding is created, the policy is applied to the target. + /// After the binding is created, the policy is applied to the target. /// /// /// Required. The parent resource where this policy binding will be created. @@ -749,7 +749,7 @@ internal static PolicyBindingsClient Create(grpccore::CallInvoker callInvoker, P /// /// Creates a policy binding and returns a long-running operation. /// Callers will need the IAM permissions on both the policy and target. - /// Once the binding is created, the policy is applied to the target. + /// After the binding is created, the policy is applied to the target. /// /// /// Required. The parent resource where this policy binding will be created. @@ -787,7 +787,7 @@ internal static PolicyBindingsClient Create(grpccore::CallInvoker callInvoker, P /// /// Creates a policy binding and returns a long-running operation. /// Callers will need the IAM permissions on both the policy and target. - /// Once the binding is created, the policy is applied to the target. + /// After the binding is created, the policy is applied to the target. /// /// /// Required. The parent resource where this policy binding will be created. @@ -825,7 +825,7 @@ internal static PolicyBindingsClient Create(grpccore::CallInvoker callInvoker, P /// /// Creates a policy binding and returns a long-running operation. /// Callers will need the IAM permissions on both the policy and target. - /// Once the binding is created, the policy is applied to the target. + /// After the binding is created, the policy is applied to the target. /// /// /// Required. The parent resource where this policy binding will be created. @@ -1005,9 +1005,7 @@ public virtual PolicyBinding GetPolicyBinding(PolicyBindingName name, gaxgrpc::C /// /// Updates a policy binding and returns a long-running operation. /// Callers will need the IAM permissions on the policy and target in the - /// binding to update, and the IAM permission to remove the existing policy - /// from the binding. Target is immutable and cannot be updated. Once the - /// binding is updated, the new policy is applied to the target. + /// binding to update. Target and policy are immutable and cannot be updated. /// /// The request object containing all of the parameters for the API call. /// If not null, applies overrides to this RPC call. @@ -1018,9 +1016,7 @@ public virtual PolicyBinding GetPolicyBinding(PolicyBindingName name, gaxgrpc::C /// /// Updates a policy binding and returns a long-running operation. /// Callers will need the IAM permissions on the policy and target in the - /// binding to update, and the IAM permission to remove the existing policy - /// from the binding. Target is immutable and cannot be updated. Once the - /// binding is updated, the new policy is applied to the target. + /// binding to update. Target and policy are immutable and cannot be updated. /// /// The request object containing all of the parameters for the API call. /// If not null, applies overrides to this RPC call. @@ -1031,9 +1027,7 @@ public virtual PolicyBinding GetPolicyBinding(PolicyBindingName name, gaxgrpc::C /// /// Updates a policy binding and returns a long-running operation. /// Callers will need the IAM permissions on the policy and target in the - /// binding to update, and the IAM permission to remove the existing policy - /// from the binding. Target is immutable and cannot be updated. Once the - /// binding is updated, the new policy is applied to the target. + /// binding to update. Target and policy are immutable and cannot be updated. /// /// The request object containing all of the parameters for the API call. /// A to use for this RPC. @@ -1071,9 +1065,7 @@ public virtual PolicyBinding GetPolicyBinding(PolicyBindingName name, gaxgrpc::C /// /// Updates a policy binding and returns a long-running operation. /// Callers will need the IAM permissions on the policy and target in the - /// binding to update, and the IAM permission to remove the existing policy - /// from the binding. Target is immutable and cannot be updated. Once the - /// binding is updated, the new policy is applied to the target. + /// binding to update. Target and policy are immutable and cannot be updated. /// /// /// Required. The policy binding to update. @@ -1096,9 +1088,7 @@ public virtual PolicyBinding GetPolicyBinding(PolicyBindingName name, gaxgrpc::C /// /// Updates a policy binding and returns a long-running operation. /// Callers will need the IAM permissions on the policy and target in the - /// binding to update, and the IAM permission to remove the existing policy - /// from the binding. Target is immutable and cannot be updated. Once the - /// binding is updated, the new policy is applied to the target. + /// binding to update. Target and policy are immutable and cannot be updated. /// /// /// Required. The policy binding to update. @@ -1121,9 +1111,7 @@ public virtual PolicyBinding GetPolicyBinding(PolicyBindingName name, gaxgrpc::C /// /// Updates a policy binding and returns a long-running operation. /// Callers will need the IAM permissions on the policy and target in the - /// binding to update, and the IAM permission to remove the existing policy - /// from the binding. Target is immutable and cannot be updated. Once the - /// binding is updated, the new policy is applied to the target. + /// binding to update. Target and policy are immutable and cannot be updated. /// /// /// Required. The policy binding to update. @@ -1142,7 +1130,7 @@ public virtual PolicyBinding GetPolicyBinding(PolicyBindingName name, gaxgrpc::C /// /// Deletes a policy binding and returns a long-running operation. /// Callers will need the IAM permissions on both the policy and target. - /// Once the binding is deleted, the policy no longer applies to the target. + /// After the binding is deleted, the policy no longer applies to the target. /// /// The request object containing all of the parameters for the API call. /// If not null, applies overrides to this RPC call. @@ -1153,7 +1141,7 @@ public virtual PolicyBinding GetPolicyBinding(PolicyBindingName name, gaxgrpc::C /// /// Deletes a policy binding and returns a long-running operation. /// Callers will need the IAM permissions on both the policy and target. - /// Once the binding is deleted, the policy no longer applies to the target. + /// After the binding is deleted, the policy no longer applies to the target. /// /// The request object containing all of the parameters for the API call. /// If not null, applies overrides to this RPC call. @@ -1164,7 +1152,7 @@ public virtual PolicyBinding GetPolicyBinding(PolicyBindingName name, gaxgrpc::C /// /// Deletes a policy binding and returns a long-running operation. /// Callers will need the IAM permissions on both the policy and target. - /// Once the binding is deleted, the policy no longer applies to the target. + /// After the binding is deleted, the policy no longer applies to the target. /// /// The request object containing all of the parameters for the API call. /// A to use for this RPC. @@ -1202,7 +1190,7 @@ public virtual PolicyBinding GetPolicyBinding(PolicyBindingName name, gaxgrpc::C /// /// Deletes a policy binding and returns a long-running operation. /// Callers will need the IAM permissions on both the policy and target. - /// Once the binding is deleted, the policy no longer applies to the target. + /// After the binding is deleted, the policy no longer applies to the target. /// /// /// Required. The name of the policy binding to delete. @@ -1225,7 +1213,7 @@ public virtual PolicyBinding GetPolicyBinding(PolicyBindingName name, gaxgrpc::C /// /// Deletes a policy binding and returns a long-running operation. /// Callers will need the IAM permissions on both the policy and target. - /// Once the binding is deleted, the policy no longer applies to the target. + /// After the binding is deleted, the policy no longer applies to the target. /// /// /// Required. The name of the policy binding to delete. @@ -1248,7 +1236,7 @@ public virtual PolicyBinding GetPolicyBinding(PolicyBindingName name, gaxgrpc::C /// /// Deletes a policy binding and returns a long-running operation. /// Callers will need the IAM permissions on both the policy and target. - /// Once the binding is deleted, the policy no longer applies to the target. + /// After the binding is deleted, the policy no longer applies to the target. /// /// /// Required. The name of the policy binding to delete. @@ -1268,7 +1256,7 @@ public virtual PolicyBinding GetPolicyBinding(PolicyBindingName name, gaxgrpc::C /// /// Deletes a policy binding and returns a long-running operation. /// Callers will need the IAM permissions on both the policy and target. - /// Once the binding is deleted, the policy no longer applies to the target. + /// After the binding is deleted, the policy no longer applies to the target. /// /// /// Required. The name of the policy binding to delete. @@ -1291,7 +1279,7 @@ public virtual PolicyBinding GetPolicyBinding(PolicyBindingName name, gaxgrpc::C /// /// Deletes a policy binding and returns a long-running operation. /// Callers will need the IAM permissions on both the policy and target. - /// Once the binding is deleted, the policy no longer applies to the target. + /// After the binding is deleted, the policy no longer applies to the target. /// /// /// Required. The name of the policy binding to delete. @@ -1314,7 +1302,7 @@ public virtual PolicyBinding GetPolicyBinding(PolicyBindingName name, gaxgrpc::C /// /// Deletes a policy binding and returns a long-running operation. /// Callers will need the IAM permissions on both the policy and target. - /// Once the binding is deleted, the policy no longer applies to the target. + /// After the binding is deleted, the policy no longer applies to the target. /// /// /// Required. The name of the policy binding to delete. @@ -2245,7 +2233,7 @@ public PolicyBindingsClientImpl(PolicyBindings.PolicyBindingsClient grpcClient, /// /// Creates a policy binding and returns a long-running operation. /// Callers will need the IAM permissions on both the policy and target. - /// Once the binding is created, the policy is applied to the target. + /// After the binding is created, the policy is applied to the target. /// /// The request object containing all of the parameters for the API call. /// If not null, applies overrides to this RPC call. @@ -2259,7 +2247,7 @@ public PolicyBindingsClientImpl(PolicyBindings.PolicyBindingsClient grpcClient, /// /// Creates a policy binding and returns a long-running operation. /// Callers will need the IAM permissions on both the policy and target. - /// Once the binding is created, the policy is applied to the target. + /// After the binding is created, the policy is applied to the target. /// /// The request object containing all of the parameters for the API call. /// If not null, applies overrides to this RPC call. @@ -2300,9 +2288,7 @@ public override PolicyBinding GetPolicyBinding(GetPolicyBindingRequest request, /// /// Updates a policy binding and returns a long-running operation. /// Callers will need the IAM permissions on the policy and target in the - /// binding to update, and the IAM permission to remove the existing policy - /// from the binding. Target is immutable and cannot be updated. Once the - /// binding is updated, the new policy is applied to the target. + /// binding to update. Target and policy are immutable and cannot be updated. /// /// The request object containing all of the parameters for the API call. /// If not null, applies overrides to this RPC call. @@ -2316,9 +2302,7 @@ public override PolicyBinding GetPolicyBinding(GetPolicyBindingRequest request, /// /// Updates a policy binding and returns a long-running operation. /// Callers will need the IAM permissions on the policy and target in the - /// binding to update, and the IAM permission to remove the existing policy - /// from the binding. Target is immutable and cannot be updated. Once the - /// binding is updated, the new policy is applied to the target. + /// binding to update. Target and policy are immutable and cannot be updated. /// /// The request object containing all of the parameters for the API call. /// If not null, applies overrides to this RPC call. @@ -2335,7 +2319,7 @@ public override PolicyBinding GetPolicyBinding(GetPolicyBindingRequest request, /// /// Deletes a policy binding and returns a long-running operation. /// Callers will need the IAM permissions on both the policy and target. - /// Once the binding is deleted, the policy no longer applies to the target. + /// After the binding is deleted, the policy no longer applies to the target. /// /// The request object containing all of the parameters for the API call. /// If not null, applies overrides to this RPC call. @@ -2349,7 +2333,7 @@ public override PolicyBinding GetPolicyBinding(GetPolicyBindingRequest request, /// /// Deletes a policy binding and returns a long-running operation. /// Callers will need the IAM permissions on both the policy and target. - /// Once the binding is deleted, the policy no longer applies to the target. + /// After the binding is deleted, the policy no longer applies to the target. /// /// The request object containing all of the parameters for the API call. /// If not null, applies overrides to this RPC call. diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/PolicyBindingsService.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/PolicyBindingsService.g.cs index 321ff32ddc5a..e1b22253a627 100644 --- a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/PolicyBindingsService.g.cs +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/PolicyBindingsService.g.cs @@ -52,72 +52,72 @@ static PolicyBindingsServiceReflection() { "bHRlchgEIAEoCUID4EEBInUKGkxpc3RQb2xpY3lCaW5kaW5nc1Jlc3BvbnNl", "EjkKD3BvbGljeV9iaW5kaW5ncxgBIAMoCzIgLmdvb2dsZS5pYW0udjNiZXRh", "LlBvbGljeUJpbmRpbmcSHAoPbmV4dF9wYWdlX3Rva2VuGAIgASgJQgPgQQEi", - "owEKIVNlYXJjaFRhcmdldFBvbGljeUJpbmRpbmdzUmVxdWVzdBITCgZ0YXJn", + "uAEKIVNlYXJjaFRhcmdldFBvbGljeUJpbmRpbmdzUmVxdWVzdBITCgZ0YXJn", "ZXQYASABKAlCA+BBAhIWCglwYWdlX3NpemUYAiABKAVCA+BBARIXCgpwYWdl", "X3Rva2VuGAMgASgJQgPgQQESOAoGcGFyZW50GAUgASgJQijgQQL6QSISIGlh", - "bS5nb29nbGVhcGlzLmNvbS9Qb2xpY3lCaW5kaW5nIn0KIlNlYXJjaFRhcmdl", - "dFBvbGljeUJpbmRpbmdzUmVzcG9uc2USOQoPcG9saWN5X2JpbmRpbmdzGAEg", - "AygLMiAuZ29vZ2xlLmlhbS52M2JldGEuUG9saWN5QmluZGluZxIcCg9uZXh0", - "X3BhZ2VfdG9rZW4YAiABKAlCA+BBATKMEgoOUG9saWN5QmluZGluZ3MSnAMK", - "E0NyZWF0ZVBvbGljeUJpbmRpbmcSLS5nb29nbGUuaWFtLnYzYmV0YS5DcmVh", - "dGVQb2xpY3lCaW5kaW5nUmVxdWVzdBodLmdvb2dsZS5sb25ncnVubmluZy5P", - "cGVyYXRpb24itgLKQSIKDVBvbGljeUJpbmRpbmcSEU9wZXJhdGlvbk1ldGFk", - "YXRh2kEncGFyZW50LHBvbGljeV9iaW5kaW5nLHBvbGljeV9iaW5kaW5nX2lk", - "gtPkkwLgASI2L3YzYmV0YS97cGFyZW50PXByb2plY3RzLyovbG9jYXRpb25z", - "Lyp9L3BvbGljeUJpbmRpbmdzOg5wb2xpY3lfYmluZGluZ1pHIjUvdjNiZXRh", - "L3twYXJlbnQ9Zm9sZGVycy8qL2xvY2F0aW9ucy8qfS9wb2xpY3lCaW5kaW5n", - "czoOcG9saWN5X2JpbmRpbmdaTSI7L3YzYmV0YS97cGFyZW50PW9yZ2FuaXph", - "dGlvbnMvKi9sb2NhdGlvbnMvKn0vcG9saWN5QmluZGluZ3M6DnBvbGljeV9i", - "aW5kaW5nEqECChBHZXRQb2xpY3lCaW5kaW5nEiouZ29vZ2xlLmlhbS52M2Jl", - "dGEuR2V0UG9saWN5QmluZGluZ1JlcXVlc3QaIC5nb29nbGUuaWFtLnYzYmV0", - "YS5Qb2xpY3lCaW5kaW5nIr4B2kEEbmFtZYLT5JMCsAESNi92M2JldGEve25h", - "bWU9cHJvamVjdHMvKi9sb2NhdGlvbnMvKi9wb2xpY3lCaW5kaW5ncy8qfVo3", - "EjUvdjNiZXRhL3tuYW1lPWZvbGRlcnMvKi9sb2NhdGlvbnMvKi9wb2xpY3lC", - "aW5kaW5ncy8qfVo9EjsvdjNiZXRhL3tuYW1lPW9yZ2FuaXphdGlvbnMvKi9s", - "b2NhdGlvbnMvKi9wb2xpY3lCaW5kaW5ncy8qfRK8AwoTVXBkYXRlUG9saWN5", - "QmluZGluZxItLmdvb2dsZS5pYW0udjNiZXRhLlVwZGF0ZVBvbGljeUJpbmRp", - "bmdSZXF1ZXN0Gh0uZ29vZ2xlLmxvbmdydW5uaW5nLk9wZXJhdGlvbiLWAspB", - "IgoNUG9saWN5QmluZGluZxIRT3BlcmF0aW9uTWV0YWRhdGHaQRpwb2xpY3lf", - "YmluZGluZyx1cGRhdGVfbWFza4LT5JMCjQIyRS92M2JldGEve3BvbGljeV9i", - "aW5kaW5nLm5hbWU9cHJvamVjdHMvKi9sb2NhdGlvbnMvKi9wb2xpY3lCaW5k", - "aW5ncy8qfToOcG9saWN5X2JpbmRpbmdaVjJEL3YzYmV0YS97cG9saWN5X2Jp", - "bmRpbmcubmFtZT1mb2xkZXJzLyovbG9jYXRpb25zLyovcG9saWN5QmluZGlu", - "Z3MvKn06DnBvbGljeV9iaW5kaW5nWlwySi92M2JldGEve3BvbGljeV9iaW5k", - "aW5nLm5hbWU9b3JnYW5pemF0aW9ucy8qL2xvY2F0aW9ucy8qL3BvbGljeUJp", - "bmRpbmdzLyp9Og5wb2xpY3lfYmluZGluZxLRAgoTRGVsZXRlUG9saWN5Qmlu", - "ZGluZxItLmdvb2dsZS5pYW0udjNiZXRhLkRlbGV0ZVBvbGljeUJpbmRpbmdS", - "ZXF1ZXN0Gh0uZ29vZ2xlLmxvbmdydW5uaW5nLk9wZXJhdGlvbiLrAcpBKgoV", - "Z29vZ2xlLnByb3RvYnVmLkVtcHR5EhFPcGVyYXRpb25NZXRhZGF0YdpBBG5h", - "bWWC0+STArABKjYvdjNiZXRhL3tuYW1lPXByb2plY3RzLyovbG9jYXRpb25z", - "LyovcG9saWN5QmluZGluZ3MvKn1aNyo1L3YzYmV0YS97bmFtZT1mb2xkZXJz", - "LyovbG9jYXRpb25zLyovcG9saWN5QmluZGluZ3MvKn1aPSo7L3YzYmV0YS97", - "bmFtZT1vcmdhbml6YXRpb25zLyovbG9jYXRpb25zLyovcG9saWN5QmluZGlu", - "Z3MvKn0StAIKEkxpc3RQb2xpY3lCaW5kaW5ncxIsLmdvb2dsZS5pYW0udjNi", - "ZXRhLkxpc3RQb2xpY3lCaW5kaW5nc1JlcXVlc3QaLS5nb29nbGUuaWFtLnYz", - "YmV0YS5MaXN0UG9saWN5QmluZGluZ3NSZXNwb25zZSLAAdpBBnBhcmVudILT", - "5JMCsAESNi92M2JldGEve3BhcmVudD1wcm9qZWN0cy8qL2xvY2F0aW9ucy8q", - "fS9wb2xpY3lCaW5kaW5nc1o3EjUvdjNiZXRhL3twYXJlbnQ9Zm9sZGVycy8q", - "L2xvY2F0aW9ucy8qfS9wb2xpY3lCaW5kaW5nc1o9EjsvdjNiZXRhL3twYXJl", - "bnQ9b3JnYW5pemF0aW9ucy8qL2xvY2F0aW9ucy8qfS9wb2xpY3lCaW5kaW5n", - "cxKkAwoaU2VhcmNoVGFyZ2V0UG9saWN5QmluZGluZ3MSNC5nb29nbGUuaWFt", - "LnYzYmV0YS5TZWFyY2hUYXJnZXRQb2xpY3lCaW5kaW5nc1JlcXVlc3QaNS5n", - "b29nbGUuaWFtLnYzYmV0YS5TZWFyY2hUYXJnZXRQb2xpY3lCaW5kaW5nc1Jl", - "c3BvbnNlIpgC2kENcGFyZW50LHRhcmdldILT5JMCgQISUS92M2JldGEve3Bh", - "cmVudD1wcm9qZWN0cy8qL2xvY2F0aW9ucy8qfS9wb2xpY3lCaW5kaW5nczpz", - "ZWFyY2hUYXJnZXRQb2xpY3lCaW5kaW5nc1pSElAvdjNiZXRhL3twYXJlbnQ9", - "Zm9sZGVycy8qL2xvY2F0aW9ucy8qfS9wb2xpY3lCaW5kaW5nczpzZWFyY2hU", - "YXJnZXRQb2xpY3lCaW5kaW5nc1pYElYvdjNiZXRhL3twYXJlbnQ9b3JnYW5p", - "emF0aW9ucy8qL2xvY2F0aW9ucy8qfS9wb2xpY3lCaW5kaW5nczpzZWFyY2hU", - "YXJnZXRQb2xpY3lCaW5kaW5ncxpGykESaWFtLmdvb2dsZWFwaXMuY29t0kEu", - "aHR0cHM6Ly93d3cuZ29vZ2xlYXBpcy5jb20vYXV0aC9jbG91ZC1wbGF0Zm9y", - "bULEAgoVY29tLmdvb2dsZS5pYW0udjNiZXRhQhpQb2xpY3lCaW5kaW5nc1Nl", - "cnZpY2VQcm90b1ABWi1jbG91ZC5nb29nbGUuY29tL2dvL2lhbS9hcGl2M2Jl", - "dGEvaWFtcGI7aWFtcGKqAhdHb29nbGUuQ2xvdWQuSWFtLlYzQmV0YcoCF0dv", - "b2dsZVxDbG91ZFxJYW1cVjNiZXRh6kFcCidpYW0uZ29vZ2xlYXBpcy5jb20v", - "T3JnYW5pemF0aW9uTG9jYXRpb24SMW9yZ2FuaXphdGlvbnMve29yZ2FuaXph", - "dGlvbn0vbG9jYXRpb25zL3tsb2NhdGlvbn3qQUoKIWlhbS5nb29nbGVhcGlz", - "LmNvbS9Gb2xkZXJMb2NhdGlvbhIlZm9sZGVycy97Zm9sZGVyfS9sb2NhdGlv", - "bnMve2xvY2F0aW9ufWIGcHJvdG8z")); + "bS5nb29nbGVhcGlzLmNvbS9Qb2xpY3lCaW5kaW5nEhMKBmZpbHRlchgGIAEo", + "CUID4EEBIn0KIlNlYXJjaFRhcmdldFBvbGljeUJpbmRpbmdzUmVzcG9uc2US", + "OQoPcG9saWN5X2JpbmRpbmdzGAEgAygLMiAuZ29vZ2xlLmlhbS52M2JldGEu", + "UG9saWN5QmluZGluZxIcCg9uZXh0X3BhZ2VfdG9rZW4YAiABKAlCA+BBATKM", + "EgoOUG9saWN5QmluZGluZ3MSnAMKE0NyZWF0ZVBvbGljeUJpbmRpbmcSLS5n", + "b29nbGUuaWFtLnYzYmV0YS5DcmVhdGVQb2xpY3lCaW5kaW5nUmVxdWVzdBod", + "Lmdvb2dsZS5sb25ncnVubmluZy5PcGVyYXRpb24itgLKQSIKDVBvbGljeUJp", + "bmRpbmcSEU9wZXJhdGlvbk1ldGFkYXRh2kEncGFyZW50LHBvbGljeV9iaW5k", + "aW5nLHBvbGljeV9iaW5kaW5nX2lkgtPkkwLgASI2L3YzYmV0YS97cGFyZW50", + "PXByb2plY3RzLyovbG9jYXRpb25zLyp9L3BvbGljeUJpbmRpbmdzOg5wb2xp", + "Y3lfYmluZGluZ1pHIjUvdjNiZXRhL3twYXJlbnQ9Zm9sZGVycy8qL2xvY2F0", + "aW9ucy8qfS9wb2xpY3lCaW5kaW5nczoOcG9saWN5X2JpbmRpbmdaTSI7L3Yz", + "YmV0YS97cGFyZW50PW9yZ2FuaXphdGlvbnMvKi9sb2NhdGlvbnMvKn0vcG9s", + "aWN5QmluZGluZ3M6DnBvbGljeV9iaW5kaW5nEqECChBHZXRQb2xpY3lCaW5k", + "aW5nEiouZ29vZ2xlLmlhbS52M2JldGEuR2V0UG9saWN5QmluZGluZ1JlcXVl", + "c3QaIC5nb29nbGUuaWFtLnYzYmV0YS5Qb2xpY3lCaW5kaW5nIr4B2kEEbmFt", + "ZYLT5JMCsAESNi92M2JldGEve25hbWU9cHJvamVjdHMvKi9sb2NhdGlvbnMv", + "Ki9wb2xpY3lCaW5kaW5ncy8qfVo3EjUvdjNiZXRhL3tuYW1lPWZvbGRlcnMv", + "Ki9sb2NhdGlvbnMvKi9wb2xpY3lCaW5kaW5ncy8qfVo9EjsvdjNiZXRhL3tu", + "YW1lPW9yZ2FuaXphdGlvbnMvKi9sb2NhdGlvbnMvKi9wb2xpY3lCaW5kaW5n", + "cy8qfRK8AwoTVXBkYXRlUG9saWN5QmluZGluZxItLmdvb2dsZS5pYW0udjNi", + "ZXRhLlVwZGF0ZVBvbGljeUJpbmRpbmdSZXF1ZXN0Gh0uZ29vZ2xlLmxvbmdy", + "dW5uaW5nLk9wZXJhdGlvbiLWAspBIgoNUG9saWN5QmluZGluZxIRT3BlcmF0", + "aW9uTWV0YWRhdGHaQRpwb2xpY3lfYmluZGluZyx1cGRhdGVfbWFza4LT5JMC", + "jQIyRS92M2JldGEve3BvbGljeV9iaW5kaW5nLm5hbWU9cHJvamVjdHMvKi9s", + "b2NhdGlvbnMvKi9wb2xpY3lCaW5kaW5ncy8qfToOcG9saWN5X2JpbmRpbmda", + "VjJEL3YzYmV0YS97cG9saWN5X2JpbmRpbmcubmFtZT1mb2xkZXJzLyovbG9j", + "YXRpb25zLyovcG9saWN5QmluZGluZ3MvKn06DnBvbGljeV9iaW5kaW5nWlwy", + "Si92M2JldGEve3BvbGljeV9iaW5kaW5nLm5hbWU9b3JnYW5pemF0aW9ucy8q", + "L2xvY2F0aW9ucy8qL3BvbGljeUJpbmRpbmdzLyp9Og5wb2xpY3lfYmluZGlu", + "ZxLRAgoTRGVsZXRlUG9saWN5QmluZGluZxItLmdvb2dsZS5pYW0udjNiZXRh", + "LkRlbGV0ZVBvbGljeUJpbmRpbmdSZXF1ZXN0Gh0uZ29vZ2xlLmxvbmdydW5u", + "aW5nLk9wZXJhdGlvbiLrAcpBKgoVZ29vZ2xlLnByb3RvYnVmLkVtcHR5EhFP", + "cGVyYXRpb25NZXRhZGF0YdpBBG5hbWWC0+STArABKjYvdjNiZXRhL3tuYW1l", + "PXByb2plY3RzLyovbG9jYXRpb25zLyovcG9saWN5QmluZGluZ3MvKn1aNyo1", + "L3YzYmV0YS97bmFtZT1mb2xkZXJzLyovbG9jYXRpb25zLyovcG9saWN5Qmlu", + "ZGluZ3MvKn1aPSo7L3YzYmV0YS97bmFtZT1vcmdhbml6YXRpb25zLyovbG9j", + "YXRpb25zLyovcG9saWN5QmluZGluZ3MvKn0StAIKEkxpc3RQb2xpY3lCaW5k", + "aW5ncxIsLmdvb2dsZS5pYW0udjNiZXRhLkxpc3RQb2xpY3lCaW5kaW5nc1Jl", + "cXVlc3QaLS5nb29nbGUuaWFtLnYzYmV0YS5MaXN0UG9saWN5QmluZGluZ3NS", + "ZXNwb25zZSLAAdpBBnBhcmVudILT5JMCsAESNi92M2JldGEve3BhcmVudD1w", + "cm9qZWN0cy8qL2xvY2F0aW9ucy8qfS9wb2xpY3lCaW5kaW5nc1o3EjUvdjNi", + "ZXRhL3twYXJlbnQ9Zm9sZGVycy8qL2xvY2F0aW9ucy8qfS9wb2xpY3lCaW5k", + "aW5nc1o9EjsvdjNiZXRhL3twYXJlbnQ9b3JnYW5pemF0aW9ucy8qL2xvY2F0", + "aW9ucy8qfS9wb2xpY3lCaW5kaW5ncxKkAwoaU2VhcmNoVGFyZ2V0UG9saWN5", + "QmluZGluZ3MSNC5nb29nbGUuaWFtLnYzYmV0YS5TZWFyY2hUYXJnZXRQb2xp", + "Y3lCaW5kaW5nc1JlcXVlc3QaNS5nb29nbGUuaWFtLnYzYmV0YS5TZWFyY2hU", + "YXJnZXRQb2xpY3lCaW5kaW5nc1Jlc3BvbnNlIpgC2kENcGFyZW50LHRhcmdl", + "dILT5JMCgQISUS92M2JldGEve3BhcmVudD1wcm9qZWN0cy8qL2xvY2F0aW9u", + "cy8qfS9wb2xpY3lCaW5kaW5nczpzZWFyY2hUYXJnZXRQb2xpY3lCaW5kaW5n", + "c1pSElAvdjNiZXRhL3twYXJlbnQ9Zm9sZGVycy8qL2xvY2F0aW9ucy8qfS9w", + "b2xpY3lCaW5kaW5nczpzZWFyY2hUYXJnZXRQb2xpY3lCaW5kaW5nc1pYElYv", + "djNiZXRhL3twYXJlbnQ9b3JnYW5pemF0aW9ucy8qL2xvY2F0aW9ucy8qfS9w", + "b2xpY3lCaW5kaW5nczpzZWFyY2hUYXJnZXRQb2xpY3lCaW5kaW5ncxpGykES", + "aWFtLmdvb2dsZWFwaXMuY29t0kEuaHR0cHM6Ly93d3cuZ29vZ2xlYXBpcy5j", + "b20vYXV0aC9jbG91ZC1wbGF0Zm9ybULEAgoVY29tLmdvb2dsZS5pYW0udjNi", + "ZXRhQhpQb2xpY3lCaW5kaW5nc1NlcnZpY2VQcm90b1ABWi1jbG91ZC5nb29n", + "bGUuY29tL2dvL2lhbS9hcGl2M2JldGEvaWFtcGI7aWFtcGKqAhdHb29nbGUu", + "Q2xvdWQuSWFtLlYzQmV0YcoCF0dvb2dsZVxDbG91ZFxJYW1cVjNiZXRh6kFc", + "CidpYW0uZ29vZ2xlYXBpcy5jb20vT3JnYW5pemF0aW9uTG9jYXRpb24SMW9y", + "Z2FuaXphdGlvbnMve29yZ2FuaXphdGlvbn0vbG9jYXRpb25zL3tsb2NhdGlv", + "bn3qQUoKIWlhbS5nb29nbGVhcGlzLmNvbS9Gb2xkZXJMb2NhdGlvbhIlZm9s", + "ZGVycy97Zm9sZGVyfS9sb2NhdGlvbnMve2xvY2F0aW9ufWIGcHJvdG8z")); 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.ResourceReflection.Descriptor, global::Google.Cloud.Iam.V3Beta.OperationMetadataReflection.Descriptor, global::Google.Cloud.Iam.V3Beta.PolicyBindingResourcesReflection.Descriptor, global::Google.LongRunning.OperationsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { @@ -127,7 +127,7 @@ static PolicyBindingsServiceReflection() { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Iam.V3Beta.DeletePolicyBindingRequest), global::Google.Cloud.Iam.V3Beta.DeletePolicyBindingRequest.Parser, new[]{ "Name", "Etag", "ValidateOnly" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Iam.V3Beta.ListPolicyBindingsRequest), global::Google.Cloud.Iam.V3Beta.ListPolicyBindingsRequest.Parser, new[]{ "Parent", "PageSize", "PageToken", "Filter" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Iam.V3Beta.ListPolicyBindingsResponse), global::Google.Cloud.Iam.V3Beta.ListPolicyBindingsResponse.Parser, new[]{ "PolicyBindings", "NextPageToken" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Iam.V3Beta.SearchTargetPolicyBindingsRequest), global::Google.Cloud.Iam.V3Beta.SearchTargetPolicyBindingsRequest.Parser, new[]{ "Target", "PageSize", "PageToken", "Parent" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Iam.V3Beta.SearchTargetPolicyBindingsRequest), global::Google.Cloud.Iam.V3Beta.SearchTargetPolicyBindingsRequest.Parser, new[]{ "Target", "PageSize", "PageToken", "Parent", "Filter" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Iam.V3Beta.SearchTargetPolicyBindingsResponse), global::Google.Cloud.Iam.V3Beta.SearchTargetPolicyBindingsResponse.Parser, new[]{ "PolicyBindings", "NextPageToken" }, null, null, null, null) })); } @@ -1374,8 +1374,7 @@ public string Parent { /// Optional. The maximum number of policy bindings to return. The service may /// return fewer than this value. /// - /// If unspecified, at most 50 policy bindings will be returned. - /// The maximum value is 1000; values above 1000 will be coerced to 1000. + /// The default value is 50. The maximum value is 1000. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -1410,7 +1409,8 @@ public string PageToken { private string filter_ = ""; /// /// Optional. An expression for filtering the results of the request. Filter - /// rules are case insensitive. Some eligible fields for filtering are: + /// rules are case insensitive. Some eligible fields for filtering are the + /// following: /// /// + `target` /// + `policy` @@ -1919,6 +1919,7 @@ public SearchTargetPolicyBindingsRequest(SearchTargetPolicyBindingsRequest other pageSize_ = other.pageSize_; pageToken_ = other.pageToken_; parent_ = other.parent_; + filter_ = other.filter_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -1959,8 +1960,7 @@ public string Target { /// Optional. The maximum number of policy bindings to return. The service may /// return fewer than this value. /// - /// If unspecified, at most 50 policy bindings will be returned. - /// The maximum value is 1000; values above 1000 will be coerced to 1000. + /// The default value is 50. The maximum value is 1000. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -2016,6 +2016,30 @@ public string Parent { } } + /// Field number for the "filter" field. + public const int FilterFieldNumber = 6; + private string filter_ = ""; + /// + /// Optional. Filtering currently only supports the kind of policies to return, + /// and must be in the format "policy_kind={policy_kind}". + /// + /// If String is empty, bindings bound to all kinds of policies would be + /// returned. + /// + /// The only supported values are the following: + /// + /// * "policy_kind=PRINCIPAL_ACCESS_BOUNDARY", + /// * "policy_kind=ACCESS" + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Filter { + get { return filter_; } + set { + filter_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -2035,6 +2059,7 @@ public bool Equals(SearchTargetPolicyBindingsRequest other) { if (PageSize != other.PageSize) return false; if (PageToken != other.PageToken) return false; if (Parent != other.Parent) return false; + if (Filter != other.Filter) return false; return Equals(_unknownFields, other._unknownFields); } @@ -2046,6 +2071,7 @@ public override int GetHashCode() { if (PageSize != 0) hash ^= PageSize.GetHashCode(); if (PageToken.Length != 0) hash ^= PageToken.GetHashCode(); if (Parent.Length != 0) hash ^= Parent.GetHashCode(); + if (Filter.Length != 0) hash ^= Filter.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -2080,6 +2106,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(42); output.WriteString(Parent); } + if (Filter.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Filter); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -2106,6 +2136,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(42); output.WriteString(Parent); } + if (Filter.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Filter); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -2128,6 +2162,9 @@ public int CalculateSize() { if (Parent.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Parent); } + if (Filter.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Filter); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -2152,6 +2189,9 @@ public void MergeFrom(SearchTargetPolicyBindingsRequest other) { if (other.Parent.Length != 0) { Parent = other.Parent; } + if (other.Filter.Length != 0) { + Filter = other.Filter; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -2187,6 +2227,10 @@ public void MergeFrom(pb::CodedInputStream input) { Parent = input.ReadString(); break; } + case 50: { + Filter = input.ReadString(); + break; + } } } #endif @@ -2222,6 +2266,10 @@ public void MergeFrom(pb::CodedInputStream input) { Parent = input.ReadString(); break; } + case 50: { + Filter = input.ReadString(); + break; + } } } } diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/PolicyBindingsServiceGrpc.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/PolicyBindingsServiceGrpc.g.cs index 8ff234440954..e5cea52e1323 100644 --- a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/PolicyBindingsServiceGrpc.g.cs +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/PolicyBindingsServiceGrpc.g.cs @@ -3,7 +3,7 @@ // source: google/iam/v3beta/policy_bindings_service.proto // // Original file comments: -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -146,7 +146,7 @@ public abstract partial class PolicyBindingsBase /// /// Creates a policy binding and returns a long-running operation. /// Callers will need the IAM permissions on both the policy and target. - /// Once the binding is created, the policy is applied to the target. + /// After the binding is created, the policy is applied to the target. /// /// The request received from the client. /// The context of the server-side call handler being invoked. @@ -172,9 +172,7 @@ public abstract partial class PolicyBindingsBase /// /// Updates a policy binding and returns a long-running operation. /// Callers will need the IAM permissions on the policy and target in the - /// binding to update, and the IAM permission to remove the existing policy - /// from the binding. Target is immutable and cannot be updated. Once the - /// binding is updated, the new policy is applied to the target. + /// binding to update. Target and policy are immutable and cannot be updated. /// /// The request received from the client. /// The context of the server-side call handler being invoked. @@ -188,7 +186,7 @@ public abstract partial class PolicyBindingsBase /// /// Deletes a policy binding and returns a long-running operation. /// Callers will need the IAM permissions on both the policy and target. - /// Once the binding is deleted, the policy no longer applies to the target. + /// After the binding is deleted, the policy no longer applies to the target. /// /// The request received from the client. /// The context of the server-side call handler being invoked. @@ -256,7 +254,7 @@ protected PolicyBindingsClient(ClientBaseConfiguration configuration) : base(con /// /// Creates a policy binding and returns a long-running operation. /// Callers will need the IAM permissions on both the policy and target. - /// Once the binding is created, the policy is applied to the target. + /// After the binding is created, the policy is applied to the target. /// /// The request to send to the server. /// The initial metadata to send with the call. This parameter is optional. @@ -271,7 +269,7 @@ protected PolicyBindingsClient(ClientBaseConfiguration configuration) : base(con /// /// Creates a policy binding and returns a long-running operation. /// Callers will need the IAM permissions on both the policy and target. - /// Once the binding is created, the policy is applied to the target. + /// After the binding is created, the policy is applied to the target. /// /// The request to send to the server. /// The options for the call. @@ -284,7 +282,7 @@ protected PolicyBindingsClient(ClientBaseConfiguration configuration) : base(con /// /// Creates a policy binding and returns a long-running operation. /// Callers will need the IAM permissions on both the policy and target. - /// Once the binding is created, the policy is applied to the target. + /// After the binding is created, the policy is applied to the target. /// /// The request to send to the server. /// The initial metadata to send with the call. This parameter is optional. @@ -299,7 +297,7 @@ protected PolicyBindingsClient(ClientBaseConfiguration configuration) : base(con /// /// Creates a policy binding and returns a long-running operation. /// Callers will need the IAM permissions on both the policy and target. - /// Once the binding is created, the policy is applied to the target. + /// After the binding is created, the policy is applied to the target. /// /// The request to send to the server. /// The options for the call. @@ -360,9 +358,7 @@ protected PolicyBindingsClient(ClientBaseConfiguration configuration) : base(con /// /// Updates a policy binding and returns a long-running operation. /// Callers will need the IAM permissions on the policy and target in the - /// binding to update, and the IAM permission to remove the existing policy - /// from the binding. Target is immutable and cannot be updated. Once the - /// binding is updated, the new policy is applied to the target. + /// binding to update. Target and policy are immutable and cannot be updated. /// /// The request to send to the server. /// The initial metadata to send with the call. This parameter is optional. @@ -377,9 +373,7 @@ protected PolicyBindingsClient(ClientBaseConfiguration configuration) : base(con /// /// Updates a policy binding and returns a long-running operation. /// Callers will need the IAM permissions on the policy and target in the - /// binding to update, and the IAM permission to remove the existing policy - /// from the binding. Target is immutable and cannot be updated. Once the - /// binding is updated, the new policy is applied to the target. + /// binding to update. Target and policy are immutable and cannot be updated. /// /// The request to send to the server. /// The options for the call. @@ -392,9 +386,7 @@ protected PolicyBindingsClient(ClientBaseConfiguration configuration) : base(con /// /// Updates a policy binding and returns a long-running operation. /// Callers will need the IAM permissions on the policy and target in the - /// binding to update, and the IAM permission to remove the existing policy - /// from the binding. Target is immutable and cannot be updated. Once the - /// binding is updated, the new policy is applied to the target. + /// binding to update. Target and policy are immutable and cannot be updated. /// /// The request to send to the server. /// The initial metadata to send with the call. This parameter is optional. @@ -409,9 +401,7 @@ protected PolicyBindingsClient(ClientBaseConfiguration configuration) : base(con /// /// Updates a policy binding and returns a long-running operation. /// Callers will need the IAM permissions on the policy and target in the - /// binding to update, and the IAM permission to remove the existing policy - /// from the binding. Target is immutable and cannot be updated. Once the - /// binding is updated, the new policy is applied to the target. + /// binding to update. Target and policy are immutable and cannot be updated. /// /// The request to send to the server. /// The options for the call. @@ -424,7 +414,7 @@ protected PolicyBindingsClient(ClientBaseConfiguration configuration) : base(con /// /// Deletes a policy binding and returns a long-running operation. /// Callers will need the IAM permissions on both the policy and target. - /// Once the binding is deleted, the policy no longer applies to the target. + /// After the binding is deleted, the policy no longer applies to the target. /// /// The request to send to the server. /// The initial metadata to send with the call. This parameter is optional. @@ -439,7 +429,7 @@ protected PolicyBindingsClient(ClientBaseConfiguration configuration) : base(con /// /// Deletes a policy binding and returns a long-running operation. /// Callers will need the IAM permissions on both the policy and target. - /// Once the binding is deleted, the policy no longer applies to the target. + /// After the binding is deleted, the policy no longer applies to the target. /// /// The request to send to the server. /// The options for the call. @@ -452,7 +442,7 @@ protected PolicyBindingsClient(ClientBaseConfiguration configuration) : base(con /// /// Deletes a policy binding and returns a long-running operation. /// Callers will need the IAM permissions on both the policy and target. - /// Once the binding is deleted, the policy no longer applies to the target. + /// After the binding is deleted, the policy no longer applies to the target. /// /// The request to send to the server. /// The initial metadata to send with the call. This parameter is optional. @@ -467,7 +457,7 @@ protected PolicyBindingsClient(ClientBaseConfiguration configuration) : base(con /// /// Deletes a policy binding and returns a long-running operation. /// Callers will need the IAM permissions on both the policy and target. - /// Once the binding is deleted, the policy no longer applies to the target. + /// After the binding is deleted, the policy no longer applies to the target. /// /// The request to send to the server. /// The options for the call. diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/PrincipalAccessBoundaryPoliciesServiceGrpc.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/PrincipalAccessBoundaryPoliciesServiceGrpc.g.cs index 28043956ead6..9d21543ca410 100644 --- a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/PrincipalAccessBoundaryPoliciesServiceGrpc.g.cs +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/PrincipalAccessBoundaryPoliciesServiceGrpc.g.cs @@ -3,7 +3,7 @@ // source: google/iam/v3beta/principal_access_boundary_policies_service.proto // // Original file comments: -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/ServiceCollectionExtensions.g.cs b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/ServiceCollectionExtensions.g.cs index 59966c7ac2cd..66f13a42d4ed 100644 --- a/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/ServiceCollectionExtensions.g.cs +++ b/apis/Google.Cloud.Iam.V3Beta/Google.Cloud.Iam.V3Beta/ServiceCollectionExtensions.g.cs @@ -29,6 +29,38 @@ namespace Microsoft.Extensions.DependencyInjection /// Static class to provide extension methods to configure API clients. public static partial class ServiceCollectionExtensions { + /// Adds a singleton to . + /// + /// The service collection to add the client to. The services are used to configure the client when requested. + /// + /// + /// An optional action to invoke on the client builder. This is invoked before services from + /// are used. + /// + public static IServiceCollection AddAccessPoliciesClient(this IServiceCollection services, sys::Action action = null) => + services.AddSingleton(provider => + { + gciv::AccessPoliciesClientBuilder builder = new gciv::AccessPoliciesClientBuilder(); + action?.Invoke(builder); + return builder.Build(provider); + }); + + /// Adds a singleton to . + /// + /// The service collection to add the client to. The services are used to configure the client when requested. + /// + /// + /// An optional action to invoke on the client builder. This is invoked before services from + /// are used. + /// + public static IServiceCollection AddAccessPoliciesClient(this IServiceCollection services, sys::Action action) => + services.AddSingleton(provider => + { + gciv::AccessPoliciesClientBuilder builder = new gciv::AccessPoliciesClientBuilder(); + action?.Invoke(provider, builder); + return builder.Build(provider); + }); + /// Adds a singleton to . /// /// The service collection to add the client to. The services are used to configure the client when requested. diff --git a/apis/Google.Cloud.Iam.V3Beta/gapic_metadata.json b/apis/Google.Cloud.Iam.V3Beta/gapic_metadata.json index 0fff5190fbdf..dad0292548ef 100644 --- a/apis/Google.Cloud.Iam.V3Beta/gapic_metadata.json +++ b/apis/Google.Cloud.Iam.V3Beta/gapic_metadata.json @@ -5,6 +5,51 @@ "protoPackage": "google.iam.v3beta", "libraryPackage": "Google.Cloud.Iam.V3Beta", "services": { + "AccessPolicies": { + "clients": { + "grpc": { + "libraryClient": "AccessPoliciesClient", + "rpcs": { + "CreateAccessPolicy": { + "methods": [ + "CreateAccessPolicy", + "CreateAccessPolicyAsync" + ] + }, + "DeleteAccessPolicy": { + "methods": [ + "DeleteAccessPolicy", + "DeleteAccessPolicyAsync" + ] + }, + "GetAccessPolicy": { + "methods": [ + "GetAccessPolicy", + "GetAccessPolicyAsync" + ] + }, + "ListAccessPolicies": { + "methods": [ + "ListAccessPolicies", + "ListAccessPoliciesAsync" + ] + }, + "SearchAccessPolicyBindings": { + "methods": [ + "SearchAccessPolicyBindings", + "SearchAccessPolicyBindingsAsync" + ] + }, + "UpdateAccessPolicy": { + "methods": [ + "UpdateAccessPolicy", + "UpdateAccessPolicyAsync" + ] + } + } + } + } + }, "PolicyBindings": { "clients": { "grpc": { diff --git a/generator-input/pipeline-state.json b/generator-input/pipeline-state.json index 24455587378d..8a20d5b6600e 100644 --- a/generator-input/pipeline-state.json +++ b/generator-input/pipeline-state.json @@ -4165,7 +4165,7 @@ "generationAutomationLevel": "AUTOMATION_LEVEL_AUTOMATIC", "releaseAutomationLevel": "AUTOMATION_LEVEL_AUTOMATIC", "releaseTimestamp": "2025-11-05T22:14:29.384867892Z", - "lastGeneratedCommit": "d90d23fa13599f525245fe446086f83cf8863ca4", + "lastGeneratedCommit": "ef576481d03c4c969c0c930cf6998c0176f47015", "lastReleasedCommit": "c1c2f3e01e494b6fa004ff543cec2a8d84120717", "apiPaths": [ "google/iam/v3beta" From e933c2d73760d8f2823e1fb1000222fc6ceedacc Mon Sep 17 00:00:00 2001 From: Google Cloud SDK Librarian Date: Mon, 20 Apr 2026 07:08:21 +0000 Subject: [PATCH 2/5] regen: Regenerate Google.Cloud.ModelArmor.V1 at API commit 16b4737 feat: add streaming methods StreamSanitizeUserPrompt and StreamSanitizeModelResponse feat: add GOOGLE_MCP_SERVER enforcement point and McpServerFloorSetting feat: add ZIP type and file_label to ByteData feat: add StreamingMode enum and field to sanitize requests docs: update description for ListLocations and various proto comments PiperOrigin-RevId: 901450528 Source-Link: https://github.com/googleapis/googleapis/commit/16b4737e7b870914e0c384b87f0e50ed388aa225 --- generator-input/pipeline-state.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator-input/pipeline-state.json b/generator-input/pipeline-state.json index 8a20d5b6600e..2ce7d729f6d5 100644 --- a/generator-input/pipeline-state.json +++ b/generator-input/pipeline-state.json @@ -4285,7 +4285,7 @@ "generationAutomationLevel": "AUTOMATION_LEVEL_AUTOMATIC", "releaseAutomationLevel": "AUTOMATION_LEVEL_AUTOMATIC", "releaseTimestamp": "2025-11-05T22:17:29.452870924Z", - "lastGeneratedCommit": "36533b09a6b383f3c30d13c3c26092154ecf5388", + "lastGeneratedCommit": "16b4737e7b870914e0c384b87f0e50ed388aa225", "lastReleasedCommit": "36533b09a6b383f3c30d13c3c26092154ecf5388", "apiPaths": [ "google/cloud/modelarmor/v1" From e56604586ea9cd7529363677ed0828273c10ffb2 Mon Sep 17 00:00:00 2001 From: Google Cloud SDK Librarian Date: Mon, 20 Apr 2026 07:09:01 +0000 Subject: [PATCH 3/5] regen: Regenerate Google.Cloud.ModelArmor.V1Beta at API commit 16b4737 feat: add streaming methods StreamSanitizeUserPrompt and StreamSanitizeModelResponse feat: add GOOGLE_MCP_SERVER enforcement point and McpServerFloorSetting feat: add ZIP type and file_label to ByteData feat: add StreamingMode enum and field to sanitize requests docs: update description for ListLocations and various proto comments PiperOrigin-RevId: 901450528 Source-Link: https://github.com/googleapis/googleapis/commit/16b4737e7b870914e0c384b87f0e50ed388aa225 --- ...odelResponseRequestObjectAsyncSnippet.g.cs | 1 + ...tizeModelResponseRequestObjectSnippet.g.cs | 1 + ...zeUserPromptRequestObjectAsyncSnippet.g.cs | 1 + ...anitizeUserPromptRequestObjectSnippet.g.cs | 1 + ...nt.StreamSanitizeModelResponseSnippet.g.cs | 83 + ...lient.StreamSanitizeUserPromptSnippet.g.cs | 82 + ...tadata_google.cloud.modelarmor.v1beta.json | 112 +- .../ModelArmorClientSnippets.g.cs | 106 ++ .../ModelArmorClient.g.cs | 222 +++ .../Service.g.cs | 1380 ++++++++++++----- .../ServiceGrpc.g.cs | 94 +- .../gapic_metadata.json | 12 + generator-input/pipeline-state.json | 2 +- 13 files changed, 1718 insertions(+), 379 deletions(-) create mode 100644 apis/Google.Cloud.ModelArmor.V1Beta/Google.Cloud.ModelArmor.V1Beta.GeneratedSnippets/ModelArmorClient.StreamSanitizeModelResponseSnippet.g.cs create mode 100644 apis/Google.Cloud.ModelArmor.V1Beta/Google.Cloud.ModelArmor.V1Beta.GeneratedSnippets/ModelArmorClient.StreamSanitizeUserPromptSnippet.g.cs diff --git a/apis/Google.Cloud.ModelArmor.V1Beta/Google.Cloud.ModelArmor.V1Beta.GeneratedSnippets/ModelArmorClient.SanitizeModelResponseRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.ModelArmor.V1Beta/Google.Cloud.ModelArmor.V1Beta.GeneratedSnippets/ModelArmorClient.SanitizeModelResponseRequestObjectAsyncSnippet.g.cs index 6db8383976a1..b08920f2ead1 100644 --- a/apis/Google.Cloud.ModelArmor.V1Beta/Google.Cloud.ModelArmor.V1Beta.GeneratedSnippets/ModelArmorClient.SanitizeModelResponseRequestObjectAsyncSnippet.g.cs +++ b/apis/Google.Cloud.ModelArmor.V1Beta/Google.Cloud.ModelArmor.V1Beta.GeneratedSnippets/ModelArmorClient.SanitizeModelResponseRequestObjectAsyncSnippet.g.cs @@ -41,6 +41,7 @@ public async Task SanitizeModelResponseRequestObjectAsync() ModelResponseData = new DataItem(), UserPrompt = "", MultiLanguageDetectionMetadata = new MultiLanguageDetectionMetadata(), + StreamingMode = StreamingMode.Unspecified, }; // Make the request SanitizeModelResponseResponse response = await modelArmorClient.SanitizeModelResponseAsync(request); diff --git a/apis/Google.Cloud.ModelArmor.V1Beta/Google.Cloud.ModelArmor.V1Beta.GeneratedSnippets/ModelArmorClient.SanitizeModelResponseRequestObjectSnippet.g.cs b/apis/Google.Cloud.ModelArmor.V1Beta/Google.Cloud.ModelArmor.V1Beta.GeneratedSnippets/ModelArmorClient.SanitizeModelResponseRequestObjectSnippet.g.cs index d16f0a466ab6..061b4920a9b7 100644 --- a/apis/Google.Cloud.ModelArmor.V1Beta/Google.Cloud.ModelArmor.V1Beta.GeneratedSnippets/ModelArmorClient.SanitizeModelResponseRequestObjectSnippet.g.cs +++ b/apis/Google.Cloud.ModelArmor.V1Beta/Google.Cloud.ModelArmor.V1Beta.GeneratedSnippets/ModelArmorClient.SanitizeModelResponseRequestObjectSnippet.g.cs @@ -40,6 +40,7 @@ public void SanitizeModelResponseRequestObject() ModelResponseData = new DataItem(), UserPrompt = "", MultiLanguageDetectionMetadata = new MultiLanguageDetectionMetadata(), + StreamingMode = StreamingMode.Unspecified, }; // Make the request SanitizeModelResponseResponse response = modelArmorClient.SanitizeModelResponse(request); diff --git a/apis/Google.Cloud.ModelArmor.V1Beta/Google.Cloud.ModelArmor.V1Beta.GeneratedSnippets/ModelArmorClient.SanitizeUserPromptRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.ModelArmor.V1Beta/Google.Cloud.ModelArmor.V1Beta.GeneratedSnippets/ModelArmorClient.SanitizeUserPromptRequestObjectAsyncSnippet.g.cs index 1783a6a8fb4f..f514a3d2b127 100644 --- a/apis/Google.Cloud.ModelArmor.V1Beta/Google.Cloud.ModelArmor.V1Beta.GeneratedSnippets/ModelArmorClient.SanitizeUserPromptRequestObjectAsyncSnippet.g.cs +++ b/apis/Google.Cloud.ModelArmor.V1Beta/Google.Cloud.ModelArmor.V1Beta.GeneratedSnippets/ModelArmorClient.SanitizeUserPromptRequestObjectAsyncSnippet.g.cs @@ -40,6 +40,7 @@ public async Task SanitizeUserPromptRequestObjectAsync() TemplateName = TemplateName.FromProjectLocationTemplate("[PROJECT]", "[LOCATION]", "[TEMPLATE]"), UserPromptData = new DataItem(), MultiLanguageDetectionMetadata = new MultiLanguageDetectionMetadata(), + StreamingMode = StreamingMode.Unspecified, }; // Make the request SanitizeUserPromptResponse response = await modelArmorClient.SanitizeUserPromptAsync(request); diff --git a/apis/Google.Cloud.ModelArmor.V1Beta/Google.Cloud.ModelArmor.V1Beta.GeneratedSnippets/ModelArmorClient.SanitizeUserPromptRequestObjectSnippet.g.cs b/apis/Google.Cloud.ModelArmor.V1Beta/Google.Cloud.ModelArmor.V1Beta.GeneratedSnippets/ModelArmorClient.SanitizeUserPromptRequestObjectSnippet.g.cs index 04ea157f94a0..bf4e69fe4262 100644 --- a/apis/Google.Cloud.ModelArmor.V1Beta/Google.Cloud.ModelArmor.V1Beta.GeneratedSnippets/ModelArmorClient.SanitizeUserPromptRequestObjectSnippet.g.cs +++ b/apis/Google.Cloud.ModelArmor.V1Beta/Google.Cloud.ModelArmor.V1Beta.GeneratedSnippets/ModelArmorClient.SanitizeUserPromptRequestObjectSnippet.g.cs @@ -39,6 +39,7 @@ public void SanitizeUserPromptRequestObject() TemplateName = TemplateName.FromProjectLocationTemplate("[PROJECT]", "[LOCATION]", "[TEMPLATE]"), UserPromptData = new DataItem(), MultiLanguageDetectionMetadata = new MultiLanguageDetectionMetadata(), + StreamingMode = StreamingMode.Unspecified, }; // Make the request SanitizeUserPromptResponse response = modelArmorClient.SanitizeUserPrompt(request); diff --git a/apis/Google.Cloud.ModelArmor.V1Beta/Google.Cloud.ModelArmor.V1Beta.GeneratedSnippets/ModelArmorClient.StreamSanitizeModelResponseSnippet.g.cs b/apis/Google.Cloud.ModelArmor.V1Beta/Google.Cloud.ModelArmor.V1Beta.GeneratedSnippets/ModelArmorClient.StreamSanitizeModelResponseSnippet.g.cs new file mode 100644 index 000000000000..8cdce2c7f51b --- /dev/null +++ b/apis/Google.Cloud.ModelArmor.V1Beta/Google.Cloud.ModelArmor.V1Beta.GeneratedSnippets/ModelArmorClient.StreamSanitizeModelResponseSnippet.g.cs @@ -0,0 +1,83 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START modelarmor_v1beta_generated_ModelArmor_StreamSanitizeModelResponse_sync] + using Google.Api.Gax.Grpc; + using Google.Cloud.ModelArmor.V1Beta; + using System.Threading.Tasks; + + public sealed partial class GeneratedModelArmorClientSnippets + { + /// Snippet for StreamSanitizeModelResponse + /// + /// 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 StreamSanitizeModelResponse() + { + // Create client + ModelArmorClient modelArmorClient = ModelArmorClient.Create(); + // Initialize streaming call, retrieving the stream object + using ModelArmorClient.StreamSanitizeModelResponseStream response = modelArmorClient.StreamSanitizeModelResponse(); + + // Sending requests and retrieving responses can be arbitrarily interleaved + // Exact sequence will depend on client/server behavior + + // Create task to do something with responses from server + Task responseHandlerTask = Task.Run(async () => + { + // Note that C# 8 code can use await foreach + AsyncResponseStream responseStream = response.GetResponseStream(); + while (await responseStream.MoveNextAsync()) + { + SanitizeModelResponseResponse responseItem = responseStream.Current; + // Do something with streamed response + } + // The response stream has completed + }); + + // Send requests to the server + bool done = false; + while (!done) + { + // Initialize a request + SanitizeModelResponseRequest request = new SanitizeModelResponseRequest + { + TemplateName = TemplateName.FromProjectLocationTemplate("[PROJECT]", "[LOCATION]", "[TEMPLATE]"), + ModelResponseData = new DataItem(), + UserPrompt = "", + MultiLanguageDetectionMetadata = new MultiLanguageDetectionMetadata(), + StreamingMode = StreamingMode.Unspecified, + }; + // Stream a request to the server + await response.WriteAsync(request); + // Set "done" to true when sending requests is complete + } + + // Complete writing requests to the stream + await response.WriteCompleteAsync(); + // Await the response handler + // This will complete once all server responses have been processed + await responseHandlerTask; + } + } + // [END modelarmor_v1beta_generated_ModelArmor_StreamSanitizeModelResponse_sync] +} diff --git a/apis/Google.Cloud.ModelArmor.V1Beta/Google.Cloud.ModelArmor.V1Beta.GeneratedSnippets/ModelArmorClient.StreamSanitizeUserPromptSnippet.g.cs b/apis/Google.Cloud.ModelArmor.V1Beta/Google.Cloud.ModelArmor.V1Beta.GeneratedSnippets/ModelArmorClient.StreamSanitizeUserPromptSnippet.g.cs new file mode 100644 index 000000000000..0c60b406e26e --- /dev/null +++ b/apis/Google.Cloud.ModelArmor.V1Beta/Google.Cloud.ModelArmor.V1Beta.GeneratedSnippets/ModelArmorClient.StreamSanitizeUserPromptSnippet.g.cs @@ -0,0 +1,82 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START modelarmor_v1beta_generated_ModelArmor_StreamSanitizeUserPrompt_sync] + using Google.Api.Gax.Grpc; + using Google.Cloud.ModelArmor.V1Beta; + using System.Threading.Tasks; + + public sealed partial class GeneratedModelArmorClientSnippets + { + /// Snippet for StreamSanitizeUserPrompt + /// + /// 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 StreamSanitizeUserPrompt() + { + // Create client + ModelArmorClient modelArmorClient = ModelArmorClient.Create(); + // Initialize streaming call, retrieving the stream object + using ModelArmorClient.StreamSanitizeUserPromptStream response = modelArmorClient.StreamSanitizeUserPrompt(); + + // Sending requests and retrieving responses can be arbitrarily interleaved + // Exact sequence will depend on client/server behavior + + // Create task to do something with responses from server + Task responseHandlerTask = Task.Run(async () => + { + // Note that C# 8 code can use await foreach + AsyncResponseStream responseStream = response.GetResponseStream(); + while (await responseStream.MoveNextAsync()) + { + SanitizeUserPromptResponse responseItem = responseStream.Current; + // Do something with streamed response + } + // The response stream has completed + }); + + // Send requests to the server + bool done = false; + while (!done) + { + // Initialize a request + SanitizeUserPromptRequest request = new SanitizeUserPromptRequest + { + TemplateName = TemplateName.FromProjectLocationTemplate("[PROJECT]", "[LOCATION]", "[TEMPLATE]"), + UserPromptData = new DataItem(), + MultiLanguageDetectionMetadata = new MultiLanguageDetectionMetadata(), + StreamingMode = StreamingMode.Unspecified, + }; + // Stream a request to the server + await response.WriteAsync(request); + // Set "done" to true when sending requests is complete + } + + // Complete writing requests to the stream + await response.WriteCompleteAsync(); + // Await the response handler + // This will complete once all server responses have been processed + await responseHandlerTask; + } + } + // [END modelarmor_v1beta_generated_ModelArmor_StreamSanitizeUserPrompt_sync] +} diff --git a/apis/Google.Cloud.ModelArmor.V1Beta/Google.Cloud.ModelArmor.V1Beta.GeneratedSnippets/snippet_metadata_google.cloud.modelarmor.v1beta.json b/apis/Google.Cloud.ModelArmor.V1Beta/Google.Cloud.ModelArmor.V1Beta.GeneratedSnippets/snippet_metadata_google.cloud.modelarmor.v1beta.json index ee1761a43754..2e53a3c0e666 100644 --- a/apis/Google.Cloud.ModelArmor.V1Beta/Google.Cloud.ModelArmor.V1Beta.GeneratedSnippets/snippet_metadata_google.cloud.modelarmor.v1beta.json +++ b/apis/Google.Cloud.ModelArmor.V1Beta/Google.Cloud.ModelArmor.V1Beta.GeneratedSnippets/snippet_metadata_google.cloud.modelarmor.v1beta.json @@ -1944,12 +1944,12 @@ "segments": [ { "start": 20, - "end": 46, + "end": 47, "type": "FULL" }, { "start": 34, - "end": 44, + "end": 45, "type": "SHORT" } ] @@ -1993,12 +1993,12 @@ "segments": [ { "start": 20, - "end": 47, + "end": 48, "type": "FULL" }, { "start": 35, - "end": 45, + "end": 46, "type": "SHORT" } ] @@ -2041,12 +2041,12 @@ "segments": [ { "start": 20, - "end": 47, + "end": 48, "type": "FULL" }, { "start": 34, - "end": 45, + "end": 46, "type": "SHORT" } ] @@ -2090,12 +2090,108 @@ "segments": [ { "start": 20, - "end": 48, + "end": 49, "type": "FULL" }, { "start": 35, - "end": 46, + "end": 47, + "type": "SHORT" + } + ] + }, + { + "regionTag": "modelarmor_v1beta_generated_ModelArmor_StreamSanitizeUserPrompt_sync", + "title": "StreamSanitizeUserPrompt", + "description": "Snippet for StreamSanitizeUserPrompt", + "file": "ModelArmorClient.StreamSanitizeUserPromptSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "StreamSanitizeUserPrompt", + "fullName": "Google.Cloud.ModelArmor.V1Beta.ModelArmorClient.StreamSanitizeUserPrompt", + "parameters": [ + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + }, + { + "type": "Google.Api.Gax.Grpc.BidirectionalStreamingSettings", + "name": "streamingSettings" + } + ], + "resultType": "Google.Cloud.ModelArmor.V1Beta.ModelArmorClient+StreamSanitizeUserPromptStream", + "client": { + "shortName": "ModelArmorClient", + "fullName": "Google.Cloud.ModelArmor.V1Beta.ModelArmorClient" + }, + "method": { + "shortName": "StreamSanitizeUserPrompt", + "fullName": "google.cloud.modelarmor.v1beta.ModelArmor.StreamSanitizeUserPrompt", + "service": { + "shortName": "ModelArmor", + "fullName": "google.cloud.modelarmor.v1beta.ModelArmor" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 80, + "type": "FULL" + }, + { + "start": 36, + "end": 78, + "type": "SHORT" + } + ] + }, + { + "regionTag": "modelarmor_v1beta_generated_ModelArmor_StreamSanitizeModelResponse_sync", + "title": "StreamSanitizeModelResponse", + "description": "Snippet for StreamSanitizeModelResponse", + "file": "ModelArmorClient.StreamSanitizeModelResponseSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "StreamSanitizeModelResponse", + "fullName": "Google.Cloud.ModelArmor.V1Beta.ModelArmorClient.StreamSanitizeModelResponse", + "parameters": [ + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + }, + { + "type": "Google.Api.Gax.Grpc.BidirectionalStreamingSettings", + "name": "streamingSettings" + } + ], + "resultType": "Google.Cloud.ModelArmor.V1Beta.ModelArmorClient+StreamSanitizeModelResponseStream", + "client": { + "shortName": "ModelArmorClient", + "fullName": "Google.Cloud.ModelArmor.V1Beta.ModelArmorClient" + }, + "method": { + "shortName": "StreamSanitizeModelResponse", + "fullName": "google.cloud.modelarmor.v1beta.ModelArmor.StreamSanitizeModelResponse", + "service": { + "shortName": "ModelArmor", + "fullName": "google.cloud.modelarmor.v1beta.ModelArmor" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 81, + "type": "FULL" + }, + { + "start": 36, + "end": 79, "type": "SHORT" } ] diff --git a/apis/Google.Cloud.ModelArmor.V1Beta/Google.Cloud.ModelArmor.V1Beta.Snippets/ModelArmorClientSnippets.g.cs b/apis/Google.Cloud.ModelArmor.V1Beta/Google.Cloud.ModelArmor.V1Beta.Snippets/ModelArmorClientSnippets.g.cs index a73653c3f00d..83c047341d85 100644 --- a/apis/Google.Cloud.ModelArmor.V1Beta/Google.Cloud.ModelArmor.V1Beta.Snippets/ModelArmorClientSnippets.g.cs +++ b/apis/Google.Cloud.ModelArmor.V1Beta/Google.Cloud.ModelArmor.V1Beta.Snippets/ModelArmorClientSnippets.g.cs @@ -17,6 +17,7 @@ namespace GoogleCSharpSnippets { using Google.Api.Gax; + using Google.Api.Gax.Grpc; using Google.Api.Gax.ResourceNames; using Google.Cloud.ModelArmor.V1Beta; using Google.Protobuf.WellKnownTypes; @@ -812,6 +813,7 @@ public void SanitizeUserPromptRequestObject() TemplateName = TemplateName.FromProjectLocationTemplate("[PROJECT]", "[LOCATION]", "[TEMPLATE]"), UserPromptData = new DataItem(), MultiLanguageDetectionMetadata = new MultiLanguageDetectionMetadata(), + StreamingMode = StreamingMode.Unspecified, }; // Make the request SanitizeUserPromptResponse response = modelArmorClient.SanitizeUserPrompt(request); @@ -831,6 +833,7 @@ public async Task SanitizeUserPromptRequestObjectAsync() TemplateName = TemplateName.FromProjectLocationTemplate("[PROJECT]", "[LOCATION]", "[TEMPLATE]"), UserPromptData = new DataItem(), MultiLanguageDetectionMetadata = new MultiLanguageDetectionMetadata(), + StreamingMode = StreamingMode.Unspecified, }; // Make the request SanitizeUserPromptResponse response = await modelArmorClient.SanitizeUserPromptAsync(request); @@ -850,6 +853,7 @@ public void SanitizeModelResponseRequestObject() ModelResponseData = new DataItem(), UserPrompt = "", MultiLanguageDetectionMetadata = new MultiLanguageDetectionMetadata(), + StreamingMode = StreamingMode.Unspecified, }; // Make the request SanitizeModelResponseResponse response = modelArmorClient.SanitizeModelResponse(request); @@ -870,10 +874,112 @@ public async Task SanitizeModelResponseRequestObjectAsync() ModelResponseData = new DataItem(), UserPrompt = "", MultiLanguageDetectionMetadata = new MultiLanguageDetectionMetadata(), + StreamingMode = StreamingMode.Unspecified, }; // Make the request SanitizeModelResponseResponse response = await modelArmorClient.SanitizeModelResponseAsync(request); // End snippet } + + /// Snippet for StreamSanitizeUserPrompt + public async Task StreamSanitizeUserPrompt() + { + // Snippet: StreamSanitizeUserPrompt(CallSettings, BidirectionalStreamingSettings) + // Create client + ModelArmorClient modelArmorClient = ModelArmorClient.Create(); + // Initialize streaming call, retrieving the stream object + using ModelArmorClient.StreamSanitizeUserPromptStream response = modelArmorClient.StreamSanitizeUserPrompt(); + + // Sending requests and retrieving responses can be arbitrarily interleaved + // Exact sequence will depend on client/server behavior + + // Create task to do something with responses from server + Task responseHandlerTask = Task.Run(async () => + { + // Note that C# 8 code can use await foreach + AsyncResponseStream responseStream = response.GetResponseStream(); + while (await responseStream.MoveNextAsync()) + { + SanitizeUserPromptResponse responseItem = responseStream.Current; + // Do something with streamed response + } + // The response stream has completed + }); + + // Send requests to the server + bool done = false; + while (!done) + { + // Initialize a request + SanitizeUserPromptRequest request = new SanitizeUserPromptRequest + { + TemplateName = TemplateName.FromProjectLocationTemplate("[PROJECT]", "[LOCATION]", "[TEMPLATE]"), + UserPromptData = new DataItem(), + MultiLanguageDetectionMetadata = new MultiLanguageDetectionMetadata(), + StreamingMode = StreamingMode.Unspecified, + }; + // Stream a request to the server + await response.WriteAsync(request); + // Set "done" to true when sending requests is complete + } + + // Complete writing requests to the stream + await response.WriteCompleteAsync(); + // Await the response handler + // This will complete once all server responses have been processed + await responseHandlerTask; + // End snippet + } + + /// Snippet for StreamSanitizeModelResponse + public async Task StreamSanitizeModelResponse() + { + // Snippet: StreamSanitizeModelResponse(CallSettings, BidirectionalStreamingSettings) + // Create client + ModelArmorClient modelArmorClient = ModelArmorClient.Create(); + // Initialize streaming call, retrieving the stream object + using ModelArmorClient.StreamSanitizeModelResponseStream response = modelArmorClient.StreamSanitizeModelResponse(); + + // Sending requests and retrieving responses can be arbitrarily interleaved + // Exact sequence will depend on client/server behavior + + // Create task to do something with responses from server + Task responseHandlerTask = Task.Run(async () => + { + // Note that C# 8 code can use await foreach + AsyncResponseStream responseStream = response.GetResponseStream(); + while (await responseStream.MoveNextAsync()) + { + SanitizeModelResponseResponse responseItem = responseStream.Current; + // Do something with streamed response + } + // The response stream has completed + }); + + // Send requests to the server + bool done = false; + while (!done) + { + // Initialize a request + SanitizeModelResponseRequest request = new SanitizeModelResponseRequest + { + TemplateName = TemplateName.FromProjectLocationTemplate("[PROJECT]", "[LOCATION]", "[TEMPLATE]"), + ModelResponseData = new DataItem(), + UserPrompt = "", + MultiLanguageDetectionMetadata = new MultiLanguageDetectionMetadata(), + StreamingMode = StreamingMode.Unspecified, + }; + // Stream a request to the server + await response.WriteAsync(request); + // Set "done" to true when sending requests is complete + } + + // Complete writing requests to the stream + await response.WriteCompleteAsync(); + // Await the response handler + // This will complete once all server responses have been processed + await responseHandlerTask; + // End snippet + } } } diff --git a/apis/Google.Cloud.ModelArmor.V1Beta/Google.Cloud.ModelArmor.V1Beta/ModelArmorClient.g.cs b/apis/Google.Cloud.ModelArmor.V1Beta/Google.Cloud.ModelArmor.V1Beta/ModelArmorClient.g.cs index 1fc5c0e1d610..5fd16bceb1db 100644 --- a/apis/Google.Cloud.ModelArmor.V1Beta/Google.Cloud.ModelArmor.V1Beta/ModelArmorClient.g.cs +++ b/apis/Google.Cloud.ModelArmor.V1Beta/Google.Cloud.ModelArmor.V1Beta/ModelArmorClient.g.cs @@ -57,6 +57,10 @@ private ModelArmorSettings(ModelArmorSettings existing) : base(existing) UpdateFloorSettingSettings = existing.UpdateFloorSettingSettings; SanitizeUserPromptSettings = existing.SanitizeUserPromptSettings; SanitizeModelResponseSettings = existing.SanitizeModelResponseSettings; + StreamSanitizeUserPromptSettings = existing.StreamSanitizeUserPromptSettings; + StreamSanitizeUserPromptStreamingSettings = existing.StreamSanitizeUserPromptStreamingSettings; + StreamSanitizeModelResponseSettings = existing.StreamSanitizeModelResponseSettings; + StreamSanitizeModelResponseStreamingSettings = existing.StreamSanitizeModelResponseStreamingSettings; LocationsSettings = existing.LocationsSettings; OnCopy(existing); } @@ -201,6 +205,46 @@ private ModelArmorSettings(ModelArmorSettings existing) : base(existing) /// public gaxgrpc::CallSettings SanitizeModelResponseSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(10000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable))); + /// + /// for synchronous and asynchronous calls to + /// ModelArmorClient.StreamSanitizeUserPrompt and ModelArmorClient.StreamSanitizeUserPromptAsync. + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings StreamSanitizeUserPromptSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + + /// + /// for calls to + /// ModelArmorClient.StreamSanitizeUserPrompt and ModelArmorClient.StreamSanitizeUserPromptAsync. + /// + /// The default local send queue size is 100. + public gaxgrpc::BidirectionalStreamingSettings StreamSanitizeUserPromptStreamingSettings { get; set; } = new gaxgrpc::BidirectionalStreamingSettings(100); + + /// + /// for synchronous and asynchronous calls to + /// ModelArmorClient.StreamSanitizeModelResponse and ModelArmorClient.StreamSanitizeModelResponseAsync + /// . + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings StreamSanitizeModelResponseSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + + /// + /// for calls to + /// ModelArmorClient.StreamSanitizeModelResponse and ModelArmorClient.StreamSanitizeModelResponseAsync + /// . + /// + /// The default local send queue size is 100. + public gaxgrpc::BidirectionalStreamingSettings StreamSanitizeModelResponseStreamingSettings { get; set; } = new gaxgrpc::BidirectionalStreamingSettings(100); + /// /// The settings to use for the associated with the client. /// @@ -1212,6 +1256,40 @@ public virtual SanitizeModelResponseResponse SanitizeModelResponse(SanitizeModel /// A Task containing the RPC response. public virtual stt::Task SanitizeModelResponseAsync(SanitizeModelResponseRequest request, st::CancellationToken cancellationToken) => SanitizeModelResponseAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Bidirectional streaming methods for + /// . + /// + public abstract partial class StreamSanitizeUserPromptStream : gaxgrpc::BidirectionalStreamingBase + { + } + + /// + /// Streaming version of Sanitize User Prompt. + /// + /// If not null, applies overrides to this RPC call. + /// If not null, applies streaming overrides to this RPC call. + /// The client-server stream. + public virtual StreamSanitizeUserPromptStream StreamSanitizeUserPrompt(gaxgrpc::CallSettings callSettings = null, gaxgrpc::BidirectionalStreamingSettings streamingSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Bidirectional streaming methods for + /// . + /// + public abstract partial class StreamSanitizeModelResponseStream : gaxgrpc::BidirectionalStreamingBase + { + } + + /// + /// Streaming version of Sanitizes Model Response. + /// + /// If not null, applies overrides to this RPC call. + /// If not null, applies streaming overrides to this RPC call. + /// The client-server stream. + public virtual StreamSanitizeModelResponseStream StreamSanitizeModelResponse(gaxgrpc::CallSettings callSettings = null, gaxgrpc::BidirectionalStreamingSettings streamingSettings = null) => + throw new sys::NotImplementedException(); } /// ModelArmor client wrapper implementation, for convenient use. @@ -1238,6 +1316,10 @@ public sealed partial class ModelArmorClientImpl : ModelArmorClient private readonly gaxgrpc::ApiCall _callSanitizeModelResponse; + private readonly gaxgrpc::ApiBidirectionalStreamingCall _callStreamSanitizeUserPrompt; + + private readonly gaxgrpc::ApiBidirectionalStreamingCall _callStreamSanitizeModelResponse; + /// /// Constructs a client wrapper for the ModelArmor service, with the specified gRPC client and settings. /// @@ -1281,11 +1363,19 @@ public ModelArmorClientImpl(ModelArmor.ModelArmorClient grpcClient, ModelArmorSe _callSanitizeModelResponse = clientHelper.BuildApiCall("SanitizeModelResponse", grpcClient.SanitizeModelResponseAsync, grpcClient.SanitizeModelResponse, effectiveSettings.SanitizeModelResponseSettings).WithGoogleRequestParam("name", request => request.Name); Modify_ApiCall(ref _callSanitizeModelResponse); Modify_SanitizeModelResponseApiCall(ref _callSanitizeModelResponse); + _callStreamSanitizeUserPrompt = clientHelper.BuildApiCall("StreamSanitizeUserPrompt", grpcClient.StreamSanitizeUserPrompt, effectiveSettings.StreamSanitizeUserPromptSettings, effectiveSettings.StreamSanitizeUserPromptStreamingSettings); + Modify_ApiCall(ref _callStreamSanitizeUserPrompt); + Modify_StreamSanitizeUserPromptApiCall(ref _callStreamSanitizeUserPrompt); + _callStreamSanitizeModelResponse = clientHelper.BuildApiCall("StreamSanitizeModelResponse", grpcClient.StreamSanitizeModelResponse, effectiveSettings.StreamSanitizeModelResponseSettings, effectiveSettings.StreamSanitizeModelResponseStreamingSettings); + Modify_ApiCall(ref _callStreamSanitizeModelResponse); + Modify_StreamSanitizeModelResponseApiCall(ref _callStreamSanitizeModelResponse); OnConstruction(grpcClient, effectiveSettings, clientHelper); } partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; + partial void Modify_ApiCall(ref gaxgrpc::ApiBidirectionalStreamingCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; + partial void Modify_ListTemplatesApiCall(ref gaxgrpc::ApiCall call); partial void Modify_GetTemplateApiCall(ref gaxgrpc::ApiCall call); @@ -1304,6 +1394,10 @@ public ModelArmorClientImpl(ModelArmor.ModelArmorClient grpcClient, ModelArmorSe partial void Modify_SanitizeModelResponseApiCall(ref gaxgrpc::ApiCall call); + partial void Modify_StreamSanitizeUserPromptApiCall(ref gaxgrpc::ApiBidirectionalStreamingCall call); + + partial void Modify_StreamSanitizeModelResponseApiCall(ref gaxgrpc::ApiBidirectionalStreamingCall call); + partial void OnConstruction(ModelArmor.ModelArmorClient grpcClient, ModelArmorSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); /// The underlying gRPC ModelArmor client @@ -1330,6 +1424,14 @@ public ModelArmorClientImpl(ModelArmor.ModelArmorClient grpcClient, ModelArmorSe partial void Modify_SanitizeModelResponseRequest(ref SanitizeModelResponseRequest request, ref gaxgrpc::CallSettings settings); + partial void Modify_SanitizeUserPromptRequestCallSettings(ref gaxgrpc::CallSettings settings); + + partial void Modify_SanitizeUserPromptRequestRequest(ref SanitizeUserPromptRequest request); + + partial void Modify_SanitizeModelResponseRequestCallSettings(ref gaxgrpc::CallSettings settings); + + partial void Modify_SanitizeModelResponseRequestRequest(ref SanitizeModelResponseRequest request); + /// /// Lists Templates in a given project and location. /// @@ -1545,6 +1647,126 @@ public override SanitizeModelResponseResponse SanitizeModelResponse(SanitizeMode Modify_SanitizeModelResponseRequest(ref request, ref callSettings); return _callSanitizeModelResponse.Async(request, callSettings); } + + internal sealed partial class StreamSanitizeUserPromptStreamImpl : StreamSanitizeUserPromptStream + { + /// Construct the bidirectional streaming method for StreamSanitizeUserPrompt. + /// The service containing this streaming method. + /// The underlying gRPC duplex streaming call. + /// + /// The instance associated + /// with this streaming call. + /// + public StreamSanitizeUserPromptStreamImpl(ModelArmorClientImpl service, grpccore::AsyncDuplexStreamingCall call, gaxgrpc::BufferedClientStreamWriter writeBuffer) + { + _service = service; + GrpcCall = call; + _writeBuffer = writeBuffer; + } + + private ModelArmorClientImpl _service; + + private gaxgrpc::BufferedClientStreamWriter _writeBuffer; + + public override grpccore::AsyncDuplexStreamingCall GrpcCall { get; } + + private SanitizeUserPromptRequest ModifyRequest(SanitizeUserPromptRequest request) + { + _service.Modify_SanitizeUserPromptRequestRequest(ref request); + return request; + } + + public override stt::Task TryWriteAsync(SanitizeUserPromptRequest message) => + _writeBuffer.TryWriteAsync(ModifyRequest(message)); + + public override stt::Task WriteAsync(SanitizeUserPromptRequest message) => + _writeBuffer.WriteAsync(ModifyRequest(message)); + + public override stt::Task TryWriteAsync(SanitizeUserPromptRequest message, grpccore::WriteOptions options) => + _writeBuffer.TryWriteAsync(ModifyRequest(message), options); + + public override stt::Task WriteAsync(SanitizeUserPromptRequest message, grpccore::WriteOptions options) => + _writeBuffer.WriteAsync(ModifyRequest(message), options); + + public override stt::Task TryWriteCompleteAsync() => _writeBuffer.TryWriteCompleteAsync(); + + public override stt::Task WriteCompleteAsync() => _writeBuffer.WriteCompleteAsync(); + } + + /// + /// Streaming version of Sanitize User Prompt. + /// + /// If not null, applies overrides to this RPC call. + /// If not null, applies streaming overrides to this RPC call. + /// The client-server stream. + public override ModelArmorClient.StreamSanitizeUserPromptStream StreamSanitizeUserPrompt(gaxgrpc::CallSettings callSettings = null, gaxgrpc::BidirectionalStreamingSettings streamingSettings = null) + { + Modify_SanitizeUserPromptRequestCallSettings(ref callSettings); + gaxgrpc::BidirectionalStreamingSettings effectiveStreamingSettings = streamingSettings ?? _callStreamSanitizeUserPrompt.StreamingSettings; + grpccore::AsyncDuplexStreamingCall call = _callStreamSanitizeUserPrompt.Call(callSettings); + gaxgrpc::BufferedClientStreamWriter writeBuffer = new gaxgrpc::BufferedClientStreamWriter(call.RequestStream, effectiveStreamingSettings.BufferedClientWriterCapacity); + return new StreamSanitizeUserPromptStreamImpl(this, call, writeBuffer); + } + + internal sealed partial class StreamSanitizeModelResponseStreamImpl : StreamSanitizeModelResponseStream + { + /// Construct the bidirectional streaming method for StreamSanitizeModelResponse. + /// The service containing this streaming method. + /// The underlying gRPC duplex streaming call. + /// + /// The instance associated + /// with this streaming call. + /// + public StreamSanitizeModelResponseStreamImpl(ModelArmorClientImpl service, grpccore::AsyncDuplexStreamingCall call, gaxgrpc::BufferedClientStreamWriter writeBuffer) + { + _service = service; + GrpcCall = call; + _writeBuffer = writeBuffer; + } + + private ModelArmorClientImpl _service; + + private gaxgrpc::BufferedClientStreamWriter _writeBuffer; + + public override grpccore::AsyncDuplexStreamingCall GrpcCall { get; } + + private SanitizeModelResponseRequest ModifyRequest(SanitizeModelResponseRequest request) + { + _service.Modify_SanitizeModelResponseRequestRequest(ref request); + return request; + } + + public override stt::Task TryWriteAsync(SanitizeModelResponseRequest message) => + _writeBuffer.TryWriteAsync(ModifyRequest(message)); + + public override stt::Task WriteAsync(SanitizeModelResponseRequest message) => + _writeBuffer.WriteAsync(ModifyRequest(message)); + + public override stt::Task TryWriteAsync(SanitizeModelResponseRequest message, grpccore::WriteOptions options) => + _writeBuffer.TryWriteAsync(ModifyRequest(message), options); + + public override stt::Task WriteAsync(SanitizeModelResponseRequest message, grpccore::WriteOptions options) => + _writeBuffer.WriteAsync(ModifyRequest(message), options); + + public override stt::Task TryWriteCompleteAsync() => _writeBuffer.TryWriteCompleteAsync(); + + public override stt::Task WriteCompleteAsync() => _writeBuffer.WriteCompleteAsync(); + } + + /// + /// Streaming version of Sanitizes Model Response. + /// + /// If not null, applies overrides to this RPC call. + /// If not null, applies streaming overrides to this RPC call. + /// The client-server stream. + public override ModelArmorClient.StreamSanitizeModelResponseStream StreamSanitizeModelResponse(gaxgrpc::CallSettings callSettings = null, gaxgrpc::BidirectionalStreamingSettings streamingSettings = null) + { + Modify_SanitizeModelResponseRequestCallSettings(ref callSettings); + gaxgrpc::BidirectionalStreamingSettings effectiveStreamingSettings = streamingSettings ?? _callStreamSanitizeModelResponse.StreamingSettings; + grpccore::AsyncDuplexStreamingCall call = _callStreamSanitizeModelResponse.Call(callSettings); + gaxgrpc::BufferedClientStreamWriter writeBuffer = new gaxgrpc::BufferedClientStreamWriter(call.RequestStream, effectiveStreamingSettings.BufferedClientWriterCapacity); + return new StreamSanitizeModelResponseStreamImpl(this, call, writeBuffer); + } } public partial class ListTemplatesRequest : gaxgrpc::IPageRequest diff --git a/apis/Google.Cloud.ModelArmor.V1Beta/Google.Cloud.ModelArmor.V1Beta/Service.g.cs b/apis/Google.Cloud.ModelArmor.V1Beta/Google.Cloud.ModelArmor.V1Beta/Service.g.cs index c694e081ae3d..39092fe7665f 100644 --- a/apis/Google.Cloud.ModelArmor.V1Beta/Google.Cloud.ModelArmor.V1Beta/Service.g.cs +++ b/apis/Google.Cloud.ModelArmor.V1Beta/Google.Cloud.ModelArmor.V1Beta/Service.g.cs @@ -59,7 +59,7 @@ static ServiceReflection() { "LQoLTGFiZWxzRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4", "ATp66kF3CiJtb2RlbGFybW9yLmdvb2dsZWFwaXMuY29tL1RlbXBsYXRlEjxw", "cm9qZWN0cy97cHJvamVjdH0vbG9jYXRpb25zL3tsb2NhdGlvbn0vdGVtcGxh", - "dGVzL3t0ZW1wbGF0ZX0qCXRlbXBsYXRlczIIdGVtcGxhdGUinwkKDEZsb29y", + "dGVzL3t0ZW1wbGF0ZX0qCXRlbXBsYXRlczIIdGVtcGxhdGUixAoKDEZsb29y", "U2V0dGluZxIRCgRuYW1lGAEgASgJQgPgQQgSNAoLY3JlYXRlX3RpbWUYAiAB", "KAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQgPgQQMSNAoLdXBkYXRl", "X3RpbWUYAyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQgPgQQMS", @@ -72,313 +72,335 @@ static ServiceReflection() { "b3VkLm1vZGVsYXJtb3IudjFiZXRhLkFpUGxhdGZvcm1GbG9vclNldHRpbmdC", "A+BBAUgBiAEBEmYKFmZsb29yX3NldHRpbmdfbWV0YWRhdGEYCCABKAsyQS5n", "b29nbGUuY2xvdWQubW9kZWxhcm1vci52MWJldGEuRmxvb3JTZXR0aW5nLkZs", - "b29yU2V0dGluZ01ldGFkYXRhQgPgQQEa3wEKFEZsb29yU2V0dGluZ01ldGFk", - "YXRhEn8KGG11bHRpX2xhbmd1YWdlX2RldGVjdGlvbhgBIAEoCzJYLmdvb2ds", - "ZS5jbG91ZC5tb2RlbGFybW9yLnYxYmV0YS5GbG9vclNldHRpbmcuRmxvb3JT", - "ZXR0aW5nTWV0YWRhdGEuTXVsdGlMYW5ndWFnZURldGVjdGlvbkID4EEBGkYK", - "Fk11bHRpTGFuZ3VhZ2VEZXRlY3Rpb24SLAofZW5hYmxlX211bHRpX2xhbmd1", - "YWdlX2RldGVjdGlvbhgBIAEoCEID4EECIkgKEUludGVncmF0ZWRTZXJ2aWNl", - "EiIKHklOVEVHUkFURURfU0VSVklDRV9VTlNQRUNJRklFRBAAEg8KC0FJX1BM", - "QVRGT1JNEAE68wHqQe8BCiZtb2RlbGFybW9yLmdvb2dsZWFwaXMuY29tL0Zs", - "b29yU2V0dGluZxI0cHJvamVjdHMve3Byb2plY3R9L2xvY2F0aW9ucy97bG9j", - "YXRpb259L2Zsb29yU2V0dGluZxIyZm9sZGVycy97Zm9sZGVyfS9sb2NhdGlv", - "bnMve2xvY2F0aW9ufS9mbG9vclNldHRpbmcSPm9yZ2FuaXphdGlvbnMve29y", - "Z2FuaXphdGlvbn0vbG9jYXRpb25zL3tsb2NhdGlvbn0vZmxvb3JTZXR0aW5n", - "Kg1mbG9vclNldHRpbmdzMgxmbG9vclNldHRpbmdCIwohX2VuYWJsZV9mbG9v", - "cl9zZXR0aW5nX2VuZm9yY2VtZW50QhwKGl9haV9wbGF0Zm9ybV9mbG9vcl9z", - "ZXR0aW5nIo4BChZBaVBsYXRmb3JtRmxvb3JTZXR0aW5nEhsKDGluc3BlY3Rf", - "b25seRgBIAEoCEID4EEBSAASIAoRaW5zcGVjdF9hbmRfYmxvY2sYAiABKAhC", - "A+BBAUgAEiEKFGVuYWJsZV9jbG91ZF9sb2dnaW5nGAMgASgIQgPgQQFCEgoQ", - "ZW5mb3JjZW1lbnRfdHlwZSKvAQoUTGlzdFRlbXBsYXRlc1JlcXVlc3QSOgoG", + "b29yU2V0dGluZ01ldGFkYXRhQgPgQQESaAofZ29vZ2xlX21jcF9zZXJ2ZXJf", + "Zmxvb3Jfc2V0dGluZxgJIAEoCzI1Lmdvb2dsZS5jbG91ZC5tb2RlbGFybW9y", + "LnYxYmV0YS5NY3BTZXJ2ZXJGbG9vclNldHRpbmdCA+BBAUgCiAEBGt8BChRG", + "bG9vclNldHRpbmdNZXRhZGF0YRJ/ChhtdWx0aV9sYW5ndWFnZV9kZXRlY3Rp", + "b24YASABKAsyWC5nb29nbGUuY2xvdWQubW9kZWxhcm1vci52MWJldGEuRmxv", + "b3JTZXR0aW5nLkZsb29yU2V0dGluZ01ldGFkYXRhLk11bHRpTGFuZ3VhZ2VE", + "ZXRlY3Rpb25CA+BBARpGChZNdWx0aUxhbmd1YWdlRGV0ZWN0aW9uEiwKH2Vu", + "YWJsZV9tdWx0aV9sYW5ndWFnZV9kZXRlY3Rpb24YASABKAhCA+BBAiJfChFJ", + "bnRlZ3JhdGVkU2VydmljZRIiCh5JTlRFR1JBVEVEX1NFUlZJQ0VfVU5TUEVD", + "SUZJRUQQABIPCgtBSV9QTEFURk9STRABEhUKEUdPT0dMRV9NQ1BfU0VSVkVS", + "EAI68wHqQe8BCiZtb2RlbGFybW9yLmdvb2dsZWFwaXMuY29tL0Zsb29yU2V0", + "dGluZxI0cHJvamVjdHMve3Byb2plY3R9L2xvY2F0aW9ucy97bG9jYXRpb259", + "L2Zsb29yU2V0dGluZxIyZm9sZGVycy97Zm9sZGVyfS9sb2NhdGlvbnMve2xv", + "Y2F0aW9ufS9mbG9vclNldHRpbmcSPm9yZ2FuaXphdGlvbnMve29yZ2FuaXph", + "dGlvbn0vbG9jYXRpb25zL3tsb2NhdGlvbn0vZmxvb3JTZXR0aW5nKg1mbG9v", + "clNldHRpbmdzMgxmbG9vclNldHRpbmdCIwohX2VuYWJsZV9mbG9vcl9zZXR0", + "aW5nX2VuZm9yY2VtZW50QhwKGl9haV9wbGF0Zm9ybV9mbG9vcl9zZXR0aW5n", + "QiIKIF9nb29nbGVfbWNwX3NlcnZlcl9mbG9vcl9zZXR0aW5nIqABChVNY3BT", + "ZXJ2ZXJGbG9vclNldHRpbmcSGwoMaW5zcGVjdF9vbmx5GAEgASgIQgPgQQFI", + "ABIgChFpbnNwZWN0X2FuZF9ibG9jaxgCIAEoCEID4EEBSAASIQoUZW5hYmxl", + "X2Nsb3VkX2xvZ2dpbmcYAyABKAhCA+BBARIRCgRhcGlzGAQgAygJQgPgQQFC", + "EgoQZW5mb3JjZW1lbnRfdHlwZSKOAQoWQWlQbGF0Zm9ybUZsb29yU2V0dGlu", + "ZxIbCgxpbnNwZWN0X29ubHkYASABKAhCA+BBAUgAEiAKEWluc3BlY3RfYW5k", + "X2Jsb2NrGAIgASgIQgPgQQFIABIhChRlbmFibGVfY2xvdWRfbG9nZ2luZxgD", + "IAEoCEID4EEBQhIKEGVuZm9yY2VtZW50X3R5cGUirwEKFExpc3RUZW1wbGF0", + "ZXNSZXF1ZXN0EjoKBnBhcmVudBgBIAEoCUIq4EEC+kEkEiJtb2RlbGFybW9y", + "Lmdvb2dsZWFwaXMuY29tL1RlbXBsYXRlEhYKCXBhZ2Vfc2l6ZRgCIAEoBUID", + "4EEBEhcKCnBhZ2VfdG9rZW4YAyABKAlCA+BBARITCgZmaWx0ZXIYBCABKAlC", + "A+BBARIVCghvcmRlcl9ieRgFIAEoCUID4EEBIoIBChVMaXN0VGVtcGxhdGVz", + "UmVzcG9uc2USOwoJdGVtcGxhdGVzGAEgAygLMiguZ29vZ2xlLmNsb3VkLm1v", + "ZGVsYXJtb3IudjFiZXRhLlRlbXBsYXRlEhcKD25leHRfcGFnZV90b2tlbhgC", + "IAEoCRITCgt1bnJlYWNoYWJsZRgDIAMoCSJOChJHZXRUZW1wbGF0ZVJlcXVl", + "c3QSOAoEbmFtZRgBIAEoCUIq4EEC+kEkCiJtb2RlbGFybW9yLmdvb2dsZWFw", + "aXMuY29tL1RlbXBsYXRlIs8BChVDcmVhdGVUZW1wbGF0ZVJlcXVlc3QSOgoG", "cGFyZW50GAEgASgJQirgQQL6QSQSIm1vZGVsYXJtb3IuZ29vZ2xlYXBpcy5j", - "b20vVGVtcGxhdGUSFgoJcGFnZV9zaXplGAIgASgFQgPgQQESFwoKcGFnZV90", - "b2tlbhgDIAEoCUID4EEBEhMKBmZpbHRlchgEIAEoCUID4EEBEhUKCG9yZGVy", - "X2J5GAUgASgJQgPgQQEiggEKFUxpc3RUZW1wbGF0ZXNSZXNwb25zZRI7Cgl0", - "ZW1wbGF0ZXMYASADKAsyKC5nb29nbGUuY2xvdWQubW9kZWxhcm1vci52MWJl", - "dGEuVGVtcGxhdGUSFwoPbmV4dF9wYWdlX3Rva2VuGAIgASgJEhMKC3VucmVh", - "Y2hhYmxlGAMgAygJIk4KEkdldFRlbXBsYXRlUmVxdWVzdBI4CgRuYW1lGAEg", - "ASgJQirgQQL6QSQKIm1vZGVsYXJtb3IuZ29vZ2xlYXBpcy5jb20vVGVtcGxh", - "dGUizwEKFUNyZWF0ZVRlbXBsYXRlUmVxdWVzdBI6CgZwYXJlbnQYASABKAlC", - "KuBBAvpBJBIibW9kZWxhcm1vci5nb29nbGVhcGlzLmNvbS9UZW1wbGF0ZRIY", - "Cgt0ZW1wbGF0ZV9pZBgCIAEoCUID4EECEj8KCHRlbXBsYXRlGAMgASgLMigu", - "Z29vZ2xlLmNsb3VkLm1vZGVsYXJtb3IudjFiZXRhLlRlbXBsYXRlQgPgQQIS", - "HwoKcmVxdWVzdF9pZBgEIAEoCUIL4EEB4ozP1wgCCAEirwEKFVVwZGF0ZVRl", - "bXBsYXRlUmVxdWVzdBI0Cgt1cGRhdGVfbWFzaxgBIAEoCzIaLmdvb2dsZS5w", - "cm90b2J1Zi5GaWVsZE1hc2tCA+BBAhI/Cgh0ZW1wbGF0ZRgCIAEoCzIoLmdv", - "b2dsZS5jbG91ZC5tb2RlbGFybW9yLnYxYmV0YS5UZW1wbGF0ZUID4EECEh8K", - "CnJlcXVlc3RfaWQYAyABKAlCC+BBAeKMz9cIAggBInIKFURlbGV0ZVRlbXBs", - "YXRlUmVxdWVzdBI4CgRuYW1lGAEgASgJQirgQQL6QSQKIm1vZGVsYXJtb3Iu", - "Z29vZ2xlYXBpcy5jb20vVGVtcGxhdGUSHwoKcmVxdWVzdF9pZBgCIAEoCUIL", - "4EEB4ozP1wgCCAEiVgoWR2V0Rmxvb3JTZXR0aW5nUmVxdWVzdBI8CgRuYW1l", - "GAEgASgJQi7gQQL6QSgKJm1vZGVsYXJtb3IuZ29vZ2xlYXBpcy5jb20vRmxv", - "b3JTZXR0aW5nIpsBChlVcGRhdGVGbG9vclNldHRpbmdSZXF1ZXN0EkgKDWZs", - "b29yX3NldHRpbmcYASABKAsyLC5nb29nbGUuY2xvdWQubW9kZWxhcm1vci52", - "MWJldGEuRmxvb3JTZXR0aW5nQgPgQQISNAoLdXBkYXRlX21hc2sYAiABKAsy", - "Gi5nb29nbGUucHJvdG9idWYuRmllbGRNYXNrQgPgQQEi/wIKDEZpbHRlckNv", - "bmZpZxJMCgxyYWlfc2V0dGluZ3MYASABKAsyMS5nb29nbGUuY2xvdWQubW9k", - "ZWxhcm1vci52MWJldGEuUmFpRmlsdGVyU2V0dGluZ3NCA+BBARJMCgxzZHBf", - "c2V0dGluZ3MYAiABKAsyMS5nb29nbGUuY2xvdWQubW9kZWxhcm1vci52MWJl", - "dGEuU2RwRmlsdGVyU2V0dGluZ3NCA+BBARJrCiBwaV9hbmRfamFpbGJyZWFr", - "X2ZpbHRlcl9zZXR0aW5ncxgDIAEoCzI8Lmdvb2dsZS5jbG91ZC5tb2RlbGFy", - "bW9yLnYxYmV0YS5QaUFuZEphaWxicmVha0ZpbHRlclNldHRpbmdzQgPgQQES", - "ZgodbWFsaWNpb3VzX3VyaV9maWx0ZXJfc2V0dGluZ3MYBCABKAsyOi5nb29n", - "bGUuY2xvdWQubW9kZWxhcm1vci52MWJldGEuTWFsaWNpb3VzVXJpRmlsdGVy", - "U2V0dGluZ3NCA+BBASLpAgocUGlBbmRKYWlsYnJlYWtGaWx0ZXJTZXR0aW5n", - "cxJ9ChJmaWx0ZXJfZW5mb3JjZW1lbnQYASABKA4yXC5nb29nbGUuY2xvdWQu", - "bW9kZWxhcm1vci52MWJldGEuUGlBbmRKYWlsYnJlYWtGaWx0ZXJTZXR0aW5n", - "cy5QaUFuZEphaWxicmVha0ZpbHRlckVuZm9yY2VtZW50QgPgQQESVwoQY29u", - "ZmlkZW5jZV9sZXZlbBgDIAEoDjI4Lmdvb2dsZS5jbG91ZC5tb2RlbGFybW9y", - "LnYxYmV0YS5EZXRlY3Rpb25Db25maWRlbmNlTGV2ZWxCA+BBASJxCh9QaUFu", - "ZEphaWxicmVha0ZpbHRlckVuZm9yY2VtZW50EjMKL1BJX0FORF9KQUlMQlJF", - "QUtfRklMVEVSX0VORk9SQ0VNRU5UX1VOU1BFQ0lGSUVEEAASCwoHRU5BQkxF", - "RBABEgwKCERJU0FCTEVEEAIihQIKGk1hbGljaW91c1VyaUZpbHRlclNldHRp", - "bmdzEnkKEmZpbHRlcl9lbmZvcmNlbWVudBgBIAEoDjJYLmdvb2dsZS5jbG91", - "ZC5tb2RlbGFybW9yLnYxYmV0YS5NYWxpY2lvdXNVcmlGaWx0ZXJTZXR0aW5n", - "cy5NYWxpY2lvdXNVcmlGaWx0ZXJFbmZvcmNlbWVudEID4EEBImwKHU1hbGlj", - "aW91c1VyaUZpbHRlckVuZm9yY2VtZW50EjAKLE1BTElDSU9VU19VUklfRklM", - "VEVSX0VORk9SQ0VNRU5UX1VOU1BFQ0lGSUVEEAASCwoHRU5BQkxFRBABEgwK", - "CERJU0FCTEVEEAIimgIKEVJhaUZpbHRlclNldHRpbmdzElUKC3JhaV9maWx0", - "ZXJzGAEgAygLMjsuZ29vZ2xlLmNsb3VkLm1vZGVsYXJtb3IudjFiZXRhLlJh", - "aUZpbHRlclNldHRpbmdzLlJhaUZpbHRlckID4EECGq0BCglSYWlGaWx0ZXIS", - "RwoLZmlsdGVyX3R5cGUYASABKA4yLS5nb29nbGUuY2xvdWQubW9kZWxhcm1v", - "ci52MWJldGEuUmFpRmlsdGVyVHlwZUID4EECElcKEGNvbmZpZGVuY2VfbGV2", - "ZWwYAiABKA4yOC5nb29nbGUuY2xvdWQubW9kZWxhcm1vci52MWJldGEuRGV0", - "ZWN0aW9uQ29uZmlkZW5jZUxldmVsQgPgQQEiyAEKEVNkcEZpbHRlclNldHRp", - "bmdzEksKDGJhc2ljX2NvbmZpZxgBIAEoCzIuLmdvb2dsZS5jbG91ZC5tb2Rl", - "bGFybW9yLnYxYmV0YS5TZHBCYXNpY0NvbmZpZ0ID4EEBSAASUQoPYWR2YW5j", - "ZWRfY29uZmlnGAIgASgLMjEuZ29vZ2xlLmNsb3VkLm1vZGVsYXJtb3IudjFi", - "ZXRhLlNkcEFkdmFuY2VkQ29uZmlnQgPgQQFIAEITChFzZHBfY29uZmlndXJh", - "dGlvbiLhAQoOU2RwQmFzaWNDb25maWcSaQoSZmlsdGVyX2VuZm9yY2VtZW50", - "GAMgASgOMkguZ29vZ2xlLmNsb3VkLm1vZGVsYXJtb3IudjFiZXRhLlNkcEJh", - "c2ljQ29uZmlnLlNkcEJhc2ljQ29uZmlnRW5mb3JjZW1lbnRCA+BBASJkChlT", - "ZHBCYXNpY0NvbmZpZ0VuZm9yY2VtZW50EiwKKFNEUF9CQVNJQ19DT05GSUdf", - "RU5GT1JDRU1FTlRfVU5TUEVDSUZJRUQQABILCgdFTkFCTEVEEAESDAoIRElT", - "QUJMRUQQAiJUChFTZHBBZHZhbmNlZENvbmZpZxIdChBpbnNwZWN0X3RlbXBs", - "YXRlGAEgASgJQgPgQQESIAoTZGVpZGVudGlmeV90ZW1wbGF0ZRgCIAEoCUID", - "4EEBIo4CChlTYW5pdGl6ZVVzZXJQcm9tcHRSZXF1ZXN0EjgKBG5hbWUYASAB", - "KAlCKuBBAvpBJAoibW9kZWxhcm1vci5nb29nbGVhcGlzLmNvbS9UZW1wbGF0", - "ZRJHChB1c2VyX3Byb21wdF9kYXRhGAIgASgLMiguZ29vZ2xlLmNsb3VkLm1v", - "ZGVsYXJtb3IudjFiZXRhLkRhdGFJdGVtQgPgQQISbgohbXVsdGlfbGFuZ3Vh", - "Z2VfZGV0ZWN0aW9uX21ldGFkYXRhGAYgASgLMj4uZ29vZ2xlLmNsb3VkLm1v", - "ZGVsYXJtb3IudjFiZXRhLk11bHRpTGFuZ3VhZ2VEZXRlY3Rpb25NZXRhZGF0", - "YUID4EEBIq4CChxTYW5pdGl6ZU1vZGVsUmVzcG9uc2VSZXF1ZXN0EjgKBG5h", - "bWUYASABKAlCKuBBAvpBJAoibW9kZWxhcm1vci5nb29nbGVhcGlzLmNvbS9U", - "ZW1wbGF0ZRJKChNtb2RlbF9yZXNwb25zZV9kYXRhGAIgASgLMiguZ29vZ2xl", - "LmNsb3VkLm1vZGVsYXJtb3IudjFiZXRhLkRhdGFJdGVtQgPgQQISGAoLdXNl", - "cl9wcm9tcHQYBCABKAlCA+BBARJuCiFtdWx0aV9sYW5ndWFnZV9kZXRlY3Rp", - "b25fbWV0YWRhdGEYByABKAsyPi5nb29nbGUuY2xvdWQubW9kZWxhcm1vci52", - "MWJldGEuTXVsdGlMYW5ndWFnZURldGVjdGlvbk1ldGFkYXRhQgPgQQEicgoa", - "U2FuaXRpemVVc2VyUHJvbXB0UmVzcG9uc2USVAoTc2FuaXRpemF0aW9uX3Jl", - "c3VsdBgBIAEoCzIyLmdvb2dsZS5jbG91ZC5tb2RlbGFybW9yLnYxYmV0YS5T", - "YW5pdGl6YXRpb25SZXN1bHRCA+BBAyJ1Ch1TYW5pdGl6ZU1vZGVsUmVzcG9u", - "c2VSZXNwb25zZRJUChNzYW5pdGl6YXRpb25fcmVzdWx0GAEgASgLMjIuZ29v", - "Z2xlLmNsb3VkLm1vZGVsYXJtb3IudjFiZXRhLlNhbml0aXphdGlvblJlc3Vs", - "dEID4EEDIt0EChJTYW5pdGl6YXRpb25SZXN1bHQSUQoSZmlsdGVyX21hdGNo", - "X3N0YXRlGAEgASgOMjAuZ29vZ2xlLmNsb3VkLm1vZGVsYXJtb3IudjFiZXRh", - "LkZpbHRlck1hdGNoU3RhdGVCA+BBAxJiCg5maWx0ZXJfcmVzdWx0cxgCIAMo", - "CzJFLmdvb2dsZS5jbG91ZC5tb2RlbGFybW9yLnYxYmV0YS5TYW5pdGl6YXRp", - "b25SZXN1bHQuRmlsdGVyUmVzdWx0c0VudHJ5QgPgQQMSUAoRaW52b2NhdGlv", - "bl9yZXN1bHQYBCABKA4yMC5nb29nbGUuY2xvdWQubW9kZWxhcm1vci52MWJl", - "dGEuSW52b2NhdGlvblJlc3VsdEID4EEDEmsKFXNhbml0aXphdGlvbl9tZXRh", - "ZGF0YRgDIAEoCzJHLmdvb2dsZS5jbG91ZC5tb2RlbGFybW9yLnYxYmV0YS5T", - "YW5pdGl6YXRpb25SZXN1bHQuU2FuaXRpemF0aW9uTWV0YWRhdGFCA+BBAxpt", - "ChRTYW5pdGl6YXRpb25NZXRhZGF0YRISCgplcnJvcl9jb2RlGAEgASgDEhUK", - "DWVycm9yX21lc3NhZ2UYAiABKAkSKgoiaWdub3JlX3BhcnRpYWxfaW52b2Nh", - "dGlvbl9mYWlsdXJlcxgDIAEoCBpiChJGaWx0ZXJSZXN1bHRzRW50cnkSCwoD", - "a2V5GAEgASgJEjsKBXZhbHVlGAIgASgLMiwuZ29vZ2xlLmNsb3VkLm1vZGVs", - "YXJtb3IudjFiZXRhLkZpbHRlclJlc3VsdDoCOAEibAoeTXVsdGlMYW5ndWFn", - "ZURldGVjdGlvbk1ldGFkYXRhEhwKD3NvdXJjZV9sYW5ndWFnZRgBIAEoCUID", - "4EEBEiwKH2VuYWJsZV9tdWx0aV9sYW5ndWFnZV9kZXRlY3Rpb24YAiABKAhC", - "A+BBASK0BAoMRmlsdGVyUmVzdWx0EkwKEXJhaV9maWx0ZXJfcmVzdWx0GAEg", - "ASgLMi8uZ29vZ2xlLmNsb3VkLm1vZGVsYXJtb3IudjFiZXRhLlJhaUZpbHRl", - "clJlc3VsdEgAEkwKEXNkcF9maWx0ZXJfcmVzdWx0GAIgASgLMi8uZ29vZ2xl", - "LmNsb3VkLm1vZGVsYXJtb3IudjFiZXRhLlNkcEZpbHRlclJlc3VsdEgAEmQK", - "HnBpX2FuZF9qYWlsYnJlYWtfZmlsdGVyX3Jlc3VsdBgDIAEoCzI6Lmdvb2ds", - "ZS5jbG91ZC5tb2RlbGFybW9yLnYxYmV0YS5QaUFuZEphaWxicmVha0ZpbHRl", - "clJlc3VsdEgAEl8KG21hbGljaW91c191cmlfZmlsdGVyX3Jlc3VsdBgEIAEo", - "CzI4Lmdvb2dsZS5jbG91ZC5tb2RlbGFybW9yLnYxYmV0YS5NYWxpY2lvdXNV", - "cmlGaWx0ZXJSZXN1bHRIABJVChljc2FtX2ZpbHRlcl9maWx0ZXJfcmVzdWx0", - "GAUgASgLMjAuZ29vZ2xlLmNsb3VkLm1vZGVsYXJtb3IudjFiZXRhLkNzYW1G", - "aWx0ZXJSZXN1bHRIABJZChh2aXJ1c19zY2FuX2ZpbHRlcl9yZXN1bHQYBiAB", - "KAsyNS5nb29nbGUuY2xvdWQubW9kZWxhcm1vci52MWJldGEuVmlydXNTY2Fu", - "RmlsdGVyUmVzdWx0SABCDwoNZmlsdGVyX3Jlc3VsdCLgBQoPUmFpRmlsdGVy", - "UmVzdWx0ElIKD2V4ZWN1dGlvbl9zdGF0ZRgBIAEoDjI0Lmdvb2dsZS5jbG91", - "ZC5tb2RlbGFybW9yLnYxYmV0YS5GaWx0ZXJFeGVjdXRpb25TdGF0ZUID4EED", - "EkIKDW1lc3NhZ2VfaXRlbXMYAiADKAsyKy5nb29nbGUuY2xvdWQubW9kZWxh", - "cm1vci52MWJldGEuTWVzc2FnZUl0ZW0SSgoLbWF0Y2hfc3RhdGUYAyABKA4y", - "MC5nb29nbGUuY2xvdWQubW9kZWxhcm1vci52MWJldGEuRmlsdGVyTWF0Y2hT", - "dGF0ZUID4EEDEmoKF3JhaV9maWx0ZXJfdHlwZV9yZXN1bHRzGAQgAygLMkku", - "Z29vZ2xlLmNsb3VkLm1vZGVsYXJtb3IudjFiZXRhLlJhaUZpbHRlclJlc3Vs", - "dC5SYWlGaWx0ZXJUeXBlUmVzdWx0c0VudHJ5GvkBChNSYWlGaWx0ZXJUeXBl", - "UmVzdWx0EkIKC2ZpbHRlcl90eXBlGAEgASgOMi0uZ29vZ2xlLmNsb3VkLm1v", - "ZGVsYXJtb3IudjFiZXRhLlJhaUZpbHRlclR5cGUSUgoQY29uZmlkZW5jZV9s", - "ZXZlbBgCIAEoDjI4Lmdvb2dsZS5jbG91ZC5tb2RlbGFybW9yLnYxYmV0YS5E", - "ZXRlY3Rpb25Db25maWRlbmNlTGV2ZWwSSgoLbWF0Y2hfc3RhdGUYAyABKA4y", - "MC5nb29nbGUuY2xvdWQubW9kZWxhcm1vci52MWJldGEuRmlsdGVyTWF0Y2hT", - "dGF0ZUID4EEDGoABChlSYWlGaWx0ZXJUeXBlUmVzdWx0c0VudHJ5EgsKA2tl", - "eRgBIAEoCRJSCgV2YWx1ZRgCIAEoCzJDLmdvb2dsZS5jbG91ZC5tb2RlbGFy", - "bW9yLnYxYmV0YS5SYWlGaWx0ZXJSZXN1bHQuUmFpRmlsdGVyVHlwZVJlc3Vs", - "dDoCOAEiuQEKD1NkcEZpbHRlclJlc3VsdBJKCg5pbnNwZWN0X3Jlc3VsdBgB", - "IAEoCzIwLmdvb2dsZS5jbG91ZC5tb2RlbGFybW9yLnYxYmV0YS5TZHBJbnNw", - "ZWN0UmVzdWx0SAASUAoRZGVpZGVudGlmeV9yZXN1bHQYAiABKAsyMy5nb29n", - "bGUuY2xvdWQubW9kZWxhcm1vci52MWJldGEuU2RwRGVpZGVudGlmeVJlc3Vs", - "dEgAQggKBnJlc3VsdCLQAgoQU2RwSW5zcGVjdFJlc3VsdBJSCg9leGVjdXRp", - "b25fc3RhdGUYASABKA4yNC5nb29nbGUuY2xvdWQubW9kZWxhcm1vci52MWJl", - "dGEuRmlsdGVyRXhlY3V0aW9uU3RhdGVCA+BBAxJCCg1tZXNzYWdlX2l0ZW1z", - "GAIgAygLMisuZ29vZ2xlLmNsb3VkLm1vZGVsYXJtb3IudjFiZXRhLk1lc3Nh", - "Z2VJdGVtEkoKC21hdGNoX3N0YXRlGAMgASgOMjAuZ29vZ2xlLmNsb3VkLm1v", - "ZGVsYXJtb3IudjFiZXRhLkZpbHRlck1hdGNoU3RhdGVCA+BBAxI8CghmaW5k", - "aW5ncxgEIAMoCzIqLmdvb2dsZS5jbG91ZC5tb2RlbGFybW9yLnYxYmV0YS5T", - "ZHBGaW5kaW5nEhoKEmZpbmRpbmdzX3RydW5jYXRlZBgFIAEoCCJqCghEYXRh", - "SXRlbRIOCgR0ZXh0GAEgASgJSAASQQoJYnl0ZV9pdGVtGAIgASgLMiwuZ29v", - "Z2xlLmNsb3VkLm1vZGVsYXJtb3IudjFiZXRhLkJ5dGVEYXRhSXRlbUgAQgsK", - "CWRhdGFfaXRlbSKeAgoMQnl0ZURhdGFJdGVtElYKDmJ5dGVfZGF0YV90eXBl", - "GAEgASgOMjkuZ29vZ2xlLmNsb3VkLm1vZGVsYXJtb3IudjFiZXRhLkJ5dGVE", - "YXRhSXRlbS5CeXRlSXRlbVR5cGVCA+BBAhIWCglieXRlX2RhdGEYAiABKAxC", - "A+BBAiKdAQoMQnl0ZUl0ZW1UeXBlEh4KGkJZVEVfSVRFTV9UWVBFX1VOU1BF", - "Q0lGSUVEEAASEgoOUExBSU5URVhUX1VURjgQARIHCgNQREYQAhIRCg1XT1JE", - "X0RPQ1VNRU5UEAMSEgoORVhDRUxfRE9DVU1FTlQQBBIXChNQT1dFUlBPSU5U", - "X0RPQ1VNRU5UEAUSBwoDVFhUEAYSBwoDQ1NWEAci4AIKE1NkcERlaWRlbnRp", - "ZnlSZXN1bHQSUgoPZXhlY3V0aW9uX3N0YXRlGAEgASgOMjQuZ29vZ2xlLmNs", - "b3VkLm1vZGVsYXJtb3IudjFiZXRhLkZpbHRlckV4ZWN1dGlvblN0YXRlQgPg", - "QQMSQgoNbWVzc2FnZV9pdGVtcxgCIAMoCzIrLmdvb2dsZS5jbG91ZC5tb2Rl", - "bGFybW9yLnYxYmV0YS5NZXNzYWdlSXRlbRJKCgttYXRjaF9zdGF0ZRgDIAEo", - "DjIwLmdvb2dsZS5jbG91ZC5tb2RlbGFybW9yLnYxYmV0YS5GaWx0ZXJNYXRj", - "aFN0YXRlQgPgQQMSNgoEZGF0YRgEIAEoCzIoLmdvb2dsZS5jbG91ZC5tb2Rl", - "bGFybW9yLnYxYmV0YS5EYXRhSXRlbRIZChF0cmFuc2Zvcm1lZF9ieXRlcxgF", - "IAEoAxISCgppbmZvX3R5cGVzGAYgAygJItQCCgpTZHBGaW5kaW5nEhEKCWlu", - "Zm9fdHlwZRgBIAEoCRJICgpsaWtlbGlob29kGAIgASgOMjQuZ29vZ2xlLmNs", - "b3VkLm1vZGVsYXJtb3IudjFiZXRhLlNkcEZpbmRpbmdMaWtlbGlob29kEk8K", - "CGxvY2F0aW9uGAMgASgLMj0uZ29vZ2xlLmNsb3VkLm1vZGVsYXJtb3IudjFi", - "ZXRhLlNkcEZpbmRpbmcuU2RwRmluZGluZ0xvY2F0aW9uGpcBChJTZHBGaW5k", - "aW5nTG9jYXRpb24SPQoKYnl0ZV9yYW5nZRgBIAEoCzIpLmdvb2dsZS5jbG91", - "ZC5tb2RlbGFybW9yLnYxYmV0YS5SYW5nZUluZm8SQgoPY29kZXBvaW50X3Jh", - "bmdlGAIgASgLMikuZ29vZ2xlLmNsb3VkLm1vZGVsYXJtb3IudjFiZXRhLlJh", - "bmdlSW5mbyLUAgoaUGlBbmRKYWlsYnJlYWtGaWx0ZXJSZXN1bHQSUgoPZXhl", - "Y3V0aW9uX3N0YXRlGAEgASgOMjQuZ29vZ2xlLmNsb3VkLm1vZGVsYXJtb3Iu", - "djFiZXRhLkZpbHRlckV4ZWN1dGlvblN0YXRlQgPgQQMSQgoNbWVzc2FnZV9p", - "dGVtcxgCIAMoCzIrLmdvb2dsZS5jbG91ZC5tb2RlbGFybW9yLnYxYmV0YS5N", - "ZXNzYWdlSXRlbRJKCgttYXRjaF9zdGF0ZRgDIAEoDjIwLmdvb2dsZS5jbG91", - "ZC5tb2RlbGFybW9yLnYxYmV0YS5GaWx0ZXJNYXRjaFN0YXRlQgPgQQMSUgoQ", - "Y29uZmlkZW5jZV9sZXZlbBgFIAEoDjI4Lmdvb2dsZS5jbG91ZC5tb2RlbGFy", - "bW9yLnYxYmV0YS5EZXRlY3Rpb25Db25maWRlbmNlTGV2ZWwi2wMKGE1hbGlj", - "aW91c1VyaUZpbHRlclJlc3VsdBJSCg9leGVjdXRpb25fc3RhdGUYASABKA4y", - "NC5nb29nbGUuY2xvdWQubW9kZWxhcm1vci52MWJldGEuRmlsdGVyRXhlY3V0", - "aW9uU3RhdGVCA+BBAxJCCg1tZXNzYWdlX2l0ZW1zGAIgAygLMisuZ29vZ2xl", - "LmNsb3VkLm1vZGVsYXJtb3IudjFiZXRhLk1lc3NhZ2VJdGVtEkoKC21hdGNo", - "X3N0YXRlGAMgASgOMjAuZ29vZ2xlLmNsb3VkLm1vZGVsYXJtb3IudjFiZXRh", - "LkZpbHRlck1hdGNoU3RhdGVCA+BBAxJ1ChttYWxpY2lvdXNfdXJpX21hdGNo", - "ZWRfaXRlbXMYBCADKAsyUC5nb29nbGUuY2xvdWQubW9kZWxhcm1vci52MWJl", - "dGEuTWFsaWNpb3VzVXJpRmlsdGVyUmVzdWx0Lk1hbGljaW91c1VyaU1hdGNo", - "ZWRJdGVtGmQKF01hbGljaW91c1VyaU1hdGNoZWRJdGVtEgsKA3VyaRgBIAEo", - "CRI8Cglsb2NhdGlvbnMYAiADKAsyKS5nb29nbGUuY2xvdWQubW9kZWxhcm1v", - "ci52MWJldGEuUmFuZ2VJbmZvIrQEChVWaXJ1c1NjYW5GaWx0ZXJSZXN1bHQS", - "UgoPZXhlY3V0aW9uX3N0YXRlGAEgASgOMjQuZ29vZ2xlLmNsb3VkLm1vZGVs", - "YXJtb3IudjFiZXRhLkZpbHRlckV4ZWN1dGlvblN0YXRlQgPgQQMSQgoNbWVz", - "c2FnZV9pdGVtcxgCIAMoCzIrLmdvb2dsZS5jbG91ZC5tb2RlbGFybW9yLnYx", - "YmV0YS5NZXNzYWdlSXRlbRJKCgttYXRjaF9zdGF0ZRgDIAEoDjIwLmdvb2ds", - "ZS5jbG91ZC5tb2RlbGFybW9yLnYxYmV0YS5GaWx0ZXJNYXRjaFN0YXRlQgPg", - "QQMSZgoUc2Nhbm5lZF9jb250ZW50X3R5cGUYBCABKA4ySC5nb29nbGUuY2xv", - "dWQubW9kZWxhcm1vci52MWJldGEuVmlydXNTY2FuRmlsdGVyUmVzdWx0LlNj", - "YW5uZWRDb250ZW50VHlwZRIZCgxzY2FubmVkX3NpemUYBSABKANIAIgBARJC", - "Cg12aXJ1c19kZXRhaWxzGAYgAygLMisuZ29vZ2xlLmNsb3VkLm1vZGVsYXJt", - "b3IudjFiZXRhLlZpcnVzRGV0YWlsIl8KElNjYW5uZWRDb250ZW50VHlwZRIk", - "CiBTQ0FOTkVEX0NPTlRFTlRfVFlQRV9VTlNQRUNJRklFRBAAEgsKB1VOS05P", - "V04QARINCglQTEFJTlRFWFQQAhIHCgNQREYQA0IPCg1fc2Nhbm5lZF9zaXpl", - "Ip8CCgtWaXJ1c0RldGFpbBIOCgZ2ZW5kb3IYASABKAkSDQoFbmFtZXMYAiAD", - "KAkSSwoLdGhyZWF0X3R5cGUYAyABKA4yNi5nb29nbGUuY2xvdWQubW9kZWxh", - "cm1vci52MWJldGEuVmlydXNEZXRhaWwuVGhyZWF0VHlwZSKjAQoKVGhyZWF0", - "VHlwZRIbChdUSFJFQVRfVFlQRV9VTlNQRUNJRklFRBAAEgsKB1VOS05PV04Q", - "ARIRCg1WSVJVU19PUl9XT1JNEAISFQoRTUFMSUNJT1VTX1BST0dSQU0QAxIf", - "ChtQT1RFTlRJQUxMWV9IQVJNRlVMX0NPTlRFTlQQBBIgChxQT1RFTlRJQUxM", - "WV9VTldBTlRFRF9DT05URU5UEAUi9gEKEENzYW1GaWx0ZXJSZXN1bHQSUgoP", + "b20vVGVtcGxhdGUSGAoLdGVtcGxhdGVfaWQYAiABKAlCA+BBAhI/Cgh0ZW1w", + "bGF0ZRgDIAEoCzIoLmdvb2dsZS5jbG91ZC5tb2RlbGFybW9yLnYxYmV0YS5U", + "ZW1wbGF0ZUID4EECEh8KCnJlcXVlc3RfaWQYBCABKAlCC+BBAeKMz9cIAggB", + "Iq8BChVVcGRhdGVUZW1wbGF0ZVJlcXVlc3QSNAoLdXBkYXRlX21hc2sYASAB", + "KAsyGi5nb29nbGUucHJvdG9idWYuRmllbGRNYXNrQgPgQQISPwoIdGVtcGxh", + "dGUYAiABKAsyKC5nb29nbGUuY2xvdWQubW9kZWxhcm1vci52MWJldGEuVGVt", + "cGxhdGVCA+BBAhIfCgpyZXF1ZXN0X2lkGAMgASgJQgvgQQHijM/XCAIIASJy", + "ChVEZWxldGVUZW1wbGF0ZVJlcXVlc3QSOAoEbmFtZRgBIAEoCUIq4EEC+kEk", + "CiJtb2RlbGFybW9yLmdvb2dsZWFwaXMuY29tL1RlbXBsYXRlEh8KCnJlcXVl", + "c3RfaWQYAiABKAlCC+BBAeKMz9cIAggBIlYKFkdldEZsb29yU2V0dGluZ1Jl", + "cXVlc3QSPAoEbmFtZRgBIAEoCUIu4EEC+kEoCiZtb2RlbGFybW9yLmdvb2ds", + "ZWFwaXMuY29tL0Zsb29yU2V0dGluZyKbAQoZVXBkYXRlRmxvb3JTZXR0aW5n", + "UmVxdWVzdBJICg1mbG9vcl9zZXR0aW5nGAEgASgLMiwuZ29vZ2xlLmNsb3Vk", + "Lm1vZGVsYXJtb3IudjFiZXRhLkZsb29yU2V0dGluZ0ID4EECEjQKC3VwZGF0", + "ZV9tYXNrGAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLkZpZWxkTWFza0ID4EEB", + "Iv8CCgxGaWx0ZXJDb25maWcSTAoMcmFpX3NldHRpbmdzGAEgASgLMjEuZ29v", + "Z2xlLmNsb3VkLm1vZGVsYXJtb3IudjFiZXRhLlJhaUZpbHRlclNldHRpbmdz", + "QgPgQQESTAoMc2RwX3NldHRpbmdzGAIgASgLMjEuZ29vZ2xlLmNsb3VkLm1v", + "ZGVsYXJtb3IudjFiZXRhLlNkcEZpbHRlclNldHRpbmdzQgPgQQESawogcGlf", + "YW5kX2phaWxicmVha19maWx0ZXJfc2V0dGluZ3MYAyABKAsyPC5nb29nbGUu", + "Y2xvdWQubW9kZWxhcm1vci52MWJldGEuUGlBbmRKYWlsYnJlYWtGaWx0ZXJT", + "ZXR0aW5nc0ID4EEBEmYKHW1hbGljaW91c191cmlfZmlsdGVyX3NldHRpbmdz", + "GAQgASgLMjouZ29vZ2xlLmNsb3VkLm1vZGVsYXJtb3IudjFiZXRhLk1hbGlj", + "aW91c1VyaUZpbHRlclNldHRpbmdzQgPgQQEi6QIKHFBpQW5kSmFpbGJyZWFr", + "RmlsdGVyU2V0dGluZ3MSfQoSZmlsdGVyX2VuZm9yY2VtZW50GAEgASgOMlwu", + "Z29vZ2xlLmNsb3VkLm1vZGVsYXJtb3IudjFiZXRhLlBpQW5kSmFpbGJyZWFr", + "RmlsdGVyU2V0dGluZ3MuUGlBbmRKYWlsYnJlYWtGaWx0ZXJFbmZvcmNlbWVu", + "dEID4EEBElcKEGNvbmZpZGVuY2VfbGV2ZWwYAyABKA4yOC5nb29nbGUuY2xv", + "dWQubW9kZWxhcm1vci52MWJldGEuRGV0ZWN0aW9uQ29uZmlkZW5jZUxldmVs", + "QgPgQQEicQofUGlBbmRKYWlsYnJlYWtGaWx0ZXJFbmZvcmNlbWVudBIzCi9Q", + "SV9BTkRfSkFJTEJSRUFLX0ZJTFRFUl9FTkZPUkNFTUVOVF9VTlNQRUNJRklF", + "RBAAEgsKB0VOQUJMRUQQARIMCghESVNBQkxFRBACIoUCChpNYWxpY2lvdXNV", + "cmlGaWx0ZXJTZXR0aW5ncxJ5ChJmaWx0ZXJfZW5mb3JjZW1lbnQYASABKA4y", + "WC5nb29nbGUuY2xvdWQubW9kZWxhcm1vci52MWJldGEuTWFsaWNpb3VzVXJp", + "RmlsdGVyU2V0dGluZ3MuTWFsaWNpb3VzVXJpRmlsdGVyRW5mb3JjZW1lbnRC", + "A+BBASJsCh1NYWxpY2lvdXNVcmlGaWx0ZXJFbmZvcmNlbWVudBIwCixNQUxJ", + "Q0lPVVNfVVJJX0ZJTFRFUl9FTkZPUkNFTUVOVF9VTlNQRUNJRklFRBAAEgsK", + "B0VOQUJMRUQQARIMCghESVNBQkxFRBACIpoCChFSYWlGaWx0ZXJTZXR0aW5n", + "cxJVCgtyYWlfZmlsdGVycxgBIAMoCzI7Lmdvb2dsZS5jbG91ZC5tb2RlbGFy", + "bW9yLnYxYmV0YS5SYWlGaWx0ZXJTZXR0aW5ncy5SYWlGaWx0ZXJCA+BBAhqt", + "AQoJUmFpRmlsdGVyEkcKC2ZpbHRlcl90eXBlGAEgASgOMi0uZ29vZ2xlLmNs", + "b3VkLm1vZGVsYXJtb3IudjFiZXRhLlJhaUZpbHRlclR5cGVCA+BBAhJXChBj", + "b25maWRlbmNlX2xldmVsGAIgASgOMjguZ29vZ2xlLmNsb3VkLm1vZGVsYXJt", + "b3IudjFiZXRhLkRldGVjdGlvbkNvbmZpZGVuY2VMZXZlbEID4EEBIsgBChFT", + "ZHBGaWx0ZXJTZXR0aW5ncxJLCgxiYXNpY19jb25maWcYASABKAsyLi5nb29n", + "bGUuY2xvdWQubW9kZWxhcm1vci52MWJldGEuU2RwQmFzaWNDb25maWdCA+BB", + "AUgAElEKD2FkdmFuY2VkX2NvbmZpZxgCIAEoCzIxLmdvb2dsZS5jbG91ZC5t", + "b2RlbGFybW9yLnYxYmV0YS5TZHBBZHZhbmNlZENvbmZpZ0ID4EEBSABCEwoR", + "c2RwX2NvbmZpZ3VyYXRpb24i4QEKDlNkcEJhc2ljQ29uZmlnEmkKEmZpbHRl", + "cl9lbmZvcmNlbWVudBgDIAEoDjJILmdvb2dsZS5jbG91ZC5tb2RlbGFybW9y", + "LnYxYmV0YS5TZHBCYXNpY0NvbmZpZy5TZHBCYXNpY0NvbmZpZ0VuZm9yY2Vt", + "ZW50QgPgQQEiZAoZU2RwQmFzaWNDb25maWdFbmZvcmNlbWVudBIsCihTRFBf", + "QkFTSUNfQ09ORklHX0VORk9SQ0VNRU5UX1VOU1BFQ0lGSUVEEAASCwoHRU5B", + "QkxFRBABEgwKCERJU0FCTEVEEAIiVAoRU2RwQWR2YW5jZWRDb25maWcSHQoQ", + "aW5zcGVjdF90ZW1wbGF0ZRgBIAEoCUID4EEBEiAKE2RlaWRlbnRpZnlfdGVt", + "cGxhdGUYAiABKAlCA+BBASLyAgoZU2FuaXRpemVVc2VyUHJvbXB0UmVxdWVz", + "dBI4CgRuYW1lGAEgASgJQirgQQL6QSQKIm1vZGVsYXJtb3IuZ29vZ2xlYXBp", + "cy5jb20vVGVtcGxhdGUSRwoQdXNlcl9wcm9tcHRfZGF0YRgCIAEoCzIoLmdv", + "b2dsZS5jbG91ZC5tb2RlbGFybW9yLnYxYmV0YS5EYXRhSXRlbUID4EECEm4K", + "IW11bHRpX2xhbmd1YWdlX2RldGVjdGlvbl9tZXRhZGF0YRgGIAEoCzI+Lmdv", + "b2dsZS5jbG91ZC5tb2RlbGFybW9yLnYxYmV0YS5NdWx0aUxhbmd1YWdlRGV0", + "ZWN0aW9uTWV0YWRhdGFCA+BBARJPCg5zdHJlYW1pbmdfbW9kZRgHIAEoDjIt", + "Lmdvb2dsZS5jbG91ZC5tb2RlbGFybW9yLnYxYmV0YS5TdHJlYW1pbmdNb2Rl", + "QgPgQQFIAIgBAUIRCg9fc3RyZWFtaW5nX21vZGUikgMKHFNhbml0aXplTW9k", + "ZWxSZXNwb25zZVJlcXVlc3QSOAoEbmFtZRgBIAEoCUIq4EEC+kEkCiJtb2Rl", + "bGFybW9yLmdvb2dsZWFwaXMuY29tL1RlbXBsYXRlEkoKE21vZGVsX3Jlc3Bv", + "bnNlX2RhdGEYAiABKAsyKC5nb29nbGUuY2xvdWQubW9kZWxhcm1vci52MWJl", + "dGEuRGF0YUl0ZW1CA+BBAhIYCgt1c2VyX3Byb21wdBgEIAEoCUID4EEBEm4K", + "IW11bHRpX2xhbmd1YWdlX2RldGVjdGlvbl9tZXRhZGF0YRgHIAEoCzI+Lmdv", + "b2dsZS5jbG91ZC5tb2RlbGFybW9yLnYxYmV0YS5NdWx0aUxhbmd1YWdlRGV0", + "ZWN0aW9uTWV0YWRhdGFCA+BBARJPCg5zdHJlYW1pbmdfbW9kZRgIIAEoDjIt", + "Lmdvb2dsZS5jbG91ZC5tb2RlbGFybW9yLnYxYmV0YS5TdHJlYW1pbmdNb2Rl", + "QgPgQQFIAIgBAUIRCg9fc3RyZWFtaW5nX21vZGUicgoaU2FuaXRpemVVc2Vy", + "UHJvbXB0UmVzcG9uc2USVAoTc2FuaXRpemF0aW9uX3Jlc3VsdBgBIAEoCzIy", + "Lmdvb2dsZS5jbG91ZC5tb2RlbGFybW9yLnYxYmV0YS5TYW5pdGl6YXRpb25S", + "ZXN1bHRCA+BBAyJ1Ch1TYW5pdGl6ZU1vZGVsUmVzcG9uc2VSZXNwb25zZRJU", + "ChNzYW5pdGl6YXRpb25fcmVzdWx0GAEgASgLMjIuZ29vZ2xlLmNsb3VkLm1v", + "ZGVsYXJtb3IudjFiZXRhLlNhbml0aXphdGlvblJlc3VsdEID4EEDIt0EChJT", + "YW5pdGl6YXRpb25SZXN1bHQSUQoSZmlsdGVyX21hdGNoX3N0YXRlGAEgASgO", + "MjAuZ29vZ2xlLmNsb3VkLm1vZGVsYXJtb3IudjFiZXRhLkZpbHRlck1hdGNo", + "U3RhdGVCA+BBAxJiCg5maWx0ZXJfcmVzdWx0cxgCIAMoCzJFLmdvb2dsZS5j", + "bG91ZC5tb2RlbGFybW9yLnYxYmV0YS5TYW5pdGl6YXRpb25SZXN1bHQuRmls", + "dGVyUmVzdWx0c0VudHJ5QgPgQQMSUAoRaW52b2NhdGlvbl9yZXN1bHQYBCAB", + "KA4yMC5nb29nbGUuY2xvdWQubW9kZWxhcm1vci52MWJldGEuSW52b2NhdGlv", + "blJlc3VsdEID4EEDEmsKFXNhbml0aXphdGlvbl9tZXRhZGF0YRgDIAEoCzJH", + "Lmdvb2dsZS5jbG91ZC5tb2RlbGFybW9yLnYxYmV0YS5TYW5pdGl6YXRpb25S", + "ZXN1bHQuU2FuaXRpemF0aW9uTWV0YWRhdGFCA+BBAxptChRTYW5pdGl6YXRp", + "b25NZXRhZGF0YRISCgplcnJvcl9jb2RlGAEgASgDEhUKDWVycm9yX21lc3Nh", + "Z2UYAiABKAkSKgoiaWdub3JlX3BhcnRpYWxfaW52b2NhdGlvbl9mYWlsdXJl", + "cxgDIAEoCBpiChJGaWx0ZXJSZXN1bHRzRW50cnkSCwoDa2V5GAEgASgJEjsK", + "BXZhbHVlGAIgASgLMiwuZ29vZ2xlLmNsb3VkLm1vZGVsYXJtb3IudjFiZXRh", + "LkZpbHRlclJlc3VsdDoCOAEibAoeTXVsdGlMYW5ndWFnZURldGVjdGlvbk1l", + "dGFkYXRhEhwKD3NvdXJjZV9sYW5ndWFnZRgBIAEoCUID4EEBEiwKH2VuYWJs", + "ZV9tdWx0aV9sYW5ndWFnZV9kZXRlY3Rpb24YAiABKAhCA+BBASK0BAoMRmls", + "dGVyUmVzdWx0EkwKEXJhaV9maWx0ZXJfcmVzdWx0GAEgASgLMi8uZ29vZ2xl", + "LmNsb3VkLm1vZGVsYXJtb3IudjFiZXRhLlJhaUZpbHRlclJlc3VsdEgAEkwK", + "EXNkcF9maWx0ZXJfcmVzdWx0GAIgASgLMi8uZ29vZ2xlLmNsb3VkLm1vZGVs", + "YXJtb3IudjFiZXRhLlNkcEZpbHRlclJlc3VsdEgAEmQKHnBpX2FuZF9qYWls", + "YnJlYWtfZmlsdGVyX3Jlc3VsdBgDIAEoCzI6Lmdvb2dsZS5jbG91ZC5tb2Rl", + "bGFybW9yLnYxYmV0YS5QaUFuZEphaWxicmVha0ZpbHRlclJlc3VsdEgAEl8K", + "G21hbGljaW91c191cmlfZmlsdGVyX3Jlc3VsdBgEIAEoCzI4Lmdvb2dsZS5j", + "bG91ZC5tb2RlbGFybW9yLnYxYmV0YS5NYWxpY2lvdXNVcmlGaWx0ZXJSZXN1", + "bHRIABJVChljc2FtX2ZpbHRlcl9maWx0ZXJfcmVzdWx0GAUgASgLMjAuZ29v", + "Z2xlLmNsb3VkLm1vZGVsYXJtb3IudjFiZXRhLkNzYW1GaWx0ZXJSZXN1bHRI", + "ABJZChh2aXJ1c19zY2FuX2ZpbHRlcl9yZXN1bHQYBiABKAsyNS5nb29nbGUu", + "Y2xvdWQubW9kZWxhcm1vci52MWJldGEuVmlydXNTY2FuRmlsdGVyUmVzdWx0", + "SABCDwoNZmlsdGVyX3Jlc3VsdCLgBQoPUmFpRmlsdGVyUmVzdWx0ElIKD2V4", + "ZWN1dGlvbl9zdGF0ZRgBIAEoDjI0Lmdvb2dsZS5jbG91ZC5tb2RlbGFybW9y", + "LnYxYmV0YS5GaWx0ZXJFeGVjdXRpb25TdGF0ZUID4EEDEkIKDW1lc3NhZ2Vf", + "aXRlbXMYAiADKAsyKy5nb29nbGUuY2xvdWQubW9kZWxhcm1vci52MWJldGEu", + "TWVzc2FnZUl0ZW0SSgoLbWF0Y2hfc3RhdGUYAyABKA4yMC5nb29nbGUuY2xv", + "dWQubW9kZWxhcm1vci52MWJldGEuRmlsdGVyTWF0Y2hTdGF0ZUID4EEDEmoK", + "F3JhaV9maWx0ZXJfdHlwZV9yZXN1bHRzGAQgAygLMkkuZ29vZ2xlLmNsb3Vk", + "Lm1vZGVsYXJtb3IudjFiZXRhLlJhaUZpbHRlclJlc3VsdC5SYWlGaWx0ZXJU", + "eXBlUmVzdWx0c0VudHJ5GvkBChNSYWlGaWx0ZXJUeXBlUmVzdWx0EkIKC2Zp", + "bHRlcl90eXBlGAEgASgOMi0uZ29vZ2xlLmNsb3VkLm1vZGVsYXJtb3IudjFi", + "ZXRhLlJhaUZpbHRlclR5cGUSUgoQY29uZmlkZW5jZV9sZXZlbBgCIAEoDjI4", + "Lmdvb2dsZS5jbG91ZC5tb2RlbGFybW9yLnYxYmV0YS5EZXRlY3Rpb25Db25m", + "aWRlbmNlTGV2ZWwSSgoLbWF0Y2hfc3RhdGUYAyABKA4yMC5nb29nbGUuY2xv", + "dWQubW9kZWxhcm1vci52MWJldGEuRmlsdGVyTWF0Y2hTdGF0ZUID4EEDGoAB", + "ChlSYWlGaWx0ZXJUeXBlUmVzdWx0c0VudHJ5EgsKA2tleRgBIAEoCRJSCgV2", + "YWx1ZRgCIAEoCzJDLmdvb2dsZS5jbG91ZC5tb2RlbGFybW9yLnYxYmV0YS5S", + "YWlGaWx0ZXJSZXN1bHQuUmFpRmlsdGVyVHlwZVJlc3VsdDoCOAEiuQEKD1Nk", + "cEZpbHRlclJlc3VsdBJKCg5pbnNwZWN0X3Jlc3VsdBgBIAEoCzIwLmdvb2ds", + "ZS5jbG91ZC5tb2RlbGFybW9yLnYxYmV0YS5TZHBJbnNwZWN0UmVzdWx0SAAS", + "UAoRZGVpZGVudGlmeV9yZXN1bHQYAiABKAsyMy5nb29nbGUuY2xvdWQubW9k", + "ZWxhcm1vci52MWJldGEuU2RwRGVpZGVudGlmeVJlc3VsdEgAQggKBnJlc3Vs", + "dCLQAgoQU2RwSW5zcGVjdFJlc3VsdBJSCg9leGVjdXRpb25fc3RhdGUYASAB", + "KA4yNC5nb29nbGUuY2xvdWQubW9kZWxhcm1vci52MWJldGEuRmlsdGVyRXhl", + "Y3V0aW9uU3RhdGVCA+BBAxJCCg1tZXNzYWdlX2l0ZW1zGAIgAygLMisuZ29v", + "Z2xlLmNsb3VkLm1vZGVsYXJtb3IudjFiZXRhLk1lc3NhZ2VJdGVtEkoKC21h", + "dGNoX3N0YXRlGAMgASgOMjAuZ29vZ2xlLmNsb3VkLm1vZGVsYXJtb3IudjFi", + "ZXRhLkZpbHRlck1hdGNoU3RhdGVCA+BBAxI8CghmaW5kaW5ncxgEIAMoCzIq", + "Lmdvb2dsZS5jbG91ZC5tb2RlbGFybW9yLnYxYmV0YS5TZHBGaW5kaW5nEhoK", + "EmZpbmRpbmdzX3RydW5jYXRlZBgFIAEoCCJqCghEYXRhSXRlbRIOCgR0ZXh0", + "GAEgASgJSAASQQoJYnl0ZV9pdGVtGAIgASgLMiwuZ29vZ2xlLmNsb3VkLm1v", + "ZGVsYXJtb3IudjFiZXRhLkJ5dGVEYXRhSXRlbUgAQgsKCWRhdGFfaXRlbSLA", + "AgoMQnl0ZURhdGFJdGVtElYKDmJ5dGVfZGF0YV90eXBlGAEgASgOMjkuZ29v", + "Z2xlLmNsb3VkLm1vZGVsYXJtb3IudjFiZXRhLkJ5dGVEYXRhSXRlbS5CeXRl", + "SXRlbVR5cGVCA+BBAhIWCglieXRlX2RhdGEYAiABKAxCA+BBAhIXCgpmaWxl", + "X2xhYmVsGAMgASgJQgPgQQEipgEKDEJ5dGVJdGVtVHlwZRIeChpCWVRFX0lU", + "RU1fVFlQRV9VTlNQRUNJRklFRBAAEhIKDlBMQUlOVEVYVF9VVEY4EAESBwoD", + "UERGEAISEQoNV09SRF9ET0NVTUVOVBADEhIKDkVYQ0VMX0RPQ1VNRU5UEAQS", + "FwoTUE9XRVJQT0lOVF9ET0NVTUVOVBAFEgcKA1RYVBAGEgcKA0NTVhAHEgcK", + "A1pJUBAJIuACChNTZHBEZWlkZW50aWZ5UmVzdWx0ElIKD2V4ZWN1dGlvbl9z", + "dGF0ZRgBIAEoDjI0Lmdvb2dsZS5jbG91ZC5tb2RlbGFybW9yLnYxYmV0YS5G", + "aWx0ZXJFeGVjdXRpb25TdGF0ZUID4EEDEkIKDW1lc3NhZ2VfaXRlbXMYAiAD", + "KAsyKy5nb29nbGUuY2xvdWQubW9kZWxhcm1vci52MWJldGEuTWVzc2FnZUl0", + "ZW0SSgoLbWF0Y2hfc3RhdGUYAyABKA4yMC5nb29nbGUuY2xvdWQubW9kZWxh", + "cm1vci52MWJldGEuRmlsdGVyTWF0Y2hTdGF0ZUID4EEDEjYKBGRhdGEYBCAB", + "KAsyKC5nb29nbGUuY2xvdWQubW9kZWxhcm1vci52MWJldGEuRGF0YUl0ZW0S", + "GQoRdHJhbnNmb3JtZWRfYnl0ZXMYBSABKAMSEgoKaW5mb190eXBlcxgGIAMo", + "CSLUAgoKU2RwRmluZGluZxIRCglpbmZvX3R5cGUYASABKAkSSAoKbGlrZWxp", + "aG9vZBgCIAEoDjI0Lmdvb2dsZS5jbG91ZC5tb2RlbGFybW9yLnYxYmV0YS5T", + "ZHBGaW5kaW5nTGlrZWxpaG9vZBJPCghsb2NhdGlvbhgDIAEoCzI9Lmdvb2ds", + "ZS5jbG91ZC5tb2RlbGFybW9yLnYxYmV0YS5TZHBGaW5kaW5nLlNkcEZpbmRp", + "bmdMb2NhdGlvbhqXAQoSU2RwRmluZGluZ0xvY2F0aW9uEj0KCmJ5dGVfcmFu", + "Z2UYASABKAsyKS5nb29nbGUuY2xvdWQubW9kZWxhcm1vci52MWJldGEuUmFu", + "Z2VJbmZvEkIKD2NvZGVwb2ludF9yYW5nZRgCIAEoCzIpLmdvb2dsZS5jbG91", + "ZC5tb2RlbGFybW9yLnYxYmV0YS5SYW5nZUluZm8i1AIKGlBpQW5kSmFpbGJy", + "ZWFrRmlsdGVyUmVzdWx0ElIKD2V4ZWN1dGlvbl9zdGF0ZRgBIAEoDjI0Lmdv", + "b2dsZS5jbG91ZC5tb2RlbGFybW9yLnYxYmV0YS5GaWx0ZXJFeGVjdXRpb25T", + "dGF0ZUID4EEDEkIKDW1lc3NhZ2VfaXRlbXMYAiADKAsyKy5nb29nbGUuY2xv", + "dWQubW9kZWxhcm1vci52MWJldGEuTWVzc2FnZUl0ZW0SSgoLbWF0Y2hfc3Rh", + "dGUYAyABKA4yMC5nb29nbGUuY2xvdWQubW9kZWxhcm1vci52MWJldGEuRmls", + "dGVyTWF0Y2hTdGF0ZUID4EEDElIKEGNvbmZpZGVuY2VfbGV2ZWwYBSABKA4y", + "OC5nb29nbGUuY2xvdWQubW9kZWxhcm1vci52MWJldGEuRGV0ZWN0aW9uQ29u", + "ZmlkZW5jZUxldmVsItsDChhNYWxpY2lvdXNVcmlGaWx0ZXJSZXN1bHQSUgoP", "ZXhlY3V0aW9uX3N0YXRlGAEgASgOMjQuZ29vZ2xlLmNsb3VkLm1vZGVsYXJt", "b3IudjFiZXRhLkZpbHRlckV4ZWN1dGlvblN0YXRlQgPgQQMSQgoNbWVzc2Fn", "ZV9pdGVtcxgCIAMoCzIrLmdvb2dsZS5jbG91ZC5tb2RlbGFybW9yLnYxYmV0", "YS5NZXNzYWdlSXRlbRJKCgttYXRjaF9zdGF0ZRgDIAEoDjIwLmdvb2dsZS5j", - "bG91ZC5tb2RlbGFybW9yLnYxYmV0YS5GaWx0ZXJNYXRjaFN0YXRlQgPgQQMi", - "vAEKC01lc3NhZ2VJdGVtEk0KDG1lc3NhZ2VfdHlwZRgBIAEoDjI3Lmdvb2ds", - "ZS5jbG91ZC5tb2RlbGFybW9yLnYxYmV0YS5NZXNzYWdlSXRlbS5NZXNzYWdl", - "VHlwZRIPCgdtZXNzYWdlGAIgASgJIk0KC01lc3NhZ2VUeXBlEhwKGE1FU1NB", - "R0VfVFlQRV9VTlNQRUNJRklFRBAAEggKBElORk8QARILCgdXQVJOSU5HEAIS", - "CQoFRVJST1IQAyJDCglSYW5nZUluZm8SEgoFc3RhcnQYASABKANIAIgBARIQ", - "CgNlbmQYAiABKANIAYgBAUIICgZfc3RhcnRCBgoEX2VuZCpbChBGaWx0ZXJN", - "YXRjaFN0YXRlEiIKHkZJTFRFUl9NQVRDSF9TVEFURV9VTlNQRUNJRklFRBAA", - "EhIKDk5PX01BVENIX0ZPVU5EEAESDwoLTUFUQ0hfRk9VTkQQAipsChRGaWx0", - "ZXJFeGVjdXRpb25TdGF0ZRImCiJGSUxURVJfRVhFQ1VUSU9OX1NUQVRFX1VO", - "U1BFQ0lGSUVEEAASFQoRRVhFQ1VUSU9OX1NVQ0NFU1MQARIVChFFWEVDVVRJ", - "T05fU0tJUFBFRBACKncKDVJhaUZpbHRlclR5cGUSHwobUkFJX0ZJTFRFUl9U", - "WVBFX1VOU1BFQ0lGSUVEEAASFQoRU0VYVUFMTFlfRVhQTElDSVQQAhIPCgtI", - "QVRFX1NQRUVDSBADEg4KCkhBUkFTU01FTlQQBhINCglEQU5HRVJPVVMQESp5", - "ChhEZXRlY3Rpb25Db25maWRlbmNlTGV2ZWwSKgomREVURUNUSU9OX0NPTkZJ", - "REVOQ0VfTEVWRUxfVU5TUEVDSUZJRUQQABIRCg1MT1dfQU5EX0FCT1ZFEAES", - "FAoQTUVESVVNX0FORF9BQk9WRRACEggKBEhJR0gQAyqKAQoUU2RwRmluZGlu", - "Z0xpa2VsaWhvb2QSJgoiU0RQX0ZJTkRJTkdfTElLRUxJSE9PRF9VTlNQRUNJ", - "RklFRBAAEhEKDVZFUllfVU5MSUtFTFkQARIMCghVTkxJS0VMWRACEgwKCFBP", - "U1NJQkxFEAMSCgoGTElLRUxZEAQSDwoLVkVSWV9MSUtFTFkQBSpcChBJbnZv", - "Y2F0aW9uUmVzdWx0EiEKHUlOVk9DQVRJT05fUkVTVUxUX1VOU1BFQ0lGSUVE", - "EAASCwoHU1VDQ0VTUxABEgsKB1BBUlRJQUwQAhILCgdGQUlMVVJFEAMyvBEK", - "Ck1vZGVsQXJtb3ISwAEKDUxpc3RUZW1wbGF0ZXMSNC5nb29nbGUuY2xvdWQu", - "bW9kZWxhcm1vci52MWJldGEuTGlzdFRlbXBsYXRlc1JlcXVlc3QaNS5nb29n", - "bGUuY2xvdWQubW9kZWxhcm1vci52MWJldGEuTGlzdFRlbXBsYXRlc1Jlc3Bv", - "bnNlIkLaQQZwYXJlbnSC0+STAjMSMS92MWJldGEve3BhcmVudD1wcm9qZWN0", - "cy8qL2xvY2F0aW9ucy8qfS90ZW1wbGF0ZXMSrQEKC0dldFRlbXBsYXRlEjIu", - "Z29vZ2xlLmNsb3VkLm1vZGVsYXJtb3IudjFiZXRhLkdldFRlbXBsYXRlUmVx", - "dWVzdBooLmdvb2dsZS5jbG91ZC5tb2RlbGFybW9yLnYxYmV0YS5UZW1wbGF0", - "ZSJA2kEEbmFtZYLT5JMCMxIxL3YxYmV0YS97bmFtZT1wcm9qZWN0cy8qL2xv", - "Y2F0aW9ucy8qL3RlbXBsYXRlcy8qfRLUAQoOQ3JlYXRlVGVtcGxhdGUSNS5n", - "b29nbGUuY2xvdWQubW9kZWxhcm1vci52MWJldGEuQ3JlYXRlVGVtcGxhdGVS", - "ZXF1ZXN0GiguZ29vZ2xlLmNsb3VkLm1vZGVsYXJtb3IudjFiZXRhLlRlbXBs", - "YXRlImHaQRtwYXJlbnQsdGVtcGxhdGUsdGVtcGxhdGVfaWSC0+STAj0iMS92", - "MWJldGEve3BhcmVudD1wcm9qZWN0cy8qL2xvY2F0aW9ucy8qfS90ZW1wbGF0", - "ZXM6CHRlbXBsYXRlEtYBCg5VcGRhdGVUZW1wbGF0ZRI1Lmdvb2dsZS5jbG91", - "ZC5tb2RlbGFybW9yLnYxYmV0YS5VcGRhdGVUZW1wbGF0ZVJlcXVlc3QaKC5n", - "b29nbGUuY2xvdWQubW9kZWxhcm1vci52MWJldGEuVGVtcGxhdGUiY9pBFHRl", - "bXBsYXRlLHVwZGF0ZV9tYXNrgtPkkwJGMjovdjFiZXRhL3t0ZW1wbGF0ZS5u", - "YW1lPXByb2plY3RzLyovbG9jYXRpb25zLyovdGVtcGxhdGVzLyp9Ogh0ZW1w", - "bGF0ZRKhAQoORGVsZXRlVGVtcGxhdGUSNS5nb29nbGUuY2xvdWQubW9kZWxh", - "cm1vci52MWJldGEuRGVsZXRlVGVtcGxhdGVSZXF1ZXN0GhYuZ29vZ2xlLnBy", - "b3RvYnVmLkVtcHR5IkDaQQRuYW1lgtPkkwIzKjEvdjFiZXRhL3tuYW1lPXBy", - "b2plY3RzLyovbG9jYXRpb25zLyovdGVtcGxhdGVzLyp9EqwCCg9HZXRGbG9v", - "clNldHRpbmcSNi5nb29nbGUuY2xvdWQubW9kZWxhcm1vci52MWJldGEuR2V0", - "Rmxvb3JTZXR0aW5nUmVxdWVzdBosLmdvb2dsZS5jbG91ZC5tb2RlbGFybW9y", - "LnYxYmV0YS5GbG9vclNldHRpbmcisgHaQQRuYW1lgtPkkwKkARIyL3YxYmV0", - "YS97bmFtZT1wcm9qZWN0cy8qL2xvY2F0aW9ucy8qL2Zsb29yU2V0dGluZ31a", - "MxIxL3YxYmV0YS97bmFtZT1mb2xkZXJzLyovbG9jYXRpb25zLyovZmxvb3JT", - "ZXR0aW5nfVo5EjcvdjFiZXRhL3tuYW1lPW9yZ2FuaXphdGlvbnMvKi9sb2Nh", - "dGlvbnMvKi9mbG9vclNldHRpbmd9Ep4DChJVcGRhdGVGbG9vclNldHRpbmcS", - "OS5nb29nbGUuY2xvdWQubW9kZWxhcm1vci52MWJldGEuVXBkYXRlRmxvb3JT", + "bG91ZC5tb2RlbGFybW9yLnYxYmV0YS5GaWx0ZXJNYXRjaFN0YXRlQgPgQQMS", + "dQobbWFsaWNpb3VzX3VyaV9tYXRjaGVkX2l0ZW1zGAQgAygLMlAuZ29vZ2xl", + "LmNsb3VkLm1vZGVsYXJtb3IudjFiZXRhLk1hbGljaW91c1VyaUZpbHRlclJl", + "c3VsdC5NYWxpY2lvdXNVcmlNYXRjaGVkSXRlbRpkChdNYWxpY2lvdXNVcmlN", + "YXRjaGVkSXRlbRILCgN1cmkYASABKAkSPAoJbG9jYXRpb25zGAIgAygLMiku", + "Z29vZ2xlLmNsb3VkLm1vZGVsYXJtb3IudjFiZXRhLlJhbmdlSW5mbyK0BAoV", + "VmlydXNTY2FuRmlsdGVyUmVzdWx0ElIKD2V4ZWN1dGlvbl9zdGF0ZRgBIAEo", + "DjI0Lmdvb2dsZS5jbG91ZC5tb2RlbGFybW9yLnYxYmV0YS5GaWx0ZXJFeGVj", + "dXRpb25TdGF0ZUID4EEDEkIKDW1lc3NhZ2VfaXRlbXMYAiADKAsyKy5nb29n", + "bGUuY2xvdWQubW9kZWxhcm1vci52MWJldGEuTWVzc2FnZUl0ZW0SSgoLbWF0", + "Y2hfc3RhdGUYAyABKA4yMC5nb29nbGUuY2xvdWQubW9kZWxhcm1vci52MWJl", + "dGEuRmlsdGVyTWF0Y2hTdGF0ZUID4EEDEmYKFHNjYW5uZWRfY29udGVudF90", + "eXBlGAQgASgOMkguZ29vZ2xlLmNsb3VkLm1vZGVsYXJtb3IudjFiZXRhLlZp", + "cnVzU2NhbkZpbHRlclJlc3VsdC5TY2FubmVkQ29udGVudFR5cGUSGQoMc2Nh", + "bm5lZF9zaXplGAUgASgDSACIAQESQgoNdmlydXNfZGV0YWlscxgGIAMoCzIr", + "Lmdvb2dsZS5jbG91ZC5tb2RlbGFybW9yLnYxYmV0YS5WaXJ1c0RldGFpbCJf", + "ChJTY2FubmVkQ29udGVudFR5cGUSJAogU0NBTk5FRF9DT05URU5UX1RZUEVf", + "VU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAESDQoJUExBSU5URVhUEAISBwoD", + "UERGEANCDwoNX3NjYW5uZWRfc2l6ZSKfAgoLVmlydXNEZXRhaWwSDgoGdmVu", + "ZG9yGAEgASgJEg0KBW5hbWVzGAIgAygJEksKC3RocmVhdF90eXBlGAMgASgO", + "MjYuZ29vZ2xlLmNsb3VkLm1vZGVsYXJtb3IudjFiZXRhLlZpcnVzRGV0YWls", + "LlRocmVhdFR5cGUiowEKClRocmVhdFR5cGUSGwoXVEhSRUFUX1RZUEVfVU5T", + "UEVDSUZJRUQQABILCgdVTktOT1dOEAESEQoNVklSVVNfT1JfV09STRACEhUK", + "EU1BTElDSU9VU19QUk9HUkFNEAMSHwobUE9URU5USUFMTFlfSEFSTUZVTF9D", + "T05URU5UEAQSIAocUE9URU5USUFMTFlfVU5XQU5URURfQ09OVEVOVBAFIvYB", + "ChBDc2FtRmlsdGVyUmVzdWx0ElIKD2V4ZWN1dGlvbl9zdGF0ZRgBIAEoDjI0", + "Lmdvb2dsZS5jbG91ZC5tb2RlbGFybW9yLnYxYmV0YS5GaWx0ZXJFeGVjdXRp", + "b25TdGF0ZUID4EEDEkIKDW1lc3NhZ2VfaXRlbXMYAiADKAsyKy5nb29nbGUu", + "Y2xvdWQubW9kZWxhcm1vci52MWJldGEuTWVzc2FnZUl0ZW0SSgoLbWF0Y2hf", + "c3RhdGUYAyABKA4yMC5nb29nbGUuY2xvdWQubW9kZWxhcm1vci52MWJldGEu", + "RmlsdGVyTWF0Y2hTdGF0ZUID4EEDIrwBCgtNZXNzYWdlSXRlbRJNCgxtZXNz", + "YWdlX3R5cGUYASABKA4yNy5nb29nbGUuY2xvdWQubW9kZWxhcm1vci52MWJl", + "dGEuTWVzc2FnZUl0ZW0uTWVzc2FnZVR5cGUSDwoHbWVzc2FnZRgCIAEoCSJN", + "CgtNZXNzYWdlVHlwZRIcChhNRVNTQUdFX1RZUEVfVU5TUEVDSUZJRUQQABII", + "CgRJTkZPEAESCwoHV0FSTklORxACEgkKBUVSUk9SEAMiQwoJUmFuZ2VJbmZv", + "EhIKBXN0YXJ0GAEgASgDSACIAQESEAoDZW5kGAIgASgDSAGIAQFCCAoGX3N0", + "YXJ0QgYKBF9lbmQqWwoQRmlsdGVyTWF0Y2hTdGF0ZRIiCh5GSUxURVJfTUFU", + "Q0hfU1RBVEVfVU5TUEVDSUZJRUQQABISCg5OT19NQVRDSF9GT1VORBABEg8K", + "C01BVENIX0ZPVU5EEAIqbAoURmlsdGVyRXhlY3V0aW9uU3RhdGUSJgoiRklM", + "VEVSX0VYRUNVVElPTl9TVEFURV9VTlNQRUNJRklFRBAAEhUKEUVYRUNVVElP", + "Tl9TVUNDRVNTEAESFQoRRVhFQ1VUSU9OX1NLSVBQRUQQAip3Cg1SYWlGaWx0", + "ZXJUeXBlEh8KG1JBSV9GSUxURVJfVFlQRV9VTlNQRUNJRklFRBAAEhUKEVNF", + "WFVBTExZX0VYUExJQ0lUEAISDwoLSEFURV9TUEVFQ0gQAxIOCgpIQVJBU1NN", + "RU5UEAYSDQoJREFOR0VST1VTEBEqeQoYRGV0ZWN0aW9uQ29uZmlkZW5jZUxl", + "dmVsEioKJkRFVEVDVElPTl9DT05GSURFTkNFX0xFVkVMX1VOU1BFQ0lGSUVE", + "EAASEQoNTE9XX0FORF9BQk9WRRABEhQKEE1FRElVTV9BTkRfQUJPVkUQAhII", + "CgRISUdIEAMqigEKFFNkcEZpbmRpbmdMaWtlbGlob29kEiYKIlNEUF9GSU5E", + "SU5HX0xJS0VMSUhPT0RfVU5TUEVDSUZJRUQQABIRCg1WRVJZX1VOTElLRUxZ", + "EAESDAoIVU5MSUtFTFkQAhIMCghQT1NTSUJMRRADEgoKBkxJS0VMWRAEEg8K", + "C1ZFUllfTElLRUxZEAUqXAoQSW52b2NhdGlvblJlc3VsdBIhCh1JTlZPQ0FU", + "SU9OX1JFU1VMVF9VTlNQRUNJRklFRBAAEgsKB1NVQ0NFU1MQARILCgdQQVJU", + "SUFMEAISCwoHRkFJTFVSRRADKmkKDVN0cmVhbWluZ01vZGUSHgoaU1RSRUFN", + "SU5HX01PREVfVU5TUEVDSUZJRUQQABIbChdTVFJFQU1JTkdfTU9ERV9CVUZG", + "RVJFRBABEhsKF1NUUkVBTUlOR19NT0RFX1JFQUxUSU1FEAIy+RMKCk1vZGVs", + "QXJtb3ISwAEKDUxpc3RUZW1wbGF0ZXMSNC5nb29nbGUuY2xvdWQubW9kZWxh", + "cm1vci52MWJldGEuTGlzdFRlbXBsYXRlc1JlcXVlc3QaNS5nb29nbGUuY2xv", + "dWQubW9kZWxhcm1vci52MWJldGEuTGlzdFRlbXBsYXRlc1Jlc3BvbnNlIkLa", + "QQZwYXJlbnSC0+STAjMSMS92MWJldGEve3BhcmVudD1wcm9qZWN0cy8qL2xv", + "Y2F0aW9ucy8qfS90ZW1wbGF0ZXMSrQEKC0dldFRlbXBsYXRlEjIuZ29vZ2xl", + "LmNsb3VkLm1vZGVsYXJtb3IudjFiZXRhLkdldFRlbXBsYXRlUmVxdWVzdBoo", + "Lmdvb2dsZS5jbG91ZC5tb2RlbGFybW9yLnYxYmV0YS5UZW1wbGF0ZSJA2kEE", + "bmFtZYLT5JMCMxIxL3YxYmV0YS97bmFtZT1wcm9qZWN0cy8qL2xvY2F0aW9u", + "cy8qL3RlbXBsYXRlcy8qfRLUAQoOQ3JlYXRlVGVtcGxhdGUSNS5nb29nbGUu", + "Y2xvdWQubW9kZWxhcm1vci52MWJldGEuQ3JlYXRlVGVtcGxhdGVSZXF1ZXN0", + "GiguZ29vZ2xlLmNsb3VkLm1vZGVsYXJtb3IudjFiZXRhLlRlbXBsYXRlImHa", + "QRtwYXJlbnQsdGVtcGxhdGUsdGVtcGxhdGVfaWSC0+STAj0iMS92MWJldGEv", + "e3BhcmVudD1wcm9qZWN0cy8qL2xvY2F0aW9ucy8qfS90ZW1wbGF0ZXM6CHRl", + "bXBsYXRlEtYBCg5VcGRhdGVUZW1wbGF0ZRI1Lmdvb2dsZS5jbG91ZC5tb2Rl", + "bGFybW9yLnYxYmV0YS5VcGRhdGVUZW1wbGF0ZVJlcXVlc3QaKC5nb29nbGUu", + "Y2xvdWQubW9kZWxhcm1vci52MWJldGEuVGVtcGxhdGUiY9pBFHRlbXBsYXRl", + "LHVwZGF0ZV9tYXNrgtPkkwJGMjovdjFiZXRhL3t0ZW1wbGF0ZS5uYW1lPXBy", + "b2plY3RzLyovbG9jYXRpb25zLyovdGVtcGxhdGVzLyp9Ogh0ZW1wbGF0ZRKh", + "AQoORGVsZXRlVGVtcGxhdGUSNS5nb29nbGUuY2xvdWQubW9kZWxhcm1vci52", + "MWJldGEuRGVsZXRlVGVtcGxhdGVSZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVm", + "LkVtcHR5IkDaQQRuYW1lgtPkkwIzKjEvdjFiZXRhL3tuYW1lPXByb2plY3Rz", + "LyovbG9jYXRpb25zLyovdGVtcGxhdGVzLyp9EqwCCg9HZXRGbG9vclNldHRp", + "bmcSNi5nb29nbGUuY2xvdWQubW9kZWxhcm1vci52MWJldGEuR2V0Rmxvb3JT", "ZXR0aW5nUmVxdWVzdBosLmdvb2dsZS5jbG91ZC5tb2RlbGFybW9yLnYxYmV0", - "YS5GbG9vclNldHRpbmcingLaQRlmbG9vcl9zZXR0aW5nLHVwZGF0ZV9tYXNr", - "gtPkkwL7ATJAL3YxYmV0YS97Zmxvb3Jfc2V0dGluZy5uYW1lPXByb2plY3Rz", - "LyovbG9jYXRpb25zLyovZmxvb3JTZXR0aW5nfToNZmxvb3Jfc2V0dGluZ1pQ", - "Mj8vdjFiZXRhL3tmbG9vcl9zZXR0aW5nLm5hbWU9Zm9sZGVycy8qL2xvY2F0", - "aW9ucy8qL2Zsb29yU2V0dGluZ306DWZsb29yX3NldHRpbmdaVjJFL3YxYmV0", - "YS97Zmxvb3Jfc2V0dGluZy5uYW1lPW9yZ2FuaXphdGlvbnMvKi9sb2NhdGlv", - "bnMvKi9mbG9vclNldHRpbmd9Og1mbG9vcl9zZXR0aW5nEtwBChJTYW5pdGl6", - "ZVVzZXJQcm9tcHQSOS5nb29nbGUuY2xvdWQubW9kZWxhcm1vci52MWJldGEu", - "U2FuaXRpemVVc2VyUHJvbXB0UmVxdWVzdBo6Lmdvb2dsZS5jbG91ZC5tb2Rl", - "bGFybW9yLnYxYmV0YS5TYW5pdGl6ZVVzZXJQcm9tcHRSZXNwb25zZSJPgtPk", - "kwJJIkQvdjFiZXRhL3tuYW1lPXByb2plY3RzLyovbG9jYXRpb25zLyovdGVt", - "cGxhdGVzLyp9OnNhbml0aXplVXNlclByb21wdDoBKhLoAQoVU2FuaXRpemVN", - "b2RlbFJlc3BvbnNlEjwuZ29vZ2xlLmNsb3VkLm1vZGVsYXJtb3IudjFiZXRh", - "LlNhbml0aXplTW9kZWxSZXNwb25zZVJlcXVlc3QaPS5nb29nbGUuY2xvdWQu", - "bW9kZWxhcm1vci52MWJldGEuU2FuaXRpemVNb2RlbFJlc3BvbnNlUmVzcG9u", - "c2UiUoLT5JMCTCJHL3YxYmV0YS97bmFtZT1wcm9qZWN0cy8qL2xvY2F0aW9u", - "cy8qL3RlbXBsYXRlcy8qfTpzYW5pdGl6ZU1vZGVsUmVzcG9uc2U6ASoaTcpB", - "GW1vZGVsYXJtb3IuZ29vZ2xlYXBpcy5jb23SQS5odHRwczovL3d3dy5nb29n", - "bGVhcGlzLmNvbS9hdXRoL2Nsb3VkLXBsYXRmb3JtQrkBCiJjb20uZ29vZ2xl", - "LmNsb3VkLm1vZGVsYXJtb3IudjFiZXRhQgtWMW1haW5Qcm90b1ABWkJjbG91", - "ZC5nb29nbGUuY29tL2dvL21vZGVsYXJtb3IvYXBpdjFiZXRhL21vZGVsYXJt", - "b3JwYjttb2RlbGFybW9ycGKqAh5Hb29nbGUuQ2xvdWQuTW9kZWxBcm1vci5W", - "MUJldGHKAh5Hb29nbGVcQ2xvdWRcTW9kZWxBcm1vclxWMWJldGFiBnByb3Rv", - "Mw==")); + "YS5GbG9vclNldHRpbmcisgHaQQRuYW1lgtPkkwKkARIyL3YxYmV0YS97bmFt", + "ZT1wcm9qZWN0cy8qL2xvY2F0aW9ucy8qL2Zsb29yU2V0dGluZ31aMxIxL3Yx", + "YmV0YS97bmFtZT1mb2xkZXJzLyovbG9jYXRpb25zLyovZmxvb3JTZXR0aW5n", + "fVo5EjcvdjFiZXRhL3tuYW1lPW9yZ2FuaXphdGlvbnMvKi9sb2NhdGlvbnMv", + "Ki9mbG9vclNldHRpbmd9Ep4DChJVcGRhdGVGbG9vclNldHRpbmcSOS5nb29n", + "bGUuY2xvdWQubW9kZWxhcm1vci52MWJldGEuVXBkYXRlRmxvb3JTZXR0aW5n", + "UmVxdWVzdBosLmdvb2dsZS5jbG91ZC5tb2RlbGFybW9yLnYxYmV0YS5GbG9v", + "clNldHRpbmcingLaQRlmbG9vcl9zZXR0aW5nLHVwZGF0ZV9tYXNrgtPkkwL7", + "ATJAL3YxYmV0YS97Zmxvb3Jfc2V0dGluZy5uYW1lPXByb2plY3RzLyovbG9j", + "YXRpb25zLyovZmxvb3JTZXR0aW5nfToNZmxvb3Jfc2V0dGluZ1pQMj8vdjFi", + "ZXRhL3tmbG9vcl9zZXR0aW5nLm5hbWU9Zm9sZGVycy8qL2xvY2F0aW9ucy8q", + "L2Zsb29yU2V0dGluZ306DWZsb29yX3NldHRpbmdaVjJFL3YxYmV0YS97Zmxv", + "b3Jfc2V0dGluZy5uYW1lPW9yZ2FuaXphdGlvbnMvKi9sb2NhdGlvbnMvKi9m", + "bG9vclNldHRpbmd9Og1mbG9vcl9zZXR0aW5nEtwBChJTYW5pdGl6ZVVzZXJQ", + "cm9tcHQSOS5nb29nbGUuY2xvdWQubW9kZWxhcm1vci52MWJldGEuU2FuaXRp", + "emVVc2VyUHJvbXB0UmVxdWVzdBo6Lmdvb2dsZS5jbG91ZC5tb2RlbGFybW9y", + "LnYxYmV0YS5TYW5pdGl6ZVVzZXJQcm9tcHRSZXNwb25zZSJPgtPkkwJJIkQv", + "djFiZXRhL3tuYW1lPXByb2plY3RzLyovbG9jYXRpb25zLyovdGVtcGxhdGVz", + "Lyp9OnNhbml0aXplVXNlclByb21wdDoBKhLoAQoVU2FuaXRpemVNb2RlbFJl", + "c3BvbnNlEjwuZ29vZ2xlLmNsb3VkLm1vZGVsYXJtb3IudjFiZXRhLlNhbml0", + "aXplTW9kZWxSZXNwb25zZVJlcXVlc3QaPS5nb29nbGUuY2xvdWQubW9kZWxh", + "cm1vci52MWJldGEuU2FuaXRpemVNb2RlbFJlc3BvbnNlUmVzcG9uc2UiUoLT", + "5JMCTCJHL3YxYmV0YS97bmFtZT1wcm9qZWN0cy8qL2xvY2F0aW9ucy8qL3Rl", + "bXBsYXRlcy8qfTpzYW5pdGl6ZU1vZGVsUmVzcG9uc2U6ASoSlwEKGFN0cmVh", + "bVNhbml0aXplVXNlclByb21wdBI5Lmdvb2dsZS5jbG91ZC5tb2RlbGFybW9y", + "LnYxYmV0YS5TYW5pdGl6ZVVzZXJQcm9tcHRSZXF1ZXN0GjouZ29vZ2xlLmNs", + "b3VkLm1vZGVsYXJtb3IudjFiZXRhLlNhbml0aXplVXNlclByb21wdFJlc3Bv", + "bnNlIgAoATABEqABChtTdHJlYW1TYW5pdGl6ZU1vZGVsUmVzcG9uc2USPC5n", + "b29nbGUuY2xvdWQubW9kZWxhcm1vci52MWJldGEuU2FuaXRpemVNb2RlbFJl", + "c3BvbnNlUmVxdWVzdBo9Lmdvb2dsZS5jbG91ZC5tb2RlbGFybW9yLnYxYmV0", + "YS5TYW5pdGl6ZU1vZGVsUmVzcG9uc2VSZXNwb25zZSIAKAEwARpNykEZbW9k", + "ZWxhcm1vci5nb29nbGVhcGlzLmNvbdJBLmh0dHBzOi8vd3d3Lmdvb2dsZWFw", + "aXMuY29tL2F1dGgvY2xvdWQtcGxhdGZvcm1CuQEKImNvbS5nb29nbGUuY2xv", + "dWQubW9kZWxhcm1vci52MWJldGFCC1YxbWFpblByb3RvUAFaQmNsb3VkLmdv", + "b2dsZS5jb20vZ28vbW9kZWxhcm1vci9hcGl2MWJldGEvbW9kZWxhcm1vcnBi", + "O21vZGVsYXJtb3JwYqoCHkdvb2dsZS5DbG91ZC5Nb2RlbEFybW9yLlYxQmV0", + "YcoCHkdvb2dsZVxDbG91ZFxNb2RlbEFybW9yXFYxYmV0YWIGcHJvdG8z")); 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.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Cloud.ModelArmor.V1Beta.FilterMatchState), typeof(global::Google.Cloud.ModelArmor.V1Beta.FilterExecutionState), typeof(global::Google.Cloud.ModelArmor.V1Beta.RaiFilterType), typeof(global::Google.Cloud.ModelArmor.V1Beta.DetectionConfidenceLevel), typeof(global::Google.Cloud.ModelArmor.V1Beta.SdpFindingLikelihood), typeof(global::Google.Cloud.ModelArmor.V1Beta.InvocationResult), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Cloud.ModelArmor.V1Beta.FilterMatchState), typeof(global::Google.Cloud.ModelArmor.V1Beta.FilterExecutionState), typeof(global::Google.Cloud.ModelArmor.V1Beta.RaiFilterType), typeof(global::Google.Cloud.ModelArmor.V1Beta.DetectionConfidenceLevel), typeof(global::Google.Cloud.ModelArmor.V1Beta.SdpFindingLikelihood), typeof(global::Google.Cloud.ModelArmor.V1Beta.InvocationResult), typeof(global::Google.Cloud.ModelArmor.V1Beta.StreamingMode), }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.ModelArmor.V1Beta.Template), global::Google.Cloud.ModelArmor.V1Beta.Template.Parser, new[]{ "Name", "CreateTime", "UpdateTime", "Labels", "FilterConfig", "TemplateMetadata" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.ModelArmor.V1Beta.Template.Types.TemplateMetadata), global::Google.Cloud.ModelArmor.V1Beta.Template.Types.TemplateMetadata.Parser, new[]{ "IgnorePartialInvocationFailures", "CustomPromptSafetyErrorCode", "CustomPromptSafetyErrorMessage", "CustomLlmResponseSafetyErrorCode", "CustomLlmResponseSafetyErrorMessage", "LogTemplateOperations", "LogSanitizeOperations", "EnforcementType", "MultiLanguageDetection" }, null, new[]{ typeof(global::Google.Cloud.ModelArmor.V1Beta.Template.Types.TemplateMetadata.Types.EnforcementType) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.ModelArmor.V1Beta.Template.Types.TemplateMetadata.Types.MultiLanguageDetection), global::Google.Cloud.ModelArmor.V1Beta.Template.Types.TemplateMetadata.Types.MultiLanguageDetection.Parser, new[]{ "EnableMultiLanguageDetection" }, null, null, null, null)}), null, }), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.ModelArmor.V1Beta.FloorSetting), global::Google.Cloud.ModelArmor.V1Beta.FloorSetting.Parser, new[]{ "Name", "CreateTime", "UpdateTime", "FilterConfig", "EnableFloorSettingEnforcement", "IntegratedServices", "AiPlatformFloorSetting", "FloorSettingMetadata" }, new[]{ "EnableFloorSettingEnforcement", "AiPlatformFloorSetting" }, new[]{ typeof(global::Google.Cloud.ModelArmor.V1Beta.FloorSetting.Types.IntegratedService) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.ModelArmor.V1Beta.FloorSetting.Types.FloorSettingMetadata), global::Google.Cloud.ModelArmor.V1Beta.FloorSetting.Types.FloorSettingMetadata.Parser, new[]{ "MultiLanguageDetection" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.ModelArmor.V1Beta.FloorSetting.Types.FloorSettingMetadata.Types.MultiLanguageDetection), global::Google.Cloud.ModelArmor.V1Beta.FloorSetting.Types.FloorSettingMetadata.Types.MultiLanguageDetection.Parser, new[]{ "EnableMultiLanguageDetection" }, null, null, null, null)})}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.ModelArmor.V1Beta.FloorSetting), global::Google.Cloud.ModelArmor.V1Beta.FloorSetting.Parser, new[]{ "Name", "CreateTime", "UpdateTime", "FilterConfig", "EnableFloorSettingEnforcement", "IntegratedServices", "AiPlatformFloorSetting", "FloorSettingMetadata", "GoogleMcpServerFloorSetting" }, new[]{ "EnableFloorSettingEnforcement", "AiPlatformFloorSetting", "GoogleMcpServerFloorSetting" }, new[]{ typeof(global::Google.Cloud.ModelArmor.V1Beta.FloorSetting.Types.IntegratedService) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.ModelArmor.V1Beta.FloorSetting.Types.FloorSettingMetadata), global::Google.Cloud.ModelArmor.V1Beta.FloorSetting.Types.FloorSettingMetadata.Parser, new[]{ "MultiLanguageDetection" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.ModelArmor.V1Beta.FloorSetting.Types.FloorSettingMetadata.Types.MultiLanguageDetection), global::Google.Cloud.ModelArmor.V1Beta.FloorSetting.Types.FloorSettingMetadata.Types.MultiLanguageDetection.Parser, new[]{ "EnableMultiLanguageDetection" }, null, null, null, null)})}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.ModelArmor.V1Beta.McpServerFloorSetting), global::Google.Cloud.ModelArmor.V1Beta.McpServerFloorSetting.Parser, new[]{ "InspectOnly", "InspectAndBlock", "EnableCloudLogging", "Apis" }, new[]{ "EnforcementType" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.ModelArmor.V1Beta.AiPlatformFloorSetting), global::Google.Cloud.ModelArmor.V1Beta.AiPlatformFloorSetting.Parser, new[]{ "InspectOnly", "InspectAndBlock", "EnableCloudLogging" }, new[]{ "EnforcementType" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.ModelArmor.V1Beta.ListTemplatesRequest), global::Google.Cloud.ModelArmor.V1Beta.ListTemplatesRequest.Parser, new[]{ "Parent", "PageSize", "PageToken", "Filter", "OrderBy" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.ModelArmor.V1Beta.ListTemplatesResponse), global::Google.Cloud.ModelArmor.V1Beta.ListTemplatesResponse.Parser, new[]{ "Templates", "NextPageToken", "Unreachable" }, null, null, null, null), @@ -395,8 +417,8 @@ static ServiceReflection() { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.ModelArmor.V1Beta.SdpFilterSettings), global::Google.Cloud.ModelArmor.V1Beta.SdpFilterSettings.Parser, new[]{ "BasicConfig", "AdvancedConfig" }, new[]{ "SdpConfiguration" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.ModelArmor.V1Beta.SdpBasicConfig), global::Google.Cloud.ModelArmor.V1Beta.SdpBasicConfig.Parser, new[]{ "FilterEnforcement" }, null, new[]{ typeof(global::Google.Cloud.ModelArmor.V1Beta.SdpBasicConfig.Types.SdpBasicConfigEnforcement) }, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.ModelArmor.V1Beta.SdpAdvancedConfig), global::Google.Cloud.ModelArmor.V1Beta.SdpAdvancedConfig.Parser, new[]{ "InspectTemplate", "DeidentifyTemplate" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.ModelArmor.V1Beta.SanitizeUserPromptRequest), global::Google.Cloud.ModelArmor.V1Beta.SanitizeUserPromptRequest.Parser, new[]{ "Name", "UserPromptData", "MultiLanguageDetectionMetadata" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.ModelArmor.V1Beta.SanitizeModelResponseRequest), global::Google.Cloud.ModelArmor.V1Beta.SanitizeModelResponseRequest.Parser, new[]{ "Name", "ModelResponseData", "UserPrompt", "MultiLanguageDetectionMetadata" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.ModelArmor.V1Beta.SanitizeUserPromptRequest), global::Google.Cloud.ModelArmor.V1Beta.SanitizeUserPromptRequest.Parser, new[]{ "Name", "UserPromptData", "MultiLanguageDetectionMetadata", "StreamingMode" }, new[]{ "StreamingMode" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.ModelArmor.V1Beta.SanitizeModelResponseRequest), global::Google.Cloud.ModelArmor.V1Beta.SanitizeModelResponseRequest.Parser, new[]{ "Name", "ModelResponseData", "UserPrompt", "MultiLanguageDetectionMetadata", "StreamingMode" }, new[]{ "StreamingMode" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.ModelArmor.V1Beta.SanitizeUserPromptResponse), global::Google.Cloud.ModelArmor.V1Beta.SanitizeUserPromptResponse.Parser, new[]{ "SanitizationResult" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.ModelArmor.V1Beta.SanitizeModelResponseResponse), global::Google.Cloud.ModelArmor.V1Beta.SanitizeModelResponseResponse.Parser, new[]{ "SanitizationResult" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.ModelArmor.V1Beta.SanitizationResult), global::Google.Cloud.ModelArmor.V1Beta.SanitizationResult.Parser, new[]{ "FilterMatchState", "FilterResults", "InvocationResult", "SanitizationMetadata" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.ModelArmor.V1Beta.SanitizationResult.Types.SanitizationMetadata), global::Google.Cloud.ModelArmor.V1Beta.SanitizationResult.Types.SanitizationMetadata.Parser, new[]{ "ErrorCode", "ErrorMessage", "IgnorePartialInvocationFailures" }, null, null, null, null), @@ -408,7 +430,7 @@ static ServiceReflection() { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.ModelArmor.V1Beta.SdpFilterResult), global::Google.Cloud.ModelArmor.V1Beta.SdpFilterResult.Parser, new[]{ "InspectResult", "DeidentifyResult" }, new[]{ "Result" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.ModelArmor.V1Beta.SdpInspectResult), global::Google.Cloud.ModelArmor.V1Beta.SdpInspectResult.Parser, new[]{ "ExecutionState", "MessageItems", "MatchState", "Findings", "FindingsTruncated" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.ModelArmor.V1Beta.DataItem), global::Google.Cloud.ModelArmor.V1Beta.DataItem.Parser, new[]{ "Text", "ByteItem" }, new[]{ "DataItem" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.ModelArmor.V1Beta.ByteDataItem), global::Google.Cloud.ModelArmor.V1Beta.ByteDataItem.Parser, new[]{ "ByteDataType", "ByteData" }, null, new[]{ typeof(global::Google.Cloud.ModelArmor.V1Beta.ByteDataItem.Types.ByteItemType) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.ModelArmor.V1Beta.ByteDataItem), global::Google.Cloud.ModelArmor.V1Beta.ByteDataItem.Parser, new[]{ "ByteDataType", "ByteData", "FileLabel" }, null, new[]{ typeof(global::Google.Cloud.ModelArmor.V1Beta.ByteDataItem.Types.ByteItemType) }, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.ModelArmor.V1Beta.SdpDeidentifyResult), global::Google.Cloud.ModelArmor.V1Beta.SdpDeidentifyResult.Parser, new[]{ "ExecutionState", "MessageItems", "MatchState", "Data", "TransformedBytes", "InfoTypes" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.ModelArmor.V1Beta.SdpFinding), global::Google.Cloud.ModelArmor.V1Beta.SdpFinding.Parser, new[]{ "InfoType", "Likelihood", "Location" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.ModelArmor.V1Beta.SdpFinding.Types.SdpFindingLocation), global::Google.Cloud.ModelArmor.V1Beta.SdpFinding.Types.SdpFindingLocation.Parser, new[]{ "ByteRange", "CodepointRange" }, null, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.ModelArmor.V1Beta.PiAndJailbreakFilterResult), global::Google.Cloud.ModelArmor.V1Beta.PiAndJailbreakFilterResult.Parser, new[]{ "ExecutionState", "MessageItems", "MatchState", "ConfidenceLevel" }, null, null, null, null), @@ -565,6 +587,24 @@ public enum InvocationResult { [pbr::OriginalName("FAILURE")] Failure = 3, } + /// + /// Streaming Mode for Sanitize* API. + /// + public enum StreamingMode { + /// + /// Default value. + /// + [pbr::OriginalName("STREAMING_MODE_UNSPECIFIED")] Unspecified = 0, + /// + /// Buffered Streaming mode. + /// + [pbr::OriginalName("STREAMING_MODE_BUFFERED")] Buffered = 1, + /// + /// Real Time Streaming mode. + /// + [pbr::OriginalName("STREAMING_MODE_REALTIME")] Realtime = 2, + } + #endregion #region Messages @@ -1823,6 +1863,7 @@ public FloorSetting(FloorSetting other) : this() { integratedServices_ = other.integratedServices_.Clone(); aiPlatformFloorSetting_ = other.aiPlatformFloorSetting_ != null ? other.aiPlatformFloorSetting_.Clone() : null; floorSettingMetadata_ = other.floorSettingMetadata_ != null ? other.floorSettingMetadata_.Clone() : null; + googleMcpServerFloorSetting_ = other.googleMcpServerFloorSetting_ != null ? other.googleMcpServerFloorSetting_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -1967,6 +2008,21 @@ public void ClearEnableFloorSettingEnforcement() { } } + /// Field number for the "google_mcp_server_floor_setting" field. + public const int GoogleMcpServerFloorSettingFieldNumber = 9; + private global::Google.Cloud.ModelArmor.V1Beta.McpServerFloorSetting googleMcpServerFloorSetting_; + /// + /// Optional. Google MCP Server floor setting. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.ModelArmor.V1Beta.McpServerFloorSetting GoogleMcpServerFloorSetting { + get { return googleMcpServerFloorSetting_; } + set { + googleMcpServerFloorSetting_ = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -1990,6 +2046,7 @@ public bool Equals(FloorSetting other) { if(!integratedServices_.Equals(other.integratedServices_)) return false; if (!object.Equals(AiPlatformFloorSetting, other.AiPlatformFloorSetting)) return false; if (!object.Equals(FloorSettingMetadata, other.FloorSettingMetadata)) return false; + if (!object.Equals(GoogleMcpServerFloorSetting, other.GoogleMcpServerFloorSetting)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -2005,6 +2062,7 @@ public override int GetHashCode() { hash ^= integratedServices_.GetHashCode(); if (aiPlatformFloorSetting_ != null) hash ^= AiPlatformFloorSetting.GetHashCode(); if (floorSettingMetadata_ != null) hash ^= FloorSettingMetadata.GetHashCode(); + if (googleMcpServerFloorSetting_ != null) hash ^= GoogleMcpServerFloorSetting.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -2052,6 +2110,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(66); output.WriteMessage(FloorSettingMetadata); } + if (googleMcpServerFloorSetting_ != null) { + output.WriteRawTag(74); + output.WriteMessage(GoogleMcpServerFloorSetting); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -2091,6 +2153,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(66); output.WriteMessage(FloorSettingMetadata); } + if (googleMcpServerFloorSetting_ != null) { + output.WriteRawTag(74); + output.WriteMessage(GoogleMcpServerFloorSetting); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -2123,6 +2189,9 @@ public int CalculateSize() { if (floorSettingMetadata_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(FloorSettingMetadata); } + if (googleMcpServerFloorSetting_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GoogleMcpServerFloorSetting); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -2172,6 +2241,12 @@ public void MergeFrom(FloorSetting other) { } FloorSettingMetadata.MergeFrom(other.FloorSettingMetadata); } + if (other.googleMcpServerFloorSetting_ != null) { + if (googleMcpServerFloorSetting_ == null) { + GoogleMcpServerFloorSetting = new global::Google.Cloud.ModelArmor.V1Beta.McpServerFloorSetting(); + } + GoogleMcpServerFloorSetting.MergeFrom(other.GoogleMcpServerFloorSetting); + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -2239,6 +2314,13 @@ public void MergeFrom(pb::CodedInputStream input) { input.ReadMessage(FloorSettingMetadata); break; } + case 74: { + if (googleMcpServerFloorSetting_ == null) { + GoogleMcpServerFloorSetting = new global::Google.Cloud.ModelArmor.V1Beta.McpServerFloorSetting(); + } + input.ReadMessage(GoogleMcpServerFloorSetting); + break; + } } } #endif @@ -2306,6 +2388,13 @@ public void MergeFrom(pb::CodedInputStream input) { input.ReadMessage(FloorSettingMetadata); break; } + case 74: { + if (googleMcpServerFloorSetting_ == null) { + GoogleMcpServerFloorSetting = new global::Google.Cloud.ModelArmor.V1Beta.McpServerFloorSetting(); + } + input.ReadMessage(GoogleMcpServerFloorSetting); + break; + } } } } @@ -2328,6 +2417,10 @@ public enum IntegratedService { /// AI Platform. /// [pbr::OriginalName("AI_PLATFORM")] AiPlatform = 1, + /// + /// Google MCP Server (via Shim Service Extension) + /// + [pbr::OriginalName("GOOGLE_MCP_SERVER")] GoogleMcpServer = 2, } /// @@ -2725,38 +2818,417 @@ public void MergeFrom(pb::CodedInputStream input) { #endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - if ((tag & 7) == 4) { - // Abort on any end group tag. - return; - } - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - EnableMultiLanguageDetection = input.ReadBool(); - break; - } - } - } - } - #endif + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + EnableMultiLanguageDetection = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + } + #endregion + + } + + /// + /// Message describing MCP Server Floor Setting. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class McpServerFloorSetting : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new McpServerFloorSetting()); + 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.ModelArmor.V1Beta.ServiceReflection.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 McpServerFloorSetting() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public McpServerFloorSetting(McpServerFloorSetting other) : this() { + enableCloudLogging_ = other.enableCloudLogging_; + apis_ = other.apis_.Clone(); + switch (other.EnforcementTypeCase) { + case EnforcementTypeOneofCase.InspectOnly: + InspectOnly = other.InspectOnly; + break; + case EnforcementTypeOneofCase.InspectAndBlock: + InspectAndBlock = other.InspectAndBlock; + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public McpServerFloorSetting Clone() { + return new McpServerFloorSetting(this); + } + + /// Field number for the "inspect_only" field. + public const int InspectOnlyFieldNumber = 1; + /// + /// Optional. If true, Model Armor filters will be run in inspect only mode. + /// No action will be taken on the request. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool InspectOnly { + get { return HasInspectOnly ? (bool) enforcementType_ : false; } + set { + enforcementType_ = value; + enforcementTypeCase_ = EnforcementTypeOneofCase.InspectOnly; + } + } + /// Gets whether the "inspect_only" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasInspectOnly { + get { return enforcementTypeCase_ == EnforcementTypeOneofCase.InspectOnly; } + } + /// Clears the value of the oneof if it's currently set to "inspect_only" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearInspectOnly() { + if (HasInspectOnly) { + ClearEnforcementType(); + } + } + + /// Field number for the "inspect_and_block" field. + public const int InspectAndBlockFieldNumber = 2; + /// + /// Optional. If true, Model Armor filters will be run in inspect and block + /// mode. Requests that trip Model Armor filters will be blocked. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool InspectAndBlock { + get { return HasInspectAndBlock ? (bool) enforcementType_ : false; } + set { + enforcementType_ = value; + enforcementTypeCase_ = EnforcementTypeOneofCase.InspectAndBlock; + } + } + /// Gets whether the "inspect_and_block" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasInspectAndBlock { + get { return enforcementTypeCase_ == EnforcementTypeOneofCase.InspectAndBlock; } + } + /// Clears the value of the oneof if it's currently set to "inspect_and_block" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearInspectAndBlock() { + if (HasInspectAndBlock) { + ClearEnforcementType(); + } + } + + /// Field number for the "enable_cloud_logging" field. + public const int EnableCloudLoggingFieldNumber = 3; + private bool enableCloudLogging_; + /// + /// Optional. If true, log Model Armor filter results to Cloud Logging. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool EnableCloudLogging { + get { return enableCloudLogging_; } + set { + enableCloudLogging_ = value; + } + } + + /// Field number for the "apis" field. + public const int ApisFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_apis_codec + = pb::FieldCodec.ForString(34); + private readonly pbc::RepeatedField apis_ = new pbc::RepeatedField(); + /// + /// Optional. List of MCP servers for which the MCP floor setting is + /// applicable. Examples: "bigquery.googleapis.com/mcp", + /// "run.googleapis.com/mcp" Empty list denotes that the floor setting is + /// applicable to all MCP servers. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Apis { + get { return apis_; } + } + + private object enforcementType_; + /// Enum of possible cases for the "enforcement_type" oneof. + public enum EnforcementTypeOneofCase { + None = 0, + InspectOnly = 1, + InspectAndBlock = 2, + } + private EnforcementTypeOneofCase enforcementTypeCase_ = EnforcementTypeOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnforcementTypeOneofCase EnforcementTypeCase { + get { return enforcementTypeCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEnforcementType() { + enforcementTypeCase_ = EnforcementTypeOneofCase.None; + enforcementType_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as McpServerFloorSetting); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(McpServerFloorSetting other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (InspectOnly != other.InspectOnly) return false; + if (InspectAndBlock != other.InspectAndBlock) return false; + if (EnableCloudLogging != other.EnableCloudLogging) return false; + if(!apis_.Equals(other.apis_)) return false; + if (EnforcementTypeCase != other.EnforcementTypeCase) 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 (HasInspectOnly) hash ^= InspectOnly.GetHashCode(); + if (HasInspectAndBlock) hash ^= InspectAndBlock.GetHashCode(); + if (EnableCloudLogging != false) hash ^= EnableCloudLogging.GetHashCode(); + hash ^= apis_.GetHashCode(); + hash ^= (int) enforcementTypeCase_; + 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 (HasInspectOnly) { + output.WriteRawTag(8); + output.WriteBool(InspectOnly); + } + if (HasInspectAndBlock) { + output.WriteRawTag(16); + output.WriteBool(InspectAndBlock); + } + if (EnableCloudLogging != false) { + output.WriteRawTag(24); + output.WriteBool(EnableCloudLogging); + } + apis_.WriteTo(output, _repeated_apis_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) { + if (HasInspectOnly) { + output.WriteRawTag(8); + output.WriteBool(InspectOnly); + } + if (HasInspectAndBlock) { + output.WriteRawTag(16); + output.WriteBool(InspectAndBlock); + } + if (EnableCloudLogging != false) { + output.WriteRawTag(24); + output.WriteBool(EnableCloudLogging); + } + apis_.WriteTo(ref output, _repeated_apis_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; + if (HasInspectOnly) { + size += 1 + 1; + } + if (HasInspectAndBlock) { + size += 1 + 1; + } + if (EnableCloudLogging != false) { + size += 1 + 1; + } + size += apis_.CalculateSize(_repeated_apis_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(McpServerFloorSetting other) { + if (other == null) { + return; + } + if (other.EnableCloudLogging != false) { + EnableCloudLogging = other.EnableCloudLogging; + } + apis_.Add(other.apis_); + switch (other.EnforcementTypeCase) { + case EnforcementTypeOneofCase.InspectOnly: + InspectOnly = other.InspectOnly; + break; + case EnforcementTypeOneofCase.InspectAndBlock: + InspectAndBlock = other.InspectAndBlock; + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + InspectOnly = input.ReadBool(); + break; + } + case 16: { + InspectAndBlock = input.ReadBool(); + break; + } + case 24: { + EnableCloudLogging = input.ReadBool(); + break; + } + case 34: { + apis_.AddEntriesFrom(input, _repeated_apis_codec); + break; } - } - #endregion - } + #endif + } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + InspectOnly = input.ReadBool(); + break; + } + case 16: { + InspectAndBlock = input.ReadBool(); + break; + } + case 24: { + EnableCloudLogging = input.ReadBool(); + break; + } + case 34: { + apis_.AddEntriesFrom(ref input, _repeated_apis_codec); + break; + } + } + } } - #endregion + #endif } @@ -2778,7 +3250,7 @@ public sealed partial class AiPlatformFloorSetting : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Cloud.ModelArmor.V1Beta.ServiceReflection.Descriptor.MessageTypes[11]; } + get { return global::Google.Cloud.ModelArmor.V1Beta.ServiceReflection.Descriptor.MessageTypes[12]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -5708,7 +6180,7 @@ public sealed partial class PiAndJailbreakFilterSettings : pb::IMessage [pbr::OriginalName("ENABLED")] Enabled = 1, /// - /// Enabled + /// Disabled /// [pbr::OriginalName("DISABLED")] Disabled = 2, } @@ -5984,7 +6456,7 @@ public sealed partial class MaliciousUriFilterSettings : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Cloud.ModelArmor.V1Beta.ServiceReflection.Descriptor.MessageTypes[14]; } + get { return global::Google.Cloud.ModelArmor.V1Beta.ServiceReflection.Descriptor.MessageTypes[15]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -6663,7 +7135,7 @@ public sealed partial class SdpFilterSettings : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Cloud.ModelArmor.V1Beta.ServiceReflection.Descriptor.MessageTypes[15]; } + get { return global::Google.Cloud.ModelArmor.V1Beta.ServiceReflection.Descriptor.MessageTypes[16]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -6972,7 +7444,7 @@ public sealed partial class SdpBasicConfig : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Cloud.ModelArmor.V1Beta.ServiceReflection.Descriptor.MessageTypes[16]; } + get { return global::Google.Cloud.ModelArmor.V1Beta.ServiceReflection.Descriptor.MessageTypes[17]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -7204,7 +7676,7 @@ public sealed partial class SdpAdvancedConfig : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Cloud.ModelArmor.V1Beta.ServiceReflection.Descriptor.MessageTypes[17]; } + get { return global::Google.Cloud.ModelArmor.V1Beta.ServiceReflection.Descriptor.MessageTypes[18]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -7459,6 +7931,7 @@ public sealed partial class SanitizeUserPromptRequest : pb::IMessage _parser = new pb::MessageParser(() => new SanitizeUserPromptRequest()); private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } @@ -7466,7 +7939,7 @@ public sealed partial class SanitizeUserPromptRequest : pb::IMessageField number for the "streaming_mode" field. + public const int StreamingModeFieldNumber = 7; + private readonly static global::Google.Cloud.ModelArmor.V1Beta.StreamingMode StreamingModeDefaultValue = global::Google.Cloud.ModelArmor.V1Beta.StreamingMode.Unspecified; + + private global::Google.Cloud.ModelArmor.V1Beta.StreamingMode streamingMode_; + /// + /// Optional. Streaming Mode for StreamSanitize* API. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.ModelArmor.V1Beta.StreamingMode StreamingMode { + get { if ((_hasBits0 & 1) != 0) { return streamingMode_; } else { return StreamingModeDefaultValue; } } + set { + _hasBits0 |= 1; + streamingMode_ = value; + } + } + /// Gets whether the "streaming_mode" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasStreamingMode { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "streaming_mode" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearStreamingMode() { + _hasBits0 &= ~1; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -7562,6 +8067,7 @@ public bool Equals(SanitizeUserPromptRequest other) { if (Name != other.Name) return false; if (!object.Equals(UserPromptData, other.UserPromptData)) return false; if (!object.Equals(MultiLanguageDetectionMetadata, other.MultiLanguageDetectionMetadata)) return false; + if (StreamingMode != other.StreamingMode) return false; return Equals(_unknownFields, other._unknownFields); } @@ -7572,6 +8078,7 @@ public override int GetHashCode() { if (Name.Length != 0) hash ^= Name.GetHashCode(); if (userPromptData_ != null) hash ^= UserPromptData.GetHashCode(); if (multiLanguageDetectionMetadata_ != null) hash ^= MultiLanguageDetectionMetadata.GetHashCode(); + if (HasStreamingMode) hash ^= StreamingMode.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -7602,6 +8109,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(50); output.WriteMessage(MultiLanguageDetectionMetadata); } + if (HasStreamingMode) { + output.WriteRawTag(56); + output.WriteEnum((int) StreamingMode); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -7624,6 +8135,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(50); output.WriteMessage(MultiLanguageDetectionMetadata); } + if (HasStreamingMode) { + output.WriteRawTag(56); + output.WriteEnum((int) StreamingMode); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -7643,6 +8158,9 @@ public int CalculateSize() { if (multiLanguageDetectionMetadata_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(MultiLanguageDetectionMetadata); } + if (HasStreamingMode) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) StreamingMode); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -7670,6 +8188,9 @@ public void MergeFrom(SanitizeUserPromptRequest other) { } MultiLanguageDetectionMetadata.MergeFrom(other.MultiLanguageDetectionMetadata); } + if (other.HasStreamingMode) { + StreamingMode = other.StreamingMode; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -7707,6 +8228,10 @@ public void MergeFrom(pb::CodedInputStream input) { input.ReadMessage(MultiLanguageDetectionMetadata); break; } + case 56: { + StreamingMode = (global::Google.Cloud.ModelArmor.V1Beta.StreamingMode) input.ReadEnum(); + break; + } } } #endif @@ -7744,6 +8269,10 @@ public void MergeFrom(pb::CodedInputStream input) { input.ReadMessage(MultiLanguageDetectionMetadata); break; } + case 56: { + StreamingMode = (global::Google.Cloud.ModelArmor.V1Beta.StreamingMode) input.ReadEnum(); + break; + } } } } @@ -7762,6 +8291,7 @@ public sealed partial class SanitizeModelResponseRequest : pb::IMessage _parser = new pb::MessageParser(() => new SanitizeModelResponseRequest()); private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } @@ -7769,7 +8299,7 @@ public sealed partial class SanitizeModelResponseRequest : pb::IMessageField number for the "streaming_mode" field. + public const int StreamingModeFieldNumber = 8; + private readonly static global::Google.Cloud.ModelArmor.V1Beta.StreamingMode StreamingModeDefaultValue = global::Google.Cloud.ModelArmor.V1Beta.StreamingMode.Unspecified; + + private global::Google.Cloud.ModelArmor.V1Beta.StreamingMode streamingMode_; + /// + /// Optional. Streaming Mode for StreamSanitize* API. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.ModelArmor.V1Beta.StreamingMode StreamingMode { + get { if ((_hasBits0 & 1) != 0) { return streamingMode_; } else { return StreamingModeDefaultValue; } } + set { + _hasBits0 |= 1; + streamingMode_ = value; + } + } + /// Gets whether the "streaming_mode" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasStreamingMode { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "streaming_mode" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearStreamingMode() { + _hasBits0 &= ~1; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -7882,6 +8444,7 @@ public bool Equals(SanitizeModelResponseRequest other) { if (!object.Equals(ModelResponseData, other.ModelResponseData)) return false; if (UserPrompt != other.UserPrompt) return false; if (!object.Equals(MultiLanguageDetectionMetadata, other.MultiLanguageDetectionMetadata)) return false; + if (StreamingMode != other.StreamingMode) return false; return Equals(_unknownFields, other._unknownFields); } @@ -7893,6 +8456,7 @@ public override int GetHashCode() { if (modelResponseData_ != null) hash ^= ModelResponseData.GetHashCode(); if (UserPrompt.Length != 0) hash ^= UserPrompt.GetHashCode(); if (multiLanguageDetectionMetadata_ != null) hash ^= MultiLanguageDetectionMetadata.GetHashCode(); + if (HasStreamingMode) hash ^= StreamingMode.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -7927,6 +8491,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(58); output.WriteMessage(MultiLanguageDetectionMetadata); } + if (HasStreamingMode) { + output.WriteRawTag(64); + output.WriteEnum((int) StreamingMode); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -7953,6 +8521,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(58); output.WriteMessage(MultiLanguageDetectionMetadata); } + if (HasStreamingMode) { + output.WriteRawTag(64); + output.WriteEnum((int) StreamingMode); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -7975,6 +8547,9 @@ public int CalculateSize() { if (multiLanguageDetectionMetadata_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(MultiLanguageDetectionMetadata); } + if (HasStreamingMode) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) StreamingMode); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -8005,6 +8580,9 @@ public void MergeFrom(SanitizeModelResponseRequest other) { } MultiLanguageDetectionMetadata.MergeFrom(other.MultiLanguageDetectionMetadata); } + if (other.HasStreamingMode) { + StreamingMode = other.StreamingMode; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -8046,6 +8624,10 @@ public void MergeFrom(pb::CodedInputStream input) { input.ReadMessage(MultiLanguageDetectionMetadata); break; } + case 64: { + StreamingMode = (global::Google.Cloud.ModelArmor.V1Beta.StreamingMode) input.ReadEnum(); + break; + } } } #endif @@ -8087,6 +8669,10 @@ public void MergeFrom(pb::CodedInputStream input) { input.ReadMessage(MultiLanguageDetectionMetadata); break; } + case 64: { + StreamingMode = (global::Google.Cloud.ModelArmor.V1Beta.StreamingMode) input.ReadEnum(); + break; + } } } } @@ -8112,7 +8698,7 @@ public sealed partial class SanitizeUserPromptResponse : pb::IMessage /// Optional. Optional Source language of the user prompt. /// - /// If multi-language detection is enabled but language is not set in that case - /// we would automatically detect the source language. + /// If multi-language detection is enabled and this field is not set, the + /// source language will be automatically detected. When a source language is + /// provided, Model Armor uses it to sanitize the input. In that case the + /// system does not perform auto-detection and relies solely on the specified + /// language. + /// + /// This string field accepts a language code from the ISO-639 standard. + /// For a list of languages supported by Model Armor, see + /// [Model Armor supported languages] + /// (https://cloud.google.com/security-command-center/docs/model-armor-overview#languages-supported). + /// For a comprehensive list of language codes, see + /// [ISO-639](https://cloud.google.com/translate/docs/languages#nmt). /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -9411,7 +10007,7 @@ public sealed partial class FilterResult : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Cloud.ModelArmor.V1Beta.ServiceReflection.Descriptor.MessageTypes[24]; } + get { return global::Google.Cloud.ModelArmor.V1Beta.ServiceReflection.Descriptor.MessageTypes[25]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -9938,7 +10534,7 @@ public sealed partial class RaiFilterResult : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Cloud.ModelArmor.V1Beta.ServiceReflection.Descriptor.MessageTypes[25]; } + get { return global::Google.Cloud.ModelArmor.V1Beta.ServiceReflection.Descriptor.MessageTypes[26]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -10028,7 +10624,8 @@ public RaiFilterResult Clone() { private readonly pbc::MapField raiFilterTypeResults_ = new pbc::MapField(); /// /// The map of RAI filter results where key is RAI filter type - either of - /// "sexually_explicit", "hate_speech", "harassment", "dangerous". + /// "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence", + /// "sexually_suggestive". /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -10539,7 +11136,7 @@ public sealed partial class SdpFilterResult : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Cloud.ModelArmor.V1Beta.ServiceReflection.Descriptor.MessageTypes[26]; } + get { return global::Google.Cloud.ModelArmor.V1Beta.ServiceReflection.Descriptor.MessageTypes[27]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -10843,7 +11440,7 @@ public sealed partial class SdpInspectResult : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Cloud.ModelArmor.V1Beta.ServiceReflection.Descriptor.MessageTypes[27]; } + get { return global::Google.Cloud.ModelArmor.V1Beta.ServiceReflection.Descriptor.MessageTypes[28]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -11195,7 +11792,7 @@ public sealed partial class DataItem : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Cloud.ModelArmor.V1Beta.ServiceReflection.Descriptor.MessageTypes[28]; } + get { return global::Google.Cloud.ModelArmor.V1Beta.ServiceReflection.Descriptor.MessageTypes[29]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -11499,7 +12096,7 @@ public sealed partial class ByteDataItem : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Cloud.ModelArmor.V1Beta.ServiceReflection.Descriptor.MessageTypes[29]; } + get { return global::Google.Cloud.ModelArmor.V1Beta.ServiceReflection.Descriptor.MessageTypes[30]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -11521,6 +12118,7 @@ public ByteDataItem() { public ByteDataItem(ByteDataItem other) : this() { byteDataType_ = other.byteDataType_; byteData_ = other.byteData_; + fileLabel_ = other.fileLabel_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -11560,6 +12158,22 @@ public ByteDataItem Clone() { } } + /// Field number for the "file_label" field. + public const int FileLabelFieldNumber = 3; + private string fileLabel_ = ""; + /// + /// Optional. Label of the file. This is used to identify the file in the + /// response. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string FileLabel { + get { return fileLabel_; } + set { + fileLabel_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -11577,6 +12191,7 @@ public bool Equals(ByteDataItem other) { } if (ByteDataType != other.ByteDataType) return false; if (ByteData != other.ByteData) return false; + if (FileLabel != other.FileLabel) return false; return Equals(_unknownFields, other._unknownFields); } @@ -11586,6 +12201,7 @@ public override int GetHashCode() { int hash = 1; if (ByteDataType != global::Google.Cloud.ModelArmor.V1Beta.ByteDataItem.Types.ByteItemType.Unspecified) hash ^= ByteDataType.GetHashCode(); if (ByteData.Length != 0) hash ^= ByteData.GetHashCode(); + if (FileLabel.Length != 0) hash ^= FileLabel.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -11612,6 +12228,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(18); output.WriteBytes(ByteData); } + if (FileLabel.Length != 0) { + output.WriteRawTag(26); + output.WriteString(FileLabel); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -11630,6 +12250,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(18); output.WriteBytes(ByteData); } + if (FileLabel.Length != 0) { + output.WriteRawTag(26); + output.WriteString(FileLabel); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -11646,6 +12270,9 @@ public int CalculateSize() { if (ByteData.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeBytesSize(ByteData); } + if (FileLabel.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(FileLabel); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -11664,6 +12291,9 @@ public void MergeFrom(ByteDataItem other) { if (other.ByteData.Length != 0) { ByteData = other.ByteData; } + if (other.FileLabel.Length != 0) { + FileLabel = other.FileLabel; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -11691,6 +12321,10 @@ public void MergeFrom(pb::CodedInputStream input) { ByteData = input.ReadBytes(); break; } + case 26: { + FileLabel = input.ReadString(); + break; + } } } #endif @@ -11718,6 +12352,10 @@ public void MergeFrom(pb::CodedInputStream input) { ByteData = input.ReadBytes(); break; } + case 26: { + FileLabel = input.ReadString(); + break; + } } } } @@ -11764,6 +12402,10 @@ public enum ByteItemType { /// CSV /// [pbr::OriginalName("CSV")] Csv = 7, + /// + /// ZIP + /// + [pbr::OriginalName("ZIP")] Zip = 9, } } @@ -11789,7 +12431,7 @@ public sealed partial class SdpDeidentifyResult : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Cloud.ModelArmor.V1Beta.ServiceReflection.Descriptor.MessageTypes[31]; } + get { return global::Google.Cloud.ModelArmor.V1Beta.ServiceReflection.Descriptor.MessageTypes[32]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -12520,6 +13162,7 @@ public SdpFindingLocation Clone() { /// These are relative to the finding's containing element. /// Note that when the content is not textual, this references /// the UTF-8 encoded textual representation of the content. + /// Note: Omitted if content is an image. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -12537,6 +13180,7 @@ public SdpFindingLocation Clone() { /// Unicode character offsets delimiting the finding. /// These are relative to the finding's containing element. /// Provided when the content is text. + /// Note: Omitted if content is an image. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -12753,7 +13397,7 @@ public sealed partial class PiAndJailbreakFilterResult : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Cloud.ModelArmor.V1Beta.ServiceReflection.Descriptor.MessageTypes[35]; } + get { return global::Google.Cloud.ModelArmor.V1Beta.ServiceReflection.Descriptor.MessageTypes[36]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -14367,7 +15011,7 @@ public sealed partial class CsamFilterResult : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Cloud.ModelArmor.V1Beta.ServiceReflection.Descriptor.MessageTypes[36]; } + get { return global::Google.Cloud.ModelArmor.V1Beta.ServiceReflection.Descriptor.MessageTypes[37]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -14644,7 +15288,7 @@ public sealed partial class MessageItem : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Cloud.ModelArmor.V1Beta.ServiceReflection.Descriptor.MessageTypes[37]; } + get { return global::Google.Cloud.ModelArmor.V1Beta.ServiceReflection.Descriptor.MessageTypes[38]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -14919,7 +15563,7 @@ public sealed partial class RangeInfo : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Cloud.ModelArmor.V1Beta.ServiceReflection.Descriptor.MessageTypes[38]; } + get { return global::Google.Cloud.ModelArmor.V1Beta.ServiceReflection.Descriptor.MessageTypes[39]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] diff --git a/apis/Google.Cloud.ModelArmor.V1Beta/Google.Cloud.ModelArmor.V1Beta/ServiceGrpc.g.cs b/apis/Google.Cloud.ModelArmor.V1Beta/Google.Cloud.ModelArmor.V1Beta/ServiceGrpc.g.cs index b4c7692a23ff..1a64537e5d75 100644 --- a/apis/Google.Cloud.ModelArmor.V1Beta/Google.Cloud.ModelArmor.V1Beta/ServiceGrpc.g.cs +++ b/apis/Google.Cloud.ModelArmor.V1Beta/Google.Cloud.ModelArmor.V1Beta/ServiceGrpc.g.cs @@ -3,7 +3,7 @@ // source: google/cloud/modelarmor/v1beta/service.proto // // Original file comments: -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -166,6 +166,22 @@ static T __Helper_DeserializeMessage(grpc::DeserializationContext context, gl __Marshaller_google_cloud_modelarmor_v1beta_SanitizeModelResponseRequest, __Marshaller_google_cloud_modelarmor_v1beta_SanitizeModelResponseResponse); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_StreamSanitizeUserPrompt = new grpc::Method( + grpc::MethodType.DuplexStreaming, + __ServiceName, + "StreamSanitizeUserPrompt", + __Marshaller_google_cloud_modelarmor_v1beta_SanitizeUserPromptRequest, + __Marshaller_google_cloud_modelarmor_v1beta_SanitizeUserPromptResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_StreamSanitizeModelResponse = new grpc::Method( + grpc::MethodType.DuplexStreaming, + __ServiceName, + "StreamSanitizeModelResponse", + __Marshaller_google_cloud_modelarmor_v1beta_SanitizeModelResponseRequest, + __Marshaller_google_cloud_modelarmor_v1beta_SanitizeModelResponseResponse); + /// Service descriptor public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor { @@ -284,6 +300,32 @@ public abstract partial class ModelArmorBase throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } + /// + /// Streaming version of Sanitize User Prompt. + /// + /// Used for reading requests from the client. + /// Used for sending responses back to the client. + /// The context of the server-side call handler being invoked. + /// A task indicating completion of the handler. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task StreamSanitizeUserPrompt(grpc::IAsyncStreamReader requestStream, grpc::IServerStreamWriter responseStream, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Streaming version of Sanitizes Model Response. + /// + /// Used for reading requests from the client. + /// Used for sending responses back to the client. + /// The context of the server-side call handler being invoked. + /// A task indicating completion of the handler. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task StreamSanitizeModelResponse(grpc::IAsyncStreamReader requestStream, grpc::IServerStreamWriter responseStream, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + } /// Client for ModelArmor @@ -745,6 +787,50 @@ protected ModelArmorClient(ClientBaseConfiguration configuration) : base(configu { return CallInvoker.AsyncUnaryCall(__Method_SanitizeModelResponse, null, options, request); } + /// + /// Streaming version of Sanitize User Prompt. + /// + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncDuplexStreamingCall StreamSanitizeUserPrompt(grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return StreamSanitizeUserPrompt(new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Streaming version of Sanitize User Prompt. + /// + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncDuplexStreamingCall StreamSanitizeUserPrompt(grpc::CallOptions options) + { + return CallInvoker.AsyncDuplexStreamingCall(__Method_StreamSanitizeUserPrompt, null, options); + } + /// + /// Streaming version of Sanitizes Model Response. + /// + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncDuplexStreamingCall StreamSanitizeModelResponse(grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return StreamSanitizeModelResponse(new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Streaming version of Sanitizes Model Response. + /// + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncDuplexStreamingCall StreamSanitizeModelResponse(grpc::CallOptions options) + { + return CallInvoker.AsyncDuplexStreamingCall(__Method_StreamSanitizeModelResponse, null, options); + } /// Creates a new instance of client from given ClientBaseConfiguration. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] protected override ModelArmorClient NewInstance(ClientBaseConfiguration configuration) @@ -767,7 +853,9 @@ protected override ModelArmorClient NewInstance(ClientBaseConfiguration configur .AddMethod(__Method_GetFloorSetting, serviceImpl.GetFloorSetting) .AddMethod(__Method_UpdateFloorSetting, serviceImpl.UpdateFloorSetting) .AddMethod(__Method_SanitizeUserPrompt, serviceImpl.SanitizeUserPrompt) - .AddMethod(__Method_SanitizeModelResponse, serviceImpl.SanitizeModelResponse).Build(); + .AddMethod(__Method_SanitizeModelResponse, serviceImpl.SanitizeModelResponse) + .AddMethod(__Method_StreamSanitizeUserPrompt, serviceImpl.StreamSanitizeUserPrompt) + .AddMethod(__Method_StreamSanitizeModelResponse, serviceImpl.StreamSanitizeModelResponse).Build(); } /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. @@ -786,6 +874,8 @@ public static void BindService(grpc::ServiceBinderBase serviceBinder, ModelArmor serviceBinder.AddMethod(__Method_UpdateFloorSetting, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateFloorSetting)); serviceBinder.AddMethod(__Method_SanitizeUserPrompt, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.SanitizeUserPrompt)); serviceBinder.AddMethod(__Method_SanitizeModelResponse, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.SanitizeModelResponse)); + serviceBinder.AddMethod(__Method_StreamSanitizeUserPrompt, serviceImpl == null ? null : new grpc::DuplexStreamingServerMethod(serviceImpl.StreamSanitizeUserPrompt)); + serviceBinder.AddMethod(__Method_StreamSanitizeModelResponse, serviceImpl == null ? null : new grpc::DuplexStreamingServerMethod(serviceImpl.StreamSanitizeModelResponse)); } } diff --git a/apis/Google.Cloud.ModelArmor.V1Beta/gapic_metadata.json b/apis/Google.Cloud.ModelArmor.V1Beta/gapic_metadata.json index c0345ca6963a..04c331c110d9 100644 --- a/apis/Google.Cloud.ModelArmor.V1Beta/gapic_metadata.json +++ b/apis/Google.Cloud.ModelArmor.V1Beta/gapic_metadata.json @@ -52,6 +52,18 @@ "SanitizeUserPromptAsync" ] }, + "StreamSanitizeModelResponse": { + "methods": [ + "StreamSanitizeModelResponse", + "StreamSanitizeModelResponseAsync" + ] + }, + "StreamSanitizeUserPrompt": { + "methods": [ + "StreamSanitizeUserPrompt", + "StreamSanitizeUserPromptAsync" + ] + }, "UpdateFloorSetting": { "methods": [ "UpdateFloorSetting", diff --git a/generator-input/pipeline-state.json b/generator-input/pipeline-state.json index 2ce7d729f6d5..befeb106e5ed 100644 --- a/generator-input/pipeline-state.json +++ b/generator-input/pipeline-state.json @@ -4330,7 +4330,7 @@ "generationAutomationLevel": "AUTOMATION_LEVEL_AUTOMATIC", "releaseAutomationLevel": "AUTOMATION_LEVEL_AUTOMATIC", "releaseTimestamp": "2025-11-05T22:18:10.230335364Z", - "lastGeneratedCommit": "d90d23fa13599f525245fe446086f83cf8863ca4", + "lastGeneratedCommit": "16b4737e7b870914e0c384b87f0e50ed388aa225", "lastReleasedCommit": "36533b09a6b383f3c30d13c3c26092154ecf5388", "apiPaths": [ "google/cloud/modelarmor/v1beta" From 2ddef9e4407f5f8fefbeb6d714787d0e5e0a61f1 Mon Sep 17 00:00:00 2001 From: Google Cloud SDK Librarian Date: Mon, 20 Apr 2026 07:09:44 +0000 Subject: [PATCH 4/5] feat: Initial generation for Google.Developers.Knowledge.V1 --- .github/renovate.json | 1 + .../.repo-metadata.json | 8 + ...GetDocumentsRequestObjectAsyncSnippet.g.cs | 51 + ...BatchGetDocumentsRequestObjectSnippet.g.cs | 50 + ...owledgeClient.GetDocumentAsyncSnippet.g.cs | 44 + ....GetDocumentRequestObjectAsyncSnippet.g.cs | 48 + ...lient.GetDocumentRequestObjectSnippet.g.cs | 47 + ....GetDocumentResourceNamesAsyncSnippet.g.cs | 44 + ...lient.GetDocumentResourceNamesSnippet.g.cs | 43 + ...perKnowledgeClient.GetDocumentSnippet.g.cs | 43 + ...cumentChunksRequestObjectAsyncSnippet.g.cs | 82 + ...rchDocumentChunksRequestObjectSnippet.g.cs | 81 + ...pers.Knowledge.V1.GeneratedSnippets.csproj | 20 + ...tadata_google.developers.knowledge.v1.json | 495 ++++ .../DeveloperKnowledgeClientSnippets.g.cs | 255 ++ ...le.Developers.Knowledge.V1.Snippets.csproj | 20 + .../Google.Developers.Knowledge.V1.sln | 40 + .../DeveloperKnowledgeClient.g.cs | 629 +++++ .../Developerknowledge.g.cs | 2302 +++++++++++++++++ .../DeveloperknowledgeGrpc.g.cs | 425 +++ .../DeveloperknowledgeResourceNames.g.cs | 276 ++ .../Google.Developers.Knowledge.V1.csproj | 15 + .../PackageApiMetadata.g.cs | 36 + .../ServiceCollectionExtensions.g.cs | 65 + .../gapic_metadata.json | 36 + generator-input/pipeline-state.json | 1 + 26 files changed, 5157 insertions(+) create mode 100644 apis/Google.Developers.Knowledge.V1/.repo-metadata.json create mode 100644 apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.GeneratedSnippets/DeveloperKnowledgeClient.BatchGetDocumentsRequestObjectAsyncSnippet.g.cs create mode 100644 apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.GeneratedSnippets/DeveloperKnowledgeClient.BatchGetDocumentsRequestObjectSnippet.g.cs create mode 100644 apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.GeneratedSnippets/DeveloperKnowledgeClient.GetDocumentAsyncSnippet.g.cs create mode 100644 apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.GeneratedSnippets/DeveloperKnowledgeClient.GetDocumentRequestObjectAsyncSnippet.g.cs create mode 100644 apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.GeneratedSnippets/DeveloperKnowledgeClient.GetDocumentRequestObjectSnippet.g.cs create mode 100644 apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.GeneratedSnippets/DeveloperKnowledgeClient.GetDocumentResourceNamesAsyncSnippet.g.cs create mode 100644 apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.GeneratedSnippets/DeveloperKnowledgeClient.GetDocumentResourceNamesSnippet.g.cs create mode 100644 apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.GeneratedSnippets/DeveloperKnowledgeClient.GetDocumentSnippet.g.cs create mode 100644 apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.GeneratedSnippets/DeveloperKnowledgeClient.SearchDocumentChunksRequestObjectAsyncSnippet.g.cs create mode 100644 apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.GeneratedSnippets/DeveloperKnowledgeClient.SearchDocumentChunksRequestObjectSnippet.g.cs create mode 100644 apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.GeneratedSnippets/Google.Developers.Knowledge.V1.GeneratedSnippets.csproj create mode 100644 apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.GeneratedSnippets/snippet_metadata_google.developers.knowledge.v1.json create mode 100644 apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.Snippets/DeveloperKnowledgeClientSnippets.g.cs create mode 100644 apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.Snippets/Google.Developers.Knowledge.V1.Snippets.csproj create mode 100644 apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.sln create mode 100644 apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1/DeveloperKnowledgeClient.g.cs create mode 100644 apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1/Developerknowledge.g.cs create mode 100644 apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1/DeveloperknowledgeGrpc.g.cs create mode 100644 apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1/DeveloperknowledgeResourceNames.g.cs create mode 100644 apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.csproj create mode 100644 apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1/PackageApiMetadata.g.cs create mode 100644 apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1/ServiceCollectionExtensions.g.cs create mode 100644 apis/Google.Developers.Knowledge.V1/gapic_metadata.json diff --git a/.github/renovate.json b/.github/renovate.json index b0802843fd0a..718b0fdefee2 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -305,6 +305,7 @@ "apis/Google.Cloud.Workflows.V1Beta/Google.Cloud.Workflows.V1Beta/**", "apis/Google.Cloud.WorkloadManager.V1/Google.Cloud.WorkloadManager.V1/**", "apis/Google.Cloud.Workstations.V1/Google.Cloud.Workstations.V1/**", + "apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1/**", "apis/Google.Geo.Type/Google.Geo.Type/**", "apis/Google.Identity.AccessContextManager.Type/Google.Identity.AccessContextManager.Type/**", "apis/Google.Identity.AccessContextManager.V1/Google.Identity.AccessContextManager.V1/**", diff --git a/apis/Google.Developers.Knowledge.V1/.repo-metadata.json b/apis/Google.Developers.Knowledge.V1/.repo-metadata.json new file mode 100644 index 000000000000..688d98214056 --- /dev/null +++ b/apis/Google.Developers.Knowledge.V1/.repo-metadata.json @@ -0,0 +1,8 @@ +{ + "distribution_name": "Google.Developers.Knowledge.V1", + "release_level": "unreleased", + "client_documentation": "https://googleapis.dev/dotnet/Google.Developers.Knowledge.V1/latest", + "library_type": "GAPIC_AUTO", + "language": "dotnet", + "api_shortname": "developerknowledge" +} \ No newline at end of file diff --git a/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.GeneratedSnippets/DeveloperKnowledgeClient.BatchGetDocumentsRequestObjectAsyncSnippet.g.cs b/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.GeneratedSnippets/DeveloperKnowledgeClient.BatchGetDocumentsRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..4563a03d2a8e --- /dev/null +++ b/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.GeneratedSnippets/DeveloperKnowledgeClient.BatchGetDocumentsRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,51 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START developerknowledge_v1_generated_DeveloperKnowledge_BatchGetDocuments_async] + using Google.Developers.Knowledge.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedDeveloperKnowledgeClientSnippets + { + /// Snippet for BatchGetDocumentsAsync + /// + /// 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 BatchGetDocumentsRequestObjectAsync() + { + // Create client + DeveloperKnowledgeClient developerKnowledgeClient = await DeveloperKnowledgeClient.CreateAsync(); + // Initialize request argument(s) + BatchGetDocumentsRequest request = new BatchGetDocumentsRequest + { + DocumentNames = + { + DocumentName.FromDocument("[DOCUMENT]"), + }, + View = DocumentView.Unspecified, + }; + // Make the request + BatchGetDocumentsResponse response = await developerKnowledgeClient.BatchGetDocumentsAsync(request); + } + } + // [END developerknowledge_v1_generated_DeveloperKnowledge_BatchGetDocuments_async] +} diff --git a/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.GeneratedSnippets/DeveloperKnowledgeClient.BatchGetDocumentsRequestObjectSnippet.g.cs b/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.GeneratedSnippets/DeveloperKnowledgeClient.BatchGetDocumentsRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..a0eefd24a4b2 --- /dev/null +++ b/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.GeneratedSnippets/DeveloperKnowledgeClient.BatchGetDocumentsRequestObjectSnippet.g.cs @@ -0,0 +1,50 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START developerknowledge_v1_generated_DeveloperKnowledge_BatchGetDocuments_sync] + using Google.Developers.Knowledge.V1; + + public sealed partial class GeneratedDeveloperKnowledgeClientSnippets + { + /// Snippet for BatchGetDocuments + /// + /// 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 BatchGetDocumentsRequestObject() + { + // Create client + DeveloperKnowledgeClient developerKnowledgeClient = DeveloperKnowledgeClient.Create(); + // Initialize request argument(s) + BatchGetDocumentsRequest request = new BatchGetDocumentsRequest + { + DocumentNames = + { + DocumentName.FromDocument("[DOCUMENT]"), + }, + View = DocumentView.Unspecified, + }; + // Make the request + BatchGetDocumentsResponse response = developerKnowledgeClient.BatchGetDocuments(request); + } + } + // [END developerknowledge_v1_generated_DeveloperKnowledge_BatchGetDocuments_sync] +} diff --git a/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.GeneratedSnippets/DeveloperKnowledgeClient.GetDocumentAsyncSnippet.g.cs b/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.GeneratedSnippets/DeveloperKnowledgeClient.GetDocumentAsyncSnippet.g.cs new file mode 100644 index 000000000000..863c5aa99fa2 --- /dev/null +++ b/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.GeneratedSnippets/DeveloperKnowledgeClient.GetDocumentAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START developerknowledge_v1_generated_DeveloperKnowledge_GetDocument_async_flattened] + using Google.Developers.Knowledge.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedDeveloperKnowledgeClientSnippets + { + /// Snippet for GetDocumentAsync + /// + /// 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 GetDocumentAsync() + { + // Create client + DeveloperKnowledgeClient developerKnowledgeClient = await DeveloperKnowledgeClient.CreateAsync(); + // Initialize request argument(s) + string name = "documents/[DOCUMENT]"; + // Make the request + Document response = await developerKnowledgeClient.GetDocumentAsync(name); + } + } + // [END developerknowledge_v1_generated_DeveloperKnowledge_GetDocument_async_flattened] +} diff --git a/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.GeneratedSnippets/DeveloperKnowledgeClient.GetDocumentRequestObjectAsyncSnippet.g.cs b/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.GeneratedSnippets/DeveloperKnowledgeClient.GetDocumentRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..ed3296ae142a --- /dev/null +++ b/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.GeneratedSnippets/DeveloperKnowledgeClient.GetDocumentRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,48 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START developerknowledge_v1_generated_DeveloperKnowledge_GetDocument_async] + using Google.Developers.Knowledge.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedDeveloperKnowledgeClientSnippets + { + /// Snippet for GetDocumentAsync + /// + /// 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 GetDocumentRequestObjectAsync() + { + // Create client + DeveloperKnowledgeClient developerKnowledgeClient = await DeveloperKnowledgeClient.CreateAsync(); + // Initialize request argument(s) + GetDocumentRequest request = new GetDocumentRequest + { + DocumentName = DocumentName.FromDocument("[DOCUMENT]"), + View = DocumentView.Unspecified, + }; + // Make the request + Document response = await developerKnowledgeClient.GetDocumentAsync(request); + } + } + // [END developerknowledge_v1_generated_DeveloperKnowledge_GetDocument_async] +} diff --git a/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.GeneratedSnippets/DeveloperKnowledgeClient.GetDocumentRequestObjectSnippet.g.cs b/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.GeneratedSnippets/DeveloperKnowledgeClient.GetDocumentRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..db1337de529b --- /dev/null +++ b/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.GeneratedSnippets/DeveloperKnowledgeClient.GetDocumentRequestObjectSnippet.g.cs @@ -0,0 +1,47 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START developerknowledge_v1_generated_DeveloperKnowledge_GetDocument_sync] + using Google.Developers.Knowledge.V1; + + public sealed partial class GeneratedDeveloperKnowledgeClientSnippets + { + /// Snippet for GetDocument + /// + /// 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 GetDocumentRequestObject() + { + // Create client + DeveloperKnowledgeClient developerKnowledgeClient = DeveloperKnowledgeClient.Create(); + // Initialize request argument(s) + GetDocumentRequest request = new GetDocumentRequest + { + DocumentName = DocumentName.FromDocument("[DOCUMENT]"), + View = DocumentView.Unspecified, + }; + // Make the request + Document response = developerKnowledgeClient.GetDocument(request); + } + } + // [END developerknowledge_v1_generated_DeveloperKnowledge_GetDocument_sync] +} diff --git a/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.GeneratedSnippets/DeveloperKnowledgeClient.GetDocumentResourceNamesAsyncSnippet.g.cs b/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.GeneratedSnippets/DeveloperKnowledgeClient.GetDocumentResourceNamesAsyncSnippet.g.cs new file mode 100644 index 000000000000..fd450d0f3780 --- /dev/null +++ b/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.GeneratedSnippets/DeveloperKnowledgeClient.GetDocumentResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START developerknowledge_v1_generated_DeveloperKnowledge_GetDocument_async_flattened_resourceNames] + using Google.Developers.Knowledge.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedDeveloperKnowledgeClientSnippets + { + /// Snippet for GetDocumentAsync + /// + /// 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 GetDocumentResourceNamesAsync() + { + // Create client + DeveloperKnowledgeClient developerKnowledgeClient = await DeveloperKnowledgeClient.CreateAsync(); + // Initialize request argument(s) + DocumentName name = DocumentName.FromDocument("[DOCUMENT]"); + // Make the request + Document response = await developerKnowledgeClient.GetDocumentAsync(name); + } + } + // [END developerknowledge_v1_generated_DeveloperKnowledge_GetDocument_async_flattened_resourceNames] +} diff --git a/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.GeneratedSnippets/DeveloperKnowledgeClient.GetDocumentResourceNamesSnippet.g.cs b/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.GeneratedSnippets/DeveloperKnowledgeClient.GetDocumentResourceNamesSnippet.g.cs new file mode 100644 index 000000000000..ee83df8a154c --- /dev/null +++ b/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.GeneratedSnippets/DeveloperKnowledgeClient.GetDocumentResourceNamesSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START developerknowledge_v1_generated_DeveloperKnowledge_GetDocument_sync_flattened_resourceNames] + using Google.Developers.Knowledge.V1; + + public sealed partial class GeneratedDeveloperKnowledgeClientSnippets + { + /// Snippet for GetDocument + /// + /// 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 GetDocumentResourceNames() + { + // Create client + DeveloperKnowledgeClient developerKnowledgeClient = DeveloperKnowledgeClient.Create(); + // Initialize request argument(s) + DocumentName name = DocumentName.FromDocument("[DOCUMENT]"); + // Make the request + Document response = developerKnowledgeClient.GetDocument(name); + } + } + // [END developerknowledge_v1_generated_DeveloperKnowledge_GetDocument_sync_flattened_resourceNames] +} diff --git a/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.GeneratedSnippets/DeveloperKnowledgeClient.GetDocumentSnippet.g.cs b/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.GeneratedSnippets/DeveloperKnowledgeClient.GetDocumentSnippet.g.cs new file mode 100644 index 000000000000..4dbfd1e2942e --- /dev/null +++ b/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.GeneratedSnippets/DeveloperKnowledgeClient.GetDocumentSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START developerknowledge_v1_generated_DeveloperKnowledge_GetDocument_sync_flattened] + using Google.Developers.Knowledge.V1; + + public sealed partial class GeneratedDeveloperKnowledgeClientSnippets + { + /// Snippet for GetDocument + /// + /// 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 GetDocument() + { + // Create client + DeveloperKnowledgeClient developerKnowledgeClient = DeveloperKnowledgeClient.Create(); + // Initialize request argument(s) + string name = "documents/[DOCUMENT]"; + // Make the request + Document response = developerKnowledgeClient.GetDocument(name); + } + } + // [END developerknowledge_v1_generated_DeveloperKnowledge_GetDocument_sync_flattened] +} diff --git a/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.GeneratedSnippets/DeveloperKnowledgeClient.SearchDocumentChunksRequestObjectAsyncSnippet.g.cs b/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.GeneratedSnippets/DeveloperKnowledgeClient.SearchDocumentChunksRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..eb13d7e7fa1f --- /dev/null +++ b/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.GeneratedSnippets/DeveloperKnowledgeClient.SearchDocumentChunksRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,82 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START developerknowledge_v1_generated_DeveloperKnowledge_SearchDocumentChunks_async] + using Google.Api.Gax; + using Google.Developers.Knowledge.V1; + using System; + using System.Threading.Tasks; + + public sealed partial class GeneratedDeveloperKnowledgeClientSnippets + { + /// Snippet for SearchDocumentChunksAsync + /// + /// 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 SearchDocumentChunksRequestObjectAsync() + { + // Create client + DeveloperKnowledgeClient developerKnowledgeClient = await DeveloperKnowledgeClient.CreateAsync(); + // Initialize request argument(s) + SearchDocumentChunksRequest request = new SearchDocumentChunksRequest + { + Query = "", + Filter = "", + }; + // Make the request + PagedAsyncEnumerable response = developerKnowledgeClient.SearchDocumentChunksAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await foreach (DocumentChunk item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + await foreach (SearchDocumentChunksResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (DocumentChunk 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 (DocumentChunk 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 developerknowledge_v1_generated_DeveloperKnowledge_SearchDocumentChunks_async] +} diff --git a/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.GeneratedSnippets/DeveloperKnowledgeClient.SearchDocumentChunksRequestObjectSnippet.g.cs b/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.GeneratedSnippets/DeveloperKnowledgeClient.SearchDocumentChunksRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..5d08476612e7 --- /dev/null +++ b/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.GeneratedSnippets/DeveloperKnowledgeClient.SearchDocumentChunksRequestObjectSnippet.g.cs @@ -0,0 +1,81 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START developerknowledge_v1_generated_DeveloperKnowledge_SearchDocumentChunks_sync] + using Google.Api.Gax; + using Google.Developers.Knowledge.V1; + using System; + + public sealed partial class GeneratedDeveloperKnowledgeClientSnippets + { + /// Snippet for SearchDocumentChunks + /// + /// 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 SearchDocumentChunksRequestObject() + { + // Create client + DeveloperKnowledgeClient developerKnowledgeClient = DeveloperKnowledgeClient.Create(); + // Initialize request argument(s) + SearchDocumentChunksRequest request = new SearchDocumentChunksRequest + { + Query = "", + Filter = "", + }; + // Make the request + PagedEnumerable response = developerKnowledgeClient.SearchDocumentChunks(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (DocumentChunk 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 (SearchDocumentChunksResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (DocumentChunk 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 (DocumentChunk 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 developerknowledge_v1_generated_DeveloperKnowledge_SearchDocumentChunks_sync] +} diff --git a/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.GeneratedSnippets/Google.Developers.Knowledge.V1.GeneratedSnippets.csproj b/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.GeneratedSnippets/Google.Developers.Knowledge.V1.GeneratedSnippets.csproj new file mode 100644 index 000000000000..e5da752d7162 --- /dev/null +++ b/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.GeneratedSnippets/Google.Developers.Knowledge.V1.GeneratedSnippets.csproj @@ -0,0 +1,20 @@ + + + + net8.0;net462 + net8.0 + false + $(NoWarn);1701;1702;1705;xUnit2004;xUnit2013 + + + + + + + + + + + + + \ No newline at end of file diff --git a/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.GeneratedSnippets/snippet_metadata_google.developers.knowledge.v1.json b/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.GeneratedSnippets/snippet_metadata_google.developers.knowledge.v1.json new file mode 100644 index 000000000000..f40e38d12c40 --- /dev/null +++ b/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.GeneratedSnippets/snippet_metadata_google.developers.knowledge.v1.json @@ -0,0 +1,495 @@ +{ + "clientLibrary": { + "name": "Google.Developers.Knowledge.V1", + "language": "C_SHARP", + "apis": [ + { + "id": "google.developers.knowledge.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "developerknowledge_v1_generated_DeveloperKnowledge_SearchDocumentChunks_sync", + "title": "SearchDocumentChunksRequestObject", + "description": "Snippet for SearchDocumentChunks", + "file": "DeveloperKnowledgeClient.SearchDocumentChunksRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SearchDocumentChunks", + "fullName": "Google.Developers.Knowledge.V1.DeveloperKnowledgeClient.SearchDocumentChunks", + "parameters": [ + { + "type": "Google.Developers.Knowledge.V1.SearchDocumentChunksRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "DeveloperKnowledgeClient", + "fullName": "Google.Developers.Knowledge.V1.DeveloperKnowledgeClient" + }, + "method": { + "shortName": "SearchDocumentChunks", + "fullName": "google.developers.knowledge.v1.DeveloperKnowledge.SearchDocumentChunks", + "service": { + "shortName": "DeveloperKnowledge", + "fullName": "google.developers.knowledge.v1.DeveloperKnowledge" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 79, + "type": "FULL" + }, + { + "start": 36, + "end": 77, + "type": "SHORT" + } + ] + }, + { + "regionTag": "developerknowledge_v1_generated_DeveloperKnowledge_SearchDocumentChunks_async", + "title": "SearchDocumentChunksRequestObjectAsync", + "description": "Snippet for SearchDocumentChunksAsync", + "file": "DeveloperKnowledgeClient.SearchDocumentChunksRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SearchDocumentChunksAsync", + "fullName": "Google.Developers.Knowledge.V1.DeveloperKnowledgeClient.SearchDocumentChunksAsync", + "async": true, + "parameters": [ + { + "type": "Google.Developers.Knowledge.V1.SearchDocumentChunksRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "DeveloperKnowledgeClient", + "fullName": "Google.Developers.Knowledge.V1.DeveloperKnowledgeClient" + }, + "method": { + "shortName": "SearchDocumentChunks", + "fullName": "google.developers.knowledge.v1.DeveloperKnowledge.SearchDocumentChunks", + "service": { + "shortName": "DeveloperKnowledge", + "fullName": "google.developers.knowledge.v1.DeveloperKnowledge" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 80, + "type": "FULL" + }, + { + "start": 37, + "end": 78, + "type": "SHORT" + } + ] + }, + { + "regionTag": "developerknowledge_v1_generated_DeveloperKnowledge_GetDocument_sync", + "title": "GetDocumentRequestObject", + "description": "Snippet for GetDocument", + "file": "DeveloperKnowledgeClient.GetDocumentRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetDocument", + "fullName": "Google.Developers.Knowledge.V1.DeveloperKnowledgeClient.GetDocument", + "parameters": [ + { + "type": "Google.Developers.Knowledge.V1.GetDocumentRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Developers.Knowledge.V1.Document", + "client": { + "shortName": "DeveloperKnowledgeClient", + "fullName": "Google.Developers.Knowledge.V1.DeveloperKnowledgeClient" + }, + "method": { + "shortName": "GetDocument", + "fullName": "google.developers.knowledge.v1.DeveloperKnowledge.GetDocument", + "service": { + "shortName": "DeveloperKnowledge", + "fullName": "google.developers.knowledge.v1.DeveloperKnowledge" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 34, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "developerknowledge_v1_generated_DeveloperKnowledge_GetDocument_async", + "title": "GetDocumentRequestObjectAsync", + "description": "Snippet for GetDocumentAsync", + "file": "DeveloperKnowledgeClient.GetDocumentRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetDocumentAsync", + "fullName": "Google.Developers.Knowledge.V1.DeveloperKnowledgeClient.GetDocumentAsync", + "async": true, + "parameters": [ + { + "type": "Google.Developers.Knowledge.V1.GetDocumentRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "DeveloperKnowledgeClient", + "fullName": "Google.Developers.Knowledge.V1.DeveloperKnowledgeClient" + }, + "method": { + "shortName": "GetDocument", + "fullName": "google.developers.knowledge.v1.DeveloperKnowledge.GetDocument", + "service": { + "shortName": "DeveloperKnowledge", + "fullName": "google.developers.knowledge.v1.DeveloperKnowledge" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "developerknowledge_v1_generated_DeveloperKnowledge_GetDocument_sync_flattened", + "title": "GetDocument", + "description": "Snippet for GetDocument", + "file": "DeveloperKnowledgeClient.GetDocumentSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetDocument", + "fullName": "Google.Developers.Knowledge.V1.DeveloperKnowledgeClient.GetDocument", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Developers.Knowledge.V1.Document", + "client": { + "shortName": "DeveloperKnowledgeClient", + "fullName": "Google.Developers.Knowledge.V1.DeveloperKnowledgeClient" + }, + "method": { + "shortName": "GetDocument", + "fullName": "google.developers.knowledge.v1.DeveloperKnowledge.GetDocument", + "service": { + "shortName": "DeveloperKnowledge", + "fullName": "google.developers.knowledge.v1.DeveloperKnowledge" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "developerknowledge_v1_generated_DeveloperKnowledge_GetDocument_async_flattened", + "title": "GetDocumentAsync", + "description": "Snippet for GetDocumentAsync", + "file": "DeveloperKnowledgeClient.GetDocumentAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetDocumentAsync", + "fullName": "Google.Developers.Knowledge.V1.DeveloperKnowledgeClient.GetDocumentAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "DeveloperKnowledgeClient", + "fullName": "Google.Developers.Knowledge.V1.DeveloperKnowledgeClient" + }, + "method": { + "shortName": "GetDocument", + "fullName": "google.developers.knowledge.v1.DeveloperKnowledge.GetDocument", + "service": { + "shortName": "DeveloperKnowledge", + "fullName": "google.developers.knowledge.v1.DeveloperKnowledge" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "developerknowledge_v1_generated_DeveloperKnowledge_GetDocument_sync_flattened_resourceNames", + "title": "GetDocumentResourceNames", + "description": "Snippet for GetDocument", + "file": "DeveloperKnowledgeClient.GetDocumentResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetDocument", + "fullName": "Google.Developers.Knowledge.V1.DeveloperKnowledgeClient.GetDocument", + "parameters": [ + { + "type": "Google.Developers.Knowledge.V1.DocumentName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Developers.Knowledge.V1.Document", + "client": { + "shortName": "DeveloperKnowledgeClient", + "fullName": "Google.Developers.Knowledge.V1.DeveloperKnowledgeClient" + }, + "method": { + "shortName": "GetDocument", + "fullName": "google.developers.knowledge.v1.DeveloperKnowledge.GetDocument", + "service": { + "shortName": "DeveloperKnowledge", + "fullName": "google.developers.knowledge.v1.DeveloperKnowledge" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "developerknowledge_v1_generated_DeveloperKnowledge_GetDocument_async_flattened_resourceNames", + "title": "GetDocumentResourceNamesAsync", + "description": "Snippet for GetDocumentAsync", + "file": "DeveloperKnowledgeClient.GetDocumentResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetDocumentAsync", + "fullName": "Google.Developers.Knowledge.V1.DeveloperKnowledgeClient.GetDocumentAsync", + "async": true, + "parameters": [ + { + "type": "Google.Developers.Knowledge.V1.DocumentName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "DeveloperKnowledgeClient", + "fullName": "Google.Developers.Knowledge.V1.DeveloperKnowledgeClient" + }, + "method": { + "shortName": "GetDocument", + "fullName": "google.developers.knowledge.v1.DeveloperKnowledge.GetDocument", + "service": { + "shortName": "DeveloperKnowledge", + "fullName": "google.developers.knowledge.v1.DeveloperKnowledge" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "developerknowledge_v1_generated_DeveloperKnowledge_BatchGetDocuments_sync", + "title": "BatchGetDocumentsRequestObject", + "description": "Snippet for BatchGetDocuments", + "file": "DeveloperKnowledgeClient.BatchGetDocumentsRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "BatchGetDocuments", + "fullName": "Google.Developers.Knowledge.V1.DeveloperKnowledgeClient.BatchGetDocuments", + "parameters": [ + { + "type": "Google.Developers.Knowledge.V1.BatchGetDocumentsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Developers.Knowledge.V1.BatchGetDocumentsResponse", + "client": { + "shortName": "DeveloperKnowledgeClient", + "fullName": "Google.Developers.Knowledge.V1.DeveloperKnowledgeClient" + }, + "method": { + "shortName": "BatchGetDocuments", + "fullName": "google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments", + "service": { + "shortName": "DeveloperKnowledge", + "fullName": "google.developers.knowledge.v1.DeveloperKnowledge" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 48, + "type": "FULL" + }, + { + "start": 34, + "end": 46, + "type": "SHORT" + } + ] + }, + { + "regionTag": "developerknowledge_v1_generated_DeveloperKnowledge_BatchGetDocuments_async", + "title": "BatchGetDocumentsRequestObjectAsync", + "description": "Snippet for BatchGetDocumentsAsync", + "file": "DeveloperKnowledgeClient.BatchGetDocumentsRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "BatchGetDocumentsAsync", + "fullName": "Google.Developers.Knowledge.V1.DeveloperKnowledgeClient.BatchGetDocumentsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Developers.Knowledge.V1.BatchGetDocumentsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "DeveloperKnowledgeClient", + "fullName": "Google.Developers.Knowledge.V1.DeveloperKnowledgeClient" + }, + "method": { + "shortName": "BatchGetDocuments", + "fullName": "google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments", + "service": { + "shortName": "DeveloperKnowledge", + "fullName": "google.developers.knowledge.v1.DeveloperKnowledge" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 49, + "type": "FULL" + }, + { + "start": 35, + "end": 47, + "type": "SHORT" + } + ] + } + ] +} diff --git a/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.Snippets/DeveloperKnowledgeClientSnippets.g.cs b/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.Snippets/DeveloperKnowledgeClientSnippets.g.cs new file mode 100644 index 000000000000..f8e4fd2505af --- /dev/null +++ b/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.Snippets/DeveloperKnowledgeClientSnippets.g.cs @@ -0,0 +1,255 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + using Google.Api.Gax; + using Google.Developers.Knowledge.V1; + using System; + using System.Threading.Tasks; + + /// Generated snippets. + public sealed class AllGeneratedDeveloperKnowledgeClientSnippets + { + /// Snippet for SearchDocumentChunks + public void SearchDocumentChunksRequestObject() + { + // Snippet: SearchDocumentChunks(SearchDocumentChunksRequest, CallSettings) + // Create client + DeveloperKnowledgeClient developerKnowledgeClient = DeveloperKnowledgeClient.Create(); + // Initialize request argument(s) + SearchDocumentChunksRequest request = new SearchDocumentChunksRequest + { + Query = "", + Filter = "", + }; + // Make the request + PagedEnumerable response = developerKnowledgeClient.SearchDocumentChunks(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (DocumentChunk 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 (SearchDocumentChunksResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (DocumentChunk 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 (DocumentChunk 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 SearchDocumentChunksAsync + public async Task SearchDocumentChunksRequestObjectAsync() + { + // Snippet: SearchDocumentChunksAsync(SearchDocumentChunksRequest, CallSettings) + // Create client + DeveloperKnowledgeClient developerKnowledgeClient = await DeveloperKnowledgeClient.CreateAsync(); + // Initialize request argument(s) + SearchDocumentChunksRequest request = new SearchDocumentChunksRequest + { + Query = "", + Filter = "", + }; + // Make the request + PagedAsyncEnumerable response = developerKnowledgeClient.SearchDocumentChunksAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await foreach (DocumentChunk item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + await foreach (SearchDocumentChunksResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (DocumentChunk 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 (DocumentChunk 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 GetDocument + public void GetDocumentRequestObject() + { + // Snippet: GetDocument(GetDocumentRequest, CallSettings) + // Create client + DeveloperKnowledgeClient developerKnowledgeClient = DeveloperKnowledgeClient.Create(); + // Initialize request argument(s) + GetDocumentRequest request = new GetDocumentRequest + { + DocumentName = DocumentName.FromDocument("[DOCUMENT]"), + View = DocumentView.Unspecified, + }; + // Make the request + Document response = developerKnowledgeClient.GetDocument(request); + // End snippet + } + + /// Snippet for GetDocumentAsync + public async Task GetDocumentRequestObjectAsync() + { + // Snippet: GetDocumentAsync(GetDocumentRequest, CallSettings) + // Additional: GetDocumentAsync(GetDocumentRequest, CancellationToken) + // Create client + DeveloperKnowledgeClient developerKnowledgeClient = await DeveloperKnowledgeClient.CreateAsync(); + // Initialize request argument(s) + GetDocumentRequest request = new GetDocumentRequest + { + DocumentName = DocumentName.FromDocument("[DOCUMENT]"), + View = DocumentView.Unspecified, + }; + // Make the request + Document response = await developerKnowledgeClient.GetDocumentAsync(request); + // End snippet + } + + /// Snippet for GetDocument + public void GetDocument() + { + // Snippet: GetDocument(string, CallSettings) + // Create client + DeveloperKnowledgeClient developerKnowledgeClient = DeveloperKnowledgeClient.Create(); + // Initialize request argument(s) + string name = "documents/[DOCUMENT]"; + // Make the request + Document response = developerKnowledgeClient.GetDocument(name); + // End snippet + } + + /// Snippet for GetDocumentAsync + public async Task GetDocumentAsync() + { + // Snippet: GetDocumentAsync(string, CallSettings) + // Additional: GetDocumentAsync(string, CancellationToken) + // Create client + DeveloperKnowledgeClient developerKnowledgeClient = await DeveloperKnowledgeClient.CreateAsync(); + // Initialize request argument(s) + string name = "documents/[DOCUMENT]"; + // Make the request + Document response = await developerKnowledgeClient.GetDocumentAsync(name); + // End snippet + } + + /// Snippet for GetDocument + public void GetDocumentResourceNames() + { + // Snippet: GetDocument(DocumentName, CallSettings) + // Create client + DeveloperKnowledgeClient developerKnowledgeClient = DeveloperKnowledgeClient.Create(); + // Initialize request argument(s) + DocumentName name = DocumentName.FromDocument("[DOCUMENT]"); + // Make the request + Document response = developerKnowledgeClient.GetDocument(name); + // End snippet + } + + /// Snippet for GetDocumentAsync + public async Task GetDocumentResourceNamesAsync() + { + // Snippet: GetDocumentAsync(DocumentName, CallSettings) + // Additional: GetDocumentAsync(DocumentName, CancellationToken) + // Create client + DeveloperKnowledgeClient developerKnowledgeClient = await DeveloperKnowledgeClient.CreateAsync(); + // Initialize request argument(s) + DocumentName name = DocumentName.FromDocument("[DOCUMENT]"); + // Make the request + Document response = await developerKnowledgeClient.GetDocumentAsync(name); + // End snippet + } + + /// Snippet for BatchGetDocuments + public void BatchGetDocumentsRequestObject() + { + // Snippet: BatchGetDocuments(BatchGetDocumentsRequest, CallSettings) + // Create client + DeveloperKnowledgeClient developerKnowledgeClient = DeveloperKnowledgeClient.Create(); + // Initialize request argument(s) + BatchGetDocumentsRequest request = new BatchGetDocumentsRequest + { + DocumentNames = + { + DocumentName.FromDocument("[DOCUMENT]"), + }, + View = DocumentView.Unspecified, + }; + // Make the request + BatchGetDocumentsResponse response = developerKnowledgeClient.BatchGetDocuments(request); + // End snippet + } + + /// Snippet for BatchGetDocumentsAsync + public async Task BatchGetDocumentsRequestObjectAsync() + { + // Snippet: BatchGetDocumentsAsync(BatchGetDocumentsRequest, CallSettings) + // Additional: BatchGetDocumentsAsync(BatchGetDocumentsRequest, CancellationToken) + // Create client + DeveloperKnowledgeClient developerKnowledgeClient = await DeveloperKnowledgeClient.CreateAsync(); + // Initialize request argument(s) + BatchGetDocumentsRequest request = new BatchGetDocumentsRequest + { + DocumentNames = + { + DocumentName.FromDocument("[DOCUMENT]"), + }, + View = DocumentView.Unspecified, + }; + // Make the request + BatchGetDocumentsResponse response = await developerKnowledgeClient.BatchGetDocumentsAsync(request); + // End snippet + } + } +} diff --git a/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.Snippets/Google.Developers.Knowledge.V1.Snippets.csproj b/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.Snippets/Google.Developers.Knowledge.V1.Snippets.csproj new file mode 100644 index 000000000000..e5da752d7162 --- /dev/null +++ b/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.Snippets/Google.Developers.Knowledge.V1.Snippets.csproj @@ -0,0 +1,20 @@ + + + + net8.0;net462 + net8.0 + false + $(NoWarn);1701;1702;1705;xUnit2004;xUnit2013 + + + + + + + + + + + + + \ No newline at end of file diff --git a/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.sln b/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.sln new file mode 100644 index 000000000000..8699d75fc65c --- /dev/null +++ b/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.sln @@ -0,0 +1,40 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.2.32516.85 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Google.Developers.Knowledge.V1", "Google.Developers.Knowledge.V1\Google.Developers.Knowledge.V1.csproj", "{2E5263B2-643C-E764-58F8-6354838E66F2}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Google.Developers.Knowledge.V1.Snippets", "Google.Developers.Knowledge.V1.Snippets\Google.Developers.Knowledge.V1.Snippets.csproj", "{5A9C0A58-EB3C-4E4B-9215-27380BB343CF}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Google.Developers.Knowledge.V1.GeneratedSnippets", "Google.Developers.Knowledge.V1.GeneratedSnippets\Google.Developers.Knowledge.V1.GeneratedSnippets.csproj", "{8E9DDA59-857D-57C9-F45C-18A61EE32BC6}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Google.Cloud.ClientTesting", "..\..\tools\Google.Cloud.ClientTesting\Google.Cloud.ClientTesting.csproj", "{29974B0C-A7B0-8CA8-AE32-99F622C89044}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {2E5263B2-643C-E764-58F8-6354838E66F2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {2E5263B2-643C-E764-58F8-6354838E66F2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2E5263B2-643C-E764-58F8-6354838E66F2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {2E5263B2-643C-E764-58F8-6354838E66F2}.Release|Any CPU.Build.0 = Release|Any CPU + {5A9C0A58-EB3C-4E4B-9215-27380BB343CF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {5A9C0A58-EB3C-4E4B-9215-27380BB343CF}.Debug|Any CPU.Build.0 = Debug|Any CPU + {5A9C0A58-EB3C-4E4B-9215-27380BB343CF}.Release|Any CPU.ActiveCfg = Release|Any CPU + {5A9C0A58-EB3C-4E4B-9215-27380BB343CF}.Release|Any CPU.Build.0 = Release|Any CPU + {8E9DDA59-857D-57C9-F45C-18A61EE32BC6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8E9DDA59-857D-57C9-F45C-18A61EE32BC6}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8E9DDA59-857D-57C9-F45C-18A61EE32BC6}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8E9DDA59-857D-57C9-F45C-18A61EE32BC6}.Release|Any CPU.Build.0 = Release|Any CPU + {29974B0C-A7B0-8CA8-AE32-99F622C89044}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {29974B0C-A7B0-8CA8-AE32-99F622C89044}.Debug|Any CPU.Build.0 = Debug|Any CPU + {29974B0C-A7B0-8CA8-AE32-99F622C89044}.Release|Any CPU.ActiveCfg = Release|Any CPU + {29974B0C-A7B0-8CA8-AE32-99F622C89044}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1/DeveloperKnowledgeClient.g.cs b/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1/DeveloperKnowledgeClient.g.cs new file mode 100644 index 000000000000..0423377a77ab --- /dev/null +++ b/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1/DeveloperKnowledgeClient.g.cs @@ -0,0 +1,629 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +#pragma warning disable CS8981 +using gax = Google.Api.Gax; +using gaxgrpc = Google.Api.Gax.Grpc; +using grpccore = Grpc.Core; +using grpcinter = Grpc.Core.Interceptors; +using mel = Microsoft.Extensions.Logging; +using proto = Google.Protobuf; +using sc = System.Collections; +using scg = System.Collections.Generic; +using sco = System.Collections.ObjectModel; +using st = System.Threading; +using stt = System.Threading.Tasks; +using sys = System; + +namespace Google.Developers.Knowledge.V1 +{ + /// Settings for instances. + public sealed partial class DeveloperKnowledgeSettings : gaxgrpc::ServiceSettingsBase + { + /// Get a new instance of the default . + /// A new instance of the default . + public static DeveloperKnowledgeSettings GetDefault() => new DeveloperKnowledgeSettings(); + + /// Constructs a new object with default settings. + public DeveloperKnowledgeSettings() + { + } + + private DeveloperKnowledgeSettings(DeveloperKnowledgeSettings existing) : base(existing) + { + gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); + SearchDocumentChunksSettings = existing.SearchDocumentChunksSettings; + GetDocumentSettings = existing.GetDocumentSettings; + BatchGetDocumentsSettings = existing.BatchGetDocumentsSettings; + OnCopy(existing); + } + + partial void OnCopy(DeveloperKnowledgeSettings existing); + + /// + /// for synchronous and asynchronous calls to + /// DeveloperKnowledgeClient.SearchDocumentChunks and + /// DeveloperKnowledgeClient.SearchDocumentChunksAsync. + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings SearchDocumentChunksSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + + /// + /// for synchronous and asynchronous calls to + /// DeveloperKnowledgeClient.GetDocument and DeveloperKnowledgeClient.GetDocumentAsync. + /// + /// + /// + /// Initial retry delay: 1000 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 10000 milliseconds. + /// Maximum attempts: 5 + /// + /// Retriable status codes: . + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings GetDocumentSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(10000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable))); + + /// + /// for synchronous and asynchronous calls to + /// DeveloperKnowledgeClient.BatchGetDocuments and DeveloperKnowledgeClient.BatchGetDocumentsAsync + /// . + /// + /// + /// + /// Initial retry delay: 1000 milliseconds. + /// Retry delay multiplier: 1.3 + /// Retry maximum delay: 10000 milliseconds. + /// Maximum attempts: 5 + /// + /// Retriable status codes: . + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings BatchGetDocumentsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(10000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable))); + + /// Creates a deep clone of this object, with all the same property values. + /// A deep clone of this object. + public DeveloperKnowledgeSettings Clone() => new DeveloperKnowledgeSettings(this); + } + + /// + /// Builder class for to provide simple configuration of credentials, + /// endpoint etc. + /// + public sealed partial class DeveloperKnowledgeClientBuilder : gaxgrpc::ClientBuilderBase + { + /// The settings to use for RPCs, or null for the default settings. + public DeveloperKnowledgeSettings Settings { get; set; } + + /// Creates a new builder with default settings. + public DeveloperKnowledgeClientBuilder() : base(DeveloperKnowledgeClient.ServiceMetadata) + { + } + + partial void InterceptBuild(ref DeveloperKnowledgeClient client); + + partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); + + /// Builds the resulting client. + public override DeveloperKnowledgeClient Build() + { + DeveloperKnowledgeClient client = null; + InterceptBuild(ref client); + return client ?? BuildImpl(); + } + + /// Builds the resulting client asynchronously. + public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) + { + stt::Task task = null; + InterceptBuildAsync(cancellationToken, ref task); + return task ?? BuildAsyncImpl(cancellationToken); + } + + private DeveloperKnowledgeClient BuildImpl() + { + Validate(); + grpccore::CallInvoker callInvoker = CreateCallInvoker(); + return DeveloperKnowledgeClient.Create(callInvoker, GetEffectiveSettings(Settings?.Clone()), Logger); + } + + private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) + { + Validate(); + grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); + return DeveloperKnowledgeClient.Create(callInvoker, GetEffectiveSettings(Settings?.Clone()), Logger); + } + + /// Returns the channel pool to use when no other options are specified. + protected override gaxgrpc::ChannelPool GetChannelPool() => DeveloperKnowledgeClient.ChannelPool; + } + + /// DeveloperKnowledge client wrapper, for convenient use. + /// + /// The Developer Knowledge API provides programmatic access to Google's public + /// developer documentation, enabling you to integrate this knowledge base into + /// your own applications and workflows. + /// + /// The API is designed to be the canonical source for machine-readable access to + /// Google's developer documentation. + /// + /// A typical use case is to first use + /// [DeveloperKnowledge.SearchDocumentChunks][google.developers.knowledge.v1.DeveloperKnowledge.SearchDocumentChunks] + /// to find relevant page URIs based on a query, and then use + /// [DeveloperKnowledge.GetDocument][google.developers.knowledge.v1.DeveloperKnowledge.GetDocument] + /// or + /// [DeveloperKnowledge.BatchGetDocuments][google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments] + /// to fetch the full content of the top results. + /// + /// All document content is provided in Markdown format. + /// + public abstract partial class DeveloperKnowledgeClient + { + /// + /// The default endpoint for the DeveloperKnowledge service, which is a host of + /// "developerknowledge.googleapis.com" and a port of 443. + /// + public static string DefaultEndpoint { get; } = "developerknowledge.googleapis.com:443"; + + /// The default DeveloperKnowledge scopes. + /// + /// The default DeveloperKnowledge scopes are: + /// + /// https://www.googleapis.com/auth/cloud-platform + /// + /// + public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] + { + "https://www.googleapis.com/auth/cloud-platform", + }); + + /// The service metadata associated with this client type. + public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(DeveloperKnowledge.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc | gax::ApiTransports.Rest, PackageApiMetadata.ApiMetadata); + + internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); + + /// + /// Asynchronously creates a using the default credentials, endpoint and + /// settings. To specify custom credentials or other settings, use + /// . + /// + /// + /// The to use while creating the client. + /// + /// The task representing the created . + public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => + new DeveloperKnowledgeClientBuilder().BuildAsync(cancellationToken); + + /// + /// Synchronously creates a using the default credentials, endpoint and + /// settings. To specify custom credentials or other settings, use + /// . + /// + /// The created . + public static DeveloperKnowledgeClient Create() => new DeveloperKnowledgeClientBuilder().Build(); + + /// + /// Creates a which uses the specified call invoker for remote + /// operations. + /// + /// + /// The for remote operations. Must not be null. + /// + /// Optional . + /// Optional . + /// The created . + internal static DeveloperKnowledgeClient Create(grpccore::CallInvoker callInvoker, DeveloperKnowledgeSettings settings = null, mel::ILogger logger = null) + { + gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); + grpcinter::Interceptor interceptor = settings?.Interceptor; + if (interceptor != null) + { + callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); + } + DeveloperKnowledge.DeveloperKnowledgeClient grpcClient = new DeveloperKnowledge.DeveloperKnowledgeClient(callInvoker); + return new DeveloperKnowledgeClientImpl(grpcClient, settings, logger); + } + + /// + /// Shuts down any channels automatically created by and + /// . Channels which weren't automatically created are not + /// affected. + /// + /// + /// After calling this method, further calls to and + /// will create new channels, which could in turn be shut down + /// by another call to this method. + /// + /// A task representing the asynchronous shutdown operation. + public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); + + /// The underlying gRPC DeveloperKnowledge client + public virtual DeveloperKnowledge.DeveloperKnowledgeClient GrpcClient => throw new sys::NotImplementedException(); + + /// + /// Searches for developer knowledge across Google's developer documentation. + /// Returns [DocumentChunk][google.developers.knowledge.v1.DocumentChunk]s + /// based on the user's query. There may be many chunks from the same + /// [Document][google.developers.knowledge.v1.Document]. To retrieve full + /// documents, use + /// [DeveloperKnowledge.GetDocument][google.developers.knowledge.v1.DeveloperKnowledge.GetDocument] + /// or + /// [DeveloperKnowledge.BatchGetDocuments][google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments] + /// with the + /// [DocumentChunk.parent][google.developers.knowledge.v1.DocumentChunk.parent] + /// returned in the + /// [SearchDocumentChunksResponse.results][google.developers.knowledge.v1.SearchDocumentChunksResponse.results]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable SearchDocumentChunks(SearchDocumentChunksRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Searches for developer knowledge across Google's developer documentation. + /// Returns [DocumentChunk][google.developers.knowledge.v1.DocumentChunk]s + /// based on the user's query. There may be many chunks from the same + /// [Document][google.developers.knowledge.v1.Document]. To retrieve full + /// documents, use + /// [DeveloperKnowledge.GetDocument][google.developers.knowledge.v1.DeveloperKnowledge.GetDocument] + /// or + /// [DeveloperKnowledge.BatchGetDocuments][google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments] + /// with the + /// [DocumentChunk.parent][google.developers.knowledge.v1.DocumentChunk.parent] + /// returned in the + /// [SearchDocumentChunksResponse.results][google.developers.knowledge.v1.SearchDocumentChunksResponse.results]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable SearchDocumentChunksAsync(SearchDocumentChunksRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Retrieves a single document with its full Markdown content. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Document GetDocument(GetDocumentRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Retrieves a single document with its full Markdown content. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetDocumentAsync(GetDocumentRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Retrieves a single document with its full Markdown content. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetDocumentAsync(GetDocumentRequest request, st::CancellationToken cancellationToken) => + GetDocumentAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Retrieves a single document with its full Markdown content. + /// + /// + /// Required. Specifies the name of the document to retrieve. + /// Format: `documents/{uri_without_scheme}` + /// Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets` + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Document GetDocument(string name, gaxgrpc::CallSettings callSettings = null) => + GetDocument(new GetDocumentRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Retrieves a single document with its full Markdown content. + /// + /// + /// Required. Specifies the name of the document to retrieve. + /// Format: `documents/{uri_without_scheme}` + /// Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets` + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetDocumentAsync(string name, gaxgrpc::CallSettings callSettings = null) => + GetDocumentAsync(new GetDocumentRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Retrieves a single document with its full Markdown content. + /// + /// + /// Required. Specifies the name of the document to retrieve. + /// Format: `documents/{uri_without_scheme}` + /// Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets` + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetDocumentAsync(string name, st::CancellationToken cancellationToken) => + GetDocumentAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Retrieves a single document with its full Markdown content. + /// + /// + /// Required. Specifies the name of the document to retrieve. + /// Format: `documents/{uri_without_scheme}` + /// Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets` + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Document GetDocument(DocumentName name, gaxgrpc::CallSettings callSettings = null) => + GetDocument(new GetDocumentRequest + { + DocumentName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Retrieves a single document with its full Markdown content. + /// + /// + /// Required. Specifies the name of the document to retrieve. + /// Format: `documents/{uri_without_scheme}` + /// Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets` + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetDocumentAsync(DocumentName name, gaxgrpc::CallSettings callSettings = null) => + GetDocumentAsync(new GetDocumentRequest + { + DocumentName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Retrieves a single document with its full Markdown content. + /// + /// + /// Required. Specifies the name of the document to retrieve. + /// Format: `documents/{uri_without_scheme}` + /// Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets` + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetDocumentAsync(DocumentName name, st::CancellationToken cancellationToken) => + GetDocumentAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Retrieves multiple documents, each with its full Markdown content. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual BatchGetDocumentsResponse BatchGetDocuments(BatchGetDocumentsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Retrieves multiple documents, each with its full Markdown content. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task BatchGetDocumentsAsync(BatchGetDocumentsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Retrieves multiple documents, each with its full Markdown content. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task BatchGetDocumentsAsync(BatchGetDocumentsRequest request, st::CancellationToken cancellationToken) => + BatchGetDocumentsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + } + + /// DeveloperKnowledge client wrapper implementation, for convenient use. + /// + /// The Developer Knowledge API provides programmatic access to Google's public + /// developer documentation, enabling you to integrate this knowledge base into + /// your own applications and workflows. + /// + /// The API is designed to be the canonical source for machine-readable access to + /// Google's developer documentation. + /// + /// A typical use case is to first use + /// [DeveloperKnowledge.SearchDocumentChunks][google.developers.knowledge.v1.DeveloperKnowledge.SearchDocumentChunks] + /// to find relevant page URIs based on a query, and then use + /// [DeveloperKnowledge.GetDocument][google.developers.knowledge.v1.DeveloperKnowledge.GetDocument] + /// or + /// [DeveloperKnowledge.BatchGetDocuments][google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments] + /// to fetch the full content of the top results. + /// + /// All document content is provided in Markdown format. + /// + public sealed partial class DeveloperKnowledgeClientImpl : DeveloperKnowledgeClient + { + private readonly gaxgrpc::ApiCall _callSearchDocumentChunks; + + private readonly gaxgrpc::ApiCall _callGetDocument; + + private readonly gaxgrpc::ApiCall _callBatchGetDocuments; + + /// + /// Constructs a client wrapper for the DeveloperKnowledge service, with the specified gRPC client and settings. + /// + /// The underlying gRPC client. + /// The base used within this client. + /// Optional to use within this client. + public DeveloperKnowledgeClientImpl(DeveloperKnowledge.DeveloperKnowledgeClient grpcClient, DeveloperKnowledgeSettings settings, mel::ILogger logger) + { + GrpcClient = grpcClient; + DeveloperKnowledgeSettings effectiveSettings = settings ?? DeveloperKnowledgeSettings.GetDefault(); + gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(new gaxgrpc::ClientHelper.Options + { + Settings = effectiveSettings, + Logger = logger, + }); + _callSearchDocumentChunks = clientHelper.BuildApiCall("SearchDocumentChunks", grpcClient.SearchDocumentChunksAsync, grpcClient.SearchDocumentChunks, effectiveSettings.SearchDocumentChunksSettings); + Modify_ApiCall(ref _callSearchDocumentChunks); + Modify_SearchDocumentChunksApiCall(ref _callSearchDocumentChunks); + _callGetDocument = clientHelper.BuildApiCall("GetDocument", grpcClient.GetDocumentAsync, grpcClient.GetDocument, effectiveSettings.GetDocumentSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callGetDocument); + Modify_GetDocumentApiCall(ref _callGetDocument); + _callBatchGetDocuments = clientHelper.BuildApiCall("BatchGetDocuments", grpcClient.BatchGetDocumentsAsync, grpcClient.BatchGetDocuments, effectiveSettings.BatchGetDocumentsSettings); + Modify_ApiCall(ref _callBatchGetDocuments); + Modify_BatchGetDocumentsApiCall(ref _callBatchGetDocuments); + OnConstruction(grpcClient, effectiveSettings, clientHelper); + } + + partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; + + partial void Modify_SearchDocumentChunksApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_GetDocumentApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_BatchGetDocumentsApiCall(ref gaxgrpc::ApiCall call); + + partial void OnConstruction(DeveloperKnowledge.DeveloperKnowledgeClient grpcClient, DeveloperKnowledgeSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); + + /// The underlying gRPC DeveloperKnowledge client + public override DeveloperKnowledge.DeveloperKnowledgeClient GrpcClient { get; } + + partial void Modify_SearchDocumentChunksRequest(ref SearchDocumentChunksRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_GetDocumentRequest(ref GetDocumentRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_BatchGetDocumentsRequest(ref BatchGetDocumentsRequest request, ref gaxgrpc::CallSettings settings); + + /// + /// Searches for developer knowledge across Google's developer documentation. + /// Returns [DocumentChunk][google.developers.knowledge.v1.DocumentChunk]s + /// based on the user's query. There may be many chunks from the same + /// [Document][google.developers.knowledge.v1.Document]. To retrieve full + /// documents, use + /// [DeveloperKnowledge.GetDocument][google.developers.knowledge.v1.DeveloperKnowledge.GetDocument] + /// or + /// [DeveloperKnowledge.BatchGetDocuments][google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments] + /// with the + /// [DocumentChunk.parent][google.developers.knowledge.v1.DocumentChunk.parent] + /// returned in the + /// [SearchDocumentChunksResponse.results][google.developers.knowledge.v1.SearchDocumentChunksResponse.results]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public override gax::PagedEnumerable SearchDocumentChunks(SearchDocumentChunksRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_SearchDocumentChunksRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedEnumerable(_callSearchDocumentChunks, request, callSettings); + } + + /// + /// Searches for developer knowledge across Google's developer documentation. + /// Returns [DocumentChunk][google.developers.knowledge.v1.DocumentChunk]s + /// based on the user's query. There may be many chunks from the same + /// [Document][google.developers.knowledge.v1.Document]. To retrieve full + /// documents, use + /// [DeveloperKnowledge.GetDocument][google.developers.knowledge.v1.DeveloperKnowledge.GetDocument] + /// or + /// [DeveloperKnowledge.BatchGetDocuments][google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments] + /// with the + /// [DocumentChunk.parent][google.developers.knowledge.v1.DocumentChunk.parent] + /// returned in the + /// [SearchDocumentChunksResponse.results][google.developers.knowledge.v1.SearchDocumentChunksResponse.results]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public override gax::PagedAsyncEnumerable SearchDocumentChunksAsync(SearchDocumentChunksRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_SearchDocumentChunksRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedAsyncEnumerable(_callSearchDocumentChunks, request, callSettings); + } + + /// + /// Retrieves a single document with its full Markdown content. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override Document GetDocument(GetDocumentRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetDocumentRequest(ref request, ref callSettings); + return _callGetDocument.Sync(request, callSettings); + } + + /// + /// Retrieves a single document with its full Markdown content. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task GetDocumentAsync(GetDocumentRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetDocumentRequest(ref request, ref callSettings); + return _callGetDocument.Async(request, callSettings); + } + + /// + /// Retrieves multiple documents, each with its full Markdown content. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override BatchGetDocumentsResponse BatchGetDocuments(BatchGetDocumentsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_BatchGetDocumentsRequest(ref request, ref callSettings); + return _callBatchGetDocuments.Sync(request, callSettings); + } + + /// + /// Retrieves multiple documents, each with its full Markdown content. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task BatchGetDocumentsAsync(BatchGetDocumentsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_BatchGetDocumentsRequest(ref request, ref callSettings); + return _callBatchGetDocuments.Async(request, callSettings); + } + } + + public partial class SearchDocumentChunksRequest : gaxgrpc::IPageRequest + { + } + + public partial class SearchDocumentChunksResponse : gaxgrpc::IPageResponse + { + /// Returns an enumerator that iterates through the resources in this response. + public scg::IEnumerator GetEnumerator() => Results.GetEnumerator(); + + sc::IEnumerator sc::IEnumerable.GetEnumerator() => GetEnumerator(); + } +} diff --git a/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1/Developerknowledge.g.cs b/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1/Developerknowledge.g.cs new file mode 100644 index 000000000000..269b619cf3a5 --- /dev/null +++ b/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1/Developerknowledge.g.cs @@ -0,0 +1,2302 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/developers/knowledge/v1/developerknowledge.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.Developers.Knowledge.V1 { + + /// Holder for reflection information generated from google/developers/knowledge/v1/developerknowledge.proto + public static partial class DeveloperknowledgeReflection { + + #region Descriptor + /// File descriptor for google/developers/knowledge/v1/developerknowledge.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DeveloperknowledgeReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cjdnb29nbGUvZGV2ZWxvcGVycy9rbm93bGVkZ2UvdjEvZGV2ZWxvcGVya25v", + "d2xlZGdlLnByb3RvEh5nb29nbGUuZGV2ZWxvcGVycy5rbm93bGVkZ2UudjEa", + "HGdvb2dsZS9hcGkvYW5ub3RhdGlvbnMucHJvdG8aF2dvb2dsZS9hcGkvY2xp", + "ZW50LnByb3RvGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGhln", + "b29nbGUvYXBpL3Jlc291cmNlLnByb3RvGh9nb29nbGUvcHJvdG9idWYvdGlt", + "ZXN0YW1wLnByb3RvIuACCghEb2N1bWVudBIRCgRuYW1lGAEgASgJQgPgQQgS", + "EAoDdXJpGAIgASgJQgPgQQMSFAoHY29udGVudBgDIAEoCUID4EEDEhgKC2Rl", + "c2NyaXB0aW9uGAQgASgJQgPgQQMSGAoLZGF0YV9zb3VyY2UYBSABKAlCA+BB", + "AxISCgV0aXRsZRgGIAEoCUID4EEDEjQKC3VwZGF0ZV90aW1lGAcgASgLMhou", + "Z29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEID4EEDEj8KBHZpZXcYCCABKA4y", + "LC5nb29nbGUuZGV2ZWxvcGVycy5rbm93bGVkZ2UudjEuRG9jdW1lbnRWaWV3", + "QgPgQQM6WupBVwoqZGV2ZWxvcGVya25vd2xlZGdlLmdvb2dsZWFwaXMuY29t", + "L0RvY3VtZW50EhRkb2N1bWVudHMve2RvY3VtZW50fSoJZG9jdW1lbnRzMghk", + "b2N1bWVudCJ3ChtTZWFyY2hEb2N1bWVudENodW5rc1JlcXVlc3QSEgoFcXVl", + "cnkYASABKAlCA+BBAhIWCglwYWdlX3NpemUYAiABKAVCA+BBARIXCgpwYWdl", + "X3Rva2VuGAMgASgJQgPgQQESEwoGZmlsdGVyGAQgASgJQgPgQQEifAocU2Vh", + "cmNoRG9jdW1lbnRDaHVua3NSZXNwb25zZRI+CgdyZXN1bHRzGAEgAygLMi0u", + "Z29vZ2xlLmRldmVsb3BlcnMua25vd2xlZGdlLnYxLkRvY3VtZW50Q2h1bmsS", + "HAoPbmV4dF9wYWdlX3Rva2VuGAIgASgJQgPgQQEilwEKEkdldERvY3VtZW50", + "UmVxdWVzdBJACgRuYW1lGAEgASgJQjLgQQL6QSwKKmRldmVsb3Blcmtub3ds", + "ZWRnZS5nb29nbGVhcGlzLmNvbS9Eb2N1bWVudBI/CgR2aWV3GAIgASgOMiwu", + "Z29vZ2xlLmRldmVsb3BlcnMua25vd2xlZGdlLnYxLkRvY3VtZW50Vmlld0ID", + "4EEBIp4BChhCYXRjaEdldERvY3VtZW50c1JlcXVlc3QSQQoFbmFtZXMYASAD", + "KAlCMuBBAvpBLAoqZGV2ZWxvcGVya25vd2xlZGdlLmdvb2dsZWFwaXMuY29t", + "L0RvY3VtZW50Ej8KBHZpZXcYAiABKA4yLC5nb29nbGUuZGV2ZWxvcGVycy5r", + "bm93bGVkZ2UudjEuRG9jdW1lbnRWaWV3QgPgQQEiWAoZQmF0Y2hHZXREb2N1", + "bWVudHNSZXNwb25zZRI7Cglkb2N1bWVudHMYASADKAsyKC5nb29nbGUuZGV2", + "ZWxvcGVycy5rbm93bGVkZ2UudjEuRG9jdW1lbnQiuwEKDURvY3VtZW50Q2h1", + "bmsSQgoGcGFyZW50GAEgASgJQjLgQQP6QSwKKmRldmVsb3Blcmtub3dsZWRn", + "ZS5nb29nbGVhcGlzLmNvbS9Eb2N1bWVudBIPCgJpZBgCIAEoCUID4EEDEhQK", + "B2NvbnRlbnQYAyABKAlCA+BBAxI/Cghkb2N1bWVudBgEIAEoCzIoLmdvb2ds", + "ZS5kZXZlbG9wZXJzLmtub3dsZWRnZS52MS5Eb2N1bWVudEID4EEDKnkKDERv", + "Y3VtZW50VmlldxIdChlET0NVTUVOVF9WSUVXX1VOU1BFQ0lGSUVEEAASFwoT", + "RE9DVU1FTlRfVklFV19CQVNJQxABEhYKEkRPQ1VNRU5UX1ZJRVdfRlVMTBAC", + "EhkKFURPQ1VNRU5UX1ZJRVdfQ09OVEVOVBADMuwEChJEZXZlbG9wZXJLbm93", + "bGVkZ2USvQEKFFNlYXJjaERvY3VtZW50Q2h1bmtzEjsuZ29vZ2xlLmRldmVs", + "b3BlcnMua25vd2xlZGdlLnYxLlNlYXJjaERvY3VtZW50Q2h1bmtzUmVxdWVz", + "dBo8Lmdvb2dsZS5kZXZlbG9wZXJzLmtub3dsZWRnZS52MS5TZWFyY2hEb2N1", + "bWVudENodW5rc1Jlc3BvbnNlIiqC0+STAiQSIi92MS9kb2N1bWVudHM6c2Vh", + "cmNoRG9jdW1lbnRDaHVua3MSkwEKC0dldERvY3VtZW50EjIuZ29vZ2xlLmRl", + "dmVsb3BlcnMua25vd2xlZGdlLnYxLkdldERvY3VtZW50UmVxdWVzdBooLmdv", + "b2dsZS5kZXZlbG9wZXJzLmtub3dsZWRnZS52MS5Eb2N1bWVudCIm2kEEbmFt", + "ZYLT5JMCGRIXL3YxL3tuYW1lPWRvY3VtZW50cy8qKn0SqAEKEUJhdGNoR2V0", + "RG9jdW1lbnRzEjguZ29vZ2xlLmRldmVsb3BlcnMua25vd2xlZGdlLnYxLkJh", + "dGNoR2V0RG9jdW1lbnRzUmVxdWVzdBo5Lmdvb2dsZS5kZXZlbG9wZXJzLmtu", + "b3dsZWRnZS52MS5CYXRjaEdldERvY3VtZW50c1Jlc3BvbnNlIh6C0+STAhgS", + "Fi92MS9kb2N1bWVudHM6YmF0Y2hHZXQaVcpBIWRldmVsb3Blcmtub3dsZWRn", + "ZS5nb29nbGVhcGlzLmNvbdJBLmh0dHBzOi8vd3d3Lmdvb2dsZWFwaXMuY29t", + "L2F1dGgvY2xvdWQtcGxhdGZvcm1CiAEKImNvbS5nb29nbGUuZGV2ZWxvcGVy", + "cy5rbm93bGVkZ2UudjFCF0RldmVsb3Blcktub3dsZWRnZVByb3RvUAFaR2dv", + "b2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvZGV2ZWxvcGVy", + "cy9rbm93bGVkZ2UvdjE7a25vd2xlZGdlYgZwcm90bzM=")); + 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.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Developers.Knowledge.V1.DocumentView), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Developers.Knowledge.V1.Document), global::Google.Developers.Knowledge.V1.Document.Parser, new[]{ "Name", "Uri", "Content", "Description", "DataSource", "Title", "UpdateTime", "View" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Developers.Knowledge.V1.SearchDocumentChunksRequest), global::Google.Developers.Knowledge.V1.SearchDocumentChunksRequest.Parser, new[]{ "Query", "PageSize", "PageToken", "Filter" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Developers.Knowledge.V1.SearchDocumentChunksResponse), global::Google.Developers.Knowledge.V1.SearchDocumentChunksResponse.Parser, new[]{ "Results", "NextPageToken" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Developers.Knowledge.V1.GetDocumentRequest), global::Google.Developers.Knowledge.V1.GetDocumentRequest.Parser, new[]{ "Name", "View" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Developers.Knowledge.V1.BatchGetDocumentsRequest), global::Google.Developers.Knowledge.V1.BatchGetDocumentsRequest.Parser, new[]{ "Names", "View" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Developers.Knowledge.V1.BatchGetDocumentsResponse), global::Google.Developers.Knowledge.V1.BatchGetDocumentsResponse.Parser, new[]{ "Documents" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Developers.Knowledge.V1.DocumentChunk), global::Google.Developers.Knowledge.V1.DocumentChunk.Parser, new[]{ "Parent", "Id", "Content", "Document" }, null, null, null, null) + })); + } + #endregion + + } + #region Enums + /// + /// Specifies which fields of the + /// [Document][google.developers.knowledge.v1.Document] are included. + /// + public enum DocumentView { + /// + /// The default / unset value. See each API method for its default value if + /// [DocumentView][google.developers.knowledge.v1.DocumentView] is not + /// specified. + /// + [pbr::OriginalName("DOCUMENT_VIEW_UNSPECIFIED")] Unspecified = 0, + /// + /// Includes only the basic metadata fields: + /// - `name` + /// - `uri` + /// - `data_source` + /// - `title` + /// - `description` + /// - `update_time` + /// - `view` + /// + /// This is the default of view for + /// [DeveloperKnowledge.SearchDocumentChunks][google.developers.knowledge.v1.DeveloperKnowledge.SearchDocumentChunks]. + /// + [pbr::OriginalName("DOCUMENT_VIEW_BASIC")] Basic = 1, + /// + /// Includes all [Document][google.developers.knowledge.v1.Document] fields. + /// + [pbr::OriginalName("DOCUMENT_VIEW_FULL")] Full = 2, + /// + /// Includes the `DOCUMENT_VIEW_BASIC` fields and the `content` field. + /// + /// This is the default of view for + /// [DeveloperKnowledge.GetDocument][google.developers.knowledge.v1.DeveloperKnowledge.GetDocument] + /// and + /// [DeveloperKnowledge.BatchGetDocuments][google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments]. + /// + [pbr::OriginalName("DOCUMENT_VIEW_CONTENT")] Content = 3, + } + + #endregion + + #region Messages + /// + /// A Document represents a piece of content from the Developer Knowledge corpus. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Document : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Document()); + 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.Developers.Knowledge.V1.DeveloperknowledgeReflection.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 Document() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Document(Document other) : this() { + name_ = other.name_; + uri_ = other.uri_; + content_ = other.content_; + description_ = other.description_; + dataSource_ = other.dataSource_; + title_ = other.title_; + updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null; + view_ = other.view_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Document Clone() { + return new Document(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Identifier. Contains the resource name of the document. + /// Format: `documents/{uri_without_scheme}` + /// Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets` + /// + [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 "uri" field. + public const int UriFieldNumber = 2; + private string uri_ = ""; + /// + /// Output only. Provides the URI of the content, such as + /// `docs.cloud.google.com/storage/docs/creating-buckets`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Uri { + get { return uri_; } + set { + uri_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "content" field. + public const int ContentFieldNumber = 3; + private string content_ = ""; + /// + /// Output only. Contains the full content of the document in Markdown format. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Content { + get { return content_; } + set { + content_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 4; + private string description_ = ""; + /// + /// Output only. Provides a description of the document. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Description { + get { return description_; } + set { + description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "data_source" field. + public const int DataSourceFieldNumber = 5; + private string dataSource_ = ""; + /// + /// Output only. Specifies the data source of the document. + /// Example data source: `firebase.google.com` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DataSource { + get { return dataSource_; } + set { + dataSource_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "title" field. + public const int TitleFieldNumber = 6; + private string title_ = ""; + /// + /// Output only. Provides the title of the document. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Title { + get { return title_; } + set { + title_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "update_time" field. + public const int UpdateTimeFieldNumber = 7; + private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_; + /// + /// Output only. Represents the timestamp when the content or metadata of the + /// document was last updated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime { + get { return updateTime_; } + set { + updateTime_ = value; + } + } + + /// Field number for the "view" field. + public const int ViewFieldNumber = 8; + private global::Google.Developers.Knowledge.V1.DocumentView view_ = global::Google.Developers.Knowledge.V1.DocumentView.Unspecified; + /// + /// Output only. Specifies the + /// [DocumentView][google.developers.knowledge.v1.DocumentView] of the + /// document. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Developers.Knowledge.V1.DocumentView View { + get { return view_; } + set { + view_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Document); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Document other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Uri != other.Uri) return false; + if (Content != other.Content) return false; + if (Description != other.Description) return false; + if (DataSource != other.DataSource) return false; + if (Title != other.Title) return false; + if (!object.Equals(UpdateTime, other.UpdateTime)) return false; + if (View != other.View) 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 (Uri.Length != 0) hash ^= Uri.GetHashCode(); + if (Content.Length != 0) hash ^= Content.GetHashCode(); + if (Description.Length != 0) hash ^= Description.GetHashCode(); + if (DataSource.Length != 0) hash ^= DataSource.GetHashCode(); + if (Title.Length != 0) hash ^= Title.GetHashCode(); + if (updateTime_ != null) hash ^= UpdateTime.GetHashCode(); + if (View != global::Google.Developers.Knowledge.V1.DocumentView.Unspecified) hash ^= View.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 (Uri.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Uri); + } + if (Content.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Content); + } + if (Description.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Description); + } + if (DataSource.Length != 0) { + output.WriteRawTag(42); + output.WriteString(DataSource); + } + if (Title.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Title); + } + if (updateTime_ != null) { + output.WriteRawTag(58); + output.WriteMessage(UpdateTime); + } + if (View != global::Google.Developers.Knowledge.V1.DocumentView.Unspecified) { + output.WriteRawTag(64); + output.WriteEnum((int) View); + } + 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 (Uri.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Uri); + } + if (Content.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Content); + } + if (Description.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Description); + } + if (DataSource.Length != 0) { + output.WriteRawTag(42); + output.WriteString(DataSource); + } + if (Title.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Title); + } + if (updateTime_ != null) { + output.WriteRawTag(58); + output.WriteMessage(UpdateTime); + } + if (View != global::Google.Developers.Knowledge.V1.DocumentView.Unspecified) { + output.WriteRawTag(64); + output.WriteEnum((int) View); + } + 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 (Uri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Uri); + } + if (Content.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Content); + } + if (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (DataSource.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DataSource); + } + if (Title.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); + } + if (updateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime); + } + if (View != global::Google.Developers.Knowledge.V1.DocumentView.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) View); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Document other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Uri.Length != 0) { + Uri = other.Uri; + } + if (other.Content.Length != 0) { + Content = other.Content; + } + if (other.Description.Length != 0) { + Description = other.Description; + } + if (other.DataSource.Length != 0) { + DataSource = other.DataSource; + } + if (other.Title.Length != 0) { + Title = other.Title; + } + if (other.updateTime_ != null) { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdateTime.MergeFrom(other.UpdateTime); + } + if (other.View != global::Google.Developers.Knowledge.V1.DocumentView.Unspecified) { + View = other.View; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Uri = input.ReadString(); + break; + } + case 26: { + Content = input.ReadString(); + break; + } + case 34: { + Description = input.ReadString(); + break; + } + case 42: { + DataSource = input.ReadString(); + break; + } + case 50: { + Title = input.ReadString(); + break; + } + case 58: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 64: { + View = (global::Google.Developers.Knowledge.V1.DocumentView) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Uri = input.ReadString(); + break; + } + case 26: { + Content = input.ReadString(); + break; + } + case 34: { + Description = input.ReadString(); + break; + } + case 42: { + DataSource = input.ReadString(); + break; + } + case 50: { + Title = input.ReadString(); + break; + } + case 58: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 64: { + View = (global::Google.Developers.Knowledge.V1.DocumentView) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for + /// [DeveloperKnowledge.SearchDocumentChunks][google.developers.knowledge.v1.DeveloperKnowledge.SearchDocumentChunks]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SearchDocumentChunksRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SearchDocumentChunksRequest()); + 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.Developers.Knowledge.V1.DeveloperknowledgeReflection.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 SearchDocumentChunksRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SearchDocumentChunksRequest(SearchDocumentChunksRequest other) : this() { + query_ = other.query_; + pageSize_ = other.pageSize_; + pageToken_ = other.pageToken_; + filter_ = other.filter_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SearchDocumentChunksRequest Clone() { + return new SearchDocumentChunksRequest(this); + } + + /// Field number for the "query" field. + public const int QueryFieldNumber = 1; + private string query_ = ""; + /// + /// Required. Provides the raw query string provided by the user, such as "How + /// to create a Cloud Storage bucket?". + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Query { + get { return query_; } + set { + query_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "page_size" field. + public const int PageSizeFieldNumber = 2; + private int pageSize_; + /// + /// Optional. Specifies the maximum number of results to return. The service + /// may return fewer than this value. + /// + /// If unspecified, at most 5 results will be returned. + /// + /// The maximum value is 20; values above 20 will result in an INVALID_ARGUMENT + /// error. + /// + [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_ = ""; + /// + /// Optional. Contains a page token, received from a previous + /// `SearchDocumentChunks` call. Provide this to retrieve the subsequent page. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PageToken { + get { return pageToken_; } + set { + pageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "filter" field. + public const int FilterFieldNumber = 4; + private string filter_ = ""; + /// + /// Optional. Applies a strict filter to the search results. The expression + /// supports a subset of the syntax described at https://google.aip.dev/160. + /// + /// While `SearchDocumentChunks` returns + /// [DocumentChunk][google.developers.knowledge.v1.DocumentChunk]s, the filter + /// is applied to `DocumentChunk.document` fields. + /// + /// Supported fields for filtering: + /// + /// * `data_source` (STRING): The source of the document, e.g. + /// `docs.cloud.google.com`. See + /// https://developers.google.com/knowledge/reference/corpus-reference for + /// the complete list of data sources in the corpus. + /// * `update_time` (TIMESTAMP): The timestamp of when the document was last + /// meaningfully updated. A meaningful update is one that changes document's + /// markdown content or metadata. + /// * `uri` (STRING): The document URI, e.g. + /// `https://docs.cloud.google.com/bigquery/docs/tables`. + /// + /// STRING fields support `=` (equals) and `!=` (not equals) operators for + /// **exact match** on the whole string. Partial match, prefix match, and + /// regexp match are not supported. + /// + /// TIMESTAMP fields support `=`, `<`, `<=`, `>`, and `>=` operators. + /// Timestamps must be in RFC-3339 format, e.g., `"2025-01-01T00:00:00Z"`. + /// + /// You can combine expressions using `AND`, `OR`, and `NOT` (or `-`) logical + /// operators. `OR` has higher precedence than `AND`. Use parentheses for + /// explicit precedence grouping. + /// + /// Examples: + /// + /// * `data_source = "docs.cloud.google.com" OR data_source = + /// "firebase.google.com"` + /// * `data_source != "firebase.google.com"` + /// * `update_time < "2024-01-01T00:00:00Z"` + /// * `update_time >= "2025-01-22T00:00:00Z" AND (data_source = + /// "developer.chrome.com" OR data_source = "web.dev")` + /// * `uri = "https://docs.cloud.google.com/release-notes"` + /// + /// The `filter` string must not exceed 500 characters; values longer than 500 + /// characters will result in an `INVALID_ARGUMENT` error. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Filter { + get { return filter_; } + set { + filter_ = 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 SearchDocumentChunksRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SearchDocumentChunksRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Query != other.Query) return false; + if (PageSize != other.PageSize) return false; + if (PageToken != other.PageToken) return false; + if (Filter != other.Filter) 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 (Query.Length != 0) hash ^= Query.GetHashCode(); + if (PageSize != 0) hash ^= PageSize.GetHashCode(); + if (PageToken.Length != 0) hash ^= PageToken.GetHashCode(); + if (Filter.Length != 0) hash ^= Filter.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 (Query.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Query); + } + 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 (_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 (Query.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Query); + } + 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 (_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 (Query.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Query); + } + if (PageSize != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PageSize); + } + if (PageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PageToken); + } + if (Filter.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Filter); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SearchDocumentChunksRequest other) { + if (other == null) { + return; + } + if (other.Query.Length != 0) { + Query = other.Query; + } + if (other.PageSize != 0) { + PageSize = other.PageSize; + } + if (other.PageToken.Length != 0) { + PageToken = other.PageToken; + } + if (other.Filter.Length != 0) { + Filter = other.Filter; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Query = input.ReadString(); + break; + } + case 16: { + PageSize = input.ReadInt32(); + break; + } + case 26: { + PageToken = input.ReadString(); + break; + } + case 34: { + Filter = 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Query = input.ReadString(); + break; + } + case 16: { + PageSize = input.ReadInt32(); + break; + } + case 26: { + PageToken = input.ReadString(); + break; + } + case 34: { + Filter = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Response message for + /// [DeveloperKnowledge.SearchDocumentChunks][google.developers.knowledge.v1.DeveloperKnowledge.SearchDocumentChunks]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SearchDocumentChunksResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SearchDocumentChunksResponse()); + 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.Developers.Knowledge.V1.DeveloperknowledgeReflection.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 SearchDocumentChunksResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SearchDocumentChunksResponse(SearchDocumentChunksResponse other) : this() { + results_ = other.results_.Clone(); + nextPageToken_ = other.nextPageToken_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SearchDocumentChunksResponse Clone() { + return new SearchDocumentChunksResponse(this); + } + + /// Field number for the "results" field. + public const int ResultsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_results_codec + = pb::FieldCodec.ForMessage(10, global::Google.Developers.Knowledge.V1.DocumentChunk.Parser); + private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); + /// + /// Contains the search results for the given query. Each + /// [DocumentChunk][google.developers.knowledge.v1.DocumentChunk] in this list + /// contains a snippet of content relevant to the search query. Use the + /// [DocumentChunk.parent][google.developers.knowledge.v1.DocumentChunk.parent] + /// field of each result with + /// [DeveloperKnowledge.GetDocument][google.developers.knowledge.v1.DeveloperKnowledge.GetDocument] + /// or + /// [DeveloperKnowledge.BatchGetDocuments][google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments] + /// to retrieve the full document content. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Results { + get { return results_; } + } + + /// Field number for the "next_page_token" field. + public const int NextPageTokenFieldNumber = 2; + private string nextPageToken_ = ""; + /// + /// Optional. Provides a token that can be sent as `page_token` to retrieve the + /// next page. If this field is omitted, there are no subsequent pages. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NextPageToken { + get { return nextPageToken_; } + set { + nextPageToken_ = 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 SearchDocumentChunksResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SearchDocumentChunksResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!results_.Equals(other.results_)) return false; + if (NextPageToken != other.NextPageToken) 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 ^= results_.GetHashCode(); + if (NextPageToken.Length != 0) hash ^= NextPageToken.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 + results_.WriteTo(output, _repeated_results_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + 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) { + results_.WriteTo(ref output, _repeated_results_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + 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 += results_.CalculateSize(_repeated_results_codec); + if (NextPageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NextPageToken); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SearchDocumentChunksResponse other) { + if (other == null) { + return; + } + results_.Add(other.results_); + if (other.NextPageToken.Length != 0) { + NextPageToken = other.NextPageToken; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + results_.AddEntriesFrom(input, _repeated_results_codec); + break; + } + case 18: { + NextPageToken = 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + results_.AddEntriesFrom(ref input, _repeated_results_codec); + break; + } + case 18: { + NextPageToken = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for + /// [DeveloperKnowledge.GetDocument][google.developers.knowledge.v1.DeveloperKnowledge.GetDocument]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetDocumentRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDocumentRequest()); + 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.Developers.Knowledge.V1.DeveloperknowledgeReflection.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 GetDocumentRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDocumentRequest(GetDocumentRequest other) : this() { + name_ = other.name_; + view_ = other.view_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetDocumentRequest Clone() { + return new GetDocumentRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. Specifies the name of the document to retrieve. + /// Format: `documents/{uri_without_scheme}` + /// Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets` + /// + [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 "view" field. + public const int ViewFieldNumber = 2; + private global::Google.Developers.Knowledge.V1.DocumentView view_ = global::Google.Developers.Knowledge.V1.DocumentView.Unspecified; + /// + /// Optional. Specifies the + /// [DocumentView][google.developers.knowledge.v1.DocumentView] of the + /// document. If unspecified, + /// [DeveloperKnowledge.GetDocument][google.developers.knowledge.v1.DeveloperKnowledge.GetDocument] + /// defaults to `DOCUMENT_VIEW_CONTENT`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Developers.Knowledge.V1.DocumentView View { + get { return view_; } + set { + view_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetDocumentRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetDocumentRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (View != other.View) 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 (View != global::Google.Developers.Knowledge.V1.DocumentView.Unspecified) hash ^= View.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 (View != global::Google.Developers.Knowledge.V1.DocumentView.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) View); + } + 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 (View != global::Google.Developers.Knowledge.V1.DocumentView.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) View); + } + 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 (View != global::Google.Developers.Knowledge.V1.DocumentView.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) View); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetDocumentRequest other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.View != global::Google.Developers.Knowledge.V1.DocumentView.Unspecified) { + View = other.View; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 16: { + View = (global::Google.Developers.Knowledge.V1.DocumentView) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 16: { + View = (global::Google.Developers.Knowledge.V1.DocumentView) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for + /// [DeveloperKnowledge.BatchGetDocuments][google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class BatchGetDocumentsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BatchGetDocumentsRequest()); + 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.Developers.Knowledge.V1.DeveloperknowledgeReflection.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 BatchGetDocumentsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BatchGetDocumentsRequest(BatchGetDocumentsRequest other) : this() { + names_ = other.names_.Clone(); + view_ = other.view_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BatchGetDocumentsRequest Clone() { + return new BatchGetDocumentsRequest(this); + } + + /// Field number for the "names" field. + public const int NamesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_names_codec + = pb::FieldCodec.ForString(10); + private readonly pbc::RepeatedField names_ = new pbc::RepeatedField(); + /// + /// Required. Specifies the names of the documents to retrieve. A maximum of 20 + /// documents can be retrieved in a batch. The documents are returned in the + /// same order as the `names` in the request. + /// + /// Format: `documents/{uri_without_scheme}` + /// Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Names { + get { return names_; } + } + + /// Field number for the "view" field. + public const int ViewFieldNumber = 2; + private global::Google.Developers.Knowledge.V1.DocumentView view_ = global::Google.Developers.Knowledge.V1.DocumentView.Unspecified; + /// + /// Optional. Specifies the + /// [DocumentView][google.developers.knowledge.v1.DocumentView] of the + /// document. If unspecified, + /// [DeveloperKnowledge.BatchGetDocuments][google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments] + /// defaults to `DOCUMENT_VIEW_CONTENT`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Developers.Knowledge.V1.DocumentView View { + get { return view_; } + set { + view_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BatchGetDocumentsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BatchGetDocumentsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!names_.Equals(other.names_)) return false; + if (View != other.View) 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 ^= names_.GetHashCode(); + if (View != global::Google.Developers.Knowledge.V1.DocumentView.Unspecified) hash ^= View.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 + names_.WriteTo(output, _repeated_names_codec); + if (View != global::Google.Developers.Knowledge.V1.DocumentView.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) View); + } + 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) { + names_.WriteTo(ref output, _repeated_names_codec); + if (View != global::Google.Developers.Knowledge.V1.DocumentView.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) View); + } + 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 += names_.CalculateSize(_repeated_names_codec); + if (View != global::Google.Developers.Knowledge.V1.DocumentView.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) View); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BatchGetDocumentsRequest other) { + if (other == null) { + return; + } + names_.Add(other.names_); + if (other.View != global::Google.Developers.Knowledge.V1.DocumentView.Unspecified) { + View = other.View; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + names_.AddEntriesFrom(input, _repeated_names_codec); + break; + } + case 16: { + View = (global::Google.Developers.Knowledge.V1.DocumentView) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + names_.AddEntriesFrom(ref input, _repeated_names_codec); + break; + } + case 16: { + View = (global::Google.Developers.Knowledge.V1.DocumentView) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + /// + /// Response message for + /// [DeveloperKnowledge.BatchGetDocuments][google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class BatchGetDocumentsResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BatchGetDocumentsResponse()); + 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.Developers.Knowledge.V1.DeveloperknowledgeReflection.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 BatchGetDocumentsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BatchGetDocumentsResponse(BatchGetDocumentsResponse other) : this() { + documents_ = other.documents_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BatchGetDocumentsResponse Clone() { + return new BatchGetDocumentsResponse(this); + } + + /// Field number for the "documents" field. + public const int DocumentsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_documents_codec + = pb::FieldCodec.ForMessage(10, global::Google.Developers.Knowledge.V1.Document.Parser); + private readonly pbc::RepeatedField documents_ = new pbc::RepeatedField(); + /// + /// Contains the documents requested. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Documents { + get { return documents_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BatchGetDocumentsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BatchGetDocumentsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!documents_.Equals(other.documents_)) 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 ^= documents_.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 + documents_.WriteTo(output, _repeated_documents_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) { + documents_.WriteTo(ref output, _repeated_documents_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 += documents_.CalculateSize(_repeated_documents_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BatchGetDocumentsResponse other) { + if (other == null) { + return; + } + documents_.Add(other.documents_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + documents_.AddEntriesFrom(input, _repeated_documents_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + documents_.AddEntriesFrom(ref input, _repeated_documents_codec); + break; + } + } + } + } + #endif + + } + + /// + /// A DocumentChunk represents a piece of content from a + /// [Document][google.developers.knowledge.v1.Document] in the DeveloperKnowledge + /// corpus. To fetch the entire document content, pass the `parent` to + /// [DeveloperKnowledge.GetDocument][google.developers.knowledge.v1.DeveloperKnowledge.GetDocument] + /// or + /// [DeveloperKnowledge.BatchGetDocuments][google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DocumentChunk : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DocumentChunk()); + 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.Developers.Knowledge.V1.DeveloperknowledgeReflection.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 DocumentChunk() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DocumentChunk(DocumentChunk other) : this() { + parent_ = other.parent_; + id_ = other.id_; + content_ = other.content_; + document_ = other.document_ != null ? other.document_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DocumentChunk Clone() { + return new DocumentChunk(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; + /// + /// Output only. Contains the resource name of the document this chunk is from. + /// Format: `documents/{uri_without_scheme}` + /// Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets` + /// + [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 "id" field. + public const int IdFieldNumber = 2; + private string id_ = ""; + /// + /// Output only. Specifies the ID of this chunk within the document. The chunk + /// ID is unique within a document, but not globally unique across documents. + /// The chunk ID is not stable and may change over time. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "content" field. + public const int ContentFieldNumber = 3; + private string content_ = ""; + /// + /// Output only. Contains the content of the document chunk. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Content { + get { return content_; } + set { + content_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "document" field. + public const int DocumentFieldNumber = 4; + private global::Google.Developers.Knowledge.V1.Document document_; + /// + /// Output only. Represents metadata about the + /// [Document][google.developers.knowledge.v1.Document] this chunk is from. The + /// [DocumentView][google.developers.knowledge.v1.DocumentView] of this + /// [Document][google.developers.knowledge.v1.Document] message will be set to + /// `DOCUMENT_VIEW_BASIC`. It is included here for convenience so that clients + /// do not need to call + /// [DeveloperKnowledge.GetDocument][google.developers.knowledge.v1.DeveloperKnowledge.GetDocument] + /// or + /// [DeveloperKnowledge.BatchGetDocuments][google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments] + /// if they only need the metadata fields. Otherwise, clients should use + /// [DeveloperKnowledge.GetDocument][google.developers.knowledge.v1.DeveloperKnowledge.GetDocument] + /// or + /// [DeveloperKnowledge.BatchGetDocuments][google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments] + /// to fetch the full document content. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Developers.Knowledge.V1.Document Document { + get { return document_; } + set { + document_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DocumentChunk); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DocumentChunk other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Parent != other.Parent) return false; + if (Id != other.Id) return false; + if (Content != other.Content) return false; + if (!object.Equals(Document, other.Document)) 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 (Id.Length != 0) hash ^= Id.GetHashCode(); + if (Content.Length != 0) hash ^= Content.GetHashCode(); + if (document_ != null) hash ^= Document.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 (Id.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Id); + } + if (Content.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Content); + } + if (document_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Document); + } + 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 (Id.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Id); + } + if (Content.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Content); + } + if (document_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Document); + } + 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 (Id.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); + } + if (Content.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Content); + } + if (document_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Document); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DocumentChunk other) { + if (other == null) { + return; + } + if (other.Parent.Length != 0) { + Parent = other.Parent; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.Content.Length != 0) { + Content = other.Content; + } + if (other.document_ != null) { + if (document_ == null) { + Document = new global::Google.Developers.Knowledge.V1.Document(); + } + Document.MergeFrom(other.Document); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + Id = input.ReadString(); + break; + } + case 26: { + Content = input.ReadString(); + break; + } + case 34: { + if (document_ == null) { + Document = new global::Google.Developers.Knowledge.V1.Document(); + } + input.ReadMessage(Document); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + Id = input.ReadString(); + break; + } + case 26: { + Content = input.ReadString(); + break; + } + case 34: { + if (document_ == null) { + Document = new global::Google.Developers.Knowledge.V1.Document(); + } + input.ReadMessage(Document); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1/DeveloperknowledgeGrpc.g.cs b/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1/DeveloperknowledgeGrpc.g.cs new file mode 100644 index 000000000000..ef900998899d --- /dev/null +++ b/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1/DeveloperknowledgeGrpc.g.cs @@ -0,0 +1,425 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/developers/knowledge/v1/developerknowledge.proto +// +// Original file comments: +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#pragma warning disable 0414, 1591, 8981, 0612 +#region Designer generated code + +using grpc = global::Grpc.Core; + +namespace Google.Developers.Knowledge.V1 { + /// + /// The Developer Knowledge API provides programmatic access to Google's public + /// developer documentation, enabling you to integrate this knowledge base into + /// your own applications and workflows. + /// + /// The API is designed to be the canonical source for machine-readable access to + /// Google's developer documentation. + /// + /// A typical use case is to first use + /// [DeveloperKnowledge.SearchDocumentChunks][google.developers.knowledge.v1.DeveloperKnowledge.SearchDocumentChunks] + /// to find relevant page URIs based on a query, and then use + /// [DeveloperKnowledge.GetDocument][google.developers.knowledge.v1.DeveloperKnowledge.GetDocument] + /// or + /// [DeveloperKnowledge.BatchGetDocuments][google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments] + /// to fetch the full content of the top results. + /// + /// All document content is provided in Markdown format. + /// + public static partial class DeveloperKnowledge + { + static readonly string __ServiceName = "google.developers.knowledge.v1.DeveloperKnowledge"; + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) + { + #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION + if (message is global::Google.Protobuf.IBufferMessage) + { + context.SetPayloadLength(message.CalculateSize()); + global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); + context.Complete(); + return; + } + #endif + context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static class __Helper_MessageCache + { + public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage + { + #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION + if (__Helper_MessageCache.IsBufferMessage) + { + return parser.ParseFrom(context.PayloadAsReadOnlySequence()); + } + #endif + return parser.ParseFrom(context.PayloadAsNewBuffer()); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_developers_knowledge_v1_SearchDocumentChunksRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Developers.Knowledge.V1.SearchDocumentChunksRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_developers_knowledge_v1_SearchDocumentChunksResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Developers.Knowledge.V1.SearchDocumentChunksResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_developers_knowledge_v1_GetDocumentRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Developers.Knowledge.V1.GetDocumentRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_developers_knowledge_v1_Document = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Developers.Knowledge.V1.Document.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_developers_knowledge_v1_BatchGetDocumentsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Developers.Knowledge.V1.BatchGetDocumentsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_developers_knowledge_v1_BatchGetDocumentsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Developers.Knowledge.V1.BatchGetDocumentsResponse.Parser)); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_SearchDocumentChunks = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "SearchDocumentChunks", + __Marshaller_google_developers_knowledge_v1_SearchDocumentChunksRequest, + __Marshaller_google_developers_knowledge_v1_SearchDocumentChunksResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetDocument = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetDocument", + __Marshaller_google_developers_knowledge_v1_GetDocumentRequest, + __Marshaller_google_developers_knowledge_v1_Document); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_BatchGetDocuments = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "BatchGetDocuments", + __Marshaller_google_developers_knowledge_v1_BatchGetDocumentsRequest, + __Marshaller_google_developers_knowledge_v1_BatchGetDocumentsResponse); + + /// Service descriptor + public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor + { + get { return global::Google.Developers.Knowledge.V1.DeveloperknowledgeReflection.Descriptor.Services[0]; } + } + + /// Base class for server-side implementations of DeveloperKnowledge + [grpc::BindServiceMethod(typeof(DeveloperKnowledge), "BindService")] + public abstract partial class DeveloperKnowledgeBase + { + /// + /// Searches for developer knowledge across Google's developer documentation. + /// Returns [DocumentChunk][google.developers.knowledge.v1.DocumentChunk]s + /// based on the user's query. There may be many chunks from the same + /// [Document][google.developers.knowledge.v1.Document]. To retrieve full + /// documents, use + /// [DeveloperKnowledge.GetDocument][google.developers.knowledge.v1.DeveloperKnowledge.GetDocument] + /// or + /// [DeveloperKnowledge.BatchGetDocuments][google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments] + /// with the + /// [DocumentChunk.parent][google.developers.knowledge.v1.DocumentChunk.parent] + /// returned in the + /// [SearchDocumentChunksResponse.results][google.developers.knowledge.v1.SearchDocumentChunksResponse.results]. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task SearchDocumentChunks(global::Google.Developers.Knowledge.V1.SearchDocumentChunksRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Retrieves a single document with its full Markdown content. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task GetDocument(global::Google.Developers.Knowledge.V1.GetDocumentRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Retrieves multiple documents, each with its full Markdown content. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task BatchGetDocuments(global::Google.Developers.Knowledge.V1.BatchGetDocumentsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + } + + /// Client for DeveloperKnowledge + public partial class DeveloperKnowledgeClient : grpc::ClientBase + { + /// Creates a new client for DeveloperKnowledge + /// The channel to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public DeveloperKnowledgeClient(grpc::ChannelBase channel) : base(channel) + { + } + /// Creates a new client for DeveloperKnowledge that uses a custom CallInvoker. + /// The callInvoker to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public DeveloperKnowledgeClient(grpc::CallInvoker callInvoker) : base(callInvoker) + { + } + /// Protected parameterless constructor to allow creation of test doubles. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected DeveloperKnowledgeClient() : base() + { + } + /// Protected constructor to allow creation of configured clients. + /// The client configuration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected DeveloperKnowledgeClient(ClientBaseConfiguration configuration) : base(configuration) + { + } + + /// + /// Searches for developer knowledge across Google's developer documentation. + /// Returns [DocumentChunk][google.developers.knowledge.v1.DocumentChunk]s + /// based on the user's query. There may be many chunks from the same + /// [Document][google.developers.knowledge.v1.Document]. To retrieve full + /// documents, use + /// [DeveloperKnowledge.GetDocument][google.developers.knowledge.v1.DeveloperKnowledge.GetDocument] + /// or + /// [DeveloperKnowledge.BatchGetDocuments][google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments] + /// with the + /// [DocumentChunk.parent][google.developers.knowledge.v1.DocumentChunk.parent] + /// returned in the + /// [SearchDocumentChunksResponse.results][google.developers.knowledge.v1.SearchDocumentChunksResponse.results]. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Developers.Knowledge.V1.SearchDocumentChunksResponse SearchDocumentChunks(global::Google.Developers.Knowledge.V1.SearchDocumentChunksRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return SearchDocumentChunks(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Searches for developer knowledge across Google's developer documentation. + /// Returns [DocumentChunk][google.developers.knowledge.v1.DocumentChunk]s + /// based on the user's query. There may be many chunks from the same + /// [Document][google.developers.knowledge.v1.Document]. To retrieve full + /// documents, use + /// [DeveloperKnowledge.GetDocument][google.developers.knowledge.v1.DeveloperKnowledge.GetDocument] + /// or + /// [DeveloperKnowledge.BatchGetDocuments][google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments] + /// with the + /// [DocumentChunk.parent][google.developers.knowledge.v1.DocumentChunk.parent] + /// returned in the + /// [SearchDocumentChunksResponse.results][google.developers.knowledge.v1.SearchDocumentChunksResponse.results]. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Developers.Knowledge.V1.SearchDocumentChunksResponse SearchDocumentChunks(global::Google.Developers.Knowledge.V1.SearchDocumentChunksRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_SearchDocumentChunks, null, options, request); + } + /// + /// Searches for developer knowledge across Google's developer documentation. + /// Returns [DocumentChunk][google.developers.knowledge.v1.DocumentChunk]s + /// based on the user's query. There may be many chunks from the same + /// [Document][google.developers.knowledge.v1.Document]. To retrieve full + /// documents, use + /// [DeveloperKnowledge.GetDocument][google.developers.knowledge.v1.DeveloperKnowledge.GetDocument] + /// or + /// [DeveloperKnowledge.BatchGetDocuments][google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments] + /// with the + /// [DocumentChunk.parent][google.developers.knowledge.v1.DocumentChunk.parent] + /// returned in the + /// [SearchDocumentChunksResponse.results][google.developers.knowledge.v1.SearchDocumentChunksResponse.results]. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall SearchDocumentChunksAsync(global::Google.Developers.Knowledge.V1.SearchDocumentChunksRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return SearchDocumentChunksAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Searches for developer knowledge across Google's developer documentation. + /// Returns [DocumentChunk][google.developers.knowledge.v1.DocumentChunk]s + /// based on the user's query. There may be many chunks from the same + /// [Document][google.developers.knowledge.v1.Document]. To retrieve full + /// documents, use + /// [DeveloperKnowledge.GetDocument][google.developers.knowledge.v1.DeveloperKnowledge.GetDocument] + /// or + /// [DeveloperKnowledge.BatchGetDocuments][google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments] + /// with the + /// [DocumentChunk.parent][google.developers.knowledge.v1.DocumentChunk.parent] + /// returned in the + /// [SearchDocumentChunksResponse.results][google.developers.knowledge.v1.SearchDocumentChunksResponse.results]. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall SearchDocumentChunksAsync(global::Google.Developers.Knowledge.V1.SearchDocumentChunksRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_SearchDocumentChunks, null, options, request); + } + /// + /// Retrieves a single document with its full Markdown content. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Developers.Knowledge.V1.Document GetDocument(global::Google.Developers.Knowledge.V1.GetDocumentRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetDocument(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Retrieves a single document with its full Markdown content. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Developers.Knowledge.V1.Document GetDocument(global::Google.Developers.Knowledge.V1.GetDocumentRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetDocument, null, options, request); + } + /// + /// Retrieves a single document with its full Markdown content. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetDocumentAsync(global::Google.Developers.Knowledge.V1.GetDocumentRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetDocumentAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Retrieves a single document with its full Markdown content. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetDocumentAsync(global::Google.Developers.Knowledge.V1.GetDocumentRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetDocument, null, options, request); + } + /// + /// Retrieves multiple documents, each with its full Markdown content. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Developers.Knowledge.V1.BatchGetDocumentsResponse BatchGetDocuments(global::Google.Developers.Knowledge.V1.BatchGetDocumentsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return BatchGetDocuments(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Retrieves multiple documents, each with its full Markdown content. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Developers.Knowledge.V1.BatchGetDocumentsResponse BatchGetDocuments(global::Google.Developers.Knowledge.V1.BatchGetDocumentsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_BatchGetDocuments, null, options, request); + } + /// + /// Retrieves multiple documents, each with its full Markdown content. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall BatchGetDocumentsAsync(global::Google.Developers.Knowledge.V1.BatchGetDocumentsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return BatchGetDocumentsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Retrieves multiple documents, each with its full Markdown content. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall BatchGetDocumentsAsync(global::Google.Developers.Knowledge.V1.BatchGetDocumentsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_BatchGetDocuments, null, options, request); + } + /// Creates a new instance of client from given ClientBaseConfiguration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected override DeveloperKnowledgeClient NewInstance(ClientBaseConfiguration configuration) + { + return new DeveloperKnowledgeClient(configuration); + } + } + + /// Creates service definition that can be registered with a server + /// An object implementing the server-side handling logic. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public static grpc::ServerServiceDefinition BindService(DeveloperKnowledgeBase serviceImpl) + { + return grpc::ServerServiceDefinition.CreateBuilder() + .AddMethod(__Method_SearchDocumentChunks, serviceImpl.SearchDocumentChunks) + .AddMethod(__Method_GetDocument, serviceImpl.GetDocument) + .AddMethod(__Method_BatchGetDocuments, serviceImpl.BatchGetDocuments).Build(); + } + + /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. + /// Note: this method is part of an experimental API that can change or be removed without any prior notice. + /// Service methods will be bound by calling AddMethod on this object. + /// An object implementing the server-side handling logic. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public static void BindService(grpc::ServiceBinderBase serviceBinder, DeveloperKnowledgeBase serviceImpl) + { + serviceBinder.AddMethod(__Method_SearchDocumentChunks, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.SearchDocumentChunks)); + serviceBinder.AddMethod(__Method_GetDocument, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetDocument)); + serviceBinder.AddMethod(__Method_BatchGetDocuments, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.BatchGetDocuments)); + } + + } +} +#endregion diff --git a/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1/DeveloperknowledgeResourceNames.g.cs b/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1/DeveloperknowledgeResourceNames.g.cs new file mode 100644 index 000000000000..fd33414ce6ed --- /dev/null +++ b/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1/DeveloperknowledgeResourceNames.g.cs @@ -0,0 +1,276 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +#pragma warning disable CS8981 +using gax = Google.Api.Gax; +using gdkv = Google.Developers.Knowledge.V1; +using sys = System; + +namespace Google.Developers.Knowledge.V1 +{ + /// Resource name for the Document resource. + public sealed partial class DocumentName : gax::IResourceName, sys::IEquatable + { + /// The possible contents of . + public enum ResourceNameType + { + /// An unparsed resource name. + Unparsed = 0, + + /// A resource name with pattern documents/{document}. + Document = 1, + } + + private static gax::PathTemplate s_document = new gax::PathTemplate("documents/{document}"); + + /// Creates a containing an unparsed resource name. + /// The unparsed resource name. Must not be null. + /// + /// A new instance of containing the provided + /// . + /// + public static DocumentName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new DocumentName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// Creates a with the pattern documents/{document}. + /// The Document ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static DocumentName FromDocument(string documentId) => + new DocumentName(ResourceNameType.Document, documentId: gax::GaxPreconditions.CheckNotNullOrEmpty(documentId, nameof(documentId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// documents/{document}. + /// + /// The Document ID. Must not be null or empty. + /// + /// The string representation of this with pattern documents/{document}. + /// + public static string Format(string documentId) => FormatDocument(documentId); + + /// + /// Formats the IDs into the string representation of this with pattern + /// documents/{document}. + /// + /// The Document ID. Must not be null or empty. + /// + /// The string representation of this with pattern documents/{document}. + /// + public static string FormatDocument(string documentId) => + s_document.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(documentId, nameof(documentId))); + + /// Parses the given resource name string into a new instance. + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// documents/{document} + /// + /// The resource name in string form. Must not be null. + /// The parsed if successful. + public static DocumentName Parse(string documentName) => Parse(documentName, false); + + /// + /// Parses the given resource name string into a new instance; optionally allowing an + /// unparseable resource name. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// documents/{document} + /// Or may be in any format if is true. + /// + /// The resource name in string form. Must not be null. + /// + /// If true will successfully store an unparseable resource name into the + /// property; otherwise will throw an if an unparseable resource name is + /// specified. + /// + /// The parsed if successful. + public static DocumentName Parse(string documentName, bool allowUnparsed) => + TryParse(documentName, allowUnparsed, out DocumentName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); + + /// + /// Tries to parse the given resource name string into a new instance. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// documents/{document} + /// + /// The resource name in string form. Must not be null. + /// + /// When this method returns, the parsed , or null if parsing failed. + /// + /// true if the name was parsed successfully; false otherwise. + public static bool TryParse(string documentName, out DocumentName result) => TryParse(documentName, false, out result); + + /// + /// Tries to parse the given resource name string into a new instance; optionally + /// allowing an unparseable resource name. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// documents/{document} + /// Or may be in any format if is true. + /// + /// The resource name in string form. Must not be null. + /// + /// If true will successfully store an unparseable resource name into the + /// property; otherwise will throw an if an unparseable resource name is + /// specified. + /// + /// + /// When this method returns, the parsed , or null if parsing failed. + /// + /// true if the name was parsed successfully; false otherwise. + public static bool TryParse(string documentName, bool allowUnparsed, out DocumentName result) + { + gax::GaxPreconditions.CheckNotNull(documentName, nameof(documentName)); + gax::TemplatedResourceName resourceName; + if (s_document.TryParseName(documentName, out resourceName)) + { + result = FromDocument(resourceName[0]); + return true; + } + if (allowUnparsed) + { + if (gax::UnparsedResourceName.TryParse(documentName, out gax::UnparsedResourceName unparsedResourceName)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + private DocumentName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string documentId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + DocumentId = documentId; + } + + /// + /// Constructs a new instance of a class from the component parts of pattern + /// documents/{document} + /// + /// The Document ID. Must not be null or empty. + public DocumentName(string documentId) : this(ResourceNameType.Document, documentId: gax::GaxPreconditions.CheckNotNullOrEmpty(documentId, nameof(documentId))) + { + } + + /// The of the contained resource name. + public ResourceNameType Type { get; } + + /// + /// The contained . Only non-null if this instance contains an + /// unparsed resource name. + /// + public gax::UnparsedResourceName UnparsedResource { get; } + + /// + /// The Document ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string DocumentId { get; } + + /// Whether this instance contains a resource name with a known pattern. + public bool IsKnownPattern => Type != ResourceNameType.Unparsed; + + /// The string representation of the resource name. + /// The string representation of the resource name. + public override string ToString() + { + switch (Type) + { + case ResourceNameType.Unparsed: return UnparsedResource.ToString(); + case ResourceNameType.Document: return s_document.Expand(DocumentId); + default: throw new sys::InvalidOperationException("Unrecognized resource-type."); + } + } + + /// Returns a hash code for this resource name. + public override int GetHashCode() => ToString().GetHashCode(); + + /// + public override bool Equals(object obj) => Equals(obj as DocumentName); + + /// + public bool Equals(DocumentName other) => ToString() == other?.ToString(); + + /// Determines whether two specified resource names have the same value. + /// The first resource name to compare, or null. + /// The second resource name to compare, or null. + /// + /// true if the value of is the same as the value of ; otherwise, + /// false. + /// + public static bool operator ==(DocumentName a, DocumentName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); + + /// Determines whether two specified resource names have different values. + /// The first resource name to compare, or null. + /// The second resource name to compare, or null. + /// + /// true if the value of is different from the value of ; otherwise, + /// false. + /// + public static bool operator !=(DocumentName a, DocumentName b) => !(a == b); + } + + public partial class Document + { + /// + /// -typed view over the resource name property. + /// + public gdkv::DocumentName DocumentName + { + get => string.IsNullOrEmpty(Name) ? null : gdkv::DocumentName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class GetDocumentRequest + { + /// + /// -typed view over the resource name property. + /// + public gdkv::DocumentName DocumentName + { + get => string.IsNullOrEmpty(Name) ? null : gdkv::DocumentName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class BatchGetDocumentsRequest + { + /// + /// -typed view over the resource name property. + /// + public gax::ResourceNameList DocumentNames + { + get => new gax::ResourceNameList(Names, s => string.IsNullOrEmpty(s) ? null : DocumentName.Parse(s, allowUnparsed: true)); + } + } + + public partial class DocumentChunk + { + /// + /// -typed view over the resource name property. + /// + public DocumentName ParentAsDocumentName + { + get => string.IsNullOrEmpty(Parent) ? null : DocumentName.Parse(Parent, allowUnparsed: true); + set => Parent = value?.ToString() ?? ""; + } + } +} diff --git a/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.csproj b/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.csproj new file mode 100644 index 000000000000..a1bcbf019e5c --- /dev/null +++ b/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1.csproj @@ -0,0 +1,15 @@ + + + + 1.0.0-beta00 + netstandard2.0;net462 + true + The Developer Knowledge API provides access to Google's developer knowledge. + Google;Cloud + + + + + + + \ No newline at end of file diff --git a/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1/PackageApiMetadata.g.cs b/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1/PackageApiMetadata.g.cs new file mode 100644 index 000000000000..132e7f3683c4 --- /dev/null +++ b/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1/PackageApiMetadata.g.cs @@ -0,0 +1,36 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +#pragma warning disable CS8981 +using gaxgrpc = Google.Api.Gax.Grpc; +using gpr = Google.Protobuf.Reflection; +using scg = System.Collections.Generic; + +namespace Google.Developers.Knowledge.V1 +{ + /// Static class to provide common access to package-wide API metadata. + internal static class PackageApiMetadata + { + /// The for services in this package. + internal static gaxgrpc::ApiMetadata ApiMetadata { get; } = new gaxgrpc::ApiMetadata("Google.Developers.Knowledge.V1", GetFileDescriptors) + .WithRequestNumericEnumJsonEncoding(true); + + private static scg::IEnumerable GetFileDescriptors() + { + yield return DeveloperknowledgeReflection.Descriptor; + } + } +} diff --git a/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1/ServiceCollectionExtensions.g.cs b/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1/ServiceCollectionExtensions.g.cs new file mode 100644 index 000000000000..6e38184c58f3 --- /dev/null +++ b/apis/Google.Developers.Knowledge.V1/Google.Developers.Knowledge.V1/ServiceCollectionExtensions.g.cs @@ -0,0 +1,65 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +#pragma warning disable CS8981 +using gaxgrpc = Google.Api.Gax.Grpc; +using gdkv = Google.Developers.Knowledge.V1; +using gpr = Google.Protobuf.Reflection; +using scg = System.Collections.Generic; +using sys = System; + +namespace Microsoft.Extensions.DependencyInjection +{ + /// Static class to provide extension methods to configure API clients. + public static partial class ServiceCollectionExtensions + { + /// + /// Adds a singleton to . + /// + /// + /// The service collection to add the client to. The services are used to configure the client when requested. + /// + /// + /// An optional action to invoke on the client builder. This is invoked before services from + /// are used. + /// + public static IServiceCollection AddDeveloperKnowledgeClient(this IServiceCollection services, sys::Action action = null) => + services.AddSingleton(provider => + { + gdkv::DeveloperKnowledgeClientBuilder builder = new gdkv::DeveloperKnowledgeClientBuilder(); + action?.Invoke(builder); + return builder.Build(provider); + }); + + /// + /// Adds a singleton to . + /// + /// + /// The service collection to add the client to. The services are used to configure the client when requested. + /// + /// + /// An optional action to invoke on the client builder. This is invoked before services from + /// are used. + /// + public static IServiceCollection AddDeveloperKnowledgeClient(this IServiceCollection services, sys::Action action) => + services.AddSingleton(provider => + { + gdkv::DeveloperKnowledgeClientBuilder builder = new gdkv::DeveloperKnowledgeClientBuilder(); + action?.Invoke(provider, builder); + return builder.Build(provider); + }); + } +} diff --git a/apis/Google.Developers.Knowledge.V1/gapic_metadata.json b/apis/Google.Developers.Knowledge.V1/gapic_metadata.json new file mode 100644 index 000000000000..0a52c23595db --- /dev/null +++ b/apis/Google.Developers.Knowledge.V1/gapic_metadata.json @@ -0,0 +1,36 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "csharp", + "protoPackage": "google.developers.knowledge.v1", + "libraryPackage": "Google.Developers.Knowledge.V1", + "services": { + "DeveloperKnowledge": { + "clients": { + "grpc": { + "libraryClient": "DeveloperKnowledgeClient", + "rpcs": { + "BatchGetDocuments": { + "methods": [ + "BatchGetDocuments", + "BatchGetDocumentsAsync" + ] + }, + "GetDocument": { + "methods": [ + "GetDocument", + "GetDocumentAsync" + ] + }, + "SearchDocumentChunks": { + "methods": [ + "SearchDocumentChunks", + "SearchDocumentChunksAsync" + ] + } + } + } + } + } + } +} diff --git a/generator-input/pipeline-state.json b/generator-input/pipeline-state.json index befeb106e5ed..6c49dc267570 100644 --- a/generator-input/pipeline-state.json +++ b/generator-input/pipeline-state.json @@ -4993,6 +4993,7 @@ "nextVersion": "1.0.0-beta01", "generationAutomationLevel": "AUTOMATION_LEVEL_AUTOMATIC", "releaseAutomationLevel": "AUTOMATION_LEVEL_BLOCKED", + "lastGeneratedCommit": "15cb2f9cbc7334350c11574776c459d2a4c76495", "apiPaths": [ "google/developers/knowledge/v1" ], From 26c2f01bb5d1b7e3ebf572d31c13d29a3b7840a3 Mon Sep 17 00:00:00 2001 From: Google Cloud SDK Librarian Date: Mon, 20 Apr 2026 07:10:24 +0000 Subject: [PATCH 5/5] feat: Initial generation for Google.Maps.MapManagement.V2Beta --- .github/renovate.json | 1 + .../.repo-metadata.json | 8 + ...Management.V2Beta.GeneratedSnippets.csproj | 20 + ...entClient.CreateMapConfigAsyncSnippet.g.cs | 45 + ...ateMapConfigRequestObjectAsyncSnippet.g.cs | 49 + ...t.CreateMapConfigRequestObjectSnippet.g.cs | 48 + ...ateMapConfigResourceNamesAsyncSnippet.g.cs | 46 + ...t.CreateMapConfigResourceNamesSnippet.g.cs | 45 + ...nagementClient.CreateMapConfigSnippet.g.cs | 44 + ...nt.CreateMapContextConfigAsyncSnippet.g.cs | 45 + ...ontextConfigRequestObjectAsyncSnippet.g.cs | 48 + ...eMapContextConfigRequestObjectSnippet.g.cs | 47 + ...ontextConfigResourceNamesAsyncSnippet.g.cs | 45 + ...eMapContextConfigResourceNamesSnippet.g.cs | 44 + ...tClient.CreateMapContextConfigSnippet.g.cs | 44 + ...tClient.CreateStyleConfigAsyncSnippet.g.cs | 45 + ...eStyleConfigRequestObjectAsyncSnippet.g.cs | 49 + ...CreateStyleConfigRequestObjectSnippet.g.cs | 48 + ...eStyleConfigResourceNamesAsyncSnippet.g.cs | 46 + ...CreateStyleConfigResourceNamesSnippet.g.cs | 45 + ...gementClient.CreateStyleConfigSnippet.g.cs | 44 + ...entClient.DeleteMapConfigAsyncSnippet.g.cs | 45 + ...eteMapConfigRequestObjectAsyncSnippet.g.cs | 48 + ...t.DeleteMapConfigRequestObjectSnippet.g.cs | 47 + ...eteMapConfigResourceNamesAsyncSnippet.g.cs | 45 + ...t.DeleteMapConfigResourceNamesSnippet.g.cs | 44 + ...nagementClient.DeleteMapConfigSnippet.g.cs | 44 + ...nt.DeleteMapContextConfigAsyncSnippet.g.cs | 44 + ...ontextConfigRequestObjectAsyncSnippet.g.cs | 47 + ...eMapContextConfigRequestObjectSnippet.g.cs | 46 + ...ontextConfigResourceNamesAsyncSnippet.g.cs | 44 + ...eMapContextConfigResourceNamesSnippet.g.cs | 43 + ...tClient.DeleteMapContextConfigSnippet.g.cs | 43 + ...tClient.DeleteStyleConfigAsyncSnippet.g.cs | 44 + ...eStyleConfigRequestObjectAsyncSnippet.g.cs | 47 + ...DeleteStyleConfigRequestObjectSnippet.g.cs | 46 + ...eStyleConfigResourceNamesAsyncSnippet.g.cs | 44 + ...DeleteStyleConfigResourceNamesSnippet.g.cs | 43 + ...gementClient.DeleteStyleConfigSnippet.g.cs | 43 + ...gementClient.GetMapConfigAsyncSnippet.g.cs | 44 + ...GetMapConfigRequestObjectAsyncSnippet.g.cs | 47 + ...ient.GetMapConfigRequestObjectSnippet.g.cs | 46 + ...GetMapConfigResourceNamesAsyncSnippet.g.cs | 44 + ...ient.GetMapConfigResourceNamesSnippet.g.cs | 43 + ...pManagementClient.GetMapConfigSnippet.g.cs | 43 + ...lient.GetMapContextConfigAsyncSnippet.g.cs | 44 + ...ontextConfigRequestObjectAsyncSnippet.g.cs | 47 + ...tMapContextConfigRequestObjectSnippet.g.cs | 46 + ...ontextConfigResourceNamesAsyncSnippet.g.cs | 44 + ...tMapContextConfigResourceNamesSnippet.g.cs | 43 + ...mentClient.GetMapContextConfigSnippet.g.cs | 43 + ...mentClient.GetStyleConfigAsyncSnippet.g.cs | 44 + ...tStyleConfigRequestObjectAsyncSnippet.g.cs | 47 + ...nt.GetStyleConfigRequestObjectSnippet.g.cs | 46 + ...tStyleConfigResourceNamesAsyncSnippet.g.cs | 44 + ...nt.GetStyleConfigResourceNamesSnippet.g.cs | 43 + ...anagementClient.GetStyleConfigSnippet.g.cs | 43 + ...mentClient.ListMapConfigsAsyncSnippet.g.cs | 78 + ...stMapConfigsRequestObjectAsyncSnippet.g.cs | 82 + ...nt.ListMapConfigsRequestObjectSnippet.g.cs | 81 + ...stMapConfigsResourceNamesAsyncSnippet.g.cs | 79 + ...nt.ListMapConfigsResourceNamesSnippet.g.cs | 78 + ...anagementClient.ListMapConfigsSnippet.g.cs | 77 + ...ent.ListMapContextConfigsAsyncSnippet.g.cs | 78 + ...ntextConfigsRequestObjectAsyncSnippet.g.cs | 81 + ...MapContextConfigsRequestObjectSnippet.g.cs | 80 + ...ntextConfigsResourceNamesAsyncSnippet.g.cs | 78 + ...MapContextConfigsResourceNamesSnippet.g.cs | 77 + ...ntClient.ListMapContextConfigsSnippet.g.cs | 77 + ...ntClient.ListStyleConfigsAsyncSnippet.g.cs | 78 + ...StyleConfigsRequestObjectAsyncSnippet.g.cs | 84 + ....ListStyleConfigsRequestObjectSnippet.g.cs | 83 + ...StyleConfigsResourceNamesAsyncSnippet.g.cs | 79 + ....ListStyleConfigsResourceNamesSnippet.g.cs | 78 + ...agementClient.ListStyleConfigsSnippet.g.cs | 77 + ...entClient.UpdateMapConfigAsyncSnippet.g.cs | 46 + ...ateMapConfigRequestObjectAsyncSnippet.g.cs | 49 + ...t.UpdateMapConfigRequestObjectSnippet.g.cs | 48 + ...nagementClient.UpdateMapConfigSnippet.g.cs | 45 + ...nt.UpdateMapContextConfigAsyncSnippet.g.cs | 46 + ...ontextConfigRequestObjectAsyncSnippet.g.cs | 49 + ...eMapContextConfigRequestObjectSnippet.g.cs | 48 + ...tClient.UpdateMapContextConfigSnippet.g.cs | 45 + ...tClient.UpdateStyleConfigAsyncSnippet.g.cs | 46 + ...eStyleConfigRequestObjectAsyncSnippet.g.cs | 49 + ...UpdateStyleConfigRequestObjectSnippet.g.cs | 48 + ...gementClient.UpdateStyleConfigSnippet.g.cs | 45 + ...data_google.maps.mapmanagement.v2beta.json | 4209 +++++++++++ ....Maps.MapManagement.V2Beta.Snippets.csproj | 20 + .../MapManagementClientSnippets.g.cs | 1860 +++++ .../Google.Maps.MapManagement.V2Beta.sln | 40 + .../Google.Maps.MapManagement.V2Beta.csproj | 15 + .../MapManagementClient.g.cs | 2868 +++++++ .../MapManagementService.g.cs | 6655 +++++++++++++++++ .../MapManagementServiceGrpc.g.cs | 1240 +++ .../MapManagementServiceResourceNames.g.cs | 1179 +++ .../PackageApiMetadata.g.cs | 36 + .../ServiceCollectionExtensions.g.cs | 61 + .../gapic_metadata.json | 108 + generator-input/pipeline-state.json | 1 + 100 files changed, 22745 insertions(+) create mode 100644 apis/Google.Maps.MapManagement.V2Beta/.repo-metadata.json create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/Google.Maps.MapManagement.V2Beta.GeneratedSnippets.csproj create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateMapConfigAsyncSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateMapConfigRequestObjectAsyncSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateMapConfigRequestObjectSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateMapConfigResourceNamesAsyncSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateMapConfigResourceNamesSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateMapConfigSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateMapContextConfigAsyncSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateMapContextConfigRequestObjectAsyncSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateMapContextConfigRequestObjectSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateMapContextConfigResourceNamesAsyncSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateMapContextConfigResourceNamesSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateMapContextConfigSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateStyleConfigAsyncSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateStyleConfigRequestObjectAsyncSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateStyleConfigRequestObjectSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateStyleConfigResourceNamesAsyncSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateStyleConfigResourceNamesSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateStyleConfigSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteMapConfigAsyncSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteMapConfigRequestObjectAsyncSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteMapConfigRequestObjectSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteMapConfigResourceNamesAsyncSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteMapConfigResourceNamesSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteMapConfigSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteMapContextConfigAsyncSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteMapContextConfigRequestObjectAsyncSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteMapContextConfigRequestObjectSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteMapContextConfigResourceNamesAsyncSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteMapContextConfigResourceNamesSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteMapContextConfigSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteStyleConfigAsyncSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteStyleConfigRequestObjectAsyncSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteStyleConfigRequestObjectSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteStyleConfigResourceNamesAsyncSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteStyleConfigResourceNamesSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteStyleConfigSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetMapConfigAsyncSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetMapConfigRequestObjectAsyncSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetMapConfigRequestObjectSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetMapConfigResourceNamesAsyncSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetMapConfigResourceNamesSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetMapConfigSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetMapContextConfigAsyncSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetMapContextConfigRequestObjectAsyncSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetMapContextConfigRequestObjectSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetMapContextConfigResourceNamesAsyncSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetMapContextConfigResourceNamesSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetMapContextConfigSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetStyleConfigAsyncSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetStyleConfigRequestObjectAsyncSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetStyleConfigRequestObjectSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetStyleConfigResourceNamesAsyncSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetStyleConfigResourceNamesSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetStyleConfigSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListMapConfigsAsyncSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListMapConfigsRequestObjectAsyncSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListMapConfigsRequestObjectSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListMapConfigsResourceNamesAsyncSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListMapConfigsResourceNamesSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListMapConfigsSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListMapContextConfigsAsyncSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListMapContextConfigsRequestObjectAsyncSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListMapContextConfigsRequestObjectSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListMapContextConfigsResourceNamesAsyncSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListMapContextConfigsResourceNamesSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListMapContextConfigsSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListStyleConfigsAsyncSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListStyleConfigsRequestObjectAsyncSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListStyleConfigsRequestObjectSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListStyleConfigsResourceNamesAsyncSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListStyleConfigsResourceNamesSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListStyleConfigsSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.UpdateMapConfigAsyncSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.UpdateMapConfigRequestObjectAsyncSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.UpdateMapConfigRequestObjectSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.UpdateMapConfigSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.UpdateMapContextConfigAsyncSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.UpdateMapContextConfigRequestObjectAsyncSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.UpdateMapContextConfigRequestObjectSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.UpdateMapContextConfigSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.UpdateStyleConfigAsyncSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.UpdateStyleConfigRequestObjectAsyncSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.UpdateStyleConfigRequestObjectSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.UpdateStyleConfigSnippet.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/snippet_metadata_google.maps.mapmanagement.v2beta.json create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.Snippets/Google.Maps.MapManagement.V2Beta.Snippets.csproj create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.Snippets/MapManagementClientSnippets.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.sln create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.csproj create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta/MapManagementClient.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta/MapManagementService.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta/MapManagementServiceGrpc.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta/MapManagementServiceResourceNames.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta/PackageApiMetadata.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta/ServiceCollectionExtensions.g.cs create mode 100644 apis/Google.Maps.MapManagement.V2Beta/gapic_metadata.json diff --git a/.github/renovate.json b/.github/renovate.json index 718b0fdefee2..aa94b4e720e1 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -316,6 +316,7 @@ "apis/Google.Maps.FleetEngine.Delivery.V1/Google.Maps.FleetEngine.Delivery.V1/**", "apis/Google.Maps.FleetEngine.V1/Google.Maps.FleetEngine.V1/**", "apis/Google.Maps.Geocode.V4/Google.Maps.Geocode.V4/**", + "apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta/**", "apis/Google.Maps.MapsPlatformDatasets.V1/Google.Maps.MapsPlatformDatasets.V1/**", "apis/Google.Maps.Places.V1/Google.Maps.Places.V1/**", "apis/Google.Maps.RouteOptimization.V1/Google.Maps.RouteOptimization.V1/**", diff --git a/apis/Google.Maps.MapManagement.V2Beta/.repo-metadata.json b/apis/Google.Maps.MapManagement.V2Beta/.repo-metadata.json new file mode 100644 index 000000000000..0aaa9ee30553 --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/.repo-metadata.json @@ -0,0 +1,8 @@ +{ + "distribution_name": "Google.Maps.MapManagement.V2Beta", + "release_level": "unreleased", + "client_documentation": "https://googleapis.dev/dotnet/Google.Maps.MapManagement.V2Beta/latest", + "library_type": "GAPIC_AUTO", + "language": "dotnet", + "api_shortname": "mapmanagement" +} \ No newline at end of file diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/Google.Maps.MapManagement.V2Beta.GeneratedSnippets.csproj b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/Google.Maps.MapManagement.V2Beta.GeneratedSnippets.csproj new file mode 100644 index 000000000000..d5dda57c9d43 --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/Google.Maps.MapManagement.V2Beta.GeneratedSnippets.csproj @@ -0,0 +1,20 @@ + + + + net8.0;net462 + net8.0 + false + $(NoWarn);1701;1702;1705;xUnit2004;xUnit2013 + + + + + + + + + + + + + \ No newline at end of file diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateMapConfigAsyncSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateMapConfigAsyncSnippet.g.cs new file mode 100644 index 000000000000..d67fe17de65f --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateMapConfigAsyncSnippet.g.cs @@ -0,0 +1,45 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_CreateMapConfig_async_flattened] + using Google.Maps.MapManagement.V2Beta; + using System.Threading.Tasks; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for CreateMapConfigAsync + /// + /// 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 CreateMapConfigAsync() + { + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]"; + MapConfig mapConfig = new MapConfig(); + // Make the request + MapConfig response = await mapManagementClient.CreateMapConfigAsync(parent, mapConfig); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_CreateMapConfig_async_flattened] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateMapConfigRequestObjectAsyncSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateMapConfigRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..2d8cc947cecc --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateMapConfigRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,49 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_CreateMapConfig_async] + using Google.Api.Gax.ResourceNames; + using Google.Maps.MapManagement.V2Beta; + using System.Threading.Tasks; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for CreateMapConfigAsync + /// + /// 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 CreateMapConfigRequestObjectAsync() + { + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + CreateMapConfigRequest request = new CreateMapConfigRequest + { + ParentAsProjectName = ProjectName.FromProject("[PROJECT]"), + MapConfig = new MapConfig(), + }; + // Make the request + MapConfig response = await mapManagementClient.CreateMapConfigAsync(request); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_CreateMapConfig_async] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateMapConfigRequestObjectSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateMapConfigRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..f1aaf53d0110 --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateMapConfigRequestObjectSnippet.g.cs @@ -0,0 +1,48 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_CreateMapConfig_sync] + using Google.Api.Gax.ResourceNames; + using Google.Maps.MapManagement.V2Beta; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for CreateMapConfig + /// + /// 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 CreateMapConfigRequestObject() + { + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + CreateMapConfigRequest request = new CreateMapConfigRequest + { + ParentAsProjectName = ProjectName.FromProject("[PROJECT]"), + MapConfig = new MapConfig(), + }; + // Make the request + MapConfig response = mapManagementClient.CreateMapConfig(request); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_CreateMapConfig_sync] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateMapConfigResourceNamesAsyncSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateMapConfigResourceNamesAsyncSnippet.g.cs new file mode 100644 index 000000000000..1a97d8663ac0 --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateMapConfigResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_CreateMapConfig_async_flattened_resourceNames] + using Google.Api.Gax.ResourceNames; + using Google.Maps.MapManagement.V2Beta; + using System.Threading.Tasks; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for CreateMapConfigAsync + /// + /// 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 CreateMapConfigResourceNamesAsync() + { + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + MapConfig mapConfig = new MapConfig(); + // Make the request + MapConfig response = await mapManagementClient.CreateMapConfigAsync(parent, mapConfig); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_CreateMapConfig_async_flattened_resourceNames] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateMapConfigResourceNamesSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateMapConfigResourceNamesSnippet.g.cs new file mode 100644 index 000000000000..7f79d2f71299 --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateMapConfigResourceNamesSnippet.g.cs @@ -0,0 +1,45 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_CreateMapConfig_sync_flattened_resourceNames] + using Google.Api.Gax.ResourceNames; + using Google.Maps.MapManagement.V2Beta; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for CreateMapConfig + /// + /// 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 CreateMapConfigResourceNames() + { + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + MapConfig mapConfig = new MapConfig(); + // Make the request + MapConfig response = mapManagementClient.CreateMapConfig(parent, mapConfig); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_CreateMapConfig_sync_flattened_resourceNames] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateMapConfigSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateMapConfigSnippet.g.cs new file mode 100644 index 000000000000..c00258df1bc8 --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateMapConfigSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_CreateMapConfig_sync_flattened] + using Google.Maps.MapManagement.V2Beta; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for CreateMapConfig + /// + /// 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 CreateMapConfig() + { + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]"; + MapConfig mapConfig = new MapConfig(); + // Make the request + MapConfig response = mapManagementClient.CreateMapConfig(parent, mapConfig); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_CreateMapConfig_sync_flattened] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateMapContextConfigAsyncSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateMapContextConfigAsyncSnippet.g.cs new file mode 100644 index 000000000000..4ff2ea2b0e09 --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateMapContextConfigAsyncSnippet.g.cs @@ -0,0 +1,45 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_CreateMapContextConfig_async_flattened] + using Google.Maps.MapManagement.V2Beta; + using System.Threading.Tasks; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for CreateMapContextConfigAsync + /// + /// 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 CreateMapContextConfigAsync() + { + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/mapConfigs/[MAP_CONFIG]"; + MapContextConfig mapContextConfig = new MapContextConfig(); + // Make the request + MapContextConfig response = await mapManagementClient.CreateMapContextConfigAsync(parent, mapContextConfig); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_CreateMapContextConfig_async_flattened] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateMapContextConfigRequestObjectAsyncSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateMapContextConfigRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..98d29537178c --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateMapContextConfigRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,48 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_CreateMapContextConfig_async] + using Google.Maps.MapManagement.V2Beta; + using System.Threading.Tasks; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for CreateMapContextConfigAsync + /// + /// 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 CreateMapContextConfigRequestObjectAsync() + { + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + CreateMapContextConfigRequest request = new CreateMapContextConfigRequest + { + ParentAsMapConfigName = MapConfigName.FromProjectMapConfig("[PROJECT]", "[MAP_CONFIG]"), + MapContextConfig = new MapContextConfig(), + }; + // Make the request + MapContextConfig response = await mapManagementClient.CreateMapContextConfigAsync(request); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_CreateMapContextConfig_async] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateMapContextConfigRequestObjectSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateMapContextConfigRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..0de6f66bfe67 --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateMapContextConfigRequestObjectSnippet.g.cs @@ -0,0 +1,47 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_CreateMapContextConfig_sync] + using Google.Maps.MapManagement.V2Beta; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for CreateMapContextConfig + /// + /// 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 CreateMapContextConfigRequestObject() + { + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + CreateMapContextConfigRequest request = new CreateMapContextConfigRequest + { + ParentAsMapConfigName = MapConfigName.FromProjectMapConfig("[PROJECT]", "[MAP_CONFIG]"), + MapContextConfig = new MapContextConfig(), + }; + // Make the request + MapContextConfig response = mapManagementClient.CreateMapContextConfig(request); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_CreateMapContextConfig_sync] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateMapContextConfigResourceNamesAsyncSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateMapContextConfigResourceNamesAsyncSnippet.g.cs new file mode 100644 index 000000000000..a90114afd9ba --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateMapContextConfigResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,45 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_CreateMapContextConfig_async_flattened_resourceNames] + using Google.Maps.MapManagement.V2Beta; + using System.Threading.Tasks; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for CreateMapContextConfigAsync + /// + /// 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 CreateMapContextConfigResourceNamesAsync() + { + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + MapConfigName parent = MapConfigName.FromProjectMapConfig("[PROJECT]", "[MAP_CONFIG]"); + MapContextConfig mapContextConfig = new MapContextConfig(); + // Make the request + MapContextConfig response = await mapManagementClient.CreateMapContextConfigAsync(parent, mapContextConfig); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_CreateMapContextConfig_async_flattened_resourceNames] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateMapContextConfigResourceNamesSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateMapContextConfigResourceNamesSnippet.g.cs new file mode 100644 index 000000000000..960a3c3e16e9 --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateMapContextConfigResourceNamesSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_CreateMapContextConfig_sync_flattened_resourceNames] + using Google.Maps.MapManagement.V2Beta; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for CreateMapContextConfig + /// + /// 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 CreateMapContextConfigResourceNames() + { + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + MapConfigName parent = MapConfigName.FromProjectMapConfig("[PROJECT]", "[MAP_CONFIG]"); + MapContextConfig mapContextConfig = new MapContextConfig(); + // Make the request + MapContextConfig response = mapManagementClient.CreateMapContextConfig(parent, mapContextConfig); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_CreateMapContextConfig_sync_flattened_resourceNames] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateMapContextConfigSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateMapContextConfigSnippet.g.cs new file mode 100644 index 000000000000..ddf2bca38731 --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateMapContextConfigSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_CreateMapContextConfig_sync_flattened] + using Google.Maps.MapManagement.V2Beta; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for CreateMapContextConfig + /// + /// 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 CreateMapContextConfig() + { + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/mapConfigs/[MAP_CONFIG]"; + MapContextConfig mapContextConfig = new MapContextConfig(); + // Make the request + MapContextConfig response = mapManagementClient.CreateMapContextConfig(parent, mapContextConfig); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_CreateMapContextConfig_sync_flattened] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateStyleConfigAsyncSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateStyleConfigAsyncSnippet.g.cs new file mode 100644 index 000000000000..c7b4115671bb --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateStyleConfigAsyncSnippet.g.cs @@ -0,0 +1,45 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_CreateStyleConfig_async_flattened] + using Google.Maps.MapManagement.V2Beta; + using System.Threading.Tasks; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for CreateStyleConfigAsync + /// + /// 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 CreateStyleConfigAsync() + { + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]"; + StyleConfig styleConfig = new StyleConfig(); + // Make the request + StyleConfig response = await mapManagementClient.CreateStyleConfigAsync(parent, styleConfig); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_CreateStyleConfig_async_flattened] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateStyleConfigRequestObjectAsyncSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateStyleConfigRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..00b9b31fd884 --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateStyleConfigRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,49 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_CreateStyleConfig_async] + using Google.Api.Gax.ResourceNames; + using Google.Maps.MapManagement.V2Beta; + using System.Threading.Tasks; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for CreateStyleConfigAsync + /// + /// 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 CreateStyleConfigRequestObjectAsync() + { + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + CreateStyleConfigRequest request = new CreateStyleConfigRequest + { + ParentAsProjectName = ProjectName.FromProject("[PROJECT]"), + StyleConfig = new StyleConfig(), + }; + // Make the request + StyleConfig response = await mapManagementClient.CreateStyleConfigAsync(request); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_CreateStyleConfig_async] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateStyleConfigRequestObjectSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateStyleConfigRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..093bff9d889e --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateStyleConfigRequestObjectSnippet.g.cs @@ -0,0 +1,48 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_CreateStyleConfig_sync] + using Google.Api.Gax.ResourceNames; + using Google.Maps.MapManagement.V2Beta; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for CreateStyleConfig + /// + /// 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 CreateStyleConfigRequestObject() + { + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + CreateStyleConfigRequest request = new CreateStyleConfigRequest + { + ParentAsProjectName = ProjectName.FromProject("[PROJECT]"), + StyleConfig = new StyleConfig(), + }; + // Make the request + StyleConfig response = mapManagementClient.CreateStyleConfig(request); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_CreateStyleConfig_sync] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateStyleConfigResourceNamesAsyncSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateStyleConfigResourceNamesAsyncSnippet.g.cs new file mode 100644 index 000000000000..23bc97a0cfc5 --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateStyleConfigResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_CreateStyleConfig_async_flattened_resourceNames] + using Google.Api.Gax.ResourceNames; + using Google.Maps.MapManagement.V2Beta; + using System.Threading.Tasks; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for CreateStyleConfigAsync + /// + /// 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 CreateStyleConfigResourceNamesAsync() + { + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + StyleConfig styleConfig = new StyleConfig(); + // Make the request + StyleConfig response = await mapManagementClient.CreateStyleConfigAsync(parent, styleConfig); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_CreateStyleConfig_async_flattened_resourceNames] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateStyleConfigResourceNamesSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateStyleConfigResourceNamesSnippet.g.cs new file mode 100644 index 000000000000..5f0512143c91 --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateStyleConfigResourceNamesSnippet.g.cs @@ -0,0 +1,45 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_CreateStyleConfig_sync_flattened_resourceNames] + using Google.Api.Gax.ResourceNames; + using Google.Maps.MapManagement.V2Beta; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for CreateStyleConfig + /// + /// 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 CreateStyleConfigResourceNames() + { + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + StyleConfig styleConfig = new StyleConfig(); + // Make the request + StyleConfig response = mapManagementClient.CreateStyleConfig(parent, styleConfig); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_CreateStyleConfig_sync_flattened_resourceNames] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateStyleConfigSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateStyleConfigSnippet.g.cs new file mode 100644 index 000000000000..3cd2caf25bde --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.CreateStyleConfigSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_CreateStyleConfig_sync_flattened] + using Google.Maps.MapManagement.V2Beta; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for CreateStyleConfig + /// + /// 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 CreateStyleConfig() + { + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]"; + StyleConfig styleConfig = new StyleConfig(); + // Make the request + StyleConfig response = mapManagementClient.CreateStyleConfig(parent, styleConfig); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_CreateStyleConfig_sync_flattened] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteMapConfigAsyncSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteMapConfigAsyncSnippet.g.cs new file mode 100644 index 000000000000..4ae668192a70 --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteMapConfigAsyncSnippet.g.cs @@ -0,0 +1,45 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_DeleteMapConfig_async_flattened] + using Google.Maps.MapManagement.V2Beta; + using System.Threading.Tasks; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for DeleteMapConfigAsync + /// + /// 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 DeleteMapConfigAsync() + { + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/mapConfigs/[MAP_CONFIG]"; + bool force = false; + // Make the request + await mapManagementClient.DeleteMapConfigAsync(name, force); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_DeleteMapConfig_async_flattened] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteMapConfigRequestObjectAsyncSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteMapConfigRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..62eda9bff900 --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteMapConfigRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,48 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_DeleteMapConfig_async] + using Google.Maps.MapManagement.V2Beta; + using System.Threading.Tasks; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for DeleteMapConfigAsync + /// + /// 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 DeleteMapConfigRequestObjectAsync() + { + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + DeleteMapConfigRequest request = new DeleteMapConfigRequest + { + MapConfigName = MapConfigName.FromProjectMapConfig("[PROJECT]", "[MAP_CONFIG]"), + Force = false, + }; + // Make the request + await mapManagementClient.DeleteMapConfigAsync(request); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_DeleteMapConfig_async] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteMapConfigRequestObjectSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteMapConfigRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..2af003ac6524 --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteMapConfigRequestObjectSnippet.g.cs @@ -0,0 +1,47 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_DeleteMapConfig_sync] + using Google.Maps.MapManagement.V2Beta; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for DeleteMapConfig + /// + /// 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 DeleteMapConfigRequestObject() + { + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + DeleteMapConfigRequest request = new DeleteMapConfigRequest + { + MapConfigName = MapConfigName.FromProjectMapConfig("[PROJECT]", "[MAP_CONFIG]"), + Force = false, + }; + // Make the request + mapManagementClient.DeleteMapConfig(request); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_DeleteMapConfig_sync] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteMapConfigResourceNamesAsyncSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteMapConfigResourceNamesAsyncSnippet.g.cs new file mode 100644 index 000000000000..10f661cbb9fa --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteMapConfigResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,45 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_DeleteMapConfig_async_flattened_resourceNames] + using Google.Maps.MapManagement.V2Beta; + using System.Threading.Tasks; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for DeleteMapConfigAsync + /// + /// 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 DeleteMapConfigResourceNamesAsync() + { + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + MapConfigName name = MapConfigName.FromProjectMapConfig("[PROJECT]", "[MAP_CONFIG]"); + bool force = false; + // Make the request + await mapManagementClient.DeleteMapConfigAsync(name, force); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_DeleteMapConfig_async_flattened_resourceNames] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteMapConfigResourceNamesSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteMapConfigResourceNamesSnippet.g.cs new file mode 100644 index 000000000000..9bd659504bcf --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteMapConfigResourceNamesSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_DeleteMapConfig_sync_flattened_resourceNames] + using Google.Maps.MapManagement.V2Beta; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for DeleteMapConfig + /// + /// 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 DeleteMapConfigResourceNames() + { + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + MapConfigName name = MapConfigName.FromProjectMapConfig("[PROJECT]", "[MAP_CONFIG]"); + bool force = false; + // Make the request + mapManagementClient.DeleteMapConfig(name, force); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_DeleteMapConfig_sync_flattened_resourceNames] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteMapConfigSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteMapConfigSnippet.g.cs new file mode 100644 index 000000000000..e98a8af5ec50 --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteMapConfigSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_DeleteMapConfig_sync_flattened] + using Google.Maps.MapManagement.V2Beta; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for DeleteMapConfig + /// + /// 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 DeleteMapConfig() + { + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/mapConfigs/[MAP_CONFIG]"; + bool force = false; + // Make the request + mapManagementClient.DeleteMapConfig(name, force); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_DeleteMapConfig_sync_flattened] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteMapContextConfigAsyncSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteMapContextConfigAsyncSnippet.g.cs new file mode 100644 index 000000000000..ab119a1a3aa7 --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteMapContextConfigAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_DeleteMapContextConfig_async_flattened] + using Google.Maps.MapManagement.V2Beta; + using System.Threading.Tasks; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for DeleteMapContextConfigAsync + /// + /// 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 DeleteMapContextConfigAsync() + { + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/mapConfigs/[MAP_CONFIG]/mapContextConfigs/[MAP_CONTEXT_CONFIG]"; + // Make the request + await mapManagementClient.DeleteMapContextConfigAsync(name); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_DeleteMapContextConfig_async_flattened] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteMapContextConfigRequestObjectAsyncSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteMapContextConfigRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..f235b9ac9b0e --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteMapContextConfigRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,47 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_DeleteMapContextConfig_async] + using Google.Maps.MapManagement.V2Beta; + using System.Threading.Tasks; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for DeleteMapContextConfigAsync + /// + /// 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 DeleteMapContextConfigRequestObjectAsync() + { + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + DeleteMapContextConfigRequest request = new DeleteMapContextConfigRequest + { + MapContextConfigName = MapContextConfigName.FromProjectMapConfigMapContextConfig("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]"), + }; + // Make the request + await mapManagementClient.DeleteMapContextConfigAsync(request); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_DeleteMapContextConfig_async] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteMapContextConfigRequestObjectSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteMapContextConfigRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..d1010e57c531 --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteMapContextConfigRequestObjectSnippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_DeleteMapContextConfig_sync] + using Google.Maps.MapManagement.V2Beta; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for DeleteMapContextConfig + /// + /// 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 DeleteMapContextConfigRequestObject() + { + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + DeleteMapContextConfigRequest request = new DeleteMapContextConfigRequest + { + MapContextConfigName = MapContextConfigName.FromProjectMapConfigMapContextConfig("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]"), + }; + // Make the request + mapManagementClient.DeleteMapContextConfig(request); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_DeleteMapContextConfig_sync] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteMapContextConfigResourceNamesAsyncSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteMapContextConfigResourceNamesAsyncSnippet.g.cs new file mode 100644 index 000000000000..21b4c4e7b7ca --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteMapContextConfigResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_DeleteMapContextConfig_async_flattened_resourceNames] + using Google.Maps.MapManagement.V2Beta; + using System.Threading.Tasks; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for DeleteMapContextConfigAsync + /// + /// 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 DeleteMapContextConfigResourceNamesAsync() + { + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + MapContextConfigName name = MapContextConfigName.FromProjectMapConfigMapContextConfig("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]"); + // Make the request + await mapManagementClient.DeleteMapContextConfigAsync(name); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_DeleteMapContextConfig_async_flattened_resourceNames] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteMapContextConfigResourceNamesSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteMapContextConfigResourceNamesSnippet.g.cs new file mode 100644 index 000000000000..45d0711eebd9 --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteMapContextConfigResourceNamesSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_DeleteMapContextConfig_sync_flattened_resourceNames] + using Google.Maps.MapManagement.V2Beta; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for DeleteMapContextConfig + /// + /// 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 DeleteMapContextConfigResourceNames() + { + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + MapContextConfigName name = MapContextConfigName.FromProjectMapConfigMapContextConfig("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]"); + // Make the request + mapManagementClient.DeleteMapContextConfig(name); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_DeleteMapContextConfig_sync_flattened_resourceNames] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteMapContextConfigSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteMapContextConfigSnippet.g.cs new file mode 100644 index 000000000000..d4df6e85f2ee --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteMapContextConfigSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_DeleteMapContextConfig_sync_flattened] + using Google.Maps.MapManagement.V2Beta; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for DeleteMapContextConfig + /// + /// 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 DeleteMapContextConfig() + { + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/mapConfigs/[MAP_CONFIG]/mapContextConfigs/[MAP_CONTEXT_CONFIG]"; + // Make the request + mapManagementClient.DeleteMapContextConfig(name); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_DeleteMapContextConfig_sync_flattened] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteStyleConfigAsyncSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteStyleConfigAsyncSnippet.g.cs new file mode 100644 index 000000000000..c47a87f4f67c --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteStyleConfigAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_DeleteStyleConfig_async_flattened] + using Google.Maps.MapManagement.V2Beta; + using System.Threading.Tasks; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for DeleteStyleConfigAsync + /// + /// 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 DeleteStyleConfigAsync() + { + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/styleConfigs/[STYLE_CONFIG]"; + // Make the request + await mapManagementClient.DeleteStyleConfigAsync(name); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_DeleteStyleConfig_async_flattened] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteStyleConfigRequestObjectAsyncSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteStyleConfigRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..e53adc044e4f --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteStyleConfigRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,47 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_DeleteStyleConfig_async] + using Google.Maps.MapManagement.V2Beta; + using System.Threading.Tasks; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for DeleteStyleConfigAsync + /// + /// 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 DeleteStyleConfigRequestObjectAsync() + { + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + DeleteStyleConfigRequest request = new DeleteStyleConfigRequest + { + StyleConfigName = StyleConfigName.FromProjectStyleConfig("[PROJECT]", "[STYLE_CONFIG]"), + }; + // Make the request + await mapManagementClient.DeleteStyleConfigAsync(request); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_DeleteStyleConfig_async] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteStyleConfigRequestObjectSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteStyleConfigRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..e628a5ed179e --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteStyleConfigRequestObjectSnippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_DeleteStyleConfig_sync] + using Google.Maps.MapManagement.V2Beta; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for DeleteStyleConfig + /// + /// 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 DeleteStyleConfigRequestObject() + { + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + DeleteStyleConfigRequest request = new DeleteStyleConfigRequest + { + StyleConfigName = StyleConfigName.FromProjectStyleConfig("[PROJECT]", "[STYLE_CONFIG]"), + }; + // Make the request + mapManagementClient.DeleteStyleConfig(request); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_DeleteStyleConfig_sync] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteStyleConfigResourceNamesAsyncSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteStyleConfigResourceNamesAsyncSnippet.g.cs new file mode 100644 index 000000000000..da68b0337a4a --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteStyleConfigResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_DeleteStyleConfig_async_flattened_resourceNames] + using Google.Maps.MapManagement.V2Beta; + using System.Threading.Tasks; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for DeleteStyleConfigAsync + /// + /// 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 DeleteStyleConfigResourceNamesAsync() + { + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + StyleConfigName name = StyleConfigName.FromProjectStyleConfig("[PROJECT]", "[STYLE_CONFIG]"); + // Make the request + await mapManagementClient.DeleteStyleConfigAsync(name); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_DeleteStyleConfig_async_flattened_resourceNames] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteStyleConfigResourceNamesSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteStyleConfigResourceNamesSnippet.g.cs new file mode 100644 index 000000000000..230ebede536e --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteStyleConfigResourceNamesSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_DeleteStyleConfig_sync_flattened_resourceNames] + using Google.Maps.MapManagement.V2Beta; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for DeleteStyleConfig + /// + /// 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 DeleteStyleConfigResourceNames() + { + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + StyleConfigName name = StyleConfigName.FromProjectStyleConfig("[PROJECT]", "[STYLE_CONFIG]"); + // Make the request + mapManagementClient.DeleteStyleConfig(name); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_DeleteStyleConfig_sync_flattened_resourceNames] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteStyleConfigSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteStyleConfigSnippet.g.cs new file mode 100644 index 000000000000..3af1d675cc8a --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.DeleteStyleConfigSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_DeleteStyleConfig_sync_flattened] + using Google.Maps.MapManagement.V2Beta; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for DeleteStyleConfig + /// + /// 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 DeleteStyleConfig() + { + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/styleConfigs/[STYLE_CONFIG]"; + // Make the request + mapManagementClient.DeleteStyleConfig(name); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_DeleteStyleConfig_sync_flattened] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetMapConfigAsyncSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetMapConfigAsyncSnippet.g.cs new file mode 100644 index 000000000000..4a5a9f1c9aae --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetMapConfigAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_GetMapConfig_async_flattened] + using Google.Maps.MapManagement.V2Beta; + using System.Threading.Tasks; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for GetMapConfigAsync + /// + /// 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 GetMapConfigAsync() + { + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/mapConfigs/[MAP_CONFIG]"; + // Make the request + MapConfig response = await mapManagementClient.GetMapConfigAsync(name); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_GetMapConfig_async_flattened] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetMapConfigRequestObjectAsyncSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetMapConfigRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..89195d6fd087 --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetMapConfigRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,47 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_GetMapConfig_async] + using Google.Maps.MapManagement.V2Beta; + using System.Threading.Tasks; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for GetMapConfigAsync + /// + /// 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 GetMapConfigRequestObjectAsync() + { + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + GetMapConfigRequest request = new GetMapConfigRequest + { + MapConfigName = MapConfigName.FromProjectMapConfig("[PROJECT]", "[MAP_CONFIG]"), + }; + // Make the request + MapConfig response = await mapManagementClient.GetMapConfigAsync(request); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_GetMapConfig_async] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetMapConfigRequestObjectSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetMapConfigRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..71dcd0076093 --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetMapConfigRequestObjectSnippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_GetMapConfig_sync] + using Google.Maps.MapManagement.V2Beta; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for GetMapConfig + /// + /// 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 GetMapConfigRequestObject() + { + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + GetMapConfigRequest request = new GetMapConfigRequest + { + MapConfigName = MapConfigName.FromProjectMapConfig("[PROJECT]", "[MAP_CONFIG]"), + }; + // Make the request + MapConfig response = mapManagementClient.GetMapConfig(request); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_GetMapConfig_sync] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetMapConfigResourceNamesAsyncSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetMapConfigResourceNamesAsyncSnippet.g.cs new file mode 100644 index 000000000000..e66cd750d15e --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetMapConfigResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_GetMapConfig_async_flattened_resourceNames] + using Google.Maps.MapManagement.V2Beta; + using System.Threading.Tasks; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for GetMapConfigAsync + /// + /// 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 GetMapConfigResourceNamesAsync() + { + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + MapConfigName name = MapConfigName.FromProjectMapConfig("[PROJECT]", "[MAP_CONFIG]"); + // Make the request + MapConfig response = await mapManagementClient.GetMapConfigAsync(name); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_GetMapConfig_async_flattened_resourceNames] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetMapConfigResourceNamesSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetMapConfigResourceNamesSnippet.g.cs new file mode 100644 index 000000000000..22112e91d064 --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetMapConfigResourceNamesSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_GetMapConfig_sync_flattened_resourceNames] + using Google.Maps.MapManagement.V2Beta; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for GetMapConfig + /// + /// 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 GetMapConfigResourceNames() + { + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + MapConfigName name = MapConfigName.FromProjectMapConfig("[PROJECT]", "[MAP_CONFIG]"); + // Make the request + MapConfig response = mapManagementClient.GetMapConfig(name); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_GetMapConfig_sync_flattened_resourceNames] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetMapConfigSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetMapConfigSnippet.g.cs new file mode 100644 index 000000000000..62a6335a2ce3 --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetMapConfigSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_GetMapConfig_sync_flattened] + using Google.Maps.MapManagement.V2Beta; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for GetMapConfig + /// + /// 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 GetMapConfig() + { + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/mapConfigs/[MAP_CONFIG]"; + // Make the request + MapConfig response = mapManagementClient.GetMapConfig(name); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_GetMapConfig_sync_flattened] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetMapContextConfigAsyncSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetMapContextConfigAsyncSnippet.g.cs new file mode 100644 index 000000000000..4995aefaac0f --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetMapContextConfigAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_GetMapContextConfig_async_flattened] + using Google.Maps.MapManagement.V2Beta; + using System.Threading.Tasks; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for GetMapContextConfigAsync + /// + /// 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 GetMapContextConfigAsync() + { + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/mapConfigs/[MAP_CONFIG]/mapContextConfigs/[MAP_CONTEXT_CONFIG]"; + // Make the request + MapContextConfig response = await mapManagementClient.GetMapContextConfigAsync(name); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_GetMapContextConfig_async_flattened] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetMapContextConfigRequestObjectAsyncSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetMapContextConfigRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..65fb6f20b15d --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetMapContextConfigRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,47 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_GetMapContextConfig_async] + using Google.Maps.MapManagement.V2Beta; + using System.Threading.Tasks; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for GetMapContextConfigAsync + /// + /// 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 GetMapContextConfigRequestObjectAsync() + { + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + GetMapContextConfigRequest request = new GetMapContextConfigRequest + { + MapContextConfigName = MapContextConfigName.FromProjectMapConfigMapContextConfig("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]"), + }; + // Make the request + MapContextConfig response = await mapManagementClient.GetMapContextConfigAsync(request); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_GetMapContextConfig_async] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetMapContextConfigRequestObjectSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetMapContextConfigRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..3b8bd0092fd7 --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetMapContextConfigRequestObjectSnippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_GetMapContextConfig_sync] + using Google.Maps.MapManagement.V2Beta; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for GetMapContextConfig + /// + /// 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 GetMapContextConfigRequestObject() + { + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + GetMapContextConfigRequest request = new GetMapContextConfigRequest + { + MapContextConfigName = MapContextConfigName.FromProjectMapConfigMapContextConfig("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]"), + }; + // Make the request + MapContextConfig response = mapManagementClient.GetMapContextConfig(request); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_GetMapContextConfig_sync] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetMapContextConfigResourceNamesAsyncSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetMapContextConfigResourceNamesAsyncSnippet.g.cs new file mode 100644 index 000000000000..163c10371f74 --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetMapContextConfigResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_GetMapContextConfig_async_flattened_resourceNames] + using Google.Maps.MapManagement.V2Beta; + using System.Threading.Tasks; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for GetMapContextConfigAsync + /// + /// 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 GetMapContextConfigResourceNamesAsync() + { + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + MapContextConfigName name = MapContextConfigName.FromProjectMapConfigMapContextConfig("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]"); + // Make the request + MapContextConfig response = await mapManagementClient.GetMapContextConfigAsync(name); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_GetMapContextConfig_async_flattened_resourceNames] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetMapContextConfigResourceNamesSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetMapContextConfigResourceNamesSnippet.g.cs new file mode 100644 index 000000000000..feb927f0f5ff --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetMapContextConfigResourceNamesSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_GetMapContextConfig_sync_flattened_resourceNames] + using Google.Maps.MapManagement.V2Beta; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for GetMapContextConfig + /// + /// 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 GetMapContextConfigResourceNames() + { + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + MapContextConfigName name = MapContextConfigName.FromProjectMapConfigMapContextConfig("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]"); + // Make the request + MapContextConfig response = mapManagementClient.GetMapContextConfig(name); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_GetMapContextConfig_sync_flattened_resourceNames] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetMapContextConfigSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetMapContextConfigSnippet.g.cs new file mode 100644 index 000000000000..7602107a4f6d --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetMapContextConfigSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_GetMapContextConfig_sync_flattened] + using Google.Maps.MapManagement.V2Beta; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for GetMapContextConfig + /// + /// 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 GetMapContextConfig() + { + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/mapConfigs/[MAP_CONFIG]/mapContextConfigs/[MAP_CONTEXT_CONFIG]"; + // Make the request + MapContextConfig response = mapManagementClient.GetMapContextConfig(name); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_GetMapContextConfig_sync_flattened] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetStyleConfigAsyncSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetStyleConfigAsyncSnippet.g.cs new file mode 100644 index 000000000000..5f6bdbd76a46 --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetStyleConfigAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_GetStyleConfig_async_flattened] + using Google.Maps.MapManagement.V2Beta; + using System.Threading.Tasks; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for GetStyleConfigAsync + /// + /// 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 GetStyleConfigAsync() + { + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/styleConfigs/[STYLE_CONFIG]"; + // Make the request + StyleConfig response = await mapManagementClient.GetStyleConfigAsync(name); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_GetStyleConfig_async_flattened] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetStyleConfigRequestObjectAsyncSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetStyleConfigRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..0ee1a5b7abec --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetStyleConfigRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,47 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_GetStyleConfig_async] + using Google.Maps.MapManagement.V2Beta; + using System.Threading.Tasks; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for GetStyleConfigAsync + /// + /// 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 GetStyleConfigRequestObjectAsync() + { + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + GetStyleConfigRequest request = new GetStyleConfigRequest + { + StyleConfigName = StyleConfigName.FromProjectStyleConfig("[PROJECT]", "[STYLE_CONFIG]"), + }; + // Make the request + StyleConfig response = await mapManagementClient.GetStyleConfigAsync(request); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_GetStyleConfig_async] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetStyleConfigRequestObjectSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetStyleConfigRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..19a66b49daab --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetStyleConfigRequestObjectSnippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_GetStyleConfig_sync] + using Google.Maps.MapManagement.V2Beta; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for GetStyleConfig + /// + /// 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 GetStyleConfigRequestObject() + { + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + GetStyleConfigRequest request = new GetStyleConfigRequest + { + StyleConfigName = StyleConfigName.FromProjectStyleConfig("[PROJECT]", "[STYLE_CONFIG]"), + }; + // Make the request + StyleConfig response = mapManagementClient.GetStyleConfig(request); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_GetStyleConfig_sync] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetStyleConfigResourceNamesAsyncSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetStyleConfigResourceNamesAsyncSnippet.g.cs new file mode 100644 index 000000000000..a460f6dd6409 --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetStyleConfigResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_GetStyleConfig_async_flattened_resourceNames] + using Google.Maps.MapManagement.V2Beta; + using System.Threading.Tasks; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for GetStyleConfigAsync + /// + /// 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 GetStyleConfigResourceNamesAsync() + { + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + StyleConfigName name = StyleConfigName.FromProjectStyleConfig("[PROJECT]", "[STYLE_CONFIG]"); + // Make the request + StyleConfig response = await mapManagementClient.GetStyleConfigAsync(name); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_GetStyleConfig_async_flattened_resourceNames] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetStyleConfigResourceNamesSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetStyleConfigResourceNamesSnippet.g.cs new file mode 100644 index 000000000000..7a0f7eefe747 --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetStyleConfigResourceNamesSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_GetStyleConfig_sync_flattened_resourceNames] + using Google.Maps.MapManagement.V2Beta; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for GetStyleConfig + /// + /// 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 GetStyleConfigResourceNames() + { + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + StyleConfigName name = StyleConfigName.FromProjectStyleConfig("[PROJECT]", "[STYLE_CONFIG]"); + // Make the request + StyleConfig response = mapManagementClient.GetStyleConfig(name); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_GetStyleConfig_sync_flattened_resourceNames] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetStyleConfigSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetStyleConfigSnippet.g.cs new file mode 100644 index 000000000000..96166d91fd31 --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.GetStyleConfigSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_GetStyleConfig_sync_flattened] + using Google.Maps.MapManagement.V2Beta; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for GetStyleConfig + /// + /// 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 GetStyleConfig() + { + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/styleConfigs/[STYLE_CONFIG]"; + // Make the request + StyleConfig response = mapManagementClient.GetStyleConfig(name); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_GetStyleConfig_sync_flattened] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListMapConfigsAsyncSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListMapConfigsAsyncSnippet.g.cs new file mode 100644 index 000000000000..4945ba9343c6 --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListMapConfigsAsyncSnippet.g.cs @@ -0,0 +1,78 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_ListMapConfigs_async_flattened] + using Google.Api.Gax; + using Google.Maps.MapManagement.V2Beta; + using System; + using System.Threading.Tasks; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for ListMapConfigsAsync + /// + /// 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 ListMapConfigsAsync() + { + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]"; + // Make the request + PagedAsyncEnumerable response = mapManagementClient.ListMapConfigsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await foreach (MapConfig item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + await foreach (ListMapConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MapConfig 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 (MapConfig 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 mapmanagement_v2beta_generated_MapManagement_ListMapConfigs_async_flattened] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListMapConfigsRequestObjectAsyncSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListMapConfigsRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..1d72dc073bfd --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListMapConfigsRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,82 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_ListMapConfigs_async] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Maps.MapManagement.V2Beta; + using System; + using System.Threading.Tasks; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for ListMapConfigsAsync + /// + /// 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 ListMapConfigsRequestObjectAsync() + { + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + ListMapConfigsRequest request = new ListMapConfigsRequest + { + ParentAsProjectName = ProjectName.FromProject("[PROJECT]"), + }; + // Make the request + PagedAsyncEnumerable response = mapManagementClient.ListMapConfigsAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await foreach (MapConfig item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + await foreach (ListMapConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MapConfig 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 (MapConfig 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 mapmanagement_v2beta_generated_MapManagement_ListMapConfigs_async] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListMapConfigsRequestObjectSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListMapConfigsRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..31f570909beb --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListMapConfigsRequestObjectSnippet.g.cs @@ -0,0 +1,81 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_ListMapConfigs_sync] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Maps.MapManagement.V2Beta; + using System; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for ListMapConfigs + /// + /// 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 ListMapConfigsRequestObject() + { + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + ListMapConfigsRequest request = new ListMapConfigsRequest + { + ParentAsProjectName = ProjectName.FromProject("[PROJECT]"), + }; + // Make the request + PagedEnumerable response = mapManagementClient.ListMapConfigs(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (MapConfig 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 (ListMapConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MapConfig 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 (MapConfig 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 mapmanagement_v2beta_generated_MapManagement_ListMapConfigs_sync] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListMapConfigsResourceNamesAsyncSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListMapConfigsResourceNamesAsyncSnippet.g.cs new file mode 100644 index 000000000000..1aa56e3a6c1b --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListMapConfigsResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,79 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_ListMapConfigs_async_flattened_resourceNames] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Maps.MapManagement.V2Beta; + using System; + using System.Threading.Tasks; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for ListMapConfigsAsync + /// + /// 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 ListMapConfigsResourceNamesAsync() + { + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + // Make the request + PagedAsyncEnumerable response = mapManagementClient.ListMapConfigsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await foreach (MapConfig item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + await foreach (ListMapConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MapConfig 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 (MapConfig 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 mapmanagement_v2beta_generated_MapManagement_ListMapConfigs_async_flattened_resourceNames] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListMapConfigsResourceNamesSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListMapConfigsResourceNamesSnippet.g.cs new file mode 100644 index 000000000000..cc07d7ef27a1 --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListMapConfigsResourceNamesSnippet.g.cs @@ -0,0 +1,78 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_ListMapConfigs_sync_flattened_resourceNames] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Maps.MapManagement.V2Beta; + using System; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for ListMapConfigs + /// + /// 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 ListMapConfigsResourceNames() + { + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + // Make the request + PagedEnumerable response = mapManagementClient.ListMapConfigs(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (MapConfig 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 (ListMapConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MapConfig 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 (MapConfig 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 mapmanagement_v2beta_generated_MapManagement_ListMapConfigs_sync_flattened_resourceNames] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListMapConfigsSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListMapConfigsSnippet.g.cs new file mode 100644 index 000000000000..f6826d42bed6 --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListMapConfigsSnippet.g.cs @@ -0,0 +1,77 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_ListMapConfigs_sync_flattened] + using Google.Api.Gax; + using Google.Maps.MapManagement.V2Beta; + using System; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for ListMapConfigs + /// + /// 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 ListMapConfigs() + { + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]"; + // Make the request + PagedEnumerable response = mapManagementClient.ListMapConfigs(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (MapConfig 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 (ListMapConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MapConfig 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 (MapConfig 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 mapmanagement_v2beta_generated_MapManagement_ListMapConfigs_sync_flattened] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListMapContextConfigsAsyncSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListMapContextConfigsAsyncSnippet.g.cs new file mode 100644 index 000000000000..b9526163f02a --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListMapContextConfigsAsyncSnippet.g.cs @@ -0,0 +1,78 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_ListMapContextConfigs_async_flattened] + using Google.Api.Gax; + using Google.Maps.MapManagement.V2Beta; + using System; + using System.Threading.Tasks; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for ListMapContextConfigsAsync + /// + /// 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 ListMapContextConfigsAsync() + { + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/mapConfigs/[MAP_CONFIG]"; + // Make the request + PagedAsyncEnumerable response = mapManagementClient.ListMapContextConfigsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await foreach (MapContextConfig item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + await foreach (ListMapContextConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MapContextConfig 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 (MapContextConfig 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 mapmanagement_v2beta_generated_MapManagement_ListMapContextConfigs_async_flattened] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListMapContextConfigsRequestObjectAsyncSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListMapContextConfigsRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..883b9fa530f0 --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListMapContextConfigsRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,81 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_ListMapContextConfigs_async] + using Google.Api.Gax; + using Google.Maps.MapManagement.V2Beta; + using System; + using System.Threading.Tasks; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for ListMapContextConfigsAsync + /// + /// 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 ListMapContextConfigsRequestObjectAsync() + { + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + ListMapContextConfigsRequest request = new ListMapContextConfigsRequest + { + ParentAsMapConfigName = MapConfigName.FromProjectMapConfig("[PROJECT]", "[MAP_CONFIG]"), + }; + // Make the request + PagedAsyncEnumerable response = mapManagementClient.ListMapContextConfigsAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await foreach (MapContextConfig item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + await foreach (ListMapContextConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MapContextConfig 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 (MapContextConfig 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 mapmanagement_v2beta_generated_MapManagement_ListMapContextConfigs_async] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListMapContextConfigsRequestObjectSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListMapContextConfigsRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..066dfff34293 --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListMapContextConfigsRequestObjectSnippet.g.cs @@ -0,0 +1,80 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_ListMapContextConfigs_sync] + using Google.Api.Gax; + using Google.Maps.MapManagement.V2Beta; + using System; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for ListMapContextConfigs + /// + /// 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 ListMapContextConfigsRequestObject() + { + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + ListMapContextConfigsRequest request = new ListMapContextConfigsRequest + { + ParentAsMapConfigName = MapConfigName.FromProjectMapConfig("[PROJECT]", "[MAP_CONFIG]"), + }; + // Make the request + PagedEnumerable response = mapManagementClient.ListMapContextConfigs(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (MapContextConfig 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 (ListMapContextConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MapContextConfig 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 (MapContextConfig 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 mapmanagement_v2beta_generated_MapManagement_ListMapContextConfigs_sync] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListMapContextConfigsResourceNamesAsyncSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListMapContextConfigsResourceNamesAsyncSnippet.g.cs new file mode 100644 index 000000000000..e97fa7a9497e --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListMapContextConfigsResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,78 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_ListMapContextConfigs_async_flattened_resourceNames] + using Google.Api.Gax; + using Google.Maps.MapManagement.V2Beta; + using System; + using System.Threading.Tasks; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for ListMapContextConfigsAsync + /// + /// 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 ListMapContextConfigsResourceNamesAsync() + { + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + MapConfigName parent = MapConfigName.FromProjectMapConfig("[PROJECT]", "[MAP_CONFIG]"); + // Make the request + PagedAsyncEnumerable response = mapManagementClient.ListMapContextConfigsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await foreach (MapContextConfig item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + await foreach (ListMapContextConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MapContextConfig 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 (MapContextConfig 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 mapmanagement_v2beta_generated_MapManagement_ListMapContextConfigs_async_flattened_resourceNames] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListMapContextConfigsResourceNamesSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListMapContextConfigsResourceNamesSnippet.g.cs new file mode 100644 index 000000000000..71bc39136d0b --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListMapContextConfigsResourceNamesSnippet.g.cs @@ -0,0 +1,77 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_ListMapContextConfigs_sync_flattened_resourceNames] + using Google.Api.Gax; + using Google.Maps.MapManagement.V2Beta; + using System; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for ListMapContextConfigs + /// + /// 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 ListMapContextConfigsResourceNames() + { + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + MapConfigName parent = MapConfigName.FromProjectMapConfig("[PROJECT]", "[MAP_CONFIG]"); + // Make the request + PagedEnumerable response = mapManagementClient.ListMapContextConfigs(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (MapContextConfig 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 (ListMapContextConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MapContextConfig 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 (MapContextConfig 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 mapmanagement_v2beta_generated_MapManagement_ListMapContextConfigs_sync_flattened_resourceNames] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListMapContextConfigsSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListMapContextConfigsSnippet.g.cs new file mode 100644 index 000000000000..1489213aafee --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListMapContextConfigsSnippet.g.cs @@ -0,0 +1,77 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_ListMapContextConfigs_sync_flattened] + using Google.Api.Gax; + using Google.Maps.MapManagement.V2Beta; + using System; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for ListMapContextConfigs + /// + /// 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 ListMapContextConfigs() + { + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/mapConfigs/[MAP_CONFIG]"; + // Make the request + PagedEnumerable response = mapManagementClient.ListMapContextConfigs(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (MapContextConfig 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 (ListMapContextConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MapContextConfig 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 (MapContextConfig 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 mapmanagement_v2beta_generated_MapManagement_ListMapContextConfigs_sync_flattened] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListStyleConfigsAsyncSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListStyleConfigsAsyncSnippet.g.cs new file mode 100644 index 000000000000..f86752eef880 --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListStyleConfigsAsyncSnippet.g.cs @@ -0,0 +1,78 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_ListStyleConfigs_async_flattened] + using Google.Api.Gax; + using Google.Maps.MapManagement.V2Beta; + using System; + using System.Threading.Tasks; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for ListStyleConfigsAsync + /// + /// 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 ListStyleConfigsAsync() + { + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]"; + // Make the request + PagedAsyncEnumerable response = mapManagementClient.ListStyleConfigsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await foreach (StyleConfig item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + await foreach (ListStyleConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (StyleConfig 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 (StyleConfig 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 mapmanagement_v2beta_generated_MapManagement_ListStyleConfigs_async_flattened] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListStyleConfigsRequestObjectAsyncSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListStyleConfigsRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..36e170c0127e --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListStyleConfigsRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,84 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_ListStyleConfigs_async] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Maps.MapManagement.V2Beta; + using System; + using System.Threading.Tasks; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for ListStyleConfigsAsync + /// + /// 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 ListStyleConfigsRequestObjectAsync() + { + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + ListStyleConfigsRequest request = new ListStyleConfigsRequest + { + ParentAsProjectName = ProjectName.FromProject("[PROJECT]"), + Filter = "", + View = StyleConfigView.Unspecified, + }; + // Make the request + PagedAsyncEnumerable response = mapManagementClient.ListStyleConfigsAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await foreach (StyleConfig item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + await foreach (ListStyleConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (StyleConfig 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 (StyleConfig 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 mapmanagement_v2beta_generated_MapManagement_ListStyleConfigs_async] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListStyleConfigsRequestObjectSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListStyleConfigsRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..9273ac17be5d --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListStyleConfigsRequestObjectSnippet.g.cs @@ -0,0 +1,83 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_ListStyleConfigs_sync] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Maps.MapManagement.V2Beta; + using System; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for ListStyleConfigs + /// + /// 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 ListStyleConfigsRequestObject() + { + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + ListStyleConfigsRequest request = new ListStyleConfigsRequest + { + ParentAsProjectName = ProjectName.FromProject("[PROJECT]"), + Filter = "", + View = StyleConfigView.Unspecified, + }; + // Make the request + PagedEnumerable response = mapManagementClient.ListStyleConfigs(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (StyleConfig 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 (ListStyleConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (StyleConfig 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 (StyleConfig 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 mapmanagement_v2beta_generated_MapManagement_ListStyleConfigs_sync] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListStyleConfigsResourceNamesAsyncSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListStyleConfigsResourceNamesAsyncSnippet.g.cs new file mode 100644 index 000000000000..dea1c429e2dc --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListStyleConfigsResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,79 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_ListStyleConfigs_async_flattened_resourceNames] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Maps.MapManagement.V2Beta; + using System; + using System.Threading.Tasks; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for ListStyleConfigsAsync + /// + /// 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 ListStyleConfigsResourceNamesAsync() + { + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + // Make the request + PagedAsyncEnumerable response = mapManagementClient.ListStyleConfigsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await foreach (StyleConfig item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + await foreach (ListStyleConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (StyleConfig 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 (StyleConfig 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 mapmanagement_v2beta_generated_MapManagement_ListStyleConfigs_async_flattened_resourceNames] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListStyleConfigsResourceNamesSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListStyleConfigsResourceNamesSnippet.g.cs new file mode 100644 index 000000000000..1b3fa90e24f4 --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListStyleConfigsResourceNamesSnippet.g.cs @@ -0,0 +1,78 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_ListStyleConfigs_sync_flattened_resourceNames] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Maps.MapManagement.V2Beta; + using System; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for ListStyleConfigs + /// + /// 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 ListStyleConfigsResourceNames() + { + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + // Make the request + PagedEnumerable response = mapManagementClient.ListStyleConfigs(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (StyleConfig 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 (ListStyleConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (StyleConfig 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 (StyleConfig 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 mapmanagement_v2beta_generated_MapManagement_ListStyleConfigs_sync_flattened_resourceNames] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListStyleConfigsSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListStyleConfigsSnippet.g.cs new file mode 100644 index 000000000000..cf8acc2171a5 --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.ListStyleConfigsSnippet.g.cs @@ -0,0 +1,77 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_ListStyleConfigs_sync_flattened] + using Google.Api.Gax; + using Google.Maps.MapManagement.V2Beta; + using System; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for ListStyleConfigs + /// + /// 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 ListStyleConfigs() + { + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]"; + // Make the request + PagedEnumerable response = mapManagementClient.ListStyleConfigs(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (StyleConfig 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 (ListStyleConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (StyleConfig 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 (StyleConfig 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 mapmanagement_v2beta_generated_MapManagement_ListStyleConfigs_sync_flattened] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.UpdateMapConfigAsyncSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.UpdateMapConfigAsyncSnippet.g.cs new file mode 100644 index 000000000000..25dfbc8d61d9 --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.UpdateMapConfigAsyncSnippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_UpdateMapConfig_async_flattened] + using Google.Maps.MapManagement.V2Beta; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for UpdateMapConfigAsync + /// + /// 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 UpdateMapConfigAsync() + { + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + MapConfig mapConfig = new MapConfig(); + FieldMask updateMask = new FieldMask(); + // Make the request + MapConfig response = await mapManagementClient.UpdateMapConfigAsync(mapConfig, updateMask); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_UpdateMapConfig_async_flattened] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.UpdateMapConfigRequestObjectAsyncSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.UpdateMapConfigRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..c4dc6dd18729 --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.UpdateMapConfigRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,49 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_UpdateMapConfig_async] + using Google.Maps.MapManagement.V2Beta; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for UpdateMapConfigAsync + /// + /// 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 UpdateMapConfigRequestObjectAsync() + { + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + UpdateMapConfigRequest request = new UpdateMapConfigRequest + { + MapConfig = new MapConfig(), + UpdateMask = new FieldMask(), + }; + // Make the request + MapConfig response = await mapManagementClient.UpdateMapConfigAsync(request); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_UpdateMapConfig_async] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.UpdateMapConfigRequestObjectSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.UpdateMapConfigRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..d41db564376b --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.UpdateMapConfigRequestObjectSnippet.g.cs @@ -0,0 +1,48 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_UpdateMapConfig_sync] + using Google.Maps.MapManagement.V2Beta; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for UpdateMapConfig + /// + /// 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 UpdateMapConfigRequestObject() + { + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + UpdateMapConfigRequest request = new UpdateMapConfigRequest + { + MapConfig = new MapConfig(), + UpdateMask = new FieldMask(), + }; + // Make the request + MapConfig response = mapManagementClient.UpdateMapConfig(request); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_UpdateMapConfig_sync] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.UpdateMapConfigSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.UpdateMapConfigSnippet.g.cs new file mode 100644 index 000000000000..5b8106d1decd --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.UpdateMapConfigSnippet.g.cs @@ -0,0 +1,45 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_UpdateMapConfig_sync_flattened] + using Google.Maps.MapManagement.V2Beta; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for UpdateMapConfig + /// + /// 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 UpdateMapConfig() + { + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + MapConfig mapConfig = new MapConfig(); + FieldMask updateMask = new FieldMask(); + // Make the request + MapConfig response = mapManagementClient.UpdateMapConfig(mapConfig, updateMask); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_UpdateMapConfig_sync_flattened] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.UpdateMapContextConfigAsyncSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.UpdateMapContextConfigAsyncSnippet.g.cs new file mode 100644 index 000000000000..10687b3efac8 --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.UpdateMapContextConfigAsyncSnippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_UpdateMapContextConfig_async_flattened] + using Google.Maps.MapManagement.V2Beta; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for UpdateMapContextConfigAsync + /// + /// 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 UpdateMapContextConfigAsync() + { + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + MapContextConfig mapContextConfig = new MapContextConfig(); + FieldMask updateMask = new FieldMask(); + // Make the request + MapContextConfig response = await mapManagementClient.UpdateMapContextConfigAsync(mapContextConfig, updateMask); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_UpdateMapContextConfig_async_flattened] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.UpdateMapContextConfigRequestObjectAsyncSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.UpdateMapContextConfigRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..ca05fd182521 --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.UpdateMapContextConfigRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,49 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_UpdateMapContextConfig_async] + using Google.Maps.MapManagement.V2Beta; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for UpdateMapContextConfigAsync + /// + /// 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 UpdateMapContextConfigRequestObjectAsync() + { + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + UpdateMapContextConfigRequest request = new UpdateMapContextConfigRequest + { + MapContextConfig = new MapContextConfig(), + UpdateMask = new FieldMask(), + }; + // Make the request + MapContextConfig response = await mapManagementClient.UpdateMapContextConfigAsync(request); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_UpdateMapContextConfig_async] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.UpdateMapContextConfigRequestObjectSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.UpdateMapContextConfigRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..3d9032abba3b --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.UpdateMapContextConfigRequestObjectSnippet.g.cs @@ -0,0 +1,48 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_UpdateMapContextConfig_sync] + using Google.Maps.MapManagement.V2Beta; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for UpdateMapContextConfig + /// + /// 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 UpdateMapContextConfigRequestObject() + { + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + UpdateMapContextConfigRequest request = new UpdateMapContextConfigRequest + { + MapContextConfig = new MapContextConfig(), + UpdateMask = new FieldMask(), + }; + // Make the request + MapContextConfig response = mapManagementClient.UpdateMapContextConfig(request); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_UpdateMapContextConfig_sync] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.UpdateMapContextConfigSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.UpdateMapContextConfigSnippet.g.cs new file mode 100644 index 000000000000..197c8aafab5d --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.UpdateMapContextConfigSnippet.g.cs @@ -0,0 +1,45 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_UpdateMapContextConfig_sync_flattened] + using Google.Maps.MapManagement.V2Beta; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for UpdateMapContextConfig + /// + /// 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 UpdateMapContextConfig() + { + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + MapContextConfig mapContextConfig = new MapContextConfig(); + FieldMask updateMask = new FieldMask(); + // Make the request + MapContextConfig response = mapManagementClient.UpdateMapContextConfig(mapContextConfig, updateMask); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_UpdateMapContextConfig_sync_flattened] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.UpdateStyleConfigAsyncSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.UpdateStyleConfigAsyncSnippet.g.cs new file mode 100644 index 000000000000..223e0346b587 --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.UpdateStyleConfigAsyncSnippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_UpdateStyleConfig_async_flattened] + using Google.Maps.MapManagement.V2Beta; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for UpdateStyleConfigAsync + /// + /// 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 UpdateStyleConfigAsync() + { + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + StyleConfig styleConfig = new StyleConfig(); + FieldMask updateMask = new FieldMask(); + // Make the request + StyleConfig response = await mapManagementClient.UpdateStyleConfigAsync(styleConfig, updateMask); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_UpdateStyleConfig_async_flattened] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.UpdateStyleConfigRequestObjectAsyncSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.UpdateStyleConfigRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..60eb89cb74cf --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.UpdateStyleConfigRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,49 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_UpdateStyleConfig_async] + using Google.Maps.MapManagement.V2Beta; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for UpdateStyleConfigAsync + /// + /// 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 UpdateStyleConfigRequestObjectAsync() + { + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + UpdateStyleConfigRequest request = new UpdateStyleConfigRequest + { + StyleConfig = new StyleConfig(), + UpdateMask = new FieldMask(), + }; + // Make the request + StyleConfig response = await mapManagementClient.UpdateStyleConfigAsync(request); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_UpdateStyleConfig_async] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.UpdateStyleConfigRequestObjectSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.UpdateStyleConfigRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..22b6e910962c --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.UpdateStyleConfigRequestObjectSnippet.g.cs @@ -0,0 +1,48 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_UpdateStyleConfig_sync] + using Google.Maps.MapManagement.V2Beta; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for UpdateStyleConfig + /// + /// 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 UpdateStyleConfigRequestObject() + { + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + UpdateStyleConfigRequest request = new UpdateStyleConfigRequest + { + StyleConfig = new StyleConfig(), + UpdateMask = new FieldMask(), + }; + // Make the request + StyleConfig response = mapManagementClient.UpdateStyleConfig(request); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_UpdateStyleConfig_sync] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.UpdateStyleConfigSnippet.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.UpdateStyleConfigSnippet.g.cs new file mode 100644 index 000000000000..67c46319139c --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/MapManagementClient.UpdateStyleConfigSnippet.g.cs @@ -0,0 +1,45 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START mapmanagement_v2beta_generated_MapManagement_UpdateStyleConfig_sync_flattened] + using Google.Maps.MapManagement.V2Beta; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedMapManagementClientSnippets + { + /// Snippet for UpdateStyleConfig + /// + /// 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 UpdateStyleConfig() + { + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + StyleConfig styleConfig = new StyleConfig(); + FieldMask updateMask = new FieldMask(); + // Make the request + StyleConfig response = mapManagementClient.UpdateStyleConfig(styleConfig, updateMask); + } + } + // [END mapmanagement_v2beta_generated_MapManagement_UpdateStyleConfig_sync_flattened] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/snippet_metadata_google.maps.mapmanagement.v2beta.json b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/snippet_metadata_google.maps.mapmanagement.v2beta.json new file mode 100644 index 000000000000..ac89073d20e6 --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.GeneratedSnippets/snippet_metadata_google.maps.mapmanagement.v2beta.json @@ -0,0 +1,4209 @@ +{ + "clientLibrary": { + "name": "Google.Maps.MapManagement.V2Beta", + "language": "C_SHARP", + "apis": [ + { + "id": "google.maps.mapmanagement.v2beta", + "version": "v2beta" + } + ] + }, + "snippets": [ + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_CreateMapConfig_sync", + "title": "CreateMapConfigRequestObject", + "description": "Snippet for CreateMapConfig", + "file": "MapManagementClient.CreateMapConfigRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateMapConfig", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.CreateMapConfig", + "parameters": [ + { + "type": "Google.Maps.MapManagement.V2Beta.CreateMapConfigRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Maps.MapManagement.V2Beta.MapConfig", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "CreateMapConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.CreateMapConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_CreateMapConfig_async", + "title": "CreateMapConfigRequestObjectAsync", + "description": "Snippet for CreateMapConfigAsync", + "file": "MapManagementClient.CreateMapConfigRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateMapConfigAsync", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.CreateMapConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Maps.MapManagement.V2Beta.CreateMapConfigRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "CreateMapConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.CreateMapConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 36, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_CreateMapConfig_sync_flattened", + "title": "CreateMapConfig", + "description": "Snippet for CreateMapConfig", + "file": "MapManagementClient.CreateMapConfigSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateMapConfig", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.CreateMapConfig", + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Maps.MapManagement.V2Beta.MapConfig", + "name": "mapConfig" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Maps.MapManagement.V2Beta.MapConfig", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "CreateMapConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.CreateMapConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 34, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_CreateMapConfig_async_flattened", + "title": "CreateMapConfigAsync", + "description": "Snippet for CreateMapConfigAsync", + "file": "MapManagementClient.CreateMapConfigAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateMapConfigAsync", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.CreateMapConfigAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Maps.MapManagement.V2Beta.MapConfig", + "name": "mapConfig" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "CreateMapConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.CreateMapConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_CreateMapConfig_sync_flattened_resourceNames", + "title": "CreateMapConfigResourceNames", + "description": "Snippet for CreateMapConfig", + "file": "MapManagementClient.CreateMapConfigResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateMapConfig", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.CreateMapConfig", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.ProjectName", + "name": "parent" + }, + { + "type": "Google.Maps.MapManagement.V2Beta.MapConfig", + "name": "mapConfig" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Maps.MapManagement.V2Beta.MapConfig", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "CreateMapConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.CreateMapConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_CreateMapConfig_async_flattened_resourceNames", + "title": "CreateMapConfigResourceNamesAsync", + "description": "Snippet for CreateMapConfigAsync", + "file": "MapManagementClient.CreateMapConfigResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateMapConfigAsync", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.CreateMapConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.ProjectName", + "name": "parent" + }, + { + "type": "Google.Maps.MapManagement.V2Beta.MapConfig", + "name": "mapConfig" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "CreateMapConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.CreateMapConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 36, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_GetMapConfig_sync", + "title": "GetMapConfigRequestObject", + "description": "Snippet for GetMapConfig", + "file": "MapManagementClient.GetMapConfigRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetMapConfig", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.GetMapConfig", + "parameters": [ + { + "type": "Google.Maps.MapManagement.V2Beta.GetMapConfigRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Maps.MapManagement.V2Beta.MapConfig", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "GetMapConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.GetMapConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_GetMapConfig_async", + "title": "GetMapConfigRequestObjectAsync", + "description": "Snippet for GetMapConfigAsync", + "file": "MapManagementClient.GetMapConfigRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetMapConfigAsync", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.GetMapConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Maps.MapManagement.V2Beta.GetMapConfigRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "GetMapConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.GetMapConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_GetMapConfig_sync_flattened", + "title": "GetMapConfig", + "description": "Snippet for GetMapConfig", + "file": "MapManagementClient.GetMapConfigSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetMapConfig", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.GetMapConfig", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Maps.MapManagement.V2Beta.MapConfig", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "GetMapConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.GetMapConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_GetMapConfig_async_flattened", + "title": "GetMapConfigAsync", + "description": "Snippet for GetMapConfigAsync", + "file": "MapManagementClient.GetMapConfigAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetMapConfigAsync", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.GetMapConfigAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "GetMapConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.GetMapConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_GetMapConfig_sync_flattened_resourceNames", + "title": "GetMapConfigResourceNames", + "description": "Snippet for GetMapConfig", + "file": "MapManagementClient.GetMapConfigResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetMapConfig", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.GetMapConfig", + "parameters": [ + { + "type": "Google.Maps.MapManagement.V2Beta.MapConfigName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Maps.MapManagement.V2Beta.MapConfig", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "GetMapConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.GetMapConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_GetMapConfig_async_flattened_resourceNames", + "title": "GetMapConfigResourceNamesAsync", + "description": "Snippet for GetMapConfigAsync", + "file": "MapManagementClient.GetMapConfigResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetMapConfigAsync", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.GetMapConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Maps.MapManagement.V2Beta.MapConfigName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "GetMapConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.GetMapConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_ListMapConfigs_sync", + "title": "ListMapConfigsRequestObject", + "description": "Snippet for ListMapConfigs", + "file": "MapManagementClient.ListMapConfigsRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListMapConfigs", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.ListMapConfigs", + "parameters": [ + { + "type": "Google.Maps.MapManagement.V2Beta.ListMapConfigsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "ListMapConfigs", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.ListMapConfigs", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 79, + "type": "FULL" + }, + { + "start": 37, + "end": 77, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_ListMapConfigs_async", + "title": "ListMapConfigsRequestObjectAsync", + "description": "Snippet for ListMapConfigsAsync", + "file": "MapManagementClient.ListMapConfigsRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListMapConfigsAsync", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.ListMapConfigsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Maps.MapManagement.V2Beta.ListMapConfigsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "ListMapConfigs", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.ListMapConfigs", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 80, + "type": "FULL" + }, + { + "start": 38, + "end": 78, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_ListMapConfigs_sync_flattened", + "title": "ListMapConfigs", + "description": "Snippet for ListMapConfigs", + "file": "MapManagementClient.ListMapConfigsSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListMapConfigs", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.ListMapConfigs", + "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": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "ListMapConfigs", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.ListMapConfigs", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_ListMapConfigs_async_flattened", + "title": "ListMapConfigsAsync", + "description": "Snippet for ListMapConfigsAsync", + "file": "MapManagementClient.ListMapConfigsAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListMapConfigsAsync", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.ListMapConfigsAsync", + "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": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "ListMapConfigs", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.ListMapConfigs", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 76, + "type": "FULL" + }, + { + "start": 37, + "end": 74, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_ListMapConfigs_sync_flattened_resourceNames", + "title": "ListMapConfigsResourceNames", + "description": "Snippet for ListMapConfigs", + "file": "MapManagementClient.ListMapConfigsResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListMapConfigs", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.ListMapConfigs", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.ProjectName", + "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": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "ListMapConfigs", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.ListMapConfigs", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 76, + "type": "FULL" + }, + { + "start": 37, + "end": 74, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_ListMapConfigs_async_flattened_resourceNames", + "title": "ListMapConfigsResourceNamesAsync", + "description": "Snippet for ListMapConfigsAsync", + "file": "MapManagementClient.ListMapConfigsResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListMapConfigsAsync", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.ListMapConfigsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.ProjectName", + "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": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "ListMapConfigs", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.ListMapConfigs", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_UpdateMapConfig_sync", + "title": "UpdateMapConfigRequestObject", + "description": "Snippet for UpdateMapConfig", + "file": "MapManagementClient.UpdateMapConfigRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateMapConfig", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.UpdateMapConfig", + "parameters": [ + { + "type": "Google.Maps.MapManagement.V2Beta.UpdateMapConfigRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Maps.MapManagement.V2Beta.MapConfig", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "UpdateMapConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.UpdateMapConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_UpdateMapConfig_async", + "title": "UpdateMapConfigRequestObjectAsync", + "description": "Snippet for UpdateMapConfigAsync", + "file": "MapManagementClient.UpdateMapConfigRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateMapConfigAsync", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.UpdateMapConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Maps.MapManagement.V2Beta.UpdateMapConfigRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "UpdateMapConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.UpdateMapConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 36, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_UpdateMapConfig_sync_flattened", + "title": "UpdateMapConfig", + "description": "Snippet for UpdateMapConfig", + "file": "MapManagementClient.UpdateMapConfigSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateMapConfig", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.UpdateMapConfig", + "parameters": [ + { + "type": "Google.Maps.MapManagement.V2Beta.MapConfig", + "name": "mapConfig" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Maps.MapManagement.V2Beta.MapConfig", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "UpdateMapConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.UpdateMapConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_UpdateMapConfig_async_flattened", + "title": "UpdateMapConfigAsync", + "description": "Snippet for UpdateMapConfigAsync", + "file": "MapManagementClient.UpdateMapConfigAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateMapConfigAsync", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.UpdateMapConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Maps.MapManagement.V2Beta.MapConfig", + "name": "mapConfig" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "UpdateMapConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.UpdateMapConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 36, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_DeleteMapConfig_sync", + "title": "DeleteMapConfigRequestObject", + "description": "Snippet for DeleteMapConfig", + "file": "MapManagementClient.DeleteMapConfigRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteMapConfig", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.DeleteMapConfig", + "parameters": [ + { + "type": "Google.Maps.MapManagement.V2Beta.DeleteMapConfigRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "DeleteMapConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.DeleteMapConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 34, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_DeleteMapConfig_async", + "title": "DeleteMapConfigRequestObjectAsync", + "description": "Snippet for DeleteMapConfigAsync", + "file": "MapManagementClient.DeleteMapConfigRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteMapConfigAsync", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.DeleteMapConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Maps.MapManagement.V2Beta.DeleteMapConfigRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "DeleteMapConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.DeleteMapConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_DeleteMapConfig_sync_flattened", + "title": "DeleteMapConfig", + "description": "Snippet for DeleteMapConfig", + "file": "MapManagementClient.DeleteMapConfigSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteMapConfig", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.DeleteMapConfig", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "System.Boolean", + "name": "force" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "DeleteMapConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.DeleteMapConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 34, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_DeleteMapConfig_async_flattened", + "title": "DeleteMapConfigAsync", + "description": "Snippet for DeleteMapConfigAsync", + "file": "MapManagementClient.DeleteMapConfigAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteMapConfigAsync", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.DeleteMapConfigAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "System.Boolean", + "name": "force" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "DeleteMapConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.DeleteMapConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_DeleteMapConfig_sync_flattened_resourceNames", + "title": "DeleteMapConfigResourceNames", + "description": "Snippet for DeleteMapConfig", + "file": "MapManagementClient.DeleteMapConfigResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteMapConfig", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.DeleteMapConfig", + "parameters": [ + { + "type": "Google.Maps.MapManagement.V2Beta.MapConfigName", + "name": "name" + }, + { + "type": "System.Boolean", + "name": "force" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "DeleteMapConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.DeleteMapConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 34, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_DeleteMapConfig_async_flattened_resourceNames", + "title": "DeleteMapConfigResourceNamesAsync", + "description": "Snippet for DeleteMapConfigAsync", + "file": "MapManagementClient.DeleteMapConfigResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteMapConfigAsync", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.DeleteMapConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Maps.MapManagement.V2Beta.MapConfigName", + "name": "name" + }, + { + "type": "System.Boolean", + "name": "force" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "DeleteMapConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.DeleteMapConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_CreateStyleConfig_sync", + "title": "CreateStyleConfigRequestObject", + "description": "Snippet for CreateStyleConfig", + "file": "MapManagementClient.CreateStyleConfigRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateStyleConfig", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.CreateStyleConfig", + "parameters": [ + { + "type": "Google.Maps.MapManagement.V2Beta.CreateStyleConfigRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Maps.MapManagement.V2Beta.StyleConfig", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "CreateStyleConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.CreateStyleConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_CreateStyleConfig_async", + "title": "CreateStyleConfigRequestObjectAsync", + "description": "Snippet for CreateStyleConfigAsync", + "file": "MapManagementClient.CreateStyleConfigRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateStyleConfigAsync", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.CreateStyleConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Maps.MapManagement.V2Beta.CreateStyleConfigRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "CreateStyleConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.CreateStyleConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 36, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_CreateStyleConfig_sync_flattened", + "title": "CreateStyleConfig", + "description": "Snippet for CreateStyleConfig", + "file": "MapManagementClient.CreateStyleConfigSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateStyleConfig", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.CreateStyleConfig", + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Maps.MapManagement.V2Beta.StyleConfig", + "name": "styleConfig" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Maps.MapManagement.V2Beta.StyleConfig", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "CreateStyleConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.CreateStyleConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 34, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_CreateStyleConfig_async_flattened", + "title": "CreateStyleConfigAsync", + "description": "Snippet for CreateStyleConfigAsync", + "file": "MapManagementClient.CreateStyleConfigAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateStyleConfigAsync", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.CreateStyleConfigAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Maps.MapManagement.V2Beta.StyleConfig", + "name": "styleConfig" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "CreateStyleConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.CreateStyleConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_CreateStyleConfig_sync_flattened_resourceNames", + "title": "CreateStyleConfigResourceNames", + "description": "Snippet for CreateStyleConfig", + "file": "MapManagementClient.CreateStyleConfigResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateStyleConfig", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.CreateStyleConfig", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.ProjectName", + "name": "parent" + }, + { + "type": "Google.Maps.MapManagement.V2Beta.StyleConfig", + "name": "styleConfig" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Maps.MapManagement.V2Beta.StyleConfig", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "CreateStyleConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.CreateStyleConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_CreateStyleConfig_async_flattened_resourceNames", + "title": "CreateStyleConfigResourceNamesAsync", + "description": "Snippet for CreateStyleConfigAsync", + "file": "MapManagementClient.CreateStyleConfigResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateStyleConfigAsync", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.CreateStyleConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.ProjectName", + "name": "parent" + }, + { + "type": "Google.Maps.MapManagement.V2Beta.StyleConfig", + "name": "styleConfig" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "CreateStyleConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.CreateStyleConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 36, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_GetStyleConfig_sync", + "title": "GetStyleConfigRequestObject", + "description": "Snippet for GetStyleConfig", + "file": "MapManagementClient.GetStyleConfigRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetStyleConfig", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.GetStyleConfig", + "parameters": [ + { + "type": "Google.Maps.MapManagement.V2Beta.GetStyleConfigRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Maps.MapManagement.V2Beta.StyleConfig", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "GetStyleConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.GetStyleConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_GetStyleConfig_async", + "title": "GetStyleConfigRequestObjectAsync", + "description": "Snippet for GetStyleConfigAsync", + "file": "MapManagementClient.GetStyleConfigRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetStyleConfigAsync", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.GetStyleConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Maps.MapManagement.V2Beta.GetStyleConfigRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "GetStyleConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.GetStyleConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_GetStyleConfig_sync_flattened", + "title": "GetStyleConfig", + "description": "Snippet for GetStyleConfig", + "file": "MapManagementClient.GetStyleConfigSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetStyleConfig", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.GetStyleConfig", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Maps.MapManagement.V2Beta.StyleConfig", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "GetStyleConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.GetStyleConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_GetStyleConfig_async_flattened", + "title": "GetStyleConfigAsync", + "description": "Snippet for GetStyleConfigAsync", + "file": "MapManagementClient.GetStyleConfigAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetStyleConfigAsync", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.GetStyleConfigAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "GetStyleConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.GetStyleConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_GetStyleConfig_sync_flattened_resourceNames", + "title": "GetStyleConfigResourceNames", + "description": "Snippet for GetStyleConfig", + "file": "MapManagementClient.GetStyleConfigResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetStyleConfig", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.GetStyleConfig", + "parameters": [ + { + "type": "Google.Maps.MapManagement.V2Beta.StyleConfigName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Maps.MapManagement.V2Beta.StyleConfig", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "GetStyleConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.GetStyleConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_GetStyleConfig_async_flattened_resourceNames", + "title": "GetStyleConfigResourceNamesAsync", + "description": "Snippet for GetStyleConfigAsync", + "file": "MapManagementClient.GetStyleConfigResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetStyleConfigAsync", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.GetStyleConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Maps.MapManagement.V2Beta.StyleConfigName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "GetStyleConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.GetStyleConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_ListStyleConfigs_sync", + "title": "ListStyleConfigsRequestObject", + "description": "Snippet for ListStyleConfigs", + "file": "MapManagementClient.ListStyleConfigsRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListStyleConfigs", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.ListStyleConfigs", + "parameters": [ + { + "type": "Google.Maps.MapManagement.V2Beta.ListStyleConfigsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "ListStyleConfigs", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.ListStyleConfigs", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 81, + "type": "FULL" + }, + { + "start": 37, + "end": 79, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_ListStyleConfigs_async", + "title": "ListStyleConfigsRequestObjectAsync", + "description": "Snippet for ListStyleConfigsAsync", + "file": "MapManagementClient.ListStyleConfigsRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListStyleConfigsAsync", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.ListStyleConfigsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Maps.MapManagement.V2Beta.ListStyleConfigsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "ListStyleConfigs", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.ListStyleConfigs", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 82, + "type": "FULL" + }, + { + "start": 38, + "end": 80, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_ListStyleConfigs_sync_flattened", + "title": "ListStyleConfigs", + "description": "Snippet for ListStyleConfigs", + "file": "MapManagementClient.ListStyleConfigsSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListStyleConfigs", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.ListStyleConfigs", + "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": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "ListStyleConfigs", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.ListStyleConfigs", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_ListStyleConfigs_async_flattened", + "title": "ListStyleConfigsAsync", + "description": "Snippet for ListStyleConfigsAsync", + "file": "MapManagementClient.ListStyleConfigsAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListStyleConfigsAsync", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.ListStyleConfigsAsync", + "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": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "ListStyleConfigs", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.ListStyleConfigs", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 76, + "type": "FULL" + }, + { + "start": 37, + "end": 74, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_ListStyleConfigs_sync_flattened_resourceNames", + "title": "ListStyleConfigsResourceNames", + "description": "Snippet for ListStyleConfigs", + "file": "MapManagementClient.ListStyleConfigsResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListStyleConfigs", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.ListStyleConfigs", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.ProjectName", + "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": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "ListStyleConfigs", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.ListStyleConfigs", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 76, + "type": "FULL" + }, + { + "start": 37, + "end": 74, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_ListStyleConfigs_async_flattened_resourceNames", + "title": "ListStyleConfigsResourceNamesAsync", + "description": "Snippet for ListStyleConfigsAsync", + "file": "MapManagementClient.ListStyleConfigsResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListStyleConfigsAsync", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.ListStyleConfigsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.ProjectName", + "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": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "ListStyleConfigs", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.ListStyleConfigs", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_UpdateStyleConfig_sync", + "title": "UpdateStyleConfigRequestObject", + "description": "Snippet for UpdateStyleConfig", + "file": "MapManagementClient.UpdateStyleConfigRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateStyleConfig", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.UpdateStyleConfig", + "parameters": [ + { + "type": "Google.Maps.MapManagement.V2Beta.UpdateStyleConfigRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Maps.MapManagement.V2Beta.StyleConfig", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "UpdateStyleConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.UpdateStyleConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_UpdateStyleConfig_async", + "title": "UpdateStyleConfigRequestObjectAsync", + "description": "Snippet for UpdateStyleConfigAsync", + "file": "MapManagementClient.UpdateStyleConfigRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateStyleConfigAsync", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.UpdateStyleConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Maps.MapManagement.V2Beta.UpdateStyleConfigRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "UpdateStyleConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.UpdateStyleConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 36, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_UpdateStyleConfig_sync_flattened", + "title": "UpdateStyleConfig", + "description": "Snippet for UpdateStyleConfig", + "file": "MapManagementClient.UpdateStyleConfigSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateStyleConfig", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.UpdateStyleConfig", + "parameters": [ + { + "type": "Google.Maps.MapManagement.V2Beta.StyleConfig", + "name": "styleConfig" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Maps.MapManagement.V2Beta.StyleConfig", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "UpdateStyleConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.UpdateStyleConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_UpdateStyleConfig_async_flattened", + "title": "UpdateStyleConfigAsync", + "description": "Snippet for UpdateStyleConfigAsync", + "file": "MapManagementClient.UpdateStyleConfigAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateStyleConfigAsync", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.UpdateStyleConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Maps.MapManagement.V2Beta.StyleConfig", + "name": "styleConfig" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "UpdateStyleConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.UpdateStyleConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 36, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_DeleteStyleConfig_sync", + "title": "DeleteStyleConfigRequestObject", + "description": "Snippet for DeleteStyleConfig", + "file": "MapManagementClient.DeleteStyleConfigRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteStyleConfig", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.DeleteStyleConfig", + "parameters": [ + { + "type": "Google.Maps.MapManagement.V2Beta.DeleteStyleConfigRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "DeleteStyleConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.DeleteStyleConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_DeleteStyleConfig_async", + "title": "DeleteStyleConfigRequestObjectAsync", + "description": "Snippet for DeleteStyleConfigAsync", + "file": "MapManagementClient.DeleteStyleConfigRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteStyleConfigAsync", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.DeleteStyleConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Maps.MapManagement.V2Beta.DeleteStyleConfigRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "DeleteStyleConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.DeleteStyleConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_DeleteStyleConfig_sync_flattened", + "title": "DeleteStyleConfig", + "description": "Snippet for DeleteStyleConfig", + "file": "MapManagementClient.DeleteStyleConfigSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteStyleConfig", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.DeleteStyleConfig", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "DeleteStyleConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.DeleteStyleConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_DeleteStyleConfig_async_flattened", + "title": "DeleteStyleConfigAsync", + "description": "Snippet for DeleteStyleConfigAsync", + "file": "MapManagementClient.DeleteStyleConfigAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteStyleConfigAsync", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.DeleteStyleConfigAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "DeleteStyleConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.DeleteStyleConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_DeleteStyleConfig_sync_flattened_resourceNames", + "title": "DeleteStyleConfigResourceNames", + "description": "Snippet for DeleteStyleConfig", + "file": "MapManagementClient.DeleteStyleConfigResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteStyleConfig", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.DeleteStyleConfig", + "parameters": [ + { + "type": "Google.Maps.MapManagement.V2Beta.StyleConfigName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "DeleteStyleConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.DeleteStyleConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_DeleteStyleConfig_async_flattened_resourceNames", + "title": "DeleteStyleConfigResourceNamesAsync", + "description": "Snippet for DeleteStyleConfigAsync", + "file": "MapManagementClient.DeleteStyleConfigResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteStyleConfigAsync", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.DeleteStyleConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Maps.MapManagement.V2Beta.StyleConfigName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "DeleteStyleConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.DeleteStyleConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_CreateMapContextConfig_sync", + "title": "CreateMapContextConfigRequestObject", + "description": "Snippet for CreateMapContextConfig", + "file": "MapManagementClient.CreateMapContextConfigRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateMapContextConfig", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.CreateMapContextConfig", + "parameters": [ + { + "type": "Google.Maps.MapManagement.V2Beta.CreateMapContextConfigRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Maps.MapManagement.V2Beta.MapContextConfig", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "CreateMapContextConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.CreateMapContextConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 34, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_CreateMapContextConfig_async", + "title": "CreateMapContextConfigRequestObjectAsync", + "description": "Snippet for CreateMapContextConfigAsync", + "file": "MapManagementClient.CreateMapContextConfigRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateMapContextConfigAsync", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.CreateMapContextConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Maps.MapManagement.V2Beta.CreateMapContextConfigRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "CreateMapContextConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.CreateMapContextConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_CreateMapContextConfig_sync_flattened", + "title": "CreateMapContextConfig", + "description": "Snippet for CreateMapContextConfig", + "file": "MapManagementClient.CreateMapContextConfigSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateMapContextConfig", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.CreateMapContextConfig", + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Maps.MapManagement.V2Beta.MapContextConfig", + "name": "mapContextConfig" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Maps.MapManagement.V2Beta.MapContextConfig", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "CreateMapContextConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.CreateMapContextConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 34, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_CreateMapContextConfig_async_flattened", + "title": "CreateMapContextConfigAsync", + "description": "Snippet for CreateMapContextConfigAsync", + "file": "MapManagementClient.CreateMapContextConfigAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateMapContextConfigAsync", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.CreateMapContextConfigAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Maps.MapManagement.V2Beta.MapContextConfig", + "name": "mapContextConfig" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "CreateMapContextConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.CreateMapContextConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_CreateMapContextConfig_sync_flattened_resourceNames", + "title": "CreateMapContextConfigResourceNames", + "description": "Snippet for CreateMapContextConfig", + "file": "MapManagementClient.CreateMapContextConfigResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateMapContextConfig", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.CreateMapContextConfig", + "parameters": [ + { + "type": "Google.Maps.MapManagement.V2Beta.MapConfigName", + "name": "parent" + }, + { + "type": "Google.Maps.MapManagement.V2Beta.MapContextConfig", + "name": "mapContextConfig" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Maps.MapManagement.V2Beta.MapContextConfig", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "CreateMapContextConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.CreateMapContextConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 34, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_CreateMapContextConfig_async_flattened_resourceNames", + "title": "CreateMapContextConfigResourceNamesAsync", + "description": "Snippet for CreateMapContextConfigAsync", + "file": "MapManagementClient.CreateMapContextConfigResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateMapContextConfigAsync", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.CreateMapContextConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Maps.MapManagement.V2Beta.MapConfigName", + "name": "parent" + }, + { + "type": "Google.Maps.MapManagement.V2Beta.MapContextConfig", + "name": "mapContextConfig" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "CreateMapContextConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.CreateMapContextConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_GetMapContextConfig_sync", + "title": "GetMapContextConfigRequestObject", + "description": "Snippet for GetMapContextConfig", + "file": "MapManagementClient.GetMapContextConfigRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetMapContextConfig", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.GetMapContextConfig", + "parameters": [ + { + "type": "Google.Maps.MapManagement.V2Beta.GetMapContextConfigRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Maps.MapManagement.V2Beta.MapContextConfig", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "GetMapContextConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.GetMapContextConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_GetMapContextConfig_async", + "title": "GetMapContextConfigRequestObjectAsync", + "description": "Snippet for GetMapContextConfigAsync", + "file": "MapManagementClient.GetMapContextConfigRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetMapContextConfigAsync", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.GetMapContextConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Maps.MapManagement.V2Beta.GetMapContextConfigRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "GetMapContextConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.GetMapContextConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_GetMapContextConfig_sync_flattened", + "title": "GetMapContextConfig", + "description": "Snippet for GetMapContextConfig", + "file": "MapManagementClient.GetMapContextConfigSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetMapContextConfig", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.GetMapContextConfig", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Maps.MapManagement.V2Beta.MapContextConfig", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "GetMapContextConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.GetMapContextConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_GetMapContextConfig_async_flattened", + "title": "GetMapContextConfigAsync", + "description": "Snippet for GetMapContextConfigAsync", + "file": "MapManagementClient.GetMapContextConfigAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetMapContextConfigAsync", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.GetMapContextConfigAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "GetMapContextConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.GetMapContextConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_GetMapContextConfig_sync_flattened_resourceNames", + "title": "GetMapContextConfigResourceNames", + "description": "Snippet for GetMapContextConfig", + "file": "MapManagementClient.GetMapContextConfigResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetMapContextConfig", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.GetMapContextConfig", + "parameters": [ + { + "type": "Google.Maps.MapManagement.V2Beta.MapContextConfigName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Maps.MapManagement.V2Beta.MapContextConfig", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "GetMapContextConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.GetMapContextConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_GetMapContextConfig_async_flattened_resourceNames", + "title": "GetMapContextConfigResourceNamesAsync", + "description": "Snippet for GetMapContextConfigAsync", + "file": "MapManagementClient.GetMapContextConfigResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetMapContextConfigAsync", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.GetMapContextConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Maps.MapManagement.V2Beta.MapContextConfigName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "GetMapContextConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.GetMapContextConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_ListMapContextConfigs_sync", + "title": "ListMapContextConfigsRequestObject", + "description": "Snippet for ListMapContextConfigs", + "file": "MapManagementClient.ListMapContextConfigsRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListMapContextConfigs", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.ListMapContextConfigs", + "parameters": [ + { + "type": "Google.Maps.MapManagement.V2Beta.ListMapContextConfigsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "ListMapContextConfigs", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.ListMapContextConfigs", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 78, + "type": "FULL" + }, + { + "start": 36, + "end": 76, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_ListMapContextConfigs_async", + "title": "ListMapContextConfigsRequestObjectAsync", + "description": "Snippet for ListMapContextConfigsAsync", + "file": "MapManagementClient.ListMapContextConfigsRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListMapContextConfigsAsync", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.ListMapContextConfigsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Maps.MapManagement.V2Beta.ListMapContextConfigsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "ListMapContextConfigs", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.ListMapContextConfigs", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 79, + "type": "FULL" + }, + { + "start": 37, + "end": 77, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_ListMapContextConfigs_sync_flattened", + "title": "ListMapContextConfigs", + "description": "Snippet for ListMapContextConfigs", + "file": "MapManagementClient.ListMapContextConfigsSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListMapContextConfigs", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.ListMapContextConfigs", + "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": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "ListMapContextConfigs", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.ListMapContextConfigs", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_ListMapContextConfigs_async_flattened", + "title": "ListMapContextConfigsAsync", + "description": "Snippet for ListMapContextConfigsAsync", + "file": "MapManagementClient.ListMapContextConfigsAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListMapContextConfigsAsync", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.ListMapContextConfigsAsync", + "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": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "ListMapContextConfigs", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.ListMapContextConfigs", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 76, + "type": "FULL" + }, + { + "start": 37, + "end": 74, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_ListMapContextConfigs_sync_flattened_resourceNames", + "title": "ListMapContextConfigsResourceNames", + "description": "Snippet for ListMapContextConfigs", + "file": "MapManagementClient.ListMapContextConfigsResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListMapContextConfigs", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.ListMapContextConfigs", + "parameters": [ + { + "type": "Google.Maps.MapManagement.V2Beta.MapConfigName", + "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": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "ListMapContextConfigs", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.ListMapContextConfigs", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_ListMapContextConfigs_async_flattened_resourceNames", + "title": "ListMapContextConfigsResourceNamesAsync", + "description": "Snippet for ListMapContextConfigsAsync", + "file": "MapManagementClient.ListMapContextConfigsResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListMapContextConfigsAsync", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.ListMapContextConfigsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Maps.MapManagement.V2Beta.MapConfigName", + "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": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "ListMapContextConfigs", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.ListMapContextConfigs", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 76, + "type": "FULL" + }, + { + "start": 37, + "end": 74, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_UpdateMapContextConfig_sync", + "title": "UpdateMapContextConfigRequestObject", + "description": "Snippet for UpdateMapContextConfig", + "file": "MapManagementClient.UpdateMapContextConfigRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateMapContextConfig", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.UpdateMapContextConfig", + "parameters": [ + { + "type": "Google.Maps.MapManagement.V2Beta.UpdateMapContextConfigRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Maps.MapManagement.V2Beta.MapContextConfig", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "UpdateMapContextConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.UpdateMapContextConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_UpdateMapContextConfig_async", + "title": "UpdateMapContextConfigRequestObjectAsync", + "description": "Snippet for UpdateMapContextConfigAsync", + "file": "MapManagementClient.UpdateMapContextConfigRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateMapContextConfigAsync", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.UpdateMapContextConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Maps.MapManagement.V2Beta.UpdateMapContextConfigRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "UpdateMapContextConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.UpdateMapContextConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 36, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_UpdateMapContextConfig_sync_flattened", + "title": "UpdateMapContextConfig", + "description": "Snippet for UpdateMapContextConfig", + "file": "MapManagementClient.UpdateMapContextConfigSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateMapContextConfig", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.UpdateMapContextConfig", + "parameters": [ + { + "type": "Google.Maps.MapManagement.V2Beta.MapContextConfig", + "name": "mapContextConfig" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Maps.MapManagement.V2Beta.MapContextConfig", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "UpdateMapContextConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.UpdateMapContextConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_UpdateMapContextConfig_async_flattened", + "title": "UpdateMapContextConfigAsync", + "description": "Snippet for UpdateMapContextConfigAsync", + "file": "MapManagementClient.UpdateMapContextConfigAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateMapContextConfigAsync", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.UpdateMapContextConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Maps.MapManagement.V2Beta.MapContextConfig", + "name": "mapContextConfig" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "UpdateMapContextConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.UpdateMapContextConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 36, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_DeleteMapContextConfig_sync", + "title": "DeleteMapContextConfigRequestObject", + "description": "Snippet for DeleteMapContextConfig", + "file": "MapManagementClient.DeleteMapContextConfigRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteMapContextConfig", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.DeleteMapContextConfig", + "parameters": [ + { + "type": "Google.Maps.MapManagement.V2Beta.DeleteMapContextConfigRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "DeleteMapContextConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.DeleteMapContextConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_DeleteMapContextConfig_async", + "title": "DeleteMapContextConfigRequestObjectAsync", + "description": "Snippet for DeleteMapContextConfigAsync", + "file": "MapManagementClient.DeleteMapContextConfigRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteMapContextConfigAsync", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.DeleteMapContextConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Maps.MapManagement.V2Beta.DeleteMapContextConfigRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "DeleteMapContextConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.DeleteMapContextConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_DeleteMapContextConfig_sync_flattened", + "title": "DeleteMapContextConfig", + "description": "Snippet for DeleteMapContextConfig", + "file": "MapManagementClient.DeleteMapContextConfigSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteMapContextConfig", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.DeleteMapContextConfig", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "DeleteMapContextConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.DeleteMapContextConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_DeleteMapContextConfig_async_flattened", + "title": "DeleteMapContextConfigAsync", + "description": "Snippet for DeleteMapContextConfigAsync", + "file": "MapManagementClient.DeleteMapContextConfigAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteMapContextConfigAsync", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.DeleteMapContextConfigAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "DeleteMapContextConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.DeleteMapContextConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_DeleteMapContextConfig_sync_flattened_resourceNames", + "title": "DeleteMapContextConfigResourceNames", + "description": "Snippet for DeleteMapContextConfig", + "file": "MapManagementClient.DeleteMapContextConfigResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteMapContextConfig", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.DeleteMapContextConfig", + "parameters": [ + { + "type": "Google.Maps.MapManagement.V2Beta.MapContextConfigName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "DeleteMapContextConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.DeleteMapContextConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "mapmanagement_v2beta_generated_MapManagement_DeleteMapContextConfig_async_flattened_resourceNames", + "title": "DeleteMapContextConfigResourceNamesAsync", + "description": "Snippet for DeleteMapContextConfigAsync", + "file": "MapManagementClient.DeleteMapContextConfigResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteMapContextConfigAsync", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient.DeleteMapContextConfigAsync", + "async": true, + "parameters": [ + { + "type": "Google.Maps.MapManagement.V2Beta.MapContextConfigName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "MapManagementClient", + "fullName": "Google.Maps.MapManagement.V2Beta.MapManagementClient" + }, + "method": { + "shortName": "DeleteMapContextConfig", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement.DeleteMapContextConfig", + "service": { + "shortName": "MapManagement", + "fullName": "google.maps.mapmanagement.v2beta.MapManagement" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + } + ] +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.Snippets/Google.Maps.MapManagement.V2Beta.Snippets.csproj b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.Snippets/Google.Maps.MapManagement.V2Beta.Snippets.csproj new file mode 100644 index 000000000000..d5dda57c9d43 --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.Snippets/Google.Maps.MapManagement.V2Beta.Snippets.csproj @@ -0,0 +1,20 @@ + + + + net8.0;net462 + net8.0 + false + $(NoWarn);1701;1702;1705;xUnit2004;xUnit2013 + + + + + + + + + + + + + \ No newline at end of file diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.Snippets/MapManagementClientSnippets.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.Snippets/MapManagementClientSnippets.g.cs new file mode 100644 index 000000000000..57aa0f824afd --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.Snippets/MapManagementClientSnippets.g.cs @@ -0,0 +1,1860 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Maps.MapManagement.V2Beta; + using Google.Protobuf.WellKnownTypes; + using System; + using System.Threading.Tasks; + + /// Generated snippets. + public sealed class AllGeneratedMapManagementClientSnippets + { + /// Snippet for CreateMapConfig + public void CreateMapConfigRequestObject() + { + // Snippet: CreateMapConfig(CreateMapConfigRequest, CallSettings) + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + CreateMapConfigRequest request = new CreateMapConfigRequest + { + ParentAsProjectName = ProjectName.FromProject("[PROJECT]"), + MapConfig = new MapConfig(), + }; + // Make the request + MapConfig response = mapManagementClient.CreateMapConfig(request); + // End snippet + } + + /// Snippet for CreateMapConfigAsync + public async Task CreateMapConfigRequestObjectAsync() + { + // Snippet: CreateMapConfigAsync(CreateMapConfigRequest, CallSettings) + // Additional: CreateMapConfigAsync(CreateMapConfigRequest, CancellationToken) + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + CreateMapConfigRequest request = new CreateMapConfigRequest + { + ParentAsProjectName = ProjectName.FromProject("[PROJECT]"), + MapConfig = new MapConfig(), + }; + // Make the request + MapConfig response = await mapManagementClient.CreateMapConfigAsync(request); + // End snippet + } + + /// Snippet for CreateMapConfig + public void CreateMapConfig() + { + // Snippet: CreateMapConfig(string, MapConfig, CallSettings) + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]"; + MapConfig mapConfig = new MapConfig(); + // Make the request + MapConfig response = mapManagementClient.CreateMapConfig(parent, mapConfig); + // End snippet + } + + /// Snippet for CreateMapConfigAsync + public async Task CreateMapConfigAsync() + { + // Snippet: CreateMapConfigAsync(string, MapConfig, CallSettings) + // Additional: CreateMapConfigAsync(string, MapConfig, CancellationToken) + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]"; + MapConfig mapConfig = new MapConfig(); + // Make the request + MapConfig response = await mapManagementClient.CreateMapConfigAsync(parent, mapConfig); + // End snippet + } + + /// Snippet for CreateMapConfig + public void CreateMapConfigResourceNames() + { + // Snippet: CreateMapConfig(ProjectName, MapConfig, CallSettings) + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + MapConfig mapConfig = new MapConfig(); + // Make the request + MapConfig response = mapManagementClient.CreateMapConfig(parent, mapConfig); + // End snippet + } + + /// Snippet for CreateMapConfigAsync + public async Task CreateMapConfigResourceNamesAsync() + { + // Snippet: CreateMapConfigAsync(ProjectName, MapConfig, CallSettings) + // Additional: CreateMapConfigAsync(ProjectName, MapConfig, CancellationToken) + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + MapConfig mapConfig = new MapConfig(); + // Make the request + MapConfig response = await mapManagementClient.CreateMapConfigAsync(parent, mapConfig); + // End snippet + } + + /// Snippet for GetMapConfig + public void GetMapConfigRequestObject() + { + // Snippet: GetMapConfig(GetMapConfigRequest, CallSettings) + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + GetMapConfigRequest request = new GetMapConfigRequest + { + MapConfigName = MapConfigName.FromProjectMapConfig("[PROJECT]", "[MAP_CONFIG]"), + }; + // Make the request + MapConfig response = mapManagementClient.GetMapConfig(request); + // End snippet + } + + /// Snippet for GetMapConfigAsync + public async Task GetMapConfigRequestObjectAsync() + { + // Snippet: GetMapConfigAsync(GetMapConfigRequest, CallSettings) + // Additional: GetMapConfigAsync(GetMapConfigRequest, CancellationToken) + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + GetMapConfigRequest request = new GetMapConfigRequest + { + MapConfigName = MapConfigName.FromProjectMapConfig("[PROJECT]", "[MAP_CONFIG]"), + }; + // Make the request + MapConfig response = await mapManagementClient.GetMapConfigAsync(request); + // End snippet + } + + /// Snippet for GetMapConfig + public void GetMapConfig() + { + // Snippet: GetMapConfig(string, CallSettings) + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/mapConfigs/[MAP_CONFIG]"; + // Make the request + MapConfig response = mapManagementClient.GetMapConfig(name); + // End snippet + } + + /// Snippet for GetMapConfigAsync + public async Task GetMapConfigAsync() + { + // Snippet: GetMapConfigAsync(string, CallSettings) + // Additional: GetMapConfigAsync(string, CancellationToken) + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/mapConfigs/[MAP_CONFIG]"; + // Make the request + MapConfig response = await mapManagementClient.GetMapConfigAsync(name); + // End snippet + } + + /// Snippet for GetMapConfig + public void GetMapConfigResourceNames() + { + // Snippet: GetMapConfig(MapConfigName, CallSettings) + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + MapConfigName name = MapConfigName.FromProjectMapConfig("[PROJECT]", "[MAP_CONFIG]"); + // Make the request + MapConfig response = mapManagementClient.GetMapConfig(name); + // End snippet + } + + /// Snippet for GetMapConfigAsync + public async Task GetMapConfigResourceNamesAsync() + { + // Snippet: GetMapConfigAsync(MapConfigName, CallSettings) + // Additional: GetMapConfigAsync(MapConfigName, CancellationToken) + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + MapConfigName name = MapConfigName.FromProjectMapConfig("[PROJECT]", "[MAP_CONFIG]"); + // Make the request + MapConfig response = await mapManagementClient.GetMapConfigAsync(name); + // End snippet + } + + /// Snippet for ListMapConfigs + public void ListMapConfigsRequestObject() + { + // Snippet: ListMapConfigs(ListMapConfigsRequest, CallSettings) + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + ListMapConfigsRequest request = new ListMapConfigsRequest + { + ParentAsProjectName = ProjectName.FromProject("[PROJECT]"), + }; + // Make the request + PagedEnumerable response = mapManagementClient.ListMapConfigs(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (MapConfig 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 (ListMapConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MapConfig 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 (MapConfig 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 ListMapConfigsAsync + public async Task ListMapConfigsRequestObjectAsync() + { + // Snippet: ListMapConfigsAsync(ListMapConfigsRequest, CallSettings) + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + ListMapConfigsRequest request = new ListMapConfigsRequest + { + ParentAsProjectName = ProjectName.FromProject("[PROJECT]"), + }; + // Make the request + PagedAsyncEnumerable response = mapManagementClient.ListMapConfigsAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await foreach (MapConfig item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + await foreach (ListMapConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MapConfig 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 (MapConfig 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 ListMapConfigs + public void ListMapConfigs() + { + // Snippet: ListMapConfigs(string, string, int?, CallSettings) + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]"; + // Make the request + PagedEnumerable response = mapManagementClient.ListMapConfigs(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (MapConfig 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 (ListMapConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MapConfig 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 (MapConfig 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 ListMapConfigsAsync + public async Task ListMapConfigsAsync() + { + // Snippet: ListMapConfigsAsync(string, string, int?, CallSettings) + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]"; + // Make the request + PagedAsyncEnumerable response = mapManagementClient.ListMapConfigsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await foreach (MapConfig item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + await foreach (ListMapConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MapConfig 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 (MapConfig 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 ListMapConfigs + public void ListMapConfigsResourceNames() + { + // Snippet: ListMapConfigs(ProjectName, string, int?, CallSettings) + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + // Make the request + PagedEnumerable response = mapManagementClient.ListMapConfigs(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (MapConfig 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 (ListMapConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MapConfig 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 (MapConfig 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 ListMapConfigsAsync + public async Task ListMapConfigsResourceNamesAsync() + { + // Snippet: ListMapConfigsAsync(ProjectName, string, int?, CallSettings) + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + // Make the request + PagedAsyncEnumerable response = mapManagementClient.ListMapConfigsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await foreach (MapConfig item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + await foreach (ListMapConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MapConfig 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 (MapConfig 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 UpdateMapConfig + public void UpdateMapConfigRequestObject() + { + // Snippet: UpdateMapConfig(UpdateMapConfigRequest, CallSettings) + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + UpdateMapConfigRequest request = new UpdateMapConfigRequest + { + MapConfig = new MapConfig(), + UpdateMask = new FieldMask(), + }; + // Make the request + MapConfig response = mapManagementClient.UpdateMapConfig(request); + // End snippet + } + + /// Snippet for UpdateMapConfigAsync + public async Task UpdateMapConfigRequestObjectAsync() + { + // Snippet: UpdateMapConfigAsync(UpdateMapConfigRequest, CallSettings) + // Additional: UpdateMapConfigAsync(UpdateMapConfigRequest, CancellationToken) + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + UpdateMapConfigRequest request = new UpdateMapConfigRequest + { + MapConfig = new MapConfig(), + UpdateMask = new FieldMask(), + }; + // Make the request + MapConfig response = await mapManagementClient.UpdateMapConfigAsync(request); + // End snippet + } + + /// Snippet for UpdateMapConfig + public void UpdateMapConfig() + { + // Snippet: UpdateMapConfig(MapConfig, FieldMask, CallSettings) + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + MapConfig mapConfig = new MapConfig(); + FieldMask updateMask = new FieldMask(); + // Make the request + MapConfig response = mapManagementClient.UpdateMapConfig(mapConfig, updateMask); + // End snippet + } + + /// Snippet for UpdateMapConfigAsync + public async Task UpdateMapConfigAsync() + { + // Snippet: UpdateMapConfigAsync(MapConfig, FieldMask, CallSettings) + // Additional: UpdateMapConfigAsync(MapConfig, FieldMask, CancellationToken) + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + MapConfig mapConfig = new MapConfig(); + FieldMask updateMask = new FieldMask(); + // Make the request + MapConfig response = await mapManagementClient.UpdateMapConfigAsync(mapConfig, updateMask); + // End snippet + } + + /// Snippet for DeleteMapConfig + public void DeleteMapConfigRequestObject() + { + // Snippet: DeleteMapConfig(DeleteMapConfigRequest, CallSettings) + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + DeleteMapConfigRequest request = new DeleteMapConfigRequest + { + MapConfigName = MapConfigName.FromProjectMapConfig("[PROJECT]", "[MAP_CONFIG]"), + Force = false, + }; + // Make the request + mapManagementClient.DeleteMapConfig(request); + // End snippet + } + + /// Snippet for DeleteMapConfigAsync + public async Task DeleteMapConfigRequestObjectAsync() + { + // Snippet: DeleteMapConfigAsync(DeleteMapConfigRequest, CallSettings) + // Additional: DeleteMapConfigAsync(DeleteMapConfigRequest, CancellationToken) + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + DeleteMapConfigRequest request = new DeleteMapConfigRequest + { + MapConfigName = MapConfigName.FromProjectMapConfig("[PROJECT]", "[MAP_CONFIG]"), + Force = false, + }; + // Make the request + await mapManagementClient.DeleteMapConfigAsync(request); + // End snippet + } + + /// Snippet for DeleteMapConfig + public void DeleteMapConfig() + { + // Snippet: DeleteMapConfig(string, bool, CallSettings) + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/mapConfigs/[MAP_CONFIG]"; + bool force = false; + // Make the request + mapManagementClient.DeleteMapConfig(name, force); + // End snippet + } + + /// Snippet for DeleteMapConfigAsync + public async Task DeleteMapConfigAsync() + { + // Snippet: DeleteMapConfigAsync(string, bool, CallSettings) + // Additional: DeleteMapConfigAsync(string, bool, CancellationToken) + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/mapConfigs/[MAP_CONFIG]"; + bool force = false; + // Make the request + await mapManagementClient.DeleteMapConfigAsync(name, force); + // End snippet + } + + /// Snippet for DeleteMapConfig + public void DeleteMapConfigResourceNames() + { + // Snippet: DeleteMapConfig(MapConfigName, bool, CallSettings) + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + MapConfigName name = MapConfigName.FromProjectMapConfig("[PROJECT]", "[MAP_CONFIG]"); + bool force = false; + // Make the request + mapManagementClient.DeleteMapConfig(name, force); + // End snippet + } + + /// Snippet for DeleteMapConfigAsync + public async Task DeleteMapConfigResourceNamesAsync() + { + // Snippet: DeleteMapConfigAsync(MapConfigName, bool, CallSettings) + // Additional: DeleteMapConfigAsync(MapConfigName, bool, CancellationToken) + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + MapConfigName name = MapConfigName.FromProjectMapConfig("[PROJECT]", "[MAP_CONFIG]"); + bool force = false; + // Make the request + await mapManagementClient.DeleteMapConfigAsync(name, force); + // End snippet + } + + /// Snippet for CreateStyleConfig + public void CreateStyleConfigRequestObject() + { + // Snippet: CreateStyleConfig(CreateStyleConfigRequest, CallSettings) + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + CreateStyleConfigRequest request = new CreateStyleConfigRequest + { + ParentAsProjectName = ProjectName.FromProject("[PROJECT]"), + StyleConfig = new StyleConfig(), + }; + // Make the request + StyleConfig response = mapManagementClient.CreateStyleConfig(request); + // End snippet + } + + /// Snippet for CreateStyleConfigAsync + public async Task CreateStyleConfigRequestObjectAsync() + { + // Snippet: CreateStyleConfigAsync(CreateStyleConfigRequest, CallSettings) + // Additional: CreateStyleConfigAsync(CreateStyleConfigRequest, CancellationToken) + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + CreateStyleConfigRequest request = new CreateStyleConfigRequest + { + ParentAsProjectName = ProjectName.FromProject("[PROJECT]"), + StyleConfig = new StyleConfig(), + }; + // Make the request + StyleConfig response = await mapManagementClient.CreateStyleConfigAsync(request); + // End snippet + } + + /// Snippet for CreateStyleConfig + public void CreateStyleConfig() + { + // Snippet: CreateStyleConfig(string, StyleConfig, CallSettings) + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]"; + StyleConfig styleConfig = new StyleConfig(); + // Make the request + StyleConfig response = mapManagementClient.CreateStyleConfig(parent, styleConfig); + // End snippet + } + + /// Snippet for CreateStyleConfigAsync + public async Task CreateStyleConfigAsync() + { + // Snippet: CreateStyleConfigAsync(string, StyleConfig, CallSettings) + // Additional: CreateStyleConfigAsync(string, StyleConfig, CancellationToken) + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]"; + StyleConfig styleConfig = new StyleConfig(); + // Make the request + StyleConfig response = await mapManagementClient.CreateStyleConfigAsync(parent, styleConfig); + // End snippet + } + + /// Snippet for CreateStyleConfig + public void CreateStyleConfigResourceNames() + { + // Snippet: CreateStyleConfig(ProjectName, StyleConfig, CallSettings) + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + StyleConfig styleConfig = new StyleConfig(); + // Make the request + StyleConfig response = mapManagementClient.CreateStyleConfig(parent, styleConfig); + // End snippet + } + + /// Snippet for CreateStyleConfigAsync + public async Task CreateStyleConfigResourceNamesAsync() + { + // Snippet: CreateStyleConfigAsync(ProjectName, StyleConfig, CallSettings) + // Additional: CreateStyleConfigAsync(ProjectName, StyleConfig, CancellationToken) + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + StyleConfig styleConfig = new StyleConfig(); + // Make the request + StyleConfig response = await mapManagementClient.CreateStyleConfigAsync(parent, styleConfig); + // End snippet + } + + /// Snippet for GetStyleConfig + public void GetStyleConfigRequestObject() + { + // Snippet: GetStyleConfig(GetStyleConfigRequest, CallSettings) + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + GetStyleConfigRequest request = new GetStyleConfigRequest + { + StyleConfigName = StyleConfigName.FromProjectStyleConfig("[PROJECT]", "[STYLE_CONFIG]"), + }; + // Make the request + StyleConfig response = mapManagementClient.GetStyleConfig(request); + // End snippet + } + + /// Snippet for GetStyleConfigAsync + public async Task GetStyleConfigRequestObjectAsync() + { + // Snippet: GetStyleConfigAsync(GetStyleConfigRequest, CallSettings) + // Additional: GetStyleConfigAsync(GetStyleConfigRequest, CancellationToken) + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + GetStyleConfigRequest request = new GetStyleConfigRequest + { + StyleConfigName = StyleConfigName.FromProjectStyleConfig("[PROJECT]", "[STYLE_CONFIG]"), + }; + // Make the request + StyleConfig response = await mapManagementClient.GetStyleConfigAsync(request); + // End snippet + } + + /// Snippet for GetStyleConfig + public void GetStyleConfig() + { + // Snippet: GetStyleConfig(string, CallSettings) + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/styleConfigs/[STYLE_CONFIG]"; + // Make the request + StyleConfig response = mapManagementClient.GetStyleConfig(name); + // End snippet + } + + /// Snippet for GetStyleConfigAsync + public async Task GetStyleConfigAsync() + { + // Snippet: GetStyleConfigAsync(string, CallSettings) + // Additional: GetStyleConfigAsync(string, CancellationToken) + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/styleConfigs/[STYLE_CONFIG]"; + // Make the request + StyleConfig response = await mapManagementClient.GetStyleConfigAsync(name); + // End snippet + } + + /// Snippet for GetStyleConfig + public void GetStyleConfigResourceNames() + { + // Snippet: GetStyleConfig(StyleConfigName, CallSettings) + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + StyleConfigName name = StyleConfigName.FromProjectStyleConfig("[PROJECT]", "[STYLE_CONFIG]"); + // Make the request + StyleConfig response = mapManagementClient.GetStyleConfig(name); + // End snippet + } + + /// Snippet for GetStyleConfigAsync + public async Task GetStyleConfigResourceNamesAsync() + { + // Snippet: GetStyleConfigAsync(StyleConfigName, CallSettings) + // Additional: GetStyleConfigAsync(StyleConfigName, CancellationToken) + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + StyleConfigName name = StyleConfigName.FromProjectStyleConfig("[PROJECT]", "[STYLE_CONFIG]"); + // Make the request + StyleConfig response = await mapManagementClient.GetStyleConfigAsync(name); + // End snippet + } + + /// Snippet for ListStyleConfigs + public void ListStyleConfigsRequestObject() + { + // Snippet: ListStyleConfigs(ListStyleConfigsRequest, CallSettings) + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + ListStyleConfigsRequest request = new ListStyleConfigsRequest + { + ParentAsProjectName = ProjectName.FromProject("[PROJECT]"), + Filter = "", + View = StyleConfigView.Unspecified, + }; + // Make the request + PagedEnumerable response = mapManagementClient.ListStyleConfigs(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (StyleConfig 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 (ListStyleConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (StyleConfig 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 (StyleConfig 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 ListStyleConfigsAsync + public async Task ListStyleConfigsRequestObjectAsync() + { + // Snippet: ListStyleConfigsAsync(ListStyleConfigsRequest, CallSettings) + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + ListStyleConfigsRequest request = new ListStyleConfigsRequest + { + ParentAsProjectName = ProjectName.FromProject("[PROJECT]"), + Filter = "", + View = StyleConfigView.Unspecified, + }; + // Make the request + PagedAsyncEnumerable response = mapManagementClient.ListStyleConfigsAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await foreach (StyleConfig item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + await foreach (ListStyleConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (StyleConfig 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 (StyleConfig 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 ListStyleConfigs + public void ListStyleConfigs() + { + // Snippet: ListStyleConfigs(string, string, int?, CallSettings) + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]"; + // Make the request + PagedEnumerable response = mapManagementClient.ListStyleConfigs(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (StyleConfig 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 (ListStyleConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (StyleConfig 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 (StyleConfig 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 ListStyleConfigsAsync + public async Task ListStyleConfigsAsync() + { + // Snippet: ListStyleConfigsAsync(string, string, int?, CallSettings) + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]"; + // Make the request + PagedAsyncEnumerable response = mapManagementClient.ListStyleConfigsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await foreach (StyleConfig item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + await foreach (ListStyleConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (StyleConfig 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 (StyleConfig 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 ListStyleConfigs + public void ListStyleConfigsResourceNames() + { + // Snippet: ListStyleConfigs(ProjectName, string, int?, CallSettings) + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + // Make the request + PagedEnumerable response = mapManagementClient.ListStyleConfigs(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (StyleConfig 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 (ListStyleConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (StyleConfig 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 (StyleConfig 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 ListStyleConfigsAsync + public async Task ListStyleConfigsResourceNamesAsync() + { + // Snippet: ListStyleConfigsAsync(ProjectName, string, int?, CallSettings) + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + // Make the request + PagedAsyncEnumerable response = mapManagementClient.ListStyleConfigsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await foreach (StyleConfig item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + await foreach (ListStyleConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (StyleConfig 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 (StyleConfig 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 UpdateStyleConfig + public void UpdateStyleConfigRequestObject() + { + // Snippet: UpdateStyleConfig(UpdateStyleConfigRequest, CallSettings) + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + UpdateStyleConfigRequest request = new UpdateStyleConfigRequest + { + StyleConfig = new StyleConfig(), + UpdateMask = new FieldMask(), + }; + // Make the request + StyleConfig response = mapManagementClient.UpdateStyleConfig(request); + // End snippet + } + + /// Snippet for UpdateStyleConfigAsync + public async Task UpdateStyleConfigRequestObjectAsync() + { + // Snippet: UpdateStyleConfigAsync(UpdateStyleConfigRequest, CallSettings) + // Additional: UpdateStyleConfigAsync(UpdateStyleConfigRequest, CancellationToken) + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + UpdateStyleConfigRequest request = new UpdateStyleConfigRequest + { + StyleConfig = new StyleConfig(), + UpdateMask = new FieldMask(), + }; + // Make the request + StyleConfig response = await mapManagementClient.UpdateStyleConfigAsync(request); + // End snippet + } + + /// Snippet for UpdateStyleConfig + public void UpdateStyleConfig() + { + // Snippet: UpdateStyleConfig(StyleConfig, FieldMask, CallSettings) + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + StyleConfig styleConfig = new StyleConfig(); + FieldMask updateMask = new FieldMask(); + // Make the request + StyleConfig response = mapManagementClient.UpdateStyleConfig(styleConfig, updateMask); + // End snippet + } + + /// Snippet for UpdateStyleConfigAsync + public async Task UpdateStyleConfigAsync() + { + // Snippet: UpdateStyleConfigAsync(StyleConfig, FieldMask, CallSettings) + // Additional: UpdateStyleConfigAsync(StyleConfig, FieldMask, CancellationToken) + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + StyleConfig styleConfig = new StyleConfig(); + FieldMask updateMask = new FieldMask(); + // Make the request + StyleConfig response = await mapManagementClient.UpdateStyleConfigAsync(styleConfig, updateMask); + // End snippet + } + + /// Snippet for DeleteStyleConfig + public void DeleteStyleConfigRequestObject() + { + // Snippet: DeleteStyleConfig(DeleteStyleConfigRequest, CallSettings) + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + DeleteStyleConfigRequest request = new DeleteStyleConfigRequest + { + StyleConfigName = StyleConfigName.FromProjectStyleConfig("[PROJECT]", "[STYLE_CONFIG]"), + }; + // Make the request + mapManagementClient.DeleteStyleConfig(request); + // End snippet + } + + /// Snippet for DeleteStyleConfigAsync + public async Task DeleteStyleConfigRequestObjectAsync() + { + // Snippet: DeleteStyleConfigAsync(DeleteStyleConfigRequest, CallSettings) + // Additional: DeleteStyleConfigAsync(DeleteStyleConfigRequest, CancellationToken) + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + DeleteStyleConfigRequest request = new DeleteStyleConfigRequest + { + StyleConfigName = StyleConfigName.FromProjectStyleConfig("[PROJECT]", "[STYLE_CONFIG]"), + }; + // Make the request + await mapManagementClient.DeleteStyleConfigAsync(request); + // End snippet + } + + /// Snippet for DeleteStyleConfig + public void DeleteStyleConfig() + { + // Snippet: DeleteStyleConfig(string, CallSettings) + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/styleConfigs/[STYLE_CONFIG]"; + // Make the request + mapManagementClient.DeleteStyleConfig(name); + // End snippet + } + + /// Snippet for DeleteStyleConfigAsync + public async Task DeleteStyleConfigAsync() + { + // Snippet: DeleteStyleConfigAsync(string, CallSettings) + // Additional: DeleteStyleConfigAsync(string, CancellationToken) + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/styleConfigs/[STYLE_CONFIG]"; + // Make the request + await mapManagementClient.DeleteStyleConfigAsync(name); + // End snippet + } + + /// Snippet for DeleteStyleConfig + public void DeleteStyleConfigResourceNames() + { + // Snippet: DeleteStyleConfig(StyleConfigName, CallSettings) + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + StyleConfigName name = StyleConfigName.FromProjectStyleConfig("[PROJECT]", "[STYLE_CONFIG]"); + // Make the request + mapManagementClient.DeleteStyleConfig(name); + // End snippet + } + + /// Snippet for DeleteStyleConfigAsync + public async Task DeleteStyleConfigResourceNamesAsync() + { + // Snippet: DeleteStyleConfigAsync(StyleConfigName, CallSettings) + // Additional: DeleteStyleConfigAsync(StyleConfigName, CancellationToken) + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + StyleConfigName name = StyleConfigName.FromProjectStyleConfig("[PROJECT]", "[STYLE_CONFIG]"); + // Make the request + await mapManagementClient.DeleteStyleConfigAsync(name); + // End snippet + } + + /// Snippet for CreateMapContextConfig + public void CreateMapContextConfigRequestObject() + { + // Snippet: CreateMapContextConfig(CreateMapContextConfigRequest, CallSettings) + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + CreateMapContextConfigRequest request = new CreateMapContextConfigRequest + { + ParentAsMapConfigName = MapConfigName.FromProjectMapConfig("[PROJECT]", "[MAP_CONFIG]"), + MapContextConfig = new MapContextConfig(), + }; + // Make the request + MapContextConfig response = mapManagementClient.CreateMapContextConfig(request); + // End snippet + } + + /// Snippet for CreateMapContextConfigAsync + public async Task CreateMapContextConfigRequestObjectAsync() + { + // Snippet: CreateMapContextConfigAsync(CreateMapContextConfigRequest, CallSettings) + // Additional: CreateMapContextConfigAsync(CreateMapContextConfigRequest, CancellationToken) + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + CreateMapContextConfigRequest request = new CreateMapContextConfigRequest + { + ParentAsMapConfigName = MapConfigName.FromProjectMapConfig("[PROJECT]", "[MAP_CONFIG]"), + MapContextConfig = new MapContextConfig(), + }; + // Make the request + MapContextConfig response = await mapManagementClient.CreateMapContextConfigAsync(request); + // End snippet + } + + /// Snippet for CreateMapContextConfig + public void CreateMapContextConfig() + { + // Snippet: CreateMapContextConfig(string, MapContextConfig, CallSettings) + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/mapConfigs/[MAP_CONFIG]"; + MapContextConfig mapContextConfig = new MapContextConfig(); + // Make the request + MapContextConfig response = mapManagementClient.CreateMapContextConfig(parent, mapContextConfig); + // End snippet + } + + /// Snippet for CreateMapContextConfigAsync + public async Task CreateMapContextConfigAsync() + { + // Snippet: CreateMapContextConfigAsync(string, MapContextConfig, CallSettings) + // Additional: CreateMapContextConfigAsync(string, MapContextConfig, CancellationToken) + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/mapConfigs/[MAP_CONFIG]"; + MapContextConfig mapContextConfig = new MapContextConfig(); + // Make the request + MapContextConfig response = await mapManagementClient.CreateMapContextConfigAsync(parent, mapContextConfig); + // End snippet + } + + /// Snippet for CreateMapContextConfig + public void CreateMapContextConfigResourceNames() + { + // Snippet: CreateMapContextConfig(MapConfigName, MapContextConfig, CallSettings) + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + MapConfigName parent = MapConfigName.FromProjectMapConfig("[PROJECT]", "[MAP_CONFIG]"); + MapContextConfig mapContextConfig = new MapContextConfig(); + // Make the request + MapContextConfig response = mapManagementClient.CreateMapContextConfig(parent, mapContextConfig); + // End snippet + } + + /// Snippet for CreateMapContextConfigAsync + public async Task CreateMapContextConfigResourceNamesAsync() + { + // Snippet: CreateMapContextConfigAsync(MapConfigName, MapContextConfig, CallSettings) + // Additional: CreateMapContextConfigAsync(MapConfigName, MapContextConfig, CancellationToken) + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + MapConfigName parent = MapConfigName.FromProjectMapConfig("[PROJECT]", "[MAP_CONFIG]"); + MapContextConfig mapContextConfig = new MapContextConfig(); + // Make the request + MapContextConfig response = await mapManagementClient.CreateMapContextConfigAsync(parent, mapContextConfig); + // End snippet + } + + /// Snippet for GetMapContextConfig + public void GetMapContextConfigRequestObject() + { + // Snippet: GetMapContextConfig(GetMapContextConfigRequest, CallSettings) + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + GetMapContextConfigRequest request = new GetMapContextConfigRequest + { + MapContextConfigName = MapContextConfigName.FromProjectMapConfigMapContextConfig("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]"), + }; + // Make the request + MapContextConfig response = mapManagementClient.GetMapContextConfig(request); + // End snippet + } + + /// Snippet for GetMapContextConfigAsync + public async Task GetMapContextConfigRequestObjectAsync() + { + // Snippet: GetMapContextConfigAsync(GetMapContextConfigRequest, CallSettings) + // Additional: GetMapContextConfigAsync(GetMapContextConfigRequest, CancellationToken) + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + GetMapContextConfigRequest request = new GetMapContextConfigRequest + { + MapContextConfigName = MapContextConfigName.FromProjectMapConfigMapContextConfig("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]"), + }; + // Make the request + MapContextConfig response = await mapManagementClient.GetMapContextConfigAsync(request); + // End snippet + } + + /// Snippet for GetMapContextConfig + public void GetMapContextConfig() + { + // Snippet: GetMapContextConfig(string, CallSettings) + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/mapConfigs/[MAP_CONFIG]/mapContextConfigs/[MAP_CONTEXT_CONFIG]"; + // Make the request + MapContextConfig response = mapManagementClient.GetMapContextConfig(name); + // End snippet + } + + /// Snippet for GetMapContextConfigAsync + public async Task GetMapContextConfigAsync() + { + // Snippet: GetMapContextConfigAsync(string, CallSettings) + // Additional: GetMapContextConfigAsync(string, CancellationToken) + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/mapConfigs/[MAP_CONFIG]/mapContextConfigs/[MAP_CONTEXT_CONFIG]"; + // Make the request + MapContextConfig response = await mapManagementClient.GetMapContextConfigAsync(name); + // End snippet + } + + /// Snippet for GetMapContextConfig + public void GetMapContextConfigResourceNames() + { + // Snippet: GetMapContextConfig(MapContextConfigName, CallSettings) + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + MapContextConfigName name = MapContextConfigName.FromProjectMapConfigMapContextConfig("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]"); + // Make the request + MapContextConfig response = mapManagementClient.GetMapContextConfig(name); + // End snippet + } + + /// Snippet for GetMapContextConfigAsync + public async Task GetMapContextConfigResourceNamesAsync() + { + // Snippet: GetMapContextConfigAsync(MapContextConfigName, CallSettings) + // Additional: GetMapContextConfigAsync(MapContextConfigName, CancellationToken) + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + MapContextConfigName name = MapContextConfigName.FromProjectMapConfigMapContextConfig("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]"); + // Make the request + MapContextConfig response = await mapManagementClient.GetMapContextConfigAsync(name); + // End snippet + } + + /// Snippet for ListMapContextConfigs + public void ListMapContextConfigsRequestObject() + { + // Snippet: ListMapContextConfigs(ListMapContextConfigsRequest, CallSettings) + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + ListMapContextConfigsRequest request = new ListMapContextConfigsRequest + { + ParentAsMapConfigName = MapConfigName.FromProjectMapConfig("[PROJECT]", "[MAP_CONFIG]"), + }; + // Make the request + PagedEnumerable response = mapManagementClient.ListMapContextConfigs(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (MapContextConfig 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 (ListMapContextConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MapContextConfig 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 (MapContextConfig 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 ListMapContextConfigsAsync + public async Task ListMapContextConfigsRequestObjectAsync() + { + // Snippet: ListMapContextConfigsAsync(ListMapContextConfigsRequest, CallSettings) + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + ListMapContextConfigsRequest request = new ListMapContextConfigsRequest + { + ParentAsMapConfigName = MapConfigName.FromProjectMapConfig("[PROJECT]", "[MAP_CONFIG]"), + }; + // Make the request + PagedAsyncEnumerable response = mapManagementClient.ListMapContextConfigsAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await foreach (MapContextConfig item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + await foreach (ListMapContextConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MapContextConfig 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 (MapContextConfig 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 ListMapContextConfigs + public void ListMapContextConfigs() + { + // Snippet: ListMapContextConfigs(string, string, int?, CallSettings) + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/mapConfigs/[MAP_CONFIG]"; + // Make the request + PagedEnumerable response = mapManagementClient.ListMapContextConfigs(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (MapContextConfig 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 (ListMapContextConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MapContextConfig 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 (MapContextConfig 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 ListMapContextConfigsAsync + public async Task ListMapContextConfigsAsync() + { + // Snippet: ListMapContextConfigsAsync(string, string, int?, CallSettings) + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/mapConfigs/[MAP_CONFIG]"; + // Make the request + PagedAsyncEnumerable response = mapManagementClient.ListMapContextConfigsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await foreach (MapContextConfig item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + await foreach (ListMapContextConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MapContextConfig 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 (MapContextConfig 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 ListMapContextConfigs + public void ListMapContextConfigsResourceNames() + { + // Snippet: ListMapContextConfigs(MapConfigName, string, int?, CallSettings) + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + MapConfigName parent = MapConfigName.FromProjectMapConfig("[PROJECT]", "[MAP_CONFIG]"); + // Make the request + PagedEnumerable response = mapManagementClient.ListMapContextConfigs(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (MapContextConfig 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 (ListMapContextConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MapContextConfig 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 (MapContextConfig 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 ListMapContextConfigsAsync + public async Task ListMapContextConfigsResourceNamesAsync() + { + // Snippet: ListMapContextConfigsAsync(MapConfigName, string, int?, CallSettings) + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + MapConfigName parent = MapConfigName.FromProjectMapConfig("[PROJECT]", "[MAP_CONFIG]"); + // Make the request + PagedAsyncEnumerable response = mapManagementClient.ListMapContextConfigsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await foreach (MapContextConfig item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + await foreach (ListMapContextConfigsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (MapContextConfig 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 (MapContextConfig 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 UpdateMapContextConfig + public void UpdateMapContextConfigRequestObject() + { + // Snippet: UpdateMapContextConfig(UpdateMapContextConfigRequest, CallSettings) + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + UpdateMapContextConfigRequest request = new UpdateMapContextConfigRequest + { + MapContextConfig = new MapContextConfig(), + UpdateMask = new FieldMask(), + }; + // Make the request + MapContextConfig response = mapManagementClient.UpdateMapContextConfig(request); + // End snippet + } + + /// Snippet for UpdateMapContextConfigAsync + public async Task UpdateMapContextConfigRequestObjectAsync() + { + // Snippet: UpdateMapContextConfigAsync(UpdateMapContextConfigRequest, CallSettings) + // Additional: UpdateMapContextConfigAsync(UpdateMapContextConfigRequest, CancellationToken) + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + UpdateMapContextConfigRequest request = new UpdateMapContextConfigRequest + { + MapContextConfig = new MapContextConfig(), + UpdateMask = new FieldMask(), + }; + // Make the request + MapContextConfig response = await mapManagementClient.UpdateMapContextConfigAsync(request); + // End snippet + } + + /// Snippet for UpdateMapContextConfig + public void UpdateMapContextConfig() + { + // Snippet: UpdateMapContextConfig(MapContextConfig, FieldMask, CallSettings) + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + MapContextConfig mapContextConfig = new MapContextConfig(); + FieldMask updateMask = new FieldMask(); + // Make the request + MapContextConfig response = mapManagementClient.UpdateMapContextConfig(mapContextConfig, updateMask); + // End snippet + } + + /// Snippet for UpdateMapContextConfigAsync + public async Task UpdateMapContextConfigAsync() + { + // Snippet: UpdateMapContextConfigAsync(MapContextConfig, FieldMask, CallSettings) + // Additional: UpdateMapContextConfigAsync(MapContextConfig, FieldMask, CancellationToken) + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + MapContextConfig mapContextConfig = new MapContextConfig(); + FieldMask updateMask = new FieldMask(); + // Make the request + MapContextConfig response = await mapManagementClient.UpdateMapContextConfigAsync(mapContextConfig, updateMask); + // End snippet + } + + /// Snippet for DeleteMapContextConfig + public void DeleteMapContextConfigRequestObject() + { + // Snippet: DeleteMapContextConfig(DeleteMapContextConfigRequest, CallSettings) + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + DeleteMapContextConfigRequest request = new DeleteMapContextConfigRequest + { + MapContextConfigName = MapContextConfigName.FromProjectMapConfigMapContextConfig("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]"), + }; + // Make the request + mapManagementClient.DeleteMapContextConfig(request); + // End snippet + } + + /// Snippet for DeleteMapContextConfigAsync + public async Task DeleteMapContextConfigRequestObjectAsync() + { + // Snippet: DeleteMapContextConfigAsync(DeleteMapContextConfigRequest, CallSettings) + // Additional: DeleteMapContextConfigAsync(DeleteMapContextConfigRequest, CancellationToken) + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + DeleteMapContextConfigRequest request = new DeleteMapContextConfigRequest + { + MapContextConfigName = MapContextConfigName.FromProjectMapConfigMapContextConfig("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]"), + }; + // Make the request + await mapManagementClient.DeleteMapContextConfigAsync(request); + // End snippet + } + + /// Snippet for DeleteMapContextConfig + public void DeleteMapContextConfig() + { + // Snippet: DeleteMapContextConfig(string, CallSettings) + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/mapConfigs/[MAP_CONFIG]/mapContextConfigs/[MAP_CONTEXT_CONFIG]"; + // Make the request + mapManagementClient.DeleteMapContextConfig(name); + // End snippet + } + + /// Snippet for DeleteMapContextConfigAsync + public async Task DeleteMapContextConfigAsync() + { + // Snippet: DeleteMapContextConfigAsync(string, CallSettings) + // Additional: DeleteMapContextConfigAsync(string, CancellationToken) + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/mapConfigs/[MAP_CONFIG]/mapContextConfigs/[MAP_CONTEXT_CONFIG]"; + // Make the request + await mapManagementClient.DeleteMapContextConfigAsync(name); + // End snippet + } + + /// Snippet for DeleteMapContextConfig + public void DeleteMapContextConfigResourceNames() + { + // Snippet: DeleteMapContextConfig(MapContextConfigName, CallSettings) + // Create client + MapManagementClient mapManagementClient = MapManagementClient.Create(); + // Initialize request argument(s) + MapContextConfigName name = MapContextConfigName.FromProjectMapConfigMapContextConfig("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]"); + // Make the request + mapManagementClient.DeleteMapContextConfig(name); + // End snippet + } + + /// Snippet for DeleteMapContextConfigAsync + public async Task DeleteMapContextConfigResourceNamesAsync() + { + // Snippet: DeleteMapContextConfigAsync(MapContextConfigName, CallSettings) + // Additional: DeleteMapContextConfigAsync(MapContextConfigName, CancellationToken) + // Create client + MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync(); + // Initialize request argument(s) + MapContextConfigName name = MapContextConfigName.FromProjectMapConfigMapContextConfig("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]"); + // Make the request + await mapManagementClient.DeleteMapContextConfigAsync(name); + // End snippet + } + } +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.sln b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.sln new file mode 100644 index 000000000000..61b86709d221 --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.sln @@ -0,0 +1,40 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.2.32516.85 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Google.Maps.MapManagement.V2Beta", "Google.Maps.MapManagement.V2Beta\Google.Maps.MapManagement.V2Beta.csproj", "{CAC56DE7-DF69-B7FC-9011-C095B5B8ECA2}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Google.Maps.MapManagement.V2Beta.Snippets", "Google.Maps.MapManagement.V2Beta.Snippets\Google.Maps.MapManagement.V2Beta.Snippets.csproj", "{349447C3-7787-0A96-70BD-BDDA03023176}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Google.Maps.MapManagement.V2Beta.GeneratedSnippets", "Google.Maps.MapManagement.V2Beta.GeneratedSnippets\Google.Maps.MapManagement.V2Beta.GeneratedSnippets.csproj", "{4DD75DD5-6F20-BFCA-F478-DB0F38F6CDEB}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Google.Cloud.ClientTesting", "..\..\tools\Google.Cloud.ClientTesting\Google.Cloud.ClientTesting.csproj", "{29974B0C-A7B0-8CA8-AE32-99F622C89044}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {CAC56DE7-DF69-B7FC-9011-C095B5B8ECA2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {CAC56DE7-DF69-B7FC-9011-C095B5B8ECA2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {CAC56DE7-DF69-B7FC-9011-C095B5B8ECA2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {CAC56DE7-DF69-B7FC-9011-C095B5B8ECA2}.Release|Any CPU.Build.0 = Release|Any CPU + {349447C3-7787-0A96-70BD-BDDA03023176}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {349447C3-7787-0A96-70BD-BDDA03023176}.Debug|Any CPU.Build.0 = Debug|Any CPU + {349447C3-7787-0A96-70BD-BDDA03023176}.Release|Any CPU.ActiveCfg = Release|Any CPU + {349447C3-7787-0A96-70BD-BDDA03023176}.Release|Any CPU.Build.0 = Release|Any CPU + {4DD75DD5-6F20-BFCA-F478-DB0F38F6CDEB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4DD75DD5-6F20-BFCA-F478-DB0F38F6CDEB}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4DD75DD5-6F20-BFCA-F478-DB0F38F6CDEB}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4DD75DD5-6F20-BFCA-F478-DB0F38F6CDEB}.Release|Any CPU.Build.0 = Release|Any CPU + {29974B0C-A7B0-8CA8-AE32-99F622C89044}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {29974B0C-A7B0-8CA8-AE32-99F622C89044}.Debug|Any CPU.Build.0 = Debug|Any CPU + {29974B0C-A7B0-8CA8-AE32-99F622C89044}.Release|Any CPU.ActiveCfg = Release|Any CPU + {29974B0C-A7B0-8CA8-AE32-99F622C89044}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.csproj b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.csproj new file mode 100644 index 000000000000..5ef087f185cb --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta.csproj @@ -0,0 +1,15 @@ + + + + 1.0.0-beta00 + netstandard2.0;net462 + true + The Map Management API is a RESTful service that accepts HTTP requests for map styling data through a variety of methods. It returns formatted configuration data about map styling resources so that you can programmatically manage your Cloud-based map styles. + Google;Cloud + + + + + + + \ No newline at end of file diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta/MapManagementClient.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta/MapManagementClient.g.cs new file mode 100644 index 000000000000..165d315d2901 --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta/MapManagementClient.g.cs @@ -0,0 +1,2868 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +#pragma warning disable CS8981 +using gagr = Google.Api.Gax.ResourceNames; +using gax = Google.Api.Gax; +using gaxgrpc = Google.Api.Gax.Grpc; +using grpccore = Grpc.Core; +using grpcinter = Grpc.Core.Interceptors; +using mel = Microsoft.Extensions.Logging; +using proto = Google.Protobuf; +using sc = System.Collections; +using scg = System.Collections.Generic; +using sco = System.Collections.ObjectModel; +using st = System.Threading; +using stt = System.Threading.Tasks; +using sys = System; +using wkt = Google.Protobuf.WellKnownTypes; + +namespace Google.Maps.MapManagement.V2Beta +{ + /// Settings for instances. + public sealed partial class MapManagementSettings : gaxgrpc::ServiceSettingsBase + { + /// Get a new instance of the default . + /// A new instance of the default . + public static MapManagementSettings GetDefault() => new MapManagementSettings(); + + /// Constructs a new object with default settings. + public MapManagementSettings() + { + } + + private MapManagementSettings(MapManagementSettings existing) : base(existing) + { + gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); + CreateMapConfigSettings = existing.CreateMapConfigSettings; + GetMapConfigSettings = existing.GetMapConfigSettings; + ListMapConfigsSettings = existing.ListMapConfigsSettings; + UpdateMapConfigSettings = existing.UpdateMapConfigSettings; + DeleteMapConfigSettings = existing.DeleteMapConfigSettings; + CreateStyleConfigSettings = existing.CreateStyleConfigSettings; + GetStyleConfigSettings = existing.GetStyleConfigSettings; + ListStyleConfigsSettings = existing.ListStyleConfigsSettings; + UpdateStyleConfigSettings = existing.UpdateStyleConfigSettings; + DeleteStyleConfigSettings = existing.DeleteStyleConfigSettings; + CreateMapContextConfigSettings = existing.CreateMapContextConfigSettings; + GetMapContextConfigSettings = existing.GetMapContextConfigSettings; + ListMapContextConfigsSettings = existing.ListMapContextConfigsSettings; + UpdateMapContextConfigSettings = existing.UpdateMapContextConfigSettings; + DeleteMapContextConfigSettings = existing.DeleteMapContextConfigSettings; + OnCopy(existing); + } + + partial void OnCopy(MapManagementSettings existing); + + /// + /// for synchronous and asynchronous calls to + /// MapManagementClient.CreateMapConfig and MapManagementClient.CreateMapConfigAsync. + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings CreateMapConfigSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + + /// + /// for synchronous and asynchronous calls to + /// MapManagementClient.GetMapConfig and MapManagementClient.GetMapConfigAsync. + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings GetMapConfigSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + + /// + /// for synchronous and asynchronous calls to + /// MapManagementClient.ListMapConfigs and MapManagementClient.ListMapConfigsAsync. + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings ListMapConfigsSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + + /// + /// for synchronous and asynchronous calls to + /// MapManagementClient.UpdateMapConfig and MapManagementClient.UpdateMapConfigAsync. + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings UpdateMapConfigSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + + /// + /// for synchronous and asynchronous calls to + /// MapManagementClient.DeleteMapConfig and MapManagementClient.DeleteMapConfigAsync. + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings DeleteMapConfigSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + + /// + /// for synchronous and asynchronous calls to + /// MapManagementClient.CreateStyleConfig and MapManagementClient.CreateStyleConfigAsync. + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings CreateStyleConfigSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + + /// + /// for synchronous and asynchronous calls to + /// MapManagementClient.GetStyleConfig and MapManagementClient.GetStyleConfigAsync. + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings GetStyleConfigSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + + /// + /// for synchronous and asynchronous calls to + /// MapManagementClient.ListStyleConfigs and MapManagementClient.ListStyleConfigsAsync. + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings ListStyleConfigsSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + + /// + /// for synchronous and asynchronous calls to + /// MapManagementClient.UpdateStyleConfig and MapManagementClient.UpdateStyleConfigAsync. + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings UpdateStyleConfigSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + + /// + /// for synchronous and asynchronous calls to + /// MapManagementClient.DeleteStyleConfig and MapManagementClient.DeleteStyleConfigAsync. + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings DeleteStyleConfigSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + + /// + /// for synchronous and asynchronous calls to + /// MapManagementClient.CreateMapContextConfig and MapManagementClient.CreateMapContextConfigAsync + /// . + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings CreateMapContextConfigSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + + /// + /// for synchronous and asynchronous calls to + /// MapManagementClient.GetMapContextConfig and MapManagementClient.GetMapContextConfigAsync. + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings GetMapContextConfigSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + + /// + /// for synchronous and asynchronous calls to + /// MapManagementClient.ListMapContextConfigs and MapManagementClient.ListMapContextConfigsAsync. + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings ListMapContextConfigsSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + + /// + /// for synchronous and asynchronous calls to + /// MapManagementClient.UpdateMapContextConfig and MapManagementClient.UpdateMapContextConfigAsync + /// . + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings UpdateMapContextConfigSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + + /// + /// for synchronous and asynchronous calls to + /// MapManagementClient.DeleteMapContextConfig and MapManagementClient.DeleteMapContextConfigAsync + /// . + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings DeleteMapContextConfigSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + + /// Creates a deep clone of this object, with all the same property values. + /// A deep clone of this object. + public MapManagementSettings Clone() => new MapManagementSettings(this); + } + + /// + /// Builder class for to provide simple configuration of credentials, endpoint + /// etc. + /// + public sealed partial class MapManagementClientBuilder : gaxgrpc::ClientBuilderBase + { + /// The settings to use for RPCs, or null for the default settings. + public MapManagementSettings Settings { get; set; } + + /// Creates a new builder with default settings. + public MapManagementClientBuilder() : base(MapManagementClient.ServiceMetadata) + { + } + + partial void InterceptBuild(ref MapManagementClient client); + + partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); + + /// Builds the resulting client. + public override MapManagementClient Build() + { + MapManagementClient client = null; + InterceptBuild(ref client); + return client ?? BuildImpl(); + } + + /// Builds the resulting client asynchronously. + public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) + { + stt::Task task = null; + InterceptBuildAsync(cancellationToken, ref task); + return task ?? BuildAsyncImpl(cancellationToken); + } + + private MapManagementClient BuildImpl() + { + Validate(); + grpccore::CallInvoker callInvoker = CreateCallInvoker(); + return MapManagementClient.Create(callInvoker, GetEffectiveSettings(Settings?.Clone()), Logger); + } + + private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) + { + Validate(); + grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); + return MapManagementClient.Create(callInvoker, GetEffectiveSettings(Settings?.Clone()), Logger); + } + + /// Returns the channel pool to use when no other options are specified. + protected override gaxgrpc::ChannelPool GetChannelPool() => MapManagementClient.ChannelPool; + } + + /// MapManagement client wrapper, for convenient use. + /// + /// The Map Management API uses your inputs to create and manage + /// Google Cloud based styling resources for Google Maps. + /// + /// Using this API, you can can create and manage MapConfigs (Map IDs), + /// StyleConfigs (JSON-based styling), and MapContextConfigs (associations + /// between styles, datasets, and map variants). + /// + /// This API offers features through three channels: + /// * `v2alpha`: Experimental features. + /// * `v2beta`: Preview features, recommended for early adoption. + /// * `v2`: General Availability (GA) features. + /// + /// Capabilities described here are generally available across both the v2alpha + /// and v2beta endpoints. + /// + public abstract partial class MapManagementClient + { + /// + /// The default endpoint for the MapManagement service, which is a host of "mapmanagement.googleapis.com" and a + /// port of 443. + /// + public static string DefaultEndpoint { get; } = "mapmanagement.googleapis.com:443"; + + /// The default MapManagement scopes. + /// + /// The default MapManagement scopes are: + /// + /// https://www.googleapis.com/auth/cloud-platform + /// + /// + public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] + { + "https://www.googleapis.com/auth/cloud-platform", + }); + + /// The service metadata associated with this client type. + public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(MapManagement.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc | gax::ApiTransports.Rest, PackageApiMetadata.ApiMetadata); + + internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); + + /// + /// Asynchronously creates a using the default credentials, endpoint and + /// settings. To specify custom credentials or other settings, use . + /// + /// + /// The to use while creating the client. + /// + /// The task representing the created . + public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => + new MapManagementClientBuilder().BuildAsync(cancellationToken); + + /// + /// Synchronously creates a using the default credentials, endpoint and + /// settings. To specify custom credentials or other settings, use . + /// + /// The created . + public static MapManagementClient Create() => new MapManagementClientBuilder().Build(); + + /// + /// Creates a which uses the specified call invoker for remote operations. + /// + /// + /// The for remote operations. Must not be null. + /// + /// Optional . + /// Optional . + /// The created . + internal static MapManagementClient Create(grpccore::CallInvoker callInvoker, MapManagementSettings settings = null, mel::ILogger logger = null) + { + gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); + grpcinter::Interceptor interceptor = settings?.Interceptor; + if (interceptor != null) + { + callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); + } + MapManagement.MapManagementClient grpcClient = new MapManagement.MapManagementClient(callInvoker); + return new MapManagementClientImpl(grpcClient, settings, logger); + } + + /// + /// Shuts down any channels automatically created by and + /// . Channels which weren't automatically created are not + /// affected. + /// + /// + /// After calling this method, further calls to and + /// will create new channels, which could in turn be shut down + /// by another call to this method. + /// + /// A task representing the asynchronous shutdown operation. + public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); + + /// The underlying gRPC MapManagement client + public virtual MapManagement.MapManagementClient GrpcClient => throw new sys::NotImplementedException(); + + /// + /// Creates a MapConfig in a project. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual MapConfig CreateMapConfig(CreateMapConfigRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Creates a MapConfig in a project. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task CreateMapConfigAsync(CreateMapConfigRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Creates a MapConfig in a project. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task CreateMapConfigAsync(CreateMapConfigRequest request, st::CancellationToken cancellationToken) => + CreateMapConfigAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Creates a MapConfig in a project. + /// + /// + /// Required. Parent project that will own the MapConfig. + /// Format: `projects/{$my-project-id}` + /// + /// + /// Required. The MapConfig to create. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual MapConfig CreateMapConfig(string parent, MapConfig mapConfig, gaxgrpc::CallSettings callSettings = null) => + CreateMapConfig(new CreateMapConfigRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + MapConfig = gax::GaxPreconditions.CheckNotNull(mapConfig, nameof(mapConfig)), + }, callSettings); + + /// + /// Creates a MapConfig in a project. + /// + /// + /// Required. Parent project that will own the MapConfig. + /// Format: `projects/{$my-project-id}` + /// + /// + /// Required. The MapConfig to create. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task CreateMapConfigAsync(string parent, MapConfig mapConfig, gaxgrpc::CallSettings callSettings = null) => + CreateMapConfigAsync(new CreateMapConfigRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + MapConfig = gax::GaxPreconditions.CheckNotNull(mapConfig, nameof(mapConfig)), + }, callSettings); + + /// + /// Creates a MapConfig in a project. + /// + /// + /// Required. Parent project that will own the MapConfig. + /// Format: `projects/{$my-project-id}` + /// + /// + /// Required. The MapConfig to create. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task CreateMapConfigAsync(string parent, MapConfig mapConfig, st::CancellationToken cancellationToken) => + CreateMapConfigAsync(parent, mapConfig, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Creates a MapConfig in a project. + /// + /// + /// Required. Parent project that will own the MapConfig. + /// Format: `projects/{$my-project-id}` + /// + /// + /// Required. The MapConfig to create. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual MapConfig CreateMapConfig(gagr::ProjectName parent, MapConfig mapConfig, gaxgrpc::CallSettings callSettings = null) => + CreateMapConfig(new CreateMapConfigRequest + { + ParentAsProjectName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + MapConfig = gax::GaxPreconditions.CheckNotNull(mapConfig, nameof(mapConfig)), + }, callSettings); + + /// + /// Creates a MapConfig in a project. + /// + /// + /// Required. Parent project that will own the MapConfig. + /// Format: `projects/{$my-project-id}` + /// + /// + /// Required. The MapConfig to create. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task CreateMapConfigAsync(gagr::ProjectName parent, MapConfig mapConfig, gaxgrpc::CallSettings callSettings = null) => + CreateMapConfigAsync(new CreateMapConfigRequest + { + ParentAsProjectName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + MapConfig = gax::GaxPreconditions.CheckNotNull(mapConfig, nameof(mapConfig)), + }, callSettings); + + /// + /// Creates a MapConfig in a project. + /// + /// + /// Required. Parent project that will own the MapConfig. + /// Format: `projects/{$my-project-id}` + /// + /// + /// Required. The MapConfig to create. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task CreateMapConfigAsync(gagr::ProjectName parent, MapConfig mapConfig, st::CancellationToken cancellationToken) => + CreateMapConfigAsync(parent, mapConfig, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets a MapConfig. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual MapConfig GetMapConfig(GetMapConfigRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Gets a MapConfig. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetMapConfigAsync(GetMapConfigRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Gets a MapConfig. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetMapConfigAsync(GetMapConfigRequest request, st::CancellationToken cancellationToken) => + GetMapConfigAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets a MapConfig. + /// + /// + /// Required. Resource name of the MapConfig. + /// Format: `projects/{project}/mapConfigs/{map_config}` + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual MapConfig GetMapConfig(string name, gaxgrpc::CallSettings callSettings = null) => + GetMapConfig(new GetMapConfigRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Gets a MapConfig. + /// + /// + /// Required. Resource name of the MapConfig. + /// Format: `projects/{project}/mapConfigs/{map_config}` + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetMapConfigAsync(string name, gaxgrpc::CallSettings callSettings = null) => + GetMapConfigAsync(new GetMapConfigRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Gets a MapConfig. + /// + /// + /// Required. Resource name of the MapConfig. + /// Format: `projects/{project}/mapConfigs/{map_config}` + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetMapConfigAsync(string name, st::CancellationToken cancellationToken) => + GetMapConfigAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets a MapConfig. + /// + /// + /// Required. Resource name of the MapConfig. + /// Format: `projects/{project}/mapConfigs/{map_config}` + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual MapConfig GetMapConfig(MapConfigName name, gaxgrpc::CallSettings callSettings = null) => + GetMapConfig(new GetMapConfigRequest + { + MapConfigName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Gets a MapConfig. + /// + /// + /// Required. Resource name of the MapConfig. + /// Format: `projects/{project}/mapConfigs/{map_config}` + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetMapConfigAsync(MapConfigName name, gaxgrpc::CallSettings callSettings = null) => + GetMapConfigAsync(new GetMapConfigRequest + { + MapConfigName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Gets a MapConfig. + /// + /// + /// Required. Resource name of the MapConfig. + /// Format: `projects/{project}/mapConfigs/{map_config}` + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetMapConfigAsync(MapConfigName name, st::CancellationToken cancellationToken) => + GetMapConfigAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Lists MapConfigs for a project. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable ListMapConfigs(ListMapConfigsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Lists MapConfigs for a project. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable ListMapConfigsAsync(ListMapConfigsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Lists MapConfigs for a project. + /// + /// + /// Required. Parent project that owns the MapConfigs. + /// Format: `projects/{project}` + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable ListMapConfigs(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListMapConfigsRequest request = new ListMapConfigsRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListMapConfigs(request, callSettings); + } + + /// + /// Lists MapConfigs for a project. + /// + /// + /// Required. Parent project that owns the MapConfigs. + /// Format: `projects/{project}` + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable ListMapConfigsAsync(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListMapConfigsRequest request = new ListMapConfigsRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListMapConfigsAsync(request, callSettings); + } + + /// + /// Lists MapConfigs for a project. + /// + /// + /// Required. Parent project that owns the MapConfigs. + /// Format: `projects/{project}` + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable ListMapConfigs(gagr::ProjectName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListMapConfigsRequest request = new ListMapConfigsRequest + { + ParentAsProjectName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListMapConfigs(request, callSettings); + } + + /// + /// Lists MapConfigs for a project. + /// + /// + /// Required. Parent project that owns the MapConfigs. + /// Format: `projects/{project}` + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable ListMapConfigsAsync(gagr::ProjectName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListMapConfigsRequest request = new ListMapConfigsRequest + { + ParentAsProjectName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListMapConfigsAsync(request, callSettings); + } + + /// + /// Updates a MapConfig. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual MapConfig UpdateMapConfig(UpdateMapConfigRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Updates a MapConfig. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task UpdateMapConfigAsync(UpdateMapConfigRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Updates a MapConfig. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task UpdateMapConfigAsync(UpdateMapConfigRequest request, st::CancellationToken cancellationToken) => + UpdateMapConfigAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Updates a MapConfig. + /// + /// + /// Required. The MapConfig to update. + /// + /// The MapConfig's `name` field is used to identify the MapConfig to update. + /// Format: `projects/{project}/mapConfigs/{map_config}` + /// + /// + /// Optional. The specific field to update for the MapConfig. If not specified, + /// the MapConfig will be updated in its entirety. Valid fields are: + /// + /// * `display_name` + /// * `description` + /// * `map_features` + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual MapConfig UpdateMapConfig(MapConfig mapConfig, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) => + UpdateMapConfig(new UpdateMapConfigRequest + { + MapConfig = gax::GaxPreconditions.CheckNotNull(mapConfig, nameof(mapConfig)), + UpdateMask = updateMask, + }, callSettings); + + /// + /// Updates a MapConfig. + /// + /// + /// Required. The MapConfig to update. + /// + /// The MapConfig's `name` field is used to identify the MapConfig to update. + /// Format: `projects/{project}/mapConfigs/{map_config}` + /// + /// + /// Optional. The specific field to update for the MapConfig. If not specified, + /// the MapConfig will be updated in its entirety. Valid fields are: + /// + /// * `display_name` + /// * `description` + /// * `map_features` + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task UpdateMapConfigAsync(MapConfig mapConfig, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) => + UpdateMapConfigAsync(new UpdateMapConfigRequest + { + MapConfig = gax::GaxPreconditions.CheckNotNull(mapConfig, nameof(mapConfig)), + UpdateMask = updateMask, + }, callSettings); + + /// + /// Updates a MapConfig. + /// + /// + /// Required. The MapConfig to update. + /// + /// The MapConfig's `name` field is used to identify the MapConfig to update. + /// Format: `projects/{project}/mapConfigs/{map_config}` + /// + /// + /// Optional. The specific field to update for the MapConfig. If not specified, + /// the MapConfig will be updated in its entirety. Valid fields are: + /// + /// * `display_name` + /// * `description` + /// * `map_features` + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task UpdateMapConfigAsync(MapConfig mapConfig, wkt::FieldMask updateMask, st::CancellationToken cancellationToken) => + UpdateMapConfigAsync(mapConfig, updateMask, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Deletes a MapConfig. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual void DeleteMapConfig(DeleteMapConfigRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Deletes a MapConfig. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task DeleteMapConfigAsync(DeleteMapConfigRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Deletes a MapConfig. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task DeleteMapConfigAsync(DeleteMapConfigRequest request, st::CancellationToken cancellationToken) => + DeleteMapConfigAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Deletes a MapConfig. + /// + /// + /// Required. Resource name of the MapConfig to delete. + /// Format: `projects/{project}/mapConfigs/{map_config}` + /// + /// + /// Optional. If set to true, any MapContextConfigs from this MapConfig will + /// also be deleted. (Otherwise, the request will only work if the MapConfig + /// has no MapContextConfigs.) + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual void DeleteMapConfig(string name, bool force, gaxgrpc::CallSettings callSettings = null) => + DeleteMapConfig(new DeleteMapConfigRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + Force = force, + }, callSettings); + + /// + /// Deletes a MapConfig. + /// + /// + /// Required. Resource name of the MapConfig to delete. + /// Format: `projects/{project}/mapConfigs/{map_config}` + /// + /// + /// Optional. If set to true, any MapContextConfigs from this MapConfig will + /// also be deleted. (Otherwise, the request will only work if the MapConfig + /// has no MapContextConfigs.) + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task DeleteMapConfigAsync(string name, bool force, gaxgrpc::CallSettings callSettings = null) => + DeleteMapConfigAsync(new DeleteMapConfigRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + Force = force, + }, callSettings); + + /// + /// Deletes a MapConfig. + /// + /// + /// Required. Resource name of the MapConfig to delete. + /// Format: `projects/{project}/mapConfigs/{map_config}` + /// + /// + /// Optional. If set to true, any MapContextConfigs from this MapConfig will + /// also be deleted. (Otherwise, the request will only work if the MapConfig + /// has no MapContextConfigs.) + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task DeleteMapConfigAsync(string name, bool force, st::CancellationToken cancellationToken) => + DeleteMapConfigAsync(name, force, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Deletes a MapConfig. + /// + /// + /// Required. Resource name of the MapConfig to delete. + /// Format: `projects/{project}/mapConfigs/{map_config}` + /// + /// + /// Optional. If set to true, any MapContextConfigs from this MapConfig will + /// also be deleted. (Otherwise, the request will only work if the MapConfig + /// has no MapContextConfigs.) + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual void DeleteMapConfig(MapConfigName name, bool force, gaxgrpc::CallSettings callSettings = null) => + DeleteMapConfig(new DeleteMapConfigRequest + { + MapConfigName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + Force = force, + }, callSettings); + + /// + /// Deletes a MapConfig. + /// + /// + /// Required. Resource name of the MapConfig to delete. + /// Format: `projects/{project}/mapConfigs/{map_config}` + /// + /// + /// Optional. If set to true, any MapContextConfigs from this MapConfig will + /// also be deleted. (Otherwise, the request will only work if the MapConfig + /// has no MapContextConfigs.) + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task DeleteMapConfigAsync(MapConfigName name, bool force, gaxgrpc::CallSettings callSettings = null) => + DeleteMapConfigAsync(new DeleteMapConfigRequest + { + MapConfigName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + Force = force, + }, callSettings); + + /// + /// Deletes a MapConfig. + /// + /// + /// Required. Resource name of the MapConfig to delete. + /// Format: `projects/{project}/mapConfigs/{map_config}` + /// + /// + /// Optional. If set to true, any MapContextConfigs from this MapConfig will + /// also be deleted. (Otherwise, the request will only work if the MapConfig + /// has no MapContextConfigs.) + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task DeleteMapConfigAsync(MapConfigName name, bool force, st::CancellationToken cancellationToken) => + DeleteMapConfigAsync(name, force, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Creates a StyleConfig. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual StyleConfig CreateStyleConfig(CreateStyleConfigRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Creates a StyleConfig. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task CreateStyleConfigAsync(CreateStyleConfigRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Creates a StyleConfig. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task CreateStyleConfigAsync(CreateStyleConfigRequest request, st::CancellationToken cancellationToken) => + CreateStyleConfigAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Creates a StyleConfig. + /// + /// + /// Required. Parent project that will own the StyleConfig. + /// Format: `projects/{project}` + /// + /// + /// Required. The StyleConfig to create. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual StyleConfig CreateStyleConfig(string parent, StyleConfig styleConfig, gaxgrpc::CallSettings callSettings = null) => + CreateStyleConfig(new CreateStyleConfigRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + StyleConfig = gax::GaxPreconditions.CheckNotNull(styleConfig, nameof(styleConfig)), + }, callSettings); + + /// + /// Creates a StyleConfig. + /// + /// + /// Required. Parent project that will own the StyleConfig. + /// Format: `projects/{project}` + /// + /// + /// Required. The StyleConfig to create. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task CreateStyleConfigAsync(string parent, StyleConfig styleConfig, gaxgrpc::CallSettings callSettings = null) => + CreateStyleConfigAsync(new CreateStyleConfigRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + StyleConfig = gax::GaxPreconditions.CheckNotNull(styleConfig, nameof(styleConfig)), + }, callSettings); + + /// + /// Creates a StyleConfig. + /// + /// + /// Required. Parent project that will own the StyleConfig. + /// Format: `projects/{project}` + /// + /// + /// Required. The StyleConfig to create. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task CreateStyleConfigAsync(string parent, StyleConfig styleConfig, st::CancellationToken cancellationToken) => + CreateStyleConfigAsync(parent, styleConfig, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Creates a StyleConfig. + /// + /// + /// Required. Parent project that will own the StyleConfig. + /// Format: `projects/{project}` + /// + /// + /// Required. The StyleConfig to create. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual StyleConfig CreateStyleConfig(gagr::ProjectName parent, StyleConfig styleConfig, gaxgrpc::CallSettings callSettings = null) => + CreateStyleConfig(new CreateStyleConfigRequest + { + ParentAsProjectName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + StyleConfig = gax::GaxPreconditions.CheckNotNull(styleConfig, nameof(styleConfig)), + }, callSettings); + + /// + /// Creates a StyleConfig. + /// + /// + /// Required. Parent project that will own the StyleConfig. + /// Format: `projects/{project}` + /// + /// + /// Required. The StyleConfig to create. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task CreateStyleConfigAsync(gagr::ProjectName parent, StyleConfig styleConfig, gaxgrpc::CallSettings callSettings = null) => + CreateStyleConfigAsync(new CreateStyleConfigRequest + { + ParentAsProjectName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + StyleConfig = gax::GaxPreconditions.CheckNotNull(styleConfig, nameof(styleConfig)), + }, callSettings); + + /// + /// Creates a StyleConfig. + /// + /// + /// Required. Parent project that will own the StyleConfig. + /// Format: `projects/{project}` + /// + /// + /// Required. The StyleConfig to create. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task CreateStyleConfigAsync(gagr::ProjectName parent, StyleConfig styleConfig, st::CancellationToken cancellationToken) => + CreateStyleConfigAsync(parent, styleConfig, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets a StyleConfig. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual StyleConfig GetStyleConfig(GetStyleConfigRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Gets a StyleConfig. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetStyleConfigAsync(GetStyleConfigRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Gets a StyleConfig. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetStyleConfigAsync(GetStyleConfigRequest request, st::CancellationToken cancellationToken) => + GetStyleConfigAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets a StyleConfig. + /// + /// + /// Required. Resource name of the StyleConfig. + /// Format: `projects/{project}/styleConfigs/{style_config}` + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual StyleConfig GetStyleConfig(string name, gaxgrpc::CallSettings callSettings = null) => + GetStyleConfig(new GetStyleConfigRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Gets a StyleConfig. + /// + /// + /// Required. Resource name of the StyleConfig. + /// Format: `projects/{project}/styleConfigs/{style_config}` + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetStyleConfigAsync(string name, gaxgrpc::CallSettings callSettings = null) => + GetStyleConfigAsync(new GetStyleConfigRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Gets a StyleConfig. + /// + /// + /// Required. Resource name of the StyleConfig. + /// Format: `projects/{project}/styleConfigs/{style_config}` + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetStyleConfigAsync(string name, st::CancellationToken cancellationToken) => + GetStyleConfigAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets a StyleConfig. + /// + /// + /// Required. Resource name of the StyleConfig. + /// Format: `projects/{project}/styleConfigs/{style_config}` + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual StyleConfig GetStyleConfig(StyleConfigName name, gaxgrpc::CallSettings callSettings = null) => + GetStyleConfig(new GetStyleConfigRequest + { + StyleConfigName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Gets a StyleConfig. + /// + /// + /// Required. Resource name of the StyleConfig. + /// Format: `projects/{project}/styleConfigs/{style_config}` + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetStyleConfigAsync(StyleConfigName name, gaxgrpc::CallSettings callSettings = null) => + GetStyleConfigAsync(new GetStyleConfigRequest + { + StyleConfigName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Gets a StyleConfig. + /// + /// + /// Required. Resource name of the StyleConfig. + /// Format: `projects/{project}/styleConfigs/{style_config}` + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetStyleConfigAsync(StyleConfigName name, st::CancellationToken cancellationToken) => + GetStyleConfigAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Lists StyleConfigs. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable ListStyleConfigs(ListStyleConfigsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Lists StyleConfigs. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable ListStyleConfigsAsync(ListStyleConfigsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Lists StyleConfigs. + /// + /// + /// Required. Parent project that owns the StyleConfigs. + /// Format: `projects/{project}` + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable ListStyleConfigs(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListStyleConfigsRequest request = new ListStyleConfigsRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListStyleConfigs(request, callSettings); + } + + /// + /// Lists StyleConfigs. + /// + /// + /// Required. Parent project that owns the StyleConfigs. + /// Format: `projects/{project}` + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable ListStyleConfigsAsync(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListStyleConfigsRequest request = new ListStyleConfigsRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListStyleConfigsAsync(request, callSettings); + } + + /// + /// Lists StyleConfigs. + /// + /// + /// Required. Parent project that owns the StyleConfigs. + /// Format: `projects/{project}` + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable ListStyleConfigs(gagr::ProjectName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListStyleConfigsRequest request = new ListStyleConfigsRequest + { + ParentAsProjectName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListStyleConfigs(request, callSettings); + } + + /// + /// Lists StyleConfigs. + /// + /// + /// Required. Parent project that owns the StyleConfigs. + /// Format: `projects/{project}` + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable ListStyleConfigsAsync(gagr::ProjectName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListStyleConfigsRequest request = new ListStyleConfigsRequest + { + ParentAsProjectName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListStyleConfigsAsync(request, callSettings); + } + + /// + /// Updates a StyleConfig. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual StyleConfig UpdateStyleConfig(UpdateStyleConfigRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Updates a StyleConfig. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task UpdateStyleConfigAsync(UpdateStyleConfigRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Updates a StyleConfig. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task UpdateStyleConfigAsync(UpdateStyleConfigRequest request, st::CancellationToken cancellationToken) => + UpdateStyleConfigAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Updates a StyleConfig. + /// + /// + /// Required. The StyleConfig to update. + /// + /// The StyleConfig's `name` field is used to identify the StyleConfig to + /// update. Format: `projects/{project}/styleConfigs/{style_config}` + /// + /// + /// Optional. The list of fields to update. If not specified, the StyleConfig + /// will be updated in its entirety. Valid fields are: + /// + /// * `display_name` + /// * `description` + /// * `json_style_sheet` + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual StyleConfig UpdateStyleConfig(StyleConfig styleConfig, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) => + UpdateStyleConfig(new UpdateStyleConfigRequest + { + StyleConfig = gax::GaxPreconditions.CheckNotNull(styleConfig, nameof(styleConfig)), + UpdateMask = updateMask, + }, callSettings); + + /// + /// Updates a StyleConfig. + /// + /// + /// Required. The StyleConfig to update. + /// + /// The StyleConfig's `name` field is used to identify the StyleConfig to + /// update. Format: `projects/{project}/styleConfigs/{style_config}` + /// + /// + /// Optional. The list of fields to update. If not specified, the StyleConfig + /// will be updated in its entirety. Valid fields are: + /// + /// * `display_name` + /// * `description` + /// * `json_style_sheet` + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task UpdateStyleConfigAsync(StyleConfig styleConfig, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) => + UpdateStyleConfigAsync(new UpdateStyleConfigRequest + { + StyleConfig = gax::GaxPreconditions.CheckNotNull(styleConfig, nameof(styleConfig)), + UpdateMask = updateMask, + }, callSettings); + + /// + /// Updates a StyleConfig. + /// + /// + /// Required. The StyleConfig to update. + /// + /// The StyleConfig's `name` field is used to identify the StyleConfig to + /// update. Format: `projects/{project}/styleConfigs/{style_config}` + /// + /// + /// Optional. The list of fields to update. If not specified, the StyleConfig + /// will be updated in its entirety. Valid fields are: + /// + /// * `display_name` + /// * `description` + /// * `json_style_sheet` + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task UpdateStyleConfigAsync(StyleConfig styleConfig, wkt::FieldMask updateMask, st::CancellationToken cancellationToken) => + UpdateStyleConfigAsync(styleConfig, updateMask, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Deletes a StyleConfig. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual void DeleteStyleConfig(DeleteStyleConfigRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Deletes a StyleConfig. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task DeleteStyleConfigAsync(DeleteStyleConfigRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Deletes a StyleConfig. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task DeleteStyleConfigAsync(DeleteStyleConfigRequest request, st::CancellationToken cancellationToken) => + DeleteStyleConfigAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Deletes a StyleConfig. + /// + /// + /// Required. Resource name of the StyleConfig to delete. + /// Format: `projects/{project}/styleConfigs/{style_config}` + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual void DeleteStyleConfig(string name, gaxgrpc::CallSettings callSettings = null) => + DeleteStyleConfig(new DeleteStyleConfigRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Deletes a StyleConfig. + /// + /// + /// Required. Resource name of the StyleConfig to delete. + /// Format: `projects/{project}/styleConfigs/{style_config}` + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task DeleteStyleConfigAsync(string name, gaxgrpc::CallSettings callSettings = null) => + DeleteStyleConfigAsync(new DeleteStyleConfigRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Deletes a StyleConfig. + /// + /// + /// Required. Resource name of the StyleConfig to delete. + /// Format: `projects/{project}/styleConfigs/{style_config}` + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task DeleteStyleConfigAsync(string name, st::CancellationToken cancellationToken) => + DeleteStyleConfigAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Deletes a StyleConfig. + /// + /// + /// Required. Resource name of the StyleConfig to delete. + /// Format: `projects/{project}/styleConfigs/{style_config}` + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual void DeleteStyleConfig(StyleConfigName name, gaxgrpc::CallSettings callSettings = null) => + DeleteStyleConfig(new DeleteStyleConfigRequest + { + StyleConfigName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Deletes a StyleConfig. + /// + /// + /// Required. Resource name of the StyleConfig to delete. + /// Format: `projects/{project}/styleConfigs/{style_config}` + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task DeleteStyleConfigAsync(StyleConfigName name, gaxgrpc::CallSettings callSettings = null) => + DeleteStyleConfigAsync(new DeleteStyleConfigRequest + { + StyleConfigName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Deletes a StyleConfig. + /// + /// + /// Required. Resource name of the StyleConfig to delete. + /// Format: `projects/{project}/styleConfigs/{style_config}` + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task DeleteStyleConfigAsync(StyleConfigName name, st::CancellationToken cancellationToken) => + DeleteStyleConfigAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Creates a MapContextConfig. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual MapContextConfig CreateMapContextConfig(CreateMapContextConfigRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Creates a MapContextConfig. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task CreateMapContextConfigAsync(CreateMapContextConfigRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Creates a MapContextConfig. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task CreateMapContextConfigAsync(CreateMapContextConfigRequest request, st::CancellationToken cancellationToken) => + CreateMapContextConfigAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Creates a MapContextConfig. + /// + /// + /// Required. Parent MapConfig that will own the MapContextConfig. + /// Format: `projects/{project}/mapConfigs/{map_config}` + /// + /// + /// Required. The MapContextConfig to create. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual MapContextConfig CreateMapContextConfig(string parent, MapContextConfig mapContextConfig, gaxgrpc::CallSettings callSettings = null) => + CreateMapContextConfig(new CreateMapContextConfigRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + MapContextConfig = gax::GaxPreconditions.CheckNotNull(mapContextConfig, nameof(mapContextConfig)), + }, callSettings); + + /// + /// Creates a MapContextConfig. + /// + /// + /// Required. Parent MapConfig that will own the MapContextConfig. + /// Format: `projects/{project}/mapConfigs/{map_config}` + /// + /// + /// Required. The MapContextConfig to create. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task CreateMapContextConfigAsync(string parent, MapContextConfig mapContextConfig, gaxgrpc::CallSettings callSettings = null) => + CreateMapContextConfigAsync(new CreateMapContextConfigRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + MapContextConfig = gax::GaxPreconditions.CheckNotNull(mapContextConfig, nameof(mapContextConfig)), + }, callSettings); + + /// + /// Creates a MapContextConfig. + /// + /// + /// Required. Parent MapConfig that will own the MapContextConfig. + /// Format: `projects/{project}/mapConfigs/{map_config}` + /// + /// + /// Required. The MapContextConfig to create. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task CreateMapContextConfigAsync(string parent, MapContextConfig mapContextConfig, st::CancellationToken cancellationToken) => + CreateMapContextConfigAsync(parent, mapContextConfig, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Creates a MapContextConfig. + /// + /// + /// Required. Parent MapConfig that will own the MapContextConfig. + /// Format: `projects/{project}/mapConfigs/{map_config}` + /// + /// + /// Required. The MapContextConfig to create. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual MapContextConfig CreateMapContextConfig(MapConfigName parent, MapContextConfig mapContextConfig, gaxgrpc::CallSettings callSettings = null) => + CreateMapContextConfig(new CreateMapContextConfigRequest + { + ParentAsMapConfigName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + MapContextConfig = gax::GaxPreconditions.CheckNotNull(mapContextConfig, nameof(mapContextConfig)), + }, callSettings); + + /// + /// Creates a MapContextConfig. + /// + /// + /// Required. Parent MapConfig that will own the MapContextConfig. + /// Format: `projects/{project}/mapConfigs/{map_config}` + /// + /// + /// Required. The MapContextConfig to create. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task CreateMapContextConfigAsync(MapConfigName parent, MapContextConfig mapContextConfig, gaxgrpc::CallSettings callSettings = null) => + CreateMapContextConfigAsync(new CreateMapContextConfigRequest + { + ParentAsMapConfigName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + MapContextConfig = gax::GaxPreconditions.CheckNotNull(mapContextConfig, nameof(mapContextConfig)), + }, callSettings); + + /// + /// Creates a MapContextConfig. + /// + /// + /// Required. Parent MapConfig that will own the MapContextConfig. + /// Format: `projects/{project}/mapConfigs/{map_config}` + /// + /// + /// Required. The MapContextConfig to create. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task CreateMapContextConfigAsync(MapConfigName parent, MapContextConfig mapContextConfig, st::CancellationToken cancellationToken) => + CreateMapContextConfigAsync(parent, mapContextConfig, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets a MapContextConfig. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual MapContextConfig GetMapContextConfig(GetMapContextConfigRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Gets a MapContextConfig. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetMapContextConfigAsync(GetMapContextConfigRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Gets a MapContextConfig. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetMapContextConfigAsync(GetMapContextConfigRequest request, st::CancellationToken cancellationToken) => + GetMapContextConfigAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets a MapContextConfig. + /// + /// + /// Required. Resource name of the MapContextConfig. + /// Format: + /// `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}` + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual MapContextConfig GetMapContextConfig(string name, gaxgrpc::CallSettings callSettings = null) => + GetMapContextConfig(new GetMapContextConfigRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Gets a MapContextConfig. + /// + /// + /// Required. Resource name of the MapContextConfig. + /// Format: + /// `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}` + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetMapContextConfigAsync(string name, gaxgrpc::CallSettings callSettings = null) => + GetMapContextConfigAsync(new GetMapContextConfigRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Gets a MapContextConfig. + /// + /// + /// Required. Resource name of the MapContextConfig. + /// Format: + /// `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}` + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetMapContextConfigAsync(string name, st::CancellationToken cancellationToken) => + GetMapContextConfigAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets a MapContextConfig. + /// + /// + /// Required. Resource name of the MapContextConfig. + /// Format: + /// `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}` + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual MapContextConfig GetMapContextConfig(MapContextConfigName name, gaxgrpc::CallSettings callSettings = null) => + GetMapContextConfig(new GetMapContextConfigRequest + { + MapContextConfigName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Gets a MapContextConfig. + /// + /// + /// Required. Resource name of the MapContextConfig. + /// Format: + /// `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}` + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetMapContextConfigAsync(MapContextConfigName name, gaxgrpc::CallSettings callSettings = null) => + GetMapContextConfigAsync(new GetMapContextConfigRequest + { + MapContextConfigName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Gets a MapContextConfig. + /// + /// + /// Required. Resource name of the MapContextConfig. + /// Format: + /// `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}` + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetMapContextConfigAsync(MapContextConfigName name, st::CancellationToken cancellationToken) => + GetMapContextConfigAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Lists MapContextConfigs. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable ListMapContextConfigs(ListMapContextConfigsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Lists MapContextConfigs. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable ListMapContextConfigsAsync(ListMapContextConfigsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Lists MapContextConfigs. + /// + /// + /// Required. Parent MapConfig that owns the MapContextConfigs. + /// Format: `projects/{project}/mapConfigs/{map_config}` + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable ListMapContextConfigs(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListMapContextConfigsRequest request = new ListMapContextConfigsRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListMapContextConfigs(request, callSettings); + } + + /// + /// Lists MapContextConfigs. + /// + /// + /// Required. Parent MapConfig that owns the MapContextConfigs. + /// Format: `projects/{project}/mapConfigs/{map_config}` + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable ListMapContextConfigsAsync(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListMapContextConfigsRequest request = new ListMapContextConfigsRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListMapContextConfigsAsync(request, callSettings); + } + + /// + /// Lists MapContextConfigs. + /// + /// + /// Required. Parent MapConfig that owns the MapContextConfigs. + /// Format: `projects/{project}/mapConfigs/{map_config}` + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable ListMapContextConfigs(MapConfigName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListMapContextConfigsRequest request = new ListMapContextConfigsRequest + { + ParentAsMapConfigName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListMapContextConfigs(request, callSettings); + } + + /// + /// Lists MapContextConfigs. + /// + /// + /// Required. Parent MapConfig that owns the MapContextConfigs. + /// Format: `projects/{project}/mapConfigs/{map_config}` + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable ListMapContextConfigsAsync(MapConfigName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListMapContextConfigsRequest request = new ListMapContextConfigsRequest + { + ParentAsMapConfigName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListMapContextConfigsAsync(request, callSettings); + } + + /// + /// Updates a MapContextConfig. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual MapContextConfig UpdateMapContextConfig(UpdateMapContextConfigRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Updates a MapContextConfig. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task UpdateMapContextConfigAsync(UpdateMapContextConfigRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Updates a MapContextConfig. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task UpdateMapContextConfigAsync(UpdateMapContextConfigRequest request, st::CancellationToken cancellationToken) => + UpdateMapContextConfigAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Updates a MapContextConfig. + /// + /// + /// Required. The MapContextConfig to update. + /// + /// The MapContextConfig's `name` field is used to identify the + /// MapContextConfig to update. Format: + /// `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}` + /// + /// + /// Optional. The list of fields to update. If not specified, the + /// MapContextConfig will be updated in its entirety. Valid fields are: + /// + /// * `display_name` + /// * `alias` + /// * `map_variants` + /// * `style_config` + /// * `dataset` + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual MapContextConfig UpdateMapContextConfig(MapContextConfig mapContextConfig, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) => + UpdateMapContextConfig(new UpdateMapContextConfigRequest + { + MapContextConfig = gax::GaxPreconditions.CheckNotNull(mapContextConfig, nameof(mapContextConfig)), + UpdateMask = updateMask, + }, callSettings); + + /// + /// Updates a MapContextConfig. + /// + /// + /// Required. The MapContextConfig to update. + /// + /// The MapContextConfig's `name` field is used to identify the + /// MapContextConfig to update. Format: + /// `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}` + /// + /// + /// Optional. The list of fields to update. If not specified, the + /// MapContextConfig will be updated in its entirety. Valid fields are: + /// + /// * `display_name` + /// * `alias` + /// * `map_variants` + /// * `style_config` + /// * `dataset` + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task UpdateMapContextConfigAsync(MapContextConfig mapContextConfig, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) => + UpdateMapContextConfigAsync(new UpdateMapContextConfigRequest + { + MapContextConfig = gax::GaxPreconditions.CheckNotNull(mapContextConfig, nameof(mapContextConfig)), + UpdateMask = updateMask, + }, callSettings); + + /// + /// Updates a MapContextConfig. + /// + /// + /// Required. The MapContextConfig to update. + /// + /// The MapContextConfig's `name` field is used to identify the + /// MapContextConfig to update. Format: + /// `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}` + /// + /// + /// Optional. The list of fields to update. If not specified, the + /// MapContextConfig will be updated in its entirety. Valid fields are: + /// + /// * `display_name` + /// * `alias` + /// * `map_variants` + /// * `style_config` + /// * `dataset` + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task UpdateMapContextConfigAsync(MapContextConfig mapContextConfig, wkt::FieldMask updateMask, st::CancellationToken cancellationToken) => + UpdateMapContextConfigAsync(mapContextConfig, updateMask, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Deletes a MapContextConfig. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual void DeleteMapContextConfig(DeleteMapContextConfigRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Deletes a MapContextConfig. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task DeleteMapContextConfigAsync(DeleteMapContextConfigRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Deletes a MapContextConfig. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task DeleteMapContextConfigAsync(DeleteMapContextConfigRequest request, st::CancellationToken cancellationToken) => + DeleteMapContextConfigAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Deletes a MapContextConfig. + /// + /// + /// Required. Resource name of the MapContextConfig to delete. + /// Format: + /// `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}` + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual void DeleteMapContextConfig(string name, gaxgrpc::CallSettings callSettings = null) => + DeleteMapContextConfig(new DeleteMapContextConfigRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Deletes a MapContextConfig. + /// + /// + /// Required. Resource name of the MapContextConfig to delete. + /// Format: + /// `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}` + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task DeleteMapContextConfigAsync(string name, gaxgrpc::CallSettings callSettings = null) => + DeleteMapContextConfigAsync(new DeleteMapContextConfigRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Deletes a MapContextConfig. + /// + /// + /// Required. Resource name of the MapContextConfig to delete. + /// Format: + /// `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}` + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task DeleteMapContextConfigAsync(string name, st::CancellationToken cancellationToken) => + DeleteMapContextConfigAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Deletes a MapContextConfig. + /// + /// + /// Required. Resource name of the MapContextConfig to delete. + /// Format: + /// `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}` + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual void DeleteMapContextConfig(MapContextConfigName name, gaxgrpc::CallSettings callSettings = null) => + DeleteMapContextConfig(new DeleteMapContextConfigRequest + { + MapContextConfigName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Deletes a MapContextConfig. + /// + /// + /// Required. Resource name of the MapContextConfig to delete. + /// Format: + /// `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}` + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task DeleteMapContextConfigAsync(MapContextConfigName name, gaxgrpc::CallSettings callSettings = null) => + DeleteMapContextConfigAsync(new DeleteMapContextConfigRequest + { + MapContextConfigName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Deletes a MapContextConfig. + /// + /// + /// Required. Resource name of the MapContextConfig to delete. + /// Format: + /// `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}` + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task DeleteMapContextConfigAsync(MapContextConfigName name, st::CancellationToken cancellationToken) => + DeleteMapContextConfigAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + } + + /// MapManagement client wrapper implementation, for convenient use. + /// + /// The Map Management API uses your inputs to create and manage + /// Google Cloud based styling resources for Google Maps. + /// + /// Using this API, you can can create and manage MapConfigs (Map IDs), + /// StyleConfigs (JSON-based styling), and MapContextConfigs (associations + /// between styles, datasets, and map variants). + /// + /// This API offers features through three channels: + /// * `v2alpha`: Experimental features. + /// * `v2beta`: Preview features, recommended for early adoption. + /// * `v2`: General Availability (GA) features. + /// + /// Capabilities described here are generally available across both the v2alpha + /// and v2beta endpoints. + /// + public sealed partial class MapManagementClientImpl : MapManagementClient + { + private readonly gaxgrpc::ApiCall _callCreateMapConfig; + + private readonly gaxgrpc::ApiCall _callGetMapConfig; + + private readonly gaxgrpc::ApiCall _callListMapConfigs; + + private readonly gaxgrpc::ApiCall _callUpdateMapConfig; + + private readonly gaxgrpc::ApiCall _callDeleteMapConfig; + + private readonly gaxgrpc::ApiCall _callCreateStyleConfig; + + private readonly gaxgrpc::ApiCall _callGetStyleConfig; + + private readonly gaxgrpc::ApiCall _callListStyleConfigs; + + private readonly gaxgrpc::ApiCall _callUpdateStyleConfig; + + private readonly gaxgrpc::ApiCall _callDeleteStyleConfig; + + private readonly gaxgrpc::ApiCall _callCreateMapContextConfig; + + private readonly gaxgrpc::ApiCall _callGetMapContextConfig; + + private readonly gaxgrpc::ApiCall _callListMapContextConfigs; + + private readonly gaxgrpc::ApiCall _callUpdateMapContextConfig; + + private readonly gaxgrpc::ApiCall _callDeleteMapContextConfig; + + /// + /// Constructs a client wrapper for the MapManagement service, with the specified gRPC client and settings. + /// + /// The underlying gRPC client. + /// The base used within this client. + /// Optional to use within this client. + public MapManagementClientImpl(MapManagement.MapManagementClient grpcClient, MapManagementSettings settings, mel::ILogger logger) + { + GrpcClient = grpcClient; + MapManagementSettings effectiveSettings = settings ?? MapManagementSettings.GetDefault(); + gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(new gaxgrpc::ClientHelper.Options + { + Settings = effectiveSettings, + Logger = logger, + }); + _callCreateMapConfig = clientHelper.BuildApiCall("CreateMapConfig", grpcClient.CreateMapConfigAsync, grpcClient.CreateMapConfig, effectiveSettings.CreateMapConfigSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callCreateMapConfig); + Modify_CreateMapConfigApiCall(ref _callCreateMapConfig); + _callGetMapConfig = clientHelper.BuildApiCall("GetMapConfig", grpcClient.GetMapConfigAsync, grpcClient.GetMapConfig, effectiveSettings.GetMapConfigSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callGetMapConfig); + Modify_GetMapConfigApiCall(ref _callGetMapConfig); + _callListMapConfigs = clientHelper.BuildApiCall("ListMapConfigs", grpcClient.ListMapConfigsAsync, grpcClient.ListMapConfigs, effectiveSettings.ListMapConfigsSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callListMapConfigs); + Modify_ListMapConfigsApiCall(ref _callListMapConfigs); + _callUpdateMapConfig = clientHelper.BuildApiCall("UpdateMapConfig", grpcClient.UpdateMapConfigAsync, grpcClient.UpdateMapConfig, effectiveSettings.UpdateMapConfigSettings).WithGoogleRequestParam("map_config.name", request => request.MapConfig?.Name); + Modify_ApiCall(ref _callUpdateMapConfig); + Modify_UpdateMapConfigApiCall(ref _callUpdateMapConfig); + _callDeleteMapConfig = clientHelper.BuildApiCall("DeleteMapConfig", grpcClient.DeleteMapConfigAsync, grpcClient.DeleteMapConfig, effectiveSettings.DeleteMapConfigSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callDeleteMapConfig); + Modify_DeleteMapConfigApiCall(ref _callDeleteMapConfig); + _callCreateStyleConfig = clientHelper.BuildApiCall("CreateStyleConfig", grpcClient.CreateStyleConfigAsync, grpcClient.CreateStyleConfig, effectiveSettings.CreateStyleConfigSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callCreateStyleConfig); + Modify_CreateStyleConfigApiCall(ref _callCreateStyleConfig); + _callGetStyleConfig = clientHelper.BuildApiCall("GetStyleConfig", grpcClient.GetStyleConfigAsync, grpcClient.GetStyleConfig, effectiveSettings.GetStyleConfigSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callGetStyleConfig); + Modify_GetStyleConfigApiCall(ref _callGetStyleConfig); + _callListStyleConfigs = clientHelper.BuildApiCall("ListStyleConfigs", grpcClient.ListStyleConfigsAsync, grpcClient.ListStyleConfigs, effectiveSettings.ListStyleConfigsSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callListStyleConfigs); + Modify_ListStyleConfigsApiCall(ref _callListStyleConfigs); + _callUpdateStyleConfig = clientHelper.BuildApiCall("UpdateStyleConfig", grpcClient.UpdateStyleConfigAsync, grpcClient.UpdateStyleConfig, effectiveSettings.UpdateStyleConfigSettings).WithGoogleRequestParam("style_config.name", request => request.StyleConfig?.Name); + Modify_ApiCall(ref _callUpdateStyleConfig); + Modify_UpdateStyleConfigApiCall(ref _callUpdateStyleConfig); + _callDeleteStyleConfig = clientHelper.BuildApiCall("DeleteStyleConfig", grpcClient.DeleteStyleConfigAsync, grpcClient.DeleteStyleConfig, effectiveSettings.DeleteStyleConfigSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callDeleteStyleConfig); + Modify_DeleteStyleConfigApiCall(ref _callDeleteStyleConfig); + _callCreateMapContextConfig = clientHelper.BuildApiCall("CreateMapContextConfig", grpcClient.CreateMapContextConfigAsync, grpcClient.CreateMapContextConfig, effectiveSettings.CreateMapContextConfigSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callCreateMapContextConfig); + Modify_CreateMapContextConfigApiCall(ref _callCreateMapContextConfig); + _callGetMapContextConfig = clientHelper.BuildApiCall("GetMapContextConfig", grpcClient.GetMapContextConfigAsync, grpcClient.GetMapContextConfig, effectiveSettings.GetMapContextConfigSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callGetMapContextConfig); + Modify_GetMapContextConfigApiCall(ref _callGetMapContextConfig); + _callListMapContextConfigs = clientHelper.BuildApiCall("ListMapContextConfigs", grpcClient.ListMapContextConfigsAsync, grpcClient.ListMapContextConfigs, effectiveSettings.ListMapContextConfigsSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callListMapContextConfigs); + Modify_ListMapContextConfigsApiCall(ref _callListMapContextConfigs); + _callUpdateMapContextConfig = clientHelper.BuildApiCall("UpdateMapContextConfig", grpcClient.UpdateMapContextConfigAsync, grpcClient.UpdateMapContextConfig, effectiveSettings.UpdateMapContextConfigSettings).WithGoogleRequestParam("map_context_config.name", request => request.MapContextConfig?.Name); + Modify_ApiCall(ref _callUpdateMapContextConfig); + Modify_UpdateMapContextConfigApiCall(ref _callUpdateMapContextConfig); + _callDeleteMapContextConfig = clientHelper.BuildApiCall("DeleteMapContextConfig", grpcClient.DeleteMapContextConfigAsync, grpcClient.DeleteMapContextConfig, effectiveSettings.DeleteMapContextConfigSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callDeleteMapContextConfig); + Modify_DeleteMapContextConfigApiCall(ref _callDeleteMapContextConfig); + OnConstruction(grpcClient, effectiveSettings, clientHelper); + } + + partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; + + partial void Modify_CreateMapConfigApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_GetMapConfigApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_ListMapConfigsApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_UpdateMapConfigApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_DeleteMapConfigApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_CreateStyleConfigApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_GetStyleConfigApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_ListStyleConfigsApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_UpdateStyleConfigApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_DeleteStyleConfigApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_CreateMapContextConfigApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_GetMapContextConfigApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_ListMapContextConfigsApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_UpdateMapContextConfigApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_DeleteMapContextConfigApiCall(ref gaxgrpc::ApiCall call); + + partial void OnConstruction(MapManagement.MapManagementClient grpcClient, MapManagementSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); + + /// The underlying gRPC MapManagement client + public override MapManagement.MapManagementClient GrpcClient { get; } + + partial void Modify_CreateMapConfigRequest(ref CreateMapConfigRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_GetMapConfigRequest(ref GetMapConfigRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_ListMapConfigsRequest(ref ListMapConfigsRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_UpdateMapConfigRequest(ref UpdateMapConfigRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_DeleteMapConfigRequest(ref DeleteMapConfigRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_CreateStyleConfigRequest(ref CreateStyleConfigRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_GetStyleConfigRequest(ref GetStyleConfigRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_ListStyleConfigsRequest(ref ListStyleConfigsRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_UpdateStyleConfigRequest(ref UpdateStyleConfigRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_DeleteStyleConfigRequest(ref DeleteStyleConfigRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_CreateMapContextConfigRequest(ref CreateMapContextConfigRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_GetMapContextConfigRequest(ref GetMapContextConfigRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_ListMapContextConfigsRequest(ref ListMapContextConfigsRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_UpdateMapContextConfigRequest(ref UpdateMapContextConfigRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_DeleteMapContextConfigRequest(ref DeleteMapContextConfigRequest request, ref gaxgrpc::CallSettings settings); + + /// + /// Creates a MapConfig in a project. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override MapConfig CreateMapConfig(CreateMapConfigRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CreateMapConfigRequest(ref request, ref callSettings); + return _callCreateMapConfig.Sync(request, callSettings); + } + + /// + /// Creates a MapConfig in a project. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task CreateMapConfigAsync(CreateMapConfigRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CreateMapConfigRequest(ref request, ref callSettings); + return _callCreateMapConfig.Async(request, callSettings); + } + + /// + /// Gets a MapConfig. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override MapConfig GetMapConfig(GetMapConfigRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetMapConfigRequest(ref request, ref callSettings); + return _callGetMapConfig.Sync(request, callSettings); + } + + /// + /// Gets a MapConfig. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task GetMapConfigAsync(GetMapConfigRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetMapConfigRequest(ref request, ref callSettings); + return _callGetMapConfig.Async(request, callSettings); + } + + /// + /// Lists MapConfigs for a project. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public override gax::PagedEnumerable ListMapConfigs(ListMapConfigsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ListMapConfigsRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedEnumerable(_callListMapConfigs, request, callSettings); + } + + /// + /// Lists MapConfigs for a project. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public override gax::PagedAsyncEnumerable ListMapConfigsAsync(ListMapConfigsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ListMapConfigsRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedAsyncEnumerable(_callListMapConfigs, request, callSettings); + } + + /// + /// Updates a MapConfig. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override MapConfig UpdateMapConfig(UpdateMapConfigRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_UpdateMapConfigRequest(ref request, ref callSettings); + return _callUpdateMapConfig.Sync(request, callSettings); + } + + /// + /// Updates a MapConfig. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task UpdateMapConfigAsync(UpdateMapConfigRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_UpdateMapConfigRequest(ref request, ref callSettings); + return _callUpdateMapConfig.Async(request, callSettings); + } + + /// + /// Deletes a MapConfig. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override void DeleteMapConfig(DeleteMapConfigRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_DeleteMapConfigRequest(ref request, ref callSettings); + _callDeleteMapConfig.Sync(request, callSettings); + } + + /// + /// Deletes a MapConfig. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task DeleteMapConfigAsync(DeleteMapConfigRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_DeleteMapConfigRequest(ref request, ref callSettings); + return _callDeleteMapConfig.Async(request, callSettings); + } + + /// + /// Creates a StyleConfig. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override StyleConfig CreateStyleConfig(CreateStyleConfigRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CreateStyleConfigRequest(ref request, ref callSettings); + return _callCreateStyleConfig.Sync(request, callSettings); + } + + /// + /// Creates a StyleConfig. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task CreateStyleConfigAsync(CreateStyleConfigRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CreateStyleConfigRequest(ref request, ref callSettings); + return _callCreateStyleConfig.Async(request, callSettings); + } + + /// + /// Gets a StyleConfig. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override StyleConfig GetStyleConfig(GetStyleConfigRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetStyleConfigRequest(ref request, ref callSettings); + return _callGetStyleConfig.Sync(request, callSettings); + } + + /// + /// Gets a StyleConfig. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task GetStyleConfigAsync(GetStyleConfigRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetStyleConfigRequest(ref request, ref callSettings); + return _callGetStyleConfig.Async(request, callSettings); + } + + /// + /// Lists StyleConfigs. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public override gax::PagedEnumerable ListStyleConfigs(ListStyleConfigsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ListStyleConfigsRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedEnumerable(_callListStyleConfigs, request, callSettings); + } + + /// + /// Lists StyleConfigs. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public override gax::PagedAsyncEnumerable ListStyleConfigsAsync(ListStyleConfigsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ListStyleConfigsRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedAsyncEnumerable(_callListStyleConfigs, request, callSettings); + } + + /// + /// Updates a StyleConfig. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override StyleConfig UpdateStyleConfig(UpdateStyleConfigRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_UpdateStyleConfigRequest(ref request, ref callSettings); + return _callUpdateStyleConfig.Sync(request, callSettings); + } + + /// + /// Updates a StyleConfig. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task UpdateStyleConfigAsync(UpdateStyleConfigRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_UpdateStyleConfigRequest(ref request, ref callSettings); + return _callUpdateStyleConfig.Async(request, callSettings); + } + + /// + /// Deletes a StyleConfig. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override void DeleteStyleConfig(DeleteStyleConfigRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_DeleteStyleConfigRequest(ref request, ref callSettings); + _callDeleteStyleConfig.Sync(request, callSettings); + } + + /// + /// Deletes a StyleConfig. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task DeleteStyleConfigAsync(DeleteStyleConfigRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_DeleteStyleConfigRequest(ref request, ref callSettings); + return _callDeleteStyleConfig.Async(request, callSettings); + } + + /// + /// Creates a MapContextConfig. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override MapContextConfig CreateMapContextConfig(CreateMapContextConfigRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CreateMapContextConfigRequest(ref request, ref callSettings); + return _callCreateMapContextConfig.Sync(request, callSettings); + } + + /// + /// Creates a MapContextConfig. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task CreateMapContextConfigAsync(CreateMapContextConfigRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CreateMapContextConfigRequest(ref request, ref callSettings); + return _callCreateMapContextConfig.Async(request, callSettings); + } + + /// + /// Gets a MapContextConfig. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override MapContextConfig GetMapContextConfig(GetMapContextConfigRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetMapContextConfigRequest(ref request, ref callSettings); + return _callGetMapContextConfig.Sync(request, callSettings); + } + + /// + /// Gets a MapContextConfig. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task GetMapContextConfigAsync(GetMapContextConfigRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetMapContextConfigRequest(ref request, ref callSettings); + return _callGetMapContextConfig.Async(request, callSettings); + } + + /// + /// Lists MapContextConfigs. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public override gax::PagedEnumerable ListMapContextConfigs(ListMapContextConfigsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ListMapContextConfigsRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedEnumerable(_callListMapContextConfigs, request, callSettings); + } + + /// + /// Lists MapContextConfigs. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public override gax::PagedAsyncEnumerable ListMapContextConfigsAsync(ListMapContextConfigsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ListMapContextConfigsRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedAsyncEnumerable(_callListMapContextConfigs, request, callSettings); + } + + /// + /// Updates a MapContextConfig. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override MapContextConfig UpdateMapContextConfig(UpdateMapContextConfigRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_UpdateMapContextConfigRequest(ref request, ref callSettings); + return _callUpdateMapContextConfig.Sync(request, callSettings); + } + + /// + /// Updates a MapContextConfig. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task UpdateMapContextConfigAsync(UpdateMapContextConfigRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_UpdateMapContextConfigRequest(ref request, ref callSettings); + return _callUpdateMapContextConfig.Async(request, callSettings); + } + + /// + /// Deletes a MapContextConfig. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override void DeleteMapContextConfig(DeleteMapContextConfigRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_DeleteMapContextConfigRequest(ref request, ref callSettings); + _callDeleteMapContextConfig.Sync(request, callSettings); + } + + /// + /// Deletes a MapContextConfig. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task DeleteMapContextConfigAsync(DeleteMapContextConfigRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_DeleteMapContextConfigRequest(ref request, ref callSettings); + return _callDeleteMapContextConfig.Async(request, callSettings); + } + } + + public partial class ListMapConfigsRequest : gaxgrpc::IPageRequest + { + } + + public partial class ListStyleConfigsRequest : gaxgrpc::IPageRequest + { + } + + public partial class ListMapContextConfigsRequest : gaxgrpc::IPageRequest + { + } + + public partial class ListMapConfigsResponse : gaxgrpc::IPageResponse + { + /// Returns an enumerator that iterates through the resources in this response. + public scg::IEnumerator GetEnumerator() => MapConfigs.GetEnumerator(); + + sc::IEnumerator sc::IEnumerable.GetEnumerator() => GetEnumerator(); + } + + public partial class ListStyleConfigsResponse : gaxgrpc::IPageResponse + { + /// Returns an enumerator that iterates through the resources in this response. + public scg::IEnumerator GetEnumerator() => StyleConfigs.GetEnumerator(); + + sc::IEnumerator sc::IEnumerable.GetEnumerator() => GetEnumerator(); + } + + public partial class ListMapContextConfigsResponse : gaxgrpc::IPageResponse + { + /// Returns an enumerator that iterates through the resources in this response. + public scg::IEnumerator GetEnumerator() => MapContextConfigs.GetEnumerator(); + + sc::IEnumerator sc::IEnumerable.GetEnumerator() => GetEnumerator(); + } +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta/MapManagementService.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta/MapManagementService.g.cs new file mode 100644 index 000000000000..432e9f74e0d5 --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta/MapManagementService.g.cs @@ -0,0 +1,6655 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/maps/mapmanagement/v2beta/map_management_service.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.Maps.MapManagement.V2Beta { + + /// Holder for reflection information generated from google/maps/mapmanagement/v2beta/map_management_service.proto + public static partial class MapManagementServiceReflection { + + #region Descriptor + /// File descriptor for google/maps/mapmanagement/v2beta/map_management_service.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MapManagementServiceReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cj1nb29nbGUvbWFwcy9tYXBtYW5hZ2VtZW50L3YyYmV0YS9tYXBfbWFuYWdl", + "bWVudF9zZXJ2aWNlLnByb3RvEiBnb29nbGUubWFwcy5tYXBtYW5hZ2VtZW50", + "LnYyYmV0YRocZ29vZ2xlL2FwaS9hbm5vdGF0aW9ucy5wcm90bxoXZ29vZ2xl", + "L2FwaS9jbGllbnQucHJvdG8aH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3Iu", + "cHJvdG8aGWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8aG2dvb2dsZS9wcm90", + "b2J1Zi9lbXB0eS5wcm90bxogZ29vZ2xlL3Byb3RvYnVmL2ZpZWxkX21hc2su", + "cHJvdG8aH2dvb2dsZS9wcm90b2J1Zi90aW1lc3RhbXAucHJvdG8iowEKFkNy", + "ZWF0ZU1hcENvbmZpZ1JlcXVlc3QSQwoGcGFyZW50GAEgASgJQjPgQQL6QS0K", + "K2Nsb3VkcmVzb3VyY2VtYW5hZ2VyLmdvb2dsZWFwaXMuY29tL1Byb2plY3QS", + "RAoKbWFwX2NvbmZpZxgCIAEoCzIrLmdvb2dsZS5tYXBzLm1hcG1hbmFnZW1l", + "bnQudjJiZXRhLk1hcENvbmZpZ0ID4EECIlMKE0dldE1hcENvbmZpZ1JlcXVl", + "c3QSPAoEbmFtZRgBIAEoCUIu4EEC+kEoCiZtYXBtYW5hZ2VtZW50Lmdvb2ds", + "ZWFwaXMuY29tL01hcENvbmZpZyKNAQoVTGlzdE1hcENvbmZpZ3NSZXF1ZXN0", + "EkMKBnBhcmVudBgBIAEoCUIz4EEC+kEtCitjbG91ZHJlc291cmNlbWFuYWdl", + "ci5nb29nbGVhcGlzLmNvbS9Qcm9qZWN0EhYKCXBhZ2Vfc2l6ZRgCIAEoBUID", + "4EEBEhcKCnBhZ2VfdG9rZW4YAyABKAlCA+BBASJzChZMaXN0TWFwQ29uZmln", + "c1Jlc3BvbnNlEkAKC21hcF9jb25maWdzGAEgAygLMisuZ29vZ2xlLm1hcHMu", + "bWFwbWFuYWdlbWVudC52MmJldGEuTWFwQ29uZmlnEhcKD25leHRfcGFnZV90", + "b2tlbhgCIAEoCSKUAQoWVXBkYXRlTWFwQ29uZmlnUmVxdWVzdBJECgptYXBf", + "Y29uZmlnGAEgASgLMisuZ29vZ2xlLm1hcHMubWFwbWFuYWdlbWVudC52MmJl", + "dGEuTWFwQ29uZmlnQgPgQQISNAoLdXBkYXRlX21hc2sYAiABKAsyGi5nb29n", + "bGUucHJvdG9idWYuRmllbGRNYXNrQgPgQQEiagoWRGVsZXRlTWFwQ29uZmln", + "UmVxdWVzdBI8CgRuYW1lGAEgASgJQi7gQQL6QSgKJm1hcG1hbmFnZW1lbnQu", + "Z29vZ2xlYXBpcy5jb20vTWFwQ29uZmlnEhIKBWZvcmNlGAIgASgIQgPgQQEi", + "+QEKC01hcEZlYXR1cmVzElkKD3NpbXBsZV9mZWF0dXJlcxgBIAMoDjI7Lmdv", + "b2dsZS5tYXBzLm1hcG1hbmFnZW1lbnQudjJiZXRhLk1hcEZlYXR1cmVzLlNp", + "bXBsZUZlYXR1cmVCA+BBARIhCg9wb2lfYm9vc3RfbGV2ZWwYAiABKAVCA+BB", + "AUgAiAEBIlgKDVNpbXBsZUZlYXR1cmUSHgoaU0lNUExFX0ZFQVRVUkVfVU5T", + "UEVDSUZJRUQQABIVChFGTEFUVEVOX0JVSUxESU5HUxABEhAKDElDT05JQ19J", + "Q09OUxACQhIKEF9wb2lfYm9vc3RfbGV2ZWwihgQKCU1hcENvbmZpZxIUCgRu", + "YW1lGAEgASgJQgbgQQPgQQgSGQoMZGlzcGxheV9uYW1lGAIgASgJQgPgQQES", + "GAoLZGVzY3JpcHRpb24YAyABKAlCA+BBARITCgZtYXBfaWQYBCABKAlCA+BB", + "AxJICgxtYXBfZmVhdHVyZXMYBSABKAsyLS5nb29nbGUubWFwcy5tYXBtYW5h", + "Z2VtZW50LnYyYmV0YS5NYXBGZWF0dXJlc0ID4EEBEjkKC2NyZWF0ZV90aW1l", + "GAYgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEID4EEDSACIAQES", + "OQoLdXBkYXRlX3RpbWUYByABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0", + "YW1wQgPgQQNIAYgBARJJCghtYXBfdHlwZRgIIAEoDjIyLmdvb2dsZS5tYXBz", + "Lm1hcG1hbmFnZW1lbnQudjJiZXRhLk1hcFJlbmRlcmluZ1R5cGVCA+BBATpu", + "6kFrCiZtYXBtYW5hZ2VtZW50Lmdvb2dsZWFwaXMuY29tL01hcENvbmZpZxIq", + "cHJvamVjdHMve3Byb2plY3R9L21hcENvbmZpZ3Mve21hcF9jb25maWd9Kgpt", + "YXBDb25maWdzMgltYXBDb25maWdCDgoMX2NyZWF0ZV90aW1lQg4KDF91cGRh", + "dGVfdGltZSKeAwoLU3R5bGVDb25maWcSFAoEbmFtZRgBIAEoCUIG4EED4EEI", + "EhkKDGRpc3BsYXlfbmFtZRgCIAEoCUID4EEBEhgKC2Rlc2NyaXB0aW9uGAMg", + "ASgJQgPgQQESFQoIc3R5bGVfaWQYBCABKAlCA+BBAxIdChBqc29uX3N0eWxl", + "X3NoZWV0GAYgASgJQgPgQQESOQoLY3JlYXRlX3RpbWUYByABKAsyGi5nb29n", + "bGUucHJvdG9idWYuVGltZXN0YW1wQgPgQQNIAIgBARI5Cgt1cGRhdGVfdGlt", + "ZRgIIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCA+BBA0gBiAEB", + "OnjqQXUKKG1hcG1hbmFnZW1lbnQuZ29vZ2xlYXBpcy5jb20vU3R5bGVDb25m", + "aWcSLnByb2plY3RzL3twcm9qZWN0fS9zdHlsZUNvbmZpZ3Mve3N0eWxlX2Nv", + "bmZpZ30qDHN0eWxlQ29uZmlnczILc3R5bGVDb25maWdCDgoMX2NyZWF0ZV90", + "aW1lQg4KDF91cGRhdGVfdGltZSKpAQoYQ3JlYXRlU3R5bGVDb25maWdSZXF1", + "ZXN0EkMKBnBhcmVudBgBIAEoCUIz4EEC+kEtCitjbG91ZHJlc291cmNlbWFu", + "YWdlci5nb29nbGVhcGlzLmNvbS9Qcm9qZWN0EkgKDHN0eWxlX2NvbmZpZxgC", + "IAEoCzItLmdvb2dsZS5tYXBzLm1hcG1hbmFnZW1lbnQudjJiZXRhLlN0eWxl", + "Q29uZmlnQgPgQQIiVwoVR2V0U3R5bGVDb25maWdSZXF1ZXN0Ej4KBG5hbWUY", + "ASABKAlCMOBBAvpBKgoobWFwbWFuYWdlbWVudC5nb29nbGVhcGlzLmNvbS9T", + "dHlsZUNvbmZpZyLqAQoXTGlzdFN0eWxlQ29uZmlnc1JlcXVlc3QSQwoGcGFy", + "ZW50GAEgASgJQjPgQQL6QS0KK2Nsb3VkcmVzb3VyY2VtYW5hZ2VyLmdvb2ds", + "ZWFwaXMuY29tL1Byb2plY3QSFgoJcGFnZV9zaXplGAIgASgFQgPgQQESFwoK", + "cGFnZV90b2tlbhgDIAEoCUID4EEBEhMKBmZpbHRlchgEIAEoCUID4EEBEkQK", + "BHZpZXcYBSABKA4yMS5nb29nbGUubWFwcy5tYXBtYW5hZ2VtZW50LnYyYmV0", + "YS5TdHlsZUNvbmZpZ1ZpZXdCA+BBASJ5ChhMaXN0U3R5bGVDb25maWdzUmVz", + "cG9uc2USRAoNc3R5bGVfY29uZmlncxgBIAMoCzItLmdvb2dsZS5tYXBzLm1h", + "cG1hbmFnZW1lbnQudjJiZXRhLlN0eWxlQ29uZmlnEhcKD25leHRfcGFnZV90", + "b2tlbhgCIAEoCSKaAQoYVXBkYXRlU3R5bGVDb25maWdSZXF1ZXN0EkgKDHN0", + "eWxlX2NvbmZpZxgBIAEoCzItLmdvb2dsZS5tYXBzLm1hcG1hbmFnZW1lbnQu", + "djJiZXRhLlN0eWxlQ29uZmlnQgPgQQISNAoLdXBkYXRlX21hc2sYAiABKAsy", + "Gi5nb29nbGUucHJvdG9idWYuRmllbGRNYXNrQgPgQQEiWgoYRGVsZXRlU3R5", + "bGVDb25maWdSZXF1ZXN0Ej4KBG5hbWUYASABKAlCMOBBAvpBKgoobWFwbWFu", + "YWdlbWVudC5nb29nbGVhcGlzLmNvbS9TdHlsZUNvbmZpZyLGBgoQTWFwQ29u", + "dGV4dENvbmZpZxIUCgRuYW1lGAEgASgJQgbgQQPgQQgSQgoKbWFwX2NvbmZp", + "ZxgCIAEoCUIu4EEC+kEoCiZtYXBtYW5hZ2VtZW50Lmdvb2dsZWFwaXMuY29t", + "L01hcENvbmZpZxJGCgxzdHlsZV9jb25maWcYAyABKAlCMOBBAvpBKgoobWFw", + "bWFuYWdlbWVudC5nb29nbGVhcGlzLmNvbS9TdHlsZUNvbmZpZxI9CgdkYXRh", + "c2V0GAQgAygJQizgQQH6QSYKJG1hcG1hbmFnZW1lbnQuZ29vZ2xlYXBpcy5j", + "b20vRGF0YXNldBISCgVhbGlhcxgFIAEoCUID4EEBElgKDG1hcF92YXJpYW50", + "cxgGIAMoDjI9Lmdvb2dsZS5tYXBzLm1hcG1hbmFnZW1lbnQudjJiZXRhLk1h", + "cENvbnRleHRDb25maWcuTWFwVmFyaWFudEID4EECEjQKC2NyZWF0ZV90aW1l", + "GAcgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEID4EEDEjQKC3Vw", + "ZGF0ZV90aW1lGAggASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEID", + "4EEDIsgBCgpNYXBWYXJpYW50EgsKB1JPQURNQVAQABIQCgxST0FETUFQX0RB", + "UksQARINCglTQVRFTExJVEUQAhILCgdURVJSQUlOEAMSEAoMVEVSUkFJTl9E", + "QVJLEAQSDgoKTkFWSUdBVElPThAFEhgKFE5BVklHQVRJT05fTE9XX0xJR0hU", + "EAYSCwoHVFJBTlNJVBAHEhAKDFRSQU5TSVRfREFSSxAIEg4KCkFCU1RSQUNU", + "M0QQCRIUChBQSE9UT1JFQUxJU1RJQzNEEAo6qwHqQacBCi1tYXBtYW5hZ2Vt", + "ZW50Lmdvb2dsZWFwaXMuY29tL01hcENvbnRleHRDb25maWcSUXByb2plY3Rz", + "L3twcm9qZWN0fS9tYXBDb25maWdzL3ttYXBfY29uZmlnfS9tYXBDb250ZXh0", + "Q29uZmlncy97bWFwX2NvbnRleHRfY29uZmlnfSoRbWFwQ29udGV4dENvbmZp", + "Z3MyEG1hcENvbnRleHRDb25maWcitAEKHUNyZWF0ZU1hcENvbnRleHRDb25m", + "aWdSZXF1ZXN0Ej4KBnBhcmVudBgBIAEoCUIu4EEC+kEoCiZtYXBtYW5hZ2Vt", + "ZW50Lmdvb2dsZWFwaXMuY29tL01hcENvbmZpZxJTChJtYXBfY29udGV4dF9j", + "b25maWcYAiABKAsyMi5nb29nbGUubWFwcy5tYXBtYW5hZ2VtZW50LnYyYmV0", + "YS5NYXBDb250ZXh0Q29uZmlnQgPgQQIiYQoaR2V0TWFwQ29udGV4dENvbmZp", + "Z1JlcXVlc3QSQwoEbmFtZRgBIAEoCUI14EEC+kEvCi1tYXBtYW5hZ2VtZW50", + "Lmdvb2dsZWFwaXMuY29tL01hcENvbnRleHRDb25maWcijwEKHExpc3RNYXBD", + "b250ZXh0Q29uZmlnc1JlcXVlc3QSPgoGcGFyZW50GAEgASgJQi7gQQL6QSgK", + "Jm1hcG1hbmFnZW1lbnQuZ29vZ2xlYXBpcy5jb20vTWFwQ29uZmlnEhYKCXBh", + "Z2Vfc2l6ZRgCIAEoBUID4EEBEhcKCnBhZ2VfdG9rZW4YAyABKAlCA+BBASKJ", + "AQodTGlzdE1hcENvbnRleHRDb25maWdzUmVzcG9uc2USTwoTbWFwX2NvbnRl", + "eHRfY29uZmlncxgBIAMoCzIyLmdvb2dsZS5tYXBzLm1hcG1hbmFnZW1lbnQu", + "djJiZXRhLk1hcENvbnRleHRDb25maWcSFwoPbmV4dF9wYWdlX3Rva2VuGAIg", + "ASgJIqoBCh1VcGRhdGVNYXBDb250ZXh0Q29uZmlnUmVxdWVzdBJTChJtYXBf", + "Y29udGV4dF9jb25maWcYASABKAsyMi5nb29nbGUubWFwcy5tYXBtYW5hZ2Vt", + "ZW50LnYyYmV0YS5NYXBDb250ZXh0Q29uZmlnQgPgQQISNAoLdXBkYXRlX21h", + "c2sYAiABKAsyGi5nb29nbGUucHJvdG9idWYuRmllbGRNYXNrQgPgQQEiZAod", + "RGVsZXRlTWFwQ29udGV4dENvbmZpZ1JlcXVlc3QSQwoEbmFtZRgBIAEoCUI1", + "4EEC+kEvCi1tYXBtYW5hZ2VtZW50Lmdvb2dsZWFwaXMuY29tL01hcENvbnRl", + "eHRDb25maWcqUQoPU3R5bGVDb25maWdWaWV3EiEKHVNUWUxFX0NPTkZJR19W", + "SUVXX1VOU1BFQ0lGSUVEEAASCAoERlVMTBABEhEKDU1FVEFEQVRBX09OTFkQ", + "AioqChBNYXBSZW5kZXJpbmdUeXBlEgoKBlJBU1RFUhAAEgoKBlZFQ1RPUhAB", + "MpAZCg1NYXBNYW5hZ2VtZW50EsgBCg9DcmVhdGVNYXBDb25maWcSOC5nb29n", + "bGUubWFwcy5tYXBtYW5hZ2VtZW50LnYyYmV0YS5DcmVhdGVNYXBDb25maWdS", + "ZXF1ZXN0GisuZ29vZ2xlLm1hcHMubWFwbWFuYWdlbWVudC52MmJldGEuTWFw", + "Q29uZmlnIk7aQRFwYXJlbnQsbWFwX2NvbmZpZ4LT5JMCNCImL3YyYmV0YS97", + "cGFyZW50PXByb2plY3RzLyp9L21hcENvbmZpZ3M6Cm1hcF9jb25maWcSqQEK", + "DEdldE1hcENvbmZpZxI1Lmdvb2dsZS5tYXBzLm1hcG1hbmFnZW1lbnQudjJi", + "ZXRhLkdldE1hcENvbmZpZ1JlcXVlc3QaKy5nb29nbGUubWFwcy5tYXBtYW5h", + "Z2VtZW50LnYyYmV0YS5NYXBDb25maWciNdpBBG5hbWWC0+STAigSJi92MmJl", + "dGEve25hbWU9cHJvamVjdHMvKi9tYXBDb25maWdzLyp9ErwBCg5MaXN0TWFw", + "Q29uZmlncxI3Lmdvb2dsZS5tYXBzLm1hcG1hbmFnZW1lbnQudjJiZXRhLkxp", + "c3RNYXBDb25maWdzUmVxdWVzdBo4Lmdvb2dsZS5tYXBzLm1hcG1hbmFnZW1l", + "bnQudjJiZXRhLkxpc3RNYXBDb25maWdzUmVzcG9uc2UiN9pBBnBhcmVudILT", + "5JMCKBImL3YyYmV0YS97cGFyZW50PXByb2plY3RzLyp9L21hcENvbmZpZ3MS", + "2AEKD1VwZGF0ZU1hcENvbmZpZxI4Lmdvb2dsZS5tYXBzLm1hcG1hbmFnZW1l", + "bnQudjJiZXRhLlVwZGF0ZU1hcENvbmZpZ1JlcXVlc3QaKy5nb29nbGUubWFw", + "cy5tYXBtYW5hZ2VtZW50LnYyYmV0YS5NYXBDb25maWciXtpBFm1hcF9jb25m", + "aWcsdXBkYXRlX21hc2uC0+STAj8yMS92MmJldGEve21hcF9jb25maWcubmFt", + "ZT1wcm9qZWN0cy8qL21hcENvbmZpZ3MvKn06Cm1hcF9jb25maWcSoAEKD0Rl", + "bGV0ZU1hcENvbmZpZxI4Lmdvb2dsZS5tYXBzLm1hcG1hbmFnZW1lbnQudjJi", + "ZXRhLkRlbGV0ZU1hcENvbmZpZ1JlcXVlc3QaFi5nb29nbGUucHJvdG9idWYu", + "RW1wdHkiO9pBCm5hbWUsZm9yY2WC0+STAigqJi92MmJldGEve25hbWU9cHJv", + "amVjdHMvKi9tYXBDb25maWdzLyp9EtQBChFDcmVhdGVTdHlsZUNvbmZpZxI6", + "Lmdvb2dsZS5tYXBzLm1hcG1hbmFnZW1lbnQudjJiZXRhLkNyZWF0ZVN0eWxl", + "Q29uZmlnUmVxdWVzdBotLmdvb2dsZS5tYXBzLm1hcG1hbmFnZW1lbnQudjJi", + "ZXRhLlN0eWxlQ29uZmlnIlTaQRNwYXJlbnQsc3R5bGVfY29uZmlngtPkkwI4", + "IigvdjJiZXRhL3twYXJlbnQ9cHJvamVjdHMvKn0vc3R5bGVDb25maWdzOgxz", + "dHlsZV9jb25maWcSsQEKDkdldFN0eWxlQ29uZmlnEjcuZ29vZ2xlLm1hcHMu", + "bWFwbWFuYWdlbWVudC52MmJldGEuR2V0U3R5bGVDb25maWdSZXF1ZXN0Gi0u", + "Z29vZ2xlLm1hcHMubWFwbWFuYWdlbWVudC52MmJldGEuU3R5bGVDb25maWci", + "N9pBBG5hbWWC0+STAioSKC92MmJldGEve25hbWU9cHJvamVjdHMvKi9zdHls", + "ZUNvbmZpZ3MvKn0SxAEKEExpc3RTdHlsZUNvbmZpZ3MSOS5nb29nbGUubWFw", + "cy5tYXBtYW5hZ2VtZW50LnYyYmV0YS5MaXN0U3R5bGVDb25maWdzUmVxdWVz", + "dBo6Lmdvb2dsZS5tYXBzLm1hcG1hbmFnZW1lbnQudjJiZXRhLkxpc3RTdHls", + "ZUNvbmZpZ3NSZXNwb25zZSI52kEGcGFyZW50gtPkkwIqEigvdjJiZXRhL3tw", + "YXJlbnQ9cHJvamVjdHMvKn0vc3R5bGVDb25maWdzEuYBChFVcGRhdGVTdHls", + "ZUNvbmZpZxI6Lmdvb2dsZS5tYXBzLm1hcG1hbmFnZW1lbnQudjJiZXRhLlVw", + "ZGF0ZVN0eWxlQ29uZmlnUmVxdWVzdBotLmdvb2dsZS5tYXBzLm1hcG1hbmFn", + "ZW1lbnQudjJiZXRhLlN0eWxlQ29uZmlnImbaQRhzdHlsZV9jb25maWcsdXBk", + "YXRlX21hc2uC0+STAkUyNS92MmJldGEve3N0eWxlX2NvbmZpZy5uYW1lPXBy", + "b2plY3RzLyovc3R5bGVDb25maWdzLyp9OgxzdHlsZV9jb25maWcSoAEKEURl", + "bGV0ZVN0eWxlQ29uZmlnEjouZ29vZ2xlLm1hcHMubWFwbWFuYWdlbWVudC52", + "MmJldGEuRGVsZXRlU3R5bGVDb25maWdSZXF1ZXN0GhYuZ29vZ2xlLnByb3Rv", + "YnVmLkVtcHR5IjfaQQRuYW1lgtPkkwIqKigvdjJiZXRhL3tuYW1lPXByb2pl", + "Y3RzLyovc3R5bGVDb25maWdzLyp9EoECChZDcmVhdGVNYXBDb250ZXh0Q29u", + "ZmlnEj8uZ29vZ2xlLm1hcHMubWFwbWFuYWdlbWVudC52MmJldGEuQ3JlYXRl", + "TWFwQ29udGV4dENvbmZpZ1JlcXVlc3QaMi5nb29nbGUubWFwcy5tYXBtYW5h", + "Z2VtZW50LnYyYmV0YS5NYXBDb250ZXh0Q29uZmlnInLaQRlwYXJlbnQsbWFw", + "X2NvbnRleHRfY29uZmlngtPkkwJQIjovdjJiZXRhL3twYXJlbnQ9cHJvamVj", + "dHMvKi9tYXBDb25maWdzLyp9L21hcENvbnRleHRDb25maWdzOhJtYXBfY29u", + "dGV4dF9jb25maWcS0gEKE0dldE1hcENvbnRleHRDb25maWcSPC5nb29nbGUu", + "bWFwcy5tYXBtYW5hZ2VtZW50LnYyYmV0YS5HZXRNYXBDb250ZXh0Q29uZmln", + "UmVxdWVzdBoyLmdvb2dsZS5tYXBzLm1hcG1hbmFnZW1lbnQudjJiZXRhLk1h", + "cENvbnRleHRDb25maWciSdpBBG5hbWWC0+STAjwSOi92MmJldGEve25hbWU9", + "cHJvamVjdHMvKi9tYXBDb25maWdzLyovbWFwQ29udGV4dENvbmZpZ3MvKn0S", + "5QEKFUxpc3RNYXBDb250ZXh0Q29uZmlncxI+Lmdvb2dsZS5tYXBzLm1hcG1h", + "bmFnZW1lbnQudjJiZXRhLkxpc3RNYXBDb250ZXh0Q29uZmlnc1JlcXVlc3Qa", + "Py5nb29nbGUubWFwcy5tYXBtYW5hZ2VtZW50LnYyYmV0YS5MaXN0TWFwQ29u", + "dGV4dENvbmZpZ3NSZXNwb25zZSJL2kEGcGFyZW50gtPkkwI8EjovdjJiZXRh", + "L3twYXJlbnQ9cHJvamVjdHMvKi9tYXBDb25maWdzLyp9L21hcENvbnRleHRD", + "b25maWdzEpoCChZVcGRhdGVNYXBDb250ZXh0Q29uZmlnEj8uZ29vZ2xlLm1h", + "cHMubWFwbWFuYWdlbWVudC52MmJldGEuVXBkYXRlTWFwQ29udGV4dENvbmZp", + "Z1JlcXVlc3QaMi5nb29nbGUubWFwcy5tYXBtYW5hZ2VtZW50LnYyYmV0YS5N", + "YXBDb250ZXh0Q29uZmlnIooB2kEebWFwX2NvbnRleHRfY29uZmlnLHVwZGF0", + "ZV9tYXNrgtPkkwJjMk0vdjJiZXRhL3ttYXBfY29udGV4dF9jb25maWcubmFt", + "ZT1wcm9qZWN0cy8qL21hcENvbmZpZ3MvKi9tYXBDb250ZXh0Q29uZmlncy8q", + "fToSbWFwX2NvbnRleHRfY29uZmlnErwBChZEZWxldGVNYXBDb250ZXh0Q29u", + "ZmlnEj8uZ29vZ2xlLm1hcHMubWFwbWFuYWdlbWVudC52MmJldGEuRGVsZXRl", + "TWFwQ29udGV4dENvbmZpZ1JlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1w", + "dHkiSdpBBG5hbWWC0+STAjwqOi92MmJldGEve25hbWU9cHJvamVjdHMvKi9t", + "YXBDb25maWdzLyovbWFwQ29udGV4dENvbmZpZ3MvKn0aUMpBHG1hcG1hbmFn", + "ZW1lbnQuZ29vZ2xlYXBpcy5jb23SQS5odHRwczovL3d3dy5nb29nbGVhcGlz", + "LmNvbS9hdXRoL2Nsb3VkLXBsYXRmb3JtQs0CCiRjb20uZ29vZ2xlLm1hcHMu", + "bWFwbWFuYWdlbWVudC52MmJldGFCGU1hcE1hbmFnZW1lbnRTZXJ2aWNlUHJv", + "dG9QAVpQY2xvdWQuZ29vZ2xlLmNvbS9nby9tYXBzL21hcG1hbmFnZW1lbnQv", + "YXBpdjJiZXRhL21hcG1hbmFnZW1lbnRwYjttYXBtYW5hZ2VtZW50cGKiAgxH", + "TU1HTVRWMk1BSU6qAiBHb29nbGUuTWFwcy5NYXBNYW5hZ2VtZW50LlYyQmV0", + "YcoCIEdvb2dsZVxNYXBzXE1hcE1hbmFnZW1lbnRcVjJiZXRh6kFgCiRtYXBt", + "YW5hZ2VtZW50Lmdvb2dsZWFwaXMuY29tL0RhdGFzZXQSJXByb2plY3RzL3tw", + "cm9qZWN0fS9kYXRhc2V0cy97ZGF0YXNldH0qCGRhdGFzZXRzMgdkYXRhc2V0", + "YgZwcm90bzM=")); + 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.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Maps.MapManagement.V2Beta.StyleConfigView), typeof(global::Google.Maps.MapManagement.V2Beta.MapRenderingType), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.MapManagement.V2Beta.CreateMapConfigRequest), global::Google.Maps.MapManagement.V2Beta.CreateMapConfigRequest.Parser, new[]{ "Parent", "MapConfig" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.MapManagement.V2Beta.GetMapConfigRequest), global::Google.Maps.MapManagement.V2Beta.GetMapConfigRequest.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.MapManagement.V2Beta.ListMapConfigsRequest), global::Google.Maps.MapManagement.V2Beta.ListMapConfigsRequest.Parser, new[]{ "Parent", "PageSize", "PageToken" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.MapManagement.V2Beta.ListMapConfigsResponse), global::Google.Maps.MapManagement.V2Beta.ListMapConfigsResponse.Parser, new[]{ "MapConfigs", "NextPageToken" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.MapManagement.V2Beta.UpdateMapConfigRequest), global::Google.Maps.MapManagement.V2Beta.UpdateMapConfigRequest.Parser, new[]{ "MapConfig", "UpdateMask" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.MapManagement.V2Beta.DeleteMapConfigRequest), global::Google.Maps.MapManagement.V2Beta.DeleteMapConfigRequest.Parser, new[]{ "Name", "Force" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.MapManagement.V2Beta.MapFeatures), global::Google.Maps.MapManagement.V2Beta.MapFeatures.Parser, new[]{ "SimpleFeatures", "PoiBoostLevel" }, new[]{ "PoiBoostLevel" }, new[]{ typeof(global::Google.Maps.MapManagement.V2Beta.MapFeatures.Types.SimpleFeature) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.MapManagement.V2Beta.MapConfig), global::Google.Maps.MapManagement.V2Beta.MapConfig.Parser, new[]{ "Name", "DisplayName", "Description", "MapId", "MapFeatures", "CreateTime", "UpdateTime", "MapType" }, new[]{ "CreateTime", "UpdateTime" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.MapManagement.V2Beta.StyleConfig), global::Google.Maps.MapManagement.V2Beta.StyleConfig.Parser, new[]{ "Name", "DisplayName", "Description", "StyleId", "JsonStyleSheet", "CreateTime", "UpdateTime" }, new[]{ "CreateTime", "UpdateTime" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.MapManagement.V2Beta.CreateStyleConfigRequest), global::Google.Maps.MapManagement.V2Beta.CreateStyleConfigRequest.Parser, new[]{ "Parent", "StyleConfig" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.MapManagement.V2Beta.GetStyleConfigRequest), global::Google.Maps.MapManagement.V2Beta.GetStyleConfigRequest.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.MapManagement.V2Beta.ListStyleConfigsRequest), global::Google.Maps.MapManagement.V2Beta.ListStyleConfigsRequest.Parser, new[]{ "Parent", "PageSize", "PageToken", "Filter", "View" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.MapManagement.V2Beta.ListStyleConfigsResponse), global::Google.Maps.MapManagement.V2Beta.ListStyleConfigsResponse.Parser, new[]{ "StyleConfigs", "NextPageToken" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.MapManagement.V2Beta.UpdateStyleConfigRequest), global::Google.Maps.MapManagement.V2Beta.UpdateStyleConfigRequest.Parser, new[]{ "StyleConfig", "UpdateMask" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.MapManagement.V2Beta.DeleteStyleConfigRequest), global::Google.Maps.MapManagement.V2Beta.DeleteStyleConfigRequest.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.MapManagement.V2Beta.MapContextConfig), global::Google.Maps.MapManagement.V2Beta.MapContextConfig.Parser, new[]{ "Name", "MapConfig", "StyleConfig", "Dataset", "Alias", "MapVariants", "CreateTime", "UpdateTime" }, null, new[]{ typeof(global::Google.Maps.MapManagement.V2Beta.MapContextConfig.Types.MapVariant) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.MapManagement.V2Beta.CreateMapContextConfigRequest), global::Google.Maps.MapManagement.V2Beta.CreateMapContextConfigRequest.Parser, new[]{ "Parent", "MapContextConfig" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.MapManagement.V2Beta.GetMapContextConfigRequest), global::Google.Maps.MapManagement.V2Beta.GetMapContextConfigRequest.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.MapManagement.V2Beta.ListMapContextConfigsRequest), global::Google.Maps.MapManagement.V2Beta.ListMapContextConfigsRequest.Parser, new[]{ "Parent", "PageSize", "PageToken" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.MapManagement.V2Beta.ListMapContextConfigsResponse), global::Google.Maps.MapManagement.V2Beta.ListMapContextConfigsResponse.Parser, new[]{ "MapContextConfigs", "NextPageToken" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.MapManagement.V2Beta.UpdateMapContextConfigRequest), global::Google.Maps.MapManagement.V2Beta.UpdateMapContextConfigRequest.Parser, new[]{ "MapContextConfig", "UpdateMask" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Maps.MapManagement.V2Beta.DeleteMapContextConfigRequest), global::Google.Maps.MapManagement.V2Beta.DeleteMapContextConfigRequest.Parser, new[]{ "Name" }, null, null, null, null) + })); + } + #endregion + + } + #region Enums + /// + /// What subset of the StyleConfig to return. + /// + public enum StyleConfigView { + /// + /// Unspecified view. + /// + [pbr::OriginalName("STYLE_CONFIG_VIEW_UNSPECIFIED")] Unspecified = 0, + /// + /// Include the json_style_sheet in the response. + /// + [pbr::OriginalName("FULL")] Full = 1, + /// + /// Exclude the json_style_sheet from the response. + /// + [pbr::OriginalName("METADATA_ONLY")] MetadataOnly = 2, + } + + /// + /// The type of map to be rendered. + /// + public enum MapRenderingType { + /// + /// A map rendered using the raster based implementation. This is the default + /// rendering type if not specified. + /// + [pbr::OriginalName("RASTER")] Raster = 0, + /// + /// A map rendered using webGL. + /// + [pbr::OriginalName("VECTOR")] Vector = 1, + } + + #endregion + + #region Messages + /// + /// Request to create a MapConfig. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CreateMapConfigRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateMapConfigRequest()); + 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.Maps.MapManagement.V2Beta.MapManagementServiceReflection.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 CreateMapConfigRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateMapConfigRequest(CreateMapConfigRequest other) : this() { + parent_ = other.parent_; + mapConfig_ = other.mapConfig_ != null ? other.mapConfig_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateMapConfigRequest Clone() { + return new CreateMapConfigRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; + /// + /// Required. Parent project that will own the MapConfig. + /// Format: `projects/{$my-project-id}` + /// + [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 "map_config" field. + public const int MapConfigFieldNumber = 2; + private global::Google.Maps.MapManagement.V2Beta.MapConfig mapConfig_; + /// + /// Required. The MapConfig to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Maps.MapManagement.V2Beta.MapConfig MapConfig { + get { return mapConfig_; } + set { + mapConfig_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateMapConfigRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateMapConfigRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Parent != other.Parent) return false; + if (!object.Equals(MapConfig, other.MapConfig)) 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 (mapConfig_ != null) hash ^= MapConfig.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 (mapConfig_ != null) { + output.WriteRawTag(18); + output.WriteMessage(MapConfig); + } + 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 (mapConfig_ != null) { + output.WriteRawTag(18); + output.WriteMessage(MapConfig); + } + 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 (mapConfig_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MapConfig); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateMapConfigRequest other) { + if (other == null) { + return; + } + if (other.Parent.Length != 0) { + Parent = other.Parent; + } + if (other.mapConfig_ != null) { + if (mapConfig_ == null) { + MapConfig = new global::Google.Maps.MapManagement.V2Beta.MapConfig(); + } + MapConfig.MergeFrom(other.MapConfig); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + if (mapConfig_ == null) { + MapConfig = new global::Google.Maps.MapManagement.V2Beta.MapConfig(); + } + input.ReadMessage(MapConfig); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + if (mapConfig_ == null) { + MapConfig = new global::Google.Maps.MapManagement.V2Beta.MapConfig(); + } + input.ReadMessage(MapConfig); + break; + } + } + } + } + #endif + + } + + /// + /// Request to get a MapConfig. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetMapConfigRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetMapConfigRequest()); + 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.Maps.MapManagement.V2Beta.MapManagementServiceReflection.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 GetMapConfigRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetMapConfigRequest(GetMapConfigRequest other) : this() { + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetMapConfigRequest Clone() { + return new GetMapConfigRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. Resource name of the MapConfig. + /// Format: `projects/{project}/mapConfigs/{map_config}` + /// + [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 GetMapConfigRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetMapConfigRequest 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(GetMapConfigRequest 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Request to list MapConfigs. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ListMapConfigsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListMapConfigsRequest()); + 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.Maps.MapManagement.V2Beta.MapManagementServiceReflection.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 ListMapConfigsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListMapConfigsRequest(ListMapConfigsRequest other) : this() { + parent_ = other.parent_; + pageSize_ = other.pageSize_; + pageToken_ = other.pageToken_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListMapConfigsRequest Clone() { + return new ListMapConfigsRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; + /// + /// Required. Parent project that owns the MapConfigs. + /// Format: `projects/{project}` + /// + [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 "page_size" field. + public const int PageSizeFieldNumber = 2; + private int pageSize_; + /// + /// Optional. The maximum number of MapConfigs to return. The service may + /// return fewer than this value. If unspecified, at most 50 MapConfigs will be + /// returned. The maximum value is 1000; values above 1000 will be coerced to + /// 1000. CURRENTLY UNSUPPORTED. + /// + [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_ = ""; + /// + /// Optional. A page token, received from a previous `ListMapConfigs` call. + /// Provide this to retrieve the subsequent page. + /// + /// When paginating, all other parameters provided to `ListMapConfigs` must + /// match the call that provided the page token. + /// CURRENTLY UNSUPPORTED. + /// + [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 ListMapConfigsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListMapConfigsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Parent != other.Parent) 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 (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 (_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 (_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 (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(ListMapConfigsRequest other) { + if (other == null) { + return; + } + if (other.Parent.Length != 0) { + Parent = other.Parent; + } + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + 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; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 16: { + PageSize = input.ReadInt32(); + break; + } + case 26: { + PageToken = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Response to list MapConfigs. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ListMapConfigsResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListMapConfigsResponse()); + 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.Maps.MapManagement.V2Beta.MapManagementServiceReflection.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 ListMapConfigsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListMapConfigsResponse(ListMapConfigsResponse other) : this() { + mapConfigs_ = other.mapConfigs_.Clone(); + nextPageToken_ = other.nextPageToken_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListMapConfigsResponse Clone() { + return new ListMapConfigsResponse(this); + } + + /// Field number for the "map_configs" field. + public const int MapConfigsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_mapConfigs_codec + = pb::FieldCodec.ForMessage(10, global::Google.Maps.MapManagement.V2Beta.MapConfig.Parser); + private readonly pbc::RepeatedField mapConfigs_ = new pbc::RepeatedField(); + /// + /// The list of MapConfigs. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MapConfigs { + get { return mapConfigs_; } + } + + /// Field number for the "next_page_token" field. + public const int NextPageTokenFieldNumber = 2; + private string nextPageToken_ = ""; + /// + /// A token, which can be sent as `page_token` to retrieve the next page. + /// If this field is omitted, there are no subsequent pages. + /// CURRENTLY UNSUPPORTED. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NextPageToken { + get { return nextPageToken_; } + set { + nextPageToken_ = 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 ListMapConfigsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListMapConfigsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!mapConfigs_.Equals(other.mapConfigs_)) return false; + if (NextPageToken != other.NextPageToken) 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 ^= mapConfigs_.GetHashCode(); + if (NextPageToken.Length != 0) hash ^= NextPageToken.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 + mapConfigs_.WriteTo(output, _repeated_mapConfigs_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + 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) { + mapConfigs_.WriteTo(ref output, _repeated_mapConfigs_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + 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 += mapConfigs_.CalculateSize(_repeated_mapConfigs_codec); + if (NextPageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NextPageToken); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListMapConfigsResponse other) { + if (other == null) { + return; + } + mapConfigs_.Add(other.mapConfigs_); + if (other.NextPageToken.Length != 0) { + NextPageToken = other.NextPageToken; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + mapConfigs_.AddEntriesFrom(input, _repeated_mapConfigs_codec); + break; + } + case 18: { + NextPageToken = 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + mapConfigs_.AddEntriesFrom(ref input, _repeated_mapConfigs_codec); + break; + } + case 18: { + NextPageToken = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Request to update a MapConfig. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UpdateMapConfigRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateMapConfigRequest()); + 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.Maps.MapManagement.V2Beta.MapManagementServiceReflection.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 UpdateMapConfigRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateMapConfigRequest(UpdateMapConfigRequest other) : this() { + mapConfig_ = other.mapConfig_ != null ? other.mapConfig_.Clone() : null; + updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateMapConfigRequest Clone() { + return new UpdateMapConfigRequest(this); + } + + /// Field number for the "map_config" field. + public const int MapConfigFieldNumber = 1; + private global::Google.Maps.MapManagement.V2Beta.MapConfig mapConfig_; + /// + /// Required. The MapConfig to update. + /// + /// The MapConfig's `name` field is used to identify the MapConfig to update. + /// Format: `projects/{project}/mapConfigs/{map_config}` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Maps.MapManagement.V2Beta.MapConfig MapConfig { + get { return mapConfig_; } + set { + mapConfig_ = value; + } + } + + /// Field number for the "update_mask" field. + public const int UpdateMaskFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; + /// + /// Optional. The specific field to update for the MapConfig. If not specified, + /// the MapConfig will be updated in its entirety. Valid fields are: + /// + /// * `display_name` + /// * `description` + /// * `map_features` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { + get { return updateMask_; } + set { + updateMask_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateMapConfigRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateMapConfigRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(MapConfig, other.MapConfig)) return false; + if (!object.Equals(UpdateMask, other.UpdateMask)) 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 (mapConfig_ != null) hash ^= MapConfig.GetHashCode(); + if (updateMask_ != null) hash ^= UpdateMask.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 (mapConfig_ != null) { + output.WriteRawTag(10); + output.WriteMessage(MapConfig); + } + if (updateMask_ != null) { + output.WriteRawTag(18); + output.WriteMessage(UpdateMask); + } + 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 (mapConfig_ != null) { + output.WriteRawTag(10); + output.WriteMessage(MapConfig); + } + if (updateMask_ != null) { + output.WriteRawTag(18); + output.WriteMessage(UpdateMask); + } + 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 (mapConfig_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MapConfig); + } + if (updateMask_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateMapConfigRequest other) { + if (other == null) { + return; + } + if (other.mapConfig_ != null) { + if (mapConfig_ == null) { + MapConfig = new global::Google.Maps.MapManagement.V2Beta.MapConfig(); + } + MapConfig.MergeFrom(other.MapConfig); + } + if (other.updateMask_ != null) { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + UpdateMask.MergeFrom(other.UpdateMask); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (mapConfig_ == null) { + MapConfig = new global::Google.Maps.MapManagement.V2Beta.MapConfig(); + } + input.ReadMessage(MapConfig); + break; + } + case 18: { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + input.ReadMessage(UpdateMask); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (mapConfig_ == null) { + MapConfig = new global::Google.Maps.MapManagement.V2Beta.MapConfig(); + } + input.ReadMessage(MapConfig); + break; + } + case 18: { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + input.ReadMessage(UpdateMask); + break; + } + } + } + } + #endif + + } + + /// + /// Request to delete a MapConfig. If the MapConfig has any child + /// MapContextConfigs, those will be deleted as well. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DeleteMapConfigRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteMapConfigRequest()); + 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.Maps.MapManagement.V2Beta.MapManagementServiceReflection.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 DeleteMapConfigRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteMapConfigRequest(DeleteMapConfigRequest other) : this() { + name_ = other.name_; + force_ = other.force_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteMapConfigRequest Clone() { + return new DeleteMapConfigRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. Resource name of the MapConfig to delete. + /// Format: `projects/{project}/mapConfigs/{map_config}` + /// + [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 "force" field. + public const int ForceFieldNumber = 2; + private bool force_; + /// + /// Optional. If set to true, any MapContextConfigs from this MapConfig will + /// also be deleted. (Otherwise, the request will only work if the MapConfig + /// has no MapContextConfigs.) + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Force { + get { return force_; } + set { + force_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeleteMapConfigRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteMapConfigRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Force != other.Force) 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 (Force != false) hash ^= Force.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 (Force != false) { + output.WriteRawTag(16); + output.WriteBool(Force); + } + 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 (Force != false) { + output.WriteRawTag(16); + output.WriteBool(Force); + } + 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 (Force != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteMapConfigRequest other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Force != false) { + Force = other.Force; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 16: { + Force = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 16: { + Force = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + /// + /// Represents a collection of map features that apply to a MapConfig. + /// Features set on a MapConfig are inherited by all of its child + /// MapContextConfigs. + /// Next ID = 3; + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class MapFeatures : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MapFeatures()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [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.Maps.MapManagement.V2Beta.MapManagementServiceReflection.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 MapFeatures() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MapFeatures(MapFeatures other) : this() { + _hasBits0 = other._hasBits0; + simpleFeatures_ = other.simpleFeatures_.Clone(); + poiBoostLevel_ = other.poiBoostLevel_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MapFeatures Clone() { + return new MapFeatures(this); + } + + /// Field number for the "simple_features" field. + public const int SimpleFeaturesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_simpleFeatures_codec + = pb::FieldCodec.ForEnum(10, x => (int) x, x => (global::Google.Maps.MapManagement.V2Beta.MapFeatures.Types.SimpleFeature) x); + private readonly pbc::RepeatedField simpleFeatures_ = new pbc::RepeatedField(); + /// + /// Optional. The visual feature to use for this map. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField SimpleFeatures { + get { return simpleFeatures_; } + } + + /// Field number for the "poi_boost_level" field. + public const int PoiBoostLevelFieldNumber = 2; + private readonly static int PoiBoostLevelDefaultValue = 0; + + private int poiBoostLevel_; + /// + /// Optional. POI Boost level, where 0 denotes no boostings and negative values + /// denotes de-boosting. Boosted POIs are shown at lower zoom than default and + /// vice versa de-boosted. Currently supports 2 levels of boosting, so the + /// level is clamped to [-2, 2]. If not specified, the POI density defined in + /// the style sheet will be used if it exists. Otherwise, no POI density will + /// be applied. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PoiBoostLevel { + get { if ((_hasBits0 & 1) != 0) { return poiBoostLevel_; } else { return PoiBoostLevelDefaultValue; } } + set { + _hasBits0 |= 1; + poiBoostLevel_ = value; + } + } + /// Gets whether the "poi_boost_level" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPoiBoostLevel { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "poi_boost_level" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPoiBoostLevel() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MapFeatures); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MapFeatures other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!simpleFeatures_.Equals(other.simpleFeatures_)) return false; + if (PoiBoostLevel != other.PoiBoostLevel) 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 ^= simpleFeatures_.GetHashCode(); + if (HasPoiBoostLevel) hash ^= PoiBoostLevel.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 + simpleFeatures_.WriteTo(output, _repeated_simpleFeatures_codec); + if (HasPoiBoostLevel) { + output.WriteRawTag(16); + output.WriteInt32(PoiBoostLevel); + } + 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) { + simpleFeatures_.WriteTo(ref output, _repeated_simpleFeatures_codec); + if (HasPoiBoostLevel) { + output.WriteRawTag(16); + output.WriteInt32(PoiBoostLevel); + } + 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 += simpleFeatures_.CalculateSize(_repeated_simpleFeatures_codec); + if (HasPoiBoostLevel) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PoiBoostLevel); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MapFeatures other) { + if (other == null) { + return; + } + simpleFeatures_.Add(other.simpleFeatures_); + if (other.HasPoiBoostLevel) { + PoiBoostLevel = other.PoiBoostLevel; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: + case 8: { + simpleFeatures_.AddEntriesFrom(input, _repeated_simpleFeatures_codec); + break; + } + case 16: { + PoiBoostLevel = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: + case 8: { + simpleFeatures_.AddEntriesFrom(ref input, _repeated_simpleFeatures_codec); + break; + } + case 16: { + PoiBoostLevel = input.ReadInt32(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the MapFeatures message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// This represents the set of map features that affect the intrinsic + /// structure of the map. + /// + public enum SimpleFeature { + /// + /// Unspecified visual feature. + /// + [pbr::OriginalName("SIMPLE_FEATURE_UNSPECIFIED")] Unspecified = 0, + /// + /// Flattens all buildings in the map. + /// + [pbr::OriginalName("FLATTEN_BUILDINGS")] FlattenBuildings = 1, + /// + /// Influences how icons are rendered. + /// + [pbr::OriginalName("ICONIC_ICONS")] IconicIcons = 2, + } + + } + #endregion + + } + + /// + /// Represents a single map in a Maps API client application. The MapConfig is + /// the parent resource of MapContextConfigs and enables custom styling in SDKs + /// (Mobile/Web). A MapConfig can have multiple MapContextConfigs, each applying + /// styling to specific map variants. + /// Next ID = 9; + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class MapConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MapConfig()); + 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.Maps.MapManagement.V2Beta.MapManagementServiceReflection.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 MapConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MapConfig(MapConfig other) : this() { + name_ = other.name_; + displayName_ = other.displayName_; + description_ = other.description_; + mapId_ = other.mapId_; + mapFeatures_ = other.mapFeatures_ != null ? other.mapFeatures_.Clone() : null; + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null; + mapType_ = other.mapType_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MapConfig Clone() { + return new MapConfig(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Output only. Identifier. Resource name of this MapConfig. + /// For example: "projects/my-project-123/mapConfigs/234". + /// Output only. + /// + [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 "display_name" field. + public const int DisplayNameFieldNumber = 2; + private string displayName_ = ""; + /// + /// Optional. The display name of this MapConfig, as specified by the user. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DisplayName { + get { return displayName_; } + set { + displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 3; + private string description_ = ""; + /// + /// Optional. The description of this MapConfig, as specified by the user. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Description { + get { return description_; } + set { + description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "map_id" field. + public const int MapIdFieldNumber = 4; + private string mapId_ = ""; + /// + /// Output only. The Map ID of this MapConfig, used to identify the map in + /// client applications. This read-only field is generated when the MapConfig + /// is created. Output only. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MapId { + get { return mapId_; } + set { + mapId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "map_features" field. + public const int MapFeaturesFieldNumber = 5; + private global::Google.Maps.MapManagement.V2Beta.MapFeatures mapFeatures_; + /// + /// Optional. The Map Features that apply to this Map Config. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Maps.MapManagement.V2Beta.MapFeatures MapFeatures { + get { return mapFeatures_; } + set { + mapFeatures_ = value; + } + } + + /// Field number for the "create_time" field. + public const int CreateTimeFieldNumber = 6; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. Denotes the creation time of the Map Config. Output only. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime { + get { return createTime_; } + set { + createTime_ = value; + } + } + + /// Field number for the "update_time" field. + public const int UpdateTimeFieldNumber = 7; + private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_; + /// + /// Output only. Denotes the last update time of the Map Config. Output only. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime { + get { return updateTime_; } + set { + updateTime_ = value; + } + } + + /// Field number for the "map_type" field. + public const int MapTypeFieldNumber = 8; + private global::Google.Maps.MapManagement.V2Beta.MapRenderingType mapType_ = global::Google.Maps.MapManagement.V2Beta.MapRenderingType.Raster; + /// + /// Optional. Represents the Map Type of the MapConfig. If this is unset, the + /// default behavior is to use the raster map type. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Maps.MapManagement.V2Beta.MapRenderingType MapType { + get { return mapType_; } + set { + mapType_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MapConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MapConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (DisplayName != other.DisplayName) return false; + if (Description != other.Description) return false; + if (MapId != other.MapId) return false; + if (!object.Equals(MapFeatures, other.MapFeatures)) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (!object.Equals(UpdateTime, other.UpdateTime)) return false; + if (MapType != other.MapType) 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 (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); + if (Description.Length != 0) hash ^= Description.GetHashCode(); + if (MapId.Length != 0) hash ^= MapId.GetHashCode(); + if (mapFeatures_ != null) hash ^= MapFeatures.GetHashCode(); + if (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (updateTime_ != null) hash ^= UpdateTime.GetHashCode(); + if (MapType != global::Google.Maps.MapManagement.V2Beta.MapRenderingType.Raster) hash ^= MapType.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 (DisplayName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(DisplayName); + } + if (Description.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Description); + } + if (MapId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(MapId); + } + if (mapFeatures_ != null) { + output.WriteRawTag(42); + output.WriteMessage(MapFeatures); + } + if (createTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(58); + output.WriteMessage(UpdateTime); + } + if (MapType != global::Google.Maps.MapManagement.V2Beta.MapRenderingType.Raster) { + output.WriteRawTag(64); + output.WriteEnum((int) MapType); + } + 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 (DisplayName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(DisplayName); + } + if (Description.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Description); + } + if (MapId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(MapId); + } + if (mapFeatures_ != null) { + output.WriteRawTag(42); + output.WriteMessage(MapFeatures); + } + if (createTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(58); + output.WriteMessage(UpdateTime); + } + if (MapType != global::Google.Maps.MapManagement.V2Beta.MapRenderingType.Raster) { + output.WriteRawTag(64); + output.WriteEnum((int) MapType); + } + 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 (DisplayName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName); + } + if (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (MapId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MapId); + } + if (mapFeatures_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MapFeatures); + } + if (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (updateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime); + } + if (MapType != global::Google.Maps.MapManagement.V2Beta.MapRenderingType.Raster) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MapType); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MapConfig other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.DisplayName.Length != 0) { + DisplayName = other.DisplayName; + } + if (other.Description.Length != 0) { + Description = other.Description; + } + if (other.MapId.Length != 0) { + MapId = other.MapId; + } + if (other.mapFeatures_ != null) { + if (mapFeatures_ == null) { + MapFeatures = new global::Google.Maps.MapManagement.V2Beta.MapFeatures(); + } + MapFeatures.MergeFrom(other.MapFeatures); + } + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.updateTime_ != null) { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdateTime.MergeFrom(other.UpdateTime); + } + if (other.MapType != global::Google.Maps.MapManagement.V2Beta.MapRenderingType.Raster) { + MapType = other.MapType; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + DisplayName = input.ReadString(); + break; + } + case 26: { + Description = input.ReadString(); + break; + } + case 34: { + MapId = input.ReadString(); + break; + } + case 42: { + if (mapFeatures_ == null) { + MapFeatures = new global::Google.Maps.MapManagement.V2Beta.MapFeatures(); + } + input.ReadMessage(MapFeatures); + break; + } + case 50: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 58: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 64: { + MapType = (global::Google.Maps.MapManagement.V2Beta.MapRenderingType) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + DisplayName = input.ReadString(); + break; + } + case 26: { + Description = input.ReadString(); + break; + } + case 34: { + MapId = input.ReadString(); + break; + } + case 42: { + if (mapFeatures_ == null) { + MapFeatures = new global::Google.Maps.MapManagement.V2Beta.MapFeatures(); + } + input.ReadMessage(MapFeatures); + break; + } + case 50: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 58: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + case 64: { + MapType = (global::Google.Maps.MapManagement.V2Beta.MapRenderingType) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + /// + /// Represents a single style in a Maps API client application. The StyleConfig + /// contains the style sheet that defines the visual appearance of the map. + /// Next ID = 9; + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StyleConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StyleConfig()); + 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.Maps.MapManagement.V2Beta.MapManagementServiceReflection.Descriptor.MessageTypes[8]; } + } + + [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 StyleConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StyleConfig(StyleConfig other) : this() { + name_ = other.name_; + displayName_ = other.displayName_; + description_ = other.description_; + styleId_ = other.styleId_; + jsonStyleSheet_ = other.jsonStyleSheet_; + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StyleConfig Clone() { + return new StyleConfig(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Output only. Identifier. Resource name of this StyleConfig. + /// For example: "projects/my-project-123/styleConfigs/234". + /// + [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 "display_name" field. + public const int DisplayNameFieldNumber = 2; + private string displayName_ = ""; + /// + /// Optional. The display name of this StyleConfig, as specified by the user. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DisplayName { + get { return displayName_; } + set { + displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 3; + private string description_ = ""; + /// + /// Optional. The description of this StyleConfig, as specified by the user. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Description { + get { return description_; } + set { + description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "style_id" field. + public const int StyleIdFieldNumber = 4; + private string styleId_ = ""; + /// + /// Output only. The unique identifier of this style. This is a read-only field + /// that is generated when the StyleConfig is created. Output only. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string StyleId { + get { return styleId_; } + set { + styleId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "json_style_sheet" field. + public const int JsonStyleSheetFieldNumber = 6; + private string jsonStyleSheet_ = ""; + /// + /// Optional. JSON representation of the style sheet for this StyleConfig. If + /// not specified or if provided as an empty string, the base unstyled Google + /// map style will be used. See + /// https://developers.google.com/maps/documentation/javascript/cloud-customization/json-reference + /// for more details on the acceptable JSON format. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string JsonStyleSheet { + get { return jsonStyleSheet_; } + set { + jsonStyleSheet_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "create_time" field. + public const int CreateTimeFieldNumber = 7; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. Denotes the creation time of the StyleConfig. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime { + get { return createTime_; } + set { + createTime_ = value; + } + } + + /// Field number for the "update_time" field. + public const int UpdateTimeFieldNumber = 8; + private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_; + /// + /// Output only. Denotes the last update time of the StyleConfig. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime { + get { return updateTime_; } + set { + updateTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StyleConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StyleConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (DisplayName != other.DisplayName) return false; + if (Description != other.Description) return false; + if (StyleId != other.StyleId) return false; + if (JsonStyleSheet != other.JsonStyleSheet) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (!object.Equals(UpdateTime, other.UpdateTime)) 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 (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); + if (Description.Length != 0) hash ^= Description.GetHashCode(); + if (StyleId.Length != 0) hash ^= StyleId.GetHashCode(); + if (JsonStyleSheet.Length != 0) hash ^= JsonStyleSheet.GetHashCode(); + if (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (updateTime_ != null) hash ^= UpdateTime.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 (DisplayName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(DisplayName); + } + if (Description.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Description); + } + if (StyleId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(StyleId); + } + if (JsonStyleSheet.Length != 0) { + output.WriteRawTag(50); + output.WriteString(JsonStyleSheet); + } + if (createTime_ != null) { + output.WriteRawTag(58); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(66); + output.WriteMessage(UpdateTime); + } + 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 (DisplayName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(DisplayName); + } + if (Description.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Description); + } + if (StyleId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(StyleId); + } + if (JsonStyleSheet.Length != 0) { + output.WriteRawTag(50); + output.WriteString(JsonStyleSheet); + } + if (createTime_ != null) { + output.WriteRawTag(58); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(66); + output.WriteMessage(UpdateTime); + } + 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 (DisplayName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName); + } + if (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (StyleId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(StyleId); + } + if (JsonStyleSheet.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(JsonStyleSheet); + } + if (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (updateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StyleConfig other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.DisplayName.Length != 0) { + DisplayName = other.DisplayName; + } + if (other.Description.Length != 0) { + Description = other.Description; + } + if (other.StyleId.Length != 0) { + StyleId = other.StyleId; + } + if (other.JsonStyleSheet.Length != 0) { + JsonStyleSheet = other.JsonStyleSheet; + } + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.updateTime_ != null) { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdateTime.MergeFrom(other.UpdateTime); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + DisplayName = input.ReadString(); + break; + } + case 26: { + Description = input.ReadString(); + break; + } + case 34: { + StyleId = input.ReadString(); + break; + } + case 50: { + JsonStyleSheet = input.ReadString(); + break; + } + case 58: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 66: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + DisplayName = input.ReadString(); + break; + } + case 26: { + Description = input.ReadString(); + break; + } + case 34: { + StyleId = input.ReadString(); + break; + } + case 50: { + JsonStyleSheet = input.ReadString(); + break; + } + case 58: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 66: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + } + } + } + #endif + + } + + /// + /// Request to create a StyleConfig. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CreateStyleConfigRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateStyleConfigRequest()); + 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.Maps.MapManagement.V2Beta.MapManagementServiceReflection.Descriptor.MessageTypes[9]; } + } + + [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 CreateStyleConfigRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateStyleConfigRequest(CreateStyleConfigRequest other) : this() { + parent_ = other.parent_; + styleConfig_ = other.styleConfig_ != null ? other.styleConfig_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateStyleConfigRequest Clone() { + return new CreateStyleConfigRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; + /// + /// Required. Parent project that will own the StyleConfig. + /// Format: `projects/{project}` + /// + [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 "style_config" field. + public const int StyleConfigFieldNumber = 2; + private global::Google.Maps.MapManagement.V2Beta.StyleConfig styleConfig_; + /// + /// Required. The StyleConfig to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Maps.MapManagement.V2Beta.StyleConfig StyleConfig { + get { return styleConfig_; } + set { + styleConfig_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateStyleConfigRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateStyleConfigRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Parent != other.Parent) return false; + if (!object.Equals(StyleConfig, other.StyleConfig)) 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 (styleConfig_ != null) hash ^= StyleConfig.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 (styleConfig_ != null) { + output.WriteRawTag(18); + output.WriteMessage(StyleConfig); + } + 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 (styleConfig_ != null) { + output.WriteRawTag(18); + output.WriteMessage(StyleConfig); + } + 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 (styleConfig_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StyleConfig); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateStyleConfigRequest other) { + if (other == null) { + return; + } + if (other.Parent.Length != 0) { + Parent = other.Parent; + } + if (other.styleConfig_ != null) { + if (styleConfig_ == null) { + StyleConfig = new global::Google.Maps.MapManagement.V2Beta.StyleConfig(); + } + StyleConfig.MergeFrom(other.StyleConfig); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + if (styleConfig_ == null) { + StyleConfig = new global::Google.Maps.MapManagement.V2Beta.StyleConfig(); + } + input.ReadMessage(StyleConfig); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + if (styleConfig_ == null) { + StyleConfig = new global::Google.Maps.MapManagement.V2Beta.StyleConfig(); + } + input.ReadMessage(StyleConfig); + break; + } + } + } + } + #endif + + } + + /// + /// Request to get a StyleConfig. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetStyleConfigRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetStyleConfigRequest()); + 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.Maps.MapManagement.V2Beta.MapManagementServiceReflection.Descriptor.MessageTypes[10]; } + } + + [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 GetStyleConfigRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetStyleConfigRequest(GetStyleConfigRequest other) : this() { + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetStyleConfigRequest Clone() { + return new GetStyleConfigRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. Resource name of the StyleConfig. + /// Format: `projects/{project}/styleConfigs/{style_config}` + /// + [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 GetStyleConfigRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetStyleConfigRequest 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(GetStyleConfigRequest 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Request to list StyleConfigs. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ListStyleConfigsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListStyleConfigsRequest()); + 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.Maps.MapManagement.V2Beta.MapManagementServiceReflection.Descriptor.MessageTypes[11]; } + } + + [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 ListStyleConfigsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListStyleConfigsRequest(ListStyleConfigsRequest other) : this() { + parent_ = other.parent_; + pageSize_ = other.pageSize_; + pageToken_ = other.pageToken_; + filter_ = other.filter_; + view_ = other.view_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListStyleConfigsRequest Clone() { + return new ListStyleConfigsRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; + /// + /// Required. Parent project that owns the StyleConfigs. + /// Format: `projects/{project}` + /// + [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 "page_size" field. + public const int PageSizeFieldNumber = 2; + private int pageSize_; + /// + /// Optional. The maximum number of StyleConfigs to return. The service may + /// return fewer than this value. If unspecified, at most 50 StyleConfigs will + /// be returned. The maximum value is 1000; values above 1000 will be coerced + /// to 1000. CURRENTLY UNSUPPORTED. + /// + [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_ = ""; + /// + /// Optional. A page token, received from a previous `ListStyleConfigs` call. + /// Provide this to retrieve the subsequent page. + /// + /// When paginating, all other parameters provided to `ListStyleConfigs` must + /// match the call that provided the page token. + /// CURRENTLY UNSUPPORTED. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PageToken { + get { return pageToken_; } + set { + pageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "filter" field. + public const int FilterFieldNumber = 4; + private string filter_ = ""; + /// + /// Optional. Filter expression for the ListStyleConfigs call. + /// Currently only supports filtering by display_name. + /// For example: `display_name="My StyleConfig"` will return all StyleConfigs + /// with the display name "My StyleConfig". + /// + [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 "view" field. + public const int ViewFieldNumber = 5; + private global::Google.Maps.MapManagement.V2Beta.StyleConfigView view_ = global::Google.Maps.MapManagement.V2Beta.StyleConfigView.Unspecified; + /// + /// Optional. The subset of the StyleConfig to return. If this is unset, the + /// default behavior is to return the FULL view. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Maps.MapManagement.V2Beta.StyleConfigView View { + get { return view_; } + set { + view_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListStyleConfigsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListStyleConfigsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Parent != other.Parent) return false; + if (PageSize != other.PageSize) return false; + if (PageToken != other.PageToken) return false; + if (Filter != other.Filter) return false; + if (View != other.View) 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 (PageSize != 0) hash ^= PageSize.GetHashCode(); + if (PageToken.Length != 0) hash ^= PageToken.GetHashCode(); + if (Filter.Length != 0) hash ^= Filter.GetHashCode(); + if (View != global::Google.Maps.MapManagement.V2Beta.StyleConfigView.Unspecified) hash ^= View.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 (View != global::Google.Maps.MapManagement.V2Beta.StyleConfigView.Unspecified) { + output.WriteRawTag(40); + output.WriteEnum((int) View); + } + 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 (View != global::Google.Maps.MapManagement.V2Beta.StyleConfigView.Unspecified) { + output.WriteRawTag(40); + output.WriteEnum((int) View); + } + 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 (PageSize != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PageSize); + } + if (PageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PageToken); + } + if (Filter.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Filter); + } + if (View != global::Google.Maps.MapManagement.V2Beta.StyleConfigView.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) View); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListStyleConfigsRequest other) { + if (other == null) { + return; + } + if (other.Parent.Length != 0) { + Parent = other.Parent; + } + if (other.PageSize != 0) { + PageSize = other.PageSize; + } + if (other.PageToken.Length != 0) { + PageToken = other.PageToken; + } + if (other.Filter.Length != 0) { + Filter = other.Filter; + } + if (other.View != global::Google.Maps.MapManagement.V2Beta.StyleConfigView.Unspecified) { + View = other.View; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 16: { + PageSize = input.ReadInt32(); + break; + } + case 26: { + PageToken = input.ReadString(); + break; + } + case 34: { + Filter = input.ReadString(); + break; + } + case 40: { + View = (global::Google.Maps.MapManagement.V2Beta.StyleConfigView) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 16: { + PageSize = input.ReadInt32(); + break; + } + case 26: { + PageToken = input.ReadString(); + break; + } + case 34: { + Filter = input.ReadString(); + break; + } + case 40: { + View = (global::Google.Maps.MapManagement.V2Beta.StyleConfigView) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + /// + /// Response to list StyleConfigs. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ListStyleConfigsResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListStyleConfigsResponse()); + 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.Maps.MapManagement.V2Beta.MapManagementServiceReflection.Descriptor.MessageTypes[12]; } + } + + [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 ListStyleConfigsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListStyleConfigsResponse(ListStyleConfigsResponse other) : this() { + styleConfigs_ = other.styleConfigs_.Clone(); + nextPageToken_ = other.nextPageToken_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListStyleConfigsResponse Clone() { + return new ListStyleConfigsResponse(this); + } + + /// Field number for the "style_configs" field. + public const int StyleConfigsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_styleConfigs_codec + = pb::FieldCodec.ForMessage(10, global::Google.Maps.MapManagement.V2Beta.StyleConfig.Parser); + private readonly pbc::RepeatedField styleConfigs_ = new pbc::RepeatedField(); + /// + /// The StyleConfigs. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField StyleConfigs { + get { return styleConfigs_; } + } + + /// Field number for the "next_page_token" field. + public const int NextPageTokenFieldNumber = 2; + private string nextPageToken_ = ""; + /// + /// A token, which can be sent as `page_token` to retrieve the next page. + /// If this field is omitted, there are no subsequent pages. + /// CURRENTLY UNSUPPORTED. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NextPageToken { + get { return nextPageToken_; } + set { + nextPageToken_ = 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 ListStyleConfigsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListStyleConfigsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!styleConfigs_.Equals(other.styleConfigs_)) return false; + if (NextPageToken != other.NextPageToken) 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 ^= styleConfigs_.GetHashCode(); + if (NextPageToken.Length != 0) hash ^= NextPageToken.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 + styleConfigs_.WriteTo(output, _repeated_styleConfigs_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + 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) { + styleConfigs_.WriteTo(ref output, _repeated_styleConfigs_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + 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 += styleConfigs_.CalculateSize(_repeated_styleConfigs_codec); + if (NextPageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NextPageToken); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListStyleConfigsResponse other) { + if (other == null) { + return; + } + styleConfigs_.Add(other.styleConfigs_); + if (other.NextPageToken.Length != 0) { + NextPageToken = other.NextPageToken; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + styleConfigs_.AddEntriesFrom(input, _repeated_styleConfigs_codec); + break; + } + case 18: { + NextPageToken = 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + styleConfigs_.AddEntriesFrom(ref input, _repeated_styleConfigs_codec); + break; + } + case 18: { + NextPageToken = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Request to update a StyleConfig. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UpdateStyleConfigRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateStyleConfigRequest()); + 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.Maps.MapManagement.V2Beta.MapManagementServiceReflection.Descriptor.MessageTypes[13]; } + } + + [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 UpdateStyleConfigRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateStyleConfigRequest(UpdateStyleConfigRequest other) : this() { + styleConfig_ = other.styleConfig_ != null ? other.styleConfig_.Clone() : null; + updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateStyleConfigRequest Clone() { + return new UpdateStyleConfigRequest(this); + } + + /// Field number for the "style_config" field. + public const int StyleConfigFieldNumber = 1; + private global::Google.Maps.MapManagement.V2Beta.StyleConfig styleConfig_; + /// + /// Required. The StyleConfig to update. + /// + /// The StyleConfig's `name` field is used to identify the StyleConfig to + /// update. Format: `projects/{project}/styleConfigs/{style_config}` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Maps.MapManagement.V2Beta.StyleConfig StyleConfig { + get { return styleConfig_; } + set { + styleConfig_ = value; + } + } + + /// Field number for the "update_mask" field. + public const int UpdateMaskFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; + /// + /// Optional. The list of fields to update. If not specified, the StyleConfig + /// will be updated in its entirety. Valid fields are: + /// + /// * `display_name` + /// * `description` + /// * `json_style_sheet` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { + get { return updateMask_; } + set { + updateMask_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateStyleConfigRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateStyleConfigRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(StyleConfig, other.StyleConfig)) return false; + if (!object.Equals(UpdateMask, other.UpdateMask)) 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 (styleConfig_ != null) hash ^= StyleConfig.GetHashCode(); + if (updateMask_ != null) hash ^= UpdateMask.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 (styleConfig_ != null) { + output.WriteRawTag(10); + output.WriteMessage(StyleConfig); + } + if (updateMask_ != null) { + output.WriteRawTag(18); + output.WriteMessage(UpdateMask); + } + 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 (styleConfig_ != null) { + output.WriteRawTag(10); + output.WriteMessage(StyleConfig); + } + if (updateMask_ != null) { + output.WriteRawTag(18); + output.WriteMessage(UpdateMask); + } + 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 (styleConfig_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StyleConfig); + } + if (updateMask_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateStyleConfigRequest other) { + if (other == null) { + return; + } + if (other.styleConfig_ != null) { + if (styleConfig_ == null) { + StyleConfig = new global::Google.Maps.MapManagement.V2Beta.StyleConfig(); + } + StyleConfig.MergeFrom(other.StyleConfig); + } + if (other.updateMask_ != null) { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + UpdateMask.MergeFrom(other.UpdateMask); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (styleConfig_ == null) { + StyleConfig = new global::Google.Maps.MapManagement.V2Beta.StyleConfig(); + } + input.ReadMessage(StyleConfig); + break; + } + case 18: { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + input.ReadMessage(UpdateMask); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (styleConfig_ == null) { + StyleConfig = new global::Google.Maps.MapManagement.V2Beta.StyleConfig(); + } + input.ReadMessage(StyleConfig); + break; + } + case 18: { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + input.ReadMessage(UpdateMask); + break; + } + } + } + } + #endif + + } + + /// + /// Request to delete a StyleConfig. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DeleteStyleConfigRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteStyleConfigRequest()); + 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.Maps.MapManagement.V2Beta.MapManagementServiceReflection.Descriptor.MessageTypes[14]; } + } + + [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 DeleteStyleConfigRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteStyleConfigRequest(DeleteStyleConfigRequest other) : this() { + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteStyleConfigRequest Clone() { + return new DeleteStyleConfigRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. Resource name of the StyleConfig to delete. + /// Format: `projects/{project}/styleConfigs/{style_config}` + /// + [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 DeleteStyleConfigRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteStyleConfigRequest 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(DeleteStyleConfigRequest 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Encapsulates the styling configuration for a map. The MapContextConfig + /// associates styling components, such as a StyleConfig and Datasets, with + /// specific map variants of a MapConfig. When the MapConfig is loaded in an SDK, + /// the styling and dataset information from the MapContextConfig are applied to + /// the specified map variants. + /// Next ID = 10; + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class MapContextConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MapContextConfig()); + 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.Maps.MapManagement.V2Beta.MapManagementServiceReflection.Descriptor.MessageTypes[15]; } + } + + [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 MapContextConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MapContextConfig(MapContextConfig other) : this() { + name_ = other.name_; + mapConfig_ = other.mapConfig_; + styleConfig_ = other.styleConfig_; + dataset_ = other.dataset_.Clone(); + alias_ = other.alias_; + mapVariants_ = other.mapVariants_.Clone(); + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MapContextConfig Clone() { + return new MapContextConfig(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Output only. Identifier. Resource name of this MapContextConfig. + /// For example: + /// projects/{project_id}/mapConfigs/{map_id}/mapContextConfigs/{map_context_config_id} + /// + [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 "map_config" field. + public const int MapConfigFieldNumber = 2; + private string mapConfig_ = ""; + /// + /// Required. The MapConfig resource name that this MapContextConfig is + /// associated with. Format: projects/{project}/mapConfigs/{map_config}. This + /// field is required and cannot be omitted. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MapConfig { + get { return mapConfig_; } + set { + mapConfig_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "style_config" field. + public const int StyleConfigFieldNumber = 3; + private string styleConfig_ = ""; + /// + /// Required. The StyleConfig resource name that is styling this + /// MapContextConfig. This field is required and cannot be omitted. Format: + /// projects/{project}/styleConfigs/{style_config} + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string StyleConfig { + get { return styleConfig_; } + set { + styleConfig_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "dataset" field. + public const int DatasetFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_dataset_codec + = pb::FieldCodec.ForString(34); + private readonly pbc::RepeatedField dataset_ = new pbc::RepeatedField(); + /// + /// Optional. The Dataset resource name that is associated with this + /// MapContextConfig. This field is optional and can be omitted. If omitted, no + /// datasets will be associated with the MapContextConfig. If a dataset is + /// specified, it will be applied to the MapContextConfig. Format: + /// projects/{project}/datasets/{dataset} + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Dataset { + get { return dataset_; } + } + + /// Field number for the "alias" field. + public const int AliasFieldNumber = 5; + private string alias_ = ""; + /// + /// Optional. The user defined human readable name for this MapContextConfig. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Alias { + get { return alias_; } + set { + alias_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "map_variants" field. + public const int MapVariantsFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_mapVariants_codec + = pb::FieldCodec.ForEnum(50, x => (int) x, x => (global::Google.Maps.MapManagement.V2Beta.MapContextConfig.Types.MapVariant) x); + private readonly pbc::RepeatedField mapVariants_ = new pbc::RepeatedField(); + /// + /// Required. The map variants that this MapContextConfig can be applied to. If + /// empty, the MapContextConfig will be default applied to only the ROADMAP map + /// variant. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MapVariants { + get { return mapVariants_; } + } + + /// Field number for the "create_time" field. + public const int CreateTimeFieldNumber = 7; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. Denotes the creation time of the MapContextConfig. Output + /// only. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime { + get { return createTime_; } + set { + createTime_ = value; + } + } + + /// Field number for the "update_time" field. + public const int UpdateTimeFieldNumber = 8; + private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_; + /// + /// Output only. Denotes the last update time of the MapContextConfig. Output + /// only. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime { + get { return updateTime_; } + set { + updateTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MapContextConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MapContextConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (MapConfig != other.MapConfig) return false; + if (StyleConfig != other.StyleConfig) return false; + if(!dataset_.Equals(other.dataset_)) return false; + if (Alias != other.Alias) return false; + if(!mapVariants_.Equals(other.mapVariants_)) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (!object.Equals(UpdateTime, other.UpdateTime)) 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 (MapConfig.Length != 0) hash ^= MapConfig.GetHashCode(); + if (StyleConfig.Length != 0) hash ^= StyleConfig.GetHashCode(); + hash ^= dataset_.GetHashCode(); + if (Alias.Length != 0) hash ^= Alias.GetHashCode(); + hash ^= mapVariants_.GetHashCode(); + if (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (updateTime_ != null) hash ^= UpdateTime.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 (MapConfig.Length != 0) { + output.WriteRawTag(18); + output.WriteString(MapConfig); + } + if (StyleConfig.Length != 0) { + output.WriteRawTag(26); + output.WriteString(StyleConfig); + } + dataset_.WriteTo(output, _repeated_dataset_codec); + if (Alias.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Alias); + } + mapVariants_.WriteTo(output, _repeated_mapVariants_codec); + if (createTime_ != null) { + output.WriteRawTag(58); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(66); + output.WriteMessage(UpdateTime); + } + 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 (MapConfig.Length != 0) { + output.WriteRawTag(18); + output.WriteString(MapConfig); + } + if (StyleConfig.Length != 0) { + output.WriteRawTag(26); + output.WriteString(StyleConfig); + } + dataset_.WriteTo(ref output, _repeated_dataset_codec); + if (Alias.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Alias); + } + mapVariants_.WriteTo(ref output, _repeated_mapVariants_codec); + if (createTime_ != null) { + output.WriteRawTag(58); + output.WriteMessage(CreateTime); + } + if (updateTime_ != null) { + output.WriteRawTag(66); + output.WriteMessage(UpdateTime); + } + 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 (MapConfig.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MapConfig); + } + if (StyleConfig.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(StyleConfig); + } + size += dataset_.CalculateSize(_repeated_dataset_codec); + if (Alias.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Alias); + } + size += mapVariants_.CalculateSize(_repeated_mapVariants_codec); + if (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (updateTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MapContextConfig other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.MapConfig.Length != 0) { + MapConfig = other.MapConfig; + } + if (other.StyleConfig.Length != 0) { + StyleConfig = other.StyleConfig; + } + dataset_.Add(other.dataset_); + if (other.Alias.Length != 0) { + Alias = other.Alias; + } + mapVariants_.Add(other.mapVariants_); + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.updateTime_ != null) { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdateTime.MergeFrom(other.UpdateTime); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + MapConfig = input.ReadString(); + break; + } + case 26: { + StyleConfig = input.ReadString(); + break; + } + case 34: { + dataset_.AddEntriesFrom(input, _repeated_dataset_codec); + break; + } + case 42: { + Alias = input.ReadString(); + break; + } + case 50: + case 48: { + mapVariants_.AddEntriesFrom(input, _repeated_mapVariants_codec); + break; + } + case 58: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 66: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + MapConfig = input.ReadString(); + break; + } + case 26: { + StyleConfig = input.ReadString(); + break; + } + case 34: { + dataset_.AddEntriesFrom(ref input, _repeated_dataset_codec); + break; + } + case 42: { + Alias = input.ReadString(); + break; + } + case 50: + case 48: { + mapVariants_.AddEntriesFrom(ref input, _repeated_mapVariants_codec); + break; + } + case 58: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 66: { + if (updateTime_ == null) { + UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdateTime); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the MapContextConfig message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Possible Map Variants that the MapContextConfig can be applied to. + /// Map Variants are grouped into Light and Dark variants. A Light variant + /// cannot be paired with a Dark variant for the same MapContextConfig. + /// The Light Variants are: ROADMAP, SATELLITE, TERRAIN, NAVIGATION, TRANSIT, + /// ABSTRACT3D, PHOTOREALISTIC3D. + /// The Dark Variants are: ROADMAP_DARK, NAVIGATION_LOW_LIGHT, TERRAIN_DARK, + /// TRANSIT_DARK. + /// + /// For example, the following is a valid pairing: + /// {MapContextConfig 1: [ROADMAP, NAVIGATION]} + /// {MapContextConfig 2: [ROADMAP_DARK, NAVIGATION_LOW_LIGHT]} + /// + /// The following is an invalid pairing: + /// {MapContextConfig 1: [ROADMAP, ROADMAP_DARK]} + /// + public enum MapVariant { + /// + /// The default roadmap map type. If no map variants are specified in a + /// MapContextConfig, this variant is used by default. + /// + [pbr::OriginalName("ROADMAP")] Roadmap = 0, + /// + /// A dark version of the roadmap map type. + /// + [pbr::OriginalName("ROADMAP_DARK")] RoadmapDark = 1, + /// + /// Satellite imagery. + /// + [pbr::OriginalName("SATELLITE")] Satellite = 2, + /// + /// Terrain map type. + /// + [pbr::OriginalName("TERRAIN")] Terrain = 3, + /// + /// A dark version of the terrain map type. + /// + [pbr::OriginalName("TERRAIN_DARK")] TerrainDark = 4, + /// + /// Navigation map type. + /// + [pbr::OriginalName("NAVIGATION")] Navigation = 5, + /// + /// A low light version of the navigation map type. + /// + [pbr::OriginalName("NAVIGATION_LOW_LIGHT")] NavigationLowLight = 6, + /// + /// Transit map type. + /// + [pbr::OriginalName("TRANSIT")] Transit = 7, + /// + /// A dark version of the transit map type. + /// + [pbr::OriginalName("TRANSIT_DARK")] TransitDark = 8, + /// + /// Abstract 3D map type. + /// + [pbr::OriginalName("ABSTRACT3D")] Abstract3D = 9, + /// + /// Photorealistic 3D map type. + /// + [pbr::OriginalName("PHOTOREALISTIC3D")] Photorealistic3D = 10, + } + + } + #endregion + + } + + /// + /// Request to create a MapContextConfig. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CreateMapContextConfigRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateMapContextConfigRequest()); + 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.Maps.MapManagement.V2Beta.MapManagementServiceReflection.Descriptor.MessageTypes[16]; } + } + + [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 CreateMapContextConfigRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateMapContextConfigRequest(CreateMapContextConfigRequest other) : this() { + parent_ = other.parent_; + mapContextConfig_ = other.mapContextConfig_ != null ? other.mapContextConfig_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateMapContextConfigRequest Clone() { + return new CreateMapContextConfigRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; + /// + /// Required. Parent MapConfig that will own the MapContextConfig. + /// Format: `projects/{project}/mapConfigs/{map_config}` + /// + [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 "map_context_config" field. + public const int MapContextConfigFieldNumber = 2; + private global::Google.Maps.MapManagement.V2Beta.MapContextConfig mapContextConfig_; + /// + /// Required. The MapContextConfig to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Maps.MapManagement.V2Beta.MapContextConfig MapContextConfig { + get { return mapContextConfig_; } + set { + mapContextConfig_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateMapContextConfigRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateMapContextConfigRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Parent != other.Parent) return false; + if (!object.Equals(MapContextConfig, other.MapContextConfig)) 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 (mapContextConfig_ != null) hash ^= MapContextConfig.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 (mapContextConfig_ != null) { + output.WriteRawTag(18); + output.WriteMessage(MapContextConfig); + } + 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 (mapContextConfig_ != null) { + output.WriteRawTag(18); + output.WriteMessage(MapContextConfig); + } + 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 (mapContextConfig_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MapContextConfig); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateMapContextConfigRequest other) { + if (other == null) { + return; + } + if (other.Parent.Length != 0) { + Parent = other.Parent; + } + if (other.mapContextConfig_ != null) { + if (mapContextConfig_ == null) { + MapContextConfig = new global::Google.Maps.MapManagement.V2Beta.MapContextConfig(); + } + MapContextConfig.MergeFrom(other.MapContextConfig); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + if (mapContextConfig_ == null) { + MapContextConfig = new global::Google.Maps.MapManagement.V2Beta.MapContextConfig(); + } + input.ReadMessage(MapContextConfig); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + if (mapContextConfig_ == null) { + MapContextConfig = new global::Google.Maps.MapManagement.V2Beta.MapContextConfig(); + } + input.ReadMessage(MapContextConfig); + break; + } + } + } + } + #endif + + } + + /// + /// Request to get a MapContextConfig. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetMapContextConfigRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetMapContextConfigRequest()); + 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.Maps.MapManagement.V2Beta.MapManagementServiceReflection.Descriptor.MessageTypes[17]; } + } + + [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 GetMapContextConfigRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetMapContextConfigRequest(GetMapContextConfigRequest other) : this() { + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetMapContextConfigRequest Clone() { + return new GetMapContextConfigRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. Resource name of the MapContextConfig. + /// Format: + /// `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}` + /// + [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 GetMapContextConfigRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetMapContextConfigRequest 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(GetMapContextConfigRequest 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Request to list MapContextConfigs. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ListMapContextConfigsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListMapContextConfigsRequest()); + 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.Maps.MapManagement.V2Beta.MapManagementServiceReflection.Descriptor.MessageTypes[18]; } + } + + [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 ListMapContextConfigsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListMapContextConfigsRequest(ListMapContextConfigsRequest other) : this() { + parent_ = other.parent_; + pageSize_ = other.pageSize_; + pageToken_ = other.pageToken_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListMapContextConfigsRequest Clone() { + return new ListMapContextConfigsRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; + /// + /// Required. Parent MapConfig that owns the MapContextConfigs. + /// Format: `projects/{project}/mapConfigs/{map_config}` + /// + [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 "page_size" field. + public const int PageSizeFieldNumber = 2; + private int pageSize_; + /// + /// Optional. The maximum number of MapContextConfigs to return. The service + /// may return fewer than this value. If unspecified, at most 50 + /// MapContextConfigs will be returned. The maximum value is 1000; values above + /// 1000 will be coerced to 1000. CURRENTLY UNSUPPORTED. + /// + [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_ = ""; + /// + /// Optional. A page token, received from a previous `ListMapContextConfigs` + /// call. Provide this to retrieve the subsequent page. + /// + /// When paginating, all other parameters provided to `ListMapContextConfigs` + /// must match the call that provided the page token. CURRENTLY UNSUPPORTED. + /// + [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 ListMapContextConfigsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListMapContextConfigsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Parent != other.Parent) 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 (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 (_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 (_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 (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(ListMapContextConfigsRequest other) { + if (other == null) { + return; + } + if (other.Parent.Length != 0) { + Parent = other.Parent; + } + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + 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; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 16: { + PageSize = input.ReadInt32(); + break; + } + case 26: { + PageToken = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Response to list MapContextConfigs. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ListMapContextConfigsResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListMapContextConfigsResponse()); + 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.Maps.MapManagement.V2Beta.MapManagementServiceReflection.Descriptor.MessageTypes[19]; } + } + + [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 ListMapContextConfigsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListMapContextConfigsResponse(ListMapContextConfigsResponse other) : this() { + mapContextConfigs_ = other.mapContextConfigs_.Clone(); + nextPageToken_ = other.nextPageToken_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListMapContextConfigsResponse Clone() { + return new ListMapContextConfigsResponse(this); + } + + /// Field number for the "map_context_configs" field. + public const int MapContextConfigsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_mapContextConfigs_codec + = pb::FieldCodec.ForMessage(10, global::Google.Maps.MapManagement.V2Beta.MapContextConfig.Parser); + private readonly pbc::RepeatedField mapContextConfigs_ = new pbc::RepeatedField(); + /// + /// The MapContextConfigs. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MapContextConfigs { + get { return mapContextConfigs_; } + } + + /// Field number for the "next_page_token" field. + public const int NextPageTokenFieldNumber = 2; + private string nextPageToken_ = ""; + /// + /// A token, which can be sent as `page_token` to retrieve the next page. + /// If this field is omitted, there are no subsequent pages. + /// CURRENTLY UNSUPPORTED. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NextPageToken { + get { return nextPageToken_; } + set { + nextPageToken_ = 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 ListMapContextConfigsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListMapContextConfigsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!mapContextConfigs_.Equals(other.mapContextConfigs_)) return false; + if (NextPageToken != other.NextPageToken) 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 ^= mapContextConfigs_.GetHashCode(); + if (NextPageToken.Length != 0) hash ^= NextPageToken.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 + mapContextConfigs_.WriteTo(output, _repeated_mapContextConfigs_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + 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) { + mapContextConfigs_.WriteTo(ref output, _repeated_mapContextConfigs_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + 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 += mapContextConfigs_.CalculateSize(_repeated_mapContextConfigs_codec); + if (NextPageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NextPageToken); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListMapContextConfigsResponse other) { + if (other == null) { + return; + } + mapContextConfigs_.Add(other.mapContextConfigs_); + if (other.NextPageToken.Length != 0) { + NextPageToken = other.NextPageToken; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + mapContextConfigs_.AddEntriesFrom(input, _repeated_mapContextConfigs_codec); + break; + } + case 18: { + NextPageToken = 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + mapContextConfigs_.AddEntriesFrom(ref input, _repeated_mapContextConfigs_codec); + break; + } + case 18: { + NextPageToken = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Request to update a MapContextConfig. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UpdateMapContextConfigRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateMapContextConfigRequest()); + 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.Maps.MapManagement.V2Beta.MapManagementServiceReflection.Descriptor.MessageTypes[20]; } + } + + [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 UpdateMapContextConfigRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateMapContextConfigRequest(UpdateMapContextConfigRequest other) : this() { + mapContextConfig_ = other.mapContextConfig_ != null ? other.mapContextConfig_.Clone() : null; + updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateMapContextConfigRequest Clone() { + return new UpdateMapContextConfigRequest(this); + } + + /// Field number for the "map_context_config" field. + public const int MapContextConfigFieldNumber = 1; + private global::Google.Maps.MapManagement.V2Beta.MapContextConfig mapContextConfig_; + /// + /// Required. The MapContextConfig to update. + /// + /// The MapContextConfig's `name` field is used to identify the + /// MapContextConfig to update. Format: + /// `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Maps.MapManagement.V2Beta.MapContextConfig MapContextConfig { + get { return mapContextConfig_; } + set { + mapContextConfig_ = value; + } + } + + /// Field number for the "update_mask" field. + public const int UpdateMaskFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; + /// + /// Optional. The list of fields to update. If not specified, the + /// MapContextConfig will be updated in its entirety. Valid fields are: + /// + /// * `display_name` + /// * `alias` + /// * `map_variants` + /// * `style_config` + /// * `dataset` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { + get { return updateMask_; } + set { + updateMask_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateMapContextConfigRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateMapContextConfigRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(MapContextConfig, other.MapContextConfig)) return false; + if (!object.Equals(UpdateMask, other.UpdateMask)) 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 (mapContextConfig_ != null) hash ^= MapContextConfig.GetHashCode(); + if (updateMask_ != null) hash ^= UpdateMask.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 (mapContextConfig_ != null) { + output.WriteRawTag(10); + output.WriteMessage(MapContextConfig); + } + if (updateMask_ != null) { + output.WriteRawTag(18); + output.WriteMessage(UpdateMask); + } + 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 (mapContextConfig_ != null) { + output.WriteRawTag(10); + output.WriteMessage(MapContextConfig); + } + if (updateMask_ != null) { + output.WriteRawTag(18); + output.WriteMessage(UpdateMask); + } + 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 (mapContextConfig_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MapContextConfig); + } + if (updateMask_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateMapContextConfigRequest other) { + if (other == null) { + return; + } + if (other.mapContextConfig_ != null) { + if (mapContextConfig_ == null) { + MapContextConfig = new global::Google.Maps.MapManagement.V2Beta.MapContextConfig(); + } + MapContextConfig.MergeFrom(other.MapContextConfig); + } + if (other.updateMask_ != null) { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + UpdateMask.MergeFrom(other.UpdateMask); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (mapContextConfig_ == null) { + MapContextConfig = new global::Google.Maps.MapManagement.V2Beta.MapContextConfig(); + } + input.ReadMessage(MapContextConfig); + break; + } + case 18: { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + input.ReadMessage(UpdateMask); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (mapContextConfig_ == null) { + MapContextConfig = new global::Google.Maps.MapManagement.V2Beta.MapContextConfig(); + } + input.ReadMessage(MapContextConfig); + break; + } + case 18: { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + input.ReadMessage(UpdateMask); + break; + } + } + } + } + #endif + + } + + /// + /// Request to delete a MapContextConfig. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DeleteMapContextConfigRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteMapContextConfigRequest()); + 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.Maps.MapManagement.V2Beta.MapManagementServiceReflection.Descriptor.MessageTypes[21]; } + } + + [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 DeleteMapContextConfigRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteMapContextConfigRequest(DeleteMapContextConfigRequest other) : this() { + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteMapContextConfigRequest Clone() { + return new DeleteMapContextConfigRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. Resource name of the MapContextConfig to delete. + /// Format: + /// `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}` + /// + [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 DeleteMapContextConfigRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteMapContextConfigRequest 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(DeleteMapContextConfigRequest 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta/MapManagementServiceGrpc.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta/MapManagementServiceGrpc.g.cs new file mode 100644 index 000000000000..75fb91a755ba --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta/MapManagementServiceGrpc.g.cs @@ -0,0 +1,1240 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/maps/mapmanagement/v2beta/map_management_service.proto +// +// Original file comments: +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. +// +#pragma warning disable 0414, 1591, 8981, 0612 +#region Designer generated code + +using grpc = global::Grpc.Core; + +namespace Google.Maps.MapManagement.V2Beta { + /// + /// The Map Management API uses your inputs to create and manage + /// Google Cloud based styling resources for Google Maps. + /// + /// Using this API, you can can create and manage MapConfigs (Map IDs), + /// StyleConfigs (JSON-based styling), and MapContextConfigs (associations + /// between styles, datasets, and map variants). + /// + /// This API offers features through three channels: + /// * `v2alpha`: Experimental features. + /// * `v2beta`: Preview features, recommended for early adoption. + /// * `v2`: General Availability (GA) features. + /// + /// Capabilities described here are generally available across both the v2alpha + /// and v2beta endpoints. + /// + public static partial class MapManagement + { + static readonly string __ServiceName = "google.maps.mapmanagement.v2beta.MapManagement"; + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) + { + #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION + if (message is global::Google.Protobuf.IBufferMessage) + { + context.SetPayloadLength(message.CalculateSize()); + global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); + context.Complete(); + return; + } + #endif + context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static class __Helper_MessageCache + { + public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage + { + #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION + if (__Helper_MessageCache.IsBufferMessage) + { + return parser.ParseFrom(context.PayloadAsReadOnlySequence()); + } + #endif + return parser.ParseFrom(context.PayloadAsNewBuffer()); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_maps_mapmanagement_v2beta_CreateMapConfigRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Maps.MapManagement.V2Beta.CreateMapConfigRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_maps_mapmanagement_v2beta_MapConfig = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Maps.MapManagement.V2Beta.MapConfig.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_maps_mapmanagement_v2beta_GetMapConfigRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Maps.MapManagement.V2Beta.GetMapConfigRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_maps_mapmanagement_v2beta_ListMapConfigsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Maps.MapManagement.V2Beta.ListMapConfigsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_maps_mapmanagement_v2beta_ListMapConfigsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Maps.MapManagement.V2Beta.ListMapConfigsResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_maps_mapmanagement_v2beta_UpdateMapConfigRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Maps.MapManagement.V2Beta.UpdateMapConfigRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_maps_mapmanagement_v2beta_DeleteMapConfigRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Maps.MapManagement.V2Beta.DeleteMapConfigRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_protobuf_Empty = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Protobuf.WellKnownTypes.Empty.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_maps_mapmanagement_v2beta_CreateStyleConfigRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Maps.MapManagement.V2Beta.CreateStyleConfigRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_maps_mapmanagement_v2beta_StyleConfig = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Maps.MapManagement.V2Beta.StyleConfig.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_maps_mapmanagement_v2beta_GetStyleConfigRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Maps.MapManagement.V2Beta.GetStyleConfigRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_maps_mapmanagement_v2beta_ListStyleConfigsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Maps.MapManagement.V2Beta.ListStyleConfigsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_maps_mapmanagement_v2beta_ListStyleConfigsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Maps.MapManagement.V2Beta.ListStyleConfigsResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_maps_mapmanagement_v2beta_UpdateStyleConfigRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Maps.MapManagement.V2Beta.UpdateStyleConfigRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_maps_mapmanagement_v2beta_DeleteStyleConfigRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Maps.MapManagement.V2Beta.DeleteStyleConfigRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_maps_mapmanagement_v2beta_CreateMapContextConfigRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Maps.MapManagement.V2Beta.CreateMapContextConfigRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_maps_mapmanagement_v2beta_MapContextConfig = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Maps.MapManagement.V2Beta.MapContextConfig.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_maps_mapmanagement_v2beta_GetMapContextConfigRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Maps.MapManagement.V2Beta.GetMapContextConfigRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_maps_mapmanagement_v2beta_ListMapContextConfigsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Maps.MapManagement.V2Beta.ListMapContextConfigsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_maps_mapmanagement_v2beta_ListMapContextConfigsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Maps.MapManagement.V2Beta.ListMapContextConfigsResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_maps_mapmanagement_v2beta_UpdateMapContextConfigRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Maps.MapManagement.V2Beta.UpdateMapContextConfigRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_maps_mapmanagement_v2beta_DeleteMapContextConfigRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Maps.MapManagement.V2Beta.DeleteMapContextConfigRequest.Parser)); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_CreateMapConfig = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "CreateMapConfig", + __Marshaller_google_maps_mapmanagement_v2beta_CreateMapConfigRequest, + __Marshaller_google_maps_mapmanagement_v2beta_MapConfig); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetMapConfig = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetMapConfig", + __Marshaller_google_maps_mapmanagement_v2beta_GetMapConfigRequest, + __Marshaller_google_maps_mapmanagement_v2beta_MapConfig); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_ListMapConfigs = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "ListMapConfigs", + __Marshaller_google_maps_mapmanagement_v2beta_ListMapConfigsRequest, + __Marshaller_google_maps_mapmanagement_v2beta_ListMapConfigsResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_UpdateMapConfig = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "UpdateMapConfig", + __Marshaller_google_maps_mapmanagement_v2beta_UpdateMapConfigRequest, + __Marshaller_google_maps_mapmanagement_v2beta_MapConfig); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_DeleteMapConfig = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "DeleteMapConfig", + __Marshaller_google_maps_mapmanagement_v2beta_DeleteMapConfigRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_CreateStyleConfig = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "CreateStyleConfig", + __Marshaller_google_maps_mapmanagement_v2beta_CreateStyleConfigRequest, + __Marshaller_google_maps_mapmanagement_v2beta_StyleConfig); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetStyleConfig = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetStyleConfig", + __Marshaller_google_maps_mapmanagement_v2beta_GetStyleConfigRequest, + __Marshaller_google_maps_mapmanagement_v2beta_StyleConfig); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_ListStyleConfigs = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "ListStyleConfigs", + __Marshaller_google_maps_mapmanagement_v2beta_ListStyleConfigsRequest, + __Marshaller_google_maps_mapmanagement_v2beta_ListStyleConfigsResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_UpdateStyleConfig = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "UpdateStyleConfig", + __Marshaller_google_maps_mapmanagement_v2beta_UpdateStyleConfigRequest, + __Marshaller_google_maps_mapmanagement_v2beta_StyleConfig); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_DeleteStyleConfig = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "DeleteStyleConfig", + __Marshaller_google_maps_mapmanagement_v2beta_DeleteStyleConfigRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_CreateMapContextConfig = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "CreateMapContextConfig", + __Marshaller_google_maps_mapmanagement_v2beta_CreateMapContextConfigRequest, + __Marshaller_google_maps_mapmanagement_v2beta_MapContextConfig); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetMapContextConfig = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetMapContextConfig", + __Marshaller_google_maps_mapmanagement_v2beta_GetMapContextConfigRequest, + __Marshaller_google_maps_mapmanagement_v2beta_MapContextConfig); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_ListMapContextConfigs = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "ListMapContextConfigs", + __Marshaller_google_maps_mapmanagement_v2beta_ListMapContextConfigsRequest, + __Marshaller_google_maps_mapmanagement_v2beta_ListMapContextConfigsResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_UpdateMapContextConfig = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "UpdateMapContextConfig", + __Marshaller_google_maps_mapmanagement_v2beta_UpdateMapContextConfigRequest, + __Marshaller_google_maps_mapmanagement_v2beta_MapContextConfig); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_DeleteMapContextConfig = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "DeleteMapContextConfig", + __Marshaller_google_maps_mapmanagement_v2beta_DeleteMapContextConfigRequest, + __Marshaller_google_protobuf_Empty); + + /// Service descriptor + public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor + { + get { return global::Google.Maps.MapManagement.V2Beta.MapManagementServiceReflection.Descriptor.Services[0]; } + } + + /// Base class for server-side implementations of MapManagement + [grpc::BindServiceMethod(typeof(MapManagement), "BindService")] + public abstract partial class MapManagementBase + { + /// + /// Creates a MapConfig in a project. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task CreateMapConfig(global::Google.Maps.MapManagement.V2Beta.CreateMapConfigRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Gets a MapConfig. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task GetMapConfig(global::Google.Maps.MapManagement.V2Beta.GetMapConfigRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Lists MapConfigs for a project. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task ListMapConfigs(global::Google.Maps.MapManagement.V2Beta.ListMapConfigsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Updates a MapConfig. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task UpdateMapConfig(global::Google.Maps.MapManagement.V2Beta.UpdateMapConfigRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Deletes a MapConfig. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task DeleteMapConfig(global::Google.Maps.MapManagement.V2Beta.DeleteMapConfigRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Creates a StyleConfig. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task CreateStyleConfig(global::Google.Maps.MapManagement.V2Beta.CreateStyleConfigRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Gets a StyleConfig. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task GetStyleConfig(global::Google.Maps.MapManagement.V2Beta.GetStyleConfigRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Lists StyleConfigs. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task ListStyleConfigs(global::Google.Maps.MapManagement.V2Beta.ListStyleConfigsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Updates a StyleConfig. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task UpdateStyleConfig(global::Google.Maps.MapManagement.V2Beta.UpdateStyleConfigRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Deletes a StyleConfig. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task DeleteStyleConfig(global::Google.Maps.MapManagement.V2Beta.DeleteStyleConfigRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Creates a MapContextConfig. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task CreateMapContextConfig(global::Google.Maps.MapManagement.V2Beta.CreateMapContextConfigRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Gets a MapContextConfig. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task GetMapContextConfig(global::Google.Maps.MapManagement.V2Beta.GetMapContextConfigRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Lists MapContextConfigs. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task ListMapContextConfigs(global::Google.Maps.MapManagement.V2Beta.ListMapContextConfigsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Updates a MapContextConfig. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task UpdateMapContextConfig(global::Google.Maps.MapManagement.V2Beta.UpdateMapContextConfigRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Deletes a MapContextConfig. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task DeleteMapContextConfig(global::Google.Maps.MapManagement.V2Beta.DeleteMapContextConfigRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + } + + /// Client for MapManagement + public partial class MapManagementClient : grpc::ClientBase + { + /// Creates a new client for MapManagement + /// The channel to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public MapManagementClient(grpc::ChannelBase channel) : base(channel) + { + } + /// Creates a new client for MapManagement that uses a custom CallInvoker. + /// The callInvoker to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public MapManagementClient(grpc::CallInvoker callInvoker) : base(callInvoker) + { + } + /// Protected parameterless constructor to allow creation of test doubles. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected MapManagementClient() : base() + { + } + /// Protected constructor to allow creation of configured clients. + /// The client configuration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected MapManagementClient(ClientBaseConfiguration configuration) : base(configuration) + { + } + + /// + /// Creates a MapConfig in a project. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Maps.MapManagement.V2Beta.MapConfig CreateMapConfig(global::Google.Maps.MapManagement.V2Beta.CreateMapConfigRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateMapConfig(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Creates a MapConfig in a project. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Maps.MapManagement.V2Beta.MapConfig CreateMapConfig(global::Google.Maps.MapManagement.V2Beta.CreateMapConfigRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateMapConfig, null, options, request); + } + /// + /// Creates a MapConfig in a project. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateMapConfigAsync(global::Google.Maps.MapManagement.V2Beta.CreateMapConfigRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateMapConfigAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Creates a MapConfig in a project. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateMapConfigAsync(global::Google.Maps.MapManagement.V2Beta.CreateMapConfigRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateMapConfig, null, options, request); + } + /// + /// Gets a MapConfig. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Maps.MapManagement.V2Beta.MapConfig GetMapConfig(global::Google.Maps.MapManagement.V2Beta.GetMapConfigRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetMapConfig(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Gets a MapConfig. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Maps.MapManagement.V2Beta.MapConfig GetMapConfig(global::Google.Maps.MapManagement.V2Beta.GetMapConfigRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetMapConfig, null, options, request); + } + /// + /// Gets a MapConfig. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetMapConfigAsync(global::Google.Maps.MapManagement.V2Beta.GetMapConfigRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetMapConfigAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Gets a MapConfig. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetMapConfigAsync(global::Google.Maps.MapManagement.V2Beta.GetMapConfigRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetMapConfig, null, options, request); + } + /// + /// Lists MapConfigs for a project. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Maps.MapManagement.V2Beta.ListMapConfigsResponse ListMapConfigs(global::Google.Maps.MapManagement.V2Beta.ListMapConfigsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListMapConfigs(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Lists MapConfigs for a project. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Maps.MapManagement.V2Beta.ListMapConfigsResponse ListMapConfigs(global::Google.Maps.MapManagement.V2Beta.ListMapConfigsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_ListMapConfigs, null, options, request); + } + /// + /// Lists MapConfigs for a project. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListMapConfigsAsync(global::Google.Maps.MapManagement.V2Beta.ListMapConfigsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListMapConfigsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Lists MapConfigs for a project. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListMapConfigsAsync(global::Google.Maps.MapManagement.V2Beta.ListMapConfigsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_ListMapConfigs, null, options, request); + } + /// + /// Updates a MapConfig. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Maps.MapManagement.V2Beta.MapConfig UpdateMapConfig(global::Google.Maps.MapManagement.V2Beta.UpdateMapConfigRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateMapConfig(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Updates a MapConfig. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Maps.MapManagement.V2Beta.MapConfig UpdateMapConfig(global::Google.Maps.MapManagement.V2Beta.UpdateMapConfigRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateMapConfig, null, options, request); + } + /// + /// Updates a MapConfig. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateMapConfigAsync(global::Google.Maps.MapManagement.V2Beta.UpdateMapConfigRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateMapConfigAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Updates a MapConfig. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateMapConfigAsync(global::Google.Maps.MapManagement.V2Beta.UpdateMapConfigRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateMapConfig, null, options, request); + } + /// + /// Deletes a MapConfig. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteMapConfig(global::Google.Maps.MapManagement.V2Beta.DeleteMapConfigRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteMapConfig(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Deletes a MapConfig. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteMapConfig(global::Google.Maps.MapManagement.V2Beta.DeleteMapConfigRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeleteMapConfig, null, options, request); + } + /// + /// Deletes a MapConfig. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteMapConfigAsync(global::Google.Maps.MapManagement.V2Beta.DeleteMapConfigRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteMapConfigAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Deletes a MapConfig. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteMapConfigAsync(global::Google.Maps.MapManagement.V2Beta.DeleteMapConfigRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeleteMapConfig, null, options, request); + } + /// + /// Creates a StyleConfig. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Maps.MapManagement.V2Beta.StyleConfig CreateStyleConfig(global::Google.Maps.MapManagement.V2Beta.CreateStyleConfigRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateStyleConfig(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Creates a StyleConfig. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Maps.MapManagement.V2Beta.StyleConfig CreateStyleConfig(global::Google.Maps.MapManagement.V2Beta.CreateStyleConfigRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateStyleConfig, null, options, request); + } + /// + /// Creates a StyleConfig. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateStyleConfigAsync(global::Google.Maps.MapManagement.V2Beta.CreateStyleConfigRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateStyleConfigAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Creates a StyleConfig. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateStyleConfigAsync(global::Google.Maps.MapManagement.V2Beta.CreateStyleConfigRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateStyleConfig, null, options, request); + } + /// + /// Gets a StyleConfig. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Maps.MapManagement.V2Beta.StyleConfig GetStyleConfig(global::Google.Maps.MapManagement.V2Beta.GetStyleConfigRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetStyleConfig(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Gets a StyleConfig. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Maps.MapManagement.V2Beta.StyleConfig GetStyleConfig(global::Google.Maps.MapManagement.V2Beta.GetStyleConfigRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetStyleConfig, null, options, request); + } + /// + /// Gets a StyleConfig. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetStyleConfigAsync(global::Google.Maps.MapManagement.V2Beta.GetStyleConfigRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetStyleConfigAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Gets a StyleConfig. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetStyleConfigAsync(global::Google.Maps.MapManagement.V2Beta.GetStyleConfigRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetStyleConfig, null, options, request); + } + /// + /// Lists StyleConfigs. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Maps.MapManagement.V2Beta.ListStyleConfigsResponse ListStyleConfigs(global::Google.Maps.MapManagement.V2Beta.ListStyleConfigsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListStyleConfigs(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Lists StyleConfigs. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Maps.MapManagement.V2Beta.ListStyleConfigsResponse ListStyleConfigs(global::Google.Maps.MapManagement.V2Beta.ListStyleConfigsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_ListStyleConfigs, null, options, request); + } + /// + /// Lists StyleConfigs. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListStyleConfigsAsync(global::Google.Maps.MapManagement.V2Beta.ListStyleConfigsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListStyleConfigsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Lists StyleConfigs. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListStyleConfigsAsync(global::Google.Maps.MapManagement.V2Beta.ListStyleConfigsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_ListStyleConfigs, null, options, request); + } + /// + /// Updates a StyleConfig. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Maps.MapManagement.V2Beta.StyleConfig UpdateStyleConfig(global::Google.Maps.MapManagement.V2Beta.UpdateStyleConfigRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateStyleConfig(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Updates a StyleConfig. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Maps.MapManagement.V2Beta.StyleConfig UpdateStyleConfig(global::Google.Maps.MapManagement.V2Beta.UpdateStyleConfigRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateStyleConfig, null, options, request); + } + /// + /// Updates a StyleConfig. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateStyleConfigAsync(global::Google.Maps.MapManagement.V2Beta.UpdateStyleConfigRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateStyleConfigAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Updates a StyleConfig. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateStyleConfigAsync(global::Google.Maps.MapManagement.V2Beta.UpdateStyleConfigRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateStyleConfig, null, options, request); + } + /// + /// Deletes a StyleConfig. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteStyleConfig(global::Google.Maps.MapManagement.V2Beta.DeleteStyleConfigRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteStyleConfig(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Deletes a StyleConfig. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteStyleConfig(global::Google.Maps.MapManagement.V2Beta.DeleteStyleConfigRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeleteStyleConfig, null, options, request); + } + /// + /// Deletes a StyleConfig. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteStyleConfigAsync(global::Google.Maps.MapManagement.V2Beta.DeleteStyleConfigRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteStyleConfigAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Deletes a StyleConfig. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteStyleConfigAsync(global::Google.Maps.MapManagement.V2Beta.DeleteStyleConfigRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeleteStyleConfig, null, options, request); + } + /// + /// Creates a MapContextConfig. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Maps.MapManagement.V2Beta.MapContextConfig CreateMapContextConfig(global::Google.Maps.MapManagement.V2Beta.CreateMapContextConfigRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateMapContextConfig(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Creates a MapContextConfig. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Maps.MapManagement.V2Beta.MapContextConfig CreateMapContextConfig(global::Google.Maps.MapManagement.V2Beta.CreateMapContextConfigRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateMapContextConfig, null, options, request); + } + /// + /// Creates a MapContextConfig. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateMapContextConfigAsync(global::Google.Maps.MapManagement.V2Beta.CreateMapContextConfigRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateMapContextConfigAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Creates a MapContextConfig. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateMapContextConfigAsync(global::Google.Maps.MapManagement.V2Beta.CreateMapContextConfigRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateMapContextConfig, null, options, request); + } + /// + /// Gets a MapContextConfig. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Maps.MapManagement.V2Beta.MapContextConfig GetMapContextConfig(global::Google.Maps.MapManagement.V2Beta.GetMapContextConfigRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetMapContextConfig(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Gets a MapContextConfig. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Maps.MapManagement.V2Beta.MapContextConfig GetMapContextConfig(global::Google.Maps.MapManagement.V2Beta.GetMapContextConfigRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetMapContextConfig, null, options, request); + } + /// + /// Gets a MapContextConfig. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetMapContextConfigAsync(global::Google.Maps.MapManagement.V2Beta.GetMapContextConfigRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetMapContextConfigAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Gets a MapContextConfig. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetMapContextConfigAsync(global::Google.Maps.MapManagement.V2Beta.GetMapContextConfigRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetMapContextConfig, null, options, request); + } + /// + /// Lists MapContextConfigs. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Maps.MapManagement.V2Beta.ListMapContextConfigsResponse ListMapContextConfigs(global::Google.Maps.MapManagement.V2Beta.ListMapContextConfigsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListMapContextConfigs(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Lists MapContextConfigs. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Maps.MapManagement.V2Beta.ListMapContextConfigsResponse ListMapContextConfigs(global::Google.Maps.MapManagement.V2Beta.ListMapContextConfigsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_ListMapContextConfigs, null, options, request); + } + /// + /// Lists MapContextConfigs. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListMapContextConfigsAsync(global::Google.Maps.MapManagement.V2Beta.ListMapContextConfigsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListMapContextConfigsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Lists MapContextConfigs. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListMapContextConfigsAsync(global::Google.Maps.MapManagement.V2Beta.ListMapContextConfigsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_ListMapContextConfigs, null, options, request); + } + /// + /// Updates a MapContextConfig. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Maps.MapManagement.V2Beta.MapContextConfig UpdateMapContextConfig(global::Google.Maps.MapManagement.V2Beta.UpdateMapContextConfigRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateMapContextConfig(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Updates a MapContextConfig. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Maps.MapManagement.V2Beta.MapContextConfig UpdateMapContextConfig(global::Google.Maps.MapManagement.V2Beta.UpdateMapContextConfigRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateMapContextConfig, null, options, request); + } + /// + /// Updates a MapContextConfig. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateMapContextConfigAsync(global::Google.Maps.MapManagement.V2Beta.UpdateMapContextConfigRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateMapContextConfigAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Updates a MapContextConfig. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateMapContextConfigAsync(global::Google.Maps.MapManagement.V2Beta.UpdateMapContextConfigRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateMapContextConfig, null, options, request); + } + /// + /// Deletes a MapContextConfig. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteMapContextConfig(global::Google.Maps.MapManagement.V2Beta.DeleteMapContextConfigRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteMapContextConfig(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Deletes a MapContextConfig. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteMapContextConfig(global::Google.Maps.MapManagement.V2Beta.DeleteMapContextConfigRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeleteMapContextConfig, null, options, request); + } + /// + /// Deletes a MapContextConfig. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteMapContextConfigAsync(global::Google.Maps.MapManagement.V2Beta.DeleteMapContextConfigRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteMapContextConfigAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Deletes a MapContextConfig. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteMapContextConfigAsync(global::Google.Maps.MapManagement.V2Beta.DeleteMapContextConfigRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeleteMapContextConfig, null, options, request); + } + /// Creates a new instance of client from given ClientBaseConfiguration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected override MapManagementClient NewInstance(ClientBaseConfiguration configuration) + { + return new MapManagementClient(configuration); + } + } + + /// Creates service definition that can be registered with a server + /// An object implementing the server-side handling logic. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public static grpc::ServerServiceDefinition BindService(MapManagementBase serviceImpl) + { + return grpc::ServerServiceDefinition.CreateBuilder() + .AddMethod(__Method_CreateMapConfig, serviceImpl.CreateMapConfig) + .AddMethod(__Method_GetMapConfig, serviceImpl.GetMapConfig) + .AddMethod(__Method_ListMapConfigs, serviceImpl.ListMapConfigs) + .AddMethod(__Method_UpdateMapConfig, serviceImpl.UpdateMapConfig) + .AddMethod(__Method_DeleteMapConfig, serviceImpl.DeleteMapConfig) + .AddMethod(__Method_CreateStyleConfig, serviceImpl.CreateStyleConfig) + .AddMethod(__Method_GetStyleConfig, serviceImpl.GetStyleConfig) + .AddMethod(__Method_ListStyleConfigs, serviceImpl.ListStyleConfigs) + .AddMethod(__Method_UpdateStyleConfig, serviceImpl.UpdateStyleConfig) + .AddMethod(__Method_DeleteStyleConfig, serviceImpl.DeleteStyleConfig) + .AddMethod(__Method_CreateMapContextConfig, serviceImpl.CreateMapContextConfig) + .AddMethod(__Method_GetMapContextConfig, serviceImpl.GetMapContextConfig) + .AddMethod(__Method_ListMapContextConfigs, serviceImpl.ListMapContextConfigs) + .AddMethod(__Method_UpdateMapContextConfig, serviceImpl.UpdateMapContextConfig) + .AddMethod(__Method_DeleteMapContextConfig, serviceImpl.DeleteMapContextConfig).Build(); + } + + /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. + /// Note: this method is part of an experimental API that can change or be removed without any prior notice. + /// Service methods will be bound by calling AddMethod on this object. + /// An object implementing the server-side handling logic. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public static void BindService(grpc::ServiceBinderBase serviceBinder, MapManagementBase serviceImpl) + { + serviceBinder.AddMethod(__Method_CreateMapConfig, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateMapConfig)); + serviceBinder.AddMethod(__Method_GetMapConfig, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetMapConfig)); + serviceBinder.AddMethod(__Method_ListMapConfigs, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListMapConfigs)); + serviceBinder.AddMethod(__Method_UpdateMapConfig, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateMapConfig)); + serviceBinder.AddMethod(__Method_DeleteMapConfig, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteMapConfig)); + serviceBinder.AddMethod(__Method_CreateStyleConfig, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateStyleConfig)); + serviceBinder.AddMethod(__Method_GetStyleConfig, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetStyleConfig)); + serviceBinder.AddMethod(__Method_ListStyleConfigs, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListStyleConfigs)); + serviceBinder.AddMethod(__Method_UpdateStyleConfig, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateStyleConfig)); + serviceBinder.AddMethod(__Method_DeleteStyleConfig, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteStyleConfig)); + serviceBinder.AddMethod(__Method_CreateMapContextConfig, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateMapContextConfig)); + serviceBinder.AddMethod(__Method_GetMapContextConfig, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetMapContextConfig)); + serviceBinder.AddMethod(__Method_ListMapContextConfigs, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListMapContextConfigs)); + serviceBinder.AddMethod(__Method_UpdateMapContextConfig, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateMapContextConfig)); + serviceBinder.AddMethod(__Method_DeleteMapContextConfig, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteMapContextConfig)); + } + + } +} +#endregion diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta/MapManagementServiceResourceNames.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta/MapManagementServiceResourceNames.g.cs new file mode 100644 index 000000000000..ebff04a515af --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta/MapManagementServiceResourceNames.g.cs @@ -0,0 +1,1179 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +#pragma warning disable CS8981 +using gagr = Google.Api.Gax.ResourceNames; +using gax = Google.Api.Gax; +using gmmv = Google.Maps.MapManagement.V2Beta; +using sys = System; + +namespace Google.Maps.MapManagement.V2Beta +{ + /// Resource name for the MapConfig resource. + public sealed partial class MapConfigName : gax::IResourceName, sys::IEquatable + { + /// The possible contents of . + public enum ResourceNameType + { + /// An unparsed resource name. + Unparsed = 0, + + /// A resource name with pattern projects/{project}/mapConfigs/{map_config}. + ProjectMapConfig = 1, + } + + private static gax::PathTemplate s_projectMapConfig = new gax::PathTemplate("projects/{project}/mapConfigs/{map_config}"); + + /// Creates a containing an unparsed resource name. + /// The unparsed resource name. Must not be null. + /// + /// A new instance of containing the provided + /// . + /// + public static MapConfigName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new MapConfigName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// + /// Creates a with the pattern projects/{project}/mapConfigs/{map_config}. + /// + /// The Project ID. Must not be null or empty. + /// The MapConfig ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static MapConfigName FromProjectMapConfig(string projectId, string mapConfigId) => + new MapConfigName(ResourceNameType.ProjectMapConfig, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), mapConfigId: gax::GaxPreconditions.CheckNotNullOrEmpty(mapConfigId, nameof(mapConfigId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/mapConfigs/{map_config}. + /// + /// The Project ID. Must not be null or empty. + /// The MapConfig ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/mapConfigs/{map_config}. + /// + public static string Format(string projectId, string mapConfigId) => FormatProjectMapConfig(projectId, mapConfigId); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/mapConfigs/{map_config}. + /// + /// The Project ID. Must not be null or empty. + /// The MapConfig ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/mapConfigs/{map_config}. + /// + public static string FormatProjectMapConfig(string projectId, string mapConfigId) => + s_projectMapConfig.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(mapConfigId, nameof(mapConfigId))); + + /// Parses the given resource name string into a new instance. + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// projects/{project}/mapConfigs/{map_config} + /// + /// + /// The resource name in string form. Must not be null. + /// The parsed if successful. + public static MapConfigName Parse(string mapConfigName) => Parse(mapConfigName, false); + + /// + /// Parses the given resource name string into a new instance; optionally allowing + /// an unparseable resource name. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// projects/{project}/mapConfigs/{map_config} + /// + /// Or may be in any format if is true. + /// + /// The resource name in string form. Must not be null. + /// + /// If true will successfully store an unparseable resource name into the + /// property; otherwise will throw an if an unparseable resource name is + /// specified. + /// + /// The parsed if successful. + public static MapConfigName Parse(string mapConfigName, bool allowUnparsed) => + TryParse(mapConfigName, allowUnparsed, out MapConfigName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); + + /// + /// Tries to parse the given resource name string into a new instance. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// projects/{project}/mapConfigs/{map_config} + /// + /// + /// The resource name in string form. Must not be null. + /// + /// When this method returns, the parsed , or null if parsing failed. + /// + /// true if the name was parsed successfully; false otherwise. + public static bool TryParse(string mapConfigName, out MapConfigName result) => TryParse(mapConfigName, false, out result); + + /// + /// Tries to parse the given resource name string into a new instance; optionally + /// allowing an unparseable resource name. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// projects/{project}/mapConfigs/{map_config} + /// + /// Or may be in any format if is true. + /// + /// The resource name in string form. Must not be null. + /// + /// If true will successfully store an unparseable resource name into the + /// property; otherwise will throw an if an unparseable resource name is + /// specified. + /// + /// + /// When this method returns, the parsed , or null if parsing failed. + /// + /// true if the name was parsed successfully; false otherwise. + public static bool TryParse(string mapConfigName, bool allowUnparsed, out MapConfigName result) + { + gax::GaxPreconditions.CheckNotNull(mapConfigName, nameof(mapConfigName)); + gax::TemplatedResourceName resourceName; + if (s_projectMapConfig.TryParseName(mapConfigName, out resourceName)) + { + result = FromProjectMapConfig(resourceName[0], resourceName[1]); + return true; + } + if (allowUnparsed) + { + if (gax::UnparsedResourceName.TryParse(mapConfigName, out gax::UnparsedResourceName unparsedResourceName)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + private MapConfigName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string mapConfigId = null, string projectId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + MapConfigId = mapConfigId; + ProjectId = projectId; + } + + /// + /// Constructs a new instance of a class from the component parts of pattern + /// projects/{project}/mapConfigs/{map_config} + /// + /// The Project ID. Must not be null or empty. + /// The MapConfig ID. Must not be null or empty. + public MapConfigName(string projectId, string mapConfigId) : this(ResourceNameType.ProjectMapConfig, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), mapConfigId: gax::GaxPreconditions.CheckNotNullOrEmpty(mapConfigId, nameof(mapConfigId))) + { + } + + /// The of the contained resource name. + public ResourceNameType Type { get; } + + /// + /// The contained . Only non-null if this instance contains an + /// unparsed resource name. + /// + public gax::UnparsedResourceName UnparsedResource { get; } + + /// + /// The MapConfig ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string MapConfigId { get; } + + /// + /// The Project ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string ProjectId { get; } + + /// Whether this instance contains a resource name with a known pattern. + public bool IsKnownPattern => Type != ResourceNameType.Unparsed; + + /// The string representation of the resource name. + /// The string representation of the resource name. + public override string ToString() + { + switch (Type) + { + case ResourceNameType.Unparsed: return UnparsedResource.ToString(); + case ResourceNameType.ProjectMapConfig: return s_projectMapConfig.Expand(ProjectId, MapConfigId); + default: throw new sys::InvalidOperationException("Unrecognized resource-type."); + } + } + + /// Returns a hash code for this resource name. + public override int GetHashCode() => ToString().GetHashCode(); + + /// + public override bool Equals(object obj) => Equals(obj as MapConfigName); + + /// + public bool Equals(MapConfigName other) => ToString() == other?.ToString(); + + /// Determines whether two specified resource names have the same value. + /// The first resource name to compare, or null. + /// The second resource name to compare, or null. + /// + /// true if the value of is the same as the value of ; otherwise, + /// false. + /// + public static bool operator ==(MapConfigName a, MapConfigName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); + + /// Determines whether two specified resource names have different values. + /// The first resource name to compare, or null. + /// The second resource name to compare, or null. + /// + /// true if the value of is different from the value of ; otherwise, + /// false. + /// + public static bool operator !=(MapConfigName a, MapConfigName b) => !(a == b); + } + + /// Resource name for the StyleConfig resource. + public sealed partial class StyleConfigName : gax::IResourceName, sys::IEquatable + { + /// The possible contents of . + public enum ResourceNameType + { + /// An unparsed resource name. + Unparsed = 0, + + /// A resource name with pattern projects/{project}/styleConfigs/{style_config}. + ProjectStyleConfig = 1, + } + + private static gax::PathTemplate s_projectStyleConfig = new gax::PathTemplate("projects/{project}/styleConfigs/{style_config}"); + + /// Creates a containing an unparsed resource name. + /// The unparsed resource name. Must not be null. + /// + /// A new instance of containing the provided + /// . + /// + public static StyleConfigName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new StyleConfigName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// + /// Creates a with the pattern projects/{project}/styleConfigs/{style_config} + /// . + /// + /// The Project ID. Must not be null or empty. + /// The StyleConfig ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static StyleConfigName FromProjectStyleConfig(string projectId, string styleConfigId) => + new StyleConfigName(ResourceNameType.ProjectStyleConfig, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), styleConfigId: gax::GaxPreconditions.CheckNotNullOrEmpty(styleConfigId, nameof(styleConfigId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/styleConfigs/{style_config}. + /// + /// The Project ID. Must not be null or empty. + /// The StyleConfig ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/styleConfigs/{style_config}. + /// + public static string Format(string projectId, string styleConfigId) => + FormatProjectStyleConfig(projectId, styleConfigId); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/styleConfigs/{style_config}. + /// + /// The Project ID. Must not be null or empty. + /// The StyleConfig ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/styleConfigs/{style_config}. + /// + public static string FormatProjectStyleConfig(string projectId, string styleConfigId) => + s_projectStyleConfig.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(styleConfigId, nameof(styleConfigId))); + + /// Parses the given resource name string into a new instance. + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// projects/{project}/styleConfigs/{style_config} + /// + /// + /// The resource name in string form. Must not be null. + /// The parsed if successful. + public static StyleConfigName Parse(string styleConfigName) => Parse(styleConfigName, false); + + /// + /// Parses the given resource name string into a new instance; optionally allowing + /// an unparseable resource name. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// projects/{project}/styleConfigs/{style_config} + /// + /// Or may be in any format if is true. + /// + /// The resource name in string form. Must not be null. + /// + /// If true will successfully store an unparseable resource name into the + /// property; otherwise will throw an if an unparseable resource name is + /// specified. + /// + /// The parsed if successful. + public static StyleConfigName Parse(string styleConfigName, bool allowUnparsed) => + TryParse(styleConfigName, allowUnparsed, out StyleConfigName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); + + /// + /// Tries to parse the given resource name string into a new instance. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// projects/{project}/styleConfigs/{style_config} + /// + /// + /// The resource name in string form. Must not be null. + /// + /// When this method returns, the parsed , or null if parsing failed. + /// + /// true if the name was parsed successfully; false otherwise. + public static bool TryParse(string styleConfigName, out StyleConfigName result) => + TryParse(styleConfigName, false, out result); + + /// + /// Tries to parse the given resource name string into a new instance; optionally + /// allowing an unparseable resource name. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// projects/{project}/styleConfigs/{style_config} + /// + /// Or may be in any format if is true. + /// + /// The resource name in string form. Must not be null. + /// + /// If true will successfully store an unparseable resource name into the + /// property; otherwise will throw an if an unparseable resource name is + /// specified. + /// + /// + /// When this method returns, the parsed , or null if parsing failed. + /// + /// true if the name was parsed successfully; false otherwise. + public static bool TryParse(string styleConfigName, bool allowUnparsed, out StyleConfigName result) + { + gax::GaxPreconditions.CheckNotNull(styleConfigName, nameof(styleConfigName)); + gax::TemplatedResourceName resourceName; + if (s_projectStyleConfig.TryParseName(styleConfigName, out resourceName)) + { + result = FromProjectStyleConfig(resourceName[0], resourceName[1]); + return true; + } + if (allowUnparsed) + { + if (gax::UnparsedResourceName.TryParse(styleConfigName, out gax::UnparsedResourceName unparsedResourceName)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + private StyleConfigName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string projectId = null, string styleConfigId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + ProjectId = projectId; + StyleConfigId = styleConfigId; + } + + /// + /// Constructs a new instance of a class from the component parts of pattern + /// projects/{project}/styleConfigs/{style_config} + /// + /// The Project ID. Must not be null or empty. + /// The StyleConfig ID. Must not be null or empty. + public StyleConfigName(string projectId, string styleConfigId) : this(ResourceNameType.ProjectStyleConfig, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), styleConfigId: gax::GaxPreconditions.CheckNotNullOrEmpty(styleConfigId, nameof(styleConfigId))) + { + } + + /// The of the contained resource name. + public ResourceNameType Type { get; } + + /// + /// The contained . Only non-null if this instance contains an + /// unparsed resource name. + /// + public gax::UnparsedResourceName UnparsedResource { get; } + + /// + /// The Project ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string ProjectId { get; } + + /// + /// The StyleConfig ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string StyleConfigId { get; } + + /// Whether this instance contains a resource name with a known pattern. + public bool IsKnownPattern => Type != ResourceNameType.Unparsed; + + /// The string representation of the resource name. + /// The string representation of the resource name. + public override string ToString() + { + switch (Type) + { + case ResourceNameType.Unparsed: return UnparsedResource.ToString(); + case ResourceNameType.ProjectStyleConfig: return s_projectStyleConfig.Expand(ProjectId, StyleConfigId); + default: throw new sys::InvalidOperationException("Unrecognized resource-type."); + } + } + + /// Returns a hash code for this resource name. + public override int GetHashCode() => ToString().GetHashCode(); + + /// + public override bool Equals(object obj) => Equals(obj as StyleConfigName); + + /// + public bool Equals(StyleConfigName other) => ToString() == other?.ToString(); + + /// Determines whether two specified resource names have the same value. + /// The first resource name to compare, or null. + /// The second resource name to compare, or null. + /// + /// true if the value of is the same as the value of ; otherwise, + /// false. + /// + public static bool operator ==(StyleConfigName a, StyleConfigName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); + + /// Determines whether two specified resource names have different values. + /// The first resource name to compare, or null. + /// The second resource name to compare, or null. + /// + /// true if the value of is different from the value of ; otherwise, + /// false. + /// + public static bool operator !=(StyleConfigName a, StyleConfigName b) => !(a == b); + } + + /// Resource name for the MapContextConfig resource. + public sealed partial class MapContextConfigName : gax::IResourceName, sys::IEquatable + { + /// The possible contents of . + public enum ResourceNameType + { + /// An unparsed resource name. + Unparsed = 0, + + /// + /// A resource name with pattern + /// projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}. + /// + ProjectMapConfigMapContextConfig = 1, + } + + private static gax::PathTemplate s_projectMapConfigMapContextConfig = new gax::PathTemplate("projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}"); + + /// Creates a containing an unparsed resource name. + /// The unparsed resource name. Must not be null. + /// + /// A new instance of containing the provided + /// . + /// + public static MapContextConfigName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new MapContextConfigName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// + /// Creates a with the pattern + /// projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}. + /// + /// The Project ID. Must not be null or empty. + /// The MapConfig ID. Must not be null or empty. + /// The MapContextConfig ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static MapContextConfigName FromProjectMapConfigMapContextConfig(string projectId, string mapConfigId, string mapContextConfigId) => + new MapContextConfigName(ResourceNameType.ProjectMapConfigMapContextConfig, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), mapConfigId: gax::GaxPreconditions.CheckNotNullOrEmpty(mapConfigId, nameof(mapConfigId)), mapContextConfigId: gax::GaxPreconditions.CheckNotNullOrEmpty(mapContextConfigId, nameof(mapContextConfigId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}. + /// + /// The Project ID. Must not be null or empty. + /// The MapConfig ID. Must not be null or empty. + /// The MapContextConfig ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}. + /// + public static string Format(string projectId, string mapConfigId, string mapContextConfigId) => + FormatProjectMapConfigMapContextConfig(projectId, mapConfigId, mapContextConfigId); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}. + /// + /// The Project ID. Must not be null or empty. + /// The MapConfig ID. Must not be null or empty. + /// The MapContextConfig ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}. + /// + public static string FormatProjectMapConfigMapContextConfig(string projectId, string mapConfigId, string mapContextConfigId) => + s_projectMapConfigMapContextConfig.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(mapConfigId, nameof(mapConfigId)), gax::GaxPreconditions.CheckNotNullOrEmpty(mapContextConfigId, nameof(mapContextConfigId))); + + /// + /// Parses the given resource name string into a new instance. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// + /// + /// projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config} + /// + /// + /// + /// + /// The resource name in string form. Must not be null. + /// The parsed if successful. + public static MapContextConfigName Parse(string mapContextConfigName) => Parse(mapContextConfigName, false); + + /// + /// Parses the given resource name string into a new instance; optionally + /// allowing an unparseable resource name. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// + /// + /// projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config} + /// + /// + /// + /// Or may be in any format if is true. + /// + /// The resource name in string form. Must not be null. + /// + /// If true will successfully store an unparseable resource name into the + /// property; otherwise will throw an if an unparseable resource name is + /// specified. + /// + /// The parsed if successful. + public static MapContextConfigName Parse(string mapContextConfigName, bool allowUnparsed) => + TryParse(mapContextConfigName, allowUnparsed, out MapContextConfigName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); + + /// + /// Tries to parse the given resource name string into a new instance. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// + /// + /// projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config} + /// + /// + /// + /// + /// The resource name in string form. Must not be null. + /// + /// When this method returns, the parsed , or null if parsing failed. + /// + /// true if the name was parsed successfully; false otherwise. + public static bool TryParse(string mapContextConfigName, out MapContextConfigName result) => + TryParse(mapContextConfigName, false, out result); + + /// + /// Tries to parse the given resource name string into a new instance; + /// optionally allowing an unparseable resource name. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// + /// + /// projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config} + /// + /// + /// + /// Or may be in any format if is true. + /// + /// The resource name in string form. Must not be null. + /// + /// If true will successfully store an unparseable resource name into the + /// property; otherwise will throw an if an unparseable resource name is + /// specified. + /// + /// + /// When this method returns, the parsed , or null if parsing failed. + /// + /// true if the name was parsed successfully; false otherwise. + public static bool TryParse(string mapContextConfigName, bool allowUnparsed, out MapContextConfigName result) + { + gax::GaxPreconditions.CheckNotNull(mapContextConfigName, nameof(mapContextConfigName)); + gax::TemplatedResourceName resourceName; + if (s_projectMapConfigMapContextConfig.TryParseName(mapContextConfigName, out resourceName)) + { + result = FromProjectMapConfigMapContextConfig(resourceName[0], resourceName[1], resourceName[2]); + return true; + } + if (allowUnparsed) + { + if (gax::UnparsedResourceName.TryParse(mapContextConfigName, out gax::UnparsedResourceName unparsedResourceName)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + private MapContextConfigName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string mapConfigId = null, string mapContextConfigId = null, string projectId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + MapConfigId = mapConfigId; + MapContextConfigId = mapContextConfigId; + ProjectId = projectId; + } + + /// + /// Constructs a new instance of a class from the component parts of pattern + /// projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config} + /// + /// The Project ID. Must not be null or empty. + /// The MapConfig ID. Must not be null or empty. + /// The MapContextConfig ID. Must not be null or empty. + public MapContextConfigName(string projectId, string mapConfigId, string mapContextConfigId) : this(ResourceNameType.ProjectMapConfigMapContextConfig, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), mapConfigId: gax::GaxPreconditions.CheckNotNullOrEmpty(mapConfigId, nameof(mapConfigId)), mapContextConfigId: gax::GaxPreconditions.CheckNotNullOrEmpty(mapContextConfigId, nameof(mapContextConfigId))) + { + } + + /// The of the contained resource name. + public ResourceNameType Type { get; } + + /// + /// The contained . Only non-null if this instance contains an + /// unparsed resource name. + /// + public gax::UnparsedResourceName UnparsedResource { get; } + + /// + /// The MapConfig ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string MapConfigId { get; } + + /// + /// The MapContextConfig ID. Will not be null, unless this instance contains an unparsed resource + /// name. + /// + public string MapContextConfigId { get; } + + /// + /// The Project ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string ProjectId { get; } + + /// Whether this instance contains a resource name with a known pattern. + public bool IsKnownPattern => Type != ResourceNameType.Unparsed; + + /// The string representation of the resource name. + /// The string representation of the resource name. + public override string ToString() + { + switch (Type) + { + case ResourceNameType.Unparsed: return UnparsedResource.ToString(); + case ResourceNameType.ProjectMapConfigMapContextConfig: return s_projectMapConfigMapContextConfig.Expand(ProjectId, MapConfigId, MapContextConfigId); + default: throw new sys::InvalidOperationException("Unrecognized resource-type."); + } + } + + /// Returns a hash code for this resource name. + public override int GetHashCode() => ToString().GetHashCode(); + + /// + public override bool Equals(object obj) => Equals(obj as MapContextConfigName); + + /// + public bool Equals(MapContextConfigName other) => ToString() == other?.ToString(); + + /// Determines whether two specified resource names have the same value. + /// The first resource name to compare, or null. + /// The second resource name to compare, or null. + /// + /// true if the value of is the same as the value of ; otherwise, + /// false. + /// + public static bool operator ==(MapContextConfigName a, MapContextConfigName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); + + /// Determines whether two specified resource names have different values. + /// The first resource name to compare, or null. + /// The second resource name to compare, or null. + /// + /// true if the value of is different from the value of ; otherwise, + /// false. + /// + public static bool operator !=(MapContextConfigName a, MapContextConfigName b) => !(a == b); + } + + /// Resource name for the Dataset resource. + public sealed partial class DatasetName : gax::IResourceName, sys::IEquatable + { + /// The possible contents of . + public enum ResourceNameType + { + /// An unparsed resource name. + Unparsed = 0, + + /// A resource name with pattern projects/{project}/datasets/{dataset}. + ProjectDataset = 1, + } + + private static gax::PathTemplate s_projectDataset = new gax::PathTemplate("projects/{project}/datasets/{dataset}"); + + /// Creates a containing an unparsed resource name. + /// The unparsed resource name. Must not be null. + /// + /// A new instance of containing the provided . + /// + public static DatasetName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new DatasetName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// + /// Creates a with the pattern projects/{project}/datasets/{dataset}. + /// + /// The Project ID. Must not be null or empty. + /// The Dataset ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static DatasetName FromProjectDataset(string projectId, string datasetId) => + new DatasetName(ResourceNameType.ProjectDataset, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), datasetId: gax::GaxPreconditions.CheckNotNullOrEmpty(datasetId, nameof(datasetId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/datasets/{dataset}. + /// + /// The Project ID. Must not be null or empty. + /// The Dataset ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/datasets/{dataset}. + /// + public static string Format(string projectId, string datasetId) => FormatProjectDataset(projectId, datasetId); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/datasets/{dataset}. + /// + /// The Project ID. Must not be null or empty. + /// The Dataset ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/datasets/{dataset}. + /// + public static string FormatProjectDataset(string projectId, string datasetId) => + s_projectDataset.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(datasetId, nameof(datasetId))); + + /// Parses the given resource name string into a new instance. + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// projects/{project}/datasets/{dataset} + /// + /// + /// The resource name in string form. Must not be null. + /// The parsed if successful. + public static DatasetName Parse(string datasetName) => Parse(datasetName, false); + + /// + /// Parses the given resource name string into a new instance; optionally allowing an + /// unparseable resource name. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// projects/{project}/datasets/{dataset} + /// + /// Or may be in any format if is true. + /// + /// The resource name in string form. Must not be null. + /// + /// If true will successfully store an unparseable resource name into the + /// property; otherwise will throw an if an unparseable resource name is + /// specified. + /// + /// The parsed if successful. + public static DatasetName Parse(string datasetName, bool allowUnparsed) => + TryParse(datasetName, allowUnparsed, out DatasetName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); + + /// + /// Tries to parse the given resource name string into a new instance. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// projects/{project}/datasets/{dataset} + /// + /// + /// The resource name in string form. Must not be null. + /// + /// When this method returns, the parsed , or null if parsing failed. + /// + /// true if the name was parsed successfully; false otherwise. + public static bool TryParse(string datasetName, out DatasetName result) => TryParse(datasetName, false, out result); + + /// + /// Tries to parse the given resource name string into a new instance; optionally + /// allowing an unparseable resource name. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// projects/{project}/datasets/{dataset} + /// + /// Or may be in any format if is true. + /// + /// The resource name in string form. Must not be null. + /// + /// If true will successfully store an unparseable resource name into the + /// property; otherwise will throw an if an unparseable resource name is + /// specified. + /// + /// + /// When this method returns, the parsed , or null if parsing failed. + /// + /// true if the name was parsed successfully; false otherwise. + public static bool TryParse(string datasetName, bool allowUnparsed, out DatasetName result) + { + gax::GaxPreconditions.CheckNotNull(datasetName, nameof(datasetName)); + gax::TemplatedResourceName resourceName; + if (s_projectDataset.TryParseName(datasetName, out resourceName)) + { + result = FromProjectDataset(resourceName[0], resourceName[1]); + return true; + } + if (allowUnparsed) + { + if (gax::UnparsedResourceName.TryParse(datasetName, out gax::UnparsedResourceName unparsedResourceName)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + private DatasetName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string datasetId = null, string projectId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + DatasetId = datasetId; + ProjectId = projectId; + } + + /// + /// Constructs a new instance of a class from the component parts of pattern + /// projects/{project}/datasets/{dataset} + /// + /// The Project ID. Must not be null or empty. + /// The Dataset ID. Must not be null or empty. + public DatasetName(string projectId, string datasetId) : this(ResourceNameType.ProjectDataset, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), datasetId: gax::GaxPreconditions.CheckNotNullOrEmpty(datasetId, nameof(datasetId))) + { + } + + /// The of the contained resource name. + public ResourceNameType Type { get; } + + /// + /// The contained . Only non-null if this instance contains an + /// unparsed resource name. + /// + public gax::UnparsedResourceName UnparsedResource { get; } + + /// + /// The Dataset ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string DatasetId { get; } + + /// + /// The Project ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string ProjectId { get; } + + /// Whether this instance contains a resource name with a known pattern. + public bool IsKnownPattern => Type != ResourceNameType.Unparsed; + + /// The string representation of the resource name. + /// The string representation of the resource name. + public override string ToString() + { + switch (Type) + { + case ResourceNameType.Unparsed: return UnparsedResource.ToString(); + case ResourceNameType.ProjectDataset: return s_projectDataset.Expand(ProjectId, DatasetId); + default: throw new sys::InvalidOperationException("Unrecognized resource-type."); + } + } + + /// Returns a hash code for this resource name. + public override int GetHashCode() => ToString().GetHashCode(); + + /// + public override bool Equals(object obj) => Equals(obj as DatasetName); + + /// + public bool Equals(DatasetName other) => ToString() == other?.ToString(); + + /// Determines whether two specified resource names have the same value. + /// The first resource name to compare, or null. + /// The second resource name to compare, or null. + /// + /// true if the value of is the same as the value of ; otherwise, + /// false. + /// + public static bool operator ==(DatasetName a, DatasetName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); + + /// Determines whether two specified resource names have different values. + /// The first resource name to compare, or null. + /// The second resource name to compare, or null. + /// + /// true if the value of is different from the value of ; otherwise, + /// false. + /// + public static bool operator !=(DatasetName a, DatasetName b) => !(a == b); + } + + public partial class CreateMapConfigRequest + { + /// + /// -typed view over the resource name property. + /// + public gagr::ProjectName ParentAsProjectName + { + get => string.IsNullOrEmpty(Parent) ? null : gagr::ProjectName.Parse(Parent, allowUnparsed: true); + set => Parent = value?.ToString() ?? ""; + } + } + + public partial class GetMapConfigRequest + { + /// + /// -typed view over the resource name property. + /// + public gmmv::MapConfigName MapConfigName + { + get => string.IsNullOrEmpty(Name) ? null : gmmv::MapConfigName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class ListMapConfigsRequest + { + /// + /// -typed view over the resource name property. + /// + public gagr::ProjectName ParentAsProjectName + { + get => string.IsNullOrEmpty(Parent) ? null : gagr::ProjectName.Parse(Parent, allowUnparsed: true); + set => Parent = value?.ToString() ?? ""; + } + } + + public partial class DeleteMapConfigRequest + { + /// + /// -typed view over the resource name property. + /// + public gmmv::MapConfigName MapConfigName + { + get => string.IsNullOrEmpty(Name) ? null : gmmv::MapConfigName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class MapConfig + { + /// + /// -typed view over the resource name property. + /// + public gmmv::MapConfigName MapConfigName + { + get => string.IsNullOrEmpty(Name) ? null : gmmv::MapConfigName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class StyleConfig + { + /// + /// -typed view over the resource name property. + /// + public gmmv::StyleConfigName StyleConfigName + { + get => string.IsNullOrEmpty(Name) ? null : gmmv::StyleConfigName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class CreateStyleConfigRequest + { + /// + /// -typed view over the resource name property. + /// + public gagr::ProjectName ParentAsProjectName + { + get => string.IsNullOrEmpty(Parent) ? null : gagr::ProjectName.Parse(Parent, allowUnparsed: true); + set => Parent = value?.ToString() ?? ""; + } + } + + public partial class GetStyleConfigRequest + { + /// + /// -typed view over the resource name property. + /// + public gmmv::StyleConfigName StyleConfigName + { + get => string.IsNullOrEmpty(Name) ? null : gmmv::StyleConfigName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class ListStyleConfigsRequest + { + /// + /// -typed view over the resource name property. + /// + public gagr::ProjectName ParentAsProjectName + { + get => string.IsNullOrEmpty(Parent) ? null : gagr::ProjectName.Parse(Parent, allowUnparsed: true); + set => Parent = value?.ToString() ?? ""; + } + } + + public partial class DeleteStyleConfigRequest + { + /// + /// -typed view over the resource name property. + /// + public gmmv::StyleConfigName StyleConfigName + { + get => string.IsNullOrEmpty(Name) ? null : gmmv::StyleConfigName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class MapContextConfig + { + /// + /// -typed view over the resource name property. + /// + public gmmv::MapContextConfigName MapContextConfigName + { + get => string.IsNullOrEmpty(Name) ? null : gmmv::MapContextConfigName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + + /// + /// -typed view over the resource name property. + /// + public MapConfigName MapConfigAsMapConfigName + { + get => string.IsNullOrEmpty(MapConfig) ? null : MapConfigName.Parse(MapConfig, allowUnparsed: true); + set => MapConfig = value?.ToString() ?? ""; + } + + /// + /// -typed view over the resource name property. + /// + public StyleConfigName StyleConfigAsStyleConfigName + { + get => string.IsNullOrEmpty(StyleConfig) ? null : StyleConfigName.Parse(StyleConfig, allowUnparsed: true); + set => StyleConfig = value?.ToString() ?? ""; + } + + /// + /// -typed view over the resource name property. + /// + public gax::ResourceNameList DatasetAsDatasetNames + { + get => new gax::ResourceNameList(Dataset, s => string.IsNullOrEmpty(s) ? null : DatasetName.Parse(s, allowUnparsed: true)); + } + } + + public partial class CreateMapContextConfigRequest + { + /// + /// -typed view over the resource name property. + /// + public MapConfigName ParentAsMapConfigName + { + get => string.IsNullOrEmpty(Parent) ? null : MapConfigName.Parse(Parent, allowUnparsed: true); + set => Parent = value?.ToString() ?? ""; + } + } + + public partial class GetMapContextConfigRequest + { + /// + /// -typed view over the resource name property. + /// + public gmmv::MapContextConfigName MapContextConfigName + { + get => string.IsNullOrEmpty(Name) ? null : gmmv::MapContextConfigName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class ListMapContextConfigsRequest + { + /// + /// -typed view over the resource name property. + /// + public MapConfigName ParentAsMapConfigName + { + get => string.IsNullOrEmpty(Parent) ? null : MapConfigName.Parse(Parent, allowUnparsed: true); + set => Parent = value?.ToString() ?? ""; + } + } + + public partial class DeleteMapContextConfigRequest + { + /// + /// -typed view over the resource name property. + /// + public gmmv::MapContextConfigName MapContextConfigName + { + get => string.IsNullOrEmpty(Name) ? null : gmmv::MapContextConfigName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta/PackageApiMetadata.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta/PackageApiMetadata.g.cs new file mode 100644 index 000000000000..7eff179682c1 --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta/PackageApiMetadata.g.cs @@ -0,0 +1,36 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +#pragma warning disable CS8981 +using gaxgrpc = Google.Api.Gax.Grpc; +using gpr = Google.Protobuf.Reflection; +using scg = System.Collections.Generic; + +namespace Google.Maps.MapManagement.V2Beta +{ + /// Static class to provide common access to package-wide API metadata. + internal static class PackageApiMetadata + { + /// The for services in this package. + internal static gaxgrpc::ApiMetadata ApiMetadata { get; } = new gaxgrpc::ApiMetadata("Google.Maps.MapManagement.V2Beta", GetFileDescriptors) + .WithRequestNumericEnumJsonEncoding(true); + + private static scg::IEnumerable GetFileDescriptors() + { + yield return MapManagementServiceReflection.Descriptor; + } + } +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta/ServiceCollectionExtensions.g.cs b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta/ServiceCollectionExtensions.g.cs new file mode 100644 index 000000000000..0a08cf013683 --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/Google.Maps.MapManagement.V2Beta/ServiceCollectionExtensions.g.cs @@ -0,0 +1,61 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +#pragma warning disable CS8981 +using gaxgrpc = Google.Api.Gax.Grpc; +using gmmv = Google.Maps.MapManagement.V2Beta; +using gpr = Google.Protobuf.Reflection; +using scg = System.Collections.Generic; +using sys = System; + +namespace Microsoft.Extensions.DependencyInjection +{ + /// Static class to provide extension methods to configure API clients. + public static partial class ServiceCollectionExtensions + { + /// Adds a singleton to . + /// + /// The service collection to add the client to. The services are used to configure the client when requested. + /// + /// + /// An optional action to invoke on the client builder. This is invoked before services from + /// are used. + /// + public static IServiceCollection AddMapManagementClient(this IServiceCollection services, sys::Action action = null) => + services.AddSingleton(provider => + { + gmmv::MapManagementClientBuilder builder = new gmmv::MapManagementClientBuilder(); + action?.Invoke(builder); + return builder.Build(provider); + }); + + /// Adds a singleton to . + /// + /// The service collection to add the client to. The services are used to configure the client when requested. + /// + /// + /// An optional action to invoke on the client builder. This is invoked before services from + /// are used. + /// + public static IServiceCollection AddMapManagementClient(this IServiceCollection services, sys::Action action) => + services.AddSingleton(provider => + { + gmmv::MapManagementClientBuilder builder = new gmmv::MapManagementClientBuilder(); + action?.Invoke(provider, builder); + return builder.Build(provider); + }); + } +} diff --git a/apis/Google.Maps.MapManagement.V2Beta/gapic_metadata.json b/apis/Google.Maps.MapManagement.V2Beta/gapic_metadata.json new file mode 100644 index 000000000000..2a37f9b33d9d --- /dev/null +++ b/apis/Google.Maps.MapManagement.V2Beta/gapic_metadata.json @@ -0,0 +1,108 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "csharp", + "protoPackage": "google.maps.mapmanagement.v2beta", + "libraryPackage": "Google.Maps.MapManagement.V2Beta", + "services": { + "MapManagement": { + "clients": { + "grpc": { + "libraryClient": "MapManagementClient", + "rpcs": { + "CreateMapConfig": { + "methods": [ + "CreateMapConfig", + "CreateMapConfigAsync" + ] + }, + "CreateMapContextConfig": { + "methods": [ + "CreateMapContextConfig", + "CreateMapContextConfigAsync" + ] + }, + "CreateStyleConfig": { + "methods": [ + "CreateStyleConfig", + "CreateStyleConfigAsync" + ] + }, + "DeleteMapConfig": { + "methods": [ + "DeleteMapConfig", + "DeleteMapConfigAsync" + ] + }, + "DeleteMapContextConfig": { + "methods": [ + "DeleteMapContextConfig", + "DeleteMapContextConfigAsync" + ] + }, + "DeleteStyleConfig": { + "methods": [ + "DeleteStyleConfig", + "DeleteStyleConfigAsync" + ] + }, + "GetMapConfig": { + "methods": [ + "GetMapConfig", + "GetMapConfigAsync" + ] + }, + "GetMapContextConfig": { + "methods": [ + "GetMapContextConfig", + "GetMapContextConfigAsync" + ] + }, + "GetStyleConfig": { + "methods": [ + "GetStyleConfig", + "GetStyleConfigAsync" + ] + }, + "ListMapConfigs": { + "methods": [ + "ListMapConfigs", + "ListMapConfigsAsync" + ] + }, + "ListMapContextConfigs": { + "methods": [ + "ListMapContextConfigs", + "ListMapContextConfigsAsync" + ] + }, + "ListStyleConfigs": { + "methods": [ + "ListStyleConfigs", + "ListStyleConfigsAsync" + ] + }, + "UpdateMapConfig": { + "methods": [ + "UpdateMapConfig", + "UpdateMapConfigAsync" + ] + }, + "UpdateMapContextConfig": { + "methods": [ + "UpdateMapContextConfig", + "UpdateMapContextConfigAsync" + ] + }, + "UpdateStyleConfig": { + "methods": [ + "UpdateStyleConfig", + "UpdateStyleConfigAsync" + ] + } + } + } + } + } + } +} diff --git a/generator-input/pipeline-state.json b/generator-input/pipeline-state.json index 6c49dc267570..57bc7bccfac3 100644 --- a/generator-input/pipeline-state.json +++ b/generator-input/pipeline-state.json @@ -5006,6 +5006,7 @@ "nextVersion": "1.0.0-beta01", "generationAutomationLevel": "AUTOMATION_LEVEL_AUTOMATIC", "releaseAutomationLevel": "AUTOMATION_LEVEL_BLOCKED", + "lastGeneratedCommit": "d23047f4bae1f796aff726e6e3399292d29804ef", "apiPaths": [ "google/maps/mapmanagement/v2beta" ],