import * as gax from 'google-gax' ; import { Callback , CallOptions , Descriptors , ClientOptions , PaginationCallback , GaxCall , } from 'google-gax' ; import { Transform } from 'stream' ; import { RequestType } from 'google-gax/build/src/apitypes' ; import * as protos from '../../protos/protos' ; import jsonProtos = require ( '../../protos/protos.json' ) ; /**
 * Client JSON configuration object, loaded from
 * `src/v3beta1/changelogs_client_config.json`.
 * This file defines retry strategy and timeouts for all API methods in this library.
 */ import * as gapicConfig from './changelogs_client_config.json' ; const version = require ( '../../../package.json' ) . version ; /**
 *  Service for managing  google . cloud . dialogflow . cx . v3beta1 . Changelog .
 *  class memberof export class ChangelogsClient { private _terminated = false ; private _opts : ClientOptions ; private _providedCustomServicePath : boolean ; private _gaxModule : typeof gax | typeof gax . fallback ; private _gaxGrpc : gax . GrpcClient | gax . fallback . GrpcClient ; private _protos : { } ; private _defaults : { [ method ] : gax . CallSettings ; } ; auth : gax . GoogleAuth ; descriptors : Descriptors = { page : { } , stream : { } , longrunning : { } , batching : { } , } ; warn : ( code : string , message : string , warnType ? : string ) => void ; innerApiCalls : { [ name ] : Function ; } ; pathTemplates : { [ name ] : gax . PathTemplate ; } ; changelogsStub ? : Promise < { [ name ] : Function ; } > ; param options param options . credentials param { string } options . credentials . client_email param { string } options . credentials . private_key param { string } options . email param { string } options . keyFilename param { number } options . port param { string } options . projectId - The project ID from the Google
     *     Developer's Console, e.g. 'grape-spaceship-123'. We will also check
     *     the environment variable GCLOUD_PROJECT for your project ID. If your
     *     app is running in an environment which supports
     *      https ,
     *     your project ID will be detected automatically.
     *  param { string } options . apiEndpoint param { gax . ClientConfig } options . clientConfig - Client configuration override.
     *     Follows the structure of  gapicConfig .
     *  param { boolean } options . fallback constructor ( opts ? ) { const staticMembers = this . constructor as typeof ChangelogsClient ; const servicePath = opts ?. servicePath || opts ?. apiEndpoint || staticMembers . servicePath ; this . _providedCustomServicePath = ! ! ( opts ?. servicePath || opts ?. apiEndpoint ) ; const port = opts ?. port || staticMembers . port ; const clientConfig = opts ?. clientConfig ?? { } ; const fallback = opts ?. fallback ?? ( typeof window !== 'undefined' && typeof window ?. fetch === 'function' ) ; opts = Object . assign ( { servicePath , port , clientConfig , fallback } , opts ) ; if ( servicePath !== staticMembers . servicePath && ! ( 'scopes' in opts ) ) { opts [ 'scopes' ] = staticMembers . scopes ; } this . _gaxModule = opts . fallback ? gax . fallback : gax ; this . _gaxGrpc = new this . _gaxModule . GrpcClient ( opts ) ; this . _opts = opts ; this . auth = this . _gaxGrpc . auth as gax . GoogleAuth ; this . auth . useJWTAccessWithScope = true ; this . auth . defaultServicePath = staticMembers . servicePath ; if ( servicePath === staticMembers . servicePath ) { this . auth . defaultScopes = staticMembers . scopes ; } const clientHeader = [ `gax/${ this . _gaxModule . version }` , `gapic/${ version }` ] ; if ( typeof process !== 'undefined' && 'versions' in process ) { clientHeader . push ( `gl-node/${ process . versions . node }` ) ; } else { clientHeader . push ( `gl-web/${ this . _gaxModule . version }` ) ; } if ( ! opts . fallback ) { clientHeader . push ( `grpc/${ this . _gaxGrpc . grpcVersion }` ) ; } else if ( opts . fallback === 'rest' ) { clientHeader . push ( `rest/${ this . _gaxGrpc . grpcVersion }` ) ; } if ( opts . libName && opts . libVersion ) { clientHeader . push ( `${ opts . libName }/${ opts . libVersion }` ) ; } this . _protos = this . _gaxGrpc . loadProtoJSON ( jsonProtos ) ; this . pathTemplates = { agentPathTemplate : new this . _gaxModule . PathTemplate ( 'projects/{project}/locations/{location}/agents/{agent}' ) , agentValidationResultPathTemplate : new this . _gaxModule . PathTemplate ( 'projects/{project}/locations/{location}/agents/{agent}/validationResult' ) , changelogPathTemplate : new this . _gaxModule . PathTemplate ( 'projects/{project}/locations/{location}/agents/{agent}/changelogs/{changelog}' ) , continuousTestResultPathTemplate : new this . _gaxModule . PathTemplate ( 'projects/{project}/locations/{location}/agents/{agent}/environments/{environment}/continuousTestResults/{continuous_test_result}' ) , deploymentPathTemplate : new this . _gaxModule . PathTemplate ( 'projects/{project}/locations/{location}/agents/{agent}/environments/{environment}/deployments/{deployment}' ) , entityTypePathTemplate : new this . _gaxModule . PathTemplate ( 'projects/{project}/locations/{location}/agents/{agent}/entityTypes/{entity_type}' ) , environmentPathTemplate : new this . _gaxModule . PathTemplate ( 'projects/{project}/locations/{location}/agents/{agent}/environments/{environment}' ) , experimentPathTemplate : new this . _gaxModule . PathTemplate ( 'projects/{project}/locations/{location}/agents/{agent}/environments/{environment}/experiments/{experiment}' ) , flowPathTemplate : new this . _gaxModule . PathTemplate ( 'projects/{project}/locations/{location}/agents/{agent}/flows/{flow}' ) , flowValidationResultPathTemplate : new this . _gaxModule . PathTemplate ( 'projects/{project}/locations/{location}/agents/{agent}/flows/{flow}/validationResult' ) , intentPathTemplate : new this . _gaxModule . PathTemplate ( 'projects/{project}/locations/{location}/agents/{agent}/intents/{intent}' ) , locationPathTemplate : new this . _gaxModule . PathTemplate ( 'projects/{project}/locations/{location}' ) , pagePathTemplate : new this . _gaxModule . PathTemplate ( 'projects/{project}/locations/{location}/agents/{agent}/flows/{flow}/pages/{page}' ) , projectPathTemplate : new this . _gaxModule . PathTemplate ( 'projects/{project}' ) , projectLocationAgentEnvironmentSessionEntityTypePathTemplate : new this . _gaxModule . PathTemplate ( 'projects/{project}/locations/{location}/agents/{agent}/environments/{environment}/sessions/{session}/entityTypes/{entity_type}' ) , projectLocationAgentSessionEntityTypePathTemplate : new this . _gaxModule . PathTemplate ( 'projects/{project}/locations/{location}/agents/{agent}/sessions/{session}/entityTypes/{entity_type}' ) , securitySettingsPathTemplate : new this . _gaxModule . PathTemplate ( 'projects/{project}/locations/{location}/securitySettings/{security_settings}' ) , testCasePathTemplate : new this . _gaxModule . PathTemplate ( 'projects/{project}/locations/{location}/agents/{agent}/testCases/{test_case}' ) , testCaseResultPathTemplate : new this . _gaxModule . PathTemplate ( 'projects/{project}/locations/{location}/agents/{agent}/testCases/{test_case}/results/{result}' ) , transitionRouteGroupPathTemplate : new this . _gaxModule . PathTemplate ( 'projects/{project}/locations/{location}/agents/{agent}/flows/{flow}/transitionRouteGroups/{transition_route_group}' ) , versionPathTemplate : new this . _gaxModule . PathTemplate ( 'projects/{project}/locations/{location}/agents/{agent}/flows/{flow}/versions/{version}' ) , webhookPathTemplate : new this . _gaxModule . PathTemplate ( 'projects/{project}/locations/{location}/agents/{agent}/webhooks/{webhook}' ) , } ; this . descriptors . page = { listChangelogs : new this . _gaxModule . PageDescriptor ( 'pageToken' , 'nextPageToken' , 'changelogs' ) , } ; this . _defaults = this . _gaxGrpc . constructSettings ( 'google.cloud.dialogflow.cx.v3beta1.Changelogs' , gapicConfig as gax . ClientConfig , opts . clientConfig || { } , { 'x-goog-api-client' : clientHeader . join ( ' ' ) } ) ; this . innerApiCalls = { } ; this . warn = gax . warn ; } returns { Promise } initialize ( ) { if ( this . changelogsStub ) { return this . changelogsStub ; } this . changelogsStub = this . _gaxGrpc . createStub ( this . _opts . fallback ? ( this . _protos as protobuf . Root ) . lookupService ( 'google.cloud.dialogflow.cx.v3beta1.Changelogs' ) : ( this . _protos as any ) . google . cloud . dialogflow . cx . v3beta1 . Changelogs , this . _opts , this . _providedCustomServicePath ) as Promise < { [ method ] : Function ; } > ; const changelogsStubMethods = [ 'listChangelogs' , 'getChangelog' ] ; for ( const methodName of changelogsStubMethods ) { const callPromise = this . changelogsStub . then ( stub => ( ... args ) => { if ( this . _terminated ) { return Promise . reject ( 'The client has already been closed.' ) ; } const func = stub [ methodName ] ; return func . apply ( stub , args ) ; } , ( err ) => ( ) => { throw err ; } ) ; const descriptor = this . descriptors . page [ methodName ] || undefined ; const apiCall = this . _gaxModule . createApiCall ( callPromise , this . _defaults [ methodName ] , descriptor ) ; this . innerApiCalls [ methodName ] = apiCall ; } return this . changelogsStub ; } returns { string } static get servicePath ( ) { return 'dialogflow.googleapis.com' ; } returns { string } static get apiEndpoint ( ) { return 'dialogflow.googleapis.com' ; } returns { number } static get port ( ) { return 443 ; } returns { string [ ] } static get scopes ( ) { return [ 'https://www.googleapis.com/auth/cloud-platform' , 'https://www.googleapis.com/auth/dialogflow' , ] ; } getProjectId ( ) ; getProjectId ( callback ) ; returns { Promise } getProjectId ( callback ? ) { if ( callback ) { this . auth . getProjectId ( callback ) ; return ; } return this . auth . getProjectId ( ) ; } param request param { string } request . name param { object } options Call options. See  https for more details.
     *  returns { Promise } - The promise which resolves to an array.
     *   The first element of the array is an object representing [Changelog] google . cloud . dialogflow . cx . v3beta1 . Changelog .
     *   Please see the
     *   [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
     *   for more details and examples.
     *  example getChangelog ( request ? , options ? ) ; getChangelog ( request , options , callback ) ; getChangelog ( request , callback ) ; getChangelog ( request ? , optionsOrCallback ? , callback ? ) { request = request || { } ; let options ; if ( typeof optionsOrCallback === 'function' && callback === undefined ) { callback = optionsOrCallback ; options = { } ; } else { options = optionsOrCallback as CallOptions ; } options = options || { } ; options . otherArgs = options . otherArgs || { } ; options . otherArgs . headers = options . otherArgs . headers || { } ; options . otherArgs . headers [ 'x-goog-request-params' ] = gax . routingHeader . fromParams ( { name : request . name || '' , } ) ; this . initialize ( ) ; return this . innerApiCalls . getChangelog ( request , options , callback ) ; } param request param { string } request . parent param { string } request . filter param { number } request . pageSize param { string } request . pageToken param { object } options Call options. See  https for more details.
     *  returns { Promise } - The promise which resolves to an array.
     *   The first element of the array is Array of [Changelog] google . cloud . dialogflow . cx . v3beta1 . Changelog .
     *   The client library will perform auto-pagination by default: it will call the API as many
     *   times as needed and will merge results from all the pages into this array.
     *   Note that it can affect your quota.
     *   We recommend using `listChangelogsAsync()`
     *   method described below for async iteration which you can stop as needed.
     *   Please see the
     *   [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
     *   for more details and examples.
      listChangelogs ( request ? , options ? ) ; listChangelogs ( request , options , callback ) ; listChangelogs ( request , callback ) ; listChangelogs ( request ? , optionsOrCallback ? , callback ? ) { request = request || { } ; let options ; if ( typeof optionsOrCallback === 'function' && callback === undefined ) { callback = optionsOrCallback ; options = { } ; } else { options = optionsOrCallback as CallOptions ; } options = options || { } ; options . otherArgs = options . otherArgs || { } ; options . otherArgs . headers = options . otherArgs . headers || { } ; options . otherArgs . headers [ 'x-goog-request-params' ] = gax . routingHeader . fromParams ( { parent : request . parent || '' , } ) ; this . initialize ( ) ; return this . innerApiCalls . listChangelogs ( request , options , callback ) ; } param request param { string } request . parent param { string } request . filter param { number } request . pageSize param { string } request . pageToken param { object } options Call options. See  https for more details.
     *  returns { Stream } *   An object stream which emits an object representing [Changelog] google . cloud . dialogflow . cx . v3beta1 . Changelog on 'data' event.
     *   The client library will perform auto-pagination by default: it will call the API as many
     *   times as needed. Note that it can affect your quota.
     *   We recommend using `listChangelogsAsync()`
     *   method described below for async iteration which you can stop as needed.
     *   Please see the
     *   [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
     *   for more details and examples.
      listChangelogsStream ( request ? , options ? ) { request = request || { } ; options = options || { } ; options . otherArgs = options . otherArgs || { } ; options . otherArgs . headers = options . otherArgs . headers || { } ; options . otherArgs . headers [ 'x-goog-request-params' ] = gax . routingHeader . fromParams ( { parent : request . parent || '' , } ) ; const defaultCallSettings = this . _defaults [ 'listChangelogs' ] ; const callSettings = defaultCallSettings . merge ( options ) ; this . initialize ( ) ; return this . descriptors . page . listChangelogs . createStream ( this . innerApiCalls . listChangelogs as gax . GaxCall , request , callSettings ) ; } param request param { string } request . parent param { string } request . filter param { number } request . pageSize param { string } request . pageToken param { object } options Call options. See  https for more details.
     *  returns { Object } *   An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols).
     *   When you iterate the returned iterable, each element will be an object representing
     *   [Changelog] google . cloud . dialogflow . cx . v3beta1 . Changelog . The API will be called under the hood as needed, once per the page,
     *   so you can stop the iteration when you don't need more results.
     *   Please see the
     *   [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
     *   for more details and examples.
     *  example listChangelogsAsync ( request ? , options ? ) { request = request || { } ; options = options || { } ; options . otherArgs = options . otherArgs || { } ; options . otherArgs . headers = options . otherArgs . headers || { } ; options . otherArgs . headers [ 'x-goog-request-params' ] = gax . routingHeader . fromParams ( { parent : request . parent || '' , } ) ; const defaultCallSettings = this . _defaults [ 'listChangelogs' ] ; const callSettings = defaultCallSettings . merge ( options ) ; this . initialize ( ) ; return this . descriptors . page . listChangelogs . asyncIterate ( this . innerApiCalls [ 'listChangelogs' ] as GaxCall , request as unknown as RequestType , callSettings ) as AsyncIterable < protos . google . cloud . dialogflow . cx . v3beta1 . IChangelog > ; } param { string } project param { string } location param { string } agent returns { string } agentPath ( project , location , agent ) { return this . pathTemplates . agentPathTemplate . render ( { project : project , location : location , agent : agent , } ) ; } param { string } agentName returns { string } matchProjectFromAgentName ( agentName ) { return this . pathTemplates . agentPathTemplate . match ( agentName ) . project ; } param { string } agentName returns { string } matchLocationFromAgentName ( agentName ) { return this . pathTemplates . agentPathTemplate . match ( agentName ) . location ; } param { string } agentName returns { string } matchAgentFromAgentName ( agentName ) { return this . pathTemplates . agentPathTemplate . match ( agentName ) . agent ; } param { string } project param { string } location param { string } agent returns { string } agentValidationResultPath ( project , location , agent ) { return this . pathTemplates . agentValidationResultPathTemplate . render ( { project : project , location : location , agent : agent , } ) ; } param { string } agentValidationResultName returns { string } matchProjectFromAgentValidationResultName ( agentValidationResultName ) { return this . pathTemplates . agentValidationResultPathTemplate . match ( agentValidationResultName ) . project ; } param { string } agentValidationResultName returns { string } matchLocationFromAgentValidationResultName ( agentValidationResultName ) { return this . pathTemplates . agentValidationResultPathTemplate . match ( agentValidationResultName ) . location ; } param { string } agentValidationResultName returns { string } matchAgentFromAgentValidationResultName ( agentValidationResultName ) { return this . pathTemplates . agentValidationResultPathTemplate . match ( agentValidationResultName ) . agent ; } param { string } project param { string } location param { string } agent param { string } changelog returns { string } changelogPath ( project , location , agent , changelog ) { return this . pathTemplates . changelogPathTemplate . render ( { project : project , location : location , agent : agent , changelog : changelog , } ) ; } param { string } changelogName returns { string } matchProjectFromChangelogName ( changelogName ) { return this . pathTemplates . changelogPathTemplate . match ( changelogName ) . project ; } param { string } changelogName returns { string } matchLocationFromChangelogName ( changelogName ) { return this . pathTemplates . changelogPathTemplate . match ( changelogName ) . location ; } param { string } changelogName returns { string } matchAgentFromChangelogName ( changelogName ) { return this . pathTemplates . changelogPathTemplate . match ( changelogName ) . agent ; } param { string } changelogName returns { string } matchChangelogFromChangelogName ( changelogName ) { return this . pathTemplates . changelogPathTemplate . match ( changelogName ) . changelog ; } param { string } project param { string } location param { string } agent param { string } environment param { string } continuous_test_result returns { string } continuousTestResultPath ( project , location , agent , environment , continuousTestResult ) { return this . pathTemplates . continuousTestResultPathTemplate . render ( { project : project , location : location , agent : agent , environment : environment , continuous_test_result : continuousTestResult , } ) ; } param { string } continuousTestResultName returns { string } matchProjectFromContinuousTestResultName ( continuousTestResultName ) { return this . pathTemplates . continuousTestResultPathTemplate . match ( continuousTestResultName ) . project ; } param { string } continuousTestResultName returns { string } matchLocationFromContinuousTestResultName ( continuousTestResultName ) { return this . pathTemplates . continuousTestResultPathTemplate . match ( continuousTestResultName ) . location ; } param { string } continuousTestResultName returns { string } matchAgentFromContinuousTestResultName ( continuousTestResultName ) { return this . pathTemplates . continuousTestResultPathTemplate . match ( continuousTestResultName ) . agent ; } param { string } continuousTestResultName returns { string } matchEnvironmentFromContinuousTestResultName ( continuousTestResultName ) { return this . pathTemplates . continuousTestResultPathTemplate . match ( continuousTestResultName ) . environment ; } param { string } continuousTestResultName returns { string } matchContinuousTestResultFromContinuousTestResultName ( continuousTestResultName ) { return this . pathTemplates . continuousTestResultPathTemplate . match ( continuousTestResultName ) . continuous_test_result ; } param { string } project param { string } location param { string } agent param { string } environment param { string } deployment returns { string } deploymentPath ( project , location , agent , environment , deployment ) { return this . pathTemplates . deploymentPathTemplate . render ( { project : project , location : location , agent : agent , environment : environment , deployment : deployment , } ) ; } param { string } deploymentName returns { string } matchProjectFromDeploymentName ( deploymentName ) { return this . pathTemplates . deploymentPathTemplate . match ( deploymentName ) . project ; } param { string } deploymentName returns { string } matchLocationFromDeploymentName ( deploymentName ) { return this . pathTemplates . deploymentPathTemplate . match ( deploymentName ) . location ; } param { string } deploymentName returns { string } matchAgentFromDeploymentName ( deploymentName ) { return this . pathTemplates . deploymentPathTemplate . match ( deploymentName ) . agent ; } param { string } deploymentName returns { string } matchEnvironmentFromDeploymentName ( deploymentName ) { return this . pathTemplates . deploymentPathTemplate . match ( deploymentName ) . environment ; } param { string } deploymentName returns { string } matchDeploymentFromDeploymentName ( deploymentName ) { return this . pathTemplates . deploymentPathTemplate . match ( deploymentName ) . deployment ; } param { string } project param { string } location param { string } agent param { string } entity_type returns { string } entityTypePath ( project , location , agent , entityType ) { return this . pathTemplates . entityTypePathTemplate . render ( { project : project , location : location , agent : agent , entity_type : entityType , } ) ; } param { string } entityTypeName returns { string } matchProjectFromEntityTypeName ( entityTypeName ) { return this . pathTemplates . entityTypePathTemplate . match ( entityTypeName ) . project ; } param { string } entityTypeName returns { string } matchLocationFromEntityTypeName ( entityTypeName ) { return this . pathTemplates . entityTypePathTemplate . match ( entityTypeName ) . location ; } param { string } entityTypeName returns { string } matchAgentFromEntityTypeName ( entityTypeName ) { return this . pathTemplates . entityTypePathTemplate . match ( entityTypeName ) . agent ; } param { string } entityTypeName returns { string } matchEntityTypeFromEntityTypeName ( entityTypeName ) { return this . pathTemplates . entityTypePathTemplate . match ( entityTypeName ) . entity_type ; } param { string } project param { string } location param { string } agent param { string } environment returns { string } environmentPath ( project , location , agent , environment ) { return this . pathTemplates . environmentPathTemplate . render ( { project : project , location : location , agent : agent , environment : environment , } ) ; } param { string } environmentName returns { string } matchProjectFromEnvironmentName ( environmentName ) { return this . pathTemplates . environmentPathTemplate . match ( environmentName ) . project ; } param { string } environmentName returns { string } matchLocationFromEnvironmentName ( environmentName ) { return this . pathTemplates . environmentPathTemplate . match ( environmentName ) . location ; } param { string } environmentName returns { string } matchAgentFromEnvironmentName ( environmentName ) { return this . pathTemplates . environmentPathTemplate . match ( environmentName ) . agent ; } param { string } environmentName returns { string } matchEnvironmentFromEnvironmentName ( environmentName ) { return this . pathTemplates . environmentPathTemplate . match ( environmentName ) . environment ; } param { string } project param { string } location param { string } agent param { string } environment param { string } experiment returns { string } experimentPath ( project , location , agent , environment , experiment ) { return this . pathTemplates . experimentPathTemplate . render ( { project : project , location : location , agent : agent , environment : environment , experiment : experiment , } ) ; } param { string } experimentName returns { string } matchProjectFromExperimentName ( experimentName ) { return this . pathTemplates . experimentPathTemplate . match ( experimentName ) . project ; } param { string } experimentName returns { string } matchLocationFromExperimentName ( experimentName ) { return this . pathTemplates . experimentPathTemplate . match ( experimentName ) . location ; } param { string } experimentName returns { string } matchAgentFromExperimentName ( experimentName ) { return this . pathTemplates . experimentPathTemplate . match ( experimentName ) . agent ; } param { string } experimentName returns { string } matchEnvironmentFromExperimentName ( experimentName ) { return this . pathTemplates . experimentPathTemplate . match ( experimentName ) . environment ; } param { string } experimentName returns { string } matchExperimentFromExperimentName ( experimentName ) { return this . pathTemplates . experimentPathTemplate . match ( experimentName ) . experiment ; } param { string } project param { string } location param { string } agent param { string } flow returns { string } flowPath ( project , location , agent , flow ) { return this . pathTemplates . flowPathTemplate . render ( { project : project , location : location , agent : agent , flow : flow , } ) ; } param { string } flowName returns { string } matchProjectFromFlowName ( flowName ) { return this . pathTemplates . flowPathTemplate . match ( flowName ) . project ; } param { string } flowName returns { string } matchLocationFromFlowName ( flowName ) { return this . pathTemplates . flowPathTemplate . match ( flowName ) . location ; } param { string } flowName returns { string } matchAgentFromFlowName ( flowName ) { return this . pathTemplates . flowPathTemplate . match ( flowName ) . agent ; } param { string } flowName returns { string } matchFlowFromFlowName ( flowName ) { return this . pathTemplates . flowPathTemplate . match ( flowName ) . flow ; } param { string } project param { string } location param { string } agent param { string } flow returns { string } flowValidationResultPath ( project , location , agent , flow ) { return this . pathTemplates . flowValidationResultPathTemplate . render ( { project : project , location : location , agent : agent , flow : flow , } ) ; } param { string } flowValidationResultName returns { string } matchProjectFromFlowValidationResultName ( flowValidationResultName ) { return this . pathTemplates . flowValidationResultPathTemplate . match ( flowValidationResultName ) . project ; } param { string } flowValidationResultName returns { string } matchLocationFromFlowValidationResultName ( flowValidationResultName ) { return this . pathTemplates . flowValidationResultPathTemplate . match ( flowValidationResultName ) . location ; } param { string } flowValidationResultName returns { string } matchAgentFromFlowValidationResultName ( flowValidationResultName ) { return this . pathTemplates . flowValidationResultPathTemplate . match ( flowValidationResultName ) . agent ; } param { string } flowValidationResultName returns { string } matchFlowFromFlowValidationResultName ( flowValidationResultName ) { return this . pathTemplates . flowValidationResultPathTemplate . match ( flowValidationResultName ) . flow ; } param { string } project param { string } location param { string } agent param { string } intent returns { string } intentPath ( project , location , agent , intent ) { return this . pathTemplates . intentPathTemplate . render ( { project : project , location : location , agent : agent , intent : intent , } ) ; } param { string } intentName returns { string } matchProjectFromIntentName ( intentName ) { return this . pathTemplates . intentPathTemplate . match ( intentName ) . project ; } param { string } intentName returns { string } matchLocationFromIntentName ( intentName ) { return this . pathTemplates . intentPathTemplate . match ( intentName ) . location ; } param { string } intentName returns { string } matchAgentFromIntentName ( intentName ) { return this . pathTemplates . intentPathTemplate . match ( intentName ) . agent ; } param { string } intentName returns { string } matchIntentFromIntentName ( intentName ) { return this . pathTemplates . intentPathTemplate . match ( intentName ) . intent ; } param { string } project param { string } location returns { string } locationPath ( project , location ) { return this . pathTemplates . locationPathTemplate . render ( { project : project , location : location , } ) ; } param { string } locationName returns { string } matchProjectFromLocationName ( locationName ) { return this . pathTemplates . locationPathTemplate . match ( locationName ) . project ; } param { string } locationName returns { string } matchLocationFromLocationName ( locationName ) { return this . pathTemplates . locationPathTemplate . match ( locationName ) . location ; } param { string } project param { string } location param { string } agent param { string } flow param { string } page returns { string } pagePath ( project , location , agent , flow , page ) { return this . pathTemplates . pagePathTemplate . render ( { project : project , location : location , agent : agent , flow : flow , page : page , } ) ; } param { string } pageName returns { string } matchProjectFromPageName ( pageName ) { return this . pathTemplates . pagePathTemplate . match ( pageName ) . project ; } param { string } pageName returns { string } matchLocationFromPageName ( pageName ) { return this . pathTemplates . pagePathTemplate . match ( pageName ) . location ; } param { string } pageName returns { string } matchAgentFromPageName ( pageName ) { return this . pathTemplates . pagePathTemplate . match ( pageName ) . agent ; } param { string } pageName returns { string } matchFlowFromPageName ( pageName ) { return this . pathTemplates . pagePathTemplate . match ( pageName ) . flow ; } param { string } pageName returns { string } matchPageFromPageName ( pageName ) { return this . pathTemplates . pagePathTemplate . match ( pageName ) . page ; } param { string } project returns { string } projectPath ( project ) { return this . pathTemplates . projectPathTemplate . render ( { project : project , } ) ; } param { string } projectName returns { string } matchProjectFromProjectName ( projectName ) { return this . pathTemplates . projectPathTemplate . match ( projectName ) . project ; } param { string } project param { string } location param { string } agent param { string } environment param { string } session param { string } entity_type returns { string } projectLocationAgentEnvironmentSessionEntityTypePath ( project , location , agent , environment , session , entityType ) { return this . pathTemplates . projectLocationAgentEnvironmentSessionEntityTypePathTemplate . render ( { project : project , location : location , agent : agent , environment : environment , session : session , entity_type : entityType , } ) ; } param { string } projectLocationAgentEnvironmentSessionEntityTypeName returns { string } matchProjectFromProjectLocationAgentEnvironmentSessionEntityTypeName ( projectLocationAgentEnvironmentSessionEntityTypeName ) { return this . pathTemplates . projectLocationAgentEnvironmentSessionEntityTypePathTemplate . match ( projectLocationAgentEnvironmentSessionEntityTypeName ) . project ; } param { string } projectLocationAgentEnvironmentSessionEntityTypeName returns { string } matchLocationFromProjectLocationAgentEnvironmentSessionEntityTypeName ( projectLocationAgentEnvironmentSessionEntityTypeName ) { return this . pathTemplates . projectLocationAgentEnvironmentSessionEntityTypePathTemplate . match ( projectLocationAgentEnvironmentSessionEntityTypeName ) . location ; } param { string } projectLocationAgentEnvironmentSessionEntityTypeName returns { string } matchAgentFromProjectLocationAgentEnvironmentSessionEntityTypeName ( projectLocationAgentEnvironmentSessionEntityTypeName ) { return this . pathTemplates . projectLocationAgentEnvironmentSessionEntityTypePathTemplate . match ( projectLocationAgentEnvironmentSessionEntityTypeName ) . agent ; } param { string } projectLocationAgentEnvironmentSessionEntityTypeName returns { string } matchEnvironmentFromProjectLocationAgentEnvironmentSessionEntityTypeName ( projectLocationAgentEnvironmentSessionEntityTypeName ) { return this . pathTemplates . projectLocationAgentEnvironmentSessionEntityTypePathTemplate . match ( projectLocationAgentEnvironmentSessionEntityTypeName ) . environment ; } param { string } projectLocationAgentEnvironmentSessionEntityTypeName returns { string } matchSessionFromProjectLocationAgentEnvironmentSessionEntityTypeName ( projectLocationAgentEnvironmentSessionEntityTypeName ) { return this . pathTemplates . projectLocationAgentEnvironmentSessionEntityTypePathTemplate . match ( projectLocationAgentEnvironmentSessionEntityTypeName ) . session ; } param { string } projectLocationAgentEnvironmentSessionEntityTypeName returns { string } matchEntityTypeFromProjectLocationAgentEnvironmentSessionEntityTypeName ( projectLocationAgentEnvironmentSessionEntityTypeName ) { return this . pathTemplates . projectLocationAgentEnvironmentSessionEntityTypePathTemplate . match ( projectLocationAgentEnvironmentSessionEntityTypeName ) . entity_type ; } param { string } project param { string } location param { string } agent param { string } session param { string } entity_type returns { string } projectLocationAgentSessionEntityTypePath ( project , location , agent , session , entityType ) { return this . pathTemplates . projectLocationAgentSessionEntityTypePathTemplate . render ( { project : project , location : location , agent : agent , session : session , entity_type : entityType , } ) ; } param { string } projectLocationAgentSessionEntityTypeName returns { string } matchProjectFromProjectLocationAgentSessionEntityTypeName ( projectLocationAgentSessionEntityTypeName ) { return this . pathTemplates . projectLocationAgentSessionEntityTypePathTemplate . match ( projectLocationAgentSessionEntityTypeName ) . project ; } param { string } projectLocationAgentSessionEntityTypeName returns { string } matchLocationFromProjectLocationAgentSessionEntityTypeName ( projectLocationAgentSessionEntityTypeName ) { return this . pathTemplates . projectLocationAgentSessionEntityTypePathTemplate . match ( projectLocationAgentSessionEntityTypeName ) . location ; } param { string } projectLocationAgentSessionEntityTypeName returns { string } matchAgentFromProjectLocationAgentSessionEntityTypeName ( projectLocationAgentSessionEntityTypeName ) { return this . pathTemplates . projectLocationAgentSessionEntityTypePathTemplate . match ( projectLocationAgentSessionEntityTypeName ) . agent ; } param { string } projectLocationAgentSessionEntityTypeName returns { string } matchSessionFromProjectLocationAgentSessionEntityTypeName ( projectLocationAgentSessionEntityTypeName ) { return this . pathTemplates . projectLocationAgentSessionEntityTypePathTemplate . match ( projectLocationAgentSessionEntityTypeName ) . session ; } param { string } projectLocationAgentSessionEntityTypeName returns { string } matchEntityTypeFromProjectLocationAgentSessionEntityTypeName ( projectLocationAgentSessionEntityTypeName ) { return this . pathTemplates . projectLocationAgentSessionEntityTypePathTemplate . match ( projectLocationAgentSessionEntityTypeName ) . entity_type ; } param { string } project param { string } location param { string } security_settings returns { string } securitySettingsPath ( project , location , securitySettings ) { return this . pathTemplates . securitySettingsPathTemplate . render ( { project : project , location : location , security_settings : securitySettings , } ) ; } param { string } securitySettingsName returns { string } matchProjectFromSecuritySettingsName ( securitySettingsName ) { return this . pathTemplates . securitySettingsPathTemplate . match ( securitySettingsName ) . project ; } param { string } securitySettingsName returns { string } matchLocationFromSecuritySettingsName ( securitySettingsName ) { return this . pathTemplates . securitySettingsPathTemplate . match ( securitySettingsName ) . location ; } param { string } securitySettingsName returns { string } matchSecuritySettingsFromSecuritySettingsName ( securitySettingsName ) { return this . pathTemplates . securitySettingsPathTemplate . match ( securitySettingsName ) . security_settings ; } param { string } project param { string } location param { string } agent param { string } test_case returns { string } testCasePath ( project , location , agent , testCase ) { return this . pathTemplates . testCasePathTemplate . render ( { project : project , location : location , agent : agent , test_case : testCase , } ) ; } param { string } testCaseName returns { string } matchProjectFromTestCaseName ( testCaseName ) { return this . pathTemplates . testCasePathTemplate . match ( testCaseName ) . project ; } param { string } testCaseName returns { string } matchLocationFromTestCaseName ( testCaseName ) { return this . pathTemplates . testCasePathTemplate . match ( testCaseName ) . location ; } param { string } testCaseName returns { string } matchAgentFromTestCaseName ( testCaseName ) { return this . pathTemplates . testCasePathTemplate . match ( testCaseName ) . agent ; } param { string } testCaseName returns { string } matchTestCaseFromTestCaseName ( testCaseName ) { return this . pathTemplates . testCasePathTemplate . match ( testCaseName ) . test_case ; } param { string } project param { string } location param { string } agent param { string } test_case param { string } result returns { string } testCaseResultPath ( project , location , agent , testCase , result ) { return this . pathTemplates . testCaseResultPathTemplate . render ( { project : project , location : location , agent : agent , test_case : testCase , result : result , } ) ; } param { string } testCaseResultName returns { string } matchProjectFromTestCaseResultName ( testCaseResultName ) { return this . pathTemplates . testCaseResultPathTemplate . match ( testCaseResultName ) . project ; } param { string } testCaseResultName returns { string } matchLocationFromTestCaseResultName ( testCaseResultName ) { return this . pathTemplates . testCaseResultPathTemplate . match ( testCaseResultName ) . location ; } param { string } testCaseResultName returns { string } matchAgentFromTestCaseResultName ( testCaseResultName ) { return this . pathTemplates . testCaseResultPathTemplate . match ( testCaseResultName ) . agent ; } param { string } testCaseResultName returns { string } matchTestCaseFromTestCaseResultName ( testCaseResultName ) { return this . pathTemplates . testCaseResultPathTemplate . match ( testCaseResultName ) . test_case ; } param { string } testCaseResultName returns { string } matchResultFromTestCaseResultName ( testCaseResultName ) { return this . pathTemplates . testCaseResultPathTemplate . match ( testCaseResultName ) . result ; } param { string } project param { string } location param { string } agent param { string } flow param { string } transition_route_group returns { string } transitionRouteGroupPath ( project , location , agent , flow , transitionRouteGroup ) { return this . pathTemplates . transitionRouteGroupPathTemplate . render ( { project : project , location : location , agent : agent , flow : flow , transition_route_group : transitionRouteGroup , } ) ; } param { string } transitionRouteGroupName returns { string } matchProjectFromTransitionRouteGroupName ( transitionRouteGroupName ) { return this . pathTemplates . transitionRouteGroupPathTemplate . match ( transitionRouteGroupName ) . project ; } param { string } transitionRouteGroupName returns { string } matchLocationFromTransitionRouteGroupName ( transitionRouteGroupName ) { return this . pathTemplates . transitionRouteGroupPathTemplate . match ( transitionRouteGroupName ) . location ; } param { string } transitionRouteGroupName returns { string } matchAgentFromTransitionRouteGroupName ( transitionRouteGroupName ) { return this . pathTemplates . transitionRouteGroupPathTemplate . match ( transitionRouteGroupName ) . agent ; } param { string } transitionRouteGroupName returns { string } matchFlowFromTransitionRouteGroupName ( transitionRouteGroupName ) { return this . pathTemplates . transitionRouteGroupPathTemplate . match ( transitionRouteGroupName ) . flow ; } param { string } transitionRouteGroupName returns { string } matchTransitionRouteGroupFromTransitionRouteGroupName ( transitionRouteGroupName ) { return this . pathTemplates . transitionRouteGroupPathTemplate . match ( transitionRouteGroupName ) . transition_route_group ; } param { string } project param { string } location param { string } agent param { string } flow param { string } version returns { string } versionPath ( project , location , agent , flow , version ) { return this . pathTemplates . versionPathTemplate . render ( { project : project , location : location , agent : agent , flow : flow , version : version , } ) ; } param { string } versionName returns { string } matchProjectFromVersionName ( versionName ) { return this . pathTemplates . versionPathTemplate . match ( versionName ) . project ; } param { string } versionName returns { string } matchLocationFromVersionName ( versionName ) { return this . pathTemplates . versionPathTemplate . match ( versionName ) . location ; } param { string } versionName returns { string } matchAgentFromVersionName ( versionName ) { return this . pathTemplates . versionPathTemplate . match ( versionName ) . agent ; } param { string } versionName returns { string } matchFlowFromVersionName ( versionName ) { return this . pathTemplates . versionPathTemplate . match ( versionName ) . flow ; } param { string } versionName returns { string } matchVersionFromVersionName ( versionName ) { return this . pathTemplates . versionPathTemplate . match ( versionName ) . version ; } param { string } project param { string } location param { string } agent param { string } webhook returns { string } webhookPath ( project , location , agent , webhook ) { return this . pathTemplates . webhookPathTemplate . render ( { project : project , location : location , agent : agent , webhook : webhook , } ) ; } param { string } webhookName returns { string } matchProjectFromWebhookName ( webhookName ) { return this . pathTemplates . webhookPathTemplate . match ( webhookName ) . project ; } param { string } webhookName returns { string } matchLocationFromWebhookName ( webhookName ) { return this . pathTemplates . webhookPathTemplate . match ( webhookName ) . location ; } param { string } webhookName returns { string } matchAgentFromWebhookName ( webhookName ) { return this . pathTemplates . webhookPathTemplate . match ( webhookName ) . agent ; } param { string } webhookName returns { string } matchWebhookFromWebhookName ( webhookName ) { return this . pathTemplates . webhookPathTemplate . match ( webhookName ) . webhook ; } returns { Promise } close ( ) { this . initialize ( ) ; if ( ! this . _terminated ) { return this . changelogsStub ! . then ( stub => { this . _terminated = true ; stub . close ( ) ; } ) ; } return Promise . resolve ( ) ; } }