UNPKG

@google-cloud/recaptcha-enterprise

Version:
742 lines (665 loc) 3.1 MB
// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. /*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/ (function(global, factory) { /* global define, require, module */ /* AMD */ if (typeof define === 'function' && define.amd) define(["protobufjs/minimal"], factory); /* CommonJS */ else if (typeof require === 'function' && typeof module === 'object' && module && module.exports) module.exports = factory(require("google-gax/build/src/protobuf").protobufMinimal); })(this, function($protobuf) { "use strict"; // Common aliases var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util; // Exported root namespace var $root = $protobuf.roots._google_cloud_recaptcha_enterprise_protos || ($protobuf.roots._google_cloud_recaptcha_enterprise_protos = {}); $root.google = (function() { /** * Namespace google. * @exports google * @namespace */ var google = {}; google.cloud = (function() { /** * Namespace cloud. * @memberof google * @namespace */ var cloud = {}; cloud.recaptchaenterprise = (function() { /** * Namespace recaptchaenterprise. * @memberof google.cloud * @namespace */ var recaptchaenterprise = {}; recaptchaenterprise.v1 = (function() { /** * Namespace v1. * @memberof google.cloud.recaptchaenterprise * @namespace */ var v1 = {}; v1.RecaptchaEnterpriseService = (function() { /** * Constructs a new RecaptchaEnterpriseService service. * @memberof google.cloud.recaptchaenterprise.v1 * @classdesc Represents a RecaptchaEnterpriseService * @extends $protobuf.rpc.Service * @constructor * @param {$protobuf.RPCImpl} rpcImpl RPC implementation * @param {boolean} [requestDelimited=false] Whether requests are length-delimited * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ function RecaptchaEnterpriseService(rpcImpl, requestDelimited, responseDelimited) { $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } (RecaptchaEnterpriseService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = RecaptchaEnterpriseService; /** * Creates new RecaptchaEnterpriseService service using the specified rpc implementation. * @function create * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @static * @param {$protobuf.RPCImpl} rpcImpl RPC implementation * @param {boolean} [requestDelimited=false] Whether requests are length-delimited * @param {boolean} [responseDelimited=false] Whether responses are length-delimited * @returns {RecaptchaEnterpriseService} RPC service. Useful where requests and/or responses are streamed. */ RecaptchaEnterpriseService.create = function create(rpcImpl, requestDelimited, responseDelimited) { return new this(rpcImpl, requestDelimited, responseDelimited); }; /** * Callback as used by {@link google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService|createAssessment}. * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @typedef CreateAssessmentCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.cloud.recaptchaenterprise.v1.Assessment} [response] Assessment */ /** * Calls CreateAssessment. * @function createAssessment * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @instance * @param {google.cloud.recaptchaenterprise.v1.ICreateAssessmentRequest} request CreateAssessmentRequest message or plain object * @param {google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.CreateAssessmentCallback} callback Node-style callback called with the error, if any, and Assessment * @returns {undefined} * @variation 1 */ Object.defineProperty(RecaptchaEnterpriseService.prototype.createAssessment = function createAssessment(request, callback) { return this.rpcCall(createAssessment, $root.google.cloud.recaptchaenterprise.v1.CreateAssessmentRequest, $root.google.cloud.recaptchaenterprise.v1.Assessment, request, callback); }, "name", { value: "CreateAssessment" }); /** * Calls CreateAssessment. * @function createAssessment * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @instance * @param {google.cloud.recaptchaenterprise.v1.ICreateAssessmentRequest} request CreateAssessmentRequest message or plain object * @returns {Promise<google.cloud.recaptchaenterprise.v1.Assessment>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService|annotateAssessment}. * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @typedef AnnotateAssessmentCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.cloud.recaptchaenterprise.v1.AnnotateAssessmentResponse} [response] AnnotateAssessmentResponse */ /** * Calls AnnotateAssessment. * @function annotateAssessment * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @instance * @param {google.cloud.recaptchaenterprise.v1.IAnnotateAssessmentRequest} request AnnotateAssessmentRequest message or plain object * @param {google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.AnnotateAssessmentCallback} callback Node-style callback called with the error, if any, and AnnotateAssessmentResponse * @returns {undefined} * @variation 1 */ Object.defineProperty(RecaptchaEnterpriseService.prototype.annotateAssessment = function annotateAssessment(request, callback) { return this.rpcCall(annotateAssessment, $root.google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest, $root.google.cloud.recaptchaenterprise.v1.AnnotateAssessmentResponse, request, callback); }, "name", { value: "AnnotateAssessment" }); /** * Calls AnnotateAssessment. * @function annotateAssessment * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @instance * @param {google.cloud.recaptchaenterprise.v1.IAnnotateAssessmentRequest} request AnnotateAssessmentRequest message or plain object * @returns {Promise<google.cloud.recaptchaenterprise.v1.AnnotateAssessmentResponse>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService|createKey}. * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @typedef CreateKeyCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.cloud.recaptchaenterprise.v1.Key} [response] Key */ /** * Calls CreateKey. * @function createKey * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @instance * @param {google.cloud.recaptchaenterprise.v1.ICreateKeyRequest} request CreateKeyRequest message or plain object * @param {google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.CreateKeyCallback} callback Node-style callback called with the error, if any, and Key * @returns {undefined} * @variation 1 */ Object.defineProperty(RecaptchaEnterpriseService.prototype.createKey = function createKey(request, callback) { return this.rpcCall(createKey, $root.google.cloud.recaptchaenterprise.v1.CreateKeyRequest, $root.google.cloud.recaptchaenterprise.v1.Key, request, callback); }, "name", { value: "CreateKey" }); /** * Calls CreateKey. * @function createKey * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @instance * @param {google.cloud.recaptchaenterprise.v1.ICreateKeyRequest} request CreateKeyRequest message or plain object * @returns {Promise<google.cloud.recaptchaenterprise.v1.Key>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService|listKeys}. * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @typedef ListKeysCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.cloud.recaptchaenterprise.v1.ListKeysResponse} [response] ListKeysResponse */ /** * Calls ListKeys. * @function listKeys * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @instance * @param {google.cloud.recaptchaenterprise.v1.IListKeysRequest} request ListKeysRequest message or plain object * @param {google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.ListKeysCallback} callback Node-style callback called with the error, if any, and ListKeysResponse * @returns {undefined} * @variation 1 */ Object.defineProperty(RecaptchaEnterpriseService.prototype.listKeys = function listKeys(request, callback) { return this.rpcCall(listKeys, $root.google.cloud.recaptchaenterprise.v1.ListKeysRequest, $root.google.cloud.recaptchaenterprise.v1.ListKeysResponse, request, callback); }, "name", { value: "ListKeys" }); /** * Calls ListKeys. * @function listKeys * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @instance * @param {google.cloud.recaptchaenterprise.v1.IListKeysRequest} request ListKeysRequest message or plain object * @returns {Promise<google.cloud.recaptchaenterprise.v1.ListKeysResponse>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService|retrieveLegacySecretKey}. * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @typedef RetrieveLegacySecretKeyCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.cloud.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse} [response] RetrieveLegacySecretKeyResponse */ /** * Calls RetrieveLegacySecretKey. * @function retrieveLegacySecretKey * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @instance * @param {google.cloud.recaptchaenterprise.v1.IRetrieveLegacySecretKeyRequest} request RetrieveLegacySecretKeyRequest message or plain object * @param {google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.RetrieveLegacySecretKeyCallback} callback Node-style callback called with the error, if any, and RetrieveLegacySecretKeyResponse * @returns {undefined} * @variation 1 */ Object.defineProperty(RecaptchaEnterpriseService.prototype.retrieveLegacySecretKey = function retrieveLegacySecretKey(request, callback) { return this.rpcCall(retrieveLegacySecretKey, $root.google.cloud.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest, $root.google.cloud.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse, request, callback); }, "name", { value: "RetrieveLegacySecretKey" }); /** * Calls RetrieveLegacySecretKey. * @function retrieveLegacySecretKey * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @instance * @param {google.cloud.recaptchaenterprise.v1.IRetrieveLegacySecretKeyRequest} request RetrieveLegacySecretKeyRequest message or plain object * @returns {Promise<google.cloud.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService|getKey}. * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @typedef GetKeyCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.cloud.recaptchaenterprise.v1.Key} [response] Key */ /** * Calls GetKey. * @function getKey * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @instance * @param {google.cloud.recaptchaenterprise.v1.IGetKeyRequest} request GetKeyRequest message or plain object * @param {google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.GetKeyCallback} callback Node-style callback called with the error, if any, and Key * @returns {undefined} * @variation 1 */ Object.defineProperty(RecaptchaEnterpriseService.prototype.getKey = function getKey(request, callback) { return this.rpcCall(getKey, $root.google.cloud.recaptchaenterprise.v1.GetKeyRequest, $root.google.cloud.recaptchaenterprise.v1.Key, request, callback); }, "name", { value: "GetKey" }); /** * Calls GetKey. * @function getKey * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @instance * @param {google.cloud.recaptchaenterprise.v1.IGetKeyRequest} request GetKeyRequest message or plain object * @returns {Promise<google.cloud.recaptchaenterprise.v1.Key>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService|updateKey}. * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @typedef UpdateKeyCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.cloud.recaptchaenterprise.v1.Key} [response] Key */ /** * Calls UpdateKey. * @function updateKey * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @instance * @param {google.cloud.recaptchaenterprise.v1.IUpdateKeyRequest} request UpdateKeyRequest message or plain object * @param {google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.UpdateKeyCallback} callback Node-style callback called with the error, if any, and Key * @returns {undefined} * @variation 1 */ Object.defineProperty(RecaptchaEnterpriseService.prototype.updateKey = function updateKey(request, callback) { return this.rpcCall(updateKey, $root.google.cloud.recaptchaenterprise.v1.UpdateKeyRequest, $root.google.cloud.recaptchaenterprise.v1.Key, request, callback); }, "name", { value: "UpdateKey" }); /** * Calls UpdateKey. * @function updateKey * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @instance * @param {google.cloud.recaptchaenterprise.v1.IUpdateKeyRequest} request UpdateKeyRequest message or plain object * @returns {Promise<google.cloud.recaptchaenterprise.v1.Key>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService|deleteKey}. * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @typedef DeleteKeyCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.protobuf.Empty} [response] Empty */ /** * Calls DeleteKey. * @function deleteKey * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @instance * @param {google.cloud.recaptchaenterprise.v1.IDeleteKeyRequest} request DeleteKeyRequest message or plain object * @param {google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.DeleteKeyCallback} callback Node-style callback called with the error, if any, and Empty * @returns {undefined} * @variation 1 */ Object.defineProperty(RecaptchaEnterpriseService.prototype.deleteKey = function deleteKey(request, callback) { return this.rpcCall(deleteKey, $root.google.cloud.recaptchaenterprise.v1.DeleteKeyRequest, $root.google.protobuf.Empty, request, callback); }, "name", { value: "DeleteKey" }); /** * Calls DeleteKey. * @function deleteKey * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @instance * @param {google.cloud.recaptchaenterprise.v1.IDeleteKeyRequest} request DeleteKeyRequest message or plain object * @returns {Promise<google.protobuf.Empty>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService|migrateKey}. * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @typedef MigrateKeyCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.cloud.recaptchaenterprise.v1.Key} [response] Key */ /** * Calls MigrateKey. * @function migrateKey * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @instance * @param {google.cloud.recaptchaenterprise.v1.IMigrateKeyRequest} request MigrateKeyRequest message or plain object * @param {google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.MigrateKeyCallback} callback Node-style callback called with the error, if any, and Key * @returns {undefined} * @variation 1 */ Object.defineProperty(RecaptchaEnterpriseService.prototype.migrateKey = function migrateKey(request, callback) { return this.rpcCall(migrateKey, $root.google.cloud.recaptchaenterprise.v1.MigrateKeyRequest, $root.google.cloud.recaptchaenterprise.v1.Key, request, callback); }, "name", { value: "MigrateKey" }); /** * Calls MigrateKey. * @function migrateKey * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @instance * @param {google.cloud.recaptchaenterprise.v1.IMigrateKeyRequest} request MigrateKeyRequest message or plain object * @returns {Promise<google.cloud.recaptchaenterprise.v1.Key>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService|addIpOverride}. * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @typedef AddIpOverrideCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.cloud.recaptchaenterprise.v1.AddIpOverrideResponse} [response] AddIpOverrideResponse */ /** * Calls AddIpOverride. * @function addIpOverride * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @instance * @param {google.cloud.recaptchaenterprise.v1.IAddIpOverrideRequest} request AddIpOverrideRequest message or plain object * @param {google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.AddIpOverrideCallback} callback Node-style callback called with the error, if any, and AddIpOverrideResponse * @returns {undefined} * @variation 1 */ Object.defineProperty(RecaptchaEnterpriseService.prototype.addIpOverride = function addIpOverride(request, callback) { return this.rpcCall(addIpOverride, $root.google.cloud.recaptchaenterprise.v1.AddIpOverrideRequest, $root.google.cloud.recaptchaenterprise.v1.AddIpOverrideResponse, request, callback); }, "name", { value: "AddIpOverride" }); /** * Calls AddIpOverride. * @function addIpOverride * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @instance * @param {google.cloud.recaptchaenterprise.v1.IAddIpOverrideRequest} request AddIpOverrideRequest message or plain object * @returns {Promise<google.cloud.recaptchaenterprise.v1.AddIpOverrideResponse>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService|removeIpOverride}. * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @typedef RemoveIpOverrideCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.cloud.recaptchaenterprise.v1.RemoveIpOverrideResponse} [response] RemoveIpOverrideResponse */ /** * Calls RemoveIpOverride. * @function removeIpOverride * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @instance * @param {google.cloud.recaptchaenterprise.v1.IRemoveIpOverrideRequest} request RemoveIpOverrideRequest message or plain object * @param {google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.RemoveIpOverrideCallback} callback Node-style callback called with the error, if any, and RemoveIpOverrideResponse * @returns {undefined} * @variation 1 */ Object.defineProperty(RecaptchaEnterpriseService.prototype.removeIpOverride = function removeIpOverride(request, callback) { return this.rpcCall(removeIpOverride, $root.google.cloud.recaptchaenterprise.v1.RemoveIpOverrideRequest, $root.google.cloud.recaptchaenterprise.v1.RemoveIpOverrideResponse, request, callback); }, "name", { value: "RemoveIpOverride" }); /** * Calls RemoveIpOverride. * @function removeIpOverride * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @instance * @param {google.cloud.recaptchaenterprise.v1.IRemoveIpOverrideRequest} request RemoveIpOverrideRequest message or plain object * @returns {Promise<google.cloud.recaptchaenterprise.v1.RemoveIpOverrideResponse>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService|listIpOverrides}. * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @typedef ListIpOverridesCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.cloud.recaptchaenterprise.v1.ListIpOverridesResponse} [response] ListIpOverridesResponse */ /** * Calls ListIpOverrides. * @function listIpOverrides * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @instance * @param {google.cloud.recaptchaenterprise.v1.IListIpOverridesRequest} request ListIpOverridesRequest message or plain object * @param {google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.ListIpOverridesCallback} callback Node-style callback called with the error, if any, and ListIpOverridesResponse * @returns {undefined} * @variation 1 */ Object.defineProperty(RecaptchaEnterpriseService.prototype.listIpOverrides = function listIpOverrides(request, callback) { return this.rpcCall(listIpOverrides, $root.google.cloud.recaptchaenterprise.v1.ListIpOverridesRequest, $root.google.cloud.recaptchaenterprise.v1.ListIpOverridesResponse, request, callback); }, "name", { value: "ListIpOverrides" }); /** * Calls ListIpOverrides. * @function listIpOverrides * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @instance * @param {google.cloud.recaptchaenterprise.v1.IListIpOverridesRequest} request ListIpOverridesRequest message or plain object * @returns {Promise<google.cloud.recaptchaenterprise.v1.ListIpOverridesResponse>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService|getMetrics}. * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @typedef GetMetricsCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.cloud.recaptchaenterprise.v1.Metrics} [response] Metrics */ /** * Calls GetMetrics. * @function getMetrics * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @instance * @param {google.cloud.recaptchaenterprise.v1.IGetMetricsRequest} request GetMetricsRequest message or plain object * @param {google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.GetMetricsCallback} callback Node-style callback called with the error, if any, and Metrics * @returns {undefined} * @variation 1 */ Object.defineProperty(RecaptchaEnterpriseService.prototype.getMetrics = function getMetrics(request, callback) { return this.rpcCall(getMetrics, $root.google.cloud.recaptchaenterprise.v1.GetMetricsRequest, $root.google.cloud.recaptchaenterprise.v1.Metrics, request, callback); }, "name", { value: "GetMetrics" }); /** * Calls GetMetrics. * @function getMetrics * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @instance * @param {google.cloud.recaptchaenterprise.v1.IGetMetricsRequest} request GetMetricsRequest message or plain object * @returns {Promise<google.cloud.recaptchaenterprise.v1.Metrics>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService|createFirewallPolicy}. * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @typedef CreateFirewallPolicyCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.cloud.recaptchaenterprise.v1.FirewallPolicy} [response] FirewallPolicy */ /** * Calls CreateFirewallPolicy. * @function createFirewallPolicy * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @instance * @param {google.cloud.recaptchaenterprise.v1.ICreateFirewallPolicyRequest} request CreateFirewallPolicyRequest message or plain object * @param {google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.CreateFirewallPolicyCallback} callback Node-style callback called with the error, if any, and FirewallPolicy * @returns {undefined} * @variation 1 */ Object.defineProperty(RecaptchaEnterpriseService.prototype.createFirewallPolicy = function createFirewallPolicy(request, callback) { return this.rpcCall(createFirewallPolicy, $root.google.cloud.recaptchaenterprise.v1.CreateFirewallPolicyRequest, $root.google.cloud.recaptchaenterprise.v1.FirewallPolicy, request, callback); }, "name", { value: "CreateFirewallPolicy" }); /** * Calls CreateFirewallPolicy. * @function createFirewallPolicy * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @instance * @param {google.cloud.recaptchaenterprise.v1.ICreateFirewallPolicyRequest} request CreateFirewallPolicyRequest message or plain object * @returns {Promise<google.cloud.recaptchaenterprise.v1.FirewallPolicy>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService|listFirewallPolicies}. * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @typedef ListFirewallPoliciesCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.cloud.recaptchaenterprise.v1.ListFirewallPoliciesResponse} [response] ListFirewallPoliciesResponse */ /** * Calls ListFirewallPolicies. * @function listFirewallPolicies * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @instance * @param {google.cloud.recaptchaenterprise.v1.IListFirewallPoliciesRequest} request ListFirewallPoliciesRequest message or plain object * @param {google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.ListFirewallPoliciesCallback} callback Node-style callback called with the error, if any, and ListFirewallPoliciesResponse * @returns {undefined} * @variation 1 */ Object.defineProperty(RecaptchaEnterpriseService.prototype.listFirewallPolicies = function listFirewallPolicies(request, callback) { return this.rpcCall(listFirewallPolicies, $root.google.cloud.recaptchaenterprise.v1.ListFirewallPoliciesRequest, $root.google.cloud.recaptchaenterprise.v1.ListFirewallPoliciesResponse, request, callback); }, "name", { value: "ListFirewallPolicies" }); /** * Calls ListFirewallPolicies. * @function listFirewallPolicies * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @instance * @param {google.cloud.recaptchaenterprise.v1.IListFirewallPoliciesRequest} request ListFirewallPoliciesRequest message or plain object * @returns {Promise<google.cloud.recaptchaenterprise.v1.ListFirewallPoliciesResponse>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService|getFirewallPolicy}. * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @typedef GetFirewallPolicyCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.cloud.recaptchaenterprise.v1.FirewallPolicy} [response] FirewallPolicy */ /** * Calls GetFirewallPolicy. * @function getFirewallPolicy * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @instance * @param {google.cloud.recaptchaenterprise.v1.IGetFirewallPolicyRequest} request GetFirewallPolicyRequest message or plain object * @param {google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.GetFirewallPolicyCallback} callback Node-style callback called with the error, if any, and FirewallPolicy * @returns {undefined} * @variation 1 */ Object.defineProperty(RecaptchaEnterpriseService.prototype.getFirewallPolicy = function getFirewallPolicy(request, callback) { return this.rpcCall(getFirewallPolicy, $root.google.cloud.recaptchaenterprise.v1.GetFirewallPolicyRequest, $root.google.cloud.recaptchaenterprise.v1.FirewallPolicy, request, callback); }, "name", { value: "GetFirewallPolicy" }); /** * Calls GetFirewallPolicy. * @function getFirewallPolicy * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @instance * @param {google.cloud.recaptchaenterprise.v1.IGetFirewallPolicyRequest} request GetFirewallPolicyRequest message or plain object * @returns {Promise<google.cloud.recaptchaenterprise.v1.FirewallPolicy>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService|updateFirewallPolicy}. * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @typedef UpdateFirewallPolicyCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.cloud.recaptchaenterprise.v1.FirewallPolicy} [response] FirewallPolicy */ /** * Calls UpdateFirewallPolicy. * @function updateFirewallPolicy * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @instance * @param {google.cloud.recaptchaenterprise.v1.IUpdateFirewallPolicyRequest} request UpdateFirewallPolicyRequest message or plain object * @param {google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.UpdateFirewallPolicyCallback} callback Node-style callback called with the error, if any, and FirewallPolicy * @returns {undefined} * @variation 1 */ Object.defineProperty(RecaptchaEnterpriseService.prototype.updateFirewallPolicy = function updateFirewallPolicy(request, callback) { return this.rpcCall(updateFirewallPolicy, $root.google.cloud.recaptchaenterprise.v1.UpdateFirewallPolicyRequest, $root.google.cloud.recaptchaenterprise.v1.FirewallPolicy, request, callback); }, "name", { value: "UpdateFirewallPolicy" }); /** * Calls UpdateFirewallPolicy. * @function updateFirewallPolicy * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @instance * @param {google.cloud.recaptchaenterprise.v1.IUpdateFirewallPolicyRequest} request UpdateFirewallPolicyRequest message or plain object * @returns {Promise<google.cloud.recaptchaenterprise.v1.FirewallPolicy>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService|deleteFirewallPolicy}. * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @typedef DeleteFirewallPolicyCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.protobuf.Empty} [response] Empty */ /** * Calls DeleteFirewallPolicy. * @function deleteFirewallPolicy * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @instance * @param {google.cloud.recaptchaenterprise.v1.IDeleteFirewallPolicyRequest} request DeleteFirewallPolicyRequest message or plain object * @param {google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.DeleteFirewallPolicyCallback} callback Node-style callback called with the error, if any, and Empty * @returns {undefined} * @variation 1 */ Object.defineProperty(RecaptchaEnterpriseService.prototype.deleteFirewallPolicy = function deleteFirewallPolicy(request, callback) { return this.rpcCall(deleteFirewallPolicy, $root.google.cloud.recaptchaenterprise.v1.DeleteFirewallPolicyRequest, $root.google.protobuf.Empty, request, callback); }, "name", { value: "DeleteFirewallPolicy" }); /** * Calls DeleteFirewallPolicy. * @function deleteFirewallPolicy * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @instance * @param {google.cloud.recaptchaenterprise.v1.IDeleteFirewallPolicyRequest} request DeleteFirewallPolicyRequest message or plain object * @returns {Promise<google.protobuf.Empty>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService|reorderFirewallPolicies}. * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @typedef ReorderFirewallPoliciesCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesResponse} [response] ReorderFirewallPoliciesResponse */ /** * Calls ReorderFirewallPolicies. * @function reorderFirewallPolicies * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @instance * @param {google.cloud.recaptchaenterprise.v1.IReorderFirewallPoliciesRequest} request ReorderFirewallPoliciesRequest message or plain object * @param {google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.ReorderFirewallPoliciesCallback} callback Node-style callback called with the error, if any, and ReorderFirewallPoliciesResponse * @returns {undefined} * @variation 1 */ Object.defineProperty(RecaptchaEnterpriseService.prototype.reorderFirewallPolicies = function reorderFirewallPolicies(request, callback) { return this.rpcCall(reorderFirewallPolicies, $root.google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesRequest, $root.google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesResponse, request, callback); }, "name", { value: "ReorderFirewallPolicies" }); /** * Calls ReorderFirewallPolicies. * @function reorderFirewallPolicies * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @instance * @param {google.cloud.recaptchaenterprise.v1.IReorderFirewallPoliciesRequest} request ReorderFirewallPoliciesRequest message or plain object * @returns {Promise<google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesResponse>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService|listRelatedAccountGroups}. * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @typedef ListRelatedAccountGroupsCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse} [response] ListRelatedAccountGroupsResponse */ /** * Calls ListRelatedAccountGroups. * @function listRelatedAccountGroups * @memberof google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService * @instance * @param {google.cloud.recaptchaenterprise.v1.IListRelatedAccountGroupsReq