text: "use strict";
  // Copyright 2020 Google LLC
  // Licensed under the Apache License, Version 2.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.
  Object.defineProperty(exports, "__esModule", { value: true });
  exports.dialogflow_v3beta1 = void 0;
  /* eslint-disable @typescript-eslint/no-explicit-any */
  /* eslint-disable @typescript-eslint/class-name-casing */
  /* eslint-disable @typescript-eslint/no-unused-vars */
  /* eslint-disable @typescript-eslint/no-empty-interface */
  /* eslint-disable @typescript-eslint/no-namespace */
  /* eslint-disable no-irregular-whitespace */
  const googleapis_common_1 = require("googleapis-common");
  var dialogflow_v3beta1;
  (function (dialogflow_v3beta1) {
      /**
       * Dialogflow API
       *
       * Builds conversational interfaces (for example, chatbots, and voice-powered apps and devices).
       *
       * @example
       * const {google} = require('googleapis');
       * const dialogflow = google.dialogflow('v3beta1');
       *
       * @namespace dialogflow
       * @type {Function}
       * @version v3beta1
       * @variation v3beta1
       * @param {object=} options Options for Dialogflow
       */
      class Dialogflow {
          constructor(options, google) {
              this.context = {
                  _options: options || {},
                  google,
              };
              this.projects = new Resource$Projects(this.context);
          }
      }
      dialogflow_v3beta1.Dialogflow = Dialogflow;
      class Resource$Projects {
          constructor(context) {
              this.context = context;
              this.locations = new Resource$Projects$Locations(this.context);
              this.operations = new Resource$Projects$Operations(this.context);
          }
      }
      dialogflow_v3beta1.Resource$Projects = Resource$Projects;
      class Resource$Projects$Locations {
          constructor(context) {
              this.context = context;
              this.agents = new Resource$Projects$Locations$Agents(this.context);
              this.operations = new Resource$Projects$Locations$Operations(this.context);
          }
      }
      dialogflow_v3beta1.Resource$Projects$Locations = Resource$Projects$Locations;
      class Resource$Projects$Locations$Agents {
          constructor(context) {
              this.context = context;
              this.entityTypes = new Resource$Projects$Locations$Agents$Entitytypes(this.context);
              this.environments = new Resource$Projects$Locations$Agents$Environments(this.context);
              this.flows = new Resource$Projects$Locations$Agents$Flows(this.context);
              this.intents = new Resource$Projects$Locations$Agents$Intents(this.context);
              this.sessions = new Resource$Projects$Locations$Agents$Sessions(this.context);
              this.webhooks = new Resource$Projects$Locations$Agents$Webhooks(this.context);
          }
          create(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+parent}/agents').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          delete(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'DELETE',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          export(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+name}:export').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          get(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          list(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+parent}/agents').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          patch(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'PATCH',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          restore(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+name}:restore').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      dialogflow_v3beta1.Resource$Projects$Locations$Agents = Resource$Projects$Locations$Agents;
      class Resource$Projects$Locations$Agents$Entitytypes {
          constructor(context) {
              this.context = context;
          }
          create(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          delete(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'DELETE',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          get(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          list(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          patch(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'PATCH',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      dialogflow_v3beta1.Resource$Projects$Locations$Agents$Entitytypes = Resource$Projects$Locations$Agents$Entitytypes;
      class Resource$Projects$Locations$Agents$Environments {
          constructor(context) {
              this.context = context;
              this.sessions = new Resource$Projects$Locations$Agents$Environments$Sessions(this.context);
          }
          create(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          delete(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'DELETE',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          get(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          list(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          lookupEnvironmentHistory(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+name}:lookupEnvironmentHistory').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          patch(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'PATCH',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      dialogflow_v3beta1.Resource$Projects$Locations$Agents$Environments = Resource$Projects$Locations$Agents$Environments;
      class Resource$Projects$Locations$Agents$Environments$Sessions {
          constructor(context) {
              this.context = context;
              this.entityTypes = new Resource$Projects$Locations$Agents$Environments$Sessions$Entitytypes(this.context);
          }
          detectIntent(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+session}:detectIntent').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['session'],
                  pathParams: ['session'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          fulfillIntent(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+session}:fulfillIntent').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['session'],
                  pathParams: ['session'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          matchIntent(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+session}:matchIntent').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['session'],
                  pathParams: ['session'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      dialogflow_v3beta1.Resource$Projects$Locations$Agents$Environments$Sessions = Resource$Projects$Locations$Agents$Environments$Sessions;
      class Resource$Projects$Locations$Agents$Environments$Sessions$Entitytypes {
          constructor(context) {
              this.context = context;
          }
          create(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          delete(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'DELETE',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          get(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          list(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          patch(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'PATCH',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      dialogflow_v3beta1.Resource$Projects$Locations$Agents$Environments$Sessions$Entitytypes = Resource$Projects$Locations$Agents$Environments$Sessions$Entitytypes;
      class Resource$Projects$Locations$Agents$Flows {
          constructor(context) {
              this.context = context;
              this.pages = new Resource$Projects$Locations$Agents$Flows$Pages(this.context);
              this.transitionRouteGroups = new Resource$Projects$Locations$Agents$Flows$Transitionroutegroups(this.context);
              this.versions = new Resource$Projects$Locations$Agents$Flows$Versions(this.context);
          }
          create(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+parent}/flows').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          delete(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'DELETE',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          get(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          list(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+parent}/flows').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          patch(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'PATCH',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          train(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+name}:train').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      dialogflow_v3beta1.Resource$Projects$Locations$Agents$Flows = Resource$Projects$Locations$Agents$Flows;
      class Resource$Projects$Locations$Agents$Flows$Pages {
          constructor(context) {
              this.context = context;
          }
          create(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+parent}/pages').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          delete(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'DELETE',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          get(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          list(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+parent}/pages').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          patch(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'PATCH',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      dialogflow_v3beta1.Resource$Projects$Locations$Agents$Flows$Pages = Resource$Projects$Locations$Agents$Flows$Pages;
      class Resource$Projects$Locations$Agents$Flows$Transitionroutegroups {
          constructor(context) {
              this.context = context;
          }
          create(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+parent}/transitionRouteGroups').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          delete(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'DELETE',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          get(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          list(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+parent}/transitionRouteGroups').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          patch(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'PATCH',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      dialogflow_v3beta1.Resource$Projects$Locations$Agents$Flows$Transitionroutegroups = Resource$Projects$Locations$Agents$Flows$Transitionroutegroups;
      class Resource$Projects$Locations$Agents$Flows$Versions {
          constructor(context) {
              this.context = context;
          }
          create(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          delete(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'DELETE',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          get(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          list(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          load(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+name}:load').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          patch(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'PATCH',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      dialogflow_v3beta1.Resource$Projects$Locations$Agents$Flows$Versions = Resource$Projects$Locations$Agents$Flows$Versions;
      class Resource$Projects$Locations$Agents$Intents {
          constructor(context) {
              this.context = context;
          }
          create(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          delete(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'DELETE',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          get(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          list(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          patch(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'PATCH',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      dialogflow_v3beta1.Resource$Projects$Locations$Agents$Intents = Resource$Projects$Locations$Agents$Intents;
      class Resource$Projects$Locations$Agents$Sessions {
          constructor(context) {
              this.context = context;
              this.entityTypes = new Resource$Projects$Locations$Agents$Sessions$Entitytypes(this.context);
          }
          detectIntent(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+session}:detectIntent').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['session'],
                  pathParams: ['session'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          fulfillIntent(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+session}:fulfillIntent').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['session'],
                  pathParams: ['session'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          matchIntent(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+session}:matchIntent').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['session'],
                  pathParams: ['session'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      dialogflow_v3beta1.Resource$Projects$Locations$Agents$Sessions = Resource$Projects$Locations$Agents$Sessions;
      class Resource$Projects$Locations$Agents$Sessions$Entitytypes {
          constructor(context) {
              this.context = context;
          }
          create(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          delete(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'DELETE',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          get(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          list(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          patch(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'PATCH',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      dialogflow_v3beta1.Resource$Projects$Locations$Agents$Sessions$Entitytypes = Resource$Projects$Locations$Agents$Sessions$Entitytypes;
      class Resource$Projects$Locations$Agents$Webhooks {
          constructor(context) {
              this.context = context;
          }
          create(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+parent}/webhooks').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          delete(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'DELETE',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          get(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          list(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+parent}/webhooks').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['parent'],
                  pathParams: ['parent'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          patch(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'PATCH',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      dialogflow_v3beta1.Resource$Projects$Locations$Agents$Webhooks = Resource$Projects$Locations$Agents$Webhooks;
      class Resource$Projects$Locations$Operations {
          constructor(context) {
              this.context = context;
          }
          cancel(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          get(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          list(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      dialogflow_v3beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations;
      class Resource$Projects$Operations {
          constructor(context) {
              this.context = context;
          }
          cancel(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'POST',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          get(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
          list(paramsOrCallback, optionsOrCallback, callback) {
              let params = (paramsOrCallback ||
                  {});
              let options = (optionsOrCallback || {});
              if (typeof paramsOrCallback === 'function') {
                  callback = paramsOrCallback;
                  params = {};
                  options = {};
              }
              if (typeof optionsOrCallback === 'function') {
                  callback = optionsOrCallback;
                  options = {};
              }
              const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/';
              const parameters = {
                  options: Object.assign({
                      url: (rootUrl + '/v3beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'),
                      method: 'GET',
                  }, options),
                  params,
                  requiredParams: ['name'],
                  pathParams: ['name'],
                  context: this.context,
              };
              if (callback) {
                  googleapis_common_1.createAPIRequest(parameters, callback);
              }
              else {
                  return googleapis_common_1.createAPIRequest(parameters);
              }
          }
      }
      dialogflow_v3beta1.Resource$Projects$Operations = Resource$Projects$Operations;
  })(dialogflow_v3beta1 = exports.dialogflow_v3beta1 || (exports.dialogflow_v3beta1 = {}));
  //# sourceMappingURL=v3beta1.js.map