From 0eea6bd16c906a211c836ec4b7b62e1a3a215d2b Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 4 Oct 2023 20:07:38 +0000 Subject: [PATCH] feat: FirewallPolicy CRUD API feat: added Assessment.firewall_policy_assessment, fraud_signals feat: added new fields to Event message feat: added RiskAnalysis.extended_verdict_reasons feat: added FraudPreventionAssessment.behavioral_trust_verdict feat: added AndroidKeySettings.support_non_google_app_store_distribution feat: added IOSKeySettings.apple_developer_id feat: added WafFeature.EXPRESS enum value feat: added WafService.FASTLY enum value chore: remove backend configuration from the service config PiperOrigin-RevId: 570747007 Source-Link: https://github.com/googleapis/googleapis/commit/726e33e077155b454555e91af721b76e90d56912 Source-Link: https://github.com/googleapis/googleapis-gen/commit/4e53991b7315853fbd6b275c604ec38530527f83 Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuUmVjYXB0Y2hhRW50ZXJwcmlzZS5WMS8uT3dsQm90LnlhbWwiLCJoIjoiNGU1Mzk5MWI3MzE1ODUzZmJkNmIyNzVjNjA0ZWMzODUzMDUyN2Y4MyJ9 --- ...ient.CreateFirewallPolicyAsyncSnippet.g.cs | 45 + ...rewallPolicyRequestObjectAsyncSnippet.g.cs | 49 + ...ateFirewallPolicyRequestObjectSnippet.g.cs | 48 + ...rewallPolicyResourceNamesAsyncSnippet.g.cs | 46 + ...ateFirewallPolicyResourceNamesSnippet.g.cs | 45 + ...iceClient.CreateFirewallPolicySnippet.g.cs | 44 + ...ient.DeleteFirewallPolicyAsyncSnippet.g.cs | 44 + ...rewallPolicyRequestObjectAsyncSnippet.g.cs | 47 + ...eteFirewallPolicyRequestObjectSnippet.g.cs | 46 + ...rewallPolicyResourceNamesAsyncSnippet.g.cs | 44 + ...eteFirewallPolicyResourceNamesSnippet.g.cs | 43 + ...iceClient.DeleteFirewallPolicySnippet.g.cs | 43 + ...eClient.GetFirewallPolicyAsyncSnippet.g.cs | 44 + ...rewallPolicyRequestObjectAsyncSnippet.g.cs | 47 + ...GetFirewallPolicyRequestObjectSnippet.g.cs | 46 + ...rewallPolicyResourceNamesAsyncSnippet.g.cs | 44 + ...GetFirewallPolicyResourceNamesSnippet.g.cs | 43 + ...erviceClient.GetFirewallPolicySnippet.g.cs | 43 + ...ient.ListFirewallPoliciesAsyncSnippet.g.cs | 79 + ...wallPoliciesRequestObjectAsyncSnippet.g.cs | 83 + ...tFirewallPoliciesRequestObjectSnippet.g.cs | 81 + ...wallPoliciesResourceNamesAsyncSnippet.g.cs | 80 + ...tFirewallPoliciesResourceNamesSnippet.g.cs | 78 + ...iceClient.ListFirewallPoliciesSnippet.g.cs | 77 + ...ient.UpdateFirewallPolicyAsyncSnippet.g.cs | 46 + ...rewallPolicyRequestObjectAsyncSnippet.g.cs | 49 + ...ateFirewallPolicyRequestObjectSnippet.g.cs | 48 + ...iceClient.UpdateFirewallPolicySnippet.g.cs | 45 + ...a_google.cloud.recaptchaenterprise.v1.json | 1393 +++ ...aptchaEnterpriseServiceClientSnippets.g.cs | 607 + .../RecaptchaEnterpriseServiceClient.g.cs | 1280 +- .../Recaptchaenterprise.g.cs | 10048 ++++++++++++---- .../RecaptchaenterpriseGrpc.g.cs | 384 +- .../RecaptchaenterpriseResourceNames.g.cs | 284 + .../gapic_metadata.json | 30 + 35 files changed, 12852 insertions(+), 2651 deletions(-) create mode 100644 apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.CreateFirewallPolicyAsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.CreateFirewallPolicyRequestObjectAsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.CreateFirewallPolicyRequestObjectSnippet.g.cs create mode 100644 apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.CreateFirewallPolicyResourceNamesAsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.CreateFirewallPolicyResourceNamesSnippet.g.cs create mode 100644 apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.CreateFirewallPolicySnippet.g.cs create mode 100644 apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.DeleteFirewallPolicyAsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.DeleteFirewallPolicyRequestObjectAsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.DeleteFirewallPolicyRequestObjectSnippet.g.cs create mode 100644 apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.DeleteFirewallPolicyResourceNamesAsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.DeleteFirewallPolicyResourceNamesSnippet.g.cs create mode 100644 apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.DeleteFirewallPolicySnippet.g.cs create mode 100644 apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.GetFirewallPolicyAsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.GetFirewallPolicyRequestObjectAsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.GetFirewallPolicyRequestObjectSnippet.g.cs create mode 100644 apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.GetFirewallPolicyResourceNamesAsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.GetFirewallPolicyResourceNamesSnippet.g.cs create mode 100644 apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.GetFirewallPolicySnippet.g.cs create mode 100644 apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.ListFirewallPoliciesAsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.ListFirewallPoliciesRequestObjectAsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.ListFirewallPoliciesRequestObjectSnippet.g.cs create mode 100644 apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.ListFirewallPoliciesResourceNamesAsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.ListFirewallPoliciesResourceNamesSnippet.g.cs create mode 100644 apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.ListFirewallPoliciesSnippet.g.cs create mode 100644 apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.UpdateFirewallPolicyAsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.UpdateFirewallPolicyRequestObjectAsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.UpdateFirewallPolicyRequestObjectSnippet.g.cs create mode 100644 apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.UpdateFirewallPolicySnippet.g.cs diff --git a/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.CreateFirewallPolicyAsyncSnippet.g.cs b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.CreateFirewallPolicyAsyncSnippet.g.cs new file mode 100644 index 000000000000..c3a63e493847 --- /dev/null +++ b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.CreateFirewallPolicyAsyncSnippet.g.cs @@ -0,0 +1,45 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_CreateFirewallPolicy_async_flattened] + using Google.Cloud.RecaptchaEnterprise.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedRecaptchaEnterpriseServiceClientSnippets + { + /// Snippet for CreateFirewallPolicyAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It 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 CreateFirewallPolicyAsync() + { + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]"; + FirewallPolicy firewallPolicy = new FirewallPolicy(); + // Make the request + FirewallPolicy response = await recaptchaEnterpriseServiceClient.CreateFirewallPolicyAsync(parent, firewallPolicy); + } + } + // [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_CreateFirewallPolicy_async_flattened] +} diff --git a/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.CreateFirewallPolicyRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.CreateFirewallPolicyRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..54e59a289064 --- /dev/null +++ b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.CreateFirewallPolicyRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,49 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_CreateFirewallPolicy_async] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.RecaptchaEnterprise.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedRecaptchaEnterpriseServiceClientSnippets + { + /// Snippet for CreateFirewallPolicyAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It 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 CreateFirewallPolicyRequestObjectAsync() + { + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync(); + // Initialize request argument(s) + CreateFirewallPolicyRequest request = new CreateFirewallPolicyRequest + { + ParentAsProjectName = ProjectName.FromProject("[PROJECT]"), + FirewallPolicy = new FirewallPolicy(), + }; + // Make the request + FirewallPolicy response = await recaptchaEnterpriseServiceClient.CreateFirewallPolicyAsync(request); + } + } + // [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_CreateFirewallPolicy_async] +} diff --git a/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.CreateFirewallPolicyRequestObjectSnippet.g.cs b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.CreateFirewallPolicyRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..2440eaf0ba8b --- /dev/null +++ b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.CreateFirewallPolicyRequestObjectSnippet.g.cs @@ -0,0 +1,48 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_CreateFirewallPolicy_sync] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.RecaptchaEnterprise.V1; + + public sealed partial class GeneratedRecaptchaEnterpriseServiceClientSnippets + { + /// Snippet for CreateFirewallPolicy + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It 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 CreateFirewallPolicyRequestObject() + { + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create(); + // Initialize request argument(s) + CreateFirewallPolicyRequest request = new CreateFirewallPolicyRequest + { + ParentAsProjectName = ProjectName.FromProject("[PROJECT]"), + FirewallPolicy = new FirewallPolicy(), + }; + // Make the request + FirewallPolicy response = recaptchaEnterpriseServiceClient.CreateFirewallPolicy(request); + } + } + // [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_CreateFirewallPolicy_sync] +} diff --git a/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.CreateFirewallPolicyResourceNamesAsyncSnippet.g.cs b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.CreateFirewallPolicyResourceNamesAsyncSnippet.g.cs new file mode 100644 index 000000000000..59082a335d59 --- /dev/null +++ b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.CreateFirewallPolicyResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_CreateFirewallPolicy_async_flattened_resourceNames] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.RecaptchaEnterprise.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedRecaptchaEnterpriseServiceClientSnippets + { + /// Snippet for CreateFirewallPolicyAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It 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 CreateFirewallPolicyResourceNamesAsync() + { + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + FirewallPolicy firewallPolicy = new FirewallPolicy(); + // Make the request + FirewallPolicy response = await recaptchaEnterpriseServiceClient.CreateFirewallPolicyAsync(parent, firewallPolicy); + } + } + // [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_CreateFirewallPolicy_async_flattened_resourceNames] +} diff --git a/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.CreateFirewallPolicyResourceNamesSnippet.g.cs b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.CreateFirewallPolicyResourceNamesSnippet.g.cs new file mode 100644 index 000000000000..65782f4dd602 --- /dev/null +++ b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.CreateFirewallPolicyResourceNamesSnippet.g.cs @@ -0,0 +1,45 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_CreateFirewallPolicy_sync_flattened_resourceNames] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.RecaptchaEnterprise.V1; + + public sealed partial class GeneratedRecaptchaEnterpriseServiceClientSnippets + { + /// Snippet for CreateFirewallPolicy + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It 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 CreateFirewallPolicyResourceNames() + { + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + FirewallPolicy firewallPolicy = new FirewallPolicy(); + // Make the request + FirewallPolicy response = recaptchaEnterpriseServiceClient.CreateFirewallPolicy(parent, firewallPolicy); + } + } + // [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_CreateFirewallPolicy_sync_flattened_resourceNames] +} diff --git a/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.CreateFirewallPolicySnippet.g.cs b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.CreateFirewallPolicySnippet.g.cs new file mode 100644 index 000000000000..b1e853aca621 --- /dev/null +++ b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.CreateFirewallPolicySnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_CreateFirewallPolicy_sync_flattened] + using Google.Cloud.RecaptchaEnterprise.V1; + + public sealed partial class GeneratedRecaptchaEnterpriseServiceClientSnippets + { + /// Snippet for CreateFirewallPolicy + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It 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 CreateFirewallPolicy() + { + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]"; + FirewallPolicy firewallPolicy = new FirewallPolicy(); + // Make the request + FirewallPolicy response = recaptchaEnterpriseServiceClient.CreateFirewallPolicy(parent, firewallPolicy); + } + } + // [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_CreateFirewallPolicy_sync_flattened] +} diff --git a/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.DeleteFirewallPolicyAsyncSnippet.g.cs b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.DeleteFirewallPolicyAsyncSnippet.g.cs new file mode 100644 index 000000000000..de4726b8f528 --- /dev/null +++ b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.DeleteFirewallPolicyAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_DeleteFirewallPolicy_async_flattened] + using Google.Cloud.RecaptchaEnterprise.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedRecaptchaEnterpriseServiceClientSnippets + { + /// Snippet for DeleteFirewallPolicyAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It 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 DeleteFirewallPolicyAsync() + { + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/firewallpolicies/[FIREWALLPOLICY]"; + // Make the request + await recaptchaEnterpriseServiceClient.DeleteFirewallPolicyAsync(name); + } + } + // [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_DeleteFirewallPolicy_async_flattened] +} diff --git a/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.DeleteFirewallPolicyRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.DeleteFirewallPolicyRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..7da890033a02 --- /dev/null +++ b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.DeleteFirewallPolicyRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,47 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_DeleteFirewallPolicy_async] + using Google.Cloud.RecaptchaEnterprise.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedRecaptchaEnterpriseServiceClientSnippets + { + /// Snippet for DeleteFirewallPolicyAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It 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 DeleteFirewallPolicyRequestObjectAsync() + { + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync(); + // Initialize request argument(s) + DeleteFirewallPolicyRequest request = new DeleteFirewallPolicyRequest + { + FirewallPolicyName = FirewallPolicyName.FromProjectFirewallpolicy("[PROJECT]", "[FIREWALLPOLICY]"), + }; + // Make the request + await recaptchaEnterpriseServiceClient.DeleteFirewallPolicyAsync(request); + } + } + // [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_DeleteFirewallPolicy_async] +} diff --git a/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.DeleteFirewallPolicyRequestObjectSnippet.g.cs b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.DeleteFirewallPolicyRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..fc5159215b63 --- /dev/null +++ b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.DeleteFirewallPolicyRequestObjectSnippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_DeleteFirewallPolicy_sync] + using Google.Cloud.RecaptchaEnterprise.V1; + + public sealed partial class GeneratedRecaptchaEnterpriseServiceClientSnippets + { + /// Snippet for DeleteFirewallPolicy + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It 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 DeleteFirewallPolicyRequestObject() + { + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create(); + // Initialize request argument(s) + DeleteFirewallPolicyRequest request = new DeleteFirewallPolicyRequest + { + FirewallPolicyName = FirewallPolicyName.FromProjectFirewallpolicy("[PROJECT]", "[FIREWALLPOLICY]"), + }; + // Make the request + recaptchaEnterpriseServiceClient.DeleteFirewallPolicy(request); + } + } + // [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_DeleteFirewallPolicy_sync] +} diff --git a/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.DeleteFirewallPolicyResourceNamesAsyncSnippet.g.cs b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.DeleteFirewallPolicyResourceNamesAsyncSnippet.g.cs new file mode 100644 index 000000000000..070e934218c3 --- /dev/null +++ b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.DeleteFirewallPolicyResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_DeleteFirewallPolicy_async_flattened_resourceNames] + using Google.Cloud.RecaptchaEnterprise.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedRecaptchaEnterpriseServiceClientSnippets + { + /// Snippet for DeleteFirewallPolicyAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It 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 DeleteFirewallPolicyResourceNamesAsync() + { + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync(); + // Initialize request argument(s) + FirewallPolicyName name = FirewallPolicyName.FromProjectFirewallpolicy("[PROJECT]", "[FIREWALLPOLICY]"); + // Make the request + await recaptchaEnterpriseServiceClient.DeleteFirewallPolicyAsync(name); + } + } + // [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_DeleteFirewallPolicy_async_flattened_resourceNames] +} diff --git a/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.DeleteFirewallPolicyResourceNamesSnippet.g.cs b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.DeleteFirewallPolicyResourceNamesSnippet.g.cs new file mode 100644 index 000000000000..f34f554a032c --- /dev/null +++ b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.DeleteFirewallPolicyResourceNamesSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_DeleteFirewallPolicy_sync_flattened_resourceNames] + using Google.Cloud.RecaptchaEnterprise.V1; + + public sealed partial class GeneratedRecaptchaEnterpriseServiceClientSnippets + { + /// Snippet for DeleteFirewallPolicy + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It 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 DeleteFirewallPolicyResourceNames() + { + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create(); + // Initialize request argument(s) + FirewallPolicyName name = FirewallPolicyName.FromProjectFirewallpolicy("[PROJECT]", "[FIREWALLPOLICY]"); + // Make the request + recaptchaEnterpriseServiceClient.DeleteFirewallPolicy(name); + } + } + // [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_DeleteFirewallPolicy_sync_flattened_resourceNames] +} diff --git a/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.DeleteFirewallPolicySnippet.g.cs b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.DeleteFirewallPolicySnippet.g.cs new file mode 100644 index 000000000000..4df639e399d8 --- /dev/null +++ b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.DeleteFirewallPolicySnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_DeleteFirewallPolicy_sync_flattened] + using Google.Cloud.RecaptchaEnterprise.V1; + + public sealed partial class GeneratedRecaptchaEnterpriseServiceClientSnippets + { + /// Snippet for DeleteFirewallPolicy + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It 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 DeleteFirewallPolicy() + { + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/firewallpolicies/[FIREWALLPOLICY]"; + // Make the request + recaptchaEnterpriseServiceClient.DeleteFirewallPolicy(name); + } + } + // [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_DeleteFirewallPolicy_sync_flattened] +} diff --git a/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.GetFirewallPolicyAsyncSnippet.g.cs b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.GetFirewallPolicyAsyncSnippet.g.cs new file mode 100644 index 000000000000..fc1e22a894cc --- /dev/null +++ b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.GetFirewallPolicyAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_GetFirewallPolicy_async_flattened] + using Google.Cloud.RecaptchaEnterprise.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedRecaptchaEnterpriseServiceClientSnippets + { + /// Snippet for GetFirewallPolicyAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It 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 GetFirewallPolicyAsync() + { + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/firewallpolicies/[FIREWALLPOLICY]"; + // Make the request + FirewallPolicy response = await recaptchaEnterpriseServiceClient.GetFirewallPolicyAsync(name); + } + } + // [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_GetFirewallPolicy_async_flattened] +} diff --git a/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.GetFirewallPolicyRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.GetFirewallPolicyRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..5c61d66e8afc --- /dev/null +++ b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.GetFirewallPolicyRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,47 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_GetFirewallPolicy_async] + using Google.Cloud.RecaptchaEnterprise.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedRecaptchaEnterpriseServiceClientSnippets + { + /// Snippet for GetFirewallPolicyAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It 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 GetFirewallPolicyRequestObjectAsync() + { + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync(); + // Initialize request argument(s) + GetFirewallPolicyRequest request = new GetFirewallPolicyRequest + { + FirewallPolicyName = FirewallPolicyName.FromProjectFirewallpolicy("[PROJECT]", "[FIREWALLPOLICY]"), + }; + // Make the request + FirewallPolicy response = await recaptchaEnterpriseServiceClient.GetFirewallPolicyAsync(request); + } + } + // [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_GetFirewallPolicy_async] +} diff --git a/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.GetFirewallPolicyRequestObjectSnippet.g.cs b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.GetFirewallPolicyRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..9433a71bd6d9 --- /dev/null +++ b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.GetFirewallPolicyRequestObjectSnippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_GetFirewallPolicy_sync] + using Google.Cloud.RecaptchaEnterprise.V1; + + public sealed partial class GeneratedRecaptchaEnterpriseServiceClientSnippets + { + /// Snippet for GetFirewallPolicy + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It 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 GetFirewallPolicyRequestObject() + { + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create(); + // Initialize request argument(s) + GetFirewallPolicyRequest request = new GetFirewallPolicyRequest + { + FirewallPolicyName = FirewallPolicyName.FromProjectFirewallpolicy("[PROJECT]", "[FIREWALLPOLICY]"), + }; + // Make the request + FirewallPolicy response = recaptchaEnterpriseServiceClient.GetFirewallPolicy(request); + } + } + // [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_GetFirewallPolicy_sync] +} diff --git a/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.GetFirewallPolicyResourceNamesAsyncSnippet.g.cs b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.GetFirewallPolicyResourceNamesAsyncSnippet.g.cs new file mode 100644 index 000000000000..9e5696ab2d2a --- /dev/null +++ b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.GetFirewallPolicyResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_GetFirewallPolicy_async_flattened_resourceNames] + using Google.Cloud.RecaptchaEnterprise.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedRecaptchaEnterpriseServiceClientSnippets + { + /// Snippet for GetFirewallPolicyAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It 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 GetFirewallPolicyResourceNamesAsync() + { + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync(); + // Initialize request argument(s) + FirewallPolicyName name = FirewallPolicyName.FromProjectFirewallpolicy("[PROJECT]", "[FIREWALLPOLICY]"); + // Make the request + FirewallPolicy response = await recaptchaEnterpriseServiceClient.GetFirewallPolicyAsync(name); + } + } + // [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_GetFirewallPolicy_async_flattened_resourceNames] +} diff --git a/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.GetFirewallPolicyResourceNamesSnippet.g.cs b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.GetFirewallPolicyResourceNamesSnippet.g.cs new file mode 100644 index 000000000000..f2cb581707d1 --- /dev/null +++ b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.GetFirewallPolicyResourceNamesSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_GetFirewallPolicy_sync_flattened_resourceNames] + using Google.Cloud.RecaptchaEnterprise.V1; + + public sealed partial class GeneratedRecaptchaEnterpriseServiceClientSnippets + { + /// Snippet for GetFirewallPolicy + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It 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 GetFirewallPolicyResourceNames() + { + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create(); + // Initialize request argument(s) + FirewallPolicyName name = FirewallPolicyName.FromProjectFirewallpolicy("[PROJECT]", "[FIREWALLPOLICY]"); + // Make the request + FirewallPolicy response = recaptchaEnterpriseServiceClient.GetFirewallPolicy(name); + } + } + // [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_GetFirewallPolicy_sync_flattened_resourceNames] +} diff --git a/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.GetFirewallPolicySnippet.g.cs b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.GetFirewallPolicySnippet.g.cs new file mode 100644 index 000000000000..2477713d80e6 --- /dev/null +++ b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.GetFirewallPolicySnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_GetFirewallPolicy_sync_flattened] + using Google.Cloud.RecaptchaEnterprise.V1; + + public sealed partial class GeneratedRecaptchaEnterpriseServiceClientSnippets + { + /// Snippet for GetFirewallPolicy + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It 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 GetFirewallPolicy() + { + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/firewallpolicies/[FIREWALLPOLICY]"; + // Make the request + FirewallPolicy response = recaptchaEnterpriseServiceClient.GetFirewallPolicy(name); + } + } + // [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_GetFirewallPolicy_sync_flattened] +} diff --git a/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.ListFirewallPoliciesAsyncSnippet.g.cs b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.ListFirewallPoliciesAsyncSnippet.g.cs new file mode 100644 index 000000000000..18b48f4e6744 --- /dev/null +++ b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.ListFirewallPoliciesAsyncSnippet.g.cs @@ -0,0 +1,79 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_ListFirewallPolicies_async_flattened] + using Google.Api.Gax; + using Google.Cloud.RecaptchaEnterprise.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedRecaptchaEnterpriseServiceClientSnippets + { + /// Snippet for ListFirewallPoliciesAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It 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 ListFirewallPoliciesAsync() + { + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]"; + // Make the request + PagedAsyncEnumerable response = recaptchaEnterpriseServiceClient.ListFirewallPoliciesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((FirewallPolicy item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListFirewallPoliciesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (FirewallPolicy 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 (FirewallPolicy 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 recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_ListFirewallPolicies_async_flattened] +} diff --git a/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.ListFirewallPoliciesRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.ListFirewallPoliciesRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..e61b9518f5bf --- /dev/null +++ b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.ListFirewallPoliciesRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,83 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_ListFirewallPolicies_async] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.RecaptchaEnterprise.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedRecaptchaEnterpriseServiceClientSnippets + { + /// Snippet for ListFirewallPoliciesAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It 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 ListFirewallPoliciesRequestObjectAsync() + { + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync(); + // Initialize request argument(s) + ListFirewallPoliciesRequest request = new ListFirewallPoliciesRequest + { + ParentAsProjectName = ProjectName.FromProject("[PROJECT]"), + }; + // Make the request + PagedAsyncEnumerable response = recaptchaEnterpriseServiceClient.ListFirewallPoliciesAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((FirewallPolicy item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListFirewallPoliciesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (FirewallPolicy 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 (FirewallPolicy 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 recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_ListFirewallPolicies_async] +} diff --git a/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.ListFirewallPoliciesRequestObjectSnippet.g.cs b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.ListFirewallPoliciesRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..f2691f994729 --- /dev/null +++ b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.ListFirewallPoliciesRequestObjectSnippet.g.cs @@ -0,0 +1,81 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_ListFirewallPolicies_sync] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.RecaptchaEnterprise.V1; + using System; + + public sealed partial class GeneratedRecaptchaEnterpriseServiceClientSnippets + { + /// Snippet for ListFirewallPolicies + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It 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 ListFirewallPoliciesRequestObject() + { + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create(); + // Initialize request argument(s) + ListFirewallPoliciesRequest request = new ListFirewallPoliciesRequest + { + ParentAsProjectName = ProjectName.FromProject("[PROJECT]"), + }; + // Make the request + PagedEnumerable response = recaptchaEnterpriseServiceClient.ListFirewallPolicies(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (FirewallPolicy 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 (ListFirewallPoliciesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (FirewallPolicy 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 (FirewallPolicy 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 recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_ListFirewallPolicies_sync] +} diff --git a/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.ListFirewallPoliciesResourceNamesAsyncSnippet.g.cs b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.ListFirewallPoliciesResourceNamesAsyncSnippet.g.cs new file mode 100644 index 000000000000..c9796b2d2b94 --- /dev/null +++ b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.ListFirewallPoliciesResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,80 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_ListFirewallPolicies_async_flattened_resourceNames] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.RecaptchaEnterprise.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedRecaptchaEnterpriseServiceClientSnippets + { + /// Snippet for ListFirewallPoliciesAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It 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 ListFirewallPoliciesResourceNamesAsync() + { + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + // Make the request + PagedAsyncEnumerable response = recaptchaEnterpriseServiceClient.ListFirewallPoliciesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((FirewallPolicy item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListFirewallPoliciesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (FirewallPolicy 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 (FirewallPolicy 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 recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_ListFirewallPolicies_async_flattened_resourceNames] +} diff --git a/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.ListFirewallPoliciesResourceNamesSnippet.g.cs b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.ListFirewallPoliciesResourceNamesSnippet.g.cs new file mode 100644 index 000000000000..f761c94ad909 --- /dev/null +++ b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.ListFirewallPoliciesResourceNamesSnippet.g.cs @@ -0,0 +1,78 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_ListFirewallPolicies_sync_flattened_resourceNames] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.RecaptchaEnterprise.V1; + using System; + + public sealed partial class GeneratedRecaptchaEnterpriseServiceClientSnippets + { + /// Snippet for ListFirewallPolicies + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It 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 ListFirewallPoliciesResourceNames() + { + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + // Make the request + PagedEnumerable response = recaptchaEnterpriseServiceClient.ListFirewallPolicies(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (FirewallPolicy 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 (ListFirewallPoliciesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (FirewallPolicy 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 (FirewallPolicy 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 recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_ListFirewallPolicies_sync_flattened_resourceNames] +} diff --git a/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.ListFirewallPoliciesSnippet.g.cs b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.ListFirewallPoliciesSnippet.g.cs new file mode 100644 index 000000000000..a58fb1a6b4ad --- /dev/null +++ b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.ListFirewallPoliciesSnippet.g.cs @@ -0,0 +1,77 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_ListFirewallPolicies_sync_flattened] + using Google.Api.Gax; + using Google.Cloud.RecaptchaEnterprise.V1; + using System; + + public sealed partial class GeneratedRecaptchaEnterpriseServiceClientSnippets + { + /// Snippet for ListFirewallPolicies + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It 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 ListFirewallPolicies() + { + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]"; + // Make the request + PagedEnumerable response = recaptchaEnterpriseServiceClient.ListFirewallPolicies(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (FirewallPolicy 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 (ListFirewallPoliciesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (FirewallPolicy 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 (FirewallPolicy 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 recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_ListFirewallPolicies_sync_flattened] +} diff --git a/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.UpdateFirewallPolicyAsyncSnippet.g.cs b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.UpdateFirewallPolicyAsyncSnippet.g.cs new file mode 100644 index 000000000000..97ea25b5e763 --- /dev/null +++ b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.UpdateFirewallPolicyAsyncSnippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_UpdateFirewallPolicy_async_flattened] + using Google.Cloud.RecaptchaEnterprise.V1; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedRecaptchaEnterpriseServiceClientSnippets + { + /// Snippet for UpdateFirewallPolicyAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It 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 UpdateFirewallPolicyAsync() + { + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync(); + // Initialize request argument(s) + FirewallPolicy firewallPolicy = new FirewallPolicy(); + FieldMask updateMask = new FieldMask(); + // Make the request + FirewallPolicy response = await recaptchaEnterpriseServiceClient.UpdateFirewallPolicyAsync(firewallPolicy, updateMask); + } + } + // [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_UpdateFirewallPolicy_async_flattened] +} diff --git a/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.UpdateFirewallPolicyRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.UpdateFirewallPolicyRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..3825593ec6a8 --- /dev/null +++ b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.UpdateFirewallPolicyRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,49 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_UpdateFirewallPolicy_async] + using Google.Cloud.RecaptchaEnterprise.V1; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedRecaptchaEnterpriseServiceClientSnippets + { + /// Snippet for UpdateFirewallPolicyAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It 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 UpdateFirewallPolicyRequestObjectAsync() + { + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync(); + // Initialize request argument(s) + UpdateFirewallPolicyRequest request = new UpdateFirewallPolicyRequest + { + FirewallPolicy = new FirewallPolicy(), + UpdateMask = new FieldMask(), + }; + // Make the request + FirewallPolicy response = await recaptchaEnterpriseServiceClient.UpdateFirewallPolicyAsync(request); + } + } + // [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_UpdateFirewallPolicy_async] +} diff --git a/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.UpdateFirewallPolicyRequestObjectSnippet.g.cs b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.UpdateFirewallPolicyRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..a959f4864f5c --- /dev/null +++ b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.UpdateFirewallPolicyRequestObjectSnippet.g.cs @@ -0,0 +1,48 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_UpdateFirewallPolicy_sync] + using Google.Cloud.RecaptchaEnterprise.V1; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedRecaptchaEnterpriseServiceClientSnippets + { + /// Snippet for UpdateFirewallPolicy + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It 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 UpdateFirewallPolicyRequestObject() + { + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create(); + // Initialize request argument(s) + UpdateFirewallPolicyRequest request = new UpdateFirewallPolicyRequest + { + FirewallPolicy = new FirewallPolicy(), + UpdateMask = new FieldMask(), + }; + // Make the request + FirewallPolicy response = recaptchaEnterpriseServiceClient.UpdateFirewallPolicy(request); + } + } + // [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_UpdateFirewallPolicy_sync] +} diff --git a/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.UpdateFirewallPolicySnippet.g.cs b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.UpdateFirewallPolicySnippet.g.cs new file mode 100644 index 000000000000..6e310fa91cb2 --- /dev/null +++ b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.UpdateFirewallPolicySnippet.g.cs @@ -0,0 +1,45 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_UpdateFirewallPolicy_sync_flattened] + using Google.Cloud.RecaptchaEnterprise.V1; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedRecaptchaEnterpriseServiceClientSnippets + { + /// Snippet for UpdateFirewallPolicy + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It 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 UpdateFirewallPolicy() + { + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create(); + // Initialize request argument(s) + FirewallPolicy firewallPolicy = new FirewallPolicy(); + FieldMask updateMask = new FieldMask(); + // Make the request + FirewallPolicy response = recaptchaEnterpriseServiceClient.UpdateFirewallPolicy(firewallPolicy, updateMask); + } + } + // [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_UpdateFirewallPolicy_sync_flattened] +} diff --git a/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/snippet_metadata_google.cloud.recaptchaenterprise.v1.json b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/snippet_metadata_google.cloud.recaptchaenterprise.v1.json index af3ac6294ccd..b47b7447f03a 100644 --- a/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/snippet_metadata_google.cloud.recaptchaenterprise.v1.json +++ b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.GeneratedSnippets/snippet_metadata_google.cloud.recaptchaenterprise.v1.json @@ -2680,6 +2680,1399 @@ } ] }, + { + "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_CreateFirewallPolicy_sync", + "title": "CreateFirewallPolicyRequestObject", + "description": "Snippet for CreateFirewallPolicy", + "file": "RecaptchaEnterpriseServiceClient.CreateFirewallPolicyRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateFirewallPolicy", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient.CreateFirewallPolicy", + "parameters": [ + { + "type": "Google.Cloud.RecaptchaEnterprise.V1.CreateFirewallPolicyRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy", + "client": { + "shortName": "RecaptchaEnterpriseServiceClient", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient" + }, + "method": { + "shortName": "CreateFirewallPolicy", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.CreateFirewallPolicy", + "service": { + "shortName": "RecaptchaEnterpriseService", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_CreateFirewallPolicy_async", + "title": "CreateFirewallPolicyRequestObjectAsync", + "description": "Snippet for CreateFirewallPolicyAsync", + "file": "RecaptchaEnterpriseServiceClient.CreateFirewallPolicyRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateFirewallPolicyAsync", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient.CreateFirewallPolicyAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.RecaptchaEnterprise.V1.CreateFirewallPolicyRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "RecaptchaEnterpriseServiceClient", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient" + }, + "method": { + "shortName": "CreateFirewallPolicy", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.CreateFirewallPolicy", + "service": { + "shortName": "RecaptchaEnterpriseService", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 36, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_CreateFirewallPolicy_sync_flattened", + "title": "CreateFirewallPolicy", + "description": "Snippet for CreateFirewallPolicy", + "file": "RecaptchaEnterpriseServiceClient.CreateFirewallPolicySnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateFirewallPolicy", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient.CreateFirewallPolicy", + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy", + "name": "firewallPolicy" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy", + "client": { + "shortName": "RecaptchaEnterpriseServiceClient", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient" + }, + "method": { + "shortName": "CreateFirewallPolicy", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.CreateFirewallPolicy", + "service": { + "shortName": "RecaptchaEnterpriseService", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 34, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_CreateFirewallPolicy_async_flattened", + "title": "CreateFirewallPolicyAsync", + "description": "Snippet for CreateFirewallPolicyAsync", + "file": "RecaptchaEnterpriseServiceClient.CreateFirewallPolicyAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateFirewallPolicyAsync", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient.CreateFirewallPolicyAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy", + "name": "firewallPolicy" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "RecaptchaEnterpriseServiceClient", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient" + }, + "method": { + "shortName": "CreateFirewallPolicy", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.CreateFirewallPolicy", + "service": { + "shortName": "RecaptchaEnterpriseService", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_CreateFirewallPolicy_sync_flattened_resourceNames", + "title": "CreateFirewallPolicyResourceNames", + "description": "Snippet for CreateFirewallPolicy", + "file": "RecaptchaEnterpriseServiceClient.CreateFirewallPolicyResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateFirewallPolicy", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient.CreateFirewallPolicy", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.ProjectName", + "name": "parent" + }, + { + "type": "Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy", + "name": "firewallPolicy" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy", + "client": { + "shortName": "RecaptchaEnterpriseServiceClient", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient" + }, + "method": { + "shortName": "CreateFirewallPolicy", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.CreateFirewallPolicy", + "service": { + "shortName": "RecaptchaEnterpriseService", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_CreateFirewallPolicy_async_flattened_resourceNames", + "title": "CreateFirewallPolicyResourceNamesAsync", + "description": "Snippet for CreateFirewallPolicyAsync", + "file": "RecaptchaEnterpriseServiceClient.CreateFirewallPolicyResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateFirewallPolicyAsync", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient.CreateFirewallPolicyAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.ProjectName", + "name": "parent" + }, + { + "type": "Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy", + "name": "firewallPolicy" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "RecaptchaEnterpriseServiceClient", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient" + }, + "method": { + "shortName": "CreateFirewallPolicy", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.CreateFirewallPolicy", + "service": { + "shortName": "RecaptchaEnterpriseService", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 36, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_ListFirewallPolicies_sync", + "title": "ListFirewallPoliciesRequestObject", + "description": "Snippet for ListFirewallPolicies", + "file": "RecaptchaEnterpriseServiceClient.ListFirewallPoliciesRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListFirewallPolicies", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient.ListFirewallPolicies", + "parameters": [ + { + "type": "Google.Cloud.RecaptchaEnterprise.V1.ListFirewallPoliciesRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "RecaptchaEnterpriseServiceClient", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient" + }, + "method": { + "shortName": "ListFirewallPolicies", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.ListFirewallPolicies", + "service": { + "shortName": "RecaptchaEnterpriseService", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 79, + "type": "FULL" + }, + { + "start": 37, + "end": 77, + "type": "SHORT" + } + ] + }, + { + "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_ListFirewallPolicies_async", + "title": "ListFirewallPoliciesRequestObjectAsync", + "description": "Snippet for ListFirewallPoliciesAsync", + "file": "RecaptchaEnterpriseServiceClient.ListFirewallPoliciesRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListFirewallPoliciesAsync", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient.ListFirewallPoliciesAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.RecaptchaEnterprise.V1.ListFirewallPoliciesRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "RecaptchaEnterpriseServiceClient", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient" + }, + "method": { + "shortName": "ListFirewallPolicies", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.ListFirewallPolicies", + "service": { + "shortName": "RecaptchaEnterpriseService", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 81, + "type": "FULL" + }, + { + "start": 39, + "end": 79, + "type": "SHORT" + } + ] + }, + { + "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_ListFirewallPolicies_sync_flattened", + "title": "ListFirewallPolicies", + "description": "Snippet for ListFirewallPolicies", + "file": "RecaptchaEnterpriseServiceClient.ListFirewallPoliciesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListFirewallPolicies", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient.ListFirewallPolicies", + "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": "RecaptchaEnterpriseServiceClient", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient" + }, + "method": { + "shortName": "ListFirewallPolicies", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.ListFirewallPolicies", + "service": { + "shortName": "RecaptchaEnterpriseService", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_ListFirewallPolicies_async_flattened", + "title": "ListFirewallPoliciesAsync", + "description": "Snippet for ListFirewallPoliciesAsync", + "file": "RecaptchaEnterpriseServiceClient.ListFirewallPoliciesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListFirewallPoliciesAsync", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient.ListFirewallPoliciesAsync", + "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": "RecaptchaEnterpriseServiceClient", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient" + }, + "method": { + "shortName": "ListFirewallPolicies", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.ListFirewallPolicies", + "service": { + "shortName": "RecaptchaEnterpriseService", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_ListFirewallPolicies_sync_flattened_resourceNames", + "title": "ListFirewallPoliciesResourceNames", + "description": "Snippet for ListFirewallPolicies", + "file": "RecaptchaEnterpriseServiceClient.ListFirewallPoliciesResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListFirewallPolicies", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient.ListFirewallPolicies", + "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": "RecaptchaEnterpriseServiceClient", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient" + }, + "method": { + "shortName": "ListFirewallPolicies", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.ListFirewallPolicies", + "service": { + "shortName": "RecaptchaEnterpriseService", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 76, + "type": "FULL" + }, + { + "start": 37, + "end": 74, + "type": "SHORT" + } + ] + }, + { + "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_ListFirewallPolicies_async_flattened_resourceNames", + "title": "ListFirewallPoliciesResourceNamesAsync", + "description": "Snippet for ListFirewallPoliciesAsync", + "file": "RecaptchaEnterpriseServiceClient.ListFirewallPoliciesResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListFirewallPoliciesAsync", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient.ListFirewallPoliciesAsync", + "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": "RecaptchaEnterpriseServiceClient", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient" + }, + "method": { + "shortName": "ListFirewallPolicies", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.ListFirewallPolicies", + "service": { + "shortName": "RecaptchaEnterpriseService", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 78, + "type": "FULL" + }, + { + "start": 39, + "end": 76, + "type": "SHORT" + } + ] + }, + { + "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_GetFirewallPolicy_sync", + "title": "GetFirewallPolicyRequestObject", + "description": "Snippet for GetFirewallPolicy", + "file": "RecaptchaEnterpriseServiceClient.GetFirewallPolicyRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetFirewallPolicy", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient.GetFirewallPolicy", + "parameters": [ + { + "type": "Google.Cloud.RecaptchaEnterprise.V1.GetFirewallPolicyRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy", + "client": { + "shortName": "RecaptchaEnterpriseServiceClient", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient" + }, + "method": { + "shortName": "GetFirewallPolicy", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.GetFirewallPolicy", + "service": { + "shortName": "RecaptchaEnterpriseService", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_GetFirewallPolicy_async", + "title": "GetFirewallPolicyRequestObjectAsync", + "description": "Snippet for GetFirewallPolicyAsync", + "file": "RecaptchaEnterpriseServiceClient.GetFirewallPolicyRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetFirewallPolicyAsync", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient.GetFirewallPolicyAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.RecaptchaEnterprise.V1.GetFirewallPolicyRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "RecaptchaEnterpriseServiceClient", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient" + }, + "method": { + "shortName": "GetFirewallPolicy", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.GetFirewallPolicy", + "service": { + "shortName": "RecaptchaEnterpriseService", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_GetFirewallPolicy_sync_flattened", + "title": "GetFirewallPolicy", + "description": "Snippet for GetFirewallPolicy", + "file": "RecaptchaEnterpriseServiceClient.GetFirewallPolicySnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetFirewallPolicy", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient.GetFirewallPolicy", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy", + "client": { + "shortName": "RecaptchaEnterpriseServiceClient", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient" + }, + "method": { + "shortName": "GetFirewallPolicy", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.GetFirewallPolicy", + "service": { + "shortName": "RecaptchaEnterpriseService", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_GetFirewallPolicy_async_flattened", + "title": "GetFirewallPolicyAsync", + "description": "Snippet for GetFirewallPolicyAsync", + "file": "RecaptchaEnterpriseServiceClient.GetFirewallPolicyAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetFirewallPolicyAsync", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient.GetFirewallPolicyAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "RecaptchaEnterpriseServiceClient", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient" + }, + "method": { + "shortName": "GetFirewallPolicy", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.GetFirewallPolicy", + "service": { + "shortName": "RecaptchaEnterpriseService", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_GetFirewallPolicy_sync_flattened_resourceNames", + "title": "GetFirewallPolicyResourceNames", + "description": "Snippet for GetFirewallPolicy", + "file": "RecaptchaEnterpriseServiceClient.GetFirewallPolicyResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetFirewallPolicy", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient.GetFirewallPolicy", + "parameters": [ + { + "type": "Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicyName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy", + "client": { + "shortName": "RecaptchaEnterpriseServiceClient", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient" + }, + "method": { + "shortName": "GetFirewallPolicy", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.GetFirewallPolicy", + "service": { + "shortName": "RecaptchaEnterpriseService", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_GetFirewallPolicy_async_flattened_resourceNames", + "title": "GetFirewallPolicyResourceNamesAsync", + "description": "Snippet for GetFirewallPolicyAsync", + "file": "RecaptchaEnterpriseServiceClient.GetFirewallPolicyResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetFirewallPolicyAsync", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient.GetFirewallPolicyAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicyName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "RecaptchaEnterpriseServiceClient", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient" + }, + "method": { + "shortName": "GetFirewallPolicy", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.GetFirewallPolicy", + "service": { + "shortName": "RecaptchaEnterpriseService", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_UpdateFirewallPolicy_sync", + "title": "UpdateFirewallPolicyRequestObject", + "description": "Snippet for UpdateFirewallPolicy", + "file": "RecaptchaEnterpriseServiceClient.UpdateFirewallPolicyRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateFirewallPolicy", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient.UpdateFirewallPolicy", + "parameters": [ + { + "type": "Google.Cloud.RecaptchaEnterprise.V1.UpdateFirewallPolicyRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy", + "client": { + "shortName": "RecaptchaEnterpriseServiceClient", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient" + }, + "method": { + "shortName": "UpdateFirewallPolicy", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.UpdateFirewallPolicy", + "service": { + "shortName": "RecaptchaEnterpriseService", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_UpdateFirewallPolicy_async", + "title": "UpdateFirewallPolicyRequestObjectAsync", + "description": "Snippet for UpdateFirewallPolicyAsync", + "file": "RecaptchaEnterpriseServiceClient.UpdateFirewallPolicyRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateFirewallPolicyAsync", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient.UpdateFirewallPolicyAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.RecaptchaEnterprise.V1.UpdateFirewallPolicyRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "RecaptchaEnterpriseServiceClient", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient" + }, + "method": { + "shortName": "UpdateFirewallPolicy", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.UpdateFirewallPolicy", + "service": { + "shortName": "RecaptchaEnterpriseService", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 36, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_UpdateFirewallPolicy_sync_flattened", + "title": "UpdateFirewallPolicy", + "description": "Snippet for UpdateFirewallPolicy", + "file": "RecaptchaEnterpriseServiceClient.UpdateFirewallPolicySnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateFirewallPolicy", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient.UpdateFirewallPolicy", + "parameters": [ + { + "type": "Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy", + "name": "firewallPolicy" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy", + "client": { + "shortName": "RecaptchaEnterpriseServiceClient", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient" + }, + "method": { + "shortName": "UpdateFirewallPolicy", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.UpdateFirewallPolicy", + "service": { + "shortName": "RecaptchaEnterpriseService", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_UpdateFirewallPolicy_async_flattened", + "title": "UpdateFirewallPolicyAsync", + "description": "Snippet for UpdateFirewallPolicyAsync", + "file": "RecaptchaEnterpriseServiceClient.UpdateFirewallPolicyAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateFirewallPolicyAsync", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient.UpdateFirewallPolicyAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy", + "name": "firewallPolicy" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "RecaptchaEnterpriseServiceClient", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient" + }, + "method": { + "shortName": "UpdateFirewallPolicy", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.UpdateFirewallPolicy", + "service": { + "shortName": "RecaptchaEnterpriseService", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 36, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_DeleteFirewallPolicy_sync", + "title": "DeleteFirewallPolicyRequestObject", + "description": "Snippet for DeleteFirewallPolicy", + "file": "RecaptchaEnterpriseServiceClient.DeleteFirewallPolicyRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteFirewallPolicy", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient.DeleteFirewallPolicy", + "parameters": [ + { + "type": "Google.Cloud.RecaptchaEnterprise.V1.DeleteFirewallPolicyRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "RecaptchaEnterpriseServiceClient", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient" + }, + "method": { + "shortName": "DeleteFirewallPolicy", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.DeleteFirewallPolicy", + "service": { + "shortName": "RecaptchaEnterpriseService", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_DeleteFirewallPolicy_async", + "title": "DeleteFirewallPolicyRequestObjectAsync", + "description": "Snippet for DeleteFirewallPolicyAsync", + "file": "RecaptchaEnterpriseServiceClient.DeleteFirewallPolicyRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteFirewallPolicyAsync", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient.DeleteFirewallPolicyAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.RecaptchaEnterprise.V1.DeleteFirewallPolicyRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "RecaptchaEnterpriseServiceClient", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient" + }, + "method": { + "shortName": "DeleteFirewallPolicy", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.DeleteFirewallPolicy", + "service": { + "shortName": "RecaptchaEnterpriseService", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_DeleteFirewallPolicy_sync_flattened", + "title": "DeleteFirewallPolicy", + "description": "Snippet for DeleteFirewallPolicy", + "file": "RecaptchaEnterpriseServiceClient.DeleteFirewallPolicySnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteFirewallPolicy", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient.DeleteFirewallPolicy", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "RecaptchaEnterpriseServiceClient", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient" + }, + "method": { + "shortName": "DeleteFirewallPolicy", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.DeleteFirewallPolicy", + "service": { + "shortName": "RecaptchaEnterpriseService", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_DeleteFirewallPolicy_async_flattened", + "title": "DeleteFirewallPolicyAsync", + "description": "Snippet for DeleteFirewallPolicyAsync", + "file": "RecaptchaEnterpriseServiceClient.DeleteFirewallPolicyAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteFirewallPolicyAsync", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient.DeleteFirewallPolicyAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "RecaptchaEnterpriseServiceClient", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient" + }, + "method": { + "shortName": "DeleteFirewallPolicy", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.DeleteFirewallPolicy", + "service": { + "shortName": "RecaptchaEnterpriseService", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_DeleteFirewallPolicy_sync_flattened_resourceNames", + "title": "DeleteFirewallPolicyResourceNames", + "description": "Snippet for DeleteFirewallPolicy", + "file": "RecaptchaEnterpriseServiceClient.DeleteFirewallPolicyResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteFirewallPolicy", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient.DeleteFirewallPolicy", + "parameters": [ + { + "type": "Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicyName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "RecaptchaEnterpriseServiceClient", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient" + }, + "method": { + "shortName": "DeleteFirewallPolicy", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.DeleteFirewallPolicy", + "service": { + "shortName": "RecaptchaEnterpriseService", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_DeleteFirewallPolicy_async_flattened_resourceNames", + "title": "DeleteFirewallPolicyResourceNamesAsync", + "description": "Snippet for DeleteFirewallPolicyAsync", + "file": "RecaptchaEnterpriseServiceClient.DeleteFirewallPolicyResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteFirewallPolicyAsync", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient.DeleteFirewallPolicyAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicyName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "RecaptchaEnterpriseServiceClient", + "fullName": "Google.Cloud.RecaptchaEnterprise.V1.RecaptchaEnterpriseServiceClient" + }, + "method": { + "shortName": "DeleteFirewallPolicy", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.DeleteFirewallPolicy", + "service": { + "shortName": "RecaptchaEnterpriseService", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, { "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_ListRelatedAccountGroups_sync", "title": "ListRelatedAccountGroupsRequestObject", diff --git a/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.Snippets/RecaptchaEnterpriseServiceClientSnippets.g.cs b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.Snippets/RecaptchaEnterpriseServiceClientSnippets.g.cs index 68ad7efe5158..450c0045f348 100644 --- a/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.Snippets/RecaptchaEnterpriseServiceClientSnippets.g.cs +++ b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1.Snippets/RecaptchaEnterpriseServiceClientSnippets.g.cs @@ -1042,6 +1042,613 @@ public async Task GetMetricsResourceNamesAsync() // End snippet } + /// Snippet for CreateFirewallPolicy + public void CreateFirewallPolicyRequestObject() + { + // Snippet: CreateFirewallPolicy(CreateFirewallPolicyRequest, CallSettings) + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create(); + // Initialize request argument(s) + CreateFirewallPolicyRequest request = new CreateFirewallPolicyRequest + { + ParentAsProjectName = ProjectName.FromProject("[PROJECT]"), + FirewallPolicy = new FirewallPolicy(), + }; + // Make the request + FirewallPolicy response = recaptchaEnterpriseServiceClient.CreateFirewallPolicy(request); + // End snippet + } + + /// Snippet for CreateFirewallPolicyAsync + public async Task CreateFirewallPolicyRequestObjectAsync() + { + // Snippet: CreateFirewallPolicyAsync(CreateFirewallPolicyRequest, CallSettings) + // Additional: CreateFirewallPolicyAsync(CreateFirewallPolicyRequest, CancellationToken) + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync(); + // Initialize request argument(s) + CreateFirewallPolicyRequest request = new CreateFirewallPolicyRequest + { + ParentAsProjectName = ProjectName.FromProject("[PROJECT]"), + FirewallPolicy = new FirewallPolicy(), + }; + // Make the request + FirewallPolicy response = await recaptchaEnterpriseServiceClient.CreateFirewallPolicyAsync(request); + // End snippet + } + + /// Snippet for CreateFirewallPolicy + public void CreateFirewallPolicy() + { + // Snippet: CreateFirewallPolicy(string, FirewallPolicy, CallSettings) + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]"; + FirewallPolicy firewallPolicy = new FirewallPolicy(); + // Make the request + FirewallPolicy response = recaptchaEnterpriseServiceClient.CreateFirewallPolicy(parent, firewallPolicy); + // End snippet + } + + /// Snippet for CreateFirewallPolicyAsync + public async Task CreateFirewallPolicyAsync() + { + // Snippet: CreateFirewallPolicyAsync(string, FirewallPolicy, CallSettings) + // Additional: CreateFirewallPolicyAsync(string, FirewallPolicy, CancellationToken) + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]"; + FirewallPolicy firewallPolicy = new FirewallPolicy(); + // Make the request + FirewallPolicy response = await recaptchaEnterpriseServiceClient.CreateFirewallPolicyAsync(parent, firewallPolicy); + // End snippet + } + + /// Snippet for CreateFirewallPolicy + public void CreateFirewallPolicyResourceNames() + { + // Snippet: CreateFirewallPolicy(ProjectName, FirewallPolicy, CallSettings) + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + FirewallPolicy firewallPolicy = new FirewallPolicy(); + // Make the request + FirewallPolicy response = recaptchaEnterpriseServiceClient.CreateFirewallPolicy(parent, firewallPolicy); + // End snippet + } + + /// Snippet for CreateFirewallPolicyAsync + public async Task CreateFirewallPolicyResourceNamesAsync() + { + // Snippet: CreateFirewallPolicyAsync(ProjectName, FirewallPolicy, CallSettings) + // Additional: CreateFirewallPolicyAsync(ProjectName, FirewallPolicy, CancellationToken) + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + FirewallPolicy firewallPolicy = new FirewallPolicy(); + // Make the request + FirewallPolicy response = await recaptchaEnterpriseServiceClient.CreateFirewallPolicyAsync(parent, firewallPolicy); + // End snippet + } + + /// Snippet for ListFirewallPolicies + public void ListFirewallPoliciesRequestObject() + { + // Snippet: ListFirewallPolicies(ListFirewallPoliciesRequest, CallSettings) + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create(); + // Initialize request argument(s) + ListFirewallPoliciesRequest request = new ListFirewallPoliciesRequest + { + ParentAsProjectName = ProjectName.FromProject("[PROJECT]"), + }; + // Make the request + PagedEnumerable response = recaptchaEnterpriseServiceClient.ListFirewallPolicies(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (FirewallPolicy 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 (ListFirewallPoliciesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (FirewallPolicy 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 (FirewallPolicy 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 ListFirewallPoliciesAsync + public async Task ListFirewallPoliciesRequestObjectAsync() + { + // Snippet: ListFirewallPoliciesAsync(ListFirewallPoliciesRequest, CallSettings) + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync(); + // Initialize request argument(s) + ListFirewallPoliciesRequest request = new ListFirewallPoliciesRequest + { + ParentAsProjectName = ProjectName.FromProject("[PROJECT]"), + }; + // Make the request + PagedAsyncEnumerable response = recaptchaEnterpriseServiceClient.ListFirewallPoliciesAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((FirewallPolicy item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListFirewallPoliciesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (FirewallPolicy 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 (FirewallPolicy 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 ListFirewallPolicies + public void ListFirewallPolicies() + { + // Snippet: ListFirewallPolicies(string, string, int?, CallSettings) + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]"; + // Make the request + PagedEnumerable response = recaptchaEnterpriseServiceClient.ListFirewallPolicies(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (FirewallPolicy 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 (ListFirewallPoliciesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (FirewallPolicy 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 (FirewallPolicy 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 ListFirewallPoliciesAsync + public async Task ListFirewallPoliciesAsync() + { + // Snippet: ListFirewallPoliciesAsync(string, string, int?, CallSettings) + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]"; + // Make the request + PagedAsyncEnumerable response = recaptchaEnterpriseServiceClient.ListFirewallPoliciesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((FirewallPolicy item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListFirewallPoliciesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (FirewallPolicy 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 (FirewallPolicy 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 ListFirewallPolicies + public void ListFirewallPoliciesResourceNames() + { + // Snippet: ListFirewallPolicies(ProjectName, string, int?, CallSettings) + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + // Make the request + PagedEnumerable response = recaptchaEnterpriseServiceClient.ListFirewallPolicies(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (FirewallPolicy 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 (ListFirewallPoliciesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (FirewallPolicy 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 (FirewallPolicy 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 ListFirewallPoliciesAsync + public async Task ListFirewallPoliciesResourceNamesAsync() + { + // Snippet: ListFirewallPoliciesAsync(ProjectName, string, int?, CallSettings) + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + // Make the request + PagedAsyncEnumerable response = recaptchaEnterpriseServiceClient.ListFirewallPoliciesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((FirewallPolicy item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListFirewallPoliciesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (FirewallPolicy 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 (FirewallPolicy 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 GetFirewallPolicy + public void GetFirewallPolicyRequestObject() + { + // Snippet: GetFirewallPolicy(GetFirewallPolicyRequest, CallSettings) + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create(); + // Initialize request argument(s) + GetFirewallPolicyRequest request = new GetFirewallPolicyRequest + { + FirewallPolicyName = FirewallPolicyName.FromProjectFirewallpolicy("[PROJECT]", "[FIREWALLPOLICY]"), + }; + // Make the request + FirewallPolicy response = recaptchaEnterpriseServiceClient.GetFirewallPolicy(request); + // End snippet + } + + /// Snippet for GetFirewallPolicyAsync + public async Task GetFirewallPolicyRequestObjectAsync() + { + // Snippet: GetFirewallPolicyAsync(GetFirewallPolicyRequest, CallSettings) + // Additional: GetFirewallPolicyAsync(GetFirewallPolicyRequest, CancellationToken) + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync(); + // Initialize request argument(s) + GetFirewallPolicyRequest request = new GetFirewallPolicyRequest + { + FirewallPolicyName = FirewallPolicyName.FromProjectFirewallpolicy("[PROJECT]", "[FIREWALLPOLICY]"), + }; + // Make the request + FirewallPolicy response = await recaptchaEnterpriseServiceClient.GetFirewallPolicyAsync(request); + // End snippet + } + + /// Snippet for GetFirewallPolicy + public void GetFirewallPolicy() + { + // Snippet: GetFirewallPolicy(string, CallSettings) + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/firewallpolicies/[FIREWALLPOLICY]"; + // Make the request + FirewallPolicy response = recaptchaEnterpriseServiceClient.GetFirewallPolicy(name); + // End snippet + } + + /// Snippet for GetFirewallPolicyAsync + public async Task GetFirewallPolicyAsync() + { + // Snippet: GetFirewallPolicyAsync(string, CallSettings) + // Additional: GetFirewallPolicyAsync(string, CancellationToken) + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/firewallpolicies/[FIREWALLPOLICY]"; + // Make the request + FirewallPolicy response = await recaptchaEnterpriseServiceClient.GetFirewallPolicyAsync(name); + // End snippet + } + + /// Snippet for GetFirewallPolicy + public void GetFirewallPolicyResourceNames() + { + // Snippet: GetFirewallPolicy(FirewallPolicyName, CallSettings) + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create(); + // Initialize request argument(s) + FirewallPolicyName name = FirewallPolicyName.FromProjectFirewallpolicy("[PROJECT]", "[FIREWALLPOLICY]"); + // Make the request + FirewallPolicy response = recaptchaEnterpriseServiceClient.GetFirewallPolicy(name); + // End snippet + } + + /// Snippet for GetFirewallPolicyAsync + public async Task GetFirewallPolicyResourceNamesAsync() + { + // Snippet: GetFirewallPolicyAsync(FirewallPolicyName, CallSettings) + // Additional: GetFirewallPolicyAsync(FirewallPolicyName, CancellationToken) + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync(); + // Initialize request argument(s) + FirewallPolicyName name = FirewallPolicyName.FromProjectFirewallpolicy("[PROJECT]", "[FIREWALLPOLICY]"); + // Make the request + FirewallPolicy response = await recaptchaEnterpriseServiceClient.GetFirewallPolicyAsync(name); + // End snippet + } + + /// Snippet for UpdateFirewallPolicy + public void UpdateFirewallPolicyRequestObject() + { + // Snippet: UpdateFirewallPolicy(UpdateFirewallPolicyRequest, CallSettings) + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create(); + // Initialize request argument(s) + UpdateFirewallPolicyRequest request = new UpdateFirewallPolicyRequest + { + FirewallPolicy = new FirewallPolicy(), + UpdateMask = new FieldMask(), + }; + // Make the request + FirewallPolicy response = recaptchaEnterpriseServiceClient.UpdateFirewallPolicy(request); + // End snippet + } + + /// Snippet for UpdateFirewallPolicyAsync + public async Task UpdateFirewallPolicyRequestObjectAsync() + { + // Snippet: UpdateFirewallPolicyAsync(UpdateFirewallPolicyRequest, CallSettings) + // Additional: UpdateFirewallPolicyAsync(UpdateFirewallPolicyRequest, CancellationToken) + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync(); + // Initialize request argument(s) + UpdateFirewallPolicyRequest request = new UpdateFirewallPolicyRequest + { + FirewallPolicy = new FirewallPolicy(), + UpdateMask = new FieldMask(), + }; + // Make the request + FirewallPolicy response = await recaptchaEnterpriseServiceClient.UpdateFirewallPolicyAsync(request); + // End snippet + } + + /// Snippet for UpdateFirewallPolicy + public void UpdateFirewallPolicy() + { + // Snippet: UpdateFirewallPolicy(FirewallPolicy, FieldMask, CallSettings) + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create(); + // Initialize request argument(s) + FirewallPolicy firewallPolicy = new FirewallPolicy(); + FieldMask updateMask = new FieldMask(); + // Make the request + FirewallPolicy response = recaptchaEnterpriseServiceClient.UpdateFirewallPolicy(firewallPolicy, updateMask); + // End snippet + } + + /// Snippet for UpdateFirewallPolicyAsync + public async Task UpdateFirewallPolicyAsync() + { + // Snippet: UpdateFirewallPolicyAsync(FirewallPolicy, FieldMask, CallSettings) + // Additional: UpdateFirewallPolicyAsync(FirewallPolicy, FieldMask, CancellationToken) + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync(); + // Initialize request argument(s) + FirewallPolicy firewallPolicy = new FirewallPolicy(); + FieldMask updateMask = new FieldMask(); + // Make the request + FirewallPolicy response = await recaptchaEnterpriseServiceClient.UpdateFirewallPolicyAsync(firewallPolicy, updateMask); + // End snippet + } + + /// Snippet for DeleteFirewallPolicy + public void DeleteFirewallPolicyRequestObject() + { + // Snippet: DeleteFirewallPolicy(DeleteFirewallPolicyRequest, CallSettings) + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create(); + // Initialize request argument(s) + DeleteFirewallPolicyRequest request = new DeleteFirewallPolicyRequest + { + FirewallPolicyName = FirewallPolicyName.FromProjectFirewallpolicy("[PROJECT]", "[FIREWALLPOLICY]"), + }; + // Make the request + recaptchaEnterpriseServiceClient.DeleteFirewallPolicy(request); + // End snippet + } + + /// Snippet for DeleteFirewallPolicyAsync + public async Task DeleteFirewallPolicyRequestObjectAsync() + { + // Snippet: DeleteFirewallPolicyAsync(DeleteFirewallPolicyRequest, CallSettings) + // Additional: DeleteFirewallPolicyAsync(DeleteFirewallPolicyRequest, CancellationToken) + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync(); + // Initialize request argument(s) + DeleteFirewallPolicyRequest request = new DeleteFirewallPolicyRequest + { + FirewallPolicyName = FirewallPolicyName.FromProjectFirewallpolicy("[PROJECT]", "[FIREWALLPOLICY]"), + }; + // Make the request + await recaptchaEnterpriseServiceClient.DeleteFirewallPolicyAsync(request); + // End snippet + } + + /// Snippet for DeleteFirewallPolicy + public void DeleteFirewallPolicy() + { + // Snippet: DeleteFirewallPolicy(string, CallSettings) + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/firewallpolicies/[FIREWALLPOLICY]"; + // Make the request + recaptchaEnterpriseServiceClient.DeleteFirewallPolicy(name); + // End snippet + } + + /// Snippet for DeleteFirewallPolicyAsync + public async Task DeleteFirewallPolicyAsync() + { + // Snippet: DeleteFirewallPolicyAsync(string, CallSettings) + // Additional: DeleteFirewallPolicyAsync(string, CancellationToken) + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/firewallpolicies/[FIREWALLPOLICY]"; + // Make the request + await recaptchaEnterpriseServiceClient.DeleteFirewallPolicyAsync(name); + // End snippet + } + + /// Snippet for DeleteFirewallPolicy + public void DeleteFirewallPolicyResourceNames() + { + // Snippet: DeleteFirewallPolicy(FirewallPolicyName, CallSettings) + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create(); + // Initialize request argument(s) + FirewallPolicyName name = FirewallPolicyName.FromProjectFirewallpolicy("[PROJECT]", "[FIREWALLPOLICY]"); + // Make the request + recaptchaEnterpriseServiceClient.DeleteFirewallPolicy(name); + // End snippet + } + + /// Snippet for DeleteFirewallPolicyAsync + public async Task DeleteFirewallPolicyResourceNamesAsync() + { + // Snippet: DeleteFirewallPolicyAsync(FirewallPolicyName, CallSettings) + // Additional: DeleteFirewallPolicyAsync(FirewallPolicyName, CancellationToken) + // Create client + RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync(); + // Initialize request argument(s) + FirewallPolicyName name = FirewallPolicyName.FromProjectFirewallpolicy("[PROJECT]", "[FIREWALLPOLICY]"); + // Make the request + await recaptchaEnterpriseServiceClient.DeleteFirewallPolicyAsync(name); + // End snippet + } + /// Snippet for ListRelatedAccountGroups public void ListRelatedAccountGroupsRequestObject() { diff --git a/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1/RecaptchaEnterpriseServiceClient.g.cs b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1/RecaptchaEnterpriseServiceClient.g.cs index b37c2ecfe2fb..da4901f2bc44 100644 --- a/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1/RecaptchaEnterpriseServiceClient.g.cs +++ b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1/RecaptchaEnterpriseServiceClient.g.cs @@ -59,6 +59,11 @@ private RecaptchaEnterpriseServiceSettings(RecaptchaEnterpriseServiceSettings ex DeleteKeySettings = existing.DeleteKeySettings; MigrateKeySettings = existing.MigrateKeySettings; GetMetricsSettings = existing.GetMetricsSettings; + CreateFirewallPolicySettings = existing.CreateFirewallPolicySettings; + ListFirewallPoliciesSettings = existing.ListFirewallPoliciesSettings; + GetFirewallPolicySettings = existing.GetFirewallPolicySettings; + UpdateFirewallPolicySettings = existing.UpdateFirewallPolicySettings; + DeleteFirewallPolicySettings = existing.DeleteFirewallPolicySettings; ListRelatedAccountGroupsSettings = existing.ListRelatedAccountGroupsSettings; ListRelatedAccountGroupMembershipsSettings = existing.ListRelatedAccountGroupMembershipsSettings; SearchRelatedAccountGroupMembershipsSettings = existing.SearchRelatedAccountGroupMembershipsSettings; @@ -195,6 +200,71 @@ private RecaptchaEnterpriseServiceSettings(RecaptchaEnterpriseServiceSettings ex /// public gaxgrpc::CallSettings GetMetricsSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + /// + /// for synchronous and asynchronous calls to + /// RecaptchaEnterpriseServiceClient.CreateFirewallPolicy and + /// RecaptchaEnterpriseServiceClient.CreateFirewallPolicyAsync. + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings CreateFirewallPolicySettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + + /// + /// for synchronous and asynchronous calls to + /// RecaptchaEnterpriseServiceClient.ListFirewallPolicies and + /// RecaptchaEnterpriseServiceClient.ListFirewallPoliciesAsync. + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings ListFirewallPoliciesSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + + /// + /// for synchronous and asynchronous calls to + /// RecaptchaEnterpriseServiceClient.GetFirewallPolicy and + /// RecaptchaEnterpriseServiceClient.GetFirewallPolicyAsync. + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings GetFirewallPolicySettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + + /// + /// for synchronous and asynchronous calls to + /// RecaptchaEnterpriseServiceClient.UpdateFirewallPolicy and + /// RecaptchaEnterpriseServiceClient.UpdateFirewallPolicyAsync. + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings UpdateFirewallPolicySettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + + /// + /// for synchronous and asynchronous calls to + /// RecaptchaEnterpriseServiceClient.DeleteFirewallPolicy and + /// RecaptchaEnterpriseServiceClient.DeleteFirewallPolicyAsync. + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings DeleteFirewallPolicySettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + /// /// for synchronous and asynchronous calls to /// RecaptchaEnterpriseServiceClient.ListRelatedAccountGroups and @@ -410,7 +480,7 @@ public virtual Assessment CreateAssessment(CreateAssessmentRequest request, gaxg /// /// /// Required. The name of the project in which the assessment will be created, - /// in the format "projects/{project}". + /// in the format `projects/{project}`. /// /// /// Required. The assessment details. @@ -429,7 +499,7 @@ public virtual Assessment CreateAssessment(string parent, Assessment assessment, /// /// /// Required. The name of the project in which the assessment will be created, - /// in the format "projects/{project}". + /// in the format `projects/{project}`. /// /// /// Required. The assessment details. @@ -448,7 +518,7 @@ public virtual Assessment CreateAssessment(string parent, Assessment assessment, /// /// /// Required. The name of the project in which the assessment will be created, - /// in the format "projects/{project}". + /// in the format `projects/{project}`. /// /// /// Required. The assessment details. @@ -463,7 +533,7 @@ public virtual Assessment CreateAssessment(string parent, Assessment assessment, /// /// /// Required. The name of the project in which the assessment will be created, - /// in the format "projects/{project}". + /// in the format `projects/{project}`. /// /// /// Required. The assessment details. @@ -482,7 +552,7 @@ public virtual Assessment CreateAssessment(gagr::ProjectName parent, Assessment /// /// /// Required. The name of the project in which the assessment will be created, - /// in the format "projects/{project}". + /// in the format `projects/{project}`. /// /// /// Required. The assessment details. @@ -501,7 +571,7 @@ public virtual Assessment CreateAssessment(gagr::ProjectName parent, Assessment /// /// /// Required. The name of the project in which the assessment will be created, - /// in the format "projects/{project}". + /// in the format `projects/{project}`. /// /// /// Required. The assessment details. @@ -547,7 +617,7 @@ public virtual AnnotateAssessmentResponse AnnotateAssessment(AnnotateAssessmentR /// /// /// Required. The resource name of the Assessment, in the format - /// "projects/{project}/assessments/{assessment}". + /// `projects/{project}/assessments/{assessment}`. /// /// /// Optional. The annotation that will be assigned to the Event. This field can @@ -569,7 +639,7 @@ public virtual AnnotateAssessmentResponse AnnotateAssessment(string name, Annota /// /// /// Required. The resource name of the Assessment, in the format - /// "projects/{project}/assessments/{assessment}". + /// `projects/{project}/assessments/{assessment}`. /// /// /// Optional. The annotation that will be assigned to the Event. This field can @@ -591,7 +661,7 @@ public virtual AnnotateAssessmentResponse AnnotateAssessment(string name, Annota /// /// /// Required. The resource name of the Assessment, in the format - /// "projects/{project}/assessments/{assessment}". + /// `projects/{project}/assessments/{assessment}`. /// /// /// Optional. The annotation that will be assigned to the Event. This field can @@ -609,7 +679,7 @@ public virtual AnnotateAssessmentResponse AnnotateAssessment(string name, Annota /// /// /// Required. The resource name of the Assessment, in the format - /// "projects/{project}/assessments/{assessment}". + /// `projects/{project}/assessments/{assessment}`. /// /// /// Optional. The annotation that will be assigned to the Event. This field can @@ -631,7 +701,7 @@ public virtual AnnotateAssessmentResponse AnnotateAssessment(AssessmentName name /// /// /// Required. The resource name of the Assessment, in the format - /// "projects/{project}/assessments/{assessment}". + /// `projects/{project}/assessments/{assessment}`. /// /// /// Optional. The annotation that will be assigned to the Event. This field can @@ -653,7 +723,7 @@ public virtual AnnotateAssessmentResponse AnnotateAssessment(AssessmentName name /// /// /// Required. The resource name of the Assessment, in the format - /// "projects/{project}/assessments/{assessment}". + /// `projects/{project}/assessments/{assessment}`. /// /// /// Optional. The annotation that will be assigned to the Event. This field can @@ -697,7 +767,7 @@ public virtual Key CreateKey(CreateKeyRequest request, gaxgrpc::CallSettings cal /// /// /// Required. The name of the project in which the key will be created, in the - /// format "projects/{project}". + /// format `projects/{project}`. /// /// /// Required. Information to create a reCAPTCHA Enterprise key. @@ -716,7 +786,7 @@ public virtual Key CreateKey(string parent, Key key, gaxgrpc::CallSettings callS /// /// /// Required. The name of the project in which the key will be created, in the - /// format "projects/{project}". + /// format `projects/{project}`. /// /// /// Required. Information to create a reCAPTCHA Enterprise key. @@ -735,7 +805,7 @@ public virtual Key CreateKey(string parent, Key key, gaxgrpc::CallSettings callS /// /// /// Required. The name of the project in which the key will be created, in the - /// format "projects/{project}". + /// format `projects/{project}`. /// /// /// Required. Information to create a reCAPTCHA Enterprise key. @@ -750,7 +820,7 @@ public virtual Key CreateKey(string parent, Key key, gaxgrpc::CallSettings callS /// /// /// Required. The name of the project in which the key will be created, in the - /// format "projects/{project}". + /// format `projects/{project}`. /// /// /// Required. Information to create a reCAPTCHA Enterprise key. @@ -769,7 +839,7 @@ public virtual Key CreateKey(gagr::ProjectName parent, Key key, gaxgrpc::CallSet /// /// /// Required. The name of the project in which the key will be created, in the - /// format "projects/{project}". + /// format `projects/{project}`. /// /// /// Required. Information to create a reCAPTCHA Enterprise key. @@ -788,7 +858,7 @@ public virtual Key CreateKey(gagr::ProjectName parent, Key key, gaxgrpc::CallSet /// /// /// Required. The name of the project in which the key will be created, in the - /// format "projects/{project}". + /// format `projects/{project}`. /// /// /// Required. Information to create a reCAPTCHA Enterprise key. @@ -821,7 +891,7 @@ public virtual Key CreateKey(gagr::ProjectName parent, Key key, gaxgrpc::CallSet /// /// /// Required. The name of the project that contains the keys that will be - /// listed, in the format "projects/{project}". + /// listed, in the format `projects/{project}`. /// /// /// The token returned from the previous request. A value of null or an empty string retrieves the first @@ -846,7 +916,7 @@ public virtual Key CreateKey(gagr::ProjectName parent, Key key, gaxgrpc::CallSet /// /// /// Required. The name of the project that contains the keys that will be - /// listed, in the format "projects/{project}". + /// listed, in the format `projects/{project}`. /// /// /// The token returned from the previous request. A value of null or an empty string retrieves the first @@ -871,7 +941,7 @@ public virtual Key CreateKey(gagr::ProjectName parent, Key key, gaxgrpc::CallSet /// /// /// Required. The name of the project that contains the keys that will be - /// listed, in the format "projects/{project}". + /// listed, in the format `projects/{project}`. /// /// /// The token returned from the previous request. A value of null or an empty string retrieves the first @@ -896,7 +966,7 @@ public virtual Key CreateKey(gagr::ProjectName parent, Key key, gaxgrpc::CallSet /// /// /// Required. The name of the project that contains the keys that will be - /// listed, in the format "projects/{project}". + /// listed, in the format `projects/{project}`. /// /// /// The token returned from the previous request. A value of null or an empty string retrieves the first @@ -956,7 +1026,7 @@ public virtual RetrieveLegacySecretKeyResponse RetrieveLegacySecretKey(RetrieveL /// /// /// Required. The public key name linked to the requested secret key in the - /// format "projects/{project}/keys/{key}". + /// format `projects/{project}/keys/{key}`. /// /// If not null, applies overrides to this RPC call. /// The RPC response. @@ -973,7 +1043,7 @@ public virtual RetrieveLegacySecretKeyResponse RetrieveLegacySecretKey(string ke /// /// /// Required. The public key name linked to the requested secret key in the - /// format "projects/{project}/keys/{key}". + /// format `projects/{project}/keys/{key}`. /// /// If not null, applies overrides to this RPC call. /// A Task containing the RPC response. @@ -990,7 +1060,7 @@ public virtual RetrieveLegacySecretKeyResponse RetrieveLegacySecretKey(string ke /// /// /// Required. The public key name linked to the requested secret key in the - /// format "projects/{project}/keys/{key}". + /// format `projects/{project}/keys/{key}`. /// /// A to use for this RPC. /// A Task containing the RPC response. @@ -1004,7 +1074,7 @@ public virtual RetrieveLegacySecretKeyResponse RetrieveLegacySecretKey(string ke /// /// /// Required. The public key name linked to the requested secret key in the - /// format "projects/{project}/keys/{key}". + /// format `projects/{project}/keys/{key}`. /// /// If not null, applies overrides to this RPC call. /// The RPC response. @@ -1021,7 +1091,7 @@ public virtual RetrieveLegacySecretKeyResponse RetrieveLegacySecretKey(KeyName k /// /// /// Required. The public key name linked to the requested secret key in the - /// format "projects/{project}/keys/{key}". + /// format `projects/{project}/keys/{key}`. /// /// If not null, applies overrides to this RPC call. /// A Task containing the RPC response. @@ -1038,7 +1108,7 @@ public virtual RetrieveLegacySecretKeyResponse RetrieveLegacySecretKey(KeyName k /// /// /// Required. The public key name linked to the requested secret key in the - /// format "projects/{project}/keys/{key}". + /// format `projects/{project}/keys/{key}`. /// /// A to use for this RPC. /// A Task containing the RPC response. @@ -1077,7 +1147,7 @@ public virtual Key GetKey(GetKeyRequest request, gaxgrpc::CallSettings callSetti /// /// /// Required. The name of the requested key, in the format - /// "projects/{project}/keys/{key}". + /// `projects/{project}/keys/{key}`. /// /// If not null, applies overrides to this RPC call. /// The RPC response. @@ -1092,7 +1162,7 @@ public virtual Key GetKey(string name, gaxgrpc::CallSettings callSettings = null /// /// /// Required. The name of the requested key, in the format - /// "projects/{project}/keys/{key}". + /// `projects/{project}/keys/{key}`. /// /// If not null, applies overrides to this RPC call. /// A Task containing the RPC response. @@ -1107,7 +1177,7 @@ public virtual Key GetKey(string name, gaxgrpc::CallSettings callSettings = null /// /// /// Required. The name of the requested key, in the format - /// "projects/{project}/keys/{key}". + /// `projects/{project}/keys/{key}`. /// /// A to use for this RPC. /// A Task containing the RPC response. @@ -1119,7 +1189,7 @@ public virtual Key GetKey(string name, gaxgrpc::CallSettings callSettings = null /// /// /// Required. The name of the requested key, in the format - /// "projects/{project}/keys/{key}". + /// `projects/{project}/keys/{key}`. /// /// If not null, applies overrides to this RPC call. /// The RPC response. @@ -1134,7 +1204,7 @@ public virtual Key GetKey(KeyName name, gaxgrpc::CallSettings callSettings = nul /// /// /// Required. The name of the requested key, in the format - /// "projects/{project}/keys/{key}". + /// `projects/{project}/keys/{key}`. /// /// If not null, applies overrides to this RPC call. /// A Task containing the RPC response. @@ -1149,7 +1219,7 @@ public virtual Key GetKey(KeyName name, gaxgrpc::CallSettings callSettings = nul /// /// /// Required. The name of the requested key, in the format - /// "projects/{project}/keys/{key}". + /// `projects/{project}/keys/{key}`. /// /// A to use for this RPC. /// A Task containing the RPC response. @@ -1268,7 +1338,7 @@ public virtual void DeleteKey(DeleteKeyRequest request, gaxgrpc::CallSettings ca /// /// /// Required. The name of the key to be deleted, in the format - /// "projects/{project}/keys/{key}". + /// `projects/{project}/keys/{key}`. /// /// If not null, applies overrides to this RPC call. /// The RPC response. @@ -1283,7 +1353,7 @@ public virtual void DeleteKey(string name, gaxgrpc::CallSettings callSettings = /// /// /// Required. The name of the key to be deleted, in the format - /// "projects/{project}/keys/{key}". + /// `projects/{project}/keys/{key}`. /// /// If not null, applies overrides to this RPC call. /// A Task containing the RPC response. @@ -1298,7 +1368,7 @@ public virtual void DeleteKey(string name, gaxgrpc::CallSettings callSettings = /// /// /// Required. The name of the key to be deleted, in the format - /// "projects/{project}/keys/{key}". + /// `projects/{project}/keys/{key}`. /// /// A to use for this RPC. /// A Task containing the RPC response. @@ -1310,7 +1380,7 @@ public virtual void DeleteKey(string name, gaxgrpc::CallSettings callSettings = /// /// /// Required. The name of the key to be deleted, in the format - /// "projects/{project}/keys/{key}". + /// `projects/{project}/keys/{key}`. /// /// If not null, applies overrides to this RPC call. /// The RPC response. @@ -1325,7 +1395,7 @@ public virtual void DeleteKey(KeyName name, gaxgrpc::CallSettings callSettings = /// /// /// Required. The name of the key to be deleted, in the format - /// "projects/{project}/keys/{key}". + /// `projects/{project}/keys/{key}`. /// /// If not null, applies overrides to this RPC call. /// A Task containing the RPC response. @@ -1340,7 +1410,7 @@ public virtual void DeleteKey(KeyName name, gaxgrpc::CallSettings callSettings = /// /// /// Required. The name of the key to be deleted, in the format - /// "projects/{project}/keys/{key}". + /// `projects/{project}/keys/{key}`. /// /// A to use for this RPC. /// A Task containing the RPC response. @@ -1351,7 +1421,7 @@ public virtual void DeleteKey(KeyName name, gaxgrpc::CallSettings callSettings = /// Migrates an existing key from reCAPTCHA to reCAPTCHA Enterprise. /// Once a key is migrated, it can be used from either product. SiteVerify /// requests are billed as CreateAssessment calls. You must be - /// authenticated as one of the current owners of the reCAPTCHA Site Key, and + /// authenticated as one of the current owners of the reCAPTCHA Key, and /// your user must have the reCAPTCHA Enterprise Admin IAM role in the /// destination project. /// @@ -1365,7 +1435,7 @@ public virtual Key MigrateKey(MigrateKeyRequest request, gaxgrpc::CallSettings c /// Migrates an existing key from reCAPTCHA to reCAPTCHA Enterprise. /// Once a key is migrated, it can be used from either product. SiteVerify /// requests are billed as CreateAssessment calls. You must be - /// authenticated as one of the current owners of the reCAPTCHA Site Key, and + /// authenticated as one of the current owners of the reCAPTCHA Key, and /// your user must have the reCAPTCHA Enterprise Admin IAM role in the /// destination project. /// @@ -1379,7 +1449,7 @@ public virtual Key MigrateKey(MigrateKeyRequest request, gaxgrpc::CallSettings c /// Migrates an existing key from reCAPTCHA to reCAPTCHA Enterprise. /// Once a key is migrated, it can be used from either product. SiteVerify /// requests are billed as CreateAssessment calls. You must be - /// authenticated as one of the current owners of the reCAPTCHA Site Key, and + /// authenticated as one of the current owners of the reCAPTCHA Key, and /// your user must have the reCAPTCHA Enterprise Admin IAM role in the /// destination project. /// @@ -1425,7 +1495,7 @@ public virtual Metrics GetMetrics(GetMetricsRequest request, gaxgrpc::CallSettin /// /// /// Required. The name of the requested metrics, in the format - /// "projects/{project}/keys/{key}/metrics". + /// `projects/{project}/keys/{key}/metrics`. /// /// If not null, applies overrides to this RPC call. /// The RPC response. @@ -1441,7 +1511,7 @@ public virtual Metrics GetMetrics(string name, gaxgrpc::CallSettings callSetting /// /// /// Required. The name of the requested metrics, in the format - /// "projects/{project}/keys/{key}/metrics". + /// `projects/{project}/keys/{key}/metrics`. /// /// If not null, applies overrides to this RPC call. /// A Task containing the RPC response. @@ -1457,7 +1527,7 @@ public virtual Metrics GetMetrics(string name, gaxgrpc::CallSettings callSetting /// /// /// Required. The name of the requested metrics, in the format - /// "projects/{project}/keys/{key}/metrics". + /// `projects/{project}/keys/{key}/metrics`. /// /// A to use for this RPC. /// A Task containing the RPC response. @@ -1470,7 +1540,7 @@ public virtual Metrics GetMetrics(string name, gaxgrpc::CallSettings callSetting /// /// /// Required. The name of the requested metrics, in the format - /// "projects/{project}/keys/{key}/metrics". + /// `projects/{project}/keys/{key}/metrics`. /// /// If not null, applies overrides to this RPC call. /// The RPC response. @@ -1486,7 +1556,7 @@ public virtual Metrics GetMetrics(MetricsName name, gaxgrpc::CallSettings callSe /// /// /// Required. The name of the requested metrics, in the format - /// "projects/{project}/keys/{key}/metrics". + /// `projects/{project}/keys/{key}/metrics`. /// /// If not null, applies overrides to this RPC call. /// A Task containing the RPC response. @@ -1502,7 +1572,7 @@ public virtual Metrics GetMetrics(MetricsName name, gaxgrpc::CallSettings callSe /// /// /// Required. The name of the requested metrics, in the format - /// "projects/{project}/keys/{key}/metrics". + /// `projects/{project}/keys/{key}/metrics`. /// /// A to use for this RPC. /// A Task containing the RPC response. @@ -1510,149 +1580,180 @@ public virtual Metrics GetMetrics(MetricsName name, gaxgrpc::CallSettings callSe GetMetricsAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); /// - /// List groups of related accounts. + /// Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA + /// Enterprise actions can be executed. + /// A project may have a maximum of 1000 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 ListRelatedAccountGroups(ListRelatedAccountGroupsRequest request, gaxgrpc::CallSettings callSettings = null) => + /// The RPC response. + public virtual FirewallPolicy CreateFirewallPolicy(CreateFirewallPolicyRequest request, gaxgrpc::CallSettings callSettings = null) => throw new sys::NotImplementedException(); /// - /// List groups of related accounts. + /// Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA + /// Enterprise actions can be executed. + /// A project may have a maximum of 1000 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 ListRelatedAccountGroupsAsync(ListRelatedAccountGroupsRequest request, gaxgrpc::CallSettings callSettings = null) => + /// A Task containing the RPC response. + public virtual stt::Task CreateFirewallPolicyAsync(CreateFirewallPolicyRequest request, gaxgrpc::CallSettings callSettings = null) => throw new sys::NotImplementedException(); /// - /// List groups of related accounts. + /// Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA + /// Enterprise actions can be executed. + /// A project may have a maximum of 1000 policies. + /// + /// 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 CreateFirewallPolicyAsync(CreateFirewallPolicyRequest request, st::CancellationToken cancellationToken) => + CreateFirewallPolicyAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA + /// Enterprise actions can be executed. + /// A project may have a maximum of 1000 policies. /// /// - /// Required. The name of the project to list related account groups from, in - /// the format "projects/{project}". - /// - /// - /// The token returned from the previous request. A value of null or an empty string retrieves the first - /// page. + /// Required. The name of the project this policy will apply to, in the format + /// `projects/{project}`. /// - /// - /// 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. + /// + /// Required. Information to create the policy. /// /// If not null, applies overrides to this RPC call. - /// A pageable sequence of resources. - public virtual gax::PagedEnumerable ListRelatedAccountGroups(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) => - ListRelatedAccountGroups(new ListRelatedAccountGroupsRequest + /// The RPC response. + public virtual FirewallPolicy CreateFirewallPolicy(string parent, FirewallPolicy firewallPolicy, gaxgrpc::CallSettings callSettings = null) => + CreateFirewallPolicy(new CreateFirewallPolicyRequest { Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), - PageToken = pageToken ?? "", - PageSize = pageSize ?? 0, + FirewallPolicy = gax::GaxPreconditions.CheckNotNull(firewallPolicy, nameof(firewallPolicy)), }, callSettings); /// - /// List groups of related accounts. + /// Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA + /// Enterprise actions can be executed. + /// A project may have a maximum of 1000 policies. /// /// - /// Required. The name of the project to list related account groups from, in - /// the format "projects/{project}". - /// - /// - /// The token returned from the previous request. A value of null or an empty string retrieves the first - /// page. + /// Required. The name of the project this policy will apply to, in the format + /// `projects/{project}`. /// - /// - /// 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. + /// + /// Required. Information to create the policy. /// /// If not null, applies overrides to this RPC call. - /// A pageable asynchronous sequence of resources. - public virtual gax::PagedAsyncEnumerable ListRelatedAccountGroupsAsync(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) => - ListRelatedAccountGroupsAsync(new ListRelatedAccountGroupsRequest + /// A Task containing the RPC response. + public virtual stt::Task CreateFirewallPolicyAsync(string parent, FirewallPolicy firewallPolicy, gaxgrpc::CallSettings callSettings = null) => + CreateFirewallPolicyAsync(new CreateFirewallPolicyRequest { Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), - PageToken = pageToken ?? "", - PageSize = pageSize ?? 0, + FirewallPolicy = gax::GaxPreconditions.CheckNotNull(firewallPolicy, nameof(firewallPolicy)), }, callSettings); /// - /// List groups of related accounts. + /// Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA + /// Enterprise actions can be executed. + /// A project may have a maximum of 1000 policies. /// /// - /// Required. The name of the project to list related account groups from, in - /// the format "projects/{project}". + /// Required. The name of the project this policy will apply to, in the format + /// `projects/{project}`. /// - /// - /// The token returned from the previous request. A value of null or an empty string retrieves the first - /// page. + /// + /// Required. Information to create the policy. /// - /// - /// 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. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task CreateFirewallPolicyAsync(string parent, FirewallPolicy firewallPolicy, st::CancellationToken cancellationToken) => + CreateFirewallPolicyAsync(parent, firewallPolicy, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA + /// Enterprise actions can be executed. + /// A project may have a maximum of 1000 policies. + /// + /// + /// Required. The name of the project this policy will apply to, in the format + /// `projects/{project}`. + /// + /// + /// Required. Information to create the policy. /// /// If not null, applies overrides to this RPC call. - /// A pageable sequence of resources. - public virtual gax::PagedEnumerable ListRelatedAccountGroups(gagr::ProjectName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) => - ListRelatedAccountGroups(new ListRelatedAccountGroupsRequest + /// The RPC response. + public virtual FirewallPolicy CreateFirewallPolicy(gagr::ProjectName parent, FirewallPolicy firewallPolicy, gaxgrpc::CallSettings callSettings = null) => + CreateFirewallPolicy(new CreateFirewallPolicyRequest { ParentAsProjectName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), - PageToken = pageToken ?? "", - PageSize = pageSize ?? 0, + FirewallPolicy = gax::GaxPreconditions.CheckNotNull(firewallPolicy, nameof(firewallPolicy)), }, callSettings); /// - /// List groups of related accounts. + /// Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA + /// Enterprise actions can be executed. + /// A project may have a maximum of 1000 policies. /// /// - /// Required. The name of the project to list related account groups from, in - /// the format "projects/{project}". - /// - /// - /// The token returned from the previous request. A value of null or an empty string retrieves the first - /// page. + /// Required. The name of the project this policy will apply to, in the format + /// `projects/{project}`. /// - /// - /// 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. + /// + /// Required. Information to create the policy. /// /// If not null, applies overrides to this RPC call. - /// A pageable asynchronous sequence of resources. - public virtual gax::PagedAsyncEnumerable ListRelatedAccountGroupsAsync(gagr::ProjectName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) => - ListRelatedAccountGroupsAsync(new ListRelatedAccountGroupsRequest + /// A Task containing the RPC response. + public virtual stt::Task CreateFirewallPolicyAsync(gagr::ProjectName parent, FirewallPolicy firewallPolicy, gaxgrpc::CallSettings callSettings = null) => + CreateFirewallPolicyAsync(new CreateFirewallPolicyRequest { ParentAsProjectName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), - PageToken = pageToken ?? "", - PageSize = pageSize ?? 0, + FirewallPolicy = gax::GaxPreconditions.CheckNotNull(firewallPolicy, nameof(firewallPolicy)), }, callSettings); /// - /// Get memberships in a group of related accounts. + /// Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA + /// Enterprise actions can be executed. + /// A project may have a maximum of 1000 policies. + /// + /// + /// Required. The name of the project this policy will apply to, in the format + /// `projects/{project}`. + /// + /// + /// Required. Information to create the policy. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task CreateFirewallPolicyAsync(gagr::ProjectName parent, FirewallPolicy firewallPolicy, st::CancellationToken cancellationToken) => + CreateFirewallPolicyAsync(parent, firewallPolicy, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Returns the list of all firewall policies that belong to 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 ListRelatedAccountGroupMemberships(ListRelatedAccountGroupMembershipsRequest request, gaxgrpc::CallSettings callSettings = null) => + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable ListFirewallPolicies(ListFirewallPoliciesRequest request, gaxgrpc::CallSettings callSettings = null) => throw new sys::NotImplementedException(); /// - /// Get memberships in a group of related accounts. + /// Returns the list of all firewall policies that belong to 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 ListRelatedAccountGroupMembershipsAsync(ListRelatedAccountGroupMembershipsRequest request, gaxgrpc::CallSettings callSettings = null) => + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable ListFirewallPoliciesAsync(ListFirewallPoliciesRequest request, gaxgrpc::CallSettings callSettings = null) => throw new sys::NotImplementedException(); /// - /// Get memberships in a group of related accounts. + /// Returns the list of all firewall policies that belong to a project. /// /// - /// Required. The resource name for the related account group in the format - /// `projects/{project}/relatedaccountgroups/{relatedaccountgroup}`. + /// Required. The name of the project to list the policies for, in the format + /// `projects/{project}`. /// /// /// The token returned from the previous request. A value of null or an empty string retrieves the first @@ -1663,9 +1764,9 @@ public virtual Metrics GetMetrics(MetricsName name, gaxgrpc::CallSettings callSe /// 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 ListRelatedAccountGroupMemberships(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) => - ListRelatedAccountGroupMemberships(new ListRelatedAccountGroupMembershipsRequest + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable ListFirewallPolicies(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) => + ListFirewallPolicies(new ListFirewallPoliciesRequest { Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), PageToken = pageToken ?? "", @@ -1673,11 +1774,11 @@ public virtual Metrics GetMetrics(MetricsName name, gaxgrpc::CallSettings callSe }, callSettings); /// - /// Get memberships in a group of related accounts. + /// Returns the list of all firewall policies that belong to a project. /// /// - /// Required. The resource name for the related account group in the format - /// `projects/{project}/relatedaccountgroups/{relatedaccountgroup}`. + /// Required. The name of the project to list the policies for, in the format + /// `projects/{project}`. /// /// /// The token returned from the previous request. A value of null or an empty string retrieves the first @@ -1688,11 +1789,9 @@ public virtual Metrics GetMetrics(MetricsName name, gaxgrpc::CallSettings callSe /// 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 ListRelatedAccountGroupMembershipsAsync(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) => - ListRelatedAccountGroupMembershipsAsync(new ListRelatedAccountGroupMembershipsRequest + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable ListFirewallPoliciesAsync(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) => + ListFirewallPoliciesAsync(new ListFirewallPoliciesRequest { Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), PageToken = pageToken ?? "", @@ -1700,11 +1799,11 @@ public virtual Metrics GetMetrics(MetricsName name, gaxgrpc::CallSettings callSe }, callSettings); /// - /// Get memberships in a group of related accounts. + /// Returns the list of all firewall policies that belong to a project. /// /// - /// Required. The resource name for the related account group in the format - /// `projects/{project}/relatedaccountgroups/{relatedaccountgroup}`. + /// Required. The name of the project to list the policies for, in the format + /// `projects/{project}`. /// /// /// The token returned from the previous request. A value of null or an empty string retrieves the first @@ -1715,21 +1814,21 @@ public virtual Metrics GetMetrics(MetricsName name, gaxgrpc::CallSettings callSe /// 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 ListRelatedAccountGroupMemberships(RelatedAccountGroupName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) => - ListRelatedAccountGroupMemberships(new ListRelatedAccountGroupMembershipsRequest + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable ListFirewallPolicies(gagr::ProjectName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) => + ListFirewallPolicies(new ListFirewallPoliciesRequest { - ParentAsRelatedAccountGroupName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + ParentAsProjectName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), PageToken = pageToken ?? "", PageSize = pageSize ?? 0, }, callSettings); /// - /// Get memberships in a group of related accounts. + /// Returns the list of all firewall policies that belong to a project. /// /// - /// Required. The resource name for the related account group in the format - /// `projects/{project}/relatedaccountgroups/{relatedaccountgroup}`. + /// Required. The name of the project to list the policies for, in the format + /// `projects/{project}`. /// /// /// The token returned from the previous request. A value of null or an empty string retrieves the first @@ -1740,118 +1839,660 @@ public virtual Metrics GetMetrics(MetricsName name, gaxgrpc::CallSettings callSe /// 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 ListRelatedAccountGroupMembershipsAsync(RelatedAccountGroupName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) => - ListRelatedAccountGroupMembershipsAsync(new ListRelatedAccountGroupMembershipsRequest + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable ListFirewallPoliciesAsync(gagr::ProjectName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) => + ListFirewallPoliciesAsync(new ListFirewallPoliciesRequest { - ParentAsRelatedAccountGroupName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + ParentAsProjectName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), PageToken = pageToken ?? "", PageSize = pageSize ?? 0, }, callSettings); /// - /// Search group memberships related to a given account. + /// Returns the specified firewall 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 SearchRelatedAccountGroupMemberships(SearchRelatedAccountGroupMembershipsRequest request, gaxgrpc::CallSettings callSettings = null) => + /// The RPC response. + public virtual FirewallPolicy GetFirewallPolicy(GetFirewallPolicyRequest request, gaxgrpc::CallSettings callSettings = null) => throw new sys::NotImplementedException(); /// - /// Search group memberships related to a given account. + /// Returns the specified firewall 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 SearchRelatedAccountGroupMembershipsAsync(SearchRelatedAccountGroupMembershipsRequest request, gaxgrpc::CallSettings callSettings = null) => + /// A Task containing the RPC response. + public virtual stt::Task GetFirewallPolicyAsync(GetFirewallPolicyRequest request, gaxgrpc::CallSettings callSettings = null) => throw new sys::NotImplementedException(); /// - /// Search group memberships related to a given account. + /// Returns the specified firewall policy. /// - /// - /// Required. The name of the project to search related account group - /// memberships from. Specify the project name in the following format: - /// "projects/{project}". - /// - /// - /// Optional. The unique stable hashed user identifier we should search - /// connections to. The identifier should correspond to a `hashed_account_id` - /// provided in a previous `CreateAssessment` or `AnnotateAssessment` call. - /// - /// - /// 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. + /// 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 GetFirewallPolicyAsync(GetFirewallPolicyRequest request, st::CancellationToken cancellationToken) => + GetFirewallPolicyAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Returns the specified firewall policy. + /// + /// + /// Required. The name of the requested policy, in the format + /// `projects/{project}/firewallpolicies/{firewallpolicy}`. /// /// If not null, applies overrides to this RPC call. - /// A pageable sequence of resources. - public virtual gax::PagedEnumerable SearchRelatedAccountGroupMemberships(string project, proto::ByteString hashedAccountId, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) => - SearchRelatedAccountGroupMemberships(new SearchRelatedAccountGroupMembershipsRequest + /// The RPC response. + public virtual FirewallPolicy GetFirewallPolicy(string name, gaxgrpc::CallSettings callSettings = null) => + GetFirewallPolicy(new GetFirewallPolicyRequest { - Project = gax::GaxPreconditions.CheckNotNullOrEmpty(project, nameof(project)), - HashedAccountId = hashedAccountId ?? proto::ByteString.Empty, - PageToken = pageToken ?? "", - PageSize = pageSize ?? 0, + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), }, callSettings); /// - /// Search group memberships related to a given account. + /// Returns the specified firewall policy. /// - /// - /// Required. The name of the project to search related account group - /// memberships from. Specify the project name in the following format: - /// "projects/{project}". - /// - /// - /// Optional. The unique stable hashed user identifier we should search - /// connections to. The identifier should correspond to a `hashed_account_id` - /// provided in a previous `CreateAssessment` or `AnnotateAssessment` call. - /// - /// - /// 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. + /// + /// Required. The name of the requested policy, in the format + /// `projects/{project}/firewallpolicies/{firewallpolicy}`. /// /// If not null, applies overrides to this RPC call. - /// - /// A pageable asynchronous sequence of resources. - /// - public virtual gax::PagedAsyncEnumerable SearchRelatedAccountGroupMembershipsAsync(string project, proto::ByteString hashedAccountId, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) => - SearchRelatedAccountGroupMembershipsAsync(new SearchRelatedAccountGroupMembershipsRequest + /// A Task containing the RPC response. + public virtual stt::Task GetFirewallPolicyAsync(string name, gaxgrpc::CallSettings callSettings = null) => + GetFirewallPolicyAsync(new GetFirewallPolicyRequest { - Project = gax::GaxPreconditions.CheckNotNullOrEmpty(project, nameof(project)), - HashedAccountId = hashedAccountId ?? proto::ByteString.Empty, - PageToken = pageToken ?? "", - PageSize = pageSize ?? 0, + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), }, callSettings); /// - /// Search group memberships related to a given account. + /// Returns the specified firewall policy. /// - /// - /// Required. The name of the project to search related account group - /// memberships from. Specify the project name in the following format: - /// "projects/{project}". - /// - /// - /// Optional. The unique stable hashed user identifier we should search - /// connections to. The identifier should correspond to a `hashed_account_id` - /// provided in a previous `CreateAssessment` or `AnnotateAssessment` call. + /// + /// Required. The name of the requested policy, in the format + /// `projects/{project}/firewallpolicies/{firewallpolicy}`. /// - /// - /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetFirewallPolicyAsync(string name, st::CancellationToken cancellationToken) => + GetFirewallPolicyAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Returns the specified firewall policy. + /// + /// + /// Required. The name of the requested policy, in the format + /// `projects/{project}/firewallpolicies/{firewallpolicy}`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual FirewallPolicy GetFirewallPolicy(FirewallPolicyName name, gaxgrpc::CallSettings callSettings = null) => + GetFirewallPolicy(new GetFirewallPolicyRequest + { + FirewallPolicyName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Returns the specified firewall policy. + /// + /// + /// Required. The name of the requested policy, in the format + /// `projects/{project}/firewallpolicies/{firewallpolicy}`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetFirewallPolicyAsync(FirewallPolicyName name, gaxgrpc::CallSettings callSettings = null) => + GetFirewallPolicyAsync(new GetFirewallPolicyRequest + { + FirewallPolicyName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Returns the specified firewall policy. + /// + /// + /// Required. The name of the requested policy, in the format + /// `projects/{project}/firewallpolicies/{firewallpolicy}`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetFirewallPolicyAsync(FirewallPolicyName name, st::CancellationToken cancellationToken) => + GetFirewallPolicyAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Updates the specified firewall 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 FirewallPolicy UpdateFirewallPolicy(UpdateFirewallPolicyRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Updates the specified firewall 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 UpdateFirewallPolicyAsync(UpdateFirewallPolicyRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Updates the specified firewall 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 UpdateFirewallPolicyAsync(UpdateFirewallPolicyRequest request, st::CancellationToken cancellationToken) => + UpdateFirewallPolicyAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Updates the specified firewall policy. + /// + /// + /// Required. The policy to update. + /// + /// + /// Optional. The mask to control which fields of the policy get updated. If + /// the mask is not present, all fields will be updated. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual FirewallPolicy UpdateFirewallPolicy(FirewallPolicy firewallPolicy, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) => + UpdateFirewallPolicy(new UpdateFirewallPolicyRequest + { + FirewallPolicy = gax::GaxPreconditions.CheckNotNull(firewallPolicy, nameof(firewallPolicy)), + UpdateMask = updateMask, + }, callSettings); + + /// + /// Updates the specified firewall policy. + /// + /// + /// Required. The policy to update. + /// + /// + /// Optional. The mask to control which fields of the policy get updated. If + /// the mask is not present, all fields will be updated. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task UpdateFirewallPolicyAsync(FirewallPolicy firewallPolicy, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) => + UpdateFirewallPolicyAsync(new UpdateFirewallPolicyRequest + { + FirewallPolicy = gax::GaxPreconditions.CheckNotNull(firewallPolicy, nameof(firewallPolicy)), + UpdateMask = updateMask, + }, callSettings); + + /// + /// Updates the specified firewall policy. + /// + /// + /// Required. The policy to update. + /// + /// + /// Optional. The mask to control which fields of the policy get updated. If + /// the mask is not present, all fields will be updated. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task UpdateFirewallPolicyAsync(FirewallPolicy firewallPolicy, wkt::FieldMask updateMask, st::CancellationToken cancellationToken) => + UpdateFirewallPolicyAsync(firewallPolicy, updateMask, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Deletes the specified firewall 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 void DeleteFirewallPolicy(DeleteFirewallPolicyRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Deletes the specified firewall 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 DeleteFirewallPolicyAsync(DeleteFirewallPolicyRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Deletes the specified firewall 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 DeleteFirewallPolicyAsync(DeleteFirewallPolicyRequest request, st::CancellationToken cancellationToken) => + DeleteFirewallPolicyAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Deletes the specified firewall policy. + /// + /// + /// Required. The name of the policy to be deleted, in the format + /// `projects/{project}/firewallpolicies/{firewallpolicy}`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual void DeleteFirewallPolicy(string name, gaxgrpc::CallSettings callSettings = null) => + DeleteFirewallPolicy(new DeleteFirewallPolicyRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Deletes the specified firewall policy. + /// + /// + /// Required. The name of the policy to be deleted, in the format + /// `projects/{project}/firewallpolicies/{firewallpolicy}`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task DeleteFirewallPolicyAsync(string name, gaxgrpc::CallSettings callSettings = null) => + DeleteFirewallPolicyAsync(new DeleteFirewallPolicyRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Deletes the specified firewall policy. + /// + /// + /// Required. The name of the policy to be deleted, in the format + /// `projects/{project}/firewallpolicies/{firewallpolicy}`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task DeleteFirewallPolicyAsync(string name, st::CancellationToken cancellationToken) => + DeleteFirewallPolicyAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Deletes the specified firewall policy. + /// + /// + /// Required. The name of the policy to be deleted, in the format + /// `projects/{project}/firewallpolicies/{firewallpolicy}`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual void DeleteFirewallPolicy(FirewallPolicyName name, gaxgrpc::CallSettings callSettings = null) => + DeleteFirewallPolicy(new DeleteFirewallPolicyRequest + { + FirewallPolicyName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Deletes the specified firewall policy. + /// + /// + /// Required. The name of the policy to be deleted, in the format + /// `projects/{project}/firewallpolicies/{firewallpolicy}`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task DeleteFirewallPolicyAsync(FirewallPolicyName name, gaxgrpc::CallSettings callSettings = null) => + DeleteFirewallPolicyAsync(new DeleteFirewallPolicyRequest + { + FirewallPolicyName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Deletes the specified firewall policy. + /// + /// + /// Required. The name of the policy to be deleted, in the format + /// `projects/{project}/firewallpolicies/{firewallpolicy}`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task DeleteFirewallPolicyAsync(FirewallPolicyName name, st::CancellationToken cancellationToken) => + DeleteFirewallPolicyAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// List groups of related accounts. + /// + /// 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 ListRelatedAccountGroups(ListRelatedAccountGroupsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// List groups of related accounts. + /// + /// 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 ListRelatedAccountGroupsAsync(ListRelatedAccountGroupsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// List groups of related accounts. + /// + /// + /// Required. The name of the project to list related account groups from, in + /// the 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 ListRelatedAccountGroups(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) => + ListRelatedAccountGroups(new ListRelatedAccountGroupsRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + PageToken = pageToken ?? "", + PageSize = pageSize ?? 0, + }, callSettings); + + /// + /// List groups of related accounts. + /// + /// + /// Required. The name of the project to list related account groups from, in + /// the 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 ListRelatedAccountGroupsAsync(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) => + ListRelatedAccountGroupsAsync(new ListRelatedAccountGroupsRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + PageToken = pageToken ?? "", + PageSize = pageSize ?? 0, + }, callSettings); + + /// + /// List groups of related accounts. + /// + /// + /// Required. The name of the project to list related account groups from, in + /// the 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 ListRelatedAccountGroups(gagr::ProjectName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) => + ListRelatedAccountGroups(new ListRelatedAccountGroupsRequest + { + ParentAsProjectName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + PageToken = pageToken ?? "", + PageSize = pageSize ?? 0, + }, callSettings); + + /// + /// List groups of related accounts. + /// + /// + /// Required. The name of the project to list related account groups from, in + /// the 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 ListRelatedAccountGroupsAsync(gagr::ProjectName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) => + ListRelatedAccountGroupsAsync(new ListRelatedAccountGroupsRequest + { + ParentAsProjectName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + PageToken = pageToken ?? "", + PageSize = pageSize ?? 0, + }, callSettings); + + /// + /// Get memberships in a group of related accounts. + /// + /// 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 ListRelatedAccountGroupMemberships(ListRelatedAccountGroupMembershipsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Get memberships in a group of related accounts. + /// + /// 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 ListRelatedAccountGroupMembershipsAsync(ListRelatedAccountGroupMembershipsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Get memberships in a group of related accounts. + /// + /// + /// Required. The resource name for the related account group in the format + /// `projects/{project}/relatedaccountgroups/{relatedaccountgroup}`. + /// + /// + /// 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 ListRelatedAccountGroupMemberships(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) => + ListRelatedAccountGroupMemberships(new ListRelatedAccountGroupMembershipsRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + PageToken = pageToken ?? "", + PageSize = pageSize ?? 0, + }, callSettings); + + /// + /// Get memberships in a group of related accounts. + /// + /// + /// Required. The resource name for the related account group in the format + /// `projects/{project}/relatedaccountgroups/{relatedaccountgroup}`. + /// + /// + /// 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 ListRelatedAccountGroupMembershipsAsync(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) => + ListRelatedAccountGroupMembershipsAsync(new ListRelatedAccountGroupMembershipsRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + PageToken = pageToken ?? "", + PageSize = pageSize ?? 0, + }, callSettings); + + /// + /// Get memberships in a group of related accounts. + /// + /// + /// Required. The resource name for the related account group in the format + /// `projects/{project}/relatedaccountgroups/{relatedaccountgroup}`. + /// + /// + /// 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 ListRelatedAccountGroupMemberships(RelatedAccountGroupName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) => + ListRelatedAccountGroupMemberships(new ListRelatedAccountGroupMembershipsRequest + { + ParentAsRelatedAccountGroupName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + PageToken = pageToken ?? "", + PageSize = pageSize ?? 0, + }, callSettings); + + /// + /// Get memberships in a group of related accounts. + /// + /// + /// Required. The resource name for the related account group in the format + /// `projects/{project}/relatedaccountgroups/{relatedaccountgroup}`. + /// + /// + /// 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 ListRelatedAccountGroupMembershipsAsync(RelatedAccountGroupName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) => + ListRelatedAccountGroupMembershipsAsync(new ListRelatedAccountGroupMembershipsRequest + { + ParentAsRelatedAccountGroupName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + PageToken = pageToken ?? "", + PageSize = pageSize ?? 0, + }, callSettings); + + /// + /// Search group memberships related to a given account. + /// + /// 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 SearchRelatedAccountGroupMemberships(SearchRelatedAccountGroupMembershipsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Search group memberships related to a given account. + /// + /// 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 SearchRelatedAccountGroupMembershipsAsync(SearchRelatedAccountGroupMembershipsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Search group memberships related to a given account. + /// + /// + /// Required. The name of the project to search related account group + /// memberships from. Specify the project name in the following format: + /// `projects/{project}`. + /// + /// + /// Optional. The unique stable hashed user identifier used to search + /// connections. The identifier should correspond to a `hashed_account_id` + /// provided in a previous `CreateAssessment` or `AnnotateAssessment` call. + /// + /// + /// 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 SearchRelatedAccountGroupMemberships(string project, proto::ByteString hashedAccountId, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) => + SearchRelatedAccountGroupMemberships(new SearchRelatedAccountGroupMembershipsRequest + { + Project = gax::GaxPreconditions.CheckNotNullOrEmpty(project, nameof(project)), + HashedAccountId = hashedAccountId ?? proto::ByteString.Empty, + PageToken = pageToken ?? "", + PageSize = pageSize ?? 0, + }, callSettings); + + /// + /// Search group memberships related to a given account. + /// + /// + /// Required. The name of the project to search related account group + /// memberships from. Specify the project name in the following format: + /// `projects/{project}`. + /// + /// + /// Optional. The unique stable hashed user identifier used to search + /// connections. The identifier should correspond to a `hashed_account_id` + /// provided in a previous `CreateAssessment` or `AnnotateAssessment` call. + /// + /// + /// 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 SearchRelatedAccountGroupMembershipsAsync(string project, proto::ByteString hashedAccountId, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) => + SearchRelatedAccountGroupMembershipsAsync(new SearchRelatedAccountGroupMembershipsRequest + { + Project = gax::GaxPreconditions.CheckNotNullOrEmpty(project, nameof(project)), + HashedAccountId = hashedAccountId ?? proto::ByteString.Empty, + PageToken = pageToken ?? "", + PageSize = pageSize ?? 0, + }, callSettings); + + /// + /// Search group memberships related to a given account. + /// + /// + /// Required. The name of the project to search related account group + /// memberships from. Specify the project name in the following format: + /// `projects/{project}`. + /// + /// + /// Optional. The unique stable hashed user identifier used to search + /// connections. The identifier should correspond to a `hashed_account_id` + /// provided in a previous `CreateAssessment` or `AnnotateAssessment` call. + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first /// page. /// /// @@ -1875,11 +2516,11 @@ public virtual Metrics GetMetrics(MetricsName name, gaxgrpc::CallSettings callSe /// /// Required. The name of the project to search related account group /// memberships from. Specify the project name in the following format: - /// "projects/{project}". + /// `projects/{project}`. /// /// - /// Optional. The unique stable hashed user identifier we should search - /// connections to. The identifier should correspond to a `hashed_account_id` + /// Optional. The unique stable hashed user identifier used to search + /// connections. The identifier should correspond to a `hashed_account_id` /// provided in a previous `CreateAssessment` or `AnnotateAssessment` call. /// /// @@ -1930,6 +2571,16 @@ public sealed partial class RecaptchaEnterpriseServiceClientImpl : RecaptchaEnte private readonly gaxgrpc::ApiCall _callGetMetrics; + private readonly gaxgrpc::ApiCall _callCreateFirewallPolicy; + + private readonly gaxgrpc::ApiCall _callListFirewallPolicies; + + private readonly gaxgrpc::ApiCall _callGetFirewallPolicy; + + private readonly gaxgrpc::ApiCall _callUpdateFirewallPolicy; + + private readonly gaxgrpc::ApiCall _callDeleteFirewallPolicy; + private readonly gaxgrpc::ApiCall _callListRelatedAccountGroups; private readonly gaxgrpc::ApiCall _callListRelatedAccountGroupMemberships; @@ -1980,6 +2631,21 @@ public RecaptchaEnterpriseServiceClientImpl(RecaptchaEnterpriseService.Recaptcha _callGetMetrics = clientHelper.BuildApiCall("GetMetrics", grpcClient.GetMetricsAsync, grpcClient.GetMetrics, effectiveSettings.GetMetricsSettings).WithGoogleRequestParam("name", request => request.Name); Modify_ApiCall(ref _callGetMetrics); Modify_GetMetricsApiCall(ref _callGetMetrics); + _callCreateFirewallPolicy = clientHelper.BuildApiCall("CreateFirewallPolicy", grpcClient.CreateFirewallPolicyAsync, grpcClient.CreateFirewallPolicy, effectiveSettings.CreateFirewallPolicySettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callCreateFirewallPolicy); + Modify_CreateFirewallPolicyApiCall(ref _callCreateFirewallPolicy); + _callListFirewallPolicies = clientHelper.BuildApiCall("ListFirewallPolicies", grpcClient.ListFirewallPoliciesAsync, grpcClient.ListFirewallPolicies, effectiveSettings.ListFirewallPoliciesSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callListFirewallPolicies); + Modify_ListFirewallPoliciesApiCall(ref _callListFirewallPolicies); + _callGetFirewallPolicy = clientHelper.BuildApiCall("GetFirewallPolicy", grpcClient.GetFirewallPolicyAsync, grpcClient.GetFirewallPolicy, effectiveSettings.GetFirewallPolicySettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callGetFirewallPolicy); + Modify_GetFirewallPolicyApiCall(ref _callGetFirewallPolicy); + _callUpdateFirewallPolicy = clientHelper.BuildApiCall("UpdateFirewallPolicy", grpcClient.UpdateFirewallPolicyAsync, grpcClient.UpdateFirewallPolicy, effectiveSettings.UpdateFirewallPolicySettings).WithGoogleRequestParam("firewall_policy.name", request => request.FirewallPolicy?.Name); + Modify_ApiCall(ref _callUpdateFirewallPolicy); + Modify_UpdateFirewallPolicyApiCall(ref _callUpdateFirewallPolicy); + _callDeleteFirewallPolicy = clientHelper.BuildApiCall("DeleteFirewallPolicy", grpcClient.DeleteFirewallPolicyAsync, grpcClient.DeleteFirewallPolicy, effectiveSettings.DeleteFirewallPolicySettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callDeleteFirewallPolicy); + Modify_DeleteFirewallPolicyApiCall(ref _callDeleteFirewallPolicy); _callListRelatedAccountGroups = clientHelper.BuildApiCall("ListRelatedAccountGroups", grpcClient.ListRelatedAccountGroupsAsync, grpcClient.ListRelatedAccountGroups, effectiveSettings.ListRelatedAccountGroupsSettings).WithGoogleRequestParam("parent", request => request.Parent); Modify_ApiCall(ref _callListRelatedAccountGroups); Modify_ListRelatedAccountGroupsApiCall(ref _callListRelatedAccountGroups); @@ -2014,6 +2680,16 @@ public RecaptchaEnterpriseServiceClientImpl(RecaptchaEnterpriseService.Recaptcha partial void Modify_GetMetricsApiCall(ref gaxgrpc::ApiCall call); + partial void Modify_CreateFirewallPolicyApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_ListFirewallPoliciesApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_GetFirewallPolicyApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_UpdateFirewallPolicyApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_DeleteFirewallPolicyApiCall(ref gaxgrpc::ApiCall call); + partial void Modify_ListRelatedAccountGroupsApiCall(ref gaxgrpc::ApiCall call); partial void Modify_ListRelatedAccountGroupMembershipsApiCall(ref gaxgrpc::ApiCall call); @@ -2045,6 +2721,16 @@ public RecaptchaEnterpriseServiceClientImpl(RecaptchaEnterpriseService.Recaptcha partial void Modify_GetMetricsRequest(ref GetMetricsRequest request, ref gaxgrpc::CallSettings settings); + partial void Modify_CreateFirewallPolicyRequest(ref CreateFirewallPolicyRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_ListFirewallPoliciesRequest(ref ListFirewallPoliciesRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_GetFirewallPolicyRequest(ref GetFirewallPolicyRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_UpdateFirewallPolicyRequest(ref UpdateFirewallPolicyRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_DeleteFirewallPolicyRequest(ref DeleteFirewallPolicyRequest request, ref gaxgrpc::CallSettings settings); + partial void Modify_ListRelatedAccountGroupsRequest(ref ListRelatedAccountGroupsRequest request, ref gaxgrpc::CallSettings settings); partial void Modify_ListRelatedAccountGroupMembershipsRequest(ref ListRelatedAccountGroupMembershipsRequest request, ref gaxgrpc::CallSettings settings); @@ -2253,7 +2939,7 @@ public override void DeleteKey(DeleteKeyRequest request, gaxgrpc::CallSettings c /// Migrates an existing key from reCAPTCHA to reCAPTCHA Enterprise. /// Once a key is migrated, it can be used from either product. SiteVerify /// requests are billed as CreateAssessment calls. You must be - /// authenticated as one of the current owners of the reCAPTCHA Site Key, and + /// authenticated as one of the current owners of the reCAPTCHA Key, and /// your user must have the reCAPTCHA Enterprise Admin IAM role in the /// destination project. /// @@ -2270,7 +2956,7 @@ public override Key MigrateKey(MigrateKeyRequest request, gaxgrpc::CallSettings /// Migrates an existing key from reCAPTCHA to reCAPTCHA Enterprise. /// Once a key is migrated, it can be used from either product. SiteVerify /// requests are billed as CreateAssessment calls. You must be - /// authenticated as one of the current owners of the reCAPTCHA Site Key, and + /// authenticated as one of the current owners of the reCAPTCHA Key, and /// your user must have the reCAPTCHA Enterprise Admin IAM role in the /// destination project. /// @@ -2309,6 +2995,130 @@ public override Metrics GetMetrics(GetMetricsRequest request, gaxgrpc::CallSetti return _callGetMetrics.Async(request, callSettings); } + /// + /// Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA + /// Enterprise actions can be executed. + /// A project may have a maximum of 1000 policies. + /// + /// 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 FirewallPolicy CreateFirewallPolicy(CreateFirewallPolicyRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CreateFirewallPolicyRequest(ref request, ref callSettings); + return _callCreateFirewallPolicy.Sync(request, callSettings); + } + + /// + /// Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA + /// Enterprise actions can be executed. + /// A project may have a maximum of 1000 policies. + /// + /// 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 CreateFirewallPolicyAsync(CreateFirewallPolicyRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CreateFirewallPolicyRequest(ref request, ref callSettings); + return _callCreateFirewallPolicy.Async(request, callSettings); + } + + /// + /// Returns the list of all firewall policies that belong to 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 ListFirewallPolicies(ListFirewallPoliciesRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ListFirewallPoliciesRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedEnumerable(_callListFirewallPolicies, request, callSettings); + } + + /// + /// Returns the list of all firewall policies that belong to 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 ListFirewallPoliciesAsync(ListFirewallPoliciesRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ListFirewallPoliciesRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedAsyncEnumerable(_callListFirewallPolicies, request, callSettings); + } + + /// + /// Returns the specified firewall 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 FirewallPolicy GetFirewallPolicy(GetFirewallPolicyRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetFirewallPolicyRequest(ref request, ref callSettings); + return _callGetFirewallPolicy.Sync(request, callSettings); + } + + /// + /// Returns the specified firewall 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 GetFirewallPolicyAsync(GetFirewallPolicyRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetFirewallPolicyRequest(ref request, ref callSettings); + return _callGetFirewallPolicy.Async(request, callSettings); + } + + /// + /// Updates the specified firewall 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 FirewallPolicy UpdateFirewallPolicy(UpdateFirewallPolicyRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_UpdateFirewallPolicyRequest(ref request, ref callSettings); + return _callUpdateFirewallPolicy.Sync(request, callSettings); + } + + /// + /// Updates the specified firewall 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 UpdateFirewallPolicyAsync(UpdateFirewallPolicyRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_UpdateFirewallPolicyRequest(ref request, ref callSettings); + return _callUpdateFirewallPolicy.Async(request, callSettings); + } + + /// + /// Deletes the specified firewall 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 void DeleteFirewallPolicy(DeleteFirewallPolicyRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_DeleteFirewallPolicyRequest(ref request, ref callSettings); + _callDeleteFirewallPolicy.Sync(request, callSettings); + } + + /// + /// Deletes the specified firewall 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 DeleteFirewallPolicyAsync(DeleteFirewallPolicyRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_DeleteFirewallPolicyRequest(ref request, ref callSettings); + return _callDeleteFirewallPolicy.Async(request, callSettings); + } + /// /// List groups of related accounts. /// @@ -2390,6 +3200,10 @@ public partial class ListKeysRequest : gaxgrpc::IPageRequest { } + public partial class ListFirewallPoliciesRequest : gaxgrpc::IPageRequest + { + } + public partial class ListRelatedAccountGroupsRequest : gaxgrpc::IPageRequest { } @@ -2410,6 +3224,14 @@ public partial class ListKeysResponse : gaxgrpc::IPageResponse sc::IEnumerator sc::IEnumerable.GetEnumerator() => GetEnumerator(); } + public partial class ListFirewallPoliciesResponse : gaxgrpc::IPageResponse + { + /// Returns an enumerator that iterates through the resources in this response. + public scg::IEnumerator GetEnumerator() => FirewallPolicies.GetEnumerator(); + + sc::IEnumerator sc::IEnumerable.GetEnumerator() => GetEnumerator(); + } + public partial class ListRelatedAccountGroupsResponse : gaxgrpc::IPageResponse { /// Returns an enumerator that iterates through the resources in this response. diff --git a/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1/Recaptchaenterprise.g.cs b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1/Recaptchaenterprise.g.cs index ea8797ae717b..d741ba90ccfa 100644 --- a/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1/Recaptchaenterprise.g.cs +++ b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1/Recaptchaenterprise.g.cs @@ -30,341 +30,436 @@ static RecaptchaenterpriseReflection() { "Z2xlL2FwaS9jbGllbnQucHJvdG8aH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZp", "b3IucHJvdG8aGWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8aG2dvb2dsZS9w", "cm90b2J1Zi9lbXB0eS5wcm90bxogZ29vZ2xlL3Byb3RvYnVmL2ZpZWxkX21h", - "c2sucHJvdG8aH2dvb2dsZS9wcm90b2J1Zi90aW1lc3RhbXAucHJvdG8iqAEK", - "F0NyZWF0ZUFzc2Vzc21lbnRSZXF1ZXN0EkMKBnBhcmVudBgBIAEoCUIz4EEC", - "+kEtCitjbG91ZHJlc291cmNlbWFuYWdlci5nb29nbGVhcGlzLmNvbS9Qcm9q", - "ZWN0EkgKCmFzc2Vzc21lbnQYAiABKAsyLy5nb29nbGUuY2xvdWQucmVjYXB0", - "Y2hhZW50ZXJwcmlzZS52MS5Bc3Nlc3NtZW50QgPgQQIikgUKEFRyYW5zYWN0", - "aW9uRXZlbnQSYwoKZXZlbnRfdHlwZRgBIAEoDjJKLmdvb2dsZS5jbG91ZC5y", - "ZWNhcHRjaGFlbnRlcnByaXNlLnYxLlRyYW5zYWN0aW9uRXZlbnQuVHJhbnNh", - "Y3Rpb25FdmVudFR5cGVCA+BBARITCgZyZWFzb24YAiABKAlCA+BBARISCgV2", - "YWx1ZRgDIAEoAUID4EEBEjMKCmV2ZW50X3RpbWUYBCABKAsyGi5nb29nbGUu", - "cHJvdG9idWYuVGltZXN0YW1wQgPgQQEiugMKFFRyYW5zYWN0aW9uRXZlbnRU", - "eXBlEiYKIlRSQU5TQUNUSU9OX0VWRU5UX1RZ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oh", + "Q0xBU1NJRklDQVRJT05fUkVBU09OX1VOU1BFQ0lGSUVEEAASDgoKQVVUT01B", + "VElPThABEhoKFlVORVhQRUNURURfRU5WSVJPTk1FTlQQAhIUChBUT09fTVVD", + "SF9UUkFGRklDEAMSHQoZVU5FWFBFQ1RFRF9VU0FHRV9QQVRURVJOUxAEEhgK", + "FExPV19DT05GSURFTkNFX1NDT1JFEAUSFQoRU1VTUEVDVEVEX0NBUkRJTkcQ", + "BhIYChRTVVNQRUNURURfQ0hBUkdFQkFDSxAHIpgDCg9Ub2tlblByb3BlcnRp", + "ZXMSDQoFdmFsaWQYASABKAgSWgoOaW52YWxpZF9yZWFzb24YAiABKA4yQi5n", + "b29nbGUuY2xvdWQucmVjYXB0Y2hhZW50ZXJwcmlzZS52MS5Ub2tlblByb3Bl", + "cnRpZXMuSW52YWxpZFJlYXNvbhIvCgtjcmVhdGVfdGltZRgDIAEoCzIaLmdv", + "b2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASEAoIaG9zdG5hbWUYBCABKAkSHAoU", + "YW5kcm9pZF9wYWNrYWdlX25hbWUYCCABKAkSFQoNaW9zX2J1bmRsZV9pZBgJ", + "IAEoCRIOCgZhY3Rpb24YBSABKAkikQEKDUludmFsaWRSZWFzb24SHgoaSU5W", + "QUxJRF9SRUFTT05fVU5TUEVDSUZJRUQQABIaChZVTktOT1dOX0lOVkFMSURf", + "UkVBU09OEAESDQoJTUFMRk9STUVEEAISCwoHRVhQSVJFRBADEggKBERVUEUQ", + "BBILCgdNSVNTSU5HEAUSEQoNQlJPV1NFUl9FUlJPUhAGIpAEChlGcmF1ZFBy", + "ZXZlbnRpb25Bc3Nlc3NtZW50EhgKEHRyYW5zYWN0aW9uX3Jpc2sYASABKAIS", + "eQoZc3RvbGVuX2luc3RydW1lbnRfdmVyZGljdBgCIAEoCzJWLmdvb2dsZS5j", + "bG91ZC5yZWNhcHRjaGFlbnRlcnByaXNlLnYxLkZyYXVkUHJldmVudGlvbkFz", + "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cBJWCgRuYW1lGAEgASgJQkjgQQL6", - "QUIKQHJlY2FwdGNoYWVudGVycHJpc2UuZ29vZ2xlYXBpcy5jb20vUmVsYXRl", - "ZEFjY291bnRHcm91cE1lbWJlcnNoaXASGQoRaGFzaGVkX2FjY291bnRfaWQY", - "AiABKAw6ngHqQZoBCkByZWNhcHRjaGFlbnRlcnByaXNlLmdvb2dsZWFwaXMu", - "Y29tL1JlbGF0ZWRBY2NvdW50R3JvdXBNZW1iZXJzaGlwElZwcm9qZWN0cy97", - "cHJvamVjdH0vcmVsYXRlZGFjY291bnRncm91cHMve3JlbGF0ZWRhY2NvdW50", - "Z3JvdXB9L21lbWJlcnNoaXBzL3ttZW1iZXJzaGlwfSLfAQoTUmVsYXRlZEFj", - "Y291bnRHcm91cBJMCgRuYW1lGAEgASgJQj7gQQL6QTgKNnJlY2FwdGNoYWVu", - "dGVycHJpc2UuZ29vZ2xlYXBpcy5jb20vUmVsYXRlZEFjY291bnRHcm91cDp6", - "6kF3CjZyZWNhcHRjaGFlbnRlcnByaXNlLmdvb2dsZWFwaXMuY29tL1JlbGF0", - "ZWRBY2NvdW50R3JvdXASPXByb2plY3RzL3twcm9qZWN0fS9yZWxhdGVkYWNj", - "b3VudGdyb3Vwcy97cmVsYXRlZGFjY291bnRncm91cH0i0gIKC1dhZlNldHRp", - "bmdzElUKC3dhZl9zZXJ2aWNlGAEgASgOMjsuZ29vZ2xlLmNsb3VkLnJlY2Fw", - "dGNoYWVudGVycHJpc2UudjEuV2FmU2V0dGluZ3MuV2FmU2VydmljZUID4EEC", - "ElUKC3dhZl9mZWF0dXJlGAIgASgOMjsuZ29vZ2xlLmNsb3VkLnJlY2FwdGNo", - "YWVudGVycHJpc2UudjEuV2FmU2V0dGluZ3MuV2FmRmVhdHVyZUID4EECImIK", - "CldhZkZlYXR1cmUSGwoXV0FGX0ZFQVRVUkVfVU5TUEVDSUZJRUQQABISCg5D", - "SEFMTEVOR0VfUEFHRRABEhEKDVNFU1NJT05fVE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b3VkLXBsYXRmb3JtQpkCCiFjb20uZ29vZ2xlLnJl", + "Y2FwdGNoYWVudGVycHJpc2UudjFCGFJlY2FwdGNoYUVudGVycHJpc2VQcm90", + "b1ABWlxjbG91ZC5nb29nbGUuY29tL2dvL3JlY2FwdGNoYWVudGVycHJpc2Uv", + "djIvYXBpdjEvcmVjYXB0Y2hhZW50ZXJwcmlzZXBiO3JlY2FwdGNoYWVudGVy", + "cHJpc2VwYqICBEdDUkWqAiNHb29nbGUuQ2xvdWQuUmVjYXB0Y2hhRW50ZXJw", + "cmlzZS5WMcoCI0dvb2dsZVxDbG91ZFxSZWNhcHRjaGFFbnRlcnByaXNlXFYx", + "6gImR29vZ2xlOjpDbG91ZDo6UmVjYXB0Y2hhRW50ZXJwcmlzZTo6VjFiBnBy", + "b3RvMw==")); 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::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, global::Google.Rpc.StatusReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.CreateAssessmentRequest), global::Google.Cloud.RecaptchaEnterprise.V1.CreateAssessmentRequest.Parser, new[]{ "Parent", "Assessment" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.TransactionEvent), global::Google.Cloud.RecaptchaEnterprise.V1.TransactionEvent.Parser, new[]{ "EventType", "Reason", "Value", "EventTime" }, null, new[]{ typeof(global::Google.Cloud.RecaptchaEnterprise.V1.TransactionEvent.Types.TransactionEventType) }, null, null), @@ -373,16 +468,19 @@ static RecaptchaenterpriseReflection() { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.EndpointVerificationInfo), global::Google.Cloud.RecaptchaEnterprise.V1.EndpointVerificationInfo.Parser, new[]{ "EmailAddress", "PhoneNumber", "RequestToken", "LastVerificationTime" }, new[]{ "Endpoint" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.AccountVerificationInfo), global::Google.Cloud.RecaptchaEnterprise.V1.AccountVerificationInfo.Parser, new[]{ "Endpoints", "LanguageCode", "LatestVerificationResult", "Username" }, null, new[]{ typeof(global::Google.Cloud.RecaptchaEnterprise.V1.AccountVerificationInfo.Types.Result) }, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.PrivatePasswordLeakVerification), global::Google.Cloud.RecaptchaEnterprise.V1.PrivatePasswordLeakVerification.Parser, new[]{ "LookupHashPrefix", "EncryptedUserCredentialsHash", "EncryptedLeakMatchPrefixes", "ReencryptedUserCredentialsHash" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.Assessment), global::Google.Cloud.RecaptchaEnterprise.V1.Assessment.Parser, new[]{ "Name", "Event", "RiskAnalysis", "TokenProperties", "AccountVerification", "AccountDefenderAssessment", "PrivatePasswordLeakVerification", "FraudPreventionAssessment" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.Event), global::Google.Cloud.RecaptchaEnterprise.V1.Event.Parser, new[]{ "Token", "SiteKey", "UserAgent", "UserIpAddress", "ExpectedAction", "HashedAccountId", "TransactionData" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.Assessment), global::Google.Cloud.RecaptchaEnterprise.V1.Assessment.Parser, new[]{ "Name", "Event", "RiskAnalysis", "TokenProperties", "AccountVerification", "AccountDefenderAssessment", "PrivatePasswordLeakVerification", "FirewallPolicyAssessment", "FraudPreventionAssessment", "FraudSignals" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.Event), global::Google.Cloud.RecaptchaEnterprise.V1.Event.Parser, new[]{ "Token", "SiteKey", "UserAgent", "UserIpAddress", "ExpectedAction", "HashedAccountId", "Express", "RequestedUri", "WafTokenAssessment", "Ja3", "Headers", "FirewallPolicyEvaluation", "TransactionData" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.TransactionData), global::Google.Cloud.RecaptchaEnterprise.V1.TransactionData.Parser, new[]{ "TransactionId", "PaymentMethod", "CardBin", "CardLastFour", "CurrencyCode", "Value", "ShippingValue", "ShippingAddress", "BillingAddress", "User", "Merchants", "Items", "GatewayInfo" }, new[]{ "TransactionId" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.TransactionData.Types.Address), global::Google.Cloud.RecaptchaEnterprise.V1.TransactionData.Types.Address.Parser, new[]{ "Recipient", "Address_", "Locality", "AdministrativeArea", "RegionCode", "PostalCode" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.TransactionData.Types.User), global::Google.Cloud.RecaptchaEnterprise.V1.TransactionData.Types.User.Parser, new[]{ "AccountId", "CreationMs", "Email", "EmailVerified", "PhoneNumber", "PhoneVerified" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.TransactionData.Types.Item), global::Google.Cloud.RecaptchaEnterprise.V1.TransactionData.Types.Item.Parser, new[]{ "Name", "Value", "Quantity", "MerchantAccountId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.TransactionData.Types.GatewayInfo), global::Google.Cloud.RecaptchaEnterprise.V1.TransactionData.Types.GatewayInfo.Parser, new[]{ "Name", "GatewayResponseCode", "AvsResponseCode", "CvvResponseCode" }, null, null, null, null)}), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.RiskAnalysis), global::Google.Cloud.RecaptchaEnterprise.V1.RiskAnalysis.Parser, new[]{ "Score", "Reasons" }, null, new[]{ typeof(global::Google.Cloud.RecaptchaEnterprise.V1.RiskAnalysis.Types.ClassificationReason) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.RiskAnalysis), global::Google.Cloud.RecaptchaEnterprise.V1.RiskAnalysis.Parser, new[]{ "Score", "Reasons", "ExtendedVerdictReasons" }, null, new[]{ typeof(global::Google.Cloud.RecaptchaEnterprise.V1.RiskAnalysis.Types.ClassificationReason) }, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.TokenProperties), global::Google.Cloud.RecaptchaEnterprise.V1.TokenProperties.Parser, new[]{ "Valid", "InvalidReason", "CreateTime", "Hostname", "AndroidPackageName", "IosBundleId", "Action" }, null, new[]{ typeof(global::Google.Cloud.RecaptchaEnterprise.V1.TokenProperties.Types.InvalidReason) }, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.FraudPreventionAssessment), global::Google.Cloud.RecaptchaEnterprise.V1.FraudPreventionAssessment.Parser, new[]{ "TransactionRisk", "StolenInstrumentVerdict", "CardTestingVerdict" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.FraudPreventionAssessment.Types.StolenInstrumentVerdict), global::Google.Cloud.RecaptchaEnterprise.V1.FraudPreventionAssessment.Types.StolenInstrumentVerdict.Parser, new[]{ "Risk" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.FraudPreventionAssessment.Types.CardTestingVerdict), global::Google.Cloud.RecaptchaEnterprise.V1.FraudPreventionAssessment.Types.CardTestingVerdict.Parser, new[]{ "Risk" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.FraudPreventionAssessment), global::Google.Cloud.RecaptchaEnterprise.V1.FraudPreventionAssessment.Parser, new[]{ "TransactionRisk", "StolenInstrumentVerdict", "CardTestingVerdict", "BehavioralTrustVerdict" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.FraudPreventionAssessment.Types.StolenInstrumentVerdict), global::Google.Cloud.RecaptchaEnterprise.V1.FraudPreventionAssessment.Types.StolenInstrumentVerdict.Parser, new[]{ "Risk" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.FraudPreventionAssessment.Types.CardTestingVerdict), global::Google.Cloud.RecaptchaEnterprise.V1.FraudPreventionAssessment.Types.CardTestingVerdict.Parser, new[]{ "Risk" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.FraudPreventionAssessment.Types.BehavioralTrustVerdict), global::Google.Cloud.RecaptchaEnterprise.V1.FraudPreventionAssessment.Types.BehavioralTrustVerdict.Parser, new[]{ "Trust" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.FraudSignals), global::Google.Cloud.RecaptchaEnterprise.V1.FraudSignals.Parser, new[]{ "UserSignals", "CardSignals" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.FraudSignals.Types.UserSignals), global::Google.Cloud.RecaptchaEnterprise.V1.FraudSignals.Types.UserSignals.Parser, new[]{ "ActiveDaysLowerBound", "SyntheticRisk" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.FraudSignals.Types.CardSignals), global::Google.Cloud.RecaptchaEnterprise.V1.FraudSignals.Types.CardSignals.Parser, new[]{ "CardLabels" }, null, new[]{ typeof(global::Google.Cloud.RecaptchaEnterprise.V1.FraudSignals.Types.CardSignals.Types.CardLabel) }, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.AccountDefenderAssessment), global::Google.Cloud.RecaptchaEnterprise.V1.AccountDefenderAssessment.Parser, new[]{ "Labels" }, null, new[]{ typeof(global::Google.Cloud.RecaptchaEnterprise.V1.AccountDefenderAssessment.Types.AccountDefenderLabel) }, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.CreateKeyRequest), global::Google.Cloud.RecaptchaEnterprise.V1.CreateKeyRequest.Parser, new[]{ "Parent", "Key" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.ListKeysRequest), global::Google.Cloud.RecaptchaEnterprise.V1.ListKeysRequest.Parser, new[]{ "Parent", "PageSize", "PageToken" }, null, null, null, null), @@ -391,6 +489,12 @@ static RecaptchaenterpriseReflection() { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.GetKeyRequest), global::Google.Cloud.RecaptchaEnterprise.V1.GetKeyRequest.Parser, new[]{ "Name" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.UpdateKeyRequest), global::Google.Cloud.RecaptchaEnterprise.V1.UpdateKeyRequest.Parser, new[]{ "Key", "UpdateMask" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.DeleteKeyRequest), global::Google.Cloud.RecaptchaEnterprise.V1.DeleteKeyRequest.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.CreateFirewallPolicyRequest), global::Google.Cloud.RecaptchaEnterprise.V1.CreateFirewallPolicyRequest.Parser, new[]{ "Parent", "FirewallPolicy" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.ListFirewallPoliciesRequest), global::Google.Cloud.RecaptchaEnterprise.V1.ListFirewallPoliciesRequest.Parser, new[]{ "Parent", "PageSize", "PageToken" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.ListFirewallPoliciesResponse), global::Google.Cloud.RecaptchaEnterprise.V1.ListFirewallPoliciesResponse.Parser, new[]{ "FirewallPolicies", "NextPageToken" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.GetFirewallPolicyRequest), global::Google.Cloud.RecaptchaEnterprise.V1.GetFirewallPolicyRequest.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.UpdateFirewallPolicyRequest), global::Google.Cloud.RecaptchaEnterprise.V1.UpdateFirewallPolicyRequest.Parser, new[]{ "FirewallPolicy", "UpdateMask" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.DeleteFirewallPolicyRequest), global::Google.Cloud.RecaptchaEnterprise.V1.DeleteFirewallPolicyRequest.Parser, new[]{ "Name" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.MigrateKeyRequest), global::Google.Cloud.RecaptchaEnterprise.V1.MigrateKeyRequest.Parser, new[]{ "Name", "SkipBillingCheck" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.GetMetricsRequest), global::Google.Cloud.RecaptchaEnterprise.V1.GetMetricsRequest.Parser, new[]{ "Name" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.Metrics), global::Google.Cloud.RecaptchaEnterprise.V1.Metrics.Parser, new[]{ "Name", "StartTime", "ScoreMetrics", "ChallengeMetrics" }, null, null, null, null), @@ -398,11 +502,19 @@ static RecaptchaenterpriseReflection() { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.Key), global::Google.Cloud.RecaptchaEnterprise.V1.Key.Parser, new[]{ "Name", "DisplayName", "WebSettings", "AndroidSettings", "IosSettings", "Labels", "CreateTime", "TestingOptions", "WafSettings" }, new[]{ "PlatformSettings" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.TestingOptions), global::Google.Cloud.RecaptchaEnterprise.V1.TestingOptions.Parser, new[]{ "TestingScore", "TestingChallenge" }, null, new[]{ typeof(global::Google.Cloud.RecaptchaEnterprise.V1.TestingOptions.Types.TestingChallenge) }, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings), global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings.Parser, new[]{ "AllowAllDomains", "AllowedDomains", "AllowAmpTraffic", "IntegrationType", "ChallengeSecurityPreference" }, null, new[]{ typeof(global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings.Types.IntegrationType), typeof(global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings.Types.ChallengeSecurityPreference) }, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.AndroidKeySettings), global::Google.Cloud.RecaptchaEnterprise.V1.AndroidKeySettings.Parser, new[]{ "AllowAllPackageNames", "AllowedPackageNames" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.IOSKeySettings), global::Google.Cloud.RecaptchaEnterprise.V1.IOSKeySettings.Parser, new[]{ "AllowAllBundleIds", "AllowedBundleIds" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.AndroidKeySettings), global::Google.Cloud.RecaptchaEnterprise.V1.AndroidKeySettings.Parser, new[]{ "AllowAllPackageNames", "AllowedPackageNames", "SupportNonGoogleAppStoreDistribution" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.IOSKeySettings), global::Google.Cloud.RecaptchaEnterprise.V1.IOSKeySettings.Parser, new[]{ "AllowAllBundleIds", "AllowedBundleIds", "AppleDeveloperId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.AppleDeveloperId), global::Google.Cloud.RecaptchaEnterprise.V1.AppleDeveloperId.Parser, new[]{ "PrivateKey", "KeyId", "TeamId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.ScoreDistribution), global::Google.Cloud.RecaptchaEnterprise.V1.ScoreDistribution.Parser, new[]{ "ScoreBuckets" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.ScoreMetrics), global::Google.Cloud.RecaptchaEnterprise.V1.ScoreMetrics.Parser, new[]{ "OverallMetrics", "ActionMetrics" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.ChallengeMetrics), global::Google.Cloud.RecaptchaEnterprise.V1.ChallengeMetrics.Parser, new[]{ "PageloadCount", "NocaptchaCount", "FailedCount", "PassedCount" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicyAssessment), global::Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicyAssessment.Parser, new[]{ "Error", "FirewallPolicy" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.FirewallAction), global::Google.Cloud.RecaptchaEnterprise.V1.FirewallAction.Parser, new[]{ "Allow", "Block", "Redirect", "Substitute", "SetHeader" }, new[]{ "FirewallActionOneof" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.FirewallAction.Types.AllowAction), global::Google.Cloud.RecaptchaEnterprise.V1.FirewallAction.Types.AllowAction.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.FirewallAction.Types.BlockAction), global::Google.Cloud.RecaptchaEnterprise.V1.FirewallAction.Types.BlockAction.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.FirewallAction.Types.RedirectAction), global::Google.Cloud.RecaptchaEnterprise.V1.FirewallAction.Types.RedirectAction.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.FirewallAction.Types.SubstituteAction), global::Google.Cloud.RecaptchaEnterprise.V1.FirewallAction.Types.SubstituteAction.Parser, new[]{ "Path" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.FirewallAction.Types.SetHeaderAction), global::Google.Cloud.RecaptchaEnterprise.V1.FirewallAction.Types.SetHeaderAction.Parser, new[]{ "Key", "Value" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy), global::Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy.Parser, new[]{ "Name", "Description", "Path", "Condition", "Actions" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.ListRelatedAccountGroupMembershipsRequest), global::Google.Cloud.RecaptchaEnterprise.V1.ListRelatedAccountGroupMembershipsRequest.Parser, new[]{ "Parent", "PageSize", "PageToken" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.ListRelatedAccountGroupMembershipsResponse), global::Google.Cloud.RecaptchaEnterprise.V1.ListRelatedAccountGroupMembershipsResponse.Parser, new[]{ "RelatedAccountGroupMemberships", "NextPageToken" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.RecaptchaEnterprise.V1.ListRelatedAccountGroupsRequest), global::Google.Cloud.RecaptchaEnterprise.V1.ListRelatedAccountGroupsRequest.Parser, new[]{ "Parent", "PageSize", "PageToken" }, null, null, null, null), @@ -471,7 +583,7 @@ public CreateAssessmentRequest Clone() { private string parent_ = ""; /// /// Required. The name of the project in which the assessment will be created, - /// in the format "projects/{project}". + /// in the format `projects/{project}`. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -1176,7 +1288,7 @@ public AnnotateAssessmentRequest Clone() { private string name_ = ""; /// /// Required. The resource name of the Assessment, in the format - /// "projects/{project}/assessments/{assessment}". + /// `projects/{project}/assessments/{assessment}`. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -2877,7 +2989,9 @@ public Assessment(Assessment other) : this() { accountVerification_ = other.accountVerification_ != null ? other.accountVerification_.Clone() : null; accountDefenderAssessment_ = other.accountDefenderAssessment_ != null ? other.accountDefenderAssessment_.Clone() : null; privatePasswordLeakVerification_ = other.privatePasswordLeakVerification_ != null ? other.privatePasswordLeakVerification_.Clone() : null; + firewallPolicyAssessment_ = other.firewallPolicyAssessment_ != null ? other.firewallPolicyAssessment_.Clone() : null; fraudPreventionAssessment_ = other.fraudPreventionAssessment_ != null ? other.fraudPreventionAssessment_.Clone() : null; + fraudSignals_ = other.fraudSignals_ != null ? other.fraudSignals_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -2892,7 +3006,7 @@ public Assessment Clone() { private string name_ = ""; /// /// Output only. The resource name for the Assessment in the format - /// "projects/{project}/assessments/{assessment}". + /// `projects/{project}/assessments/{assessment}`. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -2996,6 +3110,22 @@ public string Name { } } + /// Field number for the "firewall_policy_assessment" field. + public const int FirewallPolicyAssessmentFieldNumber = 10; + private global::Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicyAssessment firewallPolicyAssessment_; + /// + /// Assessment returned when firewall policies belonging to the project are + /// evaluated using the field firewall_policy_evaluation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicyAssessment FirewallPolicyAssessment { + get { return firewallPolicyAssessment_; } + set { + firewallPolicyAssessment_ = value; + } + } + /// Field number for the "fraud_prevention_assessment" field. public const int FraudPreventionAssessmentFieldNumber = 11; private global::Google.Cloud.RecaptchaEnterprise.V1.FraudPreventionAssessment fraudPreventionAssessment_; @@ -3011,6 +3141,22 @@ public string Name { } } + /// Field number for the "fraud_signals" field. + public const int FraudSignalsFieldNumber = 13; + private global::Google.Cloud.RecaptchaEnterprise.V1.FraudSignals fraudSignals_; + /// + /// Output only. Fraud Signals specific to the users involved in a payment + /// transaction. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.RecaptchaEnterprise.V1.FraudSignals FraudSignals { + get { return fraudSignals_; } + set { + fraudSignals_ = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -3033,7 +3179,9 @@ public bool Equals(Assessment other) { if (!object.Equals(AccountVerification, other.AccountVerification)) return false; if (!object.Equals(AccountDefenderAssessment, other.AccountDefenderAssessment)) return false; if (!object.Equals(PrivatePasswordLeakVerification, other.PrivatePasswordLeakVerification)) return false; + if (!object.Equals(FirewallPolicyAssessment, other.FirewallPolicyAssessment)) return false; if (!object.Equals(FraudPreventionAssessment, other.FraudPreventionAssessment)) return false; + if (!object.Equals(FraudSignals, other.FraudSignals)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -3048,7 +3196,9 @@ public override int GetHashCode() { if (accountVerification_ != null) hash ^= AccountVerification.GetHashCode(); if (accountDefenderAssessment_ != null) hash ^= AccountDefenderAssessment.GetHashCode(); if (privatePasswordLeakVerification_ != null) hash ^= PrivatePasswordLeakVerification.GetHashCode(); + if (firewallPolicyAssessment_ != null) hash ^= FirewallPolicyAssessment.GetHashCode(); if (fraudPreventionAssessment_ != null) hash ^= FraudPreventionAssessment.GetHashCode(); + if (fraudSignals_ != null) hash ^= FraudSignals.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -3095,10 +3245,18 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(66); output.WriteMessage(PrivatePasswordLeakVerification); } + if (firewallPolicyAssessment_ != null) { + output.WriteRawTag(82); + output.WriteMessage(FirewallPolicyAssessment); + } if (fraudPreventionAssessment_ != null) { output.WriteRawTag(90); output.WriteMessage(FraudPreventionAssessment); } + if (fraudSignals_ != null) { + output.WriteRawTag(106); + output.WriteMessage(FraudSignals); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -3137,10 +3295,18 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(66); output.WriteMessage(PrivatePasswordLeakVerification); } + if (firewallPolicyAssessment_ != null) { + output.WriteRawTag(82); + output.WriteMessage(FirewallPolicyAssessment); + } if (fraudPreventionAssessment_ != null) { output.WriteRawTag(90); output.WriteMessage(FraudPreventionAssessment); } + if (fraudSignals_ != null) { + output.WriteRawTag(106); + output.WriteMessage(FraudSignals); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -3172,9 +3338,15 @@ public int CalculateSize() { if (privatePasswordLeakVerification_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(PrivatePasswordLeakVerification); } + if (firewallPolicyAssessment_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(FirewallPolicyAssessment); + } if (fraudPreventionAssessment_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(FraudPreventionAssessment); } + if (fraudSignals_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(FraudSignals); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -3226,12 +3398,24 @@ public void MergeFrom(Assessment other) { } PrivatePasswordLeakVerification.MergeFrom(other.PrivatePasswordLeakVerification); } + if (other.firewallPolicyAssessment_ != null) { + if (firewallPolicyAssessment_ == null) { + FirewallPolicyAssessment = new global::Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicyAssessment(); + } + FirewallPolicyAssessment.MergeFrom(other.FirewallPolicyAssessment); + } if (other.fraudPreventionAssessment_ != null) { if (fraudPreventionAssessment_ == null) { FraudPreventionAssessment = new global::Google.Cloud.RecaptchaEnterprise.V1.FraudPreventionAssessment(); } FraudPreventionAssessment.MergeFrom(other.FraudPreventionAssessment); } + if (other.fraudSignals_ != null) { + if (fraudSignals_ == null) { + FraudSignals = new global::Google.Cloud.RecaptchaEnterprise.V1.FraudSignals(); + } + FraudSignals.MergeFrom(other.FraudSignals); + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -3293,6 +3477,13 @@ public void MergeFrom(pb::CodedInputStream input) { input.ReadMessage(PrivatePasswordLeakVerification); break; } + case 82: { + if (firewallPolicyAssessment_ == null) { + FirewallPolicyAssessment = new global::Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicyAssessment(); + } + input.ReadMessage(FirewallPolicyAssessment); + break; + } case 90: { if (fraudPreventionAssessment_ == null) { FraudPreventionAssessment = new global::Google.Cloud.RecaptchaEnterprise.V1.FraudPreventionAssessment(); @@ -3300,6 +3491,13 @@ public void MergeFrom(pb::CodedInputStream input) { input.ReadMessage(FraudPreventionAssessment); break; } + case 106: { + if (fraudSignals_ == null) { + FraudSignals = new global::Google.Cloud.RecaptchaEnterprise.V1.FraudSignals(); + } + input.ReadMessage(FraudSignals); + break; + } } } #endif @@ -3361,6 +3559,13 @@ public void MergeFrom(pb::CodedInputStream input) { input.ReadMessage(PrivatePasswordLeakVerification); break; } + case 82: { + if (firewallPolicyAssessment_ == null) { + FirewallPolicyAssessment = new global::Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicyAssessment(); + } + input.ReadMessage(FirewallPolicyAssessment); + break; + } case 90: { if (fraudPreventionAssessment_ == null) { FraudPreventionAssessment = new global::Google.Cloud.RecaptchaEnterprise.V1.FraudPreventionAssessment(); @@ -3368,6 +3573,13 @@ public void MergeFrom(pb::CodedInputStream input) { input.ReadMessage(FraudPreventionAssessment); break; } + case 106: { + if (fraudSignals_ == null) { + FraudSignals = new global::Google.Cloud.RecaptchaEnterprise.V1.FraudSignals(); + } + input.ReadMessage(FraudSignals); + break; + } } } } @@ -3418,6 +3630,12 @@ public Event(Event other) : this() { userIpAddress_ = other.userIpAddress_; expectedAction_ = other.expectedAction_; hashedAccountId_ = other.hashedAccountId_; + express_ = other.express_; + requestedUri_ = other.requestedUri_; + wafTokenAssessment_ = other.wafTokenAssessment_; + ja3_ = other.ja3_; + headers_ = other.headers_.Clone(); + firewallPolicyEvaluation_ = other.firewallPolicyEvaluation_; transactionData_ = other.transactionData_ != null ? other.transactionData_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -3525,6 +3743,101 @@ public string ExpectedAction { } } + /// Field number for the "express" field. + public const int ExpressFieldNumber = 14; + private bool express_; + /// + /// Optional. Flag for a reCAPTCHA express request for an assessment without a + /// token. If enabled, `site_key` must reference a SCORE key with WAF feature + /// set to EXPRESS. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Express { + get { return express_; } + set { + express_ = value; + } + } + + /// Field number for the "requested_uri" field. + public const int RequestedUriFieldNumber = 8; + private string requestedUri_ = ""; + /// + /// Optional. The URI resource the user requested that triggered an assessment. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RequestedUri { + get { return requestedUri_; } + set { + requestedUri_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "waf_token_assessment" field. + public const int WafTokenAssessmentFieldNumber = 9; + private bool wafTokenAssessment_; + /// + /// Optional. Flag for running WAF token assessment. + /// If enabled, the token must be specified, and have been created by a + /// WAF-enabled key. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool WafTokenAssessment { + get { return wafTokenAssessment_; } + set { + wafTokenAssessment_ = value; + } + } + + /// Field number for the "ja3" field. + public const int Ja3FieldNumber = 10; + private string ja3_ = ""; + /// + /// Optional. Optional JA3 fingerprint for SSL clients. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Ja3 { + get { return ja3_; } + set { + ja3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "headers" field. + public const int HeadersFieldNumber = 11; + private static readonly pb::FieldCodec _repeated_headers_codec + = pb::FieldCodec.ForString(90); + private readonly pbc::RepeatedField headers_ = new pbc::RepeatedField(); + /// + /// Optional. HTTP header information about the request. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Headers { + get { return headers_; } + } + + /// Field number for the "firewall_policy_evaluation" field. + public const int FirewallPolicyEvaluationFieldNumber = 12; + private bool firewallPolicyEvaluation_; + /// + /// Optional. Flag for enabling firewall policy config assessment. + /// If this flag is enabled, the firewall policy will be evaluated and a + /// suggested firewall action will be returned in the response. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool FirewallPolicyEvaluation { + get { return firewallPolicyEvaluation_; } + set { + firewallPolicyEvaluation_ = value; + } + } + /// Field number for the "transaction_data" field. public const int TransactionDataFieldNumber = 13; private global::Google.Cloud.RecaptchaEnterprise.V1.TransactionData transactionData_; @@ -3563,6 +3876,12 @@ public bool Equals(Event other) { if (UserIpAddress != other.UserIpAddress) return false; if (ExpectedAction != other.ExpectedAction) return false; if (HashedAccountId != other.HashedAccountId) return false; + if (Express != other.Express) return false; + if (RequestedUri != other.RequestedUri) return false; + if (WafTokenAssessment != other.WafTokenAssessment) return false; + if (Ja3 != other.Ja3) return false; + if(!headers_.Equals(other.headers_)) return false; + if (FirewallPolicyEvaluation != other.FirewallPolicyEvaluation) return false; if (!object.Equals(TransactionData, other.TransactionData)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -3577,6 +3896,12 @@ public override int GetHashCode() { if (UserIpAddress.Length != 0) hash ^= UserIpAddress.GetHashCode(); if (ExpectedAction.Length != 0) hash ^= ExpectedAction.GetHashCode(); if (HashedAccountId.Length != 0) hash ^= HashedAccountId.GetHashCode(); + if (Express != false) hash ^= Express.GetHashCode(); + if (RequestedUri.Length != 0) hash ^= RequestedUri.GetHashCode(); + if (WafTokenAssessment != false) hash ^= WafTokenAssessment.GetHashCode(); + if (Ja3.Length != 0) hash ^= Ja3.GetHashCode(); + hash ^= headers_.GetHashCode(); + if (FirewallPolicyEvaluation != false) hash ^= FirewallPolicyEvaluation.GetHashCode(); if (transactionData_ != null) hash ^= TransactionData.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -3620,10 +3945,31 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(50); output.WriteBytes(HashedAccountId); } + if (RequestedUri.Length != 0) { + output.WriteRawTag(66); + output.WriteString(RequestedUri); + } + if (WafTokenAssessment != false) { + output.WriteRawTag(72); + output.WriteBool(WafTokenAssessment); + } + if (Ja3.Length != 0) { + output.WriteRawTag(82); + output.WriteString(Ja3); + } + headers_.WriteTo(output, _repeated_headers_codec); + if (FirewallPolicyEvaluation != false) { + output.WriteRawTag(96); + output.WriteBool(FirewallPolicyEvaluation); + } if (transactionData_ != null) { output.WriteRawTag(106); output.WriteMessage(TransactionData); } + if (Express != false) { + output.WriteRawTag(112); + output.WriteBool(Express); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -3658,10 +4004,31 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(50); output.WriteBytes(HashedAccountId); } + if (RequestedUri.Length != 0) { + output.WriteRawTag(66); + output.WriteString(RequestedUri); + } + if (WafTokenAssessment != false) { + output.WriteRawTag(72); + output.WriteBool(WafTokenAssessment); + } + if (Ja3.Length != 0) { + output.WriteRawTag(82); + output.WriteString(Ja3); + } + headers_.WriteTo(ref output, _repeated_headers_codec); + if (FirewallPolicyEvaluation != false) { + output.WriteRawTag(96); + output.WriteBool(FirewallPolicyEvaluation); + } if (transactionData_ != null) { output.WriteRawTag(106); output.WriteMessage(TransactionData); } + if (Express != false) { + output.WriteRawTag(112); + output.WriteBool(Express); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -3690,6 +4057,22 @@ public int CalculateSize() { if (HashedAccountId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeBytesSize(HashedAccountId); } + if (Express != false) { + size += 1 + 1; + } + if (RequestedUri.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestedUri); + } + if (WafTokenAssessment != false) { + size += 1 + 1; + } + if (Ja3.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Ja3); + } + size += headers_.CalculateSize(_repeated_headers_codec); + if (FirewallPolicyEvaluation != false) { + size += 1 + 1; + } if (transactionData_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(TransactionData); } @@ -3723,6 +4106,22 @@ public void MergeFrom(Event other) { if (other.HashedAccountId.Length != 0) { HashedAccountId = other.HashedAccountId; } + if (other.Express != false) { + Express = other.Express; + } + if (other.RequestedUri.Length != 0) { + RequestedUri = other.RequestedUri; + } + if (other.WafTokenAssessment != false) { + WafTokenAssessment = other.WafTokenAssessment; + } + if (other.Ja3.Length != 0) { + Ja3 = other.Ja3; + } + headers_.Add(other.headers_); + if (other.FirewallPolicyEvaluation != false) { + FirewallPolicyEvaluation = other.FirewallPolicyEvaluation; + } if (other.transactionData_ != null) { if (transactionData_ == null) { TransactionData = new global::Google.Cloud.RecaptchaEnterprise.V1.TransactionData(); @@ -3768,6 +4167,26 @@ public void MergeFrom(pb::CodedInputStream input) { HashedAccountId = input.ReadBytes(); break; } + case 66: { + RequestedUri = input.ReadString(); + break; + } + case 72: { + WafTokenAssessment = input.ReadBool(); + break; + } + case 82: { + Ja3 = input.ReadString(); + break; + } + case 90: { + headers_.AddEntriesFrom(input, _repeated_headers_codec); + break; + } + case 96: { + FirewallPolicyEvaluation = input.ReadBool(); + break; + } case 106: { if (transactionData_ == null) { TransactionData = new global::Google.Cloud.RecaptchaEnterprise.V1.TransactionData(); @@ -3775,6 +4194,10 @@ public void MergeFrom(pb::CodedInputStream input) { input.ReadMessage(TransactionData); break; } + case 112: { + Express = input.ReadBool(); + break; + } } } #endif @@ -3814,6 +4237,26 @@ public void MergeFrom(pb::CodedInputStream input) { HashedAccountId = input.ReadBytes(); break; } + case 66: { + RequestedUri = input.ReadString(); + break; + } + case 72: { + WafTokenAssessment = input.ReadBool(); + break; + } + case 82: { + Ja3 = input.ReadString(); + break; + } + case 90: { + headers_.AddEntriesFrom(ref input, _repeated_headers_codec); + break; + } + case 96: { + FirewallPolicyEvaluation = input.ReadBool(); + break; + } case 106: { if (transactionData_ == null) { TransactionData = new global::Google.Cloud.RecaptchaEnterprise.V1.TransactionData(); @@ -3821,6 +4264,10 @@ public void MergeFrom(pb::CodedInputStream input) { input.ReadMessage(TransactionData); break; } + case 112: { + Express = input.ReadBool(); + break; + } } } } @@ -6010,6 +6457,7 @@ public RiskAnalysis() { public RiskAnalysis(RiskAnalysis other) : this() { score_ = other.score_; reasons_ = other.reasons_.Clone(); + extendedVerdictReasons_ = other.extendedVerdictReasons_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -6050,6 +6498,21 @@ public float Score { get { return reasons_; } } + /// Field number for the "extended_verdict_reasons" field. + public const int ExtendedVerdictReasonsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_extendedVerdictReasons_codec + = pb::FieldCodec.ForString(26); + private readonly pbc::RepeatedField extendedVerdictReasons_ = new pbc::RepeatedField(); + /// + /// Extended verdict reasons to be used for experimentation only. The set of + /// possible reasons is subject to change. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ExtendedVerdictReasons { + get { return extendedVerdictReasons_; } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -6067,6 +6530,7 @@ public bool Equals(RiskAnalysis other) { } if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Score, other.Score)) return false; if(!reasons_.Equals(other.reasons_)) return false; + if(!extendedVerdictReasons_.Equals(other.extendedVerdictReasons_)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -6076,6 +6540,7 @@ public override int GetHashCode() { int hash = 1; if (Score != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Score); hash ^= reasons_.GetHashCode(); + hash ^= extendedVerdictReasons_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -6099,6 +6564,7 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteFloat(Score); } reasons_.WriteTo(output, _repeated_reasons_codec); + extendedVerdictReasons_.WriteTo(output, _repeated_extendedVerdictReasons_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -6114,6 +6580,7 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteFloat(Score); } reasons_.WriteTo(ref output, _repeated_reasons_codec); + extendedVerdictReasons_.WriteTo(ref output, _repeated_extendedVerdictReasons_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -6128,6 +6595,7 @@ public int CalculateSize() { size += 1 + 4; } size += reasons_.CalculateSize(_repeated_reasons_codec); + size += extendedVerdictReasons_.CalculateSize(_repeated_extendedVerdictReasons_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -6144,6 +6612,7 @@ public void MergeFrom(RiskAnalysis other) { Score = other.Score; } reasons_.Add(other.reasons_); + extendedVerdictReasons_.Add(other.extendedVerdictReasons_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -6168,6 +6637,10 @@ public void MergeFrom(pb::CodedInputStream input) { reasons_.AddEntriesFrom(input, _repeated_reasons_codec); break; } + case 26: { + extendedVerdictReasons_.AddEntriesFrom(input, _repeated_extendedVerdictReasons_codec); + break; + } } } #endif @@ -6192,6 +6665,10 @@ public void MergeFrom(pb::CodedInputStream input) { reasons_.AddEntriesFrom(ref input, _repeated_reasons_codec); break; } + case 26: { + extendedVerdictReasons_.AddEntriesFrom(ref input, _repeated_extendedVerdictReasons_codec); + break; + } } } } @@ -6780,6 +7257,7 @@ public FraudPreventionAssessment(FraudPreventionAssessment other) : this() { transactionRisk_ = other.transactionRisk_; stolenInstrumentVerdict_ = other.stolenInstrumentVerdict_ != null ? other.stolenInstrumentVerdict_.Clone() : null; cardTestingVerdict_ = other.cardTestingVerdict_ != null ? other.cardTestingVerdict_.Clone() : null; + behavioralTrustVerdict_ = other.behavioralTrustVerdict_ != null ? other.behavioralTrustVerdict_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -6793,8 +7271,9 @@ public FraudPreventionAssessment Clone() { public const int TransactionRiskFieldNumber = 1; private float transactionRisk_; /// - /// Probability (0-1) of this transaction being fraudulent. Summarizes the - /// combined risk of attack vectors below. + /// Probability of this transaction being fraudulent. Summarizes the combined + /// risk of attack vectors below. + /// Values are from 0.0 (lowest) to 1.0 (highest). /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -6836,6 +7315,21 @@ public float TransactionRisk { } } + /// Field number for the "behavioral_trust_verdict" field. + public const int BehavioralTrustVerdictFieldNumber = 4; + private global::Google.Cloud.RecaptchaEnterprise.V1.FraudPreventionAssessment.Types.BehavioralTrustVerdict behavioralTrustVerdict_; + /// + /// Assessment of this transaction for behavioral trust. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.RecaptchaEnterprise.V1.FraudPreventionAssessment.Types.BehavioralTrustVerdict BehavioralTrustVerdict { + get { return behavioralTrustVerdict_; } + set { + behavioralTrustVerdict_ = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -6854,6 +7348,7 @@ public bool Equals(FraudPreventionAssessment other) { if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(TransactionRisk, other.TransactionRisk)) return false; if (!object.Equals(StolenInstrumentVerdict, other.StolenInstrumentVerdict)) return false; if (!object.Equals(CardTestingVerdict, other.CardTestingVerdict)) return false; + if (!object.Equals(BehavioralTrustVerdict, other.BehavioralTrustVerdict)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -6864,6 +7359,7 @@ public override int GetHashCode() { if (TransactionRisk != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(TransactionRisk); if (stolenInstrumentVerdict_ != null) hash ^= StolenInstrumentVerdict.GetHashCode(); if (cardTestingVerdict_ != null) hash ^= CardTestingVerdict.GetHashCode(); + if (behavioralTrustVerdict_ != null) hash ^= BehavioralTrustVerdict.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -6894,6 +7390,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(26); output.WriteMessage(CardTestingVerdict); } + if (behavioralTrustVerdict_ != null) { + output.WriteRawTag(34); + output.WriteMessage(BehavioralTrustVerdict); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -6916,6 +7416,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(26); output.WriteMessage(CardTestingVerdict); } + if (behavioralTrustVerdict_ != null) { + output.WriteRawTag(34); + output.WriteMessage(BehavioralTrustVerdict); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -6935,6 +7439,9 @@ public int CalculateSize() { if (cardTestingVerdict_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(CardTestingVerdict); } + if (behavioralTrustVerdict_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BehavioralTrustVerdict); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -6962,6 +7469,12 @@ public void MergeFrom(FraudPreventionAssessment other) { } CardTestingVerdict.MergeFrom(other.CardTestingVerdict); } + if (other.behavioralTrustVerdict_ != null) { + if (behavioralTrustVerdict_ == null) { + BehavioralTrustVerdict = new global::Google.Cloud.RecaptchaEnterprise.V1.FraudPreventionAssessment.Types.BehavioralTrustVerdict(); + } + BehavioralTrustVerdict.MergeFrom(other.BehavioralTrustVerdict); + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -6995,6 +7508,13 @@ public void MergeFrom(pb::CodedInputStream input) { input.ReadMessage(CardTestingVerdict); break; } + case 34: { + if (behavioralTrustVerdict_ == null) { + BehavioralTrustVerdict = new global::Google.Cloud.RecaptchaEnterprise.V1.FraudPreventionAssessment.Types.BehavioralTrustVerdict(); + } + input.ReadMessage(BehavioralTrustVerdict); + break; + } } } #endif @@ -7028,6 +7548,13 @@ public void MergeFrom(pb::CodedInputStream input) { input.ReadMessage(CardTestingVerdict); break; } + case 34: { + if (behavioralTrustVerdict_ == null) { + BehavioralTrustVerdict = new global::Google.Cloud.RecaptchaEnterprise.V1.FraudPreventionAssessment.Types.BehavioralTrustVerdict(); + } + input.ReadMessage(BehavioralTrustVerdict); + break; + } } } } @@ -7090,8 +7617,8 @@ public StolenInstrumentVerdict Clone() { public const int RiskFieldNumber = 1; private float risk_; /// - /// Probability (0-1) of this transaction being executed with a stolen - /// instrument. + /// Probability of this transaction being executed with a stolen instrument. + /// Values are from 0.0 (lowest) to 1.0 (highest). /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -7287,8 +7814,9 @@ public CardTestingVerdict Clone() { public const int RiskFieldNumber = 1; private float risk_; /// - /// Probability (0-1) of this transaction attempt being part of a card - /// testing attack. + /// Probability of this transaction attempt being part of a card testing + /// attack. + /// Values are from 0.0 (lowest) to 1.0 (highest). /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -7432,88 +7960,304 @@ public void MergeFrom(pb::CodedInputStream input) { } - } - #endregion - - } + /// + /// Information about behavioral trust of the transaction. + /// + public sealed partial class BehavioralTrustVerdict : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BehavioralTrustVerdict()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } - /// - /// Account defender risk assessment. - /// - public sealed partial class AccountDefenderAssessment : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccountDefenderAssessment()); - 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.RecaptchaEnterprise.V1.FraudPreventionAssessment.Descriptor.NestedTypes[2]; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Cloud.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.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)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BehavioralTrustVerdict() { + OnConstruction(); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccountDefenderAssessment() { - OnConstruction(); - } + partial void OnConstruction(); - partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BehavioralTrustVerdict(BehavioralTrustVerdict other) : this() { + trust_ = other.trust_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccountDefenderAssessment(AccountDefenderAssessment other) : this() { - labels_ = other.labels_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BehavioralTrustVerdict Clone() { + return new BehavioralTrustVerdict(this); + } + + /// Field number for the "trust" field. + public const int TrustFieldNumber = 1; + private float trust_; + /// + /// Probability of this transaction attempt being executed in a behaviorally + /// trustworthy way. + /// Values are from 0.0 (lowest) to 1.0 (highest). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Trust { + get { return trust_; } + set { + trust_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BehavioralTrustVerdict); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BehavioralTrustVerdict other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Trust, other.Trust)) 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 (Trust != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Trust); + 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 (Trust != 0F) { + output.WriteRawTag(13); + output.WriteFloat(Trust); + } + 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 (Trust != 0F) { + output.WriteRawTag(13); + output.WriteFloat(Trust); + } + 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 (Trust != 0F) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BehavioralTrustVerdict other) { + if (other == null) { + return; + } + if (other.Trust != 0F) { + Trust = other.Trust; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 13: { + Trust = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 13: { + Trust = input.ReadFloat(); + break; + } + } + } + } + #endif + + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccountDefenderAssessment Clone() { - return new AccountDefenderAssessment(this); } + #endregion - /// Field number for the "labels" field. - public const int LabelsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_labels_codec - = pb::FieldCodec.ForEnum(10, x => (int) x, x => (global::Google.Cloud.RecaptchaEnterprise.V1.AccountDefenderAssessment.Types.AccountDefenderLabel) x); - private readonly pbc::RepeatedField labels_ = new pbc::RepeatedField(); + } + + /// + /// Fraud signals describing users and cards involved in the transaction. + /// + public sealed partial class FraudSignals : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FraudSignals()); + 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.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.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 FraudSignals() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FraudSignals(FraudSignals other) : this() { + userSignals_ = other.userSignals_ != null ? other.userSignals_.Clone() : null; + cardSignals_ = other.cardSignals_ != null ? other.cardSignals_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FraudSignals Clone() { + return new FraudSignals(this); + } + + /// Field number for the "user_signals" field. + public const int UserSignalsFieldNumber = 1; + private global::Google.Cloud.RecaptchaEnterprise.V1.FraudSignals.Types.UserSignals userSignals_; /// - /// Labels for this request. + /// Output only. Signals describing the end user in this transaction. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Labels { - get { return labels_; } + public global::Google.Cloud.RecaptchaEnterprise.V1.FraudSignals.Types.UserSignals UserSignals { + get { return userSignals_; } + set { + userSignals_ = value; + } + } + + /// Field number for the "card_signals" field. + public const int CardSignalsFieldNumber = 2; + private global::Google.Cloud.RecaptchaEnterprise.V1.FraudSignals.Types.CardSignals cardSignals_; + /// + /// Output only. Signals describing the payment card or cards used in this + /// transaction. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.RecaptchaEnterprise.V1.FraudSignals.Types.CardSignals CardSignals { + get { return cardSignals_; } + set { + cardSignals_ = value; + } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as AccountDefenderAssessment); + return Equals(other as FraudSignals); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AccountDefenderAssessment other) { + public bool Equals(FraudSignals other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if(!labels_.Equals(other.labels_)) return false; + if (!object.Equals(UserSignals, other.UserSignals)) return false; + if (!object.Equals(CardSignals, other.CardSignals)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -7521,7 +8265,8 @@ public bool Equals(AccountDefenderAssessment other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - hash ^= labels_.GetHashCode(); + if (userSignals_ != null) hash ^= UserSignals.GetHashCode(); + if (cardSignals_ != null) hash ^= CardSignals.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -7540,7 +8285,14 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - labels_.WriteTo(output, _repeated_labels_codec); + if (userSignals_ != null) { + output.WriteRawTag(10); + output.WriteMessage(UserSignals); + } + if (cardSignals_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CardSignals); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -7551,7 +8303,14 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - labels_.WriteTo(ref output, _repeated_labels_codec); + if (userSignals_ != null) { + output.WriteRawTag(10); + output.WriteMessage(UserSignals); + } + if (cardSignals_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CardSignals); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -7562,7 +8321,12 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - size += labels_.CalculateSize(_repeated_labels_codec); + if (userSignals_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UserSignals); + } + if (cardSignals_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CardSignals); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -7571,11 +8335,22 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AccountDefenderAssessment other) { + public void MergeFrom(FraudSignals other) { if (other == null) { return; } - labels_.Add(other.labels_); + if (other.userSignals_ != null) { + if (userSignals_ == null) { + UserSignals = new global::Google.Cloud.RecaptchaEnterprise.V1.FraudSignals.Types.UserSignals(); + } + UserSignals.MergeFrom(other.UserSignals); + } + if (other.cardSignals_ != null) { + if (cardSignals_ == null) { + CardSignals = new global::Google.Cloud.RecaptchaEnterprise.V1.FraudSignals.Types.CardSignals(); + } + CardSignals.MergeFrom(other.CardSignals); + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -7591,9 +8366,18 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: - case 8: { - labels_.AddEntriesFrom(input, _repeated_labels_codec); + case 10: { + if (userSignals_ == null) { + UserSignals = new global::Google.Cloud.RecaptchaEnterprise.V1.FraudSignals.Types.UserSignals(); + } + input.ReadMessage(UserSignals); + break; + } + case 18: { + if (cardSignals_ == null) { + CardSignals = new global::Google.Cloud.RecaptchaEnterprise.V1.FraudSignals.Types.CardSignals(); + } + input.ReadMessage(CardSignals); break; } } @@ -7611,9 +8395,18 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: - case 8: { - labels_.AddEntriesFrom(ref input, _repeated_labels_codec); + case 10: { + if (userSignals_ == null) { + UserSignals = new global::Google.Cloud.RecaptchaEnterprise.V1.FraudSignals.Types.UserSignals(); + } + input.ReadMessage(UserSignals); + break; + } + case 18: { + if (cardSignals_ == null) { + CardSignals = new global::Google.Cloud.RecaptchaEnterprise.V1.FraudSignals.Types.CardSignals(); + } + input.ReadMessage(CardSignals); break; } } @@ -7622,405 +8415,549 @@ public void MergeFrom(pb::CodedInputStream input) { #endif #region Nested types - /// Container for nested types declared in the AccountDefenderAssessment message type. + /// Container for nested types declared in the FraudSignals message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// - /// Labels returned by account defender for this request. + /// Signals describing the user involved in this transaction. /// - public enum AccountDefenderLabel { - /// - /// Default unspecified type. - /// - [pbr::OriginalName("ACCOUNT_DEFENDER_LABEL_UNSPECIFIED")] Unspecified = 0, - /// - /// The request matches a known good profile for the user. - /// - [pbr::OriginalName("PROFILE_MATCH")] ProfileMatch = 1, - /// - /// The request is potentially a suspicious login event and must be further - /// verified either through multi-factor authentication or another system. - /// - [pbr::OriginalName("SUSPICIOUS_LOGIN_ACTIVITY")] SuspiciousLoginActivity = 2, - /// - /// The request matched a profile that previously had suspicious account - /// creation behavior. This can mean that this is a fake account. - /// - [pbr::OriginalName("SUSPICIOUS_ACCOUNT_CREATION")] SuspiciousAccountCreation = 3, - /// - /// The account in the request has a high number of related accounts. It does - /// not necessarily imply that the account is bad but can require further - /// investigation. - /// - [pbr::OriginalName("RELATED_ACCOUNTS_NUMBER_HIGH")] RelatedAccountsNumberHigh = 4, - } + public sealed partial class UserSignals : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserSignals()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } - } - #endregion + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.RecaptchaEnterprise.V1.FraudSignals.Descriptor.NestedTypes[0]; } + } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } - /// - /// The create key request message. - /// - public sealed partial class CreateKeyRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateKeyRequest()); - 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 UserSignals() { + OnConstruction(); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Cloud.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[14]; } - } + partial void OnConstruction(); - [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 UserSignals(UserSignals other) : this() { + activeDaysLowerBound_ = other.activeDaysLowerBound_; + syntheticRisk_ = other.syntheticRisk_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateKeyRequest() { - OnConstruction(); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UserSignals Clone() { + return new UserSignals(this); + } - partial void OnConstruction(); + /// Field number for the "active_days_lower_bound" field. + public const int ActiveDaysLowerBoundFieldNumber = 1; + private int activeDaysLowerBound_; + /// + /// Output only. This user (based on email, phone, and other identifiers) has + /// been seen on the internet for at least this number of days. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ActiveDaysLowerBound { + get { return activeDaysLowerBound_; } + set { + activeDaysLowerBound_ = value; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateKeyRequest(CreateKeyRequest other) : this() { - parent_ = other.parent_; - key_ = other.key_ != null ? other.key_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } + /// Field number for the "synthetic_risk" field. + public const int SyntheticRiskFieldNumber = 2; + private float syntheticRisk_; + /// + /// Output only. Likelihood (from 0.0 to 1.0) this user includes synthetic + /// components in their identity, such as a randomly generated email address, + /// temporary phone number, or fake shipping address. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float SyntheticRisk { + get { return syntheticRisk_; } + set { + syntheticRisk_ = value; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateKeyRequest Clone() { - return new CreateKeyRequest(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UserSignals); + } - /// Field number for the "parent" field. - public const int ParentFieldNumber = 1; - private string parent_ = ""; - /// - /// Required. The name of the project in which the key will be created, in the - /// 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"); - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UserSignals other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ActiveDaysLowerBound != other.ActiveDaysLowerBound) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(SyntheticRisk, other.SyntheticRisk)) return false; + return Equals(_unknownFields, other._unknownFields); + } - /// Field number for the "key" field. - public const int KeyFieldNumber = 2; - private global::Google.Cloud.RecaptchaEnterprise.V1.Key key_; - /// - /// Required. Information to create a reCAPTCHA Enterprise key. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Cloud.RecaptchaEnterprise.V1.Key Key { - get { return key_; } - set { - key_ = value; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (ActiveDaysLowerBound != 0) hash ^= ActiveDaysLowerBound.GetHashCode(); + if (SyntheticRisk != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(SyntheticRisk); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CreateKeyRequest); - } + [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 bool Equals(CreateKeyRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Parent != other.Parent) return false; - if (!object.Equals(Key, other.Key)) return false; - return Equals(_unknownFields, other._unknownFields); - } + [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 (ActiveDaysLowerBound != 0) { + output.WriteRawTag(8); + output.WriteInt32(ActiveDaysLowerBound); + } + if (SyntheticRisk != 0F) { + output.WriteRawTag(21); + output.WriteFloat(SyntheticRisk); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } - [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 (key_ != null) hash ^= Key.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } + #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 (ActiveDaysLowerBound != 0) { + output.WriteRawTag(8); + output.WriteInt32(ActiveDaysLowerBound); + } + if (SyntheticRisk != 0F) { + output.WriteRawTag(21); + output.WriteFloat(SyntheticRisk); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif - [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 int CalculateSize() { + int size = 0; + if (ActiveDaysLowerBound != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ActiveDaysLowerBound); + } + if (SyntheticRisk != 0F) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } - [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 (key_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Key); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UserSignals other) { + if (other == null) { + return; + } + if (other.ActiveDaysLowerBound != 0) { + ActiveDaysLowerBound = other.ActiveDaysLowerBound; + } + if (other.SyntheticRisk != 0F) { + SyntheticRisk = other.SyntheticRisk; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } - #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 (key_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Key); - } - 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 (key_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Key); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CreateKeyRequest other) { - if (other == null) { - return; - } - if (other.Parent.Length != 0) { - Parent = other.Parent; - } - if (other.key_ != null) { - if (key_ == null) { - Key = new global::Google.Cloud.RecaptchaEnterprise.V1.Key(); - } - Key.MergeFrom(other.Key); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Parent = input.ReadString(); - break; - } - case 18: { - if (key_ == null) { - Key = new global::Google.Cloud.RecaptchaEnterprise.V1.Key(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ActiveDaysLowerBound = input.ReadInt32(); + break; + } + case 21: { + SyntheticRisk = input.ReadFloat(); + break; + } } - input.ReadMessage(Key); - break; } + #endif } - } - #endif - } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Parent = input.ReadString(); - break; - } - case 18: { - if (key_ == null) { - Key = new global::Google.Cloud.RecaptchaEnterprise.V1.Key(); + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ActiveDaysLowerBound = input.ReadInt32(); + break; + } + case 21: { + SyntheticRisk = input.ReadFloat(); + break; + } } - input.ReadMessage(Key); - break; } } - } - } - #endif + #endif - } + } - /// - /// The list keys request message. - /// - public sealed partial class ListKeysRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListKeysRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + /// + /// Signals describing the payment card used in this transaction. + /// + public sealed partial class CardSignals : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CardSignals()); + 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.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[15]; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.RecaptchaEnterprise.V1.FraudSignals.Descriptor.NestedTypes[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)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListKeysRequest() { - OnConstruction(); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CardSignals() { + OnConstruction(); + } - partial void OnConstruction(); + partial void OnConstruction(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListKeysRequest(ListKeysRequest 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 CardSignals(CardSignals other) : this() { + cardLabels_ = other.cardLabels_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListKeysRequest Clone() { - return new ListKeysRequest(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CardSignals Clone() { + return new CardSignals(this); + } - /// Field number for the "parent" field. - public const int ParentFieldNumber = 1; - private string parent_ = ""; - /// - /// Required. The name of the project that contains the keys that will be - /// listed, in the 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 "card_labels" field. + public const int CardLabelsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_cardLabels_codec + = pb::FieldCodec.ForEnum(10, x => (int) x, x => (global::Google.Cloud.RecaptchaEnterprise.V1.FraudSignals.Types.CardSignals.Types.CardLabel) x); + private readonly pbc::RepeatedField cardLabels_ = new pbc::RepeatedField(); + /// + /// Output only. The labels for the payment card in this transaction. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField CardLabels { + get { return cardLabels_; } + } - /// Field number for the "page_size" field. - public const int PageSizeFieldNumber = 2; - private int pageSize_; - /// - /// Optional. The maximum number of keys to return. Default is 10. Max limit is - /// 1000. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int PageSize { - get { return pageSize_; } - set { - pageSize_ = value; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CardSignals); + } - /// Field number for the "page_token" field. - public const int PageTokenFieldNumber = 3; - private string pageToken_ = ""; - /// - /// Optional. The next_page_token value returned from a previous. - /// ListKeysRequest, if any. - /// - [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 bool Equals(CardSignals other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!cardLabels_.Equals(other.cardLabels_)) return false; + return Equals(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= cardLabels_.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 + cardLabels_.WriteTo(output, _repeated_cardLabels_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) { + cardLabels_.WriteTo(ref output, _repeated_cardLabels_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 += cardLabels_.CalculateSize(_repeated_cardLabels_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CardSignals other) { + if (other == null) { + return; + } + cardLabels_.Add(other.cardLabels_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: + case 8: { + cardLabels_.AddEntriesFrom(input, _repeated_cardLabels_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: + case 8: { + cardLabels_.AddEntriesFrom(ref input, _repeated_cardLabels_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the CardSignals message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Risk labels describing the card being assessed, such as its funding + /// mechanism. + /// + public enum CardLabel { + /// + /// No label specified. + /// + [pbr::OriginalName("CARD_LABEL_UNSPECIFIED")] Unspecified = 0, + /// + /// This card has been detected as prepaid. + /// + [pbr::OriginalName("PREPAID")] Prepaid = 1, + /// + /// This card has been detected as virtual, such as a card number generated + /// for a single transaction or merchant. + /// + [pbr::OriginalName("VIRTUAL")] Virtual = 2, + /// + /// This card has been detected as being used in an unexpected geographic + /// location. + /// + [pbr::OriginalName("UNEXPECTED_LOCATION")] UnexpectedLocation = 3, + } + + } + #endregion + + } + + } + #endregion + + } + + /// + /// Account defender risk assessment. + /// + public sealed partial class AccountDefenderAssessment : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccountDefenderAssessment()); + 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.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.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 AccountDefenderAssessment() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AccountDefenderAssessment(AccountDefenderAssessment other) : this() { + labels_ = other.labels_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AccountDefenderAssessment Clone() { + return new AccountDefenderAssessment(this); + } + + /// Field number for the "labels" field. + public const int LabelsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_labels_codec + = pb::FieldCodec.ForEnum(10, x => (int) x, x => (global::Google.Cloud.RecaptchaEnterprise.V1.AccountDefenderAssessment.Types.AccountDefenderLabel) x); + private readonly pbc::RepeatedField labels_ = new pbc::RepeatedField(); + /// + /// Labels for this request. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Labels { + get { return labels_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as ListKeysRequest); + return Equals(other as AccountDefenderAssessment); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListKeysRequest other) { + public bool Equals(AccountDefenderAssessment 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(!labels_.Equals(other.labels_)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -8028,9 +8965,7 @@ public bool Equals(ListKeysRequest other) { [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(); + hash ^= labels_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -8049,18 +8984,7 @@ 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); - } + labels_.WriteTo(output, _repeated_labels_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -8071,18 +8995,7 @@ public void WriteTo(pb::CodedOutputStream output) { [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); - } + labels_.WriteTo(ref output, _repeated_labels_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -8093,15 +9006,7 @@ public void WriteTo(pb::CodedOutputStream output) { [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); - } + size += labels_.CalculateSize(_repeated_labels_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -8110,19 +9015,11 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListKeysRequest other) { + public void MergeFrom(AccountDefenderAssessment 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; - } + labels_.Add(other.labels_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -8138,16 +9035,9 @@ public void MergeFrom(pb::CodedInputStream input) { 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(); + case 10: + case 8: { + labels_.AddEntriesFrom(input, _repeated_labels_codec); break; } } @@ -8165,16 +9055,9 @@ public void MergeFrom(pb::CodedInputStream input) { 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(); + case 10: + case 8: { + labels_.AddEntriesFrom(ref input, _repeated_labels_codec); break; } } @@ -8182,26 +9065,64 @@ public void MergeFrom(pb::CodedInputStream input) { } #endif - } + #region Nested types + /// Container for nested types declared in the AccountDefenderAssessment message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Labels returned by account defender for this request. + /// + public enum AccountDefenderLabel { + /// + /// Default unspecified type. + /// + [pbr::OriginalName("ACCOUNT_DEFENDER_LABEL_UNSPECIFIED")] Unspecified = 0, + /// + /// The request matches a known good profile for the user. + /// + [pbr::OriginalName("PROFILE_MATCH")] ProfileMatch = 1, + /// + /// The request is potentially a suspicious login event and must be further + /// verified either through multi-factor authentication or another system. + /// + [pbr::OriginalName("SUSPICIOUS_LOGIN_ACTIVITY")] SuspiciousLoginActivity = 2, + /// + /// The request matched a profile that previously had suspicious account + /// creation behavior. This can mean that this is a fake account. + /// + [pbr::OriginalName("SUSPICIOUS_ACCOUNT_CREATION")] SuspiciousAccountCreation = 3, + /// + /// The account in the request has a high number of related accounts. It does + /// not necessarily imply that the account is bad but can require further + /// investigation. + /// + [pbr::OriginalName("RELATED_ACCOUNTS_NUMBER_HIGH")] RelatedAccountsNumberHigh = 4, + } + + } + #endregion + + } /// - /// Response to request to list keys in a project. + /// The create key request message. /// - public sealed partial class ListKeysResponse : pb::IMessage + public sealed partial class CreateKeyRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListKeysResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateKeyRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + 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.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[16]; } + get { return global::Google.Cloud.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[15]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -8212,7 +9133,7 @@ public sealed partial class ListKeysResponse : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListKeysResponse() { + public CreateKeyRequest() { OnConstruction(); } @@ -8220,65 +9141,66 @@ public ListKeysResponse() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListKeysResponse(ListKeysResponse other) : this() { - keys_ = other.keys_.Clone(); - nextPageToken_ = other.nextPageToken_; + public CreateKeyRequest(CreateKeyRequest other) : this() { + parent_ = other.parent_; + key_ = other.key_ != null ? other.key_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListKeysResponse Clone() { - return new ListKeysResponse(this); + public CreateKeyRequest Clone() { + return new CreateKeyRequest(this); } - /// Field number for the "keys" field. - public const int KeysFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_keys_codec - = pb::FieldCodec.ForMessage(10, global::Google.Cloud.RecaptchaEnterprise.V1.Key.Parser); - private readonly pbc::RepeatedField keys_ = new pbc::RepeatedField(); + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; /// - /// Key details. + /// Required. The name of the project in which the key will be created, in the + /// format `projects/{project}`. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Keys { - get { return keys_; } + public string Parent { + get { return parent_; } + set { + parent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } } - /// Field number for the "next_page_token" field. - public const int NextPageTokenFieldNumber = 2; - private string nextPageToken_ = ""; + /// Field number for the "key" field. + public const int KeyFieldNumber = 2; + private global::Google.Cloud.RecaptchaEnterprise.V1.Key key_; /// - /// Token to retrieve the next page of results. It is set to empty if no keys - /// remain in results. + /// Required. Information to create a reCAPTCHA Enterprise key. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string NextPageToken { - get { return nextPageToken_; } + public global::Google.Cloud.RecaptchaEnterprise.V1.Key Key { + get { return key_; } set { - nextPageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + key_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as ListKeysResponse); + return Equals(other as CreateKeyRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListKeysResponse other) { + public bool Equals(CreateKeyRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if(!keys_.Equals(other.keys_)) return false; - if (NextPageToken != other.NextPageToken) return false; + if (Parent != other.Parent) return false; + if (!object.Equals(Key, other.Key)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -8286,8 +9208,8 @@ public bool Equals(ListKeysResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - hash ^= keys_.GetHashCode(); - if (NextPageToken.Length != 0) hash ^= NextPageToken.GetHashCode(); + if (Parent.Length != 0) hash ^= Parent.GetHashCode(); + if (key_ != null) hash ^= Key.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -8306,10 +9228,13 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - keys_.WriteTo(output, _repeated_keys_codec); - if (NextPageToken.Length != 0) { + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (key_ != null) { output.WriteRawTag(18); - output.WriteString(NextPageToken); + output.WriteMessage(Key); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -8321,10 +9246,13 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - keys_.WriteTo(ref output, _repeated_keys_codec); - if (NextPageToken.Length != 0) { + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (key_ != null) { output.WriteRawTag(18); - output.WriteString(NextPageToken); + output.WriteMessage(Key); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -8336,9 +9264,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - size += keys_.CalculateSize(_repeated_keys_codec); - if (NextPageToken.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(NextPageToken); + if (Parent.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Parent); + } + if (key_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Key); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -8348,13 +9278,18 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListKeysResponse other) { + public void MergeFrom(CreateKeyRequest other) { if (other == null) { return; } - keys_.Add(other.keys_); - if (other.NextPageToken.Length != 0) { - NextPageToken = other.NextPageToken; + if (other.Parent.Length != 0) { + Parent = other.Parent; + } + if (other.key_ != null) { + if (key_ == null) { + Key = new global::Google.Cloud.RecaptchaEnterprise.V1.Key(); + } + Key.MergeFrom(other.Key); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -8372,11 +9307,14 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - keys_.AddEntriesFrom(input, _repeated_keys_codec); + Parent = input.ReadString(); break; } case 18: { - NextPageToken = input.ReadString(); + if (key_ == null) { + Key = new global::Google.Cloud.RecaptchaEnterprise.V1.Key(); + } + input.ReadMessage(Key); break; } } @@ -8395,11 +9333,14 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - keys_.AddEntriesFrom(ref input, _repeated_keys_codec); + Parent = input.ReadString(); break; } case 18: { - NextPageToken = input.ReadString(); + if (key_ == null) { + Key = new global::Google.Cloud.RecaptchaEnterprise.V1.Key(); + } + input.ReadMessage(Key); break; } } @@ -8410,23 +9351,23 @@ public void MergeFrom(pb::CodedInputStream input) { } /// - /// The retrieve legacy secret key request message. + /// The list keys request message. /// - public sealed partial class RetrieveLegacySecretKeyRequest : pb::IMessage + public sealed partial class ListKeysRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RetrieveLegacySecretKeyRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListKeysRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + 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.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[17]; } + get { return global::Google.Cloud.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[16]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -8437,7 +9378,7 @@ public sealed partial class RetrieveLegacySecretKeyRequest : pb::IMessageField number for the "key" field. - public const int KeyFieldNumber = 1; - private string key_ = ""; + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; /// - /// Required. The public key name linked to the requested secret key in the - /// format "projects/{project}/keys/{key}". + /// Required. The name of the project that contains the keys that will be + /// listed, in the format `projects/{project}`. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Key { - get { return key_; } + public string Parent { + get { return parent_; } set { - key_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + 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 keys to return. Default is 10. Max limit is + /// 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. The next_page_token value returned from a previous. + /// ListKeysRequest, if any. + /// + [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 RetrieveLegacySecretKeyRequest); + return Equals(other as ListKeysRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(RetrieveLegacySecretKeyRequest other) { + public bool Equals(ListKeysRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (Key != other.Key) return false; + if (Parent != other.Parent) return false; + if (PageSize != other.PageSize) return false; + if (PageToken != other.PageToken) return false; return Equals(_unknownFields, other._unknownFields); } @@ -8495,7 +9472,9 @@ public bool Equals(RetrieveLegacySecretKeyRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Key.Length != 0) hash ^= Key.GetHashCode(); + 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(); } @@ -8514,9 +9493,17 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Key.Length != 0) { + if (Parent.Length != 0) { output.WriteRawTag(10); - output.WriteString(Key); + 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); @@ -8528,12 +9515,20 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Key.Length != 0) { + if (Parent.Length != 0) { output.WriteRawTag(10); - output.WriteString(Key); + output.WriteString(Parent); } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); + 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 @@ -8542,8 +9537,14 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Key.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Key); + 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(); @@ -8553,12 +9554,18 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(RetrieveLegacySecretKeyRequest other) { + public void MergeFrom(ListKeysRequest other) { if (other == null) { return; } - if (other.Key.Length != 0) { - Key = other.Key; + 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); } @@ -8576,7 +9583,15 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - Key = input.ReadString(); + Parent = input.ReadString(); + break; + } + case 16: { + PageSize = input.ReadInt32(); + break; + } + case 26: { + PageToken = input.ReadString(); break; } } @@ -8595,7 +9610,15 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - Key = input.ReadString(); + Parent = input.ReadString(); + break; + } + case 16: { + PageSize = input.ReadInt32(); + break; + } + case 26: { + PageToken = input.ReadString(); break; } } @@ -8606,23 +9629,23 @@ public void MergeFrom(pb::CodedInputStream input) { } /// - /// The get key request message. + /// Response to request to list keys in a project. /// - public sealed partial class GetKeyRequest : pb::IMessage + public sealed partial class ListKeysResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetKeyRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListKeysResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + 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.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[18]; } + get { return global::Google.Cloud.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[17]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -8633,7 +9656,7 @@ public sealed partial class GetKeyRequest : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetKeyRequest() { + public ListKeysResponse() { OnConstruction(); } @@ -8641,49 +9664,65 @@ public GetKeyRequest() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetKeyRequest(GetKeyRequest other) : this() { - name_ = other.name_; + public ListKeysResponse(ListKeysResponse other) : this() { + keys_ = other.keys_.Clone(); + nextPageToken_ = other.nextPageToken_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetKeyRequest Clone() { - return new GetKeyRequest(this); + public ListKeysResponse Clone() { + return new ListKeysResponse(this); } - /// Field number for the "name" field. - public const int NameFieldNumber = 1; - private string name_ = ""; + /// Field number for the "keys" field. + public const int KeysFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_keys_codec + = pb::FieldCodec.ForMessage(10, global::Google.Cloud.RecaptchaEnterprise.V1.Key.Parser); + private readonly pbc::RepeatedField keys_ = new pbc::RepeatedField(); /// - /// Required. The name of the requested key, in the format - /// "projects/{project}/keys/{key}". + /// Key details. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } + public pbc::RepeatedField Keys { + get { return keys_; } + } + + /// Field number for the "next_page_token" field. + public const int NextPageTokenFieldNumber = 2; + private string nextPageToken_ = ""; + /// + /// Token to retrieve the next page of results. It is set to empty if no keys + /// remain in results. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NextPageToken { + get { return nextPageToken_; } set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + 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 GetKeyRequest); + return Equals(other as ListKeysResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetKeyRequest other) { + public bool Equals(ListKeysResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (Name != other.Name) return false; + if(!keys_.Equals(other.keys_)) return false; + if (NextPageToken != other.NextPageToken) return false; return Equals(_unknownFields, other._unknownFields); } @@ -8691,7 +9730,8 @@ public bool Equals(GetKeyRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Name.Length != 0) hash ^= Name.GetHashCode(); + hash ^= keys_.GetHashCode(); + if (NextPageToken.Length != 0) hash ^= NextPageToken.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -8710,9 +9750,10 @@ 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); + keys_.WriteTo(output, _repeated_keys_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -8724,9 +9765,10 @@ public void WriteTo(pb::CodedOutputStream output) { [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); + keys_.WriteTo(ref output, _repeated_keys_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -8738,8 +9780,9 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + size += keys_.CalculateSize(_repeated_keys_codec); + if (NextPageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NextPageToken); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -8749,12 +9792,13 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetKeyRequest other) { + public void MergeFrom(ListKeysResponse other) { if (other == null) { return; } - if (other.Name.Length != 0) { - Name = other.Name; + keys_.Add(other.keys_); + if (other.NextPageToken.Length != 0) { + NextPageToken = other.NextPageToken; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -8772,7 +9816,11 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - Name = input.ReadString(); + keys_.AddEntriesFrom(input, _repeated_keys_codec); + break; + } + case 18: { + NextPageToken = input.ReadString(); break; } } @@ -8791,7 +9839,11 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - Name = input.ReadString(); + keys_.AddEntriesFrom(ref input, _repeated_keys_codec); + break; + } + case 18: { + NextPageToken = input.ReadString(); break; } } @@ -8802,23 +9854,23 @@ public void MergeFrom(pb::CodedInputStream input) { } /// - /// The update key request message. + /// The retrieve legacy secret key request message. /// - public sealed partial class UpdateKeyRequest : pb::IMessage + public sealed partial class RetrieveLegacySecretKeyRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateKeyRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RetrieveLegacySecretKeyRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + 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.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[19]; } + get { return global::Google.Cloud.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[18]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -8829,7 +9881,7 @@ public sealed partial class UpdateKeyRequest : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateKeyRequest() { + public RetrieveLegacySecretKeyRequest() { OnConstruction(); } @@ -8837,66 +9889,49 @@ public UpdateKeyRequest() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateKeyRequest(UpdateKeyRequest other) : this() { - key_ = other.key_ != null ? other.key_.Clone() : null; - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; + public RetrieveLegacySecretKeyRequest(RetrieveLegacySecretKeyRequest other) : this() { + key_ = other.key_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UpdateKeyRequest Clone() { - return new UpdateKeyRequest(this); + public RetrieveLegacySecretKeyRequest Clone() { + return new RetrieveLegacySecretKeyRequest(this); } /// Field number for the "key" field. public const int KeyFieldNumber = 1; - private global::Google.Cloud.RecaptchaEnterprise.V1.Key key_; + private string key_ = ""; /// - /// Required. The key to update. + /// Required. The public key name linked to the requested secret key in the + /// format `projects/{project}/keys/{key}`. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Cloud.RecaptchaEnterprise.V1.Key Key { + public string Key { get { return key_; } set { - key_ = value; - } - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 2; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// Optional. The mask to control which fields of the key get updated. If the - /// mask is not present, all fields will be updated. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; + key_ = 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 UpdateKeyRequest); + return Equals(other as RetrieveLegacySecretKeyRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UpdateKeyRequest other) { + public bool Equals(RetrieveLegacySecretKeyRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(Key, other.Key)) return false; - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; + if (Key != other.Key) return false; return Equals(_unknownFields, other._unknownFields); } @@ -8904,8 +9939,7 @@ public bool Equals(UpdateKeyRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (key_ != null) hash ^= Key.GetHashCode(); - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); + if (Key.Length != 0) hash ^= Key.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -8924,13 +9958,9 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (key_ != null) { + if (Key.Length != 0) { output.WriteRawTag(10); - output.WriteMessage(Key); - } - if (updateMask_ != null) { - output.WriteRawTag(18); - output.WriteMessage(UpdateMask); + output.WriteString(Key); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -8942,13 +9972,9 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (key_ != null) { + if (Key.Length != 0) { output.WriteRawTag(10); - output.WriteMessage(Key); - } - if (updateMask_ != null) { - output.WriteRawTag(18); - output.WriteMessage(UpdateMask); + output.WriteString(Key); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -8960,11 +9986,8 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (key_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Key); - } - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); + if (Key.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Key); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -8974,21 +9997,12 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UpdateKeyRequest other) { + public void MergeFrom(RetrieveLegacySecretKeyRequest other) { if (other == null) { return; } - if (other.key_ != null) { - if (key_ == null) { - Key = new global::Google.Cloud.RecaptchaEnterprise.V1.Key(); - } - Key.MergeFrom(other.Key); - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); + if (other.Key.Length != 0) { + Key = other.Key; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -9006,17 +10020,7 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (key_ == null) { - Key = new global::Google.Cloud.RecaptchaEnterprise.V1.Key(); - } - input.ReadMessage(Key); - break; - } - case 18: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); + Key = input.ReadString(); break; } } @@ -9035,17 +10039,7 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - if (key_ == null) { - Key = new global::Google.Cloud.RecaptchaEnterprise.V1.Key(); - } - input.ReadMessage(Key); - break; - } - case 18: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); + Key = input.ReadString(); break; } } @@ -9056,23 +10050,23 @@ public void MergeFrom(pb::CodedInputStream input) { } /// - /// The delete key request message. + /// The get key request message. /// - public sealed partial class DeleteKeyRequest : pb::IMessage + public sealed partial class GetKeyRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteKeyRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetKeyRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + 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.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[20]; } + get { return global::Google.Cloud.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[19]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -9083,7 +10077,7 @@ public sealed partial class DeleteKeyRequest : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteKeyRequest() { + public GetKeyRequest() { OnConstruction(); } @@ -9091,23 +10085,23 @@ public DeleteKeyRequest() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteKeyRequest(DeleteKeyRequest other) : this() { + public GetKeyRequest(GetKeyRequest other) : this() { name_ = other.name_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeleteKeyRequest Clone() { - return new DeleteKeyRequest(this); + public GetKeyRequest Clone() { + return new GetKeyRequest(this); } /// Field number for the "name" field. public const int NameFieldNumber = 1; private string name_ = ""; /// - /// Required. The name of the key to be deleted, in the format - /// "projects/{project}/keys/{key}". + /// Required. The name of the requested key, in the format + /// `projects/{project}/keys/{key}`. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -9121,12 +10115,12 @@ public string Name { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as DeleteKeyRequest); + return Equals(other as GetKeyRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DeleteKeyRequest other) { + public bool Equals(GetKeyRequest other) { if (ReferenceEquals(other, null)) { return false; } @@ -9199,7 +10193,7 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DeleteKeyRequest other) { + public void MergeFrom(GetKeyRequest other) { if (other == null) { return; } @@ -9252,23 +10246,23 @@ public void MergeFrom(pb::CodedInputStream input) { } /// - /// The migrate key request message. + /// The update key request message. /// - public sealed partial class MigrateKeyRequest : pb::IMessage + public sealed partial class UpdateKeyRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MigrateKeyRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateKeyRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + 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.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[21]; } + get { return global::Google.Cloud.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[20]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -9279,7 +10273,7 @@ public sealed partial class MigrateKeyRequest : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MigrateKeyRequest() { + public UpdateKeyRequest() { OnConstruction(); } @@ -9287,73 +10281,66 @@ public MigrateKeyRequest() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MigrateKeyRequest(MigrateKeyRequest other) : this() { - name_ = other.name_; - skipBillingCheck_ = other.skipBillingCheck_; + public UpdateKeyRequest(UpdateKeyRequest other) : this() { + key_ = other.key_ != null ? other.key_.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 MigrateKeyRequest Clone() { - return new MigrateKeyRequest(this); + public UpdateKeyRequest Clone() { + return new UpdateKeyRequest(this); } - /// Field number for the "name" field. - public const int NameFieldNumber = 1; - private string name_ = ""; + /// Field number for the "key" field. + public const int KeyFieldNumber = 1; + private global::Google.Cloud.RecaptchaEnterprise.V1.Key key_; /// - /// Required. The name of the key to be migrated, in the format - /// "projects/{project}/keys/{key}". + /// Required. The key to update. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } + public global::Google.Cloud.RecaptchaEnterprise.V1.Key Key { + get { return key_; } set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + key_ = value; } } - /// Field number for the "skip_billing_check" field. - public const int SkipBillingCheckFieldNumber = 2; - private bool skipBillingCheck_; + /// Field number for the "update_mask" field. + public const int UpdateMaskFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; /// - /// Optional. If true, skips the billing check. - /// A reCAPTCHA Enterprise key or migrated key behaves differently than a - /// reCAPTCHA (non-Enterprise version) key when you reach a quota limit (see - /// https://cloud.google.com/recaptcha-enterprise/quotas#quota_limit). To avoid - /// any disruption of your usage, we check that a billing account is present. - /// If your usage of reCAPTCHA is under the free quota, you can safely skip the - /// billing check and proceed with the migration. See - /// https://cloud.google.com/recaptcha-enterprise/docs/billing-information. + /// Optional. The mask to control which fields of the key get updated. If the + /// mask is not present, all fields will be updated. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool SkipBillingCheck { - get { return skipBillingCheck_; } + public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { + get { return updateMask_; } set { - skipBillingCheck_ = value; + updateMask_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as MigrateKeyRequest); + return Equals(other as UpdateKeyRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MigrateKeyRequest other) { + public bool Equals(UpdateKeyRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (Name != other.Name) return false; - if (SkipBillingCheck != other.SkipBillingCheck) return false; + if (!object.Equals(Key, other.Key)) return false; + if (!object.Equals(UpdateMask, other.UpdateMask)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -9361,8 +10348,8 @@ public bool Equals(MigrateKeyRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (SkipBillingCheck != false) hash ^= SkipBillingCheck.GetHashCode(); + if (key_ != null) hash ^= Key.GetHashCode(); + if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -9381,13 +10368,13 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Name.Length != 0) { + if (key_ != null) { output.WriteRawTag(10); - output.WriteString(Name); + output.WriteMessage(Key); } - if (SkipBillingCheck != false) { - output.WriteRawTag(16); - output.WriteBool(SkipBillingCheck); + if (updateMask_ != null) { + output.WriteRawTag(18); + output.WriteMessage(UpdateMask); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -9399,13 +10386,13 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Name.Length != 0) { + if (key_ != null) { output.WriteRawTag(10); - output.WriteString(Name); + output.WriteMessage(Key); } - if (SkipBillingCheck != false) { - output.WriteRawTag(16); - output.WriteBool(SkipBillingCheck); + if (updateMask_ != null) { + output.WriteRawTag(18); + output.WriteMessage(UpdateMask); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -9417,11 +10404,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + if (key_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Key); } - if (SkipBillingCheck != false) { - size += 1 + 1; + if (updateMask_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -9431,15 +10418,21 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MigrateKeyRequest other) { + public void MergeFrom(UpdateKeyRequest other) { if (other == null) { return; } - if (other.Name.Length != 0) { - Name = other.Name; + if (other.key_ != null) { + if (key_ == null) { + Key = new global::Google.Cloud.RecaptchaEnterprise.V1.Key(); + } + Key.MergeFrom(other.Key); } - if (other.SkipBillingCheck != false) { - SkipBillingCheck = other.SkipBillingCheck; + 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); } @@ -9457,11 +10450,17 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - Name = input.ReadString(); + if (key_ == null) { + Key = new global::Google.Cloud.RecaptchaEnterprise.V1.Key(); + } + input.ReadMessage(Key); break; } - case 16: { - SkipBillingCheck = input.ReadBool(); + case 18: { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + input.ReadMessage(UpdateMask); break; } } @@ -9480,11 +10479,17 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - Name = input.ReadString(); + if (key_ == null) { + Key = new global::Google.Cloud.RecaptchaEnterprise.V1.Key(); + } + input.ReadMessage(Key); break; } - case 16: { - SkipBillingCheck = input.ReadBool(); + case 18: { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + input.ReadMessage(UpdateMask); break; } } @@ -9495,23 +10500,23 @@ public void MergeFrom(pb::CodedInputStream input) { } /// - /// The get metrics request message. + /// The delete key request message. /// - public sealed partial class GetMetricsRequest : pb::IMessage + public sealed partial class DeleteKeyRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetMetricsRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteKeyRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + 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.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[22]; } + get { return global::Google.Cloud.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[21]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -9522,7 +10527,7 @@ public sealed partial class GetMetricsRequest : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetMetricsRequest() { + public DeleteKeyRequest() { OnConstruction(); } @@ -9530,23 +10535,23 @@ public GetMetricsRequest() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetMetricsRequest(GetMetricsRequest other) : this() { + public DeleteKeyRequest(DeleteKeyRequest other) : this() { name_ = other.name_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetMetricsRequest Clone() { - return new GetMetricsRequest(this); + public DeleteKeyRequest Clone() { + return new DeleteKeyRequest(this); } /// Field number for the "name" field. public const int NameFieldNumber = 1; private string name_ = ""; /// - /// Required. The name of the requested metrics, in the format - /// "projects/{project}/keys/{key}/metrics". + /// Required. The name of the key to be deleted, in the format + /// `projects/{project}/keys/{key}`. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -9560,12 +10565,12 @@ public string Name { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as GetMetricsRequest); + return Equals(other as DeleteKeyRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetMetricsRequest other) { + public bool Equals(DeleteKeyRequest other) { if (ReferenceEquals(other, null)) { return false; } @@ -9638,7 +10643,7 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetMetricsRequest other) { + public void MergeFrom(DeleteKeyRequest other) { if (other == null) { return; } @@ -9691,23 +10696,23 @@ public void MergeFrom(pb::CodedInputStream input) { } /// - /// Metrics for a single Key. + /// The create firewall policy request message. /// - public sealed partial class Metrics : pb::IMessage + public sealed partial class CreateFirewallPolicyRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Metrics()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateFirewallPolicyRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + 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.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[23]; } + get { return global::Google.Cloud.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[22]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -9718,7 +10723,7 @@ public sealed partial class Metrics : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Metrics() { + public CreateFirewallPolicyRequest() { OnConstruction(); } @@ -9726,101 +10731,66 @@ public Metrics() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Metrics(Metrics other) : this() { - name_ = other.name_; - startTime_ = other.startTime_ != null ? other.startTime_.Clone() : null; - scoreMetrics_ = other.scoreMetrics_.Clone(); - challengeMetrics_ = other.challengeMetrics_.Clone(); + public CreateFirewallPolicyRequest(CreateFirewallPolicyRequest other) : this() { + parent_ = other.parent_; + firewallPolicy_ = other.firewallPolicy_ != null ? other.firewallPolicy_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Metrics Clone() { - return new Metrics(this); + public CreateFirewallPolicyRequest Clone() { + return new CreateFirewallPolicyRequest(this); } - /// Field number for the "name" field. - public const int NameFieldNumber = 4; - private string name_ = ""; + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; /// - /// Output only. The name of the metrics, in the format - /// "projects/{project}/keys/{key}/metrics". + /// Required. The name of the project this policy will apply to, in the format + /// `projects/{project}`. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } + public string Parent { + get { return parent_; } set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + parent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Field number for the "start_time" field. - public const int StartTimeFieldNumber = 1; - private global::Google.Protobuf.WellKnownTypes.Timestamp startTime_; + /// Field number for the "firewall_policy" field. + public const int FirewallPolicyFieldNumber = 2; + private global::Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy firewallPolicy_; /// - /// Inclusive start time aligned to a day (UTC). + /// Required. Information to create the policy. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp StartTime { - get { return startTime_; } + public global::Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy FirewallPolicy { + get { return firewallPolicy_; } set { - startTime_ = value; + firewallPolicy_ = value; } } - /// Field number for the "score_metrics" field. - public const int ScoreMetricsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_scoreMetrics_codec - = pb::FieldCodec.ForMessage(18, global::Google.Cloud.RecaptchaEnterprise.V1.ScoreMetrics.Parser); - private readonly pbc::RepeatedField scoreMetrics_ = new pbc::RepeatedField(); - /// - /// Metrics will be continuous and in order by dates, and in the granularity - /// of day. All Key types should have score-based data. - /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField ScoreMetrics { - get { return scoreMetrics_; } - } - - /// Field number for the "challenge_metrics" field. - public const int ChallengeMetricsFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_challengeMetrics_codec - = pb::FieldCodec.ForMessage(26, global::Google.Cloud.RecaptchaEnterprise.V1.ChallengeMetrics.Parser); - private readonly pbc::RepeatedField challengeMetrics_ = new pbc::RepeatedField(); - /// - /// Metrics will be continuous and in order by dates, and in the granularity - /// of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have - /// challenge-based data. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField ChallengeMetrics { - get { return challengeMetrics_; } + public override bool Equals(object other) { + return Equals(other as CreateFirewallPolicyRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Metrics); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Metrics other) { + public bool Equals(CreateFirewallPolicyRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (Name != other.Name) return false; - if (!object.Equals(StartTime, other.StartTime)) return false; - if(!scoreMetrics_.Equals(other.scoreMetrics_)) return false; - if(!challengeMetrics_.Equals(other.challengeMetrics_)) return false; + if (Parent != other.Parent) return false; + if (!object.Equals(FirewallPolicy, other.FirewallPolicy)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -9828,10 +10798,8 @@ public bool Equals(Metrics other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (startTime_ != null) hash ^= StartTime.GetHashCode(); - hash ^= scoreMetrics_.GetHashCode(); - hash ^= challengeMetrics_.GetHashCode(); + if (Parent.Length != 0) hash ^= Parent.GetHashCode(); + if (firewallPolicy_ != null) hash ^= FirewallPolicy.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -9850,15 +10818,13 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (startTime_ != null) { + if (Parent.Length != 0) { output.WriteRawTag(10); - output.WriteMessage(StartTime); + output.WriteString(Parent); } - scoreMetrics_.WriteTo(output, _repeated_scoreMetrics_codec); - challengeMetrics_.WriteTo(output, _repeated_challengeMetrics_codec); - if (Name.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Name); + if (firewallPolicy_ != null) { + output.WriteRawTag(18); + output.WriteMessage(FirewallPolicy); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -9870,15 +10836,13 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (startTime_ != null) { + if (Parent.Length != 0) { output.WriteRawTag(10); - output.WriteMessage(StartTime); + output.WriteString(Parent); } - scoreMetrics_.WriteTo(ref output, _repeated_scoreMetrics_codec); - challengeMetrics_.WriteTo(ref output, _repeated_challengeMetrics_codec); - if (Name.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Name); + if (firewallPolicy_ != null) { + output.WriteRawTag(18); + output.WriteMessage(FirewallPolicy); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -9890,14 +10854,12 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + if (Parent.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Parent); } - if (startTime_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(StartTime); + if (firewallPolicy_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(FirewallPolicy); } - size += scoreMetrics_.CalculateSize(_repeated_scoreMetrics_codec); - size += challengeMetrics_.CalculateSize(_repeated_challengeMetrics_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -9906,21 +10868,19 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Metrics other) { + public void MergeFrom(CreateFirewallPolicyRequest other) { if (other == null) { return; } - if (other.Name.Length != 0) { - Name = other.Name; + if (other.Parent.Length != 0) { + Parent = other.Parent; } - if (other.startTime_ != null) { - if (startTime_ == null) { - StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + if (other.firewallPolicy_ != null) { + if (firewallPolicy_ == null) { + FirewallPolicy = new global::Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy(); } - StartTime.MergeFrom(other.StartTime); + FirewallPolicy.MergeFrom(other.FirewallPolicy); } - scoreMetrics_.Add(other.scoreMetrics_); - challengeMetrics_.Add(other.challengeMetrics_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -9937,22 +10897,14 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (startTime_ == null) { - StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(StartTime); + Parent = input.ReadString(); break; } case 18: { - scoreMetrics_.AddEntriesFrom(input, _repeated_scoreMetrics_codec); - break; - } - case 26: { - challengeMetrics_.AddEntriesFrom(input, _repeated_challengeMetrics_codec); - break; - } - case 34: { - Name = input.ReadString(); + if (firewallPolicy_ == null) { + FirewallPolicy = new global::Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy(); + } + input.ReadMessage(FirewallPolicy); break; } } @@ -9971,22 +10923,14 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - if (startTime_ == null) { - StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(StartTime); + Parent = input.ReadString(); break; } case 18: { - scoreMetrics_.AddEntriesFrom(ref input, _repeated_scoreMetrics_codec); - break; - } - case 26: { - challengeMetrics_.AddEntriesFrom(ref input, _repeated_challengeMetrics_codec); - break; - } - case 34: { - Name = input.ReadString(); + if (firewallPolicy_ == null) { + FirewallPolicy = new global::Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy(); + } + input.ReadMessage(FirewallPolicy); break; } } @@ -9997,24 +10941,23 @@ public void MergeFrom(pb::CodedInputStream input) { } /// - /// Secret key is used only in legacy reCAPTCHA. It must be used in a 3rd party - /// integration with legacy reCAPTCHA. + /// The list firewall policies request message. /// - public sealed partial class RetrieveLegacySecretKeyResponse : pb::IMessage + public sealed partial class ListFirewallPoliciesRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RetrieveLegacySecretKeyResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListFirewallPoliciesRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + 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.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[24]; } + get { return global::Google.Cloud.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[23]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -10025,7 +10968,7 @@ public sealed partial class RetrieveLegacySecretKeyResponse : pb::IMessageField number for the "legacy_secret_key" field. - public const int LegacySecretKeyFieldNumber = 1; - private string legacySecretKey_ = ""; + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; /// - /// The secret key (also known as shared secret) authorizes communication - /// between your application backend and the reCAPTCHA Enterprise server to - /// create an assessment. - /// The secret key needs to be kept safe for security purposes. + /// Required. The name of the project to list the policies for, in the format + /// `projects/{project}`. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string LegacySecretKey { - get { return legacySecretKey_; } + public string Parent { + get { return parent_; } set { - legacySecretKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + 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 policies to return. Default is 10. Max + /// limit is 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. The next_page_token value returned from a previous. + /// ListFirewallPoliciesRequest, if any. + /// + [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 RetrieveLegacySecretKeyResponse); + return Equals(other as ListFirewallPoliciesRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(RetrieveLegacySecretKeyResponse other) { + public bool Equals(ListFirewallPoliciesRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (LegacySecretKey != other.LegacySecretKey) return false; + if (Parent != other.Parent) return false; + if (PageSize != other.PageSize) return false; + if (PageToken != other.PageToken) return false; return Equals(_unknownFields, other._unknownFields); } @@ -10085,7 +11062,9 @@ public bool Equals(RetrieveLegacySecretKeyResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (LegacySecretKey.Length != 0) hash ^= LegacySecretKey.GetHashCode(); + 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(); } @@ -10104,9 +11083,17 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (LegacySecretKey.Length != 0) { + if (Parent.Length != 0) { output.WriteRawTag(10); - output.WriteString(LegacySecretKey); + 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); @@ -10118,9 +11105,17 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (LegacySecretKey.Length != 0) { + if (Parent.Length != 0) { output.WriteRawTag(10); - output.WriteString(LegacySecretKey); + 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); @@ -10132,8 +11127,14 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (LegacySecretKey.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(LegacySecretKey); + 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(); @@ -10143,12 +11144,18 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(RetrieveLegacySecretKeyResponse other) { + public void MergeFrom(ListFirewallPoliciesRequest other) { if (other == null) { return; } - if (other.LegacySecretKey.Length != 0) { - LegacySecretKey = other.LegacySecretKey; + 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); } @@ -10166,7 +11173,15 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - LegacySecretKey = input.ReadString(); + Parent = input.ReadString(); + break; + } + case 16: { + PageSize = input.ReadInt32(); + break; + } + case 26: { + PageToken = input.ReadString(); break; } } @@ -10185,7 +11200,15 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - LegacySecretKey = input.ReadString(); + Parent = input.ReadString(); + break; + } + case 16: { + PageSize = input.ReadInt32(); + break; + } + case 26: { + PageToken = input.ReadString(); break; } } @@ -10196,24 +11219,23 @@ public void MergeFrom(pb::CodedInputStream input) { } /// - /// A key used to identify and configure applications (web and/or mobile) that - /// use reCAPTCHA Enterprise. + /// Response to request to list firewall policies belonging to a key. /// - public sealed partial class Key : pb::IMessage + public sealed partial class ListFirewallPoliciesResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Key()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListFirewallPoliciesResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + 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.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[25]; } + get { return global::Google.Cloud.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[24]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -10224,7 +11246,7 @@ public sealed partial class Key : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Key() { + public ListFirewallPoliciesResponse() { OnConstruction(); } @@ -10232,217 +11254,65 @@ public Key() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Key(Key other) : this() { - name_ = other.name_; - displayName_ = other.displayName_; - labels_ = other.labels_.Clone(); - createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; - testingOptions_ = other.testingOptions_ != null ? other.testingOptions_.Clone() : null; - wafSettings_ = other.wafSettings_ != null ? other.wafSettings_.Clone() : null; - switch (other.PlatformSettingsCase) { - case PlatformSettingsOneofCase.WebSettings: - WebSettings = other.WebSettings.Clone(); - break; - case PlatformSettingsOneofCase.AndroidSettings: - AndroidSettings = other.AndroidSettings.Clone(); - break; - case PlatformSettingsOneofCase.IosSettings: - IosSettings = other.IosSettings.Clone(); - break; - } - + public ListFirewallPoliciesResponse(ListFirewallPoliciesResponse other) : this() { + firewallPolicies_ = other.firewallPolicies_.Clone(); + nextPageToken_ = other.nextPageToken_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Key Clone() { - return new Key(this); - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 1; - private string name_ = ""; - /// - /// The resource name for the Key in the format - /// "projects/{project}/keys/{key}". - /// - [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_ = ""; - /// - /// Human-readable display name of this key. Modifiable by 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 "web_settings" field. - public const int WebSettingsFieldNumber = 3; - /// - /// Settings for keys that can be used by websites. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings WebSettings { - get { return platformSettingsCase_ == PlatformSettingsOneofCase.WebSettings ? (global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings) platformSettings_ : null; } - set { - platformSettings_ = value; - platformSettingsCase_ = value == null ? PlatformSettingsOneofCase.None : PlatformSettingsOneofCase.WebSettings; - } - } - - /// Field number for the "android_settings" field. - public const int AndroidSettingsFieldNumber = 4; - /// - /// Settings for keys that can be used by Android apps. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Cloud.RecaptchaEnterprise.V1.AndroidKeySettings AndroidSettings { - get { return platformSettingsCase_ == PlatformSettingsOneofCase.AndroidSettings ? (global::Google.Cloud.RecaptchaEnterprise.V1.AndroidKeySettings) platformSettings_ : null; } - set { - platformSettings_ = value; - platformSettingsCase_ = value == null ? PlatformSettingsOneofCase.None : PlatformSettingsOneofCase.AndroidSettings; - } - } - - /// Field number for the "ios_settings" field. - public const int IosSettingsFieldNumber = 5; - /// - /// Settings for keys that can be used by iOS apps. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Cloud.RecaptchaEnterprise.V1.IOSKeySettings IosSettings { - get { return platformSettingsCase_ == PlatformSettingsOneofCase.IosSettings ? (global::Google.Cloud.RecaptchaEnterprise.V1.IOSKeySettings) platformSettings_ : null; } - set { - platformSettings_ = value; - platformSettingsCase_ = value == null ? PlatformSettingsOneofCase.None : PlatformSettingsOneofCase.IosSettings; - } - } - - /// Field number for the "labels" field. - public const int LabelsFieldNumber = 6; - private static readonly pbc::MapField.Codec _map_labels_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 50); - private readonly pbc::MapField labels_ = new pbc::MapField(); - /// - /// See <a href="https://cloud.google.com/recaptcha-enterprise/docs/labels"> - /// Creating and managing labels</a>. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::MapField Labels { - get { return labels_; } - } - - /// Field number for the "create_time" field. - public const int CreateTimeFieldNumber = 7; - private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; - /// - /// Output only. The timestamp corresponding to the creation of this Key. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime { - get { return createTime_; } - set { - createTime_ = value; - } + public ListFirewallPoliciesResponse Clone() { + return new ListFirewallPoliciesResponse(this); } - /// Field number for the "testing_options" field. - public const int TestingOptionsFieldNumber = 9; - private global::Google.Cloud.RecaptchaEnterprise.V1.TestingOptions testingOptions_; + /// Field number for the "firewall_policies" field. + public const int FirewallPoliciesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_firewallPolicies_codec + = pb::FieldCodec.ForMessage(10, global::Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy.Parser); + private readonly pbc::RepeatedField firewallPolicies_ = new pbc::RepeatedField(); /// - /// Options for user acceptance testing. + /// Policy details. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Cloud.RecaptchaEnterprise.V1.TestingOptions TestingOptions { - get { return testingOptions_; } - set { - testingOptions_ = value; - } + public pbc::RepeatedField FirewallPolicies { + get { return firewallPolicies_; } } - /// Field number for the "waf_settings" field. - public const int WafSettingsFieldNumber = 10; - private global::Google.Cloud.RecaptchaEnterprise.V1.WafSettings wafSettings_; + /// Field number for the "next_page_token" field. + public const int NextPageTokenFieldNumber = 2; + private string nextPageToken_ = ""; /// - /// Settings for WAF + /// Token to retrieve the next page of results. It is set to empty if no + /// policies remain in results. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Cloud.RecaptchaEnterprise.V1.WafSettings WafSettings { - get { return wafSettings_; } + public string NextPageToken { + get { return nextPageToken_; } set { - wafSettings_ = value; + nextPageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - private object platformSettings_; - /// Enum of possible cases for the "platform_settings" oneof. - public enum PlatformSettingsOneofCase { - None = 0, - WebSettings = 3, - AndroidSettings = 4, - IosSettings = 5, - } - private PlatformSettingsOneofCase platformSettingsCase_ = PlatformSettingsOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PlatformSettingsOneofCase PlatformSettingsCase { - get { return platformSettingsCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPlatformSettings() { - platformSettingsCase_ = PlatformSettingsOneofCase.None; - platformSettings_ = null; - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as Key); + return Equals(other as ListFirewallPoliciesResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Key other) { + public bool Equals(ListFirewallPoliciesResponse 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 (!object.Equals(WebSettings, other.WebSettings)) return false; - if (!object.Equals(AndroidSettings, other.AndroidSettings)) return false; - if (!object.Equals(IosSettings, other.IosSettings)) return false; - if (!Labels.Equals(other.Labels)) return false; - if (!object.Equals(CreateTime, other.CreateTime)) return false; - if (!object.Equals(TestingOptions, other.TestingOptions)) return false; - if (!object.Equals(WafSettings, other.WafSettings)) return false; - if (PlatformSettingsCase != other.PlatformSettingsCase) return false; + if(!firewallPolicies_.Equals(other.firewallPolicies_)) return false; + if (NextPageToken != other.NextPageToken) return false; return Equals(_unknownFields, other._unknownFields); } @@ -10450,16 +11320,8 @@ public bool Equals(Key other) { [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 (platformSettingsCase_ == PlatformSettingsOneofCase.WebSettings) hash ^= WebSettings.GetHashCode(); - if (platformSettingsCase_ == PlatformSettingsOneofCase.AndroidSettings) hash ^= AndroidSettings.GetHashCode(); - if (platformSettingsCase_ == PlatformSettingsOneofCase.IosSettings) hash ^= IosSettings.GetHashCode(); - hash ^= Labels.GetHashCode(); - if (createTime_ != null) hash ^= CreateTime.GetHashCode(); - if (testingOptions_ != null) hash ^= TestingOptions.GetHashCode(); - if (wafSettings_ != null) hash ^= WafSettings.GetHashCode(); - hash ^= (int) platformSettingsCase_; + hash ^= firewallPolicies_.GetHashCode(); + if (NextPageToken.Length != 0) hash ^= NextPageToken.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -10478,38 +11340,10 @@ 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) { + firewallPolicies_.WriteTo(output, _repeated_firewallPolicies_codec); + if (NextPageToken.Length != 0) { output.WriteRawTag(18); - output.WriteString(DisplayName); - } - if (platformSettingsCase_ == PlatformSettingsOneofCase.WebSettings) { - output.WriteRawTag(26); - output.WriteMessage(WebSettings); - } - if (platformSettingsCase_ == PlatformSettingsOneofCase.AndroidSettings) { - output.WriteRawTag(34); - output.WriteMessage(AndroidSettings); - } - if (platformSettingsCase_ == PlatformSettingsOneofCase.IosSettings) { - output.WriteRawTag(42); - output.WriteMessage(IosSettings); - } - labels_.WriteTo(output, _map_labels_codec); - if (createTime_ != null) { - output.WriteRawTag(58); - output.WriteMessage(CreateTime); - } - if (testingOptions_ != null) { - output.WriteRawTag(74); - output.WriteMessage(TestingOptions); - } - if (wafSettings_ != null) { - output.WriteRawTag(82); - output.WriteMessage(WafSettings); + output.WriteString(NextPageToken); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -10521,38 +11355,10 @@ public void WriteTo(pb::CodedOutputStream output) { [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) { + firewallPolicies_.WriteTo(ref output, _repeated_firewallPolicies_codec); + if (NextPageToken.Length != 0) { output.WriteRawTag(18); - output.WriteString(DisplayName); - } - if (platformSettingsCase_ == PlatformSettingsOneofCase.WebSettings) { - output.WriteRawTag(26); - output.WriteMessage(WebSettings); - } - if (platformSettingsCase_ == PlatformSettingsOneofCase.AndroidSettings) { - output.WriteRawTag(34); - output.WriteMessage(AndroidSettings); - } - if (platformSettingsCase_ == PlatformSettingsOneofCase.IosSettings) { - output.WriteRawTag(42); - output.WriteMessage(IosSettings); - } - labels_.WriteTo(ref output, _map_labels_codec); - if (createTime_ != null) { - output.WriteRawTag(58); - output.WriteMessage(CreateTime); - } - if (testingOptions_ != null) { - output.WriteRawTag(74); - output.WriteMessage(TestingOptions); - } - if (wafSettings_ != null) { - output.WriteRawTag(82); - output.WriteMessage(WafSettings); + output.WriteString(NextPageToken); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -10564,89 +11370,26 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + size += firewallPolicies_.CalculateSize(_repeated_firewallPolicies_codec); + if (NextPageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NextPageToken); } - if (DisplayName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); } - if (platformSettingsCase_ == PlatformSettingsOneofCase.WebSettings) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(WebSettings); + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListFirewallPoliciesResponse other) { + if (other == null) { + return; } - if (platformSettingsCase_ == PlatformSettingsOneofCase.AndroidSettings) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AndroidSettings); - } - if (platformSettingsCase_ == PlatformSettingsOneofCase.IosSettings) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(IosSettings); - } - size += labels_.CalculateSize(_map_labels_codec); - if (createTime_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); - } - if (testingOptions_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TestingOptions); - } - if (wafSettings_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(WafSettings); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Key other) { - if (other == null) { - return; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.DisplayName.Length != 0) { - DisplayName = other.DisplayName; - } - labels_.MergeFrom(other.labels_); - if (other.createTime_ != null) { - if (createTime_ == null) { - CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - CreateTime.MergeFrom(other.CreateTime); - } - if (other.testingOptions_ != null) { - if (testingOptions_ == null) { - TestingOptions = new global::Google.Cloud.RecaptchaEnterprise.V1.TestingOptions(); - } - TestingOptions.MergeFrom(other.TestingOptions); - } - if (other.wafSettings_ != null) { - if (wafSettings_ == null) { - WafSettings = new global::Google.Cloud.RecaptchaEnterprise.V1.WafSettings(); - } - WafSettings.MergeFrom(other.WafSettings); - } - switch (other.PlatformSettingsCase) { - case PlatformSettingsOneofCase.WebSettings: - if (WebSettings == null) { - WebSettings = new global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings(); - } - WebSettings.MergeFrom(other.WebSettings); - break; - case PlatformSettingsOneofCase.AndroidSettings: - if (AndroidSettings == null) { - AndroidSettings = new global::Google.Cloud.RecaptchaEnterprise.V1.AndroidKeySettings(); - } - AndroidSettings.MergeFrom(other.AndroidSettings); - break; - case PlatformSettingsOneofCase.IosSettings: - if (IosSettings == null) { - IosSettings = new global::Google.Cloud.RecaptchaEnterprise.V1.IOSKeySettings(); - } - IosSettings.MergeFrom(other.IosSettings); - break; + firewallPolicies_.Add(other.firewallPolicies_); + if (other.NextPageToken.Length != 0) { + NextPageToken = other.NextPageToken; } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -10663,63 +11406,11 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - Name = input.ReadString(); + firewallPolicies_.AddEntriesFrom(input, _repeated_firewallPolicies_codec); break; } case 18: { - DisplayName = input.ReadString(); - break; - } - case 26: { - global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings subBuilder = new global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings(); - if (platformSettingsCase_ == PlatformSettingsOneofCase.WebSettings) { - subBuilder.MergeFrom(WebSettings); - } - input.ReadMessage(subBuilder); - WebSettings = subBuilder; - break; - } - case 34: { - global::Google.Cloud.RecaptchaEnterprise.V1.AndroidKeySettings subBuilder = new global::Google.Cloud.RecaptchaEnterprise.V1.AndroidKeySettings(); - if (platformSettingsCase_ == PlatformSettingsOneofCase.AndroidSettings) { - subBuilder.MergeFrom(AndroidSettings); - } - input.ReadMessage(subBuilder); - AndroidSettings = subBuilder; - break; - } - case 42: { - global::Google.Cloud.RecaptchaEnterprise.V1.IOSKeySettings subBuilder = new global::Google.Cloud.RecaptchaEnterprise.V1.IOSKeySettings(); - if (platformSettingsCase_ == PlatformSettingsOneofCase.IosSettings) { - subBuilder.MergeFrom(IosSettings); - } - input.ReadMessage(subBuilder); - IosSettings = subBuilder; - break; - } - case 50: { - labels_.AddEntriesFrom(input, _map_labels_codec); - break; - } - case 58: { - if (createTime_ == null) { - CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CreateTime); - break; - } - case 74: { - if (testingOptions_ == null) { - TestingOptions = new global::Google.Cloud.RecaptchaEnterprise.V1.TestingOptions(); - } - input.ReadMessage(TestingOptions); - break; - } - case 82: { - if (wafSettings_ == null) { - WafSettings = new global::Google.Cloud.RecaptchaEnterprise.V1.WafSettings(); - } - input.ReadMessage(WafSettings); + NextPageToken = input.ReadString(); break; } } @@ -10738,63 +11429,11 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - Name = input.ReadString(); + firewallPolicies_.AddEntriesFrom(ref input, _repeated_firewallPolicies_codec); break; } case 18: { - DisplayName = input.ReadString(); - break; - } - case 26: { - global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings subBuilder = new global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings(); - if (platformSettingsCase_ == PlatformSettingsOneofCase.WebSettings) { - subBuilder.MergeFrom(WebSettings); - } - input.ReadMessage(subBuilder); - WebSettings = subBuilder; - break; - } - case 34: { - global::Google.Cloud.RecaptchaEnterprise.V1.AndroidKeySettings subBuilder = new global::Google.Cloud.RecaptchaEnterprise.V1.AndroidKeySettings(); - if (platformSettingsCase_ == PlatformSettingsOneofCase.AndroidSettings) { - subBuilder.MergeFrom(AndroidSettings); - } - input.ReadMessage(subBuilder); - AndroidSettings = subBuilder; - break; - } - case 42: { - global::Google.Cloud.RecaptchaEnterprise.V1.IOSKeySettings subBuilder = new global::Google.Cloud.RecaptchaEnterprise.V1.IOSKeySettings(); - if (platformSettingsCase_ == PlatformSettingsOneofCase.IosSettings) { - subBuilder.MergeFrom(IosSettings); - } - input.ReadMessage(subBuilder); - IosSettings = subBuilder; - break; - } - case 50: { - labels_.AddEntriesFrom(ref input, _map_labels_codec); - break; - } - case 58: { - if (createTime_ == null) { - CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CreateTime); - break; - } - case 74: { - if (testingOptions_ == null) { - TestingOptions = new global::Google.Cloud.RecaptchaEnterprise.V1.TestingOptions(); - } - input.ReadMessage(TestingOptions); - break; - } - case 82: { - if (wafSettings_ == null) { - WafSettings = new global::Google.Cloud.RecaptchaEnterprise.V1.WafSettings(); - } - input.ReadMessage(WafSettings); + NextPageToken = input.ReadString(); break; } } @@ -10805,23 +11444,23 @@ public void MergeFrom(pb::CodedInputStream input) { } /// - /// Options for user acceptance testing. + /// The get firewall policy request message. /// - public sealed partial class TestingOptions : pb::IMessage + public sealed partial class GetFirewallPolicyRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestingOptions()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetFirewallPolicyRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + 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.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[26]; } + get { return global::Google.Cloud.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[25]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -10832,7 +11471,7 @@ public sealed partial class TestingOptions : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TestingOptions() { + public GetFirewallPolicyRequest() { OnConstruction(); } @@ -10840,68 +11479,49 @@ public TestingOptions() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TestingOptions(TestingOptions other) : this() { - testingScore_ = other.testingScore_; - testingChallenge_ = other.testingChallenge_; + public GetFirewallPolicyRequest(GetFirewallPolicyRequest other) : this() { + name_ = other.name_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TestingOptions Clone() { - return new TestingOptions(this); - } - - /// Field number for the "testing_score" field. - public const int TestingScoreFieldNumber = 1; - private float testingScore_; - /// - /// All assessments for this Key will return this score. Must be between 0 - /// (likely not legitimate) and 1 (likely legitimate) inclusive. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float TestingScore { - get { return testingScore_; } - set { - testingScore_ = value; - } + public GetFirewallPolicyRequest Clone() { + return new GetFirewallPolicyRequest(this); } - /// Field number for the "testing_challenge" field. - public const int TestingChallengeFieldNumber = 2; - private global::Google.Cloud.RecaptchaEnterprise.V1.TestingOptions.Types.TestingChallenge testingChallenge_ = global::Google.Cloud.RecaptchaEnterprise.V1.TestingOptions.Types.TestingChallenge.Unspecified; + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; /// - /// For challenge-based keys only (CHECKBOX, INVISIBLE), all challenge requests - /// for this site will return nocaptcha if NOCAPTCHA, or an unsolvable - /// challenge if CHALLENGE. + /// Required. The name of the requested policy, in the format + /// `projects/{project}/firewallpolicies/{firewallpolicy}`. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Cloud.RecaptchaEnterprise.V1.TestingOptions.Types.TestingChallenge TestingChallenge { - get { return testingChallenge_; } + public string Name { + get { return name_; } set { - testingChallenge_ = value; + 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 TestingOptions); + return Equals(other as GetFirewallPolicyRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TestingOptions other) { + public bool Equals(GetFirewallPolicyRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(TestingScore, other.TestingScore)) return false; - if (TestingChallenge != other.TestingChallenge) return false; + if (Name != other.Name) return false; return Equals(_unknownFields, other._unknownFields); } @@ -10909,8 +11529,7 @@ public bool Equals(TestingOptions other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (TestingScore != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(TestingScore); - if (TestingChallenge != global::Google.Cloud.RecaptchaEnterprise.V1.TestingOptions.Types.TestingChallenge.Unspecified) hash ^= TestingChallenge.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -10929,13 +11548,9 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (TestingScore != 0F) { - output.WriteRawTag(13); - output.WriteFloat(TestingScore); - } - if (TestingChallenge != global::Google.Cloud.RecaptchaEnterprise.V1.TestingOptions.Types.TestingChallenge.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) TestingChallenge); + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -10947,13 +11562,9 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (TestingScore != 0F) { - output.WriteRawTag(13); - output.WriteFloat(TestingScore); - } - if (TestingChallenge != global::Google.Cloud.RecaptchaEnterprise.V1.TestingOptions.Types.TestingChallenge.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) TestingChallenge); + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -10965,11 +11576,8 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (TestingScore != 0F) { - size += 1 + 4; - } - if (TestingChallenge != global::Google.Cloud.RecaptchaEnterprise.V1.TestingOptions.Types.TestingChallenge.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) TestingChallenge); + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -10979,15 +11587,12 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TestingOptions other) { + public void MergeFrom(GetFirewallPolicyRequest other) { if (other == null) { return; } - if (other.TestingScore != 0F) { - TestingScore = other.TestingScore; - } - if (other.TestingChallenge != global::Google.Cloud.RecaptchaEnterprise.V1.TestingOptions.Types.TestingChallenge.Unspecified) { - TestingChallenge = other.TestingChallenge; + if (other.Name.Length != 0) { + Name = other.Name; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -11004,12 +11609,8 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 13: { - TestingScore = input.ReadFloat(); - break; - } - case 16: { - TestingChallenge = (global::Google.Cloud.RecaptchaEnterprise.V1.TestingOptions.Types.TestingChallenge) input.ReadEnum(); + case 10: { + Name = input.ReadString(); break; } } @@ -11027,12 +11628,8 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 13: { - TestingScore = input.ReadFloat(); - break; - } - case 16: { - TestingChallenge = (global::Google.Cloud.RecaptchaEnterprise.V1.TestingOptions.Types.TestingChallenge) input.ReadEnum(); + case 10: { + Name = input.ReadString(); break; } } @@ -11040,56 +11637,26 @@ public void MergeFrom(pb::CodedInputStream input) { } #endif - #region Nested types - /// Container for nested types declared in the TestingOptions message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum that represents the challenge option for challenge-based (CHECKBOX, - /// INVISIBLE) testing keys. - /// - public enum TestingChallenge { - /// - /// Perform the normal risk analysis and return either nocaptcha or a - /// challenge depending on risk and trust factors. - /// - [pbr::OriginalName("TESTING_CHALLENGE_UNSPECIFIED")] Unspecified = 0, - /// - /// Challenge requests for this key always return a nocaptcha, which - /// does not require a solution. - /// - [pbr::OriginalName("NOCAPTCHA")] Nocaptcha = 1, - /// - /// Challenge requests for this key always return an unsolvable - /// challenge. - /// - [pbr::OriginalName("UNSOLVABLE_CHALLENGE")] UnsolvableChallenge = 2, - } - - } - #endregion - } /// - /// Settings specific to keys that can be used by websites. + /// The update firewall policy request message. /// - public sealed partial class WebKeySettings : pb::IMessage + public sealed partial class UpdateFirewallPolicyRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new WebKeySettings()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateFirewallPolicyRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + 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.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[27]; } + get { return global::Google.Cloud.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[26]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -11100,7 +11667,7 @@ public sealed partial class WebKeySettings : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public WebKeySettings() { + public UpdateFirewallPolicyRequest() { OnConstruction(); } @@ -11108,121 +11675,66 @@ public WebKeySettings() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public WebKeySettings(WebKeySettings other) : this() { - allowAllDomains_ = other.allowAllDomains_; - allowedDomains_ = other.allowedDomains_.Clone(); - allowAmpTraffic_ = other.allowAmpTraffic_; - integrationType_ = other.integrationType_; - challengeSecurityPreference_ = other.challengeSecurityPreference_; + public UpdateFirewallPolicyRequest(UpdateFirewallPolicyRequest other) : this() { + firewallPolicy_ = other.firewallPolicy_ != null ? other.firewallPolicy_.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 WebKeySettings Clone() { - return new WebKeySettings(this); - } - - /// Field number for the "allow_all_domains" field. - public const int AllowAllDomainsFieldNumber = 3; - private bool allowAllDomains_; - /// - /// If set to true, it means allowed_domains will not be enforced. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool AllowAllDomains { - get { return allowAllDomains_; } - set { - allowAllDomains_ = value; - } - } - - /// Field number for the "allowed_domains" field. - public const int AllowedDomainsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_allowedDomains_codec - = pb::FieldCodec.ForString(10); - private readonly pbc::RepeatedField allowedDomains_ = new pbc::RepeatedField(); - /// - /// Domains or subdomains of websites allowed to use the key. All subdomains - /// of an allowed domain are automatically allowed. A valid domain requires a - /// host and must not include any path, port, query or fragment. - /// Examples: 'example.com' or 'subdomain.example.com' - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField AllowedDomains { - get { return allowedDomains_; } - } - - /// Field number for the "allow_amp_traffic" field. - public const int AllowAmpTrafficFieldNumber = 2; - private bool allowAmpTraffic_; - /// - /// If set to true, the key can be used on AMP (Accelerated Mobile Pages) - /// websites. This is supported only for the SCORE integration type. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool AllowAmpTraffic { - get { return allowAmpTraffic_; } - set { - allowAmpTraffic_ = value; - } + public UpdateFirewallPolicyRequest Clone() { + return new UpdateFirewallPolicyRequest(this); } - /// Field number for the "integration_type" field. - public const int IntegrationTypeFieldNumber = 4; - private global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings.Types.IntegrationType integrationType_ = global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings.Types.IntegrationType.Unspecified; + /// Field number for the "firewall_policy" field. + public const int FirewallPolicyFieldNumber = 1; + private global::Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy firewallPolicy_; /// - /// Required. Describes how this key is integrated with the website. + /// Required. The policy to update. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings.Types.IntegrationType IntegrationType { - get { return integrationType_; } + public global::Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy FirewallPolicy { + get { return firewallPolicy_; } set { - integrationType_ = value; + firewallPolicy_ = value; } } - /// Field number for the "challenge_security_preference" field. - public const int ChallengeSecurityPreferenceFieldNumber = 5; - private global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings.Types.ChallengeSecurityPreference challengeSecurityPreference_ = global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings.Types.ChallengeSecurityPreference.Unspecified; + /// Field number for the "update_mask" field. + public const int UpdateMaskFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; /// - /// Settings for the frequency and difficulty at which this key triggers - /// captcha challenges. This should only be specified for IntegrationTypes - /// CHECKBOX and INVISIBLE. + /// Optional. The mask to control which fields of the policy get updated. If + /// the mask is not present, all fields will be updated. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings.Types.ChallengeSecurityPreference ChallengeSecurityPreference { - get { return challengeSecurityPreference_; } + public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { + get { return updateMask_; } set { - challengeSecurityPreference_ = value; + updateMask_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as WebKeySettings); + return Equals(other as UpdateFirewallPolicyRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(WebKeySettings other) { + public bool Equals(UpdateFirewallPolicyRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (AllowAllDomains != other.AllowAllDomains) return false; - if(!allowedDomains_.Equals(other.allowedDomains_)) return false; - if (AllowAmpTraffic != other.AllowAmpTraffic) return false; - if (IntegrationType != other.IntegrationType) return false; - if (ChallengeSecurityPreference != other.ChallengeSecurityPreference) return false; + if (!object.Equals(FirewallPolicy, other.FirewallPolicy)) return false; + if (!object.Equals(UpdateMask, other.UpdateMask)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -11230,11 +11742,8 @@ public bool Equals(WebKeySettings other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (AllowAllDomains != false) hash ^= AllowAllDomains.GetHashCode(); - hash ^= allowedDomains_.GetHashCode(); - if (AllowAmpTraffic != false) hash ^= AllowAmpTraffic.GetHashCode(); - if (IntegrationType != global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings.Types.IntegrationType.Unspecified) hash ^= IntegrationType.GetHashCode(); - if (ChallengeSecurityPreference != global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings.Types.ChallengeSecurityPreference.Unspecified) hash ^= ChallengeSecurityPreference.GetHashCode(); + if (firewallPolicy_ != null) hash ^= FirewallPolicy.GetHashCode(); + if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -11253,22 +11762,13 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - allowedDomains_.WriteTo(output, _repeated_allowedDomains_codec); - if (AllowAmpTraffic != false) { - output.WriteRawTag(16); - output.WriteBool(AllowAmpTraffic); - } - if (AllowAllDomains != false) { - output.WriteRawTag(24); - output.WriteBool(AllowAllDomains); - } - if (IntegrationType != global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings.Types.IntegrationType.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) IntegrationType); + if (firewallPolicy_ != null) { + output.WriteRawTag(10); + output.WriteMessage(FirewallPolicy); } - if (ChallengeSecurityPreference != global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings.Types.ChallengeSecurityPreference.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ChallengeSecurityPreference); + if (updateMask_ != null) { + output.WriteRawTag(18); + output.WriteMessage(UpdateMask); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -11280,22 +11780,13 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - allowedDomains_.WriteTo(ref output, _repeated_allowedDomains_codec); - if (AllowAmpTraffic != false) { - output.WriteRawTag(16); - output.WriteBool(AllowAmpTraffic); - } - if (AllowAllDomains != false) { - output.WriteRawTag(24); - output.WriteBool(AllowAllDomains); - } - if (IntegrationType != global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings.Types.IntegrationType.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) IntegrationType); + if (firewallPolicy_ != null) { + output.WriteRawTag(10); + output.WriteMessage(FirewallPolicy); } - if (ChallengeSecurityPreference != global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings.Types.ChallengeSecurityPreference.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ChallengeSecurityPreference); + if (updateMask_ != null) { + output.WriteRawTag(18); + output.WriteMessage(UpdateMask); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -11307,18 +11798,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (AllowAllDomains != false) { - size += 1 + 1; - } - size += allowedDomains_.CalculateSize(_repeated_allowedDomains_codec); - if (AllowAmpTraffic != false) { - size += 1 + 1; - } - if (IntegrationType != global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings.Types.IntegrationType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) IntegrationType); + if (firewallPolicy_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(FirewallPolicy); } - if (ChallengeSecurityPreference != global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings.Types.ChallengeSecurityPreference.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ChallengeSecurityPreference); + if (updateMask_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -11328,22 +11812,21 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(WebKeySettings other) { + public void MergeFrom(UpdateFirewallPolicyRequest other) { if (other == null) { return; } - if (other.AllowAllDomains != false) { - AllowAllDomains = other.AllowAllDomains; - } - allowedDomains_.Add(other.allowedDomains_); - if (other.AllowAmpTraffic != false) { - AllowAmpTraffic = other.AllowAmpTraffic; - } - if (other.IntegrationType != global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings.Types.IntegrationType.Unspecified) { - IntegrationType = other.IntegrationType; + if (other.firewallPolicy_ != null) { + if (firewallPolicy_ == null) { + FirewallPolicy = new global::Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy(); + } + FirewallPolicy.MergeFrom(other.FirewallPolicy); } - if (other.ChallengeSecurityPreference != global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings.Types.ChallengeSecurityPreference.Unspecified) { - ChallengeSecurityPreference = other.ChallengeSecurityPreference; + 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); } @@ -11361,23 +11844,17 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - allowedDomains_.AddEntriesFrom(input, _repeated_allowedDomains_codec); - break; - } - case 16: { - AllowAmpTraffic = input.ReadBool(); - break; - } - case 24: { - AllowAllDomains = input.ReadBool(); - break; - } - case 32: { - IntegrationType = (global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings.Types.IntegrationType) input.ReadEnum(); + if (firewallPolicy_ == null) { + FirewallPolicy = new global::Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy(); + } + input.ReadMessage(FirewallPolicy); break; } - case 40: { - ChallengeSecurityPreference = (global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings.Types.ChallengeSecurityPreference) input.ReadEnum(); + case 18: { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + input.ReadMessage(UpdateMask); break; } } @@ -11396,23 +11873,17 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - allowedDomains_.AddEntriesFrom(ref input, _repeated_allowedDomains_codec); + if (firewallPolicy_ == null) { + FirewallPolicy = new global::Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy(); + } + input.ReadMessage(FirewallPolicy); break; } - case 16: { - AllowAmpTraffic = input.ReadBool(); - break; - } - case 24: { - AllowAllDomains = input.ReadBool(); - break; - } - case 32: { - IntegrationType = (global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings.Types.IntegrationType) input.ReadEnum(); - break; - } - case 40: { - ChallengeSecurityPreference = (global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings.Types.ChallengeSecurityPreference) input.ReadEnum(); + case 18: { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + input.ReadMessage(UpdateMask); break; } } @@ -11420,84 +11891,26 @@ public void MergeFrom(pb::CodedInputStream input) { } #endif - #region Nested types - /// Container for nested types declared in the WebKeySettings message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum that represents the integration types for web keys. - /// - public enum IntegrationType { - /// - /// Default type that indicates this enum hasn't been specified. This is not - /// a valid IntegrationType, one of the other types must be specified - /// instead. - /// - [pbr::OriginalName("INTEGRATION_TYPE_UNSPECIFIED")] Unspecified = 0, - /// - /// Only used to produce scores. It doesn't display the "I'm not a robot" - /// checkbox and never shows captcha challenges. - /// - [pbr::OriginalName("SCORE")] Score = 1, - /// - /// Displays the "I'm not a robot" checkbox and may show captcha challenges - /// after it is checked. - /// - [pbr::OriginalName("CHECKBOX")] Checkbox = 2, - /// - /// Doesn't display the "I'm not a robot" checkbox, but may show captcha - /// challenges after risk analysis. - /// - [pbr::OriginalName("INVISIBLE")] Invisible = 3, - } - - /// - /// Enum that represents the possible challenge frequency and difficulty - /// configurations for a web key. - /// - public enum ChallengeSecurityPreference { - /// - /// Default type that indicates this enum hasn't been specified. - /// - [pbr::OriginalName("CHALLENGE_SECURITY_PREFERENCE_UNSPECIFIED")] Unspecified = 0, - /// - /// Key tends to show fewer and easier challenges. - /// - [pbr::OriginalName("USABILITY")] Usability = 1, - /// - /// Key tends to show balanced (in amount and difficulty) challenges. - /// - [pbr::OriginalName("BALANCE")] Balance = 2, - /// - /// Key tends to show more and harder challenges. - /// - [pbr::OriginalName("SECURITY")] Security = 3, - } - - } - #endregion - } /// - /// Settings specific to keys that can be used by Android apps. + /// The delete firewall policy request message. /// - public sealed partial class AndroidKeySettings : pb::IMessage + public sealed partial class DeleteFirewallPolicyRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AndroidKeySettings()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteFirewallPolicyRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + 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.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[28]; } + get { return global::Google.Cloud.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[27]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -11508,7 +11921,7 @@ public sealed partial class AndroidKeySettings : pb::IMessageField number for the "allow_all_package_names" field. - public const int AllowAllPackageNamesFieldNumber = 2; - private bool allowAllPackageNames_; + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; /// - /// If set to true, allowed_package_names are not enforced. + /// Required. The name of the policy to be deleted, in the format + /// `projects/{project}/firewallpolicies/{firewallpolicy}`. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool AllowAllPackageNames { - get { return allowAllPackageNames_; } + public string Name { + get { return name_; } set { - allowAllPackageNames_ = value; + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Field number for the "allowed_package_names" field. - public const int AllowedPackageNamesFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_allowedPackageNames_codec - = pb::FieldCodec.ForString(10); - private readonly pbc::RepeatedField allowedPackageNames_ = new pbc::RepeatedField(); - /// - /// Android package names of apps allowed to use the key. - /// Example: 'com.companyname.appname' - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField AllowedPackageNames { - get { return allowedPackageNames_; } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as AndroidKeySettings); + return Equals(other as DeleteFirewallPolicyRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AndroidKeySettings other) { + public bool Equals(DeleteFirewallPolicyRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (AllowAllPackageNames != other.AllowAllPackageNames) return false; - if(!allowedPackageNames_.Equals(other.allowedPackageNames_)) return false; + if (Name != other.Name) return false; return Equals(_unknownFields, other._unknownFields); } @@ -11582,8 +11979,7 @@ public bool Equals(AndroidKeySettings other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (AllowAllPackageNames != false) hash ^= AllowAllPackageNames.GetHashCode(); - hash ^= allowedPackageNames_.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -11602,10 +11998,9 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - allowedPackageNames_.WriteTo(output, _repeated_allowedPackageNames_codec); - if (AllowAllPackageNames != false) { - output.WriteRawTag(16); - output.WriteBool(AllowAllPackageNames); + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -11617,10 +12012,9 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - allowedPackageNames_.WriteTo(ref output, _repeated_allowedPackageNames_codec); - if (AllowAllPackageNames != false) { - output.WriteRawTag(16); - output.WriteBool(AllowAllPackageNames); + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -11632,10 +12026,9 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (AllowAllPackageNames != false) { - size += 1 + 1; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); } - size += allowedPackageNames_.CalculateSize(_repeated_allowedPackageNames_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -11644,14 +12037,13 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AndroidKeySettings other) { + public void MergeFrom(DeleteFirewallPolicyRequest other) { if (other == null) { return; } - if (other.AllowAllPackageNames != false) { - AllowAllPackageNames = other.AllowAllPackageNames; + if (other.Name.Length != 0) { + Name = other.Name; } - allowedPackageNames_.Add(other.allowedPackageNames_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -11668,11 +12060,7 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - allowedPackageNames_.AddEntriesFrom(input, _repeated_allowedPackageNames_codec); - break; - } - case 16: { - AllowAllPackageNames = input.ReadBool(); + Name = input.ReadString(); break; } } @@ -11691,11 +12079,7 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - allowedPackageNames_.AddEntriesFrom(ref input, _repeated_allowedPackageNames_codec); - break; - } - case 16: { - AllowAllPackageNames = input.ReadBool(); + Name = input.ReadString(); break; } } @@ -11706,23 +12090,23 @@ public void MergeFrom(pb::CodedInputStream input) { } /// - /// Settings specific to keys that can be used by iOS apps. + /// The migrate key request message. /// - public sealed partial class IOSKeySettings : pb::IMessage + public sealed partial class MigrateKeyRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new IOSKeySettings()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MigrateKeyRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + 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.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[29]; } + get { return global::Google.Cloud.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[28]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -11733,7 +12117,7 @@ public sealed partial class IOSKeySettings : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public IOSKeySettings() { + public MigrateKeyRequest() { OnConstruction(); } @@ -11741,65 +12125,73 @@ public IOSKeySettings() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public IOSKeySettings(IOSKeySettings other) : this() { - allowAllBundleIds_ = other.allowAllBundleIds_; - allowedBundleIds_ = other.allowedBundleIds_.Clone(); + public MigrateKeyRequest(MigrateKeyRequest other) : this() { + name_ = other.name_; + skipBillingCheck_ = other.skipBillingCheck_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public IOSKeySettings Clone() { - return new IOSKeySettings(this); + public MigrateKeyRequest Clone() { + return new MigrateKeyRequest(this); } - /// Field number for the "allow_all_bundle_ids" field. - public const int AllowAllBundleIdsFieldNumber = 2; - private bool allowAllBundleIds_; + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; /// - /// If set to true, allowed_bundle_ids are not enforced. + /// Required. The name of the key to be migrated, in the format + /// `projects/{project}/keys/{key}`. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool AllowAllBundleIds { - get { return allowAllBundleIds_; } + public string Name { + get { return name_; } set { - allowAllBundleIds_ = value; + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Field number for the "allowed_bundle_ids" field. - public const int AllowedBundleIdsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_allowedBundleIds_codec - = pb::FieldCodec.ForString(10); - private readonly pbc::RepeatedField allowedBundleIds_ = new pbc::RepeatedField(); + /// Field number for the "skip_billing_check" field. + public const int SkipBillingCheckFieldNumber = 2; + private bool skipBillingCheck_; /// - /// iOS bundle ids of apps allowed to use the key. - /// Example: 'com.companyname.productname.appname' + /// Optional. If true, skips the billing check. + /// A reCAPTCHA Enterprise key or migrated key behaves differently than a + /// reCAPTCHA (non-Enterprise version) key when you reach a quota limit (see + /// https://cloud.google.com/recaptcha-enterprise/quotas#quota_limit). To avoid + /// any disruption of your usage, we check that a billing account is present. + /// If your usage of reCAPTCHA is under the free quota, you can safely skip the + /// billing check and proceed with the migration. See + /// https://cloud.google.com/recaptcha-enterprise/docs/billing-information. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField AllowedBundleIds { - get { return allowedBundleIds_; } + public bool SkipBillingCheck { + get { return skipBillingCheck_; } + set { + skipBillingCheck_ = value; + } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as IOSKeySettings); + return Equals(other as MigrateKeyRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(IOSKeySettings other) { + public bool Equals(MigrateKeyRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (AllowAllBundleIds != other.AllowAllBundleIds) return false; - if(!allowedBundleIds_.Equals(other.allowedBundleIds_)) return false; + if (Name != other.Name) return false; + if (SkipBillingCheck != other.SkipBillingCheck) return false; return Equals(_unknownFields, other._unknownFields); } @@ -11807,8 +12199,8 @@ public bool Equals(IOSKeySettings other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (AllowAllBundleIds != false) hash ^= AllowAllBundleIds.GetHashCode(); - hash ^= allowedBundleIds_.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (SkipBillingCheck != false) hash ^= SkipBillingCheck.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -11827,10 +12219,13 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - allowedBundleIds_.WriteTo(output, _repeated_allowedBundleIds_codec); - if (AllowAllBundleIds != false) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (SkipBillingCheck != false) { output.WriteRawTag(16); - output.WriteBool(AllowAllBundleIds); + output.WriteBool(SkipBillingCheck); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -11842,10 +12237,13 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - allowedBundleIds_.WriteTo(ref output, _repeated_allowedBundleIds_codec); - if (AllowAllBundleIds != false) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (SkipBillingCheck != false) { output.WriteRawTag(16); - output.WriteBool(AllowAllBundleIds); + output.WriteBool(SkipBillingCheck); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -11857,10 +12255,12 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (AllowAllBundleIds != false) { - size += 1 + 1; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (SkipBillingCheck != false) { + size += 1 + 1; } - size += allowedBundleIds_.CalculateSize(_repeated_allowedBundleIds_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -11869,14 +12269,16 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(IOSKeySettings other) { + public void MergeFrom(MigrateKeyRequest other) { if (other == null) { return; } - if (other.AllowAllBundleIds != false) { - AllowAllBundleIds = other.AllowAllBundleIds; + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.SkipBillingCheck != false) { + SkipBillingCheck = other.SkipBillingCheck; } - allowedBundleIds_.Add(other.allowedBundleIds_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -11893,11 +12295,11 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - allowedBundleIds_.AddEntriesFrom(input, _repeated_allowedBundleIds_codec); + Name = input.ReadString(); break; } case 16: { - AllowAllBundleIds = input.ReadBool(); + SkipBillingCheck = input.ReadBool(); break; } } @@ -11916,11 +12318,11 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - allowedBundleIds_.AddEntriesFrom(ref input, _repeated_allowedBundleIds_codec); + Name = input.ReadString(); break; } case 16: { - AllowAllBundleIds = input.ReadBool(); + SkipBillingCheck = input.ReadBool(); break; } } @@ -11931,23 +12333,23 @@ public void MergeFrom(pb::CodedInputStream input) { } /// - /// Score distribution. + /// The get metrics request message. /// - public sealed partial class ScoreDistribution : pb::IMessage + public sealed partial class GetMetricsRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ScoreDistribution()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetMetricsRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + 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.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[30]; } + get { return global::Google.Cloud.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[29]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -11958,7 +12360,7 @@ public sealed partial class ScoreDistribution : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ScoreDistribution() { + public GetMetricsRequest() { OnConstruction(); } @@ -11966,49 +12368,49 @@ public ScoreDistribution() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ScoreDistribution(ScoreDistribution other) : this() { - scoreBuckets_ = other.scoreBuckets_.Clone(); + public GetMetricsRequest(GetMetricsRequest other) : this() { + name_ = other.name_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ScoreDistribution Clone() { - return new ScoreDistribution(this); + public GetMetricsRequest Clone() { + return new GetMetricsRequest(this); } - /// Field number for the "score_buckets" field. - public const int ScoreBucketsFieldNumber = 1; - private static readonly pbc::MapField.Codec _map_scoreBuckets_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt64(16, 0L), 10); - private readonly pbc::MapField scoreBuckets_ = new pbc::MapField(); + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; /// - /// Map key is score value multiplied by 100. The scores are discrete values - /// between [0, 1]. The maximum number of buckets is on order of a few dozen, - /// but typically much lower (ie. 10). + /// Required. The name of the requested metrics, in the format + /// `projects/{project}/keys/{key}/metrics`. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::MapField ScoreBuckets { - get { return scoreBuckets_; } + 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 ScoreDistribution); + return Equals(other as GetMetricsRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ScoreDistribution other) { + public bool Equals(GetMetricsRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!ScoreBuckets.Equals(other.ScoreBuckets)) return false; + if (Name != other.Name) return false; return Equals(_unknownFields, other._unknownFields); } @@ -12016,7 +12418,7 @@ public bool Equals(ScoreDistribution other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - hash ^= ScoreBuckets.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -12035,7 +12437,10 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - scoreBuckets_.WriteTo(output, _map_scoreBuckets_codec); + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -12046,7 +12451,10 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - scoreBuckets_.WriteTo(ref output, _map_scoreBuckets_codec); + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -12057,7 +12465,9 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - size += scoreBuckets_.CalculateSize(_map_scoreBuckets_codec); + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -12066,11 +12476,13 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ScoreDistribution other) { + public void MergeFrom(GetMetricsRequest other) { if (other == null) { return; } - scoreBuckets_.MergeFrom(other.scoreBuckets_); + if (other.Name.Length != 0) { + Name = other.Name; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -12087,7 +12499,7 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - scoreBuckets_.AddEntriesFrom(input, _map_scoreBuckets_codec); + Name = input.ReadString(); break; } } @@ -12106,7 +12518,7 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - scoreBuckets_.AddEntriesFrom(ref input, _map_scoreBuckets_codec); + Name = input.ReadString(); break; } } @@ -12117,23 +12529,23 @@ public void MergeFrom(pb::CodedInputStream input) { } /// - /// Metrics related to scoring. + /// Metrics for a single Key. /// - public sealed partial class ScoreMetrics : pb::IMessage + public sealed partial class Metrics : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ScoreMetrics()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Metrics()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + 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.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[31]; } + get { return global::Google.Cloud.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[30]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -12144,7 +12556,7 @@ public sealed partial class ScoreMetrics : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ScoreMetrics() { + public Metrics() { OnConstruction(); } @@ -12152,65 +12564,101 @@ public ScoreMetrics() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ScoreMetrics(ScoreMetrics other) : this() { - overallMetrics_ = other.overallMetrics_ != null ? other.overallMetrics_.Clone() : null; - actionMetrics_ = other.actionMetrics_.Clone(); + public Metrics(Metrics other) : this() { + name_ = other.name_; + startTime_ = other.startTime_ != null ? other.startTime_.Clone() : null; + scoreMetrics_ = other.scoreMetrics_.Clone(); + challengeMetrics_ = other.challengeMetrics_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ScoreMetrics Clone() { - return new ScoreMetrics(this); + public Metrics Clone() { + return new Metrics(this); } - /// Field number for the "overall_metrics" field. - public const int OverallMetricsFieldNumber = 1; - private global::Google.Cloud.RecaptchaEnterprise.V1.ScoreDistribution overallMetrics_; + /// Field number for the "name" field. + public const int NameFieldNumber = 4; + private string name_ = ""; /// - /// Aggregated score metrics for all traffic. + /// Output only. The name of the metrics, in the format + /// `projects/{project}/keys/{key}/metrics`. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Cloud.RecaptchaEnterprise.V1.ScoreDistribution OverallMetrics { - get { return overallMetrics_; } + public string Name { + get { return name_; } set { - overallMetrics_ = value; + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Field number for the "action_metrics" field. - public const int ActionMetricsFieldNumber = 2; - private static readonly pbc::MapField.Codec _map_actionMetrics_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Google.Cloud.RecaptchaEnterprise.V1.ScoreDistribution.Parser), 18); - private readonly pbc::MapField actionMetrics_ = new pbc::MapField(); + /// Field number for the "start_time" field. + public const int StartTimeFieldNumber = 1; + private global::Google.Protobuf.WellKnownTypes.Timestamp startTime_; /// - /// Action-based metrics. The map key is the action name which specified by the - /// site owners at time of the "execute" client-side call. + /// Inclusive start time aligned to a day (UTC). /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::MapField ActionMetrics { - get { return actionMetrics_; } + public global::Google.Protobuf.WellKnownTypes.Timestamp StartTime { + get { return startTime_; } + set { + startTime_ = value; + } + } + + /// Field number for the "score_metrics" field. + public const int ScoreMetricsFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_scoreMetrics_codec + = pb::FieldCodec.ForMessage(18, global::Google.Cloud.RecaptchaEnterprise.V1.ScoreMetrics.Parser); + private readonly pbc::RepeatedField scoreMetrics_ = new pbc::RepeatedField(); + /// + /// Metrics will be continuous and in order by dates, and in the granularity + /// of day. All Key types should have score-based data. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ScoreMetrics { + get { return scoreMetrics_; } + } + + /// Field number for the "challenge_metrics" field. + public const int ChallengeMetricsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_challengeMetrics_codec + = pb::FieldCodec.ForMessage(26, global::Google.Cloud.RecaptchaEnterprise.V1.ChallengeMetrics.Parser); + private readonly pbc::RepeatedField challengeMetrics_ = new pbc::RepeatedField(); + /// + /// Metrics will be continuous and in order by dates, and in the granularity + /// of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have + /// challenge-based data. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ChallengeMetrics { + get { return challengeMetrics_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as ScoreMetrics); + return Equals(other as Metrics); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ScoreMetrics other) { + public bool Equals(Metrics other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(OverallMetrics, other.OverallMetrics)) return false; - if (!ActionMetrics.Equals(other.ActionMetrics)) return false; + if (Name != other.Name) return false; + if (!object.Equals(StartTime, other.StartTime)) return false; + if(!scoreMetrics_.Equals(other.scoreMetrics_)) return false; + if(!challengeMetrics_.Equals(other.challengeMetrics_)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -12218,8 +12666,10 @@ public bool Equals(ScoreMetrics other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (overallMetrics_ != null) hash ^= OverallMetrics.GetHashCode(); - hash ^= ActionMetrics.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (startTime_ != null) hash ^= StartTime.GetHashCode(); + hash ^= scoreMetrics_.GetHashCode(); + hash ^= challengeMetrics_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -12238,11 +12688,16 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (overallMetrics_ != null) { + if (startTime_ != null) { output.WriteRawTag(10); - output.WriteMessage(OverallMetrics); + output.WriteMessage(StartTime); + } + scoreMetrics_.WriteTo(output, _repeated_scoreMetrics_codec); + challengeMetrics_.WriteTo(output, _repeated_challengeMetrics_codec); + if (Name.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Name); } - actionMetrics_.WriteTo(output, _map_actionMetrics_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -12253,11 +12708,16 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (overallMetrics_ != null) { + if (startTime_ != null) { output.WriteRawTag(10); - output.WriteMessage(OverallMetrics); + output.WriteMessage(StartTime); + } + scoreMetrics_.WriteTo(ref output, _repeated_scoreMetrics_codec); + challengeMetrics_.WriteTo(ref output, _repeated_challengeMetrics_codec); + if (Name.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Name); } - actionMetrics_.WriteTo(ref output, _map_actionMetrics_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -12268,10 +12728,14 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (overallMetrics_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(OverallMetrics); + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); } - size += actionMetrics_.CalculateSize(_map_actionMetrics_codec); + if (startTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StartTime); + } + size += scoreMetrics_.CalculateSize(_repeated_scoreMetrics_codec); + size += challengeMetrics_.CalculateSize(_repeated_challengeMetrics_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -12280,17 +12744,21 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ScoreMetrics other) { + public void MergeFrom(Metrics other) { if (other == null) { return; } - if (other.overallMetrics_ != null) { - if (overallMetrics_ == null) { - OverallMetrics = new global::Google.Cloud.RecaptchaEnterprise.V1.ScoreDistribution(); + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.startTime_ != null) { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } - OverallMetrics.MergeFrom(other.OverallMetrics); + StartTime.MergeFrom(other.StartTime); } - actionMetrics_.MergeFrom(other.actionMetrics_); + scoreMetrics_.Add(other.scoreMetrics_); + challengeMetrics_.Add(other.challengeMetrics_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -12307,67 +12775,4762 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (overallMetrics_ == null) { - OverallMetrics = new global::Google.Cloud.RecaptchaEnterprise.V1.ScoreDistribution(); + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } - input.ReadMessage(OverallMetrics); + input.ReadMessage(StartTime); + break; + } + case 18: { + scoreMetrics_.AddEntriesFrom(input, _repeated_scoreMetrics_codec); break; } - case 18: { - actionMetrics_.AddEntriesFrom(input, _map_actionMetrics_codec); - break; + case 26: { + challengeMetrics_.AddEntriesFrom(input, _repeated_challengeMetrics_codec); + break; + } + case 34: { + Name = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTime); + break; + } + case 18: { + scoreMetrics_.AddEntriesFrom(ref input, _repeated_scoreMetrics_codec); + break; + } + case 26: { + challengeMetrics_.AddEntriesFrom(ref input, _repeated_challengeMetrics_codec); + break; + } + case 34: { + Name = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Secret key is used only in legacy reCAPTCHA. It must be used in a 3rd party + /// integration with legacy reCAPTCHA. + /// + public sealed partial class RetrieveLegacySecretKeyResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RetrieveLegacySecretKeyResponse()); + 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.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[31]; } + } + + [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 RetrieveLegacySecretKeyResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RetrieveLegacySecretKeyResponse(RetrieveLegacySecretKeyResponse other) : this() { + legacySecretKey_ = other.legacySecretKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RetrieveLegacySecretKeyResponse Clone() { + return new RetrieveLegacySecretKeyResponse(this); + } + + /// Field number for the "legacy_secret_key" field. + public const int LegacySecretKeyFieldNumber = 1; + private string legacySecretKey_ = ""; + /// + /// The secret key (also known as shared secret) authorizes communication + /// between your application backend and the reCAPTCHA Enterprise server to + /// create an assessment. + /// The secret key needs to be kept safe for security purposes. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string LegacySecretKey { + get { return legacySecretKey_; } + set { + legacySecretKey_ = 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 RetrieveLegacySecretKeyResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RetrieveLegacySecretKeyResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (LegacySecretKey != other.LegacySecretKey) 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 (LegacySecretKey.Length != 0) hash ^= LegacySecretKey.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 (LegacySecretKey.Length != 0) { + output.WriteRawTag(10); + output.WriteString(LegacySecretKey); + } + 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 (LegacySecretKey.Length != 0) { + output.WriteRawTag(10); + output.WriteString(LegacySecretKey); + } + 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 (LegacySecretKey.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(LegacySecretKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RetrieveLegacySecretKeyResponse other) { + if (other == null) { + return; + } + if (other.LegacySecretKey.Length != 0) { + LegacySecretKey = other.LegacySecretKey; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + LegacySecretKey = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + LegacySecretKey = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// A key used to identify and configure applications (web and/or mobile) that + /// use reCAPTCHA Enterprise. + /// + public sealed partial class Key : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Key()); + 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.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[32]; } + } + + [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 Key() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Key(Key other) : this() { + name_ = other.name_; + displayName_ = other.displayName_; + labels_ = other.labels_.Clone(); + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + testingOptions_ = other.testingOptions_ != null ? other.testingOptions_.Clone() : null; + wafSettings_ = other.wafSettings_ != null ? other.wafSettings_.Clone() : null; + switch (other.PlatformSettingsCase) { + case PlatformSettingsOneofCase.WebSettings: + WebSettings = other.WebSettings.Clone(); + break; + case PlatformSettingsOneofCase.AndroidSettings: + AndroidSettings = other.AndroidSettings.Clone(); + break; + case PlatformSettingsOneofCase.IosSettings: + IosSettings = other.IosSettings.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Key Clone() { + return new Key(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// The resource name for the Key in the format + /// `projects/{project}/keys/{key}`. + /// + [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_ = ""; + /// + /// Human-readable display name of this key. Modifiable by 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 "web_settings" field. + public const int WebSettingsFieldNumber = 3; + /// + /// Settings for keys that can be used by websites. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings WebSettings { + get { return platformSettingsCase_ == PlatformSettingsOneofCase.WebSettings ? (global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings) platformSettings_ : null; } + set { + platformSettings_ = value; + platformSettingsCase_ = value == null ? PlatformSettingsOneofCase.None : PlatformSettingsOneofCase.WebSettings; + } + } + + /// Field number for the "android_settings" field. + public const int AndroidSettingsFieldNumber = 4; + /// + /// Settings for keys that can be used by Android apps. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.RecaptchaEnterprise.V1.AndroidKeySettings AndroidSettings { + get { return platformSettingsCase_ == PlatformSettingsOneofCase.AndroidSettings ? (global::Google.Cloud.RecaptchaEnterprise.V1.AndroidKeySettings) platformSettings_ : null; } + set { + platformSettings_ = value; + platformSettingsCase_ = value == null ? PlatformSettingsOneofCase.None : PlatformSettingsOneofCase.AndroidSettings; + } + } + + /// Field number for the "ios_settings" field. + public const int IosSettingsFieldNumber = 5; + /// + /// Settings for keys that can be used by iOS apps. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.RecaptchaEnterprise.V1.IOSKeySettings IosSettings { + get { return platformSettingsCase_ == PlatformSettingsOneofCase.IosSettings ? (global::Google.Cloud.RecaptchaEnterprise.V1.IOSKeySettings) platformSettings_ : null; } + set { + platformSettings_ = value; + platformSettingsCase_ = value == null ? PlatformSettingsOneofCase.None : PlatformSettingsOneofCase.IosSettings; + } + } + + /// Field number for the "labels" field. + public const int LabelsFieldNumber = 6; + private static readonly pbc::MapField.Codec _map_labels_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 50); + private readonly pbc::MapField labels_ = new pbc::MapField(); + /// + /// See [Creating and managing labels] + /// (https://cloud.google.com/recaptcha-enterprise/docs/labels). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Labels { + get { return labels_; } + } + + /// Field number for the "create_time" field. + public const int CreateTimeFieldNumber = 7; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. The timestamp corresponding to the creation of this key. + /// + [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 "testing_options" field. + public const int TestingOptionsFieldNumber = 9; + private global::Google.Cloud.RecaptchaEnterprise.V1.TestingOptions testingOptions_; + /// + /// Options for user acceptance testing. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.RecaptchaEnterprise.V1.TestingOptions TestingOptions { + get { return testingOptions_; } + set { + testingOptions_ = value; + } + } + + /// Field number for the "waf_settings" field. + public const int WafSettingsFieldNumber = 10; + private global::Google.Cloud.RecaptchaEnterprise.V1.WafSettings wafSettings_; + /// + /// Settings for WAF + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.RecaptchaEnterprise.V1.WafSettings WafSettings { + get { return wafSettings_; } + set { + wafSettings_ = value; + } + } + + private object platformSettings_; + /// Enum of possible cases for the "platform_settings" oneof. + public enum PlatformSettingsOneofCase { + None = 0, + WebSettings = 3, + AndroidSettings = 4, + IosSettings = 5, + } + private PlatformSettingsOneofCase platformSettingsCase_ = PlatformSettingsOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlatformSettingsOneofCase PlatformSettingsCase { + get { return platformSettingsCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPlatformSettings() { + platformSettingsCase_ = PlatformSettingsOneofCase.None; + platformSettings_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Key); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Key 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 (!object.Equals(WebSettings, other.WebSettings)) return false; + if (!object.Equals(AndroidSettings, other.AndroidSettings)) return false; + if (!object.Equals(IosSettings, other.IosSettings)) return false; + if (!Labels.Equals(other.Labels)) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (!object.Equals(TestingOptions, other.TestingOptions)) return false; + if (!object.Equals(WafSettings, other.WafSettings)) return false; + if (PlatformSettingsCase != other.PlatformSettingsCase) 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 (platformSettingsCase_ == PlatformSettingsOneofCase.WebSettings) hash ^= WebSettings.GetHashCode(); + if (platformSettingsCase_ == PlatformSettingsOneofCase.AndroidSettings) hash ^= AndroidSettings.GetHashCode(); + if (platformSettingsCase_ == PlatformSettingsOneofCase.IosSettings) hash ^= IosSettings.GetHashCode(); + hash ^= Labels.GetHashCode(); + if (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (testingOptions_ != null) hash ^= TestingOptions.GetHashCode(); + if (wafSettings_ != null) hash ^= WafSettings.GetHashCode(); + hash ^= (int) platformSettingsCase_; + 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 (platformSettingsCase_ == PlatformSettingsOneofCase.WebSettings) { + output.WriteRawTag(26); + output.WriteMessage(WebSettings); + } + if (platformSettingsCase_ == PlatformSettingsOneofCase.AndroidSettings) { + output.WriteRawTag(34); + output.WriteMessage(AndroidSettings); + } + if (platformSettingsCase_ == PlatformSettingsOneofCase.IosSettings) { + output.WriteRawTag(42); + output.WriteMessage(IosSettings); + } + labels_.WriteTo(output, _map_labels_codec); + if (createTime_ != null) { + output.WriteRawTag(58); + output.WriteMessage(CreateTime); + } + if (testingOptions_ != null) { + output.WriteRawTag(74); + output.WriteMessage(TestingOptions); + } + if (wafSettings_ != null) { + output.WriteRawTag(82); + output.WriteMessage(WafSettings); + } + 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 (platformSettingsCase_ == PlatformSettingsOneofCase.WebSettings) { + output.WriteRawTag(26); + output.WriteMessage(WebSettings); + } + if (platformSettingsCase_ == PlatformSettingsOneofCase.AndroidSettings) { + output.WriteRawTag(34); + output.WriteMessage(AndroidSettings); + } + if (platformSettingsCase_ == PlatformSettingsOneofCase.IosSettings) { + output.WriteRawTag(42); + output.WriteMessage(IosSettings); + } + labels_.WriteTo(ref output, _map_labels_codec); + if (createTime_ != null) { + output.WriteRawTag(58); + output.WriteMessage(CreateTime); + } + if (testingOptions_ != null) { + output.WriteRawTag(74); + output.WriteMessage(TestingOptions); + } + if (wafSettings_ != null) { + output.WriteRawTag(82); + output.WriteMessage(WafSettings); + } + 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 (platformSettingsCase_ == PlatformSettingsOneofCase.WebSettings) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(WebSettings); + } + if (platformSettingsCase_ == PlatformSettingsOneofCase.AndroidSettings) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AndroidSettings); + } + if (platformSettingsCase_ == PlatformSettingsOneofCase.IosSettings) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(IosSettings); + } + size += labels_.CalculateSize(_map_labels_codec); + if (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (testingOptions_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TestingOptions); + } + if (wafSettings_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(WafSettings); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Key other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.DisplayName.Length != 0) { + DisplayName = other.DisplayName; + } + labels_.MergeFrom(other.labels_); + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.testingOptions_ != null) { + if (testingOptions_ == null) { + TestingOptions = new global::Google.Cloud.RecaptchaEnterprise.V1.TestingOptions(); + } + TestingOptions.MergeFrom(other.TestingOptions); + } + if (other.wafSettings_ != null) { + if (wafSettings_ == null) { + WafSettings = new global::Google.Cloud.RecaptchaEnterprise.V1.WafSettings(); + } + WafSettings.MergeFrom(other.WafSettings); + } + switch (other.PlatformSettingsCase) { + case PlatformSettingsOneofCase.WebSettings: + if (WebSettings == null) { + WebSettings = new global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings(); + } + WebSettings.MergeFrom(other.WebSettings); + break; + case PlatformSettingsOneofCase.AndroidSettings: + if (AndroidSettings == null) { + AndroidSettings = new global::Google.Cloud.RecaptchaEnterprise.V1.AndroidKeySettings(); + } + AndroidSettings.MergeFrom(other.AndroidSettings); + break; + case PlatformSettingsOneofCase.IosSettings: + if (IosSettings == null) { + IosSettings = new global::Google.Cloud.RecaptchaEnterprise.V1.IOSKeySettings(); + } + IosSettings.MergeFrom(other.IosSettings); + 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + DisplayName = input.ReadString(); + break; + } + case 26: { + global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings subBuilder = new global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings(); + if (platformSettingsCase_ == PlatformSettingsOneofCase.WebSettings) { + subBuilder.MergeFrom(WebSettings); + } + input.ReadMessage(subBuilder); + WebSettings = subBuilder; + break; + } + case 34: { + global::Google.Cloud.RecaptchaEnterprise.V1.AndroidKeySettings subBuilder = new global::Google.Cloud.RecaptchaEnterprise.V1.AndroidKeySettings(); + if (platformSettingsCase_ == PlatformSettingsOneofCase.AndroidSettings) { + subBuilder.MergeFrom(AndroidSettings); + } + input.ReadMessage(subBuilder); + AndroidSettings = subBuilder; + break; + } + case 42: { + global::Google.Cloud.RecaptchaEnterprise.V1.IOSKeySettings subBuilder = new global::Google.Cloud.RecaptchaEnterprise.V1.IOSKeySettings(); + if (platformSettingsCase_ == PlatformSettingsOneofCase.IosSettings) { + subBuilder.MergeFrom(IosSettings); + } + input.ReadMessage(subBuilder); + IosSettings = subBuilder; + break; + } + case 50: { + labels_.AddEntriesFrom(input, _map_labels_codec); + break; + } + case 58: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 74: { + if (testingOptions_ == null) { + TestingOptions = new global::Google.Cloud.RecaptchaEnterprise.V1.TestingOptions(); + } + input.ReadMessage(TestingOptions); + break; + } + case 82: { + if (wafSettings_ == null) { + WafSettings = new global::Google.Cloud.RecaptchaEnterprise.V1.WafSettings(); + } + input.ReadMessage(WafSettings); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + DisplayName = input.ReadString(); + break; + } + case 26: { + global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings subBuilder = new global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings(); + if (platformSettingsCase_ == PlatformSettingsOneofCase.WebSettings) { + subBuilder.MergeFrom(WebSettings); + } + input.ReadMessage(subBuilder); + WebSettings = subBuilder; + break; + } + case 34: { + global::Google.Cloud.RecaptchaEnterprise.V1.AndroidKeySettings subBuilder = new global::Google.Cloud.RecaptchaEnterprise.V1.AndroidKeySettings(); + if (platformSettingsCase_ == PlatformSettingsOneofCase.AndroidSettings) { + subBuilder.MergeFrom(AndroidSettings); + } + input.ReadMessage(subBuilder); + AndroidSettings = subBuilder; + break; + } + case 42: { + global::Google.Cloud.RecaptchaEnterprise.V1.IOSKeySettings subBuilder = new global::Google.Cloud.RecaptchaEnterprise.V1.IOSKeySettings(); + if (platformSettingsCase_ == PlatformSettingsOneofCase.IosSettings) { + subBuilder.MergeFrom(IosSettings); + } + input.ReadMessage(subBuilder); + IosSettings = subBuilder; + break; + } + case 50: { + labels_.AddEntriesFrom(ref input, _map_labels_codec); + break; + } + case 58: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 74: { + if (testingOptions_ == null) { + TestingOptions = new global::Google.Cloud.RecaptchaEnterprise.V1.TestingOptions(); + } + input.ReadMessage(TestingOptions); + break; + } + case 82: { + if (wafSettings_ == null) { + WafSettings = new global::Google.Cloud.RecaptchaEnterprise.V1.WafSettings(); + } + input.ReadMessage(WafSettings); + break; + } + } + } + } + #endif + + } + + /// + /// Options for user acceptance testing. + /// + public sealed partial class TestingOptions : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestingOptions()); + 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.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[33]; } + } + + [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 TestingOptions() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestingOptions(TestingOptions other) : this() { + testingScore_ = other.testingScore_; + testingChallenge_ = other.testingChallenge_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TestingOptions Clone() { + return new TestingOptions(this); + } + + /// Field number for the "testing_score" field. + public const int TestingScoreFieldNumber = 1; + private float testingScore_; + /// + /// All assessments for this Key will return this score. Must be between 0 + /// (likely not legitimate) and 1 (likely legitimate) inclusive. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float TestingScore { + get { return testingScore_; } + set { + testingScore_ = value; + } + } + + /// Field number for the "testing_challenge" field. + public const int TestingChallengeFieldNumber = 2; + private global::Google.Cloud.RecaptchaEnterprise.V1.TestingOptions.Types.TestingChallenge testingChallenge_ = global::Google.Cloud.RecaptchaEnterprise.V1.TestingOptions.Types.TestingChallenge.Unspecified; + /// + /// For challenge-based keys only (CHECKBOX, INVISIBLE), all challenge requests + /// for this site will return nocaptcha if NOCAPTCHA, or an unsolvable + /// challenge if CHALLENGE. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.RecaptchaEnterprise.V1.TestingOptions.Types.TestingChallenge TestingChallenge { + get { return testingChallenge_; } + set { + testingChallenge_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TestingOptions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TestingOptions other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(TestingScore, other.TestingScore)) return false; + if (TestingChallenge != other.TestingChallenge) 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 (TestingScore != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(TestingScore); + if (TestingChallenge != global::Google.Cloud.RecaptchaEnterprise.V1.TestingOptions.Types.TestingChallenge.Unspecified) hash ^= TestingChallenge.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 (TestingScore != 0F) { + output.WriteRawTag(13); + output.WriteFloat(TestingScore); + } + if (TestingChallenge != global::Google.Cloud.RecaptchaEnterprise.V1.TestingOptions.Types.TestingChallenge.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) TestingChallenge); + } + 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 (TestingScore != 0F) { + output.WriteRawTag(13); + output.WriteFloat(TestingScore); + } + if (TestingChallenge != global::Google.Cloud.RecaptchaEnterprise.V1.TestingOptions.Types.TestingChallenge.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) TestingChallenge); + } + 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 (TestingScore != 0F) { + size += 1 + 4; + } + if (TestingChallenge != global::Google.Cloud.RecaptchaEnterprise.V1.TestingOptions.Types.TestingChallenge.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) TestingChallenge); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TestingOptions other) { + if (other == null) { + return; + } + if (other.TestingScore != 0F) { + TestingScore = other.TestingScore; + } + if (other.TestingChallenge != global::Google.Cloud.RecaptchaEnterprise.V1.TestingOptions.Types.TestingChallenge.Unspecified) { + TestingChallenge = other.TestingChallenge; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 13: { + TestingScore = input.ReadFloat(); + break; + } + case 16: { + TestingChallenge = (global::Google.Cloud.RecaptchaEnterprise.V1.TestingOptions.Types.TestingChallenge) 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 13: { + TestingScore = input.ReadFloat(); + break; + } + case 16: { + TestingChallenge = (global::Google.Cloud.RecaptchaEnterprise.V1.TestingOptions.Types.TestingChallenge) input.ReadEnum(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the TestingOptions message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Enum that represents the challenge option for challenge-based (CHECKBOX, + /// INVISIBLE) testing keys. + /// + public enum TestingChallenge { + /// + /// Perform the normal risk analysis and return either nocaptcha or a + /// challenge depending on risk and trust factors. + /// + [pbr::OriginalName("TESTING_CHALLENGE_UNSPECIFIED")] Unspecified = 0, + /// + /// Challenge requests for this key always return a nocaptcha, which + /// does not require a solution. + /// + [pbr::OriginalName("NOCAPTCHA")] Nocaptcha = 1, + /// + /// Challenge requests for this key always return an unsolvable + /// challenge. + /// + [pbr::OriginalName("UNSOLVABLE_CHALLENGE")] UnsolvableChallenge = 2, + } + + } + #endregion + + } + + /// + /// Settings specific to keys that can be used by websites. + /// + public sealed partial class WebKeySettings : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new WebKeySettings()); + 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.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[34]; } + } + + [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 WebKeySettings() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WebKeySettings(WebKeySettings other) : this() { + allowAllDomains_ = other.allowAllDomains_; + allowedDomains_ = other.allowedDomains_.Clone(); + allowAmpTraffic_ = other.allowAmpTraffic_; + integrationType_ = other.integrationType_; + challengeSecurityPreference_ = other.challengeSecurityPreference_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public WebKeySettings Clone() { + return new WebKeySettings(this); + } + + /// Field number for the "allow_all_domains" field. + public const int AllowAllDomainsFieldNumber = 3; + private bool allowAllDomains_; + /// + /// If set to true, it means allowed_domains will not be enforced. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool AllowAllDomains { + get { return allowAllDomains_; } + set { + allowAllDomains_ = value; + } + } + + /// Field number for the "allowed_domains" field. + public const int AllowedDomainsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_allowedDomains_codec + = pb::FieldCodec.ForString(10); + private readonly pbc::RepeatedField allowedDomains_ = new pbc::RepeatedField(); + /// + /// Domains or subdomains of websites allowed to use the key. All subdomains + /// of an allowed domain are automatically allowed. A valid domain requires a + /// host and must not include any path, port, query or fragment. + /// Examples: 'example.com' or 'subdomain.example.com' + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField AllowedDomains { + get { return allowedDomains_; } + } + + /// Field number for the "allow_amp_traffic" field. + public const int AllowAmpTrafficFieldNumber = 2; + private bool allowAmpTraffic_; + /// + /// If set to true, the key can be used on AMP (Accelerated Mobile Pages) + /// websites. This is supported only for the SCORE integration type. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool AllowAmpTraffic { + get { return allowAmpTraffic_; } + set { + allowAmpTraffic_ = value; + } + } + + /// Field number for the "integration_type" field. + public const int IntegrationTypeFieldNumber = 4; + private global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings.Types.IntegrationType integrationType_ = global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings.Types.IntegrationType.Unspecified; + /// + /// Required. Describes how this key is integrated with the website. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings.Types.IntegrationType IntegrationType { + get { return integrationType_; } + set { + integrationType_ = value; + } + } + + /// Field number for the "challenge_security_preference" field. + public const int ChallengeSecurityPreferenceFieldNumber = 5; + private global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings.Types.ChallengeSecurityPreference challengeSecurityPreference_ = global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings.Types.ChallengeSecurityPreference.Unspecified; + /// + /// Settings for the frequency and difficulty at which this key triggers + /// captcha challenges. This should only be specified for IntegrationTypes + /// CHECKBOX and INVISIBLE. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings.Types.ChallengeSecurityPreference ChallengeSecurityPreference { + get { return challengeSecurityPreference_; } + set { + challengeSecurityPreference_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as WebKeySettings); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(WebKeySettings other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (AllowAllDomains != other.AllowAllDomains) return false; + if(!allowedDomains_.Equals(other.allowedDomains_)) return false; + if (AllowAmpTraffic != other.AllowAmpTraffic) return false; + if (IntegrationType != other.IntegrationType) return false; + if (ChallengeSecurityPreference != other.ChallengeSecurityPreference) 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 (AllowAllDomains != false) hash ^= AllowAllDomains.GetHashCode(); + hash ^= allowedDomains_.GetHashCode(); + if (AllowAmpTraffic != false) hash ^= AllowAmpTraffic.GetHashCode(); + if (IntegrationType != global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings.Types.IntegrationType.Unspecified) hash ^= IntegrationType.GetHashCode(); + if (ChallengeSecurityPreference != global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings.Types.ChallengeSecurityPreference.Unspecified) hash ^= ChallengeSecurityPreference.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 + allowedDomains_.WriteTo(output, _repeated_allowedDomains_codec); + if (AllowAmpTraffic != false) { + output.WriteRawTag(16); + output.WriteBool(AllowAmpTraffic); + } + if (AllowAllDomains != false) { + output.WriteRawTag(24); + output.WriteBool(AllowAllDomains); + } + if (IntegrationType != global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings.Types.IntegrationType.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) IntegrationType); + } + if (ChallengeSecurityPreference != global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings.Types.ChallengeSecurityPreference.Unspecified) { + output.WriteRawTag(40); + output.WriteEnum((int) ChallengeSecurityPreference); + } + 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) { + allowedDomains_.WriteTo(ref output, _repeated_allowedDomains_codec); + if (AllowAmpTraffic != false) { + output.WriteRawTag(16); + output.WriteBool(AllowAmpTraffic); + } + if (AllowAllDomains != false) { + output.WriteRawTag(24); + output.WriteBool(AllowAllDomains); + } + if (IntegrationType != global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings.Types.IntegrationType.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) IntegrationType); + } + if (ChallengeSecurityPreference != global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings.Types.ChallengeSecurityPreference.Unspecified) { + output.WriteRawTag(40); + output.WriteEnum((int) ChallengeSecurityPreference); + } + 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 (AllowAllDomains != false) { + size += 1 + 1; + } + size += allowedDomains_.CalculateSize(_repeated_allowedDomains_codec); + if (AllowAmpTraffic != false) { + size += 1 + 1; + } + if (IntegrationType != global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings.Types.IntegrationType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) IntegrationType); + } + if (ChallengeSecurityPreference != global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings.Types.ChallengeSecurityPreference.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ChallengeSecurityPreference); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(WebKeySettings other) { + if (other == null) { + return; + } + if (other.AllowAllDomains != false) { + AllowAllDomains = other.AllowAllDomains; + } + allowedDomains_.Add(other.allowedDomains_); + if (other.AllowAmpTraffic != false) { + AllowAmpTraffic = other.AllowAmpTraffic; + } + if (other.IntegrationType != global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings.Types.IntegrationType.Unspecified) { + IntegrationType = other.IntegrationType; + } + if (other.ChallengeSecurityPreference != global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings.Types.ChallengeSecurityPreference.Unspecified) { + ChallengeSecurityPreference = other.ChallengeSecurityPreference; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + allowedDomains_.AddEntriesFrom(input, _repeated_allowedDomains_codec); + break; + } + case 16: { + AllowAmpTraffic = input.ReadBool(); + break; + } + case 24: { + AllowAllDomains = input.ReadBool(); + break; + } + case 32: { + IntegrationType = (global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings.Types.IntegrationType) input.ReadEnum(); + break; + } + case 40: { + ChallengeSecurityPreference = (global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings.Types.ChallengeSecurityPreference) 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + allowedDomains_.AddEntriesFrom(ref input, _repeated_allowedDomains_codec); + break; + } + case 16: { + AllowAmpTraffic = input.ReadBool(); + break; + } + case 24: { + AllowAllDomains = input.ReadBool(); + break; + } + case 32: { + IntegrationType = (global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings.Types.IntegrationType) input.ReadEnum(); + break; + } + case 40: { + ChallengeSecurityPreference = (global::Google.Cloud.RecaptchaEnterprise.V1.WebKeySettings.Types.ChallengeSecurityPreference) input.ReadEnum(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the WebKeySettings message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Enum that represents the integration types for web keys. + /// + public enum IntegrationType { + /// + /// Default type that indicates this enum hasn't been specified. This is not + /// a valid IntegrationType, one of the other types must be specified + /// instead. + /// + [pbr::OriginalName("INTEGRATION_TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// Only used to produce scores. It doesn't display the "I'm not a robot" + /// checkbox and never shows captcha challenges. + /// + [pbr::OriginalName("SCORE")] Score = 1, + /// + /// Displays the "I'm not a robot" checkbox and may show captcha challenges + /// after it is checked. + /// + [pbr::OriginalName("CHECKBOX")] Checkbox = 2, + /// + /// Doesn't display the "I'm not a robot" checkbox, but may show captcha + /// challenges after risk analysis. + /// + [pbr::OriginalName("INVISIBLE")] Invisible = 3, + } + + /// + /// Enum that represents the possible challenge frequency and difficulty + /// configurations for a web key. + /// + public enum ChallengeSecurityPreference { + /// + /// Default type that indicates this enum hasn't been specified. + /// + [pbr::OriginalName("CHALLENGE_SECURITY_PREFERENCE_UNSPECIFIED")] Unspecified = 0, + /// + /// Key tends to show fewer and easier challenges. + /// + [pbr::OriginalName("USABILITY")] Usability = 1, + /// + /// Key tends to show balanced (in amount and difficulty) challenges. + /// + [pbr::OriginalName("BALANCE")] Balance = 2, + /// + /// Key tends to show more and harder challenges. + /// + [pbr::OriginalName("SECURITY")] Security = 3, + } + + } + #endregion + + } + + /// + /// Settings specific to keys that can be used by Android apps. + /// + public sealed partial class AndroidKeySettings : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AndroidKeySettings()); + 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.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[35]; } + } + + [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 AndroidKeySettings() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AndroidKeySettings(AndroidKeySettings other) : this() { + allowAllPackageNames_ = other.allowAllPackageNames_; + allowedPackageNames_ = other.allowedPackageNames_.Clone(); + supportNonGoogleAppStoreDistribution_ = other.supportNonGoogleAppStoreDistribution_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AndroidKeySettings Clone() { + return new AndroidKeySettings(this); + } + + /// Field number for the "allow_all_package_names" field. + public const int AllowAllPackageNamesFieldNumber = 2; + private bool allowAllPackageNames_; + /// + /// If set to true, allowed_package_names are not enforced. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool AllowAllPackageNames { + get { return allowAllPackageNames_; } + set { + allowAllPackageNames_ = value; + } + } + + /// Field number for the "allowed_package_names" field. + public const int AllowedPackageNamesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_allowedPackageNames_codec + = pb::FieldCodec.ForString(10); + private readonly pbc::RepeatedField allowedPackageNames_ = new pbc::RepeatedField(); + /// + /// Android package names of apps allowed to use the key. + /// Example: 'com.companyname.appname' + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField AllowedPackageNames { + get { return allowedPackageNames_; } + } + + /// Field number for the "support_non_google_app_store_distribution" field. + public const int SupportNonGoogleAppStoreDistributionFieldNumber = 3; + private bool supportNonGoogleAppStoreDistribution_; + /// + /// Set to true for keys that are used in an Android application that is + /// available for download in app stores in addition to the Google Play Store. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool SupportNonGoogleAppStoreDistribution { + get { return supportNonGoogleAppStoreDistribution_; } + set { + supportNonGoogleAppStoreDistribution_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AndroidKeySettings); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AndroidKeySettings other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (AllowAllPackageNames != other.AllowAllPackageNames) return false; + if(!allowedPackageNames_.Equals(other.allowedPackageNames_)) return false; + if (SupportNonGoogleAppStoreDistribution != other.SupportNonGoogleAppStoreDistribution) 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 (AllowAllPackageNames != false) hash ^= AllowAllPackageNames.GetHashCode(); + hash ^= allowedPackageNames_.GetHashCode(); + if (SupportNonGoogleAppStoreDistribution != false) hash ^= SupportNonGoogleAppStoreDistribution.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 + allowedPackageNames_.WriteTo(output, _repeated_allowedPackageNames_codec); + if (AllowAllPackageNames != false) { + output.WriteRawTag(16); + output.WriteBool(AllowAllPackageNames); + } + if (SupportNonGoogleAppStoreDistribution != false) { + output.WriteRawTag(24); + output.WriteBool(SupportNonGoogleAppStoreDistribution); + } + 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) { + allowedPackageNames_.WriteTo(ref output, _repeated_allowedPackageNames_codec); + if (AllowAllPackageNames != false) { + output.WriteRawTag(16); + output.WriteBool(AllowAllPackageNames); + } + if (SupportNonGoogleAppStoreDistribution != false) { + output.WriteRawTag(24); + output.WriteBool(SupportNonGoogleAppStoreDistribution); + } + 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 (AllowAllPackageNames != false) { + size += 1 + 1; + } + size += allowedPackageNames_.CalculateSize(_repeated_allowedPackageNames_codec); + if (SupportNonGoogleAppStoreDistribution != 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(AndroidKeySettings other) { + if (other == null) { + return; + } + if (other.AllowAllPackageNames != false) { + AllowAllPackageNames = other.AllowAllPackageNames; + } + allowedPackageNames_.Add(other.allowedPackageNames_); + if (other.SupportNonGoogleAppStoreDistribution != false) { + SupportNonGoogleAppStoreDistribution = other.SupportNonGoogleAppStoreDistribution; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + allowedPackageNames_.AddEntriesFrom(input, _repeated_allowedPackageNames_codec); + break; + } + case 16: { + AllowAllPackageNames = input.ReadBool(); + break; + } + case 24: { + SupportNonGoogleAppStoreDistribution = 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + allowedPackageNames_.AddEntriesFrom(ref input, _repeated_allowedPackageNames_codec); + break; + } + case 16: { + AllowAllPackageNames = input.ReadBool(); + break; + } + case 24: { + SupportNonGoogleAppStoreDistribution = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + /// + /// Settings specific to keys that can be used by iOS apps. + /// + public sealed partial class IOSKeySettings : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new IOSKeySettings()); + 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.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[36]; } + } + + [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 IOSKeySettings() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public IOSKeySettings(IOSKeySettings other) : this() { + allowAllBundleIds_ = other.allowAllBundleIds_; + allowedBundleIds_ = other.allowedBundleIds_.Clone(); + appleDeveloperId_ = other.appleDeveloperId_ != null ? other.appleDeveloperId_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public IOSKeySettings Clone() { + return new IOSKeySettings(this); + } + + /// Field number for the "allow_all_bundle_ids" field. + public const int AllowAllBundleIdsFieldNumber = 2; + private bool allowAllBundleIds_; + /// + /// If set to true, allowed_bundle_ids are not enforced. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool AllowAllBundleIds { + get { return allowAllBundleIds_; } + set { + allowAllBundleIds_ = value; + } + } + + /// Field number for the "allowed_bundle_ids" field. + public const int AllowedBundleIdsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_allowedBundleIds_codec + = pb::FieldCodec.ForString(10); + private readonly pbc::RepeatedField allowedBundleIds_ = new pbc::RepeatedField(); + /// + /// iOS bundle ids of apps allowed to use the key. + /// Example: 'com.companyname.productname.appname' + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField AllowedBundleIds { + get { return allowedBundleIds_; } + } + + /// Field number for the "apple_developer_id" field. + public const int AppleDeveloperIdFieldNumber = 3; + private global::Google.Cloud.RecaptchaEnterprise.V1.AppleDeveloperId appleDeveloperId_; + /// + /// Apple Developer account details for the app that is protected by the + /// reCAPTCHA Key. reCAPTCHA Enterprise leverages platform-specific checks like + /// Apple App Attest and Apple DeviceCheck to protect your app from abuse. + /// Providing these fields allows reCAPTCHA Enterprise to get a better + /// assessment of the integrity of your app. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.RecaptchaEnterprise.V1.AppleDeveloperId AppleDeveloperId { + get { return appleDeveloperId_; } + set { + appleDeveloperId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as IOSKeySettings); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(IOSKeySettings other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (AllowAllBundleIds != other.AllowAllBundleIds) return false; + if(!allowedBundleIds_.Equals(other.allowedBundleIds_)) return false; + if (!object.Equals(AppleDeveloperId, other.AppleDeveloperId)) 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 (AllowAllBundleIds != false) hash ^= AllowAllBundleIds.GetHashCode(); + hash ^= allowedBundleIds_.GetHashCode(); + if (appleDeveloperId_ != null) hash ^= AppleDeveloperId.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 + allowedBundleIds_.WriteTo(output, _repeated_allowedBundleIds_codec); + if (AllowAllBundleIds != false) { + output.WriteRawTag(16); + output.WriteBool(AllowAllBundleIds); + } + if (appleDeveloperId_ != null) { + output.WriteRawTag(26); + output.WriteMessage(AppleDeveloperId); + } + 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) { + allowedBundleIds_.WriteTo(ref output, _repeated_allowedBundleIds_codec); + if (AllowAllBundleIds != false) { + output.WriteRawTag(16); + output.WriteBool(AllowAllBundleIds); + } + if (appleDeveloperId_ != null) { + output.WriteRawTag(26); + output.WriteMessage(AppleDeveloperId); + } + 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 (AllowAllBundleIds != false) { + size += 1 + 1; + } + size += allowedBundleIds_.CalculateSize(_repeated_allowedBundleIds_codec); + if (appleDeveloperId_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AppleDeveloperId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(IOSKeySettings other) { + if (other == null) { + return; + } + if (other.AllowAllBundleIds != false) { + AllowAllBundleIds = other.AllowAllBundleIds; + } + allowedBundleIds_.Add(other.allowedBundleIds_); + if (other.appleDeveloperId_ != null) { + if (appleDeveloperId_ == null) { + AppleDeveloperId = new global::Google.Cloud.RecaptchaEnterprise.V1.AppleDeveloperId(); + } + AppleDeveloperId.MergeFrom(other.AppleDeveloperId); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + allowedBundleIds_.AddEntriesFrom(input, _repeated_allowedBundleIds_codec); + break; + } + case 16: { + AllowAllBundleIds = input.ReadBool(); + break; + } + case 26: { + if (appleDeveloperId_ == null) { + AppleDeveloperId = new global::Google.Cloud.RecaptchaEnterprise.V1.AppleDeveloperId(); + } + input.ReadMessage(AppleDeveloperId); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + allowedBundleIds_.AddEntriesFrom(ref input, _repeated_allowedBundleIds_codec); + break; + } + case 16: { + AllowAllBundleIds = input.ReadBool(); + break; + } + case 26: { + if (appleDeveloperId_ == null) { + AppleDeveloperId = new global::Google.Cloud.RecaptchaEnterprise.V1.AppleDeveloperId(); + } + input.ReadMessage(AppleDeveloperId); + break; + } + } + } + } + #endif + + } + + /// + /// Contains fields that are required to perform Apple-specific integrity checks. + /// + public sealed partial class AppleDeveloperId : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppleDeveloperId()); + 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.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[37]; } + } + + [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 AppleDeveloperId() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppleDeveloperId(AppleDeveloperId other) : this() { + privateKey_ = other.privateKey_; + keyId_ = other.keyId_; + teamId_ = other.teamId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppleDeveloperId Clone() { + return new AppleDeveloperId(this); + } + + /// Field number for the "private_key" field. + public const int PrivateKeyFieldNumber = 1; + private string privateKey_ = ""; + /// + /// Required. Input only. A private key (downloaded as a text file with a .p8 + /// file extension) generated for your Apple Developer account. Ensure that + /// Apple DeviceCheck is enabled for the private key. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PrivateKey { + get { return privateKey_; } + set { + privateKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "key_id" field. + public const int KeyIdFieldNumber = 2; + private string keyId_ = ""; + /// + /// Required. The Apple developer key ID (10-character string). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string KeyId { + get { return keyId_; } + set { + keyId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "team_id" field. + public const int TeamIdFieldNumber = 3; + private string teamId_ = ""; + /// + /// Required. The Apple team ID (10-character string) owning the provisioning + /// profile used to build your application. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TeamId { + get { return teamId_; } + set { + teamId_ = 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 AppleDeveloperId); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AppleDeveloperId other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (PrivateKey != other.PrivateKey) return false; + if (KeyId != other.KeyId) return false; + if (TeamId != other.TeamId) 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 (PrivateKey.Length != 0) hash ^= PrivateKey.GetHashCode(); + if (KeyId.Length != 0) hash ^= KeyId.GetHashCode(); + if (TeamId.Length != 0) hash ^= TeamId.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 (PrivateKey.Length != 0) { + output.WriteRawTag(10); + output.WriteString(PrivateKey); + } + if (KeyId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(KeyId); + } + if (TeamId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(TeamId); + } + 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 (PrivateKey.Length != 0) { + output.WriteRawTag(10); + output.WriteString(PrivateKey); + } + if (KeyId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(KeyId); + } + if (TeamId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(TeamId); + } + 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 (PrivateKey.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PrivateKey); + } + if (KeyId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(KeyId); + } + if (TeamId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TeamId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AppleDeveloperId other) { + if (other == null) { + return; + } + if (other.PrivateKey.Length != 0) { + PrivateKey = other.PrivateKey; + } + if (other.KeyId.Length != 0) { + KeyId = other.KeyId; + } + if (other.TeamId.Length != 0) { + TeamId = other.TeamId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + PrivateKey = input.ReadString(); + break; + } + case 18: { + KeyId = input.ReadString(); + break; + } + case 26: { + TeamId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + PrivateKey = input.ReadString(); + break; + } + case 18: { + KeyId = input.ReadString(); + break; + } + case 26: { + TeamId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Score distribution. + /// + public sealed partial class ScoreDistribution : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ScoreDistribution()); + 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.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[38]; } + } + + [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 ScoreDistribution() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ScoreDistribution(ScoreDistribution other) : this() { + scoreBuckets_ = other.scoreBuckets_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ScoreDistribution Clone() { + return new ScoreDistribution(this); + } + + /// Field number for the "score_buckets" field. + public const int ScoreBucketsFieldNumber = 1; + private static readonly pbc::MapField.Codec _map_scoreBuckets_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt64(16, 0L), 10); + private readonly pbc::MapField scoreBuckets_ = new pbc::MapField(); + /// + /// Map key is score value multiplied by 100. The scores are discrete values + /// between [0, 1]. The maximum number of buckets is on order of a few dozen, + /// but typically much lower (ie. 10). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField ScoreBuckets { + get { return scoreBuckets_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ScoreDistribution); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ScoreDistribution other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!ScoreBuckets.Equals(other.ScoreBuckets)) 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 ^= ScoreBuckets.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 + scoreBuckets_.WriteTo(output, _map_scoreBuckets_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) { + scoreBuckets_.WriteTo(ref output, _map_scoreBuckets_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 += scoreBuckets_.CalculateSize(_map_scoreBuckets_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ScoreDistribution other) { + if (other == null) { + return; + } + scoreBuckets_.MergeFrom(other.scoreBuckets_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + scoreBuckets_.AddEntriesFrom(input, _map_scoreBuckets_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + scoreBuckets_.AddEntriesFrom(ref input, _map_scoreBuckets_codec); + break; + } + } + } + } + #endif + + } + + /// + /// Metrics related to scoring. + /// + public sealed partial class ScoreMetrics : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ScoreMetrics()); + 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.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[39]; } + } + + [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 ScoreMetrics() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ScoreMetrics(ScoreMetrics other) : this() { + overallMetrics_ = other.overallMetrics_ != null ? other.overallMetrics_.Clone() : null; + actionMetrics_ = other.actionMetrics_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ScoreMetrics Clone() { + return new ScoreMetrics(this); + } + + /// Field number for the "overall_metrics" field. + public const int OverallMetricsFieldNumber = 1; + private global::Google.Cloud.RecaptchaEnterprise.V1.ScoreDistribution overallMetrics_; + /// + /// Aggregated score metrics for all traffic. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.RecaptchaEnterprise.V1.ScoreDistribution OverallMetrics { + get { return overallMetrics_; } + set { + overallMetrics_ = value; + } + } + + /// Field number for the "action_metrics" field. + public const int ActionMetricsFieldNumber = 2; + private static readonly pbc::MapField.Codec _map_actionMetrics_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Google.Cloud.RecaptchaEnterprise.V1.ScoreDistribution.Parser), 18); + private readonly pbc::MapField actionMetrics_ = new pbc::MapField(); + /// + /// Action-based metrics. The map key is the action name which specified by the + /// site owners at time of the "execute" client-side call. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField ActionMetrics { + get { return actionMetrics_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ScoreMetrics); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ScoreMetrics other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(OverallMetrics, other.OverallMetrics)) return false; + if (!ActionMetrics.Equals(other.ActionMetrics)) 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 (overallMetrics_ != null) hash ^= OverallMetrics.GetHashCode(); + hash ^= ActionMetrics.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 (overallMetrics_ != null) { + output.WriteRawTag(10); + output.WriteMessage(OverallMetrics); + } + actionMetrics_.WriteTo(output, _map_actionMetrics_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 (overallMetrics_ != null) { + output.WriteRawTag(10); + output.WriteMessage(OverallMetrics); + } + actionMetrics_.WriteTo(ref output, _map_actionMetrics_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 (overallMetrics_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(OverallMetrics); + } + size += actionMetrics_.CalculateSize(_map_actionMetrics_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ScoreMetrics other) { + if (other == null) { + return; + } + if (other.overallMetrics_ != null) { + if (overallMetrics_ == null) { + OverallMetrics = new global::Google.Cloud.RecaptchaEnterprise.V1.ScoreDistribution(); + } + OverallMetrics.MergeFrom(other.OverallMetrics); + } + actionMetrics_.MergeFrom(other.actionMetrics_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (overallMetrics_ == null) { + OverallMetrics = new global::Google.Cloud.RecaptchaEnterprise.V1.ScoreDistribution(); + } + input.ReadMessage(OverallMetrics); + break; + } + case 18: { + actionMetrics_.AddEntriesFrom(input, _map_actionMetrics_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (overallMetrics_ == null) { + OverallMetrics = new global::Google.Cloud.RecaptchaEnterprise.V1.ScoreDistribution(); + } + input.ReadMessage(OverallMetrics); + break; + } + case 18: { + actionMetrics_.AddEntriesFrom(ref input, _map_actionMetrics_codec); + break; + } + } + } + } + #endif + + } + + /// + /// Metrics related to challenges. + /// + public sealed partial class ChallengeMetrics : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChallengeMetrics()); + 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.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[40]; } + } + + [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 ChallengeMetrics() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChallengeMetrics(ChallengeMetrics other) : this() { + pageloadCount_ = other.pageloadCount_; + nocaptchaCount_ = other.nocaptchaCount_; + failedCount_ = other.failedCount_; + passedCount_ = other.passedCount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChallengeMetrics Clone() { + return new ChallengeMetrics(this); + } + + /// Field number for the "pageload_count" field. + public const int PageloadCountFieldNumber = 1; + private long pageloadCount_; + /// + /// Count of reCAPTCHA checkboxes or badges rendered. This is mostly equivalent + /// to a count of pageloads for pages that include reCAPTCHA. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long PageloadCount { + get { return pageloadCount_; } + set { + pageloadCount_ = value; + } + } + + /// Field number for the "nocaptcha_count" field. + public const int NocaptchaCountFieldNumber = 2; + private long nocaptchaCount_; + /// + /// Count of nocaptchas (successful verification without a challenge) issued. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long NocaptchaCount { + get { return nocaptchaCount_; } + set { + nocaptchaCount_ = value; + } + } + + /// Field number for the "failed_count" field. + public const int FailedCountFieldNumber = 3; + private long failedCount_; + /// + /// Count of submitted challenge solutions that were incorrect or otherwise + /// deemed suspicious such that a subsequent challenge was triggered. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long FailedCount { + get { return failedCount_; } + set { + failedCount_ = value; + } + } + + /// Field number for the "passed_count" field. + public const int PassedCountFieldNumber = 4; + private long passedCount_; + /// + /// Count of nocaptchas (successful verification without a challenge) plus + /// submitted challenge solutions that were correct and resulted in + /// verification. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long PassedCount { + get { return passedCount_; } + set { + passedCount_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChallengeMetrics); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChallengeMetrics other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (PageloadCount != other.PageloadCount) return false; + if (NocaptchaCount != other.NocaptchaCount) return false; + if (FailedCount != other.FailedCount) return false; + if (PassedCount != other.PassedCount) 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 (PageloadCount != 0L) hash ^= PageloadCount.GetHashCode(); + if (NocaptchaCount != 0L) hash ^= NocaptchaCount.GetHashCode(); + if (FailedCount != 0L) hash ^= FailedCount.GetHashCode(); + if (PassedCount != 0L) hash ^= PassedCount.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 (PageloadCount != 0L) { + output.WriteRawTag(8); + output.WriteInt64(PageloadCount); + } + if (NocaptchaCount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(NocaptchaCount); + } + if (FailedCount != 0L) { + output.WriteRawTag(24); + output.WriteInt64(FailedCount); + } + if (PassedCount != 0L) { + output.WriteRawTag(32); + output.WriteInt64(PassedCount); + } + 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 (PageloadCount != 0L) { + output.WriteRawTag(8); + output.WriteInt64(PageloadCount); + } + if (NocaptchaCount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(NocaptchaCount); + } + if (FailedCount != 0L) { + output.WriteRawTag(24); + output.WriteInt64(FailedCount); + } + if (PassedCount != 0L) { + output.WriteRawTag(32); + output.WriteInt64(PassedCount); + } + 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 (PageloadCount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(PageloadCount); + } + if (NocaptchaCount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(NocaptchaCount); + } + if (FailedCount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(FailedCount); + } + if (PassedCount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(PassedCount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChallengeMetrics other) { + if (other == null) { + return; + } + if (other.PageloadCount != 0L) { + PageloadCount = other.PageloadCount; + } + if (other.NocaptchaCount != 0L) { + NocaptchaCount = other.NocaptchaCount; + } + if (other.FailedCount != 0L) { + FailedCount = other.FailedCount; + } + if (other.PassedCount != 0L) { + PassedCount = other.PassedCount; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + PageloadCount = input.ReadInt64(); + break; + } + case 16: { + NocaptchaCount = input.ReadInt64(); + break; + } + case 24: { + FailedCount = input.ReadInt64(); + break; + } + case 32: { + PassedCount = input.ReadInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + PageloadCount = input.ReadInt64(); + break; + } + case 16: { + NocaptchaCount = input.ReadInt64(); + break; + } + case 24: { + FailedCount = input.ReadInt64(); + break; + } + case 32: { + PassedCount = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + /// + /// Policy config assessment. + /// + public sealed partial class FirewallPolicyAssessment : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FirewallPolicyAssessment()); + 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.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[41]; } + } + + [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 FirewallPolicyAssessment() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FirewallPolicyAssessment(FirewallPolicyAssessment other) : this() { + error_ = other.error_ != null ? other.error_.Clone() : null; + firewallPolicy_ = other.firewallPolicy_ != null ? other.firewallPolicy_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FirewallPolicyAssessment Clone() { + return new FirewallPolicyAssessment(this); + } + + /// Field number for the "error" field. + public const int ErrorFieldNumber = 5; + private global::Google.Rpc.Status error_; + /// + /// If the processing of a policy config fails, an error will be populated + /// and the firewall_policy will be left empty. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Rpc.Status Error { + get { return error_; } + set { + error_ = value; + } + } + + /// Field number for the "firewall_policy" field. + public const int FirewallPolicyFieldNumber = 8; + private global::Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy firewallPolicy_; + /// + /// Output only. The policy that matched the request. If more than one policy + /// may match, this is the first match. If no policy matches the incoming + /// request, the policy field will be left empty. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy FirewallPolicy { + get { return firewallPolicy_; } + set { + firewallPolicy_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as FirewallPolicyAssessment); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(FirewallPolicyAssessment other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Error, other.Error)) return false; + if (!object.Equals(FirewallPolicy, other.FirewallPolicy)) 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 (error_ != null) hash ^= Error.GetHashCode(); + if (firewallPolicy_ != null) hash ^= FirewallPolicy.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 (error_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Error); + } + if (firewallPolicy_ != null) { + output.WriteRawTag(66); + output.WriteMessage(FirewallPolicy); + } + 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 (error_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Error); + } + if (firewallPolicy_ != null) { + output.WriteRawTag(66); + output.WriteMessage(FirewallPolicy); + } + 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 (error_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error); + } + if (firewallPolicy_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(FirewallPolicy); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(FirewallPolicyAssessment other) { + if (other == null) { + return; + } + if (other.error_ != null) { + if (error_ == null) { + Error = new global::Google.Rpc.Status(); + } + Error.MergeFrom(other.Error); + } + if (other.firewallPolicy_ != null) { + if (firewallPolicy_ == null) { + FirewallPolicy = new global::Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy(); + } + FirewallPolicy.MergeFrom(other.FirewallPolicy); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 42: { + if (error_ == null) { + Error = new global::Google.Rpc.Status(); + } + input.ReadMessage(Error); + break; + } + case 66: { + if (firewallPolicy_ == null) { + FirewallPolicy = new global::Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy(); + } + input.ReadMessage(FirewallPolicy); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 42: { + if (error_ == null) { + Error = new global::Google.Rpc.Status(); + } + input.ReadMessage(Error); + break; + } + case 66: { + if (firewallPolicy_ == null) { + FirewallPolicy = new global::Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy(); + } + input.ReadMessage(FirewallPolicy); + break; + } + } + } + } + #endif + + } + + /// + /// An individual action. Each action represents what to do if a policy + /// matches. + /// + public sealed partial class FirewallAction : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FirewallAction()); + 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.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[42]; } + } + + [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 FirewallAction() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FirewallAction(FirewallAction other) : this() { + switch (other.FirewallActionOneofCase) { + case FirewallActionOneofOneofCase.Allow: + Allow = other.Allow.Clone(); + break; + case FirewallActionOneofOneofCase.Block: + Block = other.Block.Clone(); + break; + case FirewallActionOneofOneofCase.Redirect: + Redirect = other.Redirect.Clone(); + break; + case FirewallActionOneofOneofCase.Substitute: + Substitute = other.Substitute.Clone(); + break; + case FirewallActionOneofOneofCase.SetHeader: + SetHeader = other.SetHeader.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FirewallAction Clone() { + return new FirewallAction(this); + } + + /// Field number for the "allow" field. + public const int AllowFieldNumber = 1; + /// + /// The user request did not match any policy and should be allowed + /// access to the requested resource. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.RecaptchaEnterprise.V1.FirewallAction.Types.AllowAction Allow { + get { return firewallActionOneofCase_ == FirewallActionOneofOneofCase.Allow ? (global::Google.Cloud.RecaptchaEnterprise.V1.FirewallAction.Types.AllowAction) firewallActionOneof_ : null; } + set { + firewallActionOneof_ = value; + firewallActionOneofCase_ = value == null ? FirewallActionOneofOneofCase.None : FirewallActionOneofOneofCase.Allow; + } + } + + /// Field number for the "block" field. + public const int BlockFieldNumber = 2; + /// + /// This action will deny access to a given page. The user will get an HTTP + /// error code. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.RecaptchaEnterprise.V1.FirewallAction.Types.BlockAction Block { + get { return firewallActionOneofCase_ == FirewallActionOneofOneofCase.Block ? (global::Google.Cloud.RecaptchaEnterprise.V1.FirewallAction.Types.BlockAction) firewallActionOneof_ : null; } + set { + firewallActionOneof_ = value; + firewallActionOneofCase_ = value == null ? FirewallActionOneofOneofCase.None : FirewallActionOneofOneofCase.Block; + } + } + + /// Field number for the "redirect" field. + public const int RedirectFieldNumber = 5; + /// + /// This action will redirect the request to a ReCaptcha interstitial to + /// attach a token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.RecaptchaEnterprise.V1.FirewallAction.Types.RedirectAction Redirect { + get { return firewallActionOneofCase_ == FirewallActionOneofOneofCase.Redirect ? (global::Google.Cloud.RecaptchaEnterprise.V1.FirewallAction.Types.RedirectAction) firewallActionOneof_ : null; } + set { + firewallActionOneof_ = value; + firewallActionOneofCase_ = value == null ? FirewallActionOneofOneofCase.None : FirewallActionOneofOneofCase.Redirect; + } + } + + /// Field number for the "substitute" field. + public const int SubstituteFieldNumber = 3; + /// + /// This action will transparently serve a different page to an offending + /// user. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.RecaptchaEnterprise.V1.FirewallAction.Types.SubstituteAction Substitute { + get { return firewallActionOneofCase_ == FirewallActionOneofOneofCase.Substitute ? (global::Google.Cloud.RecaptchaEnterprise.V1.FirewallAction.Types.SubstituteAction) firewallActionOneof_ : null; } + set { + firewallActionOneof_ = value; + firewallActionOneofCase_ = value == null ? FirewallActionOneofOneofCase.None : FirewallActionOneofOneofCase.Substitute; + } + } + + /// Field number for the "set_header" field. + public const int SetHeaderFieldNumber = 4; + /// + /// This action will set a custom header but allow the request to continue + /// to the customer backend. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.RecaptchaEnterprise.V1.FirewallAction.Types.SetHeaderAction SetHeader { + get { return firewallActionOneofCase_ == FirewallActionOneofOneofCase.SetHeader ? (global::Google.Cloud.RecaptchaEnterprise.V1.FirewallAction.Types.SetHeaderAction) firewallActionOneof_ : null; } + set { + firewallActionOneof_ = value; + firewallActionOneofCase_ = value == null ? FirewallActionOneofOneofCase.None : FirewallActionOneofOneofCase.SetHeader; + } + } + + private object firewallActionOneof_; + /// Enum of possible cases for the "firewall_action_oneof" oneof. + public enum FirewallActionOneofOneofCase { + None = 0, + Allow = 1, + Block = 2, + Redirect = 5, + Substitute = 3, + SetHeader = 4, + } + private FirewallActionOneofOneofCase firewallActionOneofCase_ = FirewallActionOneofOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FirewallActionOneofOneofCase FirewallActionOneofCase { + get { return firewallActionOneofCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFirewallActionOneof() { + firewallActionOneofCase_ = FirewallActionOneofOneofCase.None; + firewallActionOneof_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as FirewallAction); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(FirewallAction other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Allow, other.Allow)) return false; + if (!object.Equals(Block, other.Block)) return false; + if (!object.Equals(Redirect, other.Redirect)) return false; + if (!object.Equals(Substitute, other.Substitute)) return false; + if (!object.Equals(SetHeader, other.SetHeader)) return false; + if (FirewallActionOneofCase != other.FirewallActionOneofCase) 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 (firewallActionOneofCase_ == FirewallActionOneofOneofCase.Allow) hash ^= Allow.GetHashCode(); + if (firewallActionOneofCase_ == FirewallActionOneofOneofCase.Block) hash ^= Block.GetHashCode(); + if (firewallActionOneofCase_ == FirewallActionOneofOneofCase.Redirect) hash ^= Redirect.GetHashCode(); + if (firewallActionOneofCase_ == FirewallActionOneofOneofCase.Substitute) hash ^= Substitute.GetHashCode(); + if (firewallActionOneofCase_ == FirewallActionOneofOneofCase.SetHeader) hash ^= SetHeader.GetHashCode(); + hash ^= (int) firewallActionOneofCase_; + 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 (firewallActionOneofCase_ == FirewallActionOneofOneofCase.Allow) { + output.WriteRawTag(10); + output.WriteMessage(Allow); + } + if (firewallActionOneofCase_ == FirewallActionOneofOneofCase.Block) { + output.WriteRawTag(18); + output.WriteMessage(Block); + } + if (firewallActionOneofCase_ == FirewallActionOneofOneofCase.Substitute) { + output.WriteRawTag(26); + output.WriteMessage(Substitute); + } + if (firewallActionOneofCase_ == FirewallActionOneofOneofCase.SetHeader) { + output.WriteRawTag(34); + output.WriteMessage(SetHeader); + } + if (firewallActionOneofCase_ == FirewallActionOneofOneofCase.Redirect) { + output.WriteRawTag(42); + output.WriteMessage(Redirect); + } + 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 (firewallActionOneofCase_ == FirewallActionOneofOneofCase.Allow) { + output.WriteRawTag(10); + output.WriteMessage(Allow); + } + if (firewallActionOneofCase_ == FirewallActionOneofOneofCase.Block) { + output.WriteRawTag(18); + output.WriteMessage(Block); + } + if (firewallActionOneofCase_ == FirewallActionOneofOneofCase.Substitute) { + output.WriteRawTag(26); + output.WriteMessage(Substitute); + } + if (firewallActionOneofCase_ == FirewallActionOneofOneofCase.SetHeader) { + output.WriteRawTag(34); + output.WriteMessage(SetHeader); + } + if (firewallActionOneofCase_ == FirewallActionOneofOneofCase.Redirect) { + output.WriteRawTag(42); + output.WriteMessage(Redirect); + } + 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 (firewallActionOneofCase_ == FirewallActionOneofOneofCase.Allow) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Allow); + } + if (firewallActionOneofCase_ == FirewallActionOneofOneofCase.Block) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Block); + } + if (firewallActionOneofCase_ == FirewallActionOneofOneofCase.Redirect) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Redirect); + } + if (firewallActionOneofCase_ == FirewallActionOneofOneofCase.Substitute) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Substitute); + } + if (firewallActionOneofCase_ == FirewallActionOneofOneofCase.SetHeader) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SetHeader); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(FirewallAction other) { + if (other == null) { + return; + } + switch (other.FirewallActionOneofCase) { + case FirewallActionOneofOneofCase.Allow: + if (Allow == null) { + Allow = new global::Google.Cloud.RecaptchaEnterprise.V1.FirewallAction.Types.AllowAction(); + } + Allow.MergeFrom(other.Allow); + break; + case FirewallActionOneofOneofCase.Block: + if (Block == null) { + Block = new global::Google.Cloud.RecaptchaEnterprise.V1.FirewallAction.Types.BlockAction(); + } + Block.MergeFrom(other.Block); + break; + case FirewallActionOneofOneofCase.Redirect: + if (Redirect == null) { + Redirect = new global::Google.Cloud.RecaptchaEnterprise.V1.FirewallAction.Types.RedirectAction(); + } + Redirect.MergeFrom(other.Redirect); + break; + case FirewallActionOneofOneofCase.Substitute: + if (Substitute == null) { + Substitute = new global::Google.Cloud.RecaptchaEnterprise.V1.FirewallAction.Types.SubstituteAction(); + } + Substitute.MergeFrom(other.Substitute); + break; + case FirewallActionOneofOneofCase.SetHeader: + if (SetHeader == null) { + SetHeader = new global::Google.Cloud.RecaptchaEnterprise.V1.FirewallAction.Types.SetHeaderAction(); + } + SetHeader.MergeFrom(other.SetHeader); + 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Google.Cloud.RecaptchaEnterprise.V1.FirewallAction.Types.AllowAction subBuilder = new global::Google.Cloud.RecaptchaEnterprise.V1.FirewallAction.Types.AllowAction(); + if (firewallActionOneofCase_ == FirewallActionOneofOneofCase.Allow) { + subBuilder.MergeFrom(Allow); + } + input.ReadMessage(subBuilder); + Allow = subBuilder; + break; + } + case 18: { + global::Google.Cloud.RecaptchaEnterprise.V1.FirewallAction.Types.BlockAction subBuilder = new global::Google.Cloud.RecaptchaEnterprise.V1.FirewallAction.Types.BlockAction(); + if (firewallActionOneofCase_ == FirewallActionOneofOneofCase.Block) { + subBuilder.MergeFrom(Block); + } + input.ReadMessage(subBuilder); + Block = subBuilder; + break; + } + case 26: { + global::Google.Cloud.RecaptchaEnterprise.V1.FirewallAction.Types.SubstituteAction subBuilder = new global::Google.Cloud.RecaptchaEnterprise.V1.FirewallAction.Types.SubstituteAction(); + if (firewallActionOneofCase_ == FirewallActionOneofOneofCase.Substitute) { + subBuilder.MergeFrom(Substitute); + } + input.ReadMessage(subBuilder); + Substitute = subBuilder; + break; + } + case 34: { + global::Google.Cloud.RecaptchaEnterprise.V1.FirewallAction.Types.SetHeaderAction subBuilder = new global::Google.Cloud.RecaptchaEnterprise.V1.FirewallAction.Types.SetHeaderAction(); + if (firewallActionOneofCase_ == FirewallActionOneofOneofCase.SetHeader) { + subBuilder.MergeFrom(SetHeader); + } + input.ReadMessage(subBuilder); + SetHeader = subBuilder; + break; + } + case 42: { + global::Google.Cloud.RecaptchaEnterprise.V1.FirewallAction.Types.RedirectAction subBuilder = new global::Google.Cloud.RecaptchaEnterprise.V1.FirewallAction.Types.RedirectAction(); + if (firewallActionOneofCase_ == FirewallActionOneofOneofCase.Redirect) { + subBuilder.MergeFrom(Redirect); + } + input.ReadMessage(subBuilder); + Redirect = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Google.Cloud.RecaptchaEnterprise.V1.FirewallAction.Types.AllowAction subBuilder = new global::Google.Cloud.RecaptchaEnterprise.V1.FirewallAction.Types.AllowAction(); + if (firewallActionOneofCase_ == FirewallActionOneofOneofCase.Allow) { + subBuilder.MergeFrom(Allow); + } + input.ReadMessage(subBuilder); + Allow = subBuilder; + break; + } + case 18: { + global::Google.Cloud.RecaptchaEnterprise.V1.FirewallAction.Types.BlockAction subBuilder = new global::Google.Cloud.RecaptchaEnterprise.V1.FirewallAction.Types.BlockAction(); + if (firewallActionOneofCase_ == FirewallActionOneofOneofCase.Block) { + subBuilder.MergeFrom(Block); + } + input.ReadMessage(subBuilder); + Block = subBuilder; + break; + } + case 26: { + global::Google.Cloud.RecaptchaEnterprise.V1.FirewallAction.Types.SubstituteAction subBuilder = new global::Google.Cloud.RecaptchaEnterprise.V1.FirewallAction.Types.SubstituteAction(); + if (firewallActionOneofCase_ == FirewallActionOneofOneofCase.Substitute) { + subBuilder.MergeFrom(Substitute); + } + input.ReadMessage(subBuilder); + Substitute = subBuilder; + break; + } + case 34: { + global::Google.Cloud.RecaptchaEnterprise.V1.FirewallAction.Types.SetHeaderAction subBuilder = new global::Google.Cloud.RecaptchaEnterprise.V1.FirewallAction.Types.SetHeaderAction(); + if (firewallActionOneofCase_ == FirewallActionOneofOneofCase.SetHeader) { + subBuilder.MergeFrom(SetHeader); + } + input.ReadMessage(subBuilder); + SetHeader = subBuilder; + break; + } + case 42: { + global::Google.Cloud.RecaptchaEnterprise.V1.FirewallAction.Types.RedirectAction subBuilder = new global::Google.Cloud.RecaptchaEnterprise.V1.FirewallAction.Types.RedirectAction(); + if (firewallActionOneofCase_ == FirewallActionOneofOneofCase.Redirect) { + subBuilder.MergeFrom(Redirect); + } + input.ReadMessage(subBuilder); + Redirect = subBuilder; + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the FirewallAction message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// An allow action continues processing a request unimpeded. + /// + public sealed partial class AllowAction : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AllowAction()); + 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.RecaptchaEnterprise.V1.FirewallAction.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 AllowAction() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AllowAction(AllowAction other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AllowAction Clone() { + return new AllowAction(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AllowAction); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AllowAction other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AllowAction other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + /// + /// A block action serves an HTTP error code a prevents the request from + /// hitting the backend. + /// + public sealed partial class BlockAction : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BlockAction()); + 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.RecaptchaEnterprise.V1.FirewallAction.Descriptor.NestedTypes[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 BlockAction() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlockAction(BlockAction other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BlockAction Clone() { + return new BlockAction(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BlockAction); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BlockAction other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BlockAction other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + /// + /// A redirect action returns a 307 (temporary redirect) response, pointing + /// the user to a ReCaptcha interstitial page to attach a token. + /// + public sealed partial class RedirectAction : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RedirectAction()); + 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.RecaptchaEnterprise.V1.FirewallAction.Descriptor.NestedTypes[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 RedirectAction() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RedirectAction(RedirectAction other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RedirectAction Clone() { + return new RedirectAction(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RedirectAction); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RedirectAction other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RedirectAction other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + /// + /// A substitute action transparently serves a different page than the one + /// requested. + /// + public sealed partial class SubstituteAction : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SubstituteAction()); + 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.RecaptchaEnterprise.V1.FirewallAction.Descriptor.NestedTypes[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 SubstituteAction() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SubstituteAction(SubstituteAction other) : this() { + path_ = other.path_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SubstituteAction Clone() { + return new SubstituteAction(this); + } + + /// Field number for the "path" field. + public const int PathFieldNumber = 1; + private string path_ = ""; + /// + /// The address to redirect to. The target is a relative path in the + /// current host. Example: "/blog/404.html". + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Path { + get { return path_; } + set { + path_ = 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 SubstituteAction); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SubstituteAction other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Path != other.Path) 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 (Path.Length != 0) hash ^= Path.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 (Path.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Path); + } + 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 (Path.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Path); + } + 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 (Path.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Path); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SubstituteAction other) { + if (other == null) { + return; + } + if (other.Path.Length != 0) { + Path = other.Path; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Path = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Path = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// A set header action sets a header and forwards the request to the + /// backend. This can be used to trigger custom protection implemented on the + /// backend. + /// + public sealed partial class SetHeaderAction : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetHeaderAction()); + 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.RecaptchaEnterprise.V1.FirewallAction.Descriptor.NestedTypes[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 SetHeaderAction() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetHeaderAction(SetHeaderAction other) : this() { + key_ = other.key_; + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetHeaderAction Clone() { + return new SetHeaderAction(this); + } + + /// Field number for the "key" field. + public const int KeyFieldNumber = 1; + private string key_ = ""; + /// + /// The header key to set in the request to the backend server. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Key { + get { return key_; } + set { + key_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 2; + private string value_ = ""; + /// + /// The header value to set in the request to the backend server. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Value { + get { return value_; } + set { + value_ = 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 SetHeaderAction); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SetHeaderAction other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Key != other.Key) return false; + if (Value != other.Value) 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 (Key.Length != 0) hash ^= Key.GetHashCode(); + if (Value.Length != 0) hash ^= Value.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 (Key.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Key); + } + if (Value.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Value); + } + 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 (Key.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Key); + } + if (Value.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Value); + } + 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 (Key.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Key); + } + if (Value.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); } + return size; } - } - #endif - } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (overallMetrics_ == null) { - OverallMetrics = new global::Google.Cloud.RecaptchaEnterprise.V1.ScoreDistribution(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SetHeaderAction other) { + if (other == null) { + return; + } + if (other.Key.Length != 0) { + Key = other.Key; + } + if (other.Value.Length != 0) { + Value = other.Value; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Key = input.ReadString(); + break; + } + case 18: { + Value = input.ReadString(); + break; + } } - input.ReadMessage(OverallMetrics); - break; } - case 18: { - actionMetrics_.AddEntriesFrom(ref input, _map_actionMetrics_codec); - break; + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Key = input.ReadString(); + break; + } + case 18: { + Value = input.ReadString(); + break; + } + } } } + #endif + } + } - #endif + #endregion } /// - /// Metrics related to challenges. + /// A FirewallPolicy represents a single matching pattern and resulting actions + /// to take. /// - public sealed partial class ChallengeMetrics : pb::IMessage + public sealed partial class FirewallPolicy : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChallengeMetrics()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FirewallPolicy()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + 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.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[32]; } + get { return global::Google.Cloud.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[43]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -12378,7 +17541,7 @@ public sealed partial class ChallengeMetrics : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ChallengeMetrics() { + public FirewallPolicy() { OnConstruction(); } @@ -12386,103 +17549,132 @@ public ChallengeMetrics() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ChallengeMetrics(ChallengeMetrics other) : this() { - pageloadCount_ = other.pageloadCount_; - nocaptchaCount_ = other.nocaptchaCount_; - failedCount_ = other.failedCount_; - passedCount_ = other.passedCount_; + public FirewallPolicy(FirewallPolicy other) : this() { + name_ = other.name_; + description_ = other.description_; + path_ = other.path_; + condition_ = other.condition_; + actions_ = other.actions_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ChallengeMetrics Clone() { - return new ChallengeMetrics(this); + public FirewallPolicy Clone() { + return new FirewallPolicy(this); } - /// Field number for the "pageload_count" field. - public const int PageloadCountFieldNumber = 1; - private long pageloadCount_; + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; /// - /// Count of reCAPTCHA checkboxes or badges rendered. This is mostly equivalent - /// to a count of pageloads for pages that include reCAPTCHA. + /// The resource name for the FirewallPolicy in the format + /// `projects/{project}/firewallpolicies/{firewallpolicy}`. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long PageloadCount { - get { return pageloadCount_; } + public string Name { + get { return name_; } set { - pageloadCount_ = value; + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Field number for the "nocaptcha_count" field. - public const int NocaptchaCountFieldNumber = 2; - private long nocaptchaCount_; + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 2; + private string description_ = ""; /// - /// Count of nocaptchas (successful verification without a challenge) issued. + /// A description of what this policy aims to achieve, for convenience + /// purposes. The description can at most include 256 UTF-8 characters. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long NocaptchaCount { - get { return nocaptchaCount_; } + public string Description { + get { return description_; } set { - nocaptchaCount_ = value; + description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Field number for the "failed_count" field. - public const int FailedCountFieldNumber = 3; - private long failedCount_; + /// Field number for the "path" field. + public const int PathFieldNumber = 4; + private string path_ = ""; /// - /// Count of submitted challenge solutions that were incorrect or otherwise - /// deemed suspicious such that a subsequent challenge was triggered. + /// The path for which this policy applies, specified as a glob pattern. + /// For more information on glob, see the [manual + /// page](https://man7.org/linux/man-pages/man7/glob.7.html). + /// A path has a max length of 200 characters. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long FailedCount { - get { return failedCount_; } + public string Path { + get { return path_; } set { - failedCount_ = value; + path_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Field number for the "passed_count" field. - public const int PassedCountFieldNumber = 4; - private long passedCount_; + /// Field number for the "condition" field. + public const int ConditionFieldNumber = 5; + private string condition_ = ""; /// - /// Count of nocaptchas (successful verification without a challenge) plus - /// submitted challenge solutions that were correct and resulted in - /// verification. + /// A CEL (Common Expression Language) conditional expression that specifies if + /// this policy applies to an incoming user request. If this condition + /// evaluates to true and the requested path matched the path pattern, the + /// associated actions should be executed by the caller. The condition string + /// is checked for CEL syntax correctness on creation. For more information, + /// see the [CEL spec](https://github.com/google/cel-spec) and its [language + /// definition](https://github.com/google/cel-spec/blob/master/doc/langdef.md). + /// A condition has a max length of 500 characters. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long PassedCount { - get { return passedCount_; } + public string Condition { + get { return condition_; } set { - passedCount_ = value; + condition_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Field number for the "actions" field. + public const int ActionsFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_actions_codec + = pb::FieldCodec.ForMessage(50, global::Google.Cloud.RecaptchaEnterprise.V1.FirewallAction.Parser); + private readonly pbc::RepeatedField actions_ = new pbc::RepeatedField(); + /// + /// The actions that the caller should take regarding user access. + /// There should be at most one terminal action. A terminal action is any + /// action that forces a response, such as `AllowAction`, + /// `BlockAction` or `SubstituteAction`. + /// Zero or more non-terminal actions such as `SetHeader` might be + /// specified. A single policy can contain up to 16 actions. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Actions { + get { return actions_; } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as ChallengeMetrics); + return Equals(other as FirewallPolicy); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ChallengeMetrics other) { + public bool Equals(FirewallPolicy other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (PageloadCount != other.PageloadCount) return false; - if (NocaptchaCount != other.NocaptchaCount) return false; - if (FailedCount != other.FailedCount) return false; - if (PassedCount != other.PassedCount) return false; + if (Name != other.Name) return false; + if (Description != other.Description) return false; + if (Path != other.Path) return false; + if (Condition != other.Condition) return false; + if(!actions_.Equals(other.actions_)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -12490,10 +17682,11 @@ public bool Equals(ChallengeMetrics other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (PageloadCount != 0L) hash ^= PageloadCount.GetHashCode(); - if (NocaptchaCount != 0L) hash ^= NocaptchaCount.GetHashCode(); - if (FailedCount != 0L) hash ^= FailedCount.GetHashCode(); - if (PassedCount != 0L) hash ^= PassedCount.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Description.Length != 0) hash ^= Description.GetHashCode(); + if (Path.Length != 0) hash ^= Path.GetHashCode(); + if (Condition.Length != 0) hash ^= Condition.GetHashCode(); + hash ^= actions_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -12512,22 +17705,23 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (PageloadCount != 0L) { - output.WriteRawTag(8); - output.WriteInt64(PageloadCount); + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); } - if (NocaptchaCount != 0L) { - output.WriteRawTag(16); - output.WriteInt64(NocaptchaCount); + if (Description.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Description); } - if (FailedCount != 0L) { - output.WriteRawTag(24); - output.WriteInt64(FailedCount); + if (Path.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Path); } - if (PassedCount != 0L) { - output.WriteRawTag(32); - output.WriteInt64(PassedCount); + if (Condition.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Condition); } + actions_.WriteTo(output, _repeated_actions_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -12538,22 +17732,23 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (PageloadCount != 0L) { - output.WriteRawTag(8); - output.WriteInt64(PageloadCount); + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); } - if (NocaptchaCount != 0L) { - output.WriteRawTag(16); - output.WriteInt64(NocaptchaCount); + if (Description.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Description); } - if (FailedCount != 0L) { - output.WriteRawTag(24); - output.WriteInt64(FailedCount); + if (Path.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Path); } - if (PassedCount != 0L) { - output.WriteRawTag(32); - output.WriteInt64(PassedCount); + if (Condition.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Condition); } + actions_.WriteTo(ref output, _repeated_actions_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -12564,18 +17759,19 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (PageloadCount != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(PageloadCount); + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); } - if (NocaptchaCount != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(NocaptchaCount); + if (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); } - if (FailedCount != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(FailedCount); + if (Path.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Path); } - if (PassedCount != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(PassedCount); + if (Condition.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Condition); } + size += actions_.CalculateSize(_repeated_actions_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -12584,22 +17780,23 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ChallengeMetrics other) { + public void MergeFrom(FirewallPolicy other) { if (other == null) { return; } - if (other.PageloadCount != 0L) { - PageloadCount = other.PageloadCount; + if (other.Name.Length != 0) { + Name = other.Name; } - if (other.NocaptchaCount != 0L) { - NocaptchaCount = other.NocaptchaCount; + if (other.Description.Length != 0) { + Description = other.Description; } - if (other.FailedCount != 0L) { - FailedCount = other.FailedCount; + if (other.Path.Length != 0) { + Path = other.Path; } - if (other.PassedCount != 0L) { - PassedCount = other.PassedCount; + if (other.Condition.Length != 0) { + Condition = other.Condition; } + actions_.Add(other.actions_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -12615,20 +17812,24 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 8: { - PageloadCount = input.ReadInt64(); + case 10: { + Name = input.ReadString(); break; } - case 16: { - NocaptchaCount = input.ReadInt64(); + case 18: { + Description = input.ReadString(); break; } - case 24: { - FailedCount = input.ReadInt64(); + case 34: { + Path = input.ReadString(); break; } - case 32: { - PassedCount = input.ReadInt64(); + case 42: { + Condition = input.ReadString(); + break; + } + case 50: { + actions_.AddEntriesFrom(input, _repeated_actions_codec); break; } } @@ -12646,20 +17847,24 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 8: { - PageloadCount = input.ReadInt64(); + case 10: { + Name = input.ReadString(); break; } - case 16: { - NocaptchaCount = input.ReadInt64(); + case 18: { + Description = input.ReadString(); break; } - case 24: { - FailedCount = input.ReadInt64(); + case 34: { + Path = input.ReadString(); break; } - case 32: { - PassedCount = input.ReadInt64(); + case 42: { + Condition = input.ReadString(); + break; + } + case 50: { + actions_.AddEntriesFrom(ref input, _repeated_actions_codec); break; } } @@ -12686,7 +17891,7 @@ public sealed partial class ListRelatedAccountGroupMembershipsRequest : pb::IMes [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Cloud.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[33]; } + get { return global::Google.Cloud.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[44]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -12969,7 +18174,7 @@ public sealed partial class ListRelatedAccountGroupMembershipsResponse : pb::IMe [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Cloud.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[34]; } + get { return global::Google.Cloud.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[45]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -13194,7 +18399,7 @@ public sealed partial class ListRelatedAccountGroupsRequest : pb::IMessage /// Required. The name of the project to list related account groups from, in - /// the format "projects/{project}". + /// the format `projects/{project}`. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -13477,7 +18682,7 @@ public sealed partial class ListRelatedAccountGroupsResponse : pb::IMessage /// Required. The name of the project to search related account group /// memberships from. Specify the project name in the following format: - /// "projects/{project}". + /// `projects/{project}`. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -13756,8 +18961,8 @@ public string Project { public const int HashedAccountIdFieldNumber = 2; private pb::ByteString hashedAccountId_ = pb::ByteString.Empty; /// - /// Optional. The unique stable hashed user identifier we should search - /// connections to. The identifier should correspond to a `hashed_account_id` + /// Optional. The unique stable hashed user identifier used to search + /// connections. The identifier should correspond to a `hashed_account_id` /// provided in a previous `CreateAssessment` or `AnnotateAssessment` call. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -14029,7 +19234,7 @@ public sealed partial class SearchRelatedAccountGroupMembershipsResponse : pb::I [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Cloud.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[38]; } + get { return global::Google.Cloud.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[49]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -14254,7 +19459,7 @@ public sealed partial class RelatedAccountGroupMembership : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Cloud.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[41]; } + get { return global::Google.Cloud.RecaptchaEnterprise.V1.RecaptchaenterpriseReflection.Descriptor.MessageTypes[52]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -14932,6 +20137,11 @@ public enum WafFeature { /// Use reCAPTCHA action-tokens to protect user actions. /// [pbr::OriginalName("ACTION_TOKEN")] ActionToken = 3, + /// + /// Use reCAPTCHA WAF express protection to protect any content other than + /// web pages, like APIs and IoT devices. + /// + [pbr::OriginalName("EXPRESS")] Express = 5, } /// @@ -14946,6 +20156,10 @@ public enum WafService { /// Cloud Armor /// [pbr::OriginalName("CA")] Ca = 1, + /// + /// Fastly + /// + [pbr::OriginalName("FASTLY")] Fastly = 3, } } diff --git a/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1/RecaptchaenterpriseGrpc.g.cs b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1/RecaptchaenterpriseGrpc.g.cs index 926cc702976e..99d61c45fd38 100644 --- a/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1/RecaptchaenterpriseGrpc.g.cs +++ b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1/RecaptchaenterpriseGrpc.g.cs @@ -98,6 +98,20 @@ static T __Helper_DeserializeMessage(grpc::DeserializationContext context, gl [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_google_cloud_recaptchaenterprise_v1_Metrics = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.RecaptchaEnterprise.V1.Metrics.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_recaptchaenterprise_v1_CreateFirewallPolicyRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.RecaptchaEnterprise.V1.CreateFirewallPolicyRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_recaptchaenterprise_v1_FirewallPolicy = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.RecaptchaEnterprise.V1.FirewallPolicy.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.RecaptchaEnterprise.V1.ListFirewallPoliciesRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.RecaptchaEnterprise.V1.ListFirewallPoliciesResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_recaptchaenterprise_v1_GetFirewallPolicyRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.RecaptchaEnterprise.V1.GetFirewallPolicyRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_recaptchaenterprise_v1_UpdateFirewallPolicyRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.RecaptchaEnterprise.V1.UpdateFirewallPolicyRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_recaptchaenterprise_v1_DeleteFirewallPolicyRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.RecaptchaEnterprise.V1.DeleteFirewallPolicyRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.RecaptchaEnterprise.V1.ListRelatedAccountGroupsRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.RecaptchaEnterprise.V1.ListRelatedAccountGroupsResponse.Parser)); @@ -190,6 +204,46 @@ static T __Helper_DeserializeMessage(grpc::DeserializationContext context, gl __Marshaller_google_cloud_recaptchaenterprise_v1_GetMetricsRequest, __Marshaller_google_cloud_recaptchaenterprise_v1_Metrics); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_CreateFirewallPolicy = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "CreateFirewallPolicy", + __Marshaller_google_cloud_recaptchaenterprise_v1_CreateFirewallPolicyRequest, + __Marshaller_google_cloud_recaptchaenterprise_v1_FirewallPolicy); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_ListFirewallPolicies = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "ListFirewallPolicies", + __Marshaller_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesRequest, + __Marshaller_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetFirewallPolicy = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetFirewallPolicy", + __Marshaller_google_cloud_recaptchaenterprise_v1_GetFirewallPolicyRequest, + __Marshaller_google_cloud_recaptchaenterprise_v1_FirewallPolicy); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_UpdateFirewallPolicy = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "UpdateFirewallPolicy", + __Marshaller_google_cloud_recaptchaenterprise_v1_UpdateFirewallPolicyRequest, + __Marshaller_google_cloud_recaptchaenterprise_v1_FirewallPolicy); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_DeleteFirewallPolicy = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "DeleteFirewallPolicy", + __Marshaller_google_cloud_recaptchaenterprise_v1_DeleteFirewallPolicyRequest, + __Marshaller_google_protobuf_Empty); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_ListRelatedAccountGroups = new grpc::Method( grpc::MethodType.Unary, @@ -327,7 +381,7 @@ public abstract partial class RecaptchaEnterpriseServiceBase /// Migrates an existing key from reCAPTCHA to reCAPTCHA Enterprise. /// Once a key is migrated, it can be used from either product. SiteVerify /// requests are billed as CreateAssessment calls. You must be - /// authenticated as one of the current owners of the reCAPTCHA Site Key, and + /// authenticated as one of the current owners of the reCAPTCHA Key, and /// your user must have the reCAPTCHA Enterprise Admin IAM role in the /// destination project. /// @@ -353,6 +407,68 @@ public abstract partial class RecaptchaEnterpriseServiceBase throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } + /// + /// Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA + /// Enterprise actions can be executed. + /// A project may have a maximum of 1000 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 CreateFirewallPolicy(global::Google.Cloud.RecaptchaEnterprise.V1.CreateFirewallPolicyRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Returns the list of all firewall policies that belong to 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 ListFirewallPolicies(global::Google.Cloud.RecaptchaEnterprise.V1.ListFirewallPoliciesRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Returns the specified firewall 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 GetFirewallPolicy(global::Google.Cloud.RecaptchaEnterprise.V1.GetFirewallPolicyRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Updates the specified firewall 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 UpdateFirewallPolicy(global::Google.Cloud.RecaptchaEnterprise.V1.UpdateFirewallPolicyRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Deletes the specified firewall 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 DeleteFirewallPolicy(global::Google.Cloud.RecaptchaEnterprise.V1.DeleteFirewallPolicyRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + /// /// List groups of related accounts. /// @@ -818,7 +934,7 @@ protected RecaptchaEnterpriseServiceClient(ClientBaseConfiguration configuration /// Migrates an existing key from reCAPTCHA to reCAPTCHA Enterprise. /// Once a key is migrated, it can be used from either product. SiteVerify /// requests are billed as CreateAssessment calls. You must be - /// authenticated as one of the current owners of the reCAPTCHA Site Key, and + /// authenticated as one of the current owners of the reCAPTCHA Key, and /// your user must have the reCAPTCHA Enterprise Admin IAM role in the /// destination project. /// @@ -836,7 +952,7 @@ protected RecaptchaEnterpriseServiceClient(ClientBaseConfiguration configuration /// Migrates an existing key from reCAPTCHA to reCAPTCHA Enterprise. /// Once a key is migrated, it can be used from either product. SiteVerify /// requests are billed as CreateAssessment calls. You must be - /// authenticated as one of the current owners of the reCAPTCHA Site Key, and + /// authenticated as one of the current owners of the reCAPTCHA Key, and /// your user must have the reCAPTCHA Enterprise Admin IAM role in the /// destination project. /// @@ -852,7 +968,7 @@ protected RecaptchaEnterpriseServiceClient(ClientBaseConfiguration configuration /// Migrates an existing key from reCAPTCHA to reCAPTCHA Enterprise. /// Once a key is migrated, it can be used from either product. SiteVerify /// requests are billed as CreateAssessment calls. You must be - /// authenticated as one of the current owners of the reCAPTCHA Site Key, and + /// authenticated as one of the current owners of the reCAPTCHA Key, and /// your user must have the reCAPTCHA Enterprise Admin IAM role in the /// destination project. /// @@ -870,7 +986,7 @@ protected RecaptchaEnterpriseServiceClient(ClientBaseConfiguration configuration /// Migrates an existing key from reCAPTCHA to reCAPTCHA Enterprise. /// Once a key is migrated, it can be used from either product. SiteVerify /// requests are billed as CreateAssessment calls. You must be - /// authenticated as one of the current owners of the reCAPTCHA Site Key, and + /// authenticated as one of the current owners of the reCAPTCHA Key, and /// your user must have the reCAPTCHA Enterprise Admin IAM role in the /// destination project. /// @@ -935,6 +1051,254 @@ protected RecaptchaEnterpriseServiceClient(ClientBaseConfiguration configuration return CallInvoker.AsyncUnaryCall(__Method_GetMetrics, null, options, request); } /// + /// Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA + /// Enterprise actions can be executed. + /// A project may have a maximum of 1000 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.RecaptchaEnterprise.V1.FirewallPolicy CreateFirewallPolicy(global::Google.Cloud.RecaptchaEnterprise.V1.CreateFirewallPolicyRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateFirewallPolicy(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA + /// Enterprise actions can be executed. + /// A project may have a maximum of 1000 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.RecaptchaEnterprise.V1.FirewallPolicy CreateFirewallPolicy(global::Google.Cloud.RecaptchaEnterprise.V1.CreateFirewallPolicyRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateFirewallPolicy, null, options, request); + } + /// + /// Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA + /// Enterprise actions can be executed. + /// A project may have a maximum of 1000 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 CreateFirewallPolicyAsync(global::Google.Cloud.RecaptchaEnterprise.V1.CreateFirewallPolicyRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateFirewallPolicyAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA + /// Enterprise actions can be executed. + /// A project may have a maximum of 1000 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 CreateFirewallPolicyAsync(global::Google.Cloud.RecaptchaEnterprise.V1.CreateFirewallPolicyRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateFirewallPolicy, null, options, request); + } + /// + /// Returns the list of all firewall policies that belong to 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.Cloud.RecaptchaEnterprise.V1.ListFirewallPoliciesResponse ListFirewallPolicies(global::Google.Cloud.RecaptchaEnterprise.V1.ListFirewallPoliciesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListFirewallPolicies(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Returns the list of all firewall policies that belong to 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.Cloud.RecaptchaEnterprise.V1.ListFirewallPoliciesResponse ListFirewallPolicies(global::Google.Cloud.RecaptchaEnterprise.V1.ListFirewallPoliciesRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_ListFirewallPolicies, null, options, request); + } + /// + /// Returns the list of all firewall policies that belong to 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 ListFirewallPoliciesAsync(global::Google.Cloud.RecaptchaEnterprise.V1.ListFirewallPoliciesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListFirewallPoliciesAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Returns the list of all firewall policies that belong to 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 ListFirewallPoliciesAsync(global::Google.Cloud.RecaptchaEnterprise.V1.ListFirewallPoliciesRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_ListFirewallPolicies, null, options, request); + } + /// + /// Returns the specified firewall 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.RecaptchaEnterprise.V1.FirewallPolicy GetFirewallPolicy(global::Google.Cloud.RecaptchaEnterprise.V1.GetFirewallPolicyRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetFirewallPolicy(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Returns the specified firewall 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.RecaptchaEnterprise.V1.FirewallPolicy GetFirewallPolicy(global::Google.Cloud.RecaptchaEnterprise.V1.GetFirewallPolicyRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetFirewallPolicy, null, options, request); + } + /// + /// Returns the specified firewall 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 GetFirewallPolicyAsync(global::Google.Cloud.RecaptchaEnterprise.V1.GetFirewallPolicyRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetFirewallPolicyAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Returns the specified firewall 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 GetFirewallPolicyAsync(global::Google.Cloud.RecaptchaEnterprise.V1.GetFirewallPolicyRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetFirewallPolicy, null, options, request); + } + /// + /// Updates the specified firewall 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.RecaptchaEnterprise.V1.FirewallPolicy UpdateFirewallPolicy(global::Google.Cloud.RecaptchaEnterprise.V1.UpdateFirewallPolicyRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateFirewallPolicy(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Updates the specified firewall 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.RecaptchaEnterprise.V1.FirewallPolicy UpdateFirewallPolicy(global::Google.Cloud.RecaptchaEnterprise.V1.UpdateFirewallPolicyRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateFirewallPolicy, null, options, request); + } + /// + /// Updates the specified firewall 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 UpdateFirewallPolicyAsync(global::Google.Cloud.RecaptchaEnterprise.V1.UpdateFirewallPolicyRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateFirewallPolicyAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Updates the specified firewall 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 UpdateFirewallPolicyAsync(global::Google.Cloud.RecaptchaEnterprise.V1.UpdateFirewallPolicyRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateFirewallPolicy, null, options, request); + } + /// + /// Deletes the specified firewall 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.Protobuf.WellKnownTypes.Empty DeleteFirewallPolicy(global::Google.Cloud.RecaptchaEnterprise.V1.DeleteFirewallPolicyRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteFirewallPolicy(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Deletes the specified firewall 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.Protobuf.WellKnownTypes.Empty DeleteFirewallPolicy(global::Google.Cloud.RecaptchaEnterprise.V1.DeleteFirewallPolicyRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeleteFirewallPolicy, null, options, request); + } + /// + /// Deletes the specified firewall 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 DeleteFirewallPolicyAsync(global::Google.Cloud.RecaptchaEnterprise.V1.DeleteFirewallPolicyRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteFirewallPolicyAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Deletes the specified firewall 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 DeleteFirewallPolicyAsync(global::Google.Cloud.RecaptchaEnterprise.V1.DeleteFirewallPolicyRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeleteFirewallPolicy, null, options, request); + } + /// /// List groups of related accounts. /// /// The request to send to the server. @@ -1102,6 +1466,11 @@ protected override RecaptchaEnterpriseServiceClient NewInstance(ClientBaseConfig .AddMethod(__Method_DeleteKey, serviceImpl.DeleteKey) .AddMethod(__Method_MigrateKey, serviceImpl.MigrateKey) .AddMethod(__Method_GetMetrics, serviceImpl.GetMetrics) + .AddMethod(__Method_CreateFirewallPolicy, serviceImpl.CreateFirewallPolicy) + .AddMethod(__Method_ListFirewallPolicies, serviceImpl.ListFirewallPolicies) + .AddMethod(__Method_GetFirewallPolicy, serviceImpl.GetFirewallPolicy) + .AddMethod(__Method_UpdateFirewallPolicy, serviceImpl.UpdateFirewallPolicy) + .AddMethod(__Method_DeleteFirewallPolicy, serviceImpl.DeleteFirewallPolicy) .AddMethod(__Method_ListRelatedAccountGroups, serviceImpl.ListRelatedAccountGroups) .AddMethod(__Method_ListRelatedAccountGroupMemberships, serviceImpl.ListRelatedAccountGroupMemberships) .AddMethod(__Method_SearchRelatedAccountGroupMemberships, serviceImpl.SearchRelatedAccountGroupMemberships).Build(); @@ -1124,6 +1493,11 @@ public static void BindService(grpc::ServiceBinderBase serviceBinder, RecaptchaE serviceBinder.AddMethod(__Method_DeleteKey, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteKey)); serviceBinder.AddMethod(__Method_MigrateKey, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MigrateKey)); serviceBinder.AddMethod(__Method_GetMetrics, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetMetrics)); + serviceBinder.AddMethod(__Method_CreateFirewallPolicy, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateFirewallPolicy)); + serviceBinder.AddMethod(__Method_ListFirewallPolicies, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListFirewallPolicies)); + serviceBinder.AddMethod(__Method_GetFirewallPolicy, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetFirewallPolicy)); + serviceBinder.AddMethod(__Method_UpdateFirewallPolicy, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateFirewallPolicy)); + serviceBinder.AddMethod(__Method_DeleteFirewallPolicy, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteFirewallPolicy)); serviceBinder.AddMethod(__Method_ListRelatedAccountGroups, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListRelatedAccountGroups)); serviceBinder.AddMethod(__Method_ListRelatedAccountGroupMemberships, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListRelatedAccountGroupMemberships)); serviceBinder.AddMethod(__Method_SearchRelatedAccountGroupMemberships, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.SearchRelatedAccountGroupMemberships)); diff --git a/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1/RecaptchaenterpriseResourceNames.g.cs b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1/RecaptchaenterpriseResourceNames.g.cs index 1f64538923ee..526a26dc0e10 100644 --- a/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1/RecaptchaenterpriseResourceNames.g.cs +++ b/apis/Google.Cloud.RecaptchaEnterprise.V1/Google.Cloud.RecaptchaEnterprise.V1/RecaptchaenterpriseResourceNames.g.cs @@ -655,6 +655,230 @@ public override string ToString() public static bool operator !=(KeyName a, KeyName b) => !(a == b); } + /// Resource name for the FirewallPolicy resource. + public sealed partial class FirewallPolicyName : gax::IResourceName, sys::IEquatable + { + /// The possible contents of . + public enum ResourceNameType + { + /// An unparsed resource name. + Unparsed = 0, + + /// + /// A resource name with pattern projects/{project}/firewallpolicies/{firewallpolicy}. + /// + ProjectFirewallpolicy = 1, + } + + private static gax::PathTemplate s_projectFirewallpolicy = new gax::PathTemplate("projects/{project}/firewallpolicies/{firewallpolicy}"); + + /// Creates a containing an unparsed resource name. + /// The unparsed resource name. Must not be null. + /// + /// A new instance of containing the provided + /// . + /// + public static FirewallPolicyName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new FirewallPolicyName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// + /// Creates a with the pattern + /// projects/{project}/firewallpolicies/{firewallpolicy}. + /// + /// The Project ID. Must not be null or empty. + /// The Firewallpolicy ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static FirewallPolicyName FromProjectFirewallpolicy(string projectId, string firewallpolicyId) => + new FirewallPolicyName(ResourceNameType.ProjectFirewallpolicy, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), firewallpolicyId: gax::GaxPreconditions.CheckNotNullOrEmpty(firewallpolicyId, nameof(firewallpolicyId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/firewallpolicies/{firewallpolicy}. + /// + /// The Project ID. Must not be null or empty. + /// The Firewallpolicy ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/firewallpolicies/{firewallpolicy}. + /// + public static string Format(string projectId, string firewallpolicyId) => + FormatProjectFirewallpolicy(projectId, firewallpolicyId); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/firewallpolicies/{firewallpolicy}. + /// + /// The Project ID. Must not be null or empty. + /// The Firewallpolicy ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/firewallpolicies/{firewallpolicy}. + /// + public static string FormatProjectFirewallpolicy(string projectId, string firewallpolicyId) => + s_projectFirewallpolicy.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(firewallpolicyId, nameof(firewallpolicyId))); + + /// + /// 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}/firewallpolicies/{firewallpolicy} + /// + /// + /// The resource name in string form. Must not be null. + /// The parsed if successful. + public static FirewallPolicyName Parse(string firewallPolicyName) => Parse(firewallPolicyName, 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}/firewallpolicies/{firewallpolicy} + /// + /// 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 FirewallPolicyName Parse(string firewallPolicyName, bool allowUnparsed) => + TryParse(firewallPolicyName, allowUnparsed, out FirewallPolicyName 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}/firewallpolicies/{firewallpolicy} + /// + /// + /// 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 firewallPolicyName, out FirewallPolicyName result) => + TryParse(firewallPolicyName, 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}/firewallpolicies/{firewallpolicy} + /// + /// 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 firewallPolicyName, bool allowUnparsed, out FirewallPolicyName result) + { + gax::GaxPreconditions.CheckNotNull(firewallPolicyName, nameof(firewallPolicyName)); + gax::TemplatedResourceName resourceName; + if (s_projectFirewallpolicy.TryParseName(firewallPolicyName, out resourceName)) + { + result = FromProjectFirewallpolicy(resourceName[0], resourceName[1]); + return true; + } + if (allowUnparsed) + { + if (gax::UnparsedResourceName.TryParse(firewallPolicyName, out gax::UnparsedResourceName unparsedResourceName)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + private FirewallPolicyName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string firewallpolicyId = null, string projectId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + FirewallpolicyId = firewallpolicyId; + ProjectId = projectId; + } + + /// + /// Constructs a new instance of a class from the component parts of pattern + /// projects/{project}/firewallpolicies/{firewallpolicy} + /// + /// The Project ID. Must not be null or empty. + /// The Firewallpolicy ID. Must not be null or empty. + public FirewallPolicyName(string projectId, string firewallpolicyId) : this(ResourceNameType.ProjectFirewallpolicy, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), firewallpolicyId: gax::GaxPreconditions.CheckNotNullOrEmpty(firewallpolicyId, nameof(firewallpolicyId))) + { + } + + /// 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 Firewallpolicy ID. Will not be null, unless this instance contains an unparsed resource + /// name. + /// + public string FirewallpolicyId { 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.ProjectFirewallpolicy: return s_projectFirewallpolicy.Expand(ProjectId, FirewallpolicyId); + 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 FirewallPolicyName); + + /// + public bool Equals(FirewallPolicyName other) => ToString() == other?.ToString(); + + /// + public static bool operator ==(FirewallPolicyName a, FirewallPolicyName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); + + /// + public static bool operator !=(FirewallPolicyName a, FirewallPolicyName b) => !(a == b); + } + /// Resource name for the RelatedAccountGroupMembership resource. public sealed partial class RelatedAccountGroupMembershipName : gax::IResourceName, sys::IEquatable { @@ -1268,6 +1492,54 @@ public partial class DeleteKeyRequest } } + public partial class CreateFirewallPolicyRequest + { + /// + /// -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 ListFirewallPoliciesRequest + { + /// + /// -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 GetFirewallPolicyRequest + { + /// + /// -typed view over the resource name property. + /// + public gcrv::FirewallPolicyName FirewallPolicyName + { + get => string.IsNullOrEmpty(Name) ? null : gcrv::FirewallPolicyName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class DeleteFirewallPolicyRequest + { + /// + /// -typed view over the resource name property. + /// + public gcrv::FirewallPolicyName FirewallPolicyName + { + get => string.IsNullOrEmpty(Name) ? null : gcrv::FirewallPolicyName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + public partial class MigrateKeyRequest { /// @@ -1316,6 +1588,18 @@ public partial class Key } } + public partial class FirewallPolicy + { + /// + /// -typed view over the resource name property. + /// + public gcrv::FirewallPolicyName FirewallPolicyName + { + get => string.IsNullOrEmpty(Name) ? null : gcrv::FirewallPolicyName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + public partial class ListRelatedAccountGroupMembershipsRequest { /// diff --git a/apis/Google.Cloud.RecaptchaEnterprise.V1/gapic_metadata.json b/apis/Google.Cloud.RecaptchaEnterprise.V1/gapic_metadata.json index 52ee14fba71d..4baa12e8168e 100644 --- a/apis/Google.Cloud.RecaptchaEnterprise.V1/gapic_metadata.json +++ b/apis/Google.Cloud.RecaptchaEnterprise.V1/gapic_metadata.json @@ -22,18 +22,36 @@ "CreateAssessmentAsync" ] }, + "CreateFirewallPolicy": { + "methods": [ + "CreateFirewallPolicy", + "CreateFirewallPolicyAsync" + ] + }, "CreateKey": { "methods": [ "CreateKey", "CreateKeyAsync" ] }, + "DeleteFirewallPolicy": { + "methods": [ + "DeleteFirewallPolicy", + "DeleteFirewallPolicyAsync" + ] + }, "DeleteKey": { "methods": [ "DeleteKey", "DeleteKeyAsync" ] }, + "GetFirewallPolicy": { + "methods": [ + "GetFirewallPolicy", + "GetFirewallPolicyAsync" + ] + }, "GetKey": { "methods": [ "GetKey", @@ -46,6 +64,12 @@ "GetMetricsAsync" ] }, + "ListFirewallPolicies": { + "methods": [ + "ListFirewallPolicies", + "ListFirewallPoliciesAsync" + ] + }, "ListKeys": { "methods": [ "ListKeys", @@ -82,6 +106,12 @@ "SearchRelatedAccountGroupMembershipsAsync" ] }, + "UpdateFirewallPolicy": { + "methods": [ + "UpdateFirewallPolicy", + "UpdateFirewallPolicyAsync" + ] + }, "UpdateKey": { "methods": [ "UpdateKey",