Class v2beta1.AgentsClient (5.6.0)

Service for managing . v2beta1

Package

@google-cloud/dialogflow

Constructors

(constructor)(opts, gaxInstance)

  constructor 
 ( 
 opts 
 ?: 
  
 ClientOptions 
 , 
  
 gaxInstance 
 ?: 
  
 typeof 
  
 gax 
  
 | 
  
 typeof 
  
 gax 
 . 
 fallback 
 ); 
 

Construct an instance of AgentsClient.

Parameters
Name
Description
opts
ClientOptions
gaxInstance
typeof gax | typeof gax.fallback

: loaded instance of google-gax . Useful if you need to avoid loading the default gRPC version and want to use the fallback HTTP implementation. Load only fallback version and pass it to the constructor: ``` const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC const client = new AgentsClient({fallback: 'rest'}, gax); ```

Properties

agentsStub

  agentsStub 
 ?: 
  
 Promise 
< { 
  
 [ 
 name 
 : 
  
 string 
 ] 
 : 
  
 Function 
 ; 
  
 }>; 
 

apiEndpoint

  static 
  
 get 
  
 apiEndpoint 
 () 
 : 
  
 string 
 ; 
 

The DNS address for this API service - same as servicePath(), exists for compatibility reasons.

auth

  auth 
 : 
  
 gax 
 . 
 GoogleAuth 
 ; 
 

descriptors

  descriptors 
 : 
  
 Descriptors 
 ; 
 

innerApiCalls

  innerApiCalls 
 : 
  
 { 
  
 [ 
 name 
 : 
  
 string 
 ] 
 : 
  
 Function 
 ; 
  
 }; 
 

locationsClient

  locationsClient 
 : 
  
 LocationsClient 
 ; 
 

operationsClient

  operationsClient 
 : 
  
 gax 
 . 
 OperationsClient 
 ; 
 

pathTemplates

  pathTemplates 
 : 
  
 { 
  
 [ 
 name 
 : 
  
 string 
 ] 
 : 
  
 gax 
 . 
 PathTemplate 
 ; 
  
 }; 
 

port

  static 
  
 get 
  
 port 
 () 
 : 
  
 number 
 ; 
 

The port for this API service.

scopes

  static 
  
 get 
  
 scopes 
 () 
 : 
  
 string 
 []; 
 

The scopes needed to make gRPC calls for every method defined in this service.

servicePath

  static 
  
 get 
  
 servicePath 
 () 
 : 
  
 string 
 ; 
 

The DNS address for this API service.

warn

  warn 
 : 
  
 ( 
 code 
 : 
  
 string 
 , 
  
 message 
 : 
  
 string 
 , 
  
 warnType 
 ?: 
  
 string 
 ) 
  
 = 
>  
 void 
 ; 
 

Methods

cancelOperation(request, options, callback)

  cancelOperation 
 ( 
 request 
 : 
  
 protos 
 . 
 google 
 . 
 longrunning 
 . 
 CancelOperationRequest 
 , 
  
 options 
 ?: 
  
 gax 
 . 
 CallOptions 
  
 | 
  
 Callback<protos 
 . 
 google 
 . 
 protobuf 
 . 
 Empty 
 , 
  
 protos 
 . 
 google 
 . 
 longrunning 
 . 
 CancelOperationRequest 
 , 
  
 {} 
  
 | 
  
 undefined 
  
 | 
  
 null 
> , 
  
 callback 
 ?: 
  
 Callback<protos 
 . 
 google 
 . 
 longrunning 
 . 
 CancelOperationRequest 
 , 
  
 protos 
 . 
 google 
 . 
 protobuf 
 . 
 Empty 
 , 
  
 {} 
  
 | 
  
 undefined 
  
 | 
  
 null 
> ) 
 : 
  
 Promise<protos 
 . 
 google 
 . 
 protobuf 
 . 
 Empty 
> ; 
 

Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED . Clients can use or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an value with a of 1, corresponding to Code.CANCELLED .

Parameters
Name
Description
request
protos. google.longrunning.CancelOperationRequest

The request object that will be sent.

options
gax. CallOptions | Callback <protos. google.protobuf.Empty , protos. google.longrunning.CancelOperationRequest , {} | undefined | null>

Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See gax.CallOptions for the details.

callback
Callback <protos. google.longrunning.CancelOperationRequest , protos. google.protobuf.Empty , {} | undefined | null>

The function which will be called with the result of the API call. {Promise} - The promise which resolves when API call finishes. The promise has a method named "cancel" which cancels the ongoing API call.

Returns
Type
Description
Promise <protos. google.protobuf.Empty >
Example
  const 
  
 client 
  
 = 
  
 longrunning 
 . 
 operationsClient 
 (); 
 await 
  
 client 
 . 
 cancelOperation 
 ({ 
 name 
 : 
  
 '' 
 }); 
 

checkExportAgentProgress(name)

  checkExportAgentProgress 
 ( 
 name 
 : 
  
 string 
 ) 
 : 
  
 Promise<LROperation<protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 ExportAgentResponse 
 , 
  
 protos 
 . 
 google 
 . 
 protobuf 
 . 
 Struct 
>> ; 
 

Check the status of the long running operation returned by exportAgent() .

Parameter
Name
Description
name
string

The operation name that will be passed.

Returns
Type
Description
Promise < LROperation <protos. google.cloud.dialogflow.v2beta1.ExportAgentResponse , protos. google.protobuf.Struct >>

{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) for more details and examples.

Example
   
 /** 
 * This snippet has been automatically generated and should be regarded as a code template only. 
 * It will require modifications to work. 
 * It may require correct/in-range values for request initialization. 
 * TODO(developer): Uncomment these variables before running the sample. 
 */ 
  
 /** 
  
 * 
  
 Required 
 . 
  
 The 
  
 project 
  
 that 
  
 the 
  
 agent 
  
 to 
  
 export 
  
 is 
  
 associated 
  
 with 
 . 
  
 * 
  
 Format 
 : 
  
 `projects/ 
 

checkImportAgentProgress(name)

  checkImportAgentProgress 
 ( 
 name 
 : 
  
 string 
 ) 
 : 
  
 Promise<LROperation<protos 
 . 
 google 
 . 
 protobuf 
 . 
 Empty 
 , 
  
 protos 
 . 
 google 
 . 
 protobuf 
 . 
 Struct 
>> ; 
 

Check the status of the long running operation returned by importAgent() .

Parameter
Name
Description
name
string

The operation name that will be passed.

Returns
Type
Description
Promise < LROperation <protos. google.protobuf.Empty , protos. google.protobuf.Struct >>

{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) for more details and examples.

Example
   
 /** 
 * This snippet has been automatically generated and should be regarded as a code template only. 
 * It will require modifications to work. 
 * It may require correct/in-range values for request initialization. 
 * TODO(developer): Uncomment these variables before running the sample. 
 */ 
  
 /** 
  
 * 
  
 Required 
 . 
  
 The 
  
 project 
  
 that 
  
 the 
  
 agent 
  
 to 
  
 import 
  
 is 
  
 associated 
  
 with 
 . 
  
 * 
  
 Format 
 : 
  
 `projects/ 
 

checkRestoreAgentProgress(name)

  checkRestoreAgentProgress 
 ( 
 name 
 : 
  
 string 
 ) 
 : 
  
 Promise<LROperation<protos 
 . 
 google 
 . 
 protobuf 
 . 
 Empty 
 , 
  
 protos 
 . 
 google 
 . 
 protobuf 
 . 
 Struct 
>> ; 
 

Check the status of the long running operation returned by restoreAgent() .

Parameter
Name
Description
name
string

The operation name that will be passed.

Returns
Type
Description
Promise < LROperation <protos. google.protobuf.Empty , protos. google.protobuf.Struct >>

{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) for more details and examples.

Example
   
 /** 
 * This snippet has been automatically generated and should be regarded as a code template only. 
 * It will require modifications to work. 
 * It may require correct/in-range values for request initialization. 
 * TODO(developer): Uncomment these variables before running the sample. 
 */ 
  
 /** 
  
 * 
  
 Required 
 . 
  
 The 
  
 project 
  
 that 
  
 the 
  
 agent 
  
 to 
  
 restore 
  
 is 
  
 associated 
  
 with 
 . 
  
 * 
  
 Format 
 : 
  
 `projects/ 
 

checkTrainAgentProgress(name)

  checkTrainAgentProgress 
 ( 
 name 
 : 
  
 string 
 ) 
 : 
  
 Promise<LROperation<protos 
 . 
 google 
 . 
 protobuf 
 . 
 Empty 
 , 
  
 protos 
 . 
 google 
 . 
 protobuf 
 . 
 Struct 
>> ; 
 

Check the status of the long running operation returned by trainAgent() .

Parameter
Name
Description
name
string

The operation name that will be passed.

Returns
Type
Description
Promise < LROperation <protos. google.protobuf.Empty , protos. google.protobuf.Struct >>

{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) for more details and examples.

Example
   
 /** 
 * This snippet has been automatically generated and should be regarded as a code template only. 
 * It will require modifications to work. 
 * It may require correct/in-range values for request initialization. 
 * TODO(developer): Uncomment these variables before running the sample. 
 */ 
  
 /** 
  
 * 
  
 Required 
 . 
  
 The 
  
 project 
  
 that 
  
 the 
  
 agent 
  
 to 
  
 train 
  
 is 
  
 associated 
  
 with 
 . 
  
 * 
  
 Format 
 : 
  
 `projects/ 
 

close()

  close 
 () 
 : 
  
 Promise<void> 
 ; 
 

Terminate the gRPC channel and close the client.

The client will no longer be usable and all future behavior is undefined.

Returns
Type
Description
Promise <void>

{Promise} A promise that resolves when the client is closed.

deleteAgent(request, options)

  deleteAgent 
 ( 
 request 
 ?: 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 IDeleteAgentRequest 
 , 
  
 options 
 ?: 
  
 CallOptions 
 ) 
 : 
  
 Promise 
< [ 
  
 protos 
 . 
 google 
 . 
 protobuf 
 . 
 IEmpty 
 , 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 IDeleteAgentRequest 
  
 | 
  
 undefined 
 , 
  
 {} 
  
 | 
  
 undefined 
  
 ]>; 
 

Deletes the specified agent.

Parameters
Name
Description
request
protos. google.cloud.dialogflow.v2beta1.IDeleteAgentRequest

The request object that will be sent.

options
CallOptions

Call options. See CallOptions for more details.

Returns
Type
Description
Promise <[ protos. google.protobuf.IEmpty , protos. google.cloud.dialogflow.v2beta1.IDeleteAgentRequest | undefined, {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing . Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) for more details and examples.

Example
   
 /** 
 * This snippet has been automatically generated and should be regarded as a code template only. 
 * It will require modifications to work. 
 * It may require correct/in-range values for request initialization. 
 * TODO(developer): Uncomment these variables before running the sample. 
 */ 
  
 /** 
  
 * 
  
 Required 
 . 
  
 The 
  
 project 
  
 that 
  
 the 
  
 agent 
  
 to 
  
 delete 
  
 is 
  
 associated 
  
 with 
 . 
  
 * 
  
 Format 
 : 
  
 `projects/ 
 

deleteAgent(request, options, callback)

  deleteAgent 
 ( 
 request 
 : 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 IDeleteAgentRequest 
 , 
  
 options 
 : 
  
 CallOptions 
 , 
  
 callback 
 : 
  
 Callback<protos 
 . 
 google 
 . 
 protobuf 
 . 
 IEmpty 
 , 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 IDeleteAgentRequest 
  
 | 
  
 null 
  
 | 
  
 undefined 
 , 
  
 {} 
  
 | 
  
 null 
  
 | 
  
 undefined 
> ) 
 : 
  
 void 
 ; 
 
Parameters
Name
Description
request
protos. google.cloud.dialogflow.v2beta1.IDeleteAgentRequest
options
CallOptions
callback
Callback <protos. google.protobuf.IEmpty , protos. google.cloud.dialogflow.v2beta1.IDeleteAgentRequest | null | undefined, {} | null | undefined>
Returns
Type
Description
void

deleteAgent(request, callback)

  deleteAgent 
 ( 
 request 
 : 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 IDeleteAgentRequest 
 , 
  
 callback 
 : 
  
 Callback<protos 
 . 
 google 
 . 
 protobuf 
 . 
 IEmpty 
 , 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 IDeleteAgentRequest 
  
 | 
  
 null 
  
 | 
  
 undefined 
 , 
  
 {} 
  
 | 
  
 null 
  
 | 
  
 undefined 
> ) 
 : 
  
 void 
 ; 
 
Parameters
Name
Description
request
protos. google.cloud.dialogflow.v2beta1.IDeleteAgentRequest
callback
Callback <protos. google.protobuf.IEmpty , protos. google.cloud.dialogflow.v2beta1.IDeleteAgentRequest | null | undefined, {} | null | undefined>
Returns
Type
Description
void

deleteOperation(request, options, callback)

  deleteOperation 
 ( 
 request 
 : 
  
 protos 
 . 
 google 
 . 
 longrunning 
 . 
 DeleteOperationRequest 
 , 
  
 options 
 ?: 
  
 gax 
 . 
 CallOptions 
  
 | 
  
 Callback<protos 
 . 
 google 
 . 
 protobuf 
 . 
 Empty 
 , 
  
 protos 
 . 
 google 
 . 
 longrunning 
 . 
 DeleteOperationRequest 
 , 
  
 {} 
  
 | 
  
 null 
  
 | 
  
 undefined 
> , 
  
 callback 
 ?: 
  
 Callback<protos 
 . 
 google 
 . 
 protobuf 
 . 
 Empty 
 , 
  
 protos 
 . 
 google 
 . 
 longrunning 
 . 
 DeleteOperationRequest 
 , 
  
 {} 
  
 | 
  
 null 
  
 | 
  
 undefined 
> ) 
 : 
  
 Promise<protos 
 . 
 google 
 . 
 protobuf 
 . 
 Empty 
> ; 
 

Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED .

Parameters
Name
Description
request
protos. google.longrunning.DeleteOperationRequest

The request object that will be sent.

options
gax. CallOptions | Callback <protos. google.protobuf.Empty , protos. google.longrunning.DeleteOperationRequest , {} | null | undefined>

Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See gax.CallOptions for the details.

callback
Callback <protos. google.protobuf.Empty , protos. google.longrunning.DeleteOperationRequest , {} | null | undefined>

The function which will be called with the result of the API call. {Promise} - The promise which resolves when API call finishes. The promise has a method named "cancel" which cancels the ongoing API call.

Returns
Type
Description
Promise <protos. google.protobuf.Empty >
Example
  const 
  
 client 
  
 = 
  
 longrunning 
 . 
 operationsClient 
 (); 
 await 
  
 client 
 . 
 deleteOperation 
 ({ 
 name 
 : 
  
 '' 
 }); 
 

exportAgent(request, options)

  exportAgent 
 ( 
 request 
 ?: 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 IExportAgentRequest 
 , 
  
 options 
 ?: 
  
 CallOptions 
 ) 
 : 
  
 Promise 
< [ 
  
 LROperation<protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 IExportAgentResponse 
 , 
  
 protos 
 . 
 google 
 . 
 protobuf 
 . 
 IStruct 
> , 
  
 protos 
 . 
 google 
 . 
 longrunning 
 . 
 IOperation 
  
 | 
  
 undefined 
 , 
  
 {} 
  
 | 
  
 undefined 
  
 ]>; 
 

Exports the specified agent to a ZIP file.

This method is a [long-running operation]( https://cloud.google.com/dialogflow/es/docs/how/long-running-operations ). The returned Operation type has the following method-specific fields:

  • metadata : An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - response :
Parameters
Name
Description
request
protos. google.cloud.dialogflow.v2beta1.IExportAgentRequest

The request object that will be sent.

options
CallOptions

Call options. See CallOptions for more details.

Returns
Type
Description
Promise <[ LROperation <protos. google.cloud.dialogflow.v2beta1.IExportAgentResponse , protos. google.protobuf.IStruct >, protos. google.longrunning.IOperation | undefined, {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its promise() method returns a promise you can await for. Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) for more details and examples.

Example
   
 /** 
 * This snippet has been automatically generated and should be regarded as a code template only. 
 * It will require modifications to work. 
 * It may require correct/in-range values for request initialization. 
 * TODO(developer): Uncomment these variables before running the sample. 
 */ 
  
 /** 
  
 * 
  
 Required 
 . 
  
 The 
  
 project 
  
 that 
  
 the 
  
 agent 
  
 to 
  
 export 
  
 is 
  
 associated 
  
 with 
 . 
  
 * 
  
 Format 
 : 
  
 `projects/ 
 

exportAgent(request, options, callback)

  exportAgent 
 ( 
 request 
 : 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 IExportAgentRequest 
 , 
  
 options 
 : 
  
 CallOptions 
 , 
  
 callback 
 : 
  
 Callback<LROperation<protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 IExportAgentResponse 
 , 
  
 protos 
 . 
 google 
 . 
 protobuf 
 . 
 IStruct 
> , 
  
 protos 
 . 
 google 
 . 
 longrunning 
 . 
 IOperation 
  
 | 
  
 null 
  
 | 
  
 undefined 
 , 
  
 {} 
  
 | 
  
 null 
  
 | 
  
 undefined 
> ) 
 : 
  
 void 
 ; 
 
Parameters
Name
Description
request
protos. google.cloud.dialogflow.v2beta1.IExportAgentRequest
options
CallOptions
callback
Callback < LROperation <protos. google.cloud.dialogflow.v2beta1.IExportAgentResponse , protos. google.protobuf.IStruct >, protos. google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type
Description
void

exportAgent(request, callback)

  exportAgent 
 ( 
 request 
 : 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 IExportAgentRequest 
 , 
  
 callback 
 : 
  
 Callback<LROperation<protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 IExportAgentResponse 
 , 
  
 protos 
 . 
 google 
 . 
 protobuf 
 . 
 IStruct 
> , 
  
 protos 
 . 
 google 
 . 
 longrunning 
 . 
 IOperation 
  
 | 
  
 null 
  
 | 
  
 undefined 
 , 
  
 {} 
  
 | 
  
 null 
  
 | 
  
 undefined 
> ) 
 : 
  
 void 
 ; 
 
Parameters
Name
Description
request
protos. google.cloud.dialogflow.v2beta1.IExportAgentRequest
callback
Callback < LROperation <protos. google.cloud.dialogflow.v2beta1.IExportAgentResponse , protos. google.protobuf.IStruct >, protos. google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type
Description
void

getAgent(request, options)

  getAgent 
 ( 
 request 
 ?: 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 IGetAgentRequest 
 , 
  
 options 
 ?: 
  
 CallOptions 
 ) 
 : 
  
 Promise 
< [ 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 IAgent 
 , 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 IGetAgentRequest 
  
 | 
  
 undefined 
 , 
  
 {} 
  
 | 
  
 undefined 
  
 ]>; 
 

Retrieves the specified agent.

Parameters
Name
Description
request
protos. google.cloud.dialogflow.v2beta1.IGetAgentRequest

The request object that will be sent.

options
CallOptions

Call options. See CallOptions for more details.

Returns
Type
Description
Promise <[ protos. google.cloud.dialogflow.v2beta1.IAgent , protos. google.cloud.dialogflow.v2beta1.IGetAgentRequest | undefined, {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing . Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) for more details and examples.

Example
   
 /** 
 * This snippet has been automatically generated and should be regarded as a code template only. 
 * It will require modifications to work. 
 * It may require correct/in-range values for request initialization. 
 * TODO(developer): Uncomment these variables before running the sample. 
 */ 
  
 /** 
  
 * 
  
 Required 
 . 
  
 The 
  
 project 
  
 that 
  
 the 
  
 agent 
  
 to 
  
 fetch 
  
 is 
  
 associated 
  
 with 
 . 
  
 * 
  
 Format 
 : 
  
 `projects/ 
 

getAgent(request, options, callback)

  getAgent 
 ( 
 request 
 : 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 IGetAgentRequest 
 , 
  
 options 
 : 
  
 CallOptions 
 , 
  
 callback 
 : 
  
 Callback<protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 IAgent 
 , 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 IGetAgentRequest 
  
 | 
  
 null 
  
 | 
  
 undefined 
 , 
  
 {} 
  
 | 
  
 null 
  
 | 
  
 undefined 
> ) 
 : 
  
 void 
 ; 
 
Parameters
Name
Description
request
protos. google.cloud.dialogflow.v2beta1.IGetAgentRequest
options
CallOptions
callback
Callback <protos. google.cloud.dialogflow.v2beta1.IAgent , protos. google.cloud.dialogflow.v2beta1.IGetAgentRequest | null | undefined, {} | null | undefined>
Returns
Type
Description
void

getAgent(request, callback)

  getAgent 
 ( 
 request 
 : 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 IGetAgentRequest 
 , 
  
 callback 
 : 
  
 Callback<protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 IAgent 
 , 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 IGetAgentRequest 
  
 | 
  
 null 
  
 | 
  
 undefined 
 , 
  
 {} 
  
 | 
  
 null 
  
 | 
  
 undefined 
> ) 
 : 
  
 void 
 ; 
 
Parameters
Name
Description
request
protos. google.cloud.dialogflow.v2beta1.IGetAgentRequest
callback
Callback <protos. google.cloud.dialogflow.v2beta1.IAgent , protos. google.cloud.dialogflow.v2beta1.IGetAgentRequest | null | undefined, {} | null | undefined>
Returns
Type
Description
void

getLocation(request, options, callback)

  getLocation 
 ( 
 request 
 : 
  
 LocationProtos 
 . 
 google 
 . 
 cloud 
 . 
 location 
 . 
 IGetLocationRequest 
 , 
  
 options 
 ?: 
  
 gax 
 . 
 CallOptions 
  
 | 
  
 Callback<LocationProtos 
 . 
 google 
 . 
 cloud 
 . 
 location 
 . 
 ILocation 
 , 
  
 LocationProtos 
 . 
 google 
 . 
 cloud 
 . 
 location 
 . 
 IGetLocationRequest 
  
 | 
  
 null 
  
 | 
  
 undefined 
 , 
  
 {} 
  
 | 
  
 null 
  
 | 
  
 undefined 
> , 
  
 callback 
 ?: 
  
 Callback<LocationProtos 
 . 
 google 
 . 
 cloud 
 . 
 location 
 . 
 ILocation 
 , 
  
 LocationProtos 
 . 
 google 
 . 
 cloud 
 . 
 location 
 . 
 IGetLocationRequest 
  
 | 
  
 null 
  
 | 
  
 undefined 
 , 
  
 {} 
  
 | 
  
 null 
  
 | 
  
 undefined 
> ) 
 : 
  
 Promise<LocationProtos 
 . 
 google 
 . 
 cloud 
 . 
 location 
 . 
 ILocation 
> ; 
 

Gets information about a location.

Parameters
Name
Description
request
LocationProtos. google.cloud.location.IGetLocationRequest

The request object that will be sent.

options
gax. CallOptions | Callback <LocationProtos. google.cloud.location.ILocation , LocationProtos. google.cloud.location.IGetLocationRequest | null | undefined, {} | null | undefined>

Call options. See CallOptions for more details.

callback
Callback <LocationProtos. google.cloud.location.ILocation , LocationProtos. google.cloud.location.IGetLocationRequest | null | undefined, {} | null | undefined>
Returns
Type
Description
Promise <LocationProtos. google.cloud.location.ILocation >

{Promise} - The promise which resolves to an array. The first element of the array is an object representing . Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) for more details and examples.

Example
  const 
  
 [ 
 response 
 ] 
  
 = 
  
 await 
  
 client 
 . 
 getLocation 
 ( 
 request 
 ); 
 

getOperation(request, options, callback)

  getOperation 
 ( 
 request 
 : 
  
 protos 
 . 
 google 
 . 
 longrunning 
 . 
 GetOperationRequest 
 , 
  
 options 
 ?: 
  
 gax 
 . 
 CallOptions 
  
 | 
  
 Callback<protos 
 . 
 google 
 . 
 longrunning 
 . 
 Operation 
 , 
  
 protos 
 . 
 google 
 . 
 longrunning 
 . 
 GetOperationRequest 
 , 
  
 {} 
  
 | 
  
 null 
  
 | 
  
 undefined 
> , 
  
 callback 
 ?: 
  
 Callback<protos 
 . 
 google 
 . 
 longrunning 
 . 
 Operation 
 , 
  
 protos 
 . 
 google 
 . 
 longrunning 
 . 
 GetOperationRequest 
 , 
  
 {} 
  
 | 
  
 null 
  
 | 
  
 undefined 
> ) 
 : 
  
 Promise 
< [ 
 protos 
 . 
 google 
 . 
 longrunning 
 . 
 Operation 
 ]>; 
 

Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.

Parameters
Name
Description
request
protos. google.longrunning.GetOperationRequest

The request object that will be sent.

options
gax. CallOptions | Callback <protos. google.longrunning.Operation , protos. google.longrunning.GetOperationRequest , {} | null | undefined>

Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See gax.CallOptions for the details.

callback
Callback <protos. google.longrunning.Operation , protos. google.longrunning.GetOperationRequest , {} | null | undefined>

The function which will be called with the result of the API call.

The second parameter to the callback is an object representing . {Promise} - The promise which resolves to an array. The first element of the array is an object representing . The promise has a method named "cancel" which cancels the ongoing API call.

Returns
Type
Description
Promise <[protos. google.longrunning.Operation ]>
Example
  const 
  
 client 
  
 = 
  
 longrunning 
 . 
 operationsClient 
 (); 
 const 
  
 name 
  
 = 
  
 '' 
 ; 
 const 
  
 [ 
 response 
 ] 
  
 = 
  
 await 
  
 client 
 . 
 getOperation 
 ({ 
 name 
 }); 
 // doThingsWith(response) 
 

getProjectId()

  getProjectId 
 () 
 : 
  
 Promise<string> 
 ; 
 
Returns
Type
Description
Promise <string>

getProjectId(callback)

  getProjectId 
 ( 
 callback 
 : 
  
 Callback<string 
 , 
  
 undefined 
 , 
  
 undefined 
> ) 
 : 
  
 void 
 ; 
 
Parameter
Name
Description
callback
Callback <string, undefined, undefined>
Returns
Type
Description
void

getValidationResult(request, options)

  getValidationResult 
 ( 
 request 
 ?: 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 IGetValidationResultRequest 
 , 
  
 options 
 ?: 
  
 CallOptions 
 ) 
 : 
  
 Promise 
< [ 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 IValidationResult 
 , 
  
 ( 
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 IGetValidationResultRequest 
  
 | 
  
 undefined 
 ), 
  
 {} 
  
 | 
  
 undefined 
  
 ]>; 
 

Gets agent validation result. Agent validation is performed during training time and is updated automatically when training is completed.

Parameters
Name
Description
request
protos. google.cloud.dialogflow.v2beta1.IGetValidationResultRequest

The request object that will be sent.

options
CallOptions

Call options. See CallOptions for more details.

Returns
Type
Description
Promise <[ protos. google.cloud.dialogflow.v2beta1.IValidationResult , (protos. google.cloud.dialogflow.v2beta1.IGetValidationResultRequest | undefined), {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing . Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) for more details and examples.

Example
   
 /** 
 * This snippet has been automatically generated and should be regarded as a code template only. 
 * It will require modifications to work. 
 * It may require correct/in-range values for request initialization. 
 * TODO(developer): Uncomment these variables before running the sample. 
 */ 
  
 /** 
  
 * 
  
 Required 
 . 
  
 The 
  
 project 
  
 that 
  
 the 
  
 agent 
  
 is 
  
 associated 
  
 with 
 . 
  
 * 
  
 Format 
 : 
  
 `projects/ 
 

getValidationResult(request, options, callback)

  getValidationResult 
 ( 
 request 
 : 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 IGetValidationResultRequest 
 , 
  
 options 
 : 
  
 CallOptions 
 , 
  
 callback 
 : 
  
 Callback<protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 IValidationResult 
 , 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 IGetValidationResultRequest 
  
 | 
  
 null 
  
 | 
  
 undefined 
 , 
  
 {} 
  
 | 
  
 null 
  
 | 
  
 undefined 
> ) 
 : 
  
 void 
 ; 
 
Parameters
Name
Description
request
protos. google.cloud.dialogflow.v2beta1.IGetValidationResultRequest
options
CallOptions
callback
Callback <protos. google.cloud.dialogflow.v2beta1.IValidationResult , protos. google.cloud.dialogflow.v2beta1.IGetValidationResultRequest | null | undefined, {} | null | undefined>
Returns
Type
Description
void

getValidationResult(request, callback)

  getValidationResult 
 ( 
 request 
 : 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 IGetValidationResultRequest 
 , 
  
 callback 
 : 
  
 Callback<protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 IValidationResult 
 , 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 IGetValidationResultRequest 
  
 | 
  
 null 
  
 | 
  
 undefined 
 , 
  
 {} 
  
 | 
  
 null 
  
 | 
  
 undefined 
> ) 
 : 
  
 void 
 ; 
 
Parameters
Name
Description
request
protos. google.cloud.dialogflow.v2beta1.IGetValidationResultRequest
callback
Callback <protos. google.cloud.dialogflow.v2beta1.IValidationResult , protos. google.cloud.dialogflow.v2beta1.IGetValidationResultRequest | null | undefined, {} | null | undefined>
Returns
Type
Description
void

importAgent(request, options)

  importAgent 
 ( 
 request 
 ?: 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 IImportAgentRequest 
 , 
  
 options 
 ?: 
  
 CallOptions 
 ) 
 : 
  
 Promise 
< [ 
  
 LROperation<protos 
 . 
 google 
 . 
 protobuf 
 . 
 IEmpty 
 , 
  
 protos 
 . 
 google 
 . 
 protobuf 
 . 
 IStruct 
> , 
  
 protos 
 . 
 google 
 . 
 longrunning 
 . 
 IOperation 
  
 | 
  
 undefined 
 , 
  
 {} 
  
 | 
  
 undefined 
  
 ]>; 
 

Imports the specified agent from a ZIP file.

Uploads new intents and entity types without deleting the existing ones. Intents and entity types with the same name are replaced with the new versions from . After the import, the imported draft agent will be trained automatically (unless disabled in agent settings). However, once the import is done, training may not be completed yet. Please call and wait for the operation it returns in order to train explicitly.

This method is a [long-running operation]( https://cloud.google.com/dialogflow/es/docs/how/long-running-operations ). The returned Operation type has the following method-specific fields:

  • metadata : An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - response : An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)

The operation only tracks when importing is complete, not when it is done training.

Note: You should always train an agent prior to sending it queries. See the [training documentation]( https://cloud.google.com/dialogflow/es/docs/training ).

Parameters
Name
Description
request
protos. google.cloud.dialogflow.v2beta1.IImportAgentRequest

The request object that will be sent.

options
CallOptions

Call options. See CallOptions for more details.

Returns
Type
Description
Promise <[ LROperation <protos. google.protobuf.IEmpty , protos. google.protobuf.IStruct >, protos. google.longrunning.IOperation | undefined, {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its promise() method returns a promise you can await for. Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) for more details and examples.

Example
   
 /** 
 * This snippet has been automatically generated and should be regarded as a code template only. 
 * It will require modifications to work. 
 * It may require correct/in-range values for request initialization. 
 * TODO(developer): Uncomment these variables before running the sample. 
 */ 
  
 /** 
  
 * 
  
 Required 
 . 
  
 The 
  
 project 
  
 that 
  
 the 
  
 agent 
  
 to 
  
 import 
  
 is 
  
 associated 
  
 with 
 . 
  
 * 
  
 Format 
 : 
  
 `projects/ 
 

importAgent(request, options, callback)

  importAgent 
 ( 
 request 
 : 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 IImportAgentRequest 
 , 
  
 options 
 : 
  
 CallOptions 
 , 
  
 callback 
 : 
  
 Callback<LROperation<protos 
 . 
 google 
 . 
 protobuf 
 . 
 IEmpty 
 , 
  
 protos 
 . 
 google 
 . 
 protobuf 
 . 
 IStruct 
> , 
  
 protos 
 . 
 google 
 . 
 longrunning 
 . 
 IOperation 
  
 | 
  
 null 
  
 | 
  
 undefined 
 , 
  
 {} 
  
 | 
  
 null 
  
 | 
  
 undefined 
> ) 
 : 
  
 void 
 ; 
 
Parameters
Name
Description
request
protos. google.cloud.dialogflow.v2beta1.IImportAgentRequest
options
CallOptions
callback
Callback < LROperation <protos. google.protobuf.IEmpty , protos. google.protobuf.IStruct >, protos. google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type
Description
void

importAgent(request, callback)

  importAgent 
 ( 
 request 
 : 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 IImportAgentRequest 
 , 
  
 callback 
 : 
  
 Callback<LROperation<protos 
 . 
 google 
 . 
 protobuf 
 . 
 IEmpty 
 , 
  
 protos 
 . 
 google 
 . 
 protobuf 
 . 
 IStruct 
> , 
  
 protos 
 . 
 google 
 . 
 longrunning 
 . 
 IOperation 
  
 | 
  
 null 
  
 | 
  
 undefined 
 , 
  
 {} 
  
 | 
  
 null 
  
 | 
  
 undefined 
> ) 
 : 
  
 void 
 ; 
 
Parameters
Name
Description
request
protos. google.cloud.dialogflow.v2beta1.IImportAgentRequest
callback
Callback < LROperation <protos. google.protobuf.IEmpty , protos. google.protobuf.IStruct >, protos. google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type
Description
void

initialize()

  initialize 
 () 
 : 
  
 Promise 
< { 
  
 [ 
 name 
 : 
  
 string 
 ] 
 : 
  
 Function 
 ; 
  
 }>; 
 

Initialize the client. Performs asynchronous operations (such as authentication) and prepares the client. This function will be called automatically when any class method is called for the first time, but if you need to initialize it before calling an actual method, feel free to call initialize() directly.

You can await on this method if you want to make sure the client is initialized.

Returns
Type
Description
Promise <{ [name: string]: Function ; }>

{Promise} A promise that resolves to an authenticated service stub.

listLocationsAsync(request, options)

  listLocationsAsync 
 ( 
 request 
 : 
  
 LocationProtos 
 . 
 google 
 . 
 cloud 
 . 
 location 
 . 
 IListLocationsRequest 
 , 
  
 options 
 ?: 
  
 CallOptions 
 ) 
 : 
  
 AsyncIterable<LocationProtos 
 . 
 google 
 . 
 cloud 
 . 
 location 
 . 
 ILocation 
> ; 
 

Lists information about the supported locations for this service. Returns an iterable object.

for - await - of syntax is used with the iterable to get response elements on-demand.

Parameters
Name
Description
request
LocationProtos. google.cloud.location.IListLocationsRequest

The request object that will be sent.

options
CallOptions

Call options. See CallOptions for more details.

Returns
Type
Description
AsyncIterable <LocationProtos. google.cloud.location.ILocation >

{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 . 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
  const 
  
 iterable 
  
 = 
  
 client 
 . 
 listLocationsAsync 
 ( 
 request 
 ); 
 for 
  
 await 
  
 ( 
 const 
  
 response 
  
 of 
  
 iterable 
 ) 
  
 { 
  
 // process response 
 } 
 

listOperationsAsync(request, options)

  listOperationsAsync 
 ( 
 request 
 : 
  
 protos 
 . 
 google 
 . 
 longrunning 
 . 
 ListOperationsRequest 
 , 
  
 options 
 ?: 
  
 gax 
 . 
 CallOptions 
 ) 
 : 
  
 AsyncIterable<protos 
 . 
 google 
 . 
 longrunning 
 . 
 ListOperationsResponse 
> ; 
 

Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED . Returns an iterable object.

For-await-of syntax is used with the iterable to recursively get response element on-demand.

Parameters
Name
Description
request
protos. google.longrunning.ListOperationsRequest

The request object that will be sent.

options
gax. CallOptions

Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See gax.CallOptions for the details.

Returns
Type
Description
AsyncIterable <protos. google.longrunning.ListOperationsResponse >

{Object} An iterable Object that conforms to iteration protocols .

Example
  const 
  
 client 
  
 = 
  
 longrunning 
 . 
 operationsClient 
 (); 
 for 
  
 await 
  
 ( 
 const 
  
 response 
  
 of 
  
 client 
 . 
 listOperationsAsync 
 ( 
 request 
 )); 
 // doThingsWith(response) 
 

matchAnswerRecordFromProjectAnswerRecordName(projectAnswerRecordName)

  matchAnswerRecordFromProjectAnswerRecordName 
 ( 
 projectAnswerRecordName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the answer_record from ProjectAnswerRecord resource.

Parameter
Name
Description
projectAnswerRecordName
string

A fully-qualified path representing project_answer_record resource.

Returns
Type
Description
string | number

{string} A string representing the answer_record.

matchAnswerRecordFromProjectLocationAnswerRecordName(projectLocationAnswerRecordName)

  matchAnswerRecordFromProjectLocationAnswerRecordName 
 ( 
 projectLocationAnswerRecordName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the answer_record from ProjectLocationAnswerRecord resource.

Parameter
Name
Description
projectLocationAnswerRecordName
string

A fully-qualified path representing project_location_answer_record resource.

Returns
Type
Description
string | number

{string} A string representing the answer_record.

matchContextFromProjectAgentEnvironmentUserSessionContextName(projectAgentEnvironmentUserSessionContextName)

  matchContextFromProjectAgentEnvironmentUserSessionContextName 
 ( 
 projectAgentEnvironmentUserSessionContextName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the context from ProjectAgentEnvironmentUserSessionContext resource.

Parameter
Name
Description
projectAgentEnvironmentUserSessionContextName
string

A fully-qualified path representing project_agent_environment_user_session_context resource.

Returns
Type
Description
string | number

{string} A string representing the context.

matchContextFromProjectAgentSessionContextName(projectAgentSessionContextName)

  matchContextFromProjectAgentSessionContextName 
 ( 
 projectAgentSessionContextName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the context from ProjectAgentSessionContext resource.

Parameter
Name
Description
projectAgentSessionContextName
string

A fully-qualified path representing project_agent_session_context resource.

Returns
Type
Description
string | number

{string} A string representing the context.

matchContextFromProjectLocationAgentEnvironmentUserSessionContextName(projectLocationAgentEnvironmentUserSessionContextName)

  matchContextFromProjectLocationAgentEnvironmentUserSessionContextName 
 ( 
 projectLocationAgentEnvironmentUserSessionContextName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the context from ProjectLocationAgentEnvironmentUserSessionContext resource.

Parameter
Name
Description
projectLocationAgentEnvironmentUserSessionContextName
string

A fully-qualified path representing project_location_agent_environment_user_session_context resource.

Returns
Type
Description
string | number

{string} A string representing the context.

matchContextFromProjectLocationAgentSessionContextName(projectLocationAgentSessionContextName)

  matchContextFromProjectLocationAgentSessionContextName 
 ( 
 projectLocationAgentSessionContextName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the context from ProjectLocationAgentSessionContext resource.

Parameter
Name
Description
projectLocationAgentSessionContextName
string

A fully-qualified path representing project_location_agent_session_context resource.

Returns
Type
Description
string | number

{string} A string representing the context.

matchConversationFromProjectConversationMessageName(projectConversationMessageName)

  matchConversationFromProjectConversationMessageName 
 ( 
 projectConversationMessageName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the conversation from ProjectConversationMessage resource.

Parameter
Name
Description
projectConversationMessageName
string

A fully-qualified path representing project_conversation_message resource.

Returns
Type
Description
string | number

{string} A string representing the conversation.

matchConversationFromProjectConversationName(projectConversationName)

  matchConversationFromProjectConversationName 
 ( 
 projectConversationName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the conversation from ProjectConversation resource.

Parameter
Name
Description
projectConversationName
string

A fully-qualified path representing project_conversation resource.

Returns
Type
Description
string | number

{string} A string representing the conversation.

matchConversationFromProjectConversationParticipantName(projectConversationParticipantName)

  matchConversationFromProjectConversationParticipantName 
 ( 
 projectConversationParticipantName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the conversation from ProjectConversationParticipant resource.

Parameter
Name
Description
projectConversationParticipantName
string

A fully-qualified path representing project_conversation_participant resource.

Returns
Type
Description
string | number

{string} A string representing the conversation.

matchConversationFromProjectLocationConversationMessageName(projectLocationConversationMessageName)

  matchConversationFromProjectLocationConversationMessageName 
 ( 
 projectLocationConversationMessageName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the conversation from ProjectLocationConversationMessage resource.

Parameter
Name
Description
projectLocationConversationMessageName
string

A fully-qualified path representing project_location_conversation_message resource.

Returns
Type
Description
string | number

{string} A string representing the conversation.

matchConversationFromProjectLocationConversationName(projectLocationConversationName)

  matchConversationFromProjectLocationConversationName 
 ( 
 projectLocationConversationName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the conversation from ProjectLocationConversation resource.

Parameter
Name
Description
projectLocationConversationName
string

A fully-qualified path representing project_location_conversation resource.

Returns
Type
Description
string | number

{string} A string representing the conversation.

matchConversationFromProjectLocationConversationParticipantName(projectLocationConversationParticipantName)

  matchConversationFromProjectLocationConversationParticipantName 
 ( 
 projectLocationConversationParticipantName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the conversation from ProjectLocationConversationParticipant resource.

Parameter
Name
Description
projectLocationConversationParticipantName
string

A fully-qualified path representing project_location_conversation_participant resource.

Returns
Type
Description
string | number

{string} A string representing the conversation.

matchConversationProfileFromProjectConversationProfileName(projectConversationProfileName)

  matchConversationProfileFromProjectConversationProfileName 
 ( 
 projectConversationProfileName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the conversation_profile from ProjectConversationProfile resource.

Parameter
Name
Description
projectConversationProfileName
string

A fully-qualified path representing project_conversation_profile resource.

Returns
Type
Description
string | number

{string} A string representing the conversation_profile.

matchConversationProfileFromProjectLocationConversationProfileName(projectLocationConversationProfileName)

  matchConversationProfileFromProjectLocationConversationProfileName 
 ( 
 projectLocationConversationProfileName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the conversation_profile from ProjectLocationConversationProfile resource.

Parameter
Name
Description
projectLocationConversationProfileName
string

A fully-qualified path representing project_location_conversation_profile resource.

Returns
Type
Description
string | number

{string} A string representing the conversation_profile.

matchDocumentFromProjectKnowledgeBaseDocumentName(projectKnowledgeBaseDocumentName)

  matchDocumentFromProjectKnowledgeBaseDocumentName 
 ( 
 projectKnowledgeBaseDocumentName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the document from ProjectKnowledgeBaseDocument resource.

Parameter
Name
Description
projectKnowledgeBaseDocumentName
string

A fully-qualified path representing project_knowledge_base_document resource.

Returns
Type
Description
string | number

{string} A string representing the document.

matchDocumentFromProjectLocationKnowledgeBaseDocumentName(projectLocationKnowledgeBaseDocumentName)

  matchDocumentFromProjectLocationKnowledgeBaseDocumentName 
 ( 
 projectLocationKnowledgeBaseDocumentName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the document from ProjectLocationKnowledgeBaseDocument resource.

Parameter
Name
Description
projectLocationKnowledgeBaseDocumentName
string

A fully-qualified path representing project_location_knowledge_base_document resource.

Returns
Type
Description
string | number

{string} A string representing the document.

matchEntityTypeFromProjectAgentEntityTypeName(projectAgentEntityTypeName)

  matchEntityTypeFromProjectAgentEntityTypeName 
 ( 
 projectAgentEntityTypeName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the entity_type from ProjectAgentEntityType resource.

Parameter
Name
Description
projectAgentEntityTypeName
string

A fully-qualified path representing project_agent_entity_type resource.

Returns
Type
Description
string | number

{string} A string representing the entity_type.

matchEntityTypeFromProjectAgentEnvironmentUserSessionEntityTypeName(projectAgentEnvironmentUserSessionEntityTypeName)

  matchEntityTypeFromProjectAgentEnvironmentUserSessionEntityTypeName 
 ( 
 projectAgentEnvironmentUserSessionEntityTypeName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the entity_type from ProjectAgentEnvironmentUserSessionEntityType resource.

Parameter
Name
Description
projectAgentEnvironmentUserSessionEntityTypeName
string

A fully-qualified path representing project_agent_environment_user_session_entity_type resource.

Returns
Type
Description
string | number

{string} A string representing the entity_type.

matchEntityTypeFromProjectAgentSessionEntityTypeName(projectAgentSessionEntityTypeName)

  matchEntityTypeFromProjectAgentSessionEntityTypeName 
 ( 
 projectAgentSessionEntityTypeName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the entity_type from ProjectAgentSessionEntityType resource.

Parameter
Name
Description
projectAgentSessionEntityTypeName
string

A fully-qualified path representing project_agent_session_entity_type resource.

Returns
Type
Description
string | number

{string} A string representing the entity_type.

matchEntityTypeFromProjectLocationAgentEntityTypeName(projectLocationAgentEntityTypeName)

  matchEntityTypeFromProjectLocationAgentEntityTypeName 
 ( 
 projectLocationAgentEntityTypeName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the entity_type from ProjectLocationAgentEntityType resource.

Parameter
Name
Description
projectLocationAgentEntityTypeName
string

A fully-qualified path representing project_location_agent_entity_type resource.

Returns
Type
Description
string | number

{string} A string representing the entity_type.

matchEntityTypeFromProjectLocationAgentEnvironmentUserSessionEntityTypeName(projectLocationAgentEnvironmentUserSessionEntityTypeName)

  matchEntityTypeFromProjectLocationAgentEnvironmentUserSessionEntityTypeName 
 ( 
 projectLocationAgentEnvironmentUserSessionEntityTypeName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the entity_type from ProjectLocationAgentEnvironmentUserSessionEntityType resource.

Parameter
Name
Description
projectLocationAgentEnvironmentUserSessionEntityTypeName
string

A fully-qualified path representing project_location_agent_environment_user_session_entity_type resource.

Returns
Type
Description
string | number

{string} A string representing the entity_type.

matchEntityTypeFromProjectLocationAgentSessionEntityTypeName(projectLocationAgentSessionEntityTypeName)

  matchEntityTypeFromProjectLocationAgentSessionEntityTypeName 
 ( 
 projectLocationAgentSessionEntityTypeName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the entity_type from ProjectLocationAgentSessionEntityType resource.

Parameter
Name
Description
projectLocationAgentSessionEntityTypeName
string

A fully-qualified path representing project_location_agent_session_entity_type resource.

Returns
Type
Description
string | number

{string} A string representing the entity_type.

matchEnvironmentFromProjectAgentEnvironmentName(projectAgentEnvironmentName)

  matchEnvironmentFromProjectAgentEnvironmentName 
 ( 
 projectAgentEnvironmentName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the environment from ProjectAgentEnvironment resource.

Parameter
Name
Description
projectAgentEnvironmentName
string

A fully-qualified path representing project_agent_environment resource.

Returns
Type
Description
string | number

{string} A string representing the environment.

matchEnvironmentFromProjectAgentEnvironmentUserSessionContextName(projectAgentEnvironmentUserSessionContextName)

  matchEnvironmentFromProjectAgentEnvironmentUserSessionContextName 
 ( 
 projectAgentEnvironmentUserSessionContextName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the environment from ProjectAgentEnvironmentUserSessionContext resource.

Parameter
Name
Description
projectAgentEnvironmentUserSessionContextName
string

A fully-qualified path representing project_agent_environment_user_session_context resource.

Returns
Type
Description
string | number

{string} A string representing the environment.

matchEnvironmentFromProjectAgentEnvironmentUserSessionEntityTypeName(projectAgentEnvironmentUserSessionEntityTypeName)

  matchEnvironmentFromProjectAgentEnvironmentUserSessionEntityTypeName 
 ( 
 projectAgentEnvironmentUserSessionEntityTypeName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the environment from ProjectAgentEnvironmentUserSessionEntityType resource.

Parameter
Name
Description
projectAgentEnvironmentUserSessionEntityTypeName
string

A fully-qualified path representing project_agent_environment_user_session_entity_type resource.

Returns
Type
Description
string | number

{string} A string representing the environment.

matchEnvironmentFromProjectLocationAgentEnvironmentName(projectLocationAgentEnvironmentName)

  matchEnvironmentFromProjectLocationAgentEnvironmentName 
 ( 
 projectLocationAgentEnvironmentName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the environment from ProjectLocationAgentEnvironment resource.

Parameter
Name
Description
projectLocationAgentEnvironmentName
string

A fully-qualified path representing project_location_agent_environment resource.

Returns
Type
Description
string | number

{string} A string representing the environment.

matchEnvironmentFromProjectLocationAgentEnvironmentUserSessionContextName(projectLocationAgentEnvironmentUserSessionContextName)

  matchEnvironmentFromProjectLocationAgentEnvironmentUserSessionContextName 
 ( 
 projectLocationAgentEnvironmentUserSessionContextName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the environment from ProjectLocationAgentEnvironmentUserSessionContext resource.

Parameter
Name
Description
projectLocationAgentEnvironmentUserSessionContextName
string

A fully-qualified path representing project_location_agent_environment_user_session_context resource.

Returns
Type
Description
string | number

{string} A string representing the environment.

matchEnvironmentFromProjectLocationAgentEnvironmentUserSessionEntityTypeName(projectLocationAgentEnvironmentUserSessionEntityTypeName)

  matchEnvironmentFromProjectLocationAgentEnvironmentUserSessionEntityTypeName 
 ( 
 projectLocationAgentEnvironmentUserSessionEntityTypeName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the environment from ProjectLocationAgentEnvironmentUserSessionEntityType resource.

Parameter
Name
Description
projectLocationAgentEnvironmentUserSessionEntityTypeName
string

A fully-qualified path representing project_location_agent_environment_user_session_entity_type resource.

Returns
Type
Description
string | number

{string} A string representing the environment.

matchIntentFromProjectAgentIntentName(projectAgentIntentName)

  matchIntentFromProjectAgentIntentName 
 ( 
 projectAgentIntentName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the intent from ProjectAgentIntent resource.

Parameter
Name
Description
projectAgentIntentName
string

A fully-qualified path representing project_agent_intent resource.

Returns
Type
Description
string | number

{string} A string representing the intent.

matchIntentFromProjectLocationAgentIntentName(projectLocationAgentIntentName)

  matchIntentFromProjectLocationAgentIntentName 
 ( 
 projectLocationAgentIntentName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the intent from ProjectLocationAgentIntent resource.

Parameter
Name
Description
projectLocationAgentIntentName
string

A fully-qualified path representing project_location_agent_intent resource.

Returns
Type
Description
string | number

{string} A string representing the intent.

matchKnowledgeBaseFromProjectKnowledgeBaseDocumentName(projectKnowledgeBaseDocumentName)

  matchKnowledgeBaseFromProjectKnowledgeBaseDocumentName 
 ( 
 projectKnowledgeBaseDocumentName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the knowledge_base from ProjectKnowledgeBaseDocument resource.

Parameter
Name
Description
projectKnowledgeBaseDocumentName
string

A fully-qualified path representing project_knowledge_base_document resource.

Returns
Type
Description
string | number

{string} A string representing the knowledge_base.

matchKnowledgeBaseFromProjectKnowledgeBaseName(projectKnowledgeBaseName)

  matchKnowledgeBaseFromProjectKnowledgeBaseName 
 ( 
 projectKnowledgeBaseName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the knowledge_base from ProjectKnowledgeBase resource.

Parameter
Name
Description
projectKnowledgeBaseName
string

A fully-qualified path representing project_knowledge_base resource.

Returns
Type
Description
string | number

{string} A string representing the knowledge_base.

matchKnowledgeBaseFromProjectLocationKnowledgeBaseDocumentName(projectLocationKnowledgeBaseDocumentName)

  matchKnowledgeBaseFromProjectLocationKnowledgeBaseDocumentName 
 ( 
 projectLocationKnowledgeBaseDocumentName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the knowledge_base from ProjectLocationKnowledgeBaseDocument resource.

Parameter
Name
Description
projectLocationKnowledgeBaseDocumentName
string

A fully-qualified path representing project_location_knowledge_base_document resource.

Returns
Type
Description
string | number

{string} A string representing the knowledge_base.

matchKnowledgeBaseFromProjectLocationKnowledgeBaseName(projectLocationKnowledgeBaseName)

  matchKnowledgeBaseFromProjectLocationKnowledgeBaseName 
 ( 
 projectLocationKnowledgeBaseName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the knowledge_base from ProjectLocationKnowledgeBase resource.

Parameter
Name
Description
projectLocationKnowledgeBaseName
string

A fully-qualified path representing project_location_knowledge_base resource.

Returns
Type
Description
string | number

{string} A string representing the knowledge_base.

matchLocationFromProjectLocationAgentEntityTypeName(projectLocationAgentEntityTypeName)

  matchLocationFromProjectLocationAgentEntityTypeName 
 ( 
 projectLocationAgentEntityTypeName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the location from ProjectLocationAgentEntityType resource.

Parameter
Name
Description
projectLocationAgentEntityTypeName
string

A fully-qualified path representing project_location_agent_entity_type resource.

Returns
Type
Description
string | number

{string} A string representing the location.

matchLocationFromProjectLocationAgentEnvironmentName(projectLocationAgentEnvironmentName)

  matchLocationFromProjectLocationAgentEnvironmentName 
 ( 
 projectLocationAgentEnvironmentName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the location from ProjectLocationAgentEnvironment resource.

Parameter
Name
Description
projectLocationAgentEnvironmentName
string

A fully-qualified path representing project_location_agent_environment resource.

Returns
Type
Description
string | number

{string} A string representing the location.

matchLocationFromProjectLocationAgentEnvironmentUserSessionContextName(projectLocationAgentEnvironmentUserSessionContextName)

  matchLocationFromProjectLocationAgentEnvironmentUserSessionContextName 
 ( 
 projectLocationAgentEnvironmentUserSessionContextName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the location from ProjectLocationAgentEnvironmentUserSessionContext resource.

Parameter
Name
Description
projectLocationAgentEnvironmentUserSessionContextName
string

A fully-qualified path representing project_location_agent_environment_user_session_context resource.

Returns
Type
Description
string | number

{string} A string representing the location.

matchLocationFromProjectLocationAgentEnvironmentUserSessionEntityTypeName(projectLocationAgentEnvironmentUserSessionEntityTypeName)

  matchLocationFromProjectLocationAgentEnvironmentUserSessionEntityTypeName 
 ( 
 projectLocationAgentEnvironmentUserSessionEntityTypeName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the location from ProjectLocationAgentEnvironmentUserSessionEntityType resource.

Parameter
Name
Description
projectLocationAgentEnvironmentUserSessionEntityTypeName
string

A fully-qualified path representing project_location_agent_environment_user_session_entity_type resource.

Returns
Type
Description
string | number

{string} A string representing the location.

matchLocationFromProjectLocationAgentFulfillmentName(projectLocationAgentFulfillmentName)

  matchLocationFromProjectLocationAgentFulfillmentName 
 ( 
 projectLocationAgentFulfillmentName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the location from ProjectLocationAgentFulfillment resource.

Parameter
Name
Description
projectLocationAgentFulfillmentName
string

A fully-qualified path representing project_location_agent_fulfillment resource.

Returns
Type
Description
string | number

{string} A string representing the location.

matchLocationFromProjectLocationAgentIntentName(projectLocationAgentIntentName)

  matchLocationFromProjectLocationAgentIntentName 
 ( 
 projectLocationAgentIntentName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the location from ProjectLocationAgentIntent resource.

Parameter
Name
Description
projectLocationAgentIntentName
string

A fully-qualified path representing project_location_agent_intent resource.

Returns
Type
Description
string | number

{string} A string representing the location.

matchLocationFromProjectLocationAgentName(projectLocationAgentName)

  matchLocationFromProjectLocationAgentName 
 ( 
 projectLocationAgentName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the location from ProjectLocationAgent resource.

Parameter
Name
Description
projectLocationAgentName
string

A fully-qualified path representing project_location_agent resource.

Returns
Type
Description
string | number

{string} A string representing the location.

matchLocationFromProjectLocationAgentSessionContextName(projectLocationAgentSessionContextName)

  matchLocationFromProjectLocationAgentSessionContextName 
 ( 
 projectLocationAgentSessionContextName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the location from ProjectLocationAgentSessionContext resource.

Parameter
Name
Description
projectLocationAgentSessionContextName
string

A fully-qualified path representing project_location_agent_session_context resource.

Returns
Type
Description
string | number

{string} A string representing the location.

matchLocationFromProjectLocationAgentSessionEntityTypeName(projectLocationAgentSessionEntityTypeName)

  matchLocationFromProjectLocationAgentSessionEntityTypeName 
 ( 
 projectLocationAgentSessionEntityTypeName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the location from ProjectLocationAgentSessionEntityType resource.

Parameter
Name
Description
projectLocationAgentSessionEntityTypeName
string

A fully-qualified path representing project_location_agent_session_entity_type resource.

Returns
Type
Description
string | number

{string} A string representing the location.

matchLocationFromProjectLocationAgentVersionName(projectLocationAgentVersionName)

  matchLocationFromProjectLocationAgentVersionName 
 ( 
 projectLocationAgentVersionName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the location from ProjectLocationAgentVersion resource.

Parameter
Name
Description
projectLocationAgentVersionName
string

A fully-qualified path representing project_location_agent_version resource.

Returns
Type
Description
string | number

{string} A string representing the location.

matchLocationFromProjectLocationAnswerRecordName(projectLocationAnswerRecordName)

  matchLocationFromProjectLocationAnswerRecordName 
 ( 
 projectLocationAnswerRecordName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the location from ProjectLocationAnswerRecord resource.

Parameter
Name
Description
projectLocationAnswerRecordName
string

A fully-qualified path representing project_location_answer_record resource.

Returns
Type
Description
string | number

{string} A string representing the location.

matchLocationFromProjectLocationConversationMessageName(projectLocationConversationMessageName)

  matchLocationFromProjectLocationConversationMessageName 
 ( 
 projectLocationConversationMessageName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the location from ProjectLocationConversationMessage resource.

Parameter
Name
Description
projectLocationConversationMessageName
string

A fully-qualified path representing project_location_conversation_message resource.

Returns
Type
Description
string | number

{string} A string representing the location.

matchLocationFromProjectLocationConversationName(projectLocationConversationName)

  matchLocationFromProjectLocationConversationName 
 ( 
 projectLocationConversationName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the location from ProjectLocationConversation resource.

Parameter
Name
Description
projectLocationConversationName
string

A fully-qualified path representing project_location_conversation resource.

Returns
Type
Description
string | number

{string} A string representing the location.

matchLocationFromProjectLocationConversationParticipantName(projectLocationConversationParticipantName)

  matchLocationFromProjectLocationConversationParticipantName 
 ( 
 projectLocationConversationParticipantName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the location from ProjectLocationConversationParticipant resource.

Parameter
Name
Description
projectLocationConversationParticipantName
string

A fully-qualified path representing project_location_conversation_participant resource.

Returns
Type
Description
string | number

{string} A string representing the location.

matchLocationFromProjectLocationConversationProfileName(projectLocationConversationProfileName)

  matchLocationFromProjectLocationConversationProfileName 
 ( 
 projectLocationConversationProfileName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the location from ProjectLocationConversationProfile resource.

Parameter
Name
Description
projectLocationConversationProfileName
string

A fully-qualified path representing project_location_conversation_profile resource.

Returns
Type
Description
string | number

{string} A string representing the location.

matchLocationFromProjectLocationKnowledgeBaseDocumentName(projectLocationKnowledgeBaseDocumentName)

  matchLocationFromProjectLocationKnowledgeBaseDocumentName 
 ( 
 projectLocationKnowledgeBaseDocumentName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the location from ProjectLocationKnowledgeBaseDocument resource.

Parameter
Name
Description
projectLocationKnowledgeBaseDocumentName
string

A fully-qualified path representing project_location_knowledge_base_document resource.

Returns
Type
Description
string | number

{string} A string representing the location.

matchLocationFromProjectLocationKnowledgeBaseName(projectLocationKnowledgeBaseName)

  matchLocationFromProjectLocationKnowledgeBaseName 
 ( 
 projectLocationKnowledgeBaseName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the location from ProjectLocationKnowledgeBase resource.

Parameter
Name
Description
projectLocationKnowledgeBaseName
string

A fully-qualified path representing project_location_knowledge_base resource.

Returns
Type
Description
string | number

{string} A string representing the location.

matchMessageFromProjectConversationMessageName(projectConversationMessageName)

  matchMessageFromProjectConversationMessageName 
 ( 
 projectConversationMessageName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the message from ProjectConversationMessage resource.

Parameter
Name
Description
projectConversationMessageName
string

A fully-qualified path representing project_conversation_message resource.

Returns
Type
Description
string | number

{string} A string representing the message.

matchMessageFromProjectLocationConversationMessageName(projectLocationConversationMessageName)

  matchMessageFromProjectLocationConversationMessageName 
 ( 
 projectLocationConversationMessageName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the message from ProjectLocationConversationMessage resource.

Parameter
Name
Description
projectLocationConversationMessageName
string

A fully-qualified path representing project_location_conversation_message resource.

Returns
Type
Description
string | number

{string} A string representing the message.

matchParticipantFromProjectConversationParticipantName(projectConversationParticipantName)

  matchParticipantFromProjectConversationParticipantName 
 ( 
 projectConversationParticipantName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the participant from ProjectConversationParticipant resource.

Parameter
Name
Description
projectConversationParticipantName
string

A fully-qualified path representing project_conversation_participant resource.

Returns
Type
Description
string | number

{string} A string representing the participant.

matchParticipantFromProjectLocationConversationParticipantName(projectLocationConversationParticipantName)

  matchParticipantFromProjectLocationConversationParticipantName 
 ( 
 projectLocationConversationParticipantName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the participant from ProjectLocationConversationParticipant resource.

Parameter
Name
Description
projectLocationConversationParticipantName
string

A fully-qualified path representing project_location_conversation_participant resource.

Returns
Type
Description
string | number

{string} A string representing the participant.

matchProjectFromProjectAgentEntityTypeName(projectAgentEntityTypeName)

  matchProjectFromProjectAgentEntityTypeName 
 ( 
 projectAgentEntityTypeName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the project from ProjectAgentEntityType resource.

Parameter
Name
Description
projectAgentEntityTypeName
string

A fully-qualified path representing project_agent_entity_type resource.

Returns
Type
Description
string | number

{string} A string representing the project.

matchProjectFromProjectAgentEnvironmentName(projectAgentEnvironmentName)

  matchProjectFromProjectAgentEnvironmentName 
 ( 
 projectAgentEnvironmentName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the project from ProjectAgentEnvironment resource.

Parameter
Name
Description
projectAgentEnvironmentName
string

A fully-qualified path representing project_agent_environment resource.

Returns
Type
Description
string | number

{string} A string representing the project.

matchProjectFromProjectAgentEnvironmentUserSessionContextName(projectAgentEnvironmentUserSessionContextName)

  matchProjectFromProjectAgentEnvironmentUserSessionContextName 
 ( 
 projectAgentEnvironmentUserSessionContextName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the project from ProjectAgentEnvironmentUserSessionContext resource.

Parameter
Name
Description
projectAgentEnvironmentUserSessionContextName
string

A fully-qualified path representing project_agent_environment_user_session_context resource.

Returns
Type
Description
string | number

{string} A string representing the project.

matchProjectFromProjectAgentEnvironmentUserSessionEntityTypeName(projectAgentEnvironmentUserSessionEntityTypeName)

  matchProjectFromProjectAgentEnvironmentUserSessionEntityTypeName 
 ( 
 projectAgentEnvironmentUserSessionEntityTypeName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the project from ProjectAgentEnvironmentUserSessionEntityType resource.

Parameter
Name
Description
projectAgentEnvironmentUserSessionEntityTypeName
string

A fully-qualified path representing project_agent_environment_user_session_entity_type resource.

Returns
Type
Description
string | number

{string} A string representing the project.

matchProjectFromProjectAgentFulfillmentName(projectAgentFulfillmentName)

  matchProjectFromProjectAgentFulfillmentName 
 ( 
 projectAgentFulfillmentName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the project from ProjectAgentFulfillment resource.

Parameter
Name
Description
projectAgentFulfillmentName
string

A fully-qualified path representing project_agent_fulfillment resource.

Returns
Type
Description
string | number

{string} A string representing the project.

matchProjectFromProjectAgentIntentName(projectAgentIntentName)

  matchProjectFromProjectAgentIntentName 
 ( 
 projectAgentIntentName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the project from ProjectAgentIntent resource.

Parameter
Name
Description
projectAgentIntentName
string

A fully-qualified path representing project_agent_intent resource.

Returns
Type
Description
string | number

{string} A string representing the project.

matchProjectFromProjectAgentName(projectAgentName)

  matchProjectFromProjectAgentName 
 ( 
 projectAgentName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the project from ProjectAgent resource.

Parameter
Name
Description
projectAgentName
string

A fully-qualified path representing project_agent resource.

Returns
Type
Description
string | number

{string} A string representing the project.

matchProjectFromProjectAgentSessionContextName(projectAgentSessionContextName)

  matchProjectFromProjectAgentSessionContextName 
 ( 
 projectAgentSessionContextName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the project from ProjectAgentSessionContext resource.

Parameter
Name
Description
projectAgentSessionContextName
string

A fully-qualified path representing project_agent_session_context resource.

Returns
Type
Description
string | number

{string} A string representing the project.

matchProjectFromProjectAgentSessionEntityTypeName(projectAgentSessionEntityTypeName)

  matchProjectFromProjectAgentSessionEntityTypeName 
 ( 
 projectAgentSessionEntityTypeName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the project from ProjectAgentSessionEntityType resource.

Parameter
Name
Description
projectAgentSessionEntityTypeName
string

A fully-qualified path representing project_agent_session_entity_type resource.

Returns
Type
Description
string | number

{string} A string representing the project.

matchProjectFromProjectAgentVersionName(projectAgentVersionName)

  matchProjectFromProjectAgentVersionName 
 ( 
 projectAgentVersionName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the project from ProjectAgentVersion resource.

Parameter
Name
Description
projectAgentVersionName
string

A fully-qualified path representing project_agent_version resource.

Returns
Type
Description
string | number

{string} A string representing the project.

matchProjectFromProjectAnswerRecordName(projectAnswerRecordName)

  matchProjectFromProjectAnswerRecordName 
 ( 
 projectAnswerRecordName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the project from ProjectAnswerRecord resource.

Parameter
Name
Description
projectAnswerRecordName
string

A fully-qualified path representing project_answer_record resource.

Returns
Type
Description
string | number

{string} A string representing the project.

matchProjectFromProjectConversationMessageName(projectConversationMessageName)

  matchProjectFromProjectConversationMessageName 
 ( 
 projectConversationMessageName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the project from ProjectConversationMessage resource.

Parameter
Name
Description
projectConversationMessageName
string

A fully-qualified path representing project_conversation_message resource.

Returns
Type
Description
string | number

{string} A string representing the project.

matchProjectFromProjectConversationName(projectConversationName)

  matchProjectFromProjectConversationName 
 ( 
 projectConversationName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the project from ProjectConversation resource.

Parameter
Name
Description
projectConversationName
string

A fully-qualified path representing project_conversation resource.

Returns
Type
Description
string | number

{string} A string representing the project.

matchProjectFromProjectConversationParticipantName(projectConversationParticipantName)

  matchProjectFromProjectConversationParticipantName 
 ( 
 projectConversationParticipantName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the project from ProjectConversationParticipant resource.

Parameter
Name
Description
projectConversationParticipantName
string

A fully-qualified path representing project_conversation_participant resource.

Returns
Type
Description
string | number

{string} A string representing the project.

matchProjectFromProjectConversationProfileName(projectConversationProfileName)

  matchProjectFromProjectConversationProfileName 
 ( 
 projectConversationProfileName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the project from ProjectConversationProfile resource.

Parameter
Name
Description
projectConversationProfileName
string

A fully-qualified path representing project_conversation_profile resource.

Returns
Type
Description
string | number

{string} A string representing the project.

matchProjectFromProjectKnowledgeBaseDocumentName(projectKnowledgeBaseDocumentName)

  matchProjectFromProjectKnowledgeBaseDocumentName 
 ( 
 projectKnowledgeBaseDocumentName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the project from ProjectKnowledgeBaseDocument resource.

Parameter
Name
Description
projectKnowledgeBaseDocumentName
string

A fully-qualified path representing project_knowledge_base_document resource.

Returns
Type
Description
string | number

{string} A string representing the project.

matchProjectFromProjectKnowledgeBaseName(projectKnowledgeBaseName)

  matchProjectFromProjectKnowledgeBaseName 
 ( 
 projectKnowledgeBaseName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the project from ProjectKnowledgeBase resource.

Parameter
Name
Description
projectKnowledgeBaseName
string

A fully-qualified path representing project_knowledge_base resource.

Returns
Type
Description
string | number

{string} A string representing the project.

matchProjectFromProjectLocationAgentEntityTypeName(projectLocationAgentEntityTypeName)

  matchProjectFromProjectLocationAgentEntityTypeName 
 ( 
 projectLocationAgentEntityTypeName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the project from ProjectLocationAgentEntityType resource.

Parameter
Name
Description
projectLocationAgentEntityTypeName
string

A fully-qualified path representing project_location_agent_entity_type resource.

Returns
Type
Description
string | number

{string} A string representing the project.

matchProjectFromProjectLocationAgentEnvironmentName(projectLocationAgentEnvironmentName)

  matchProjectFromProjectLocationAgentEnvironmentName 
 ( 
 projectLocationAgentEnvironmentName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the project from ProjectLocationAgentEnvironment resource.

Parameter
Name
Description
projectLocationAgentEnvironmentName
string

A fully-qualified path representing project_location_agent_environment resource.

Returns
Type
Description
string | number

{string} A string representing the project.

matchProjectFromProjectLocationAgentEnvironmentUserSessionContextName(projectLocationAgentEnvironmentUserSessionContextName)

  matchProjectFromProjectLocationAgentEnvironmentUserSessionContextName 
 ( 
 projectLocationAgentEnvironmentUserSessionContextName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the project from ProjectLocationAgentEnvironmentUserSessionContext resource.

Parameter
Name
Description
projectLocationAgentEnvironmentUserSessionContextName
string

A fully-qualified path representing project_location_agent_environment_user_session_context resource.

Returns
Type
Description
string | number

{string} A string representing the project.

matchProjectFromProjectLocationAgentEnvironmentUserSessionEntityTypeName(projectLocationAgentEnvironmentUserSessionEntityTypeName)

  matchProjectFromProjectLocationAgentEnvironmentUserSessionEntityTypeName 
 ( 
 projectLocationAgentEnvironmentUserSessionEntityTypeName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the project from ProjectLocationAgentEnvironmentUserSessionEntityType resource.

Parameter
Name
Description
projectLocationAgentEnvironmentUserSessionEntityTypeName
string

A fully-qualified path representing project_location_agent_environment_user_session_entity_type resource.

Returns
Type
Description
string | number

{string} A string representing the project.

matchProjectFromProjectLocationAgentFulfillmentName(projectLocationAgentFulfillmentName)

  matchProjectFromProjectLocationAgentFulfillmentName 
 ( 
 projectLocationAgentFulfillmentName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the project from ProjectLocationAgentFulfillment resource.

Parameter
Name
Description
projectLocationAgentFulfillmentName
string

A fully-qualified path representing project_location_agent_fulfillment resource.

Returns
Type
Description
string | number

{string} A string representing the project.

matchProjectFromProjectLocationAgentIntentName(projectLocationAgentIntentName)

  matchProjectFromProjectLocationAgentIntentName 
 ( 
 projectLocationAgentIntentName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the project from ProjectLocationAgentIntent resource.

Parameter
Name
Description
projectLocationAgentIntentName
string

A fully-qualified path representing project_location_agent_intent resource.

Returns
Type
Description
string | number

{string} A string representing the project.

matchProjectFromProjectLocationAgentName(projectLocationAgentName)

  matchProjectFromProjectLocationAgentName 
 ( 
 projectLocationAgentName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the project from ProjectLocationAgent resource.

Parameter
Name
Description
projectLocationAgentName
string

A fully-qualified path representing project_location_agent resource.

Returns
Type
Description
string | number

{string} A string representing the project.

matchProjectFromProjectLocationAgentSessionContextName(projectLocationAgentSessionContextName)

  matchProjectFromProjectLocationAgentSessionContextName 
 ( 
 projectLocationAgentSessionContextName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the project from ProjectLocationAgentSessionContext resource.

Parameter
Name
Description
projectLocationAgentSessionContextName
string

A fully-qualified path representing project_location_agent_session_context resource.

Returns
Type
Description
string | number

{string} A string representing the project.

matchProjectFromProjectLocationAgentSessionEntityTypeName(projectLocationAgentSessionEntityTypeName)

  matchProjectFromProjectLocationAgentSessionEntityTypeName 
 ( 
 projectLocationAgentSessionEntityTypeName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the project from ProjectLocationAgentSessionEntityType resource.

Parameter
Name
Description
projectLocationAgentSessionEntityTypeName
string

A fully-qualified path representing project_location_agent_session_entity_type resource.

Returns
Type
Description
string | number

{string} A string representing the project.

matchProjectFromProjectLocationAgentVersionName(projectLocationAgentVersionName)

  matchProjectFromProjectLocationAgentVersionName 
 ( 
 projectLocationAgentVersionName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the project from ProjectLocationAgentVersion resource.

Parameter
Name
Description
projectLocationAgentVersionName
string

A fully-qualified path representing project_location_agent_version resource.

Returns
Type
Description
string | number

{string} A string representing the project.

matchProjectFromProjectLocationAnswerRecordName(projectLocationAnswerRecordName)

  matchProjectFromProjectLocationAnswerRecordName 
 ( 
 projectLocationAnswerRecordName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the project from ProjectLocationAnswerRecord resource.

Parameter
Name
Description
projectLocationAnswerRecordName
string

A fully-qualified path representing project_location_answer_record resource.

Returns
Type
Description
string | number

{string} A string representing the project.

matchProjectFromProjectLocationConversationMessageName(projectLocationConversationMessageName)

  matchProjectFromProjectLocationConversationMessageName 
 ( 
 projectLocationConversationMessageName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the project from ProjectLocationConversationMessage resource.

Parameter
Name
Description
projectLocationConversationMessageName
string

A fully-qualified path representing project_location_conversation_message resource.

Returns
Type
Description
string | number

{string} A string representing the project.

matchProjectFromProjectLocationConversationName(projectLocationConversationName)

  matchProjectFromProjectLocationConversationName 
 ( 
 projectLocationConversationName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the project from ProjectLocationConversation resource.

Parameter
Name
Description
projectLocationConversationName
string

A fully-qualified path representing project_location_conversation resource.

Returns
Type
Description
string | number

{string} A string representing the project.

matchProjectFromProjectLocationConversationParticipantName(projectLocationConversationParticipantName)

  matchProjectFromProjectLocationConversationParticipantName 
 ( 
 projectLocationConversationParticipantName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the project from ProjectLocationConversationParticipant resource.

Parameter
Name
Description
projectLocationConversationParticipantName
string

A fully-qualified path representing project_location_conversation_participant resource.

Returns
Type
Description
string | number

{string} A string representing the project.

matchProjectFromProjectLocationConversationProfileName(projectLocationConversationProfileName)

  matchProjectFromProjectLocationConversationProfileName 
 ( 
 projectLocationConversationProfileName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the project from ProjectLocationConversationProfile resource.

Parameter
Name
Description
projectLocationConversationProfileName
string

A fully-qualified path representing project_location_conversation_profile resource.

Returns
Type
Description
string | number

{string} A string representing the project.

matchProjectFromProjectLocationKnowledgeBaseDocumentName(projectLocationKnowledgeBaseDocumentName)

  matchProjectFromProjectLocationKnowledgeBaseDocumentName 
 ( 
 projectLocationKnowledgeBaseDocumentName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the project from ProjectLocationKnowledgeBaseDocument resource.

Parameter
Name
Description
projectLocationKnowledgeBaseDocumentName
string

A fully-qualified path representing project_location_knowledge_base_document resource.

Returns
Type
Description
string | number

{string} A string representing the project.

matchProjectFromProjectLocationKnowledgeBaseName(projectLocationKnowledgeBaseName)

  matchProjectFromProjectLocationKnowledgeBaseName 
 ( 
 projectLocationKnowledgeBaseName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the project from ProjectLocationKnowledgeBase resource.

Parameter
Name
Description
projectLocationKnowledgeBaseName
string

A fully-qualified path representing project_location_knowledge_base resource.

Returns
Type
Description
string | number

{string} A string representing the project.

matchProjectFromProjectName(projectName)

  matchProjectFromProjectName 
 ( 
 projectName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the project from Project resource.

Parameter
Name
Description
projectName
string

A fully-qualified path representing Project resource.

Returns
Type
Description
string | number

{string} A string representing the project.

matchSessionFromProjectAgentEnvironmentUserSessionContextName(projectAgentEnvironmentUserSessionContextName)

  matchSessionFromProjectAgentEnvironmentUserSessionContextName 
 ( 
 projectAgentEnvironmentUserSessionContextName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the session from ProjectAgentEnvironmentUserSessionContext resource.

Parameter
Name
Description
projectAgentEnvironmentUserSessionContextName
string

A fully-qualified path representing project_agent_environment_user_session_context resource.

Returns
Type
Description
string | number

{string} A string representing the session.

matchSessionFromProjectAgentEnvironmentUserSessionEntityTypeName(projectAgentEnvironmentUserSessionEntityTypeName)

  matchSessionFromProjectAgentEnvironmentUserSessionEntityTypeName 
 ( 
 projectAgentEnvironmentUserSessionEntityTypeName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the session from ProjectAgentEnvironmentUserSessionEntityType resource.

Parameter
Name
Description
projectAgentEnvironmentUserSessionEntityTypeName
string

A fully-qualified path representing project_agent_environment_user_session_entity_type resource.

Returns
Type
Description
string | number

{string} A string representing the session.

matchSessionFromProjectAgentSessionContextName(projectAgentSessionContextName)

  matchSessionFromProjectAgentSessionContextName 
 ( 
 projectAgentSessionContextName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the session from ProjectAgentSessionContext resource.

Parameter
Name
Description
projectAgentSessionContextName
string

A fully-qualified path representing project_agent_session_context resource.

Returns
Type
Description
string | number

{string} A string representing the session.

matchSessionFromProjectAgentSessionEntityTypeName(projectAgentSessionEntityTypeName)

  matchSessionFromProjectAgentSessionEntityTypeName 
 ( 
 projectAgentSessionEntityTypeName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the session from ProjectAgentSessionEntityType resource.

Parameter
Name
Description
projectAgentSessionEntityTypeName
string

A fully-qualified path representing project_agent_session_entity_type resource.

Returns
Type
Description
string | number

{string} A string representing the session.

matchSessionFromProjectLocationAgentEnvironmentUserSessionContextName(projectLocationAgentEnvironmentUserSessionContextName)

  matchSessionFromProjectLocationAgentEnvironmentUserSessionContextName 
 ( 
 projectLocationAgentEnvironmentUserSessionContextName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the session from ProjectLocationAgentEnvironmentUserSessionContext resource.

Parameter
Name
Description
projectLocationAgentEnvironmentUserSessionContextName
string

A fully-qualified path representing project_location_agent_environment_user_session_context resource.

Returns
Type
Description
string | number

{string} A string representing the session.

matchSessionFromProjectLocationAgentEnvironmentUserSessionEntityTypeName(projectLocationAgentEnvironmentUserSessionEntityTypeName)

  matchSessionFromProjectLocationAgentEnvironmentUserSessionEntityTypeName 
 ( 
 projectLocationAgentEnvironmentUserSessionEntityTypeName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the session from ProjectLocationAgentEnvironmentUserSessionEntityType resource.

Parameter
Name
Description
projectLocationAgentEnvironmentUserSessionEntityTypeName
string

A fully-qualified path representing project_location_agent_environment_user_session_entity_type resource.

Returns
Type
Description
string | number

{string} A string representing the session.

matchSessionFromProjectLocationAgentSessionContextName(projectLocationAgentSessionContextName)

  matchSessionFromProjectLocationAgentSessionContextName 
 ( 
 projectLocationAgentSessionContextName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the session from ProjectLocationAgentSessionContext resource.

Parameter
Name
Description
projectLocationAgentSessionContextName
string

A fully-qualified path representing project_location_agent_session_context resource.

Returns
Type
Description
string | number

{string} A string representing the session.

matchSessionFromProjectLocationAgentSessionEntityTypeName(projectLocationAgentSessionEntityTypeName)

  matchSessionFromProjectLocationAgentSessionEntityTypeName 
 ( 
 projectLocationAgentSessionEntityTypeName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the session from ProjectLocationAgentSessionEntityType resource.

Parameter
Name
Description
projectLocationAgentSessionEntityTypeName
string

A fully-qualified path representing project_location_agent_session_entity_type resource.

Returns
Type
Description
string | number

{string} A string representing the session.

matchUserFromProjectAgentEnvironmentUserSessionContextName(projectAgentEnvironmentUserSessionContextName)

  matchUserFromProjectAgentEnvironmentUserSessionContextName 
 ( 
 projectAgentEnvironmentUserSessionContextName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the user from ProjectAgentEnvironmentUserSessionContext resource.

Parameter
Name
Description
projectAgentEnvironmentUserSessionContextName
string

A fully-qualified path representing project_agent_environment_user_session_context resource.

Returns
Type
Description
string | number

{string} A string representing the user.

matchUserFromProjectAgentEnvironmentUserSessionEntityTypeName(projectAgentEnvironmentUserSessionEntityTypeName)

  matchUserFromProjectAgentEnvironmentUserSessionEntityTypeName 
 ( 
 projectAgentEnvironmentUserSessionEntityTypeName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the user from ProjectAgentEnvironmentUserSessionEntityType resource.

Parameter
Name
Description
projectAgentEnvironmentUserSessionEntityTypeName
string

A fully-qualified path representing project_agent_environment_user_session_entity_type resource.

Returns
Type
Description
string | number

{string} A string representing the user.

matchUserFromProjectLocationAgentEnvironmentUserSessionContextName(projectLocationAgentEnvironmentUserSessionContextName)

  matchUserFromProjectLocationAgentEnvironmentUserSessionContextName 
 ( 
 projectLocationAgentEnvironmentUserSessionContextName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the user from ProjectLocationAgentEnvironmentUserSessionContext resource.

Parameter
Name
Description
projectLocationAgentEnvironmentUserSessionContextName
string

A fully-qualified path representing project_location_agent_environment_user_session_context resource.

Returns
Type
Description
string | number

{string} A string representing the user.

matchUserFromProjectLocationAgentEnvironmentUserSessionEntityTypeName(projectLocationAgentEnvironmentUserSessionEntityTypeName)

  matchUserFromProjectLocationAgentEnvironmentUserSessionEntityTypeName 
 ( 
 projectLocationAgentEnvironmentUserSessionEntityTypeName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the user from ProjectLocationAgentEnvironmentUserSessionEntityType resource.

Parameter
Name
Description
projectLocationAgentEnvironmentUserSessionEntityTypeName
string

A fully-qualified path representing project_location_agent_environment_user_session_entity_type resource.

Returns
Type
Description
string | number

{string} A string representing the user.

matchVersionFromProjectAgentVersionName(projectAgentVersionName)

  matchVersionFromProjectAgentVersionName 
 ( 
 projectAgentVersionName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the version from ProjectAgentVersion resource.

Parameter
Name
Description
projectAgentVersionName
string

A fully-qualified path representing project_agent_version resource.

Returns
Type
Description
string | number

{string} A string representing the version.

matchVersionFromProjectLocationAgentVersionName(projectLocationAgentVersionName)

  matchVersionFromProjectLocationAgentVersionName 
 ( 
 projectLocationAgentVersionName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the version from ProjectLocationAgentVersion resource.

Parameter
Name
Description
projectLocationAgentVersionName
string

A fully-qualified path representing project_location_agent_version resource.

Returns
Type
Description
string | number

{string} A string representing the version.

projectAgentEntityTypePath(project, entityType)

  projectAgentEntityTypePath 
 ( 
 project 
 : 
  
 string 
 , 
  
 entityType 
 : 
  
 string 
 ) 
 : 
  
 string 
 ; 
 

Return a fully-qualified projectAgentEntityType resource name string.

Parameters
Name
Description
project
string
entityType
string
Returns
Type
Description
string

{string} Resource name string.

projectAgentEnvironmentPath(project, environment)

  projectAgentEnvironmentPath 
 ( 
 project 
 : 
  
 string 
 , 
  
 environment 
 : 
  
 string 
 ) 
 : 
  
 string 
 ; 
 

Return a fully-qualified projectAgentEnvironment resource name string.

Parameters
Name
Description
project
string
environment
string
Returns
Type
Description
string

{string} Resource name string.

projectAgentEnvironmentUserSessionContextPath(project, environment, user, session, context)

  projectAgentEnvironmentUserSessionContextPath 
 ( 
 project 
 : 
  
 string 
 , 
  
 environment 
 : 
  
 string 
 , 
  
 user 
 : 
  
 string 
 , 
  
 session 
 : 
  
 string 
 , 
  
 context 
 : 
  
 string 
 ) 
 : 
  
 string 
 ; 
 

Return a fully-qualified projectAgentEnvironmentUserSessionContext resource name string.

Parameters
Name
Description
project
string
environment
string
user
string
session
string
context
string
Returns
Type
Description
string

{string} Resource name string.

projectAgentEnvironmentUserSessionEntityTypePath(project, environment, user, session, entityType)

  projectAgentEnvironmentUserSessionEntityTypePath 
 ( 
 project 
 : 
  
 string 
 , 
  
 environment 
 : 
  
 string 
 , 
  
 user 
 : 
  
 string 
 , 
  
 session 
 : 
  
 string 
 , 
  
 entityType 
 : 
  
 string 
 ) 
 : 
  
 string 
 ; 
 

Return a fully-qualified projectAgentEnvironmentUserSessionEntityType resource name string.

Parameters
Name
Description
project
string
environment
string
user
string
session
string
entityType
string
Returns
Type
Description
string

{string} Resource name string.

projectAgentFulfillmentPath(project)

  projectAgentFulfillmentPath 
 ( 
 project 
 : 
  
 string 
 ) 
 : 
  
 string 
 ; 
 

Return a fully-qualified projectAgentFulfillment resource name string.

Parameter
Name
Description
project
string
Returns
Type
Description
string

{string} Resource name string.

projectAgentIntentPath(project, intent)

  projectAgentIntentPath 
 ( 
 project 
 : 
  
 string 
 , 
  
 intent 
 : 
  
 string 
 ) 
 : 
  
 string 
 ; 
 

Return a fully-qualified projectAgentIntent resource name string.

Parameters
Name
Description
project
string
intent
string
Returns
Type
Description
string

{string} Resource name string.

projectAgentPath(project)

  projectAgentPath 
 ( 
 project 
 : 
  
 string 
 ) 
 : 
  
 string 
 ; 
 

Return a fully-qualified projectAgent resource name string.

Parameter
Name
Description
project
string
Returns
Type
Description
string

{string} Resource name string.

projectAgentSessionContextPath(project, session, context)

  projectAgentSessionContextPath 
 ( 
 project 
 : 
  
 string 
 , 
  
 session 
 : 
  
 string 
 , 
  
 context 
 : 
  
 string 
 ) 
 : 
  
 string 
 ; 
 

Return a fully-qualified projectAgentSessionContext resource name string.

Parameters
Name
Description
project
string
session
string
context
string
Returns
Type
Description
string

{string} Resource name string.

projectAgentSessionEntityTypePath(project, session, entityType)

  projectAgentSessionEntityTypePath 
 ( 
 project 
 : 
  
 string 
 , 
  
 session 
 : 
  
 string 
 , 
  
 entityType 
 : 
  
 string 
 ) 
 : 
  
 string 
 ; 
 

Return a fully-qualified projectAgentSessionEntityType resource name string.

Parameters
Name
Description
project
string
session
string
entityType
string
Returns
Type
Description
string

{string} Resource name string.

projectAgentVersionPath(project, version)

  projectAgentVersionPath 
 ( 
 project 
 : 
  
 string 
 , 
  
 version 
 : 
  
 string 
 ) 
 : 
  
 string 
 ; 
 

Return a fully-qualified projectAgentVersion resource name string.

Parameters
Name
Description
project
string
version
string
Returns
Type
Description
string

{string} Resource name string.

projectAnswerRecordPath(project, answerRecord)

  projectAnswerRecordPath 
 ( 
 project 
 : 
  
 string 
 , 
  
 answerRecord 
 : 
  
 string 
 ) 
 : 
  
 string 
 ; 
 

Return a fully-qualified projectAnswerRecord resource name string.

Parameters
Name
Description
project
string
answerRecord
string
Returns
Type
Description
string

{string} Resource name string.

projectConversationMessagePath(project, conversation, message)

  projectConversationMessagePath 
 ( 
 project 
 : 
  
 string 
 , 
  
 conversation 
 : 
  
 string 
 , 
  
 message 
 : 
  
 string 
 ) 
 : 
  
 string 
 ; 
 

Return a fully-qualified projectConversationMessage resource name string.

Parameters
Name
Description
project
string
conversation
string
message
string
Returns
Type
Description
string

{string} Resource name string.

projectConversationParticipantPath(project, conversation, participant)

  projectConversationParticipantPath 
 ( 
 project 
 : 
  
 string 
 , 
  
 conversation 
 : 
  
 string 
 , 
  
 participant 
 : 
  
 string 
 ) 
 : 
  
 string 
 ; 
 

Return a fully-qualified projectConversationParticipant resource name string.

Parameters
Name
Description
project
string
conversation
string
participant
string
Returns
Type
Description
string

{string} Resource name string.

projectConversationPath(project, conversation)

  projectConversationPath 
 ( 
 project 
 : 
  
 string 
 , 
  
 conversation 
 : 
  
 string 
 ) 
 : 
  
 string 
 ; 
 

Return a fully-qualified projectConversation resource name string.

Parameters
Name
Description
project
string
conversation
string
Returns
Type
Description
string

{string} Resource name string.

projectConversationProfilePath(project, conversationProfile)

  projectConversationProfilePath 
 ( 
 project 
 : 
  
 string 
 , 
  
 conversationProfile 
 : 
  
 string 
 ) 
 : 
  
 string 
 ; 
 

Return a fully-qualified projectConversationProfile resource name string.

Parameters
Name
Description
project
string
conversationProfile
string
Returns
Type
Description
string

{string} Resource name string.

projectKnowledgeBaseDocumentPath(project, knowledgeBase, document)

  projectKnowledgeBaseDocumentPath 
 ( 
 project 
 : 
  
 string 
 , 
  
 knowledgeBase 
 : 
  
 string 
 , 
  
 document 
 : 
  
 string 
 ) 
 : 
  
 string 
 ; 
 

Return a fully-qualified projectKnowledgeBaseDocument resource name string.

Parameters
Name
Description
project
string
knowledgeBase
string
document
string
Returns
Type
Description
string

{string} Resource name string.

projectKnowledgeBasePath(project, knowledgeBase)

  projectKnowledgeBasePath 
 ( 
 project 
 : 
  
 string 
 , 
  
 knowledgeBase 
 : 
  
 string 
 ) 
 : 
  
 string 
 ; 
 

Return a fully-qualified projectKnowledgeBase resource name string.

Parameters
Name
Description
project
string
knowledgeBase
string
Returns
Type
Description
string

{string} Resource name string.

projectLocationAgentEntityTypePath(project, location, entityType)

  projectLocationAgentEntityTypePath 
 ( 
 project 
 : 
  
 string 
 , 
  
 location 
 : 
  
 string 
 , 
  
 entityType 
 : 
  
 string 
 ) 
 : 
  
 string 
 ; 
 

Return a fully-qualified projectLocationAgentEntityType resource name string.

Parameters
Name
Description
project
string
location
string
entityType
string
Returns
Type
Description
string

{string} Resource name string.

projectLocationAgentEnvironmentPath(project, location, environment)

  projectLocationAgentEnvironmentPath 
 ( 
 project 
 : 
  
 string 
 , 
  
 location 
 : 
  
 string 
 , 
  
 environment 
 : 
  
 string 
 ) 
 : 
  
 string 
 ; 
 

Return a fully-qualified projectLocationAgentEnvironment resource name string.

Parameters
Name
Description
project
string
location
string
environment
string
Returns
Type
Description
string

{string} Resource name string.

projectLocationAgentEnvironmentUserSessionContextPath(project, location, environment, user, session, context)

  projectLocationAgentEnvironmentUserSessionContextPath 
 ( 
 project 
 : 
  
 string 
 , 
  
 location 
 : 
  
 string 
 , 
  
 environment 
 : 
  
 string 
 , 
  
 user 
 : 
  
 string 
 , 
  
 session 
 : 
  
 string 
 , 
  
 context 
 : 
  
 string 
 ) 
 : 
  
 string 
 ; 
 

Return a fully-qualified projectLocationAgentEnvironmentUserSessionContext resource name string.

Parameters
Name
Description
project
string
location
string
environment
string
user
string
session
string
context
string
Returns
Type
Description
string

{string} Resource name string.

projectLocationAgentEnvironmentUserSessionEntityTypePath(project, location, environment, user, session, entityType)

  projectLocationAgentEnvironmentUserSessionEntityTypePath 
 ( 
 project 
 : 
  
 string 
 , 
  
 location 
 : 
  
 string 
 , 
  
 environment 
 : 
  
 string 
 , 
  
 user 
 : 
  
 string 
 , 
  
 session 
 : 
  
 string 
 , 
  
 entityType 
 : 
  
 string 
 ) 
 : 
  
 string 
 ; 
 

Return a fully-qualified projectLocationAgentEnvironmentUserSessionEntityType resource name string.

Parameters
Name
Description
project
string
location
string
environment
string
user
string
session
string
entityType
string
Returns
Type
Description
string

{string} Resource name string.

projectLocationAgentFulfillmentPath(project, location)

  projectLocationAgentFulfillmentPath 
 ( 
 project 
 : 
  
 string 
 , 
  
 location 
 : 
  
 string 
 ) 
 : 
  
 string 
 ; 
 

Return a fully-qualified projectLocationAgentFulfillment resource name string.

Parameters
Name
Description
project
string
location
string
Returns
Type
Description
string

{string} Resource name string.

projectLocationAgentIntentPath(project, location, intent)

  projectLocationAgentIntentPath 
 ( 
 project 
 : 
  
 string 
 , 
  
 location 
 : 
  
 string 
 , 
  
 intent 
 : 
  
 string 
 ) 
 : 
  
 string 
 ; 
 

Return a fully-qualified projectLocationAgentIntent resource name string.

Parameters
Name
Description
project
string
location
string
intent
string
Returns
Type
Description
string

{string} Resource name string.

projectLocationAgentPath(project, location)

  projectLocationAgentPath 
 ( 
 project 
 : 
  
 string 
 , 
  
 location 
 : 
  
 string 
 ) 
 : 
  
 string 
 ; 
 

Return a fully-qualified projectLocationAgent resource name string.

Parameters
Name
Description
project
string
location
string
Returns
Type
Description
string

{string} Resource name string.

projectLocationAgentSessionContextPath(project, location, session, context)

  projectLocationAgentSessionContextPath 
 ( 
 project 
 : 
  
 string 
 , 
  
 location 
 : 
  
 string 
 , 
  
 session 
 : 
  
 string 
 , 
  
 context 
 : 
  
 string 
 ) 
 : 
  
 string 
 ; 
 

Return a fully-qualified projectLocationAgentSessionContext resource name string.

Parameters
Name
Description
project
string
location
string
session
string
context
string
Returns
Type
Description
string

{string} Resource name string.

projectLocationAgentSessionEntityTypePath(project, location, session, entityType)

  projectLocationAgentSessionEntityTypePath 
 ( 
 project 
 : 
  
 string 
 , 
  
 location 
 : 
  
 string 
 , 
  
 session 
 : 
  
 string 
 , 
  
 entityType 
 : 
  
 string 
 ) 
 : 
  
 string 
 ; 
 

Return a fully-qualified projectLocationAgentSessionEntityType resource name string.

Parameters
Name
Description
project
string
location
string
session
string
entityType
string
Returns
Type
Description
string

{string} Resource name string.

projectLocationAgentVersionPath(project, location, version)

  projectLocationAgentVersionPath 
 ( 
 project 
 : 
  
 string 
 , 
  
 location 
 : 
  
 string 
 , 
  
 version 
 : 
  
 string 
 ) 
 : 
  
 string 
 ; 
 

Return a fully-qualified projectLocationAgentVersion resource name string.

Parameters
Name
Description
project
string
location
string
version
string
Returns
Type
Description
string

{string} Resource name string.

projectLocationAnswerRecordPath(project, location, answerRecord)

  projectLocationAnswerRecordPath 
 ( 
 project 
 : 
  
 string 
 , 
  
 location 
 : 
  
 string 
 , 
  
 answerRecord 
 : 
  
 string 
 ) 
 : 
  
 string 
 ; 
 

Return a fully-qualified projectLocationAnswerRecord resource name string.

Parameters
Name
Description
project
string
location
string
answerRecord
string
Returns
Type
Description
string

{string} Resource name string.

projectLocationConversationMessagePath(project, location, conversation, message)

  projectLocationConversationMessagePath 
 ( 
 project 
 : 
  
 string 
 , 
  
 location 
 : 
  
 string 
 , 
  
 conversation 
 : 
  
 string 
 , 
  
 message 
 : 
  
 string 
 ) 
 : 
  
 string 
 ; 
 

Return a fully-qualified projectLocationConversationMessage resource name string.

Parameters
Name
Description
project
string
location
string
conversation
string
message
string
Returns
Type
Description
string

{string} Resource name string.

projectLocationConversationParticipantPath(project, location, conversation, participant)

  projectLocationConversationParticipantPath 
 ( 
 project 
 : 
  
 string 
 , 
  
 location 
 : 
  
 string 
 , 
  
 conversation 
 : 
  
 string 
 , 
  
 participant 
 : 
  
 string 
 ) 
 : 
  
 string 
 ; 
 

Return a fully-qualified projectLocationConversationParticipant resource name string.

Parameters
Name
Description
project
string
location
string
conversation
string
participant
string
Returns
Type
Description
string

{string} Resource name string.

projectLocationConversationPath(project, location, conversation)

  projectLocationConversationPath 
 ( 
 project 
 : 
  
 string 
 , 
  
 location 
 : 
  
 string 
 , 
  
 conversation 
 : 
  
 string 
 ) 
 : 
  
 string 
 ; 
 

Return a fully-qualified projectLocationConversation resource name string.

Parameters
Name
Description
project
string
location
string
conversation
string
Returns
Type
Description
string

{string} Resource name string.

projectLocationConversationProfilePath(project, location, conversationProfile)

  projectLocationConversationProfilePath 
 ( 
 project 
 : 
  
 string 
 , 
  
 location 
 : 
  
 string 
 , 
  
 conversationProfile 
 : 
  
 string 
 ) 
 : 
  
 string 
 ; 
 

Return a fully-qualified projectLocationConversationProfile resource name string.

Parameters
Name
Description
project
string
location
string
conversationProfile
string
Returns
Type
Description
string

{string} Resource name string.

projectLocationKnowledgeBaseDocumentPath(project, location, knowledgeBase, document)

  projectLocationKnowledgeBaseDocumentPath 
 ( 
 project 
 : 
  
 string 
 , 
  
 location 
 : 
  
 string 
 , 
  
 knowledgeBase 
 : 
  
 string 
 , 
  
 document 
 : 
  
 string 
 ) 
 : 
  
 string 
 ; 
 

Return a fully-qualified projectLocationKnowledgeBaseDocument resource name string.

Parameters
Name
Description
project
string
location
string
knowledgeBase
string
document
string
Returns
Type
Description
string

{string} Resource name string.

projectLocationKnowledgeBasePath(project, location, knowledgeBase)

  projectLocationKnowledgeBasePath 
 ( 
 project 
 : 
  
 string 
 , 
  
 location 
 : 
  
 string 
 , 
  
 knowledgeBase 
 : 
  
 string 
 ) 
 : 
  
 string 
 ; 
 

Return a fully-qualified projectLocationKnowledgeBase resource name string.

Parameters
Name
Description
project
string
location
string
knowledgeBase
string
Returns
Type
Description
string

{string} Resource name string.

projectPath(project)

  projectPath 
 ( 
 project 
 : 
  
 string 
 ) 
 : 
  
 string 
 ; 
 

Return a fully-qualified project resource name string.

Parameter
Name
Description
project
string
Returns
Type
Description
string

{string} Resource name string.

restoreAgent(request, options)

  restoreAgent 
 ( 
 request 
 ?: 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 IRestoreAgentRequest 
 , 
  
 options 
 ?: 
  
 CallOptions 
 ) 
 : 
  
 Promise 
< [ 
  
 LROperation<protos 
 . 
 google 
 . 
 protobuf 
 . 
 IEmpty 
 , 
  
 protos 
 . 
 google 
 . 
 protobuf 
 . 
 IStruct 
> , 
  
 protos 
 . 
 google 
 . 
 longrunning 
 . 
 IOperation 
  
 | 
  
 undefined 
 , 
  
 {} 
  
 | 
  
 undefined 
  
 ]>; 
 

Restores the specified agent from a ZIP file.

Replaces the current agent version with a new one. All the intents and entity types in the older version are deleted. After the restore, the restored draft agent will be trained automatically (unless disabled in agent settings). However, once the restore is done, training may not be completed yet. Please call and wait for the operation it returns in order to train explicitly.

This method is a [long-running operation]( https://cloud.google.com/dialogflow/es/docs/how/long-running-operations ). The returned Operation type has the following method-specific fields:

  • metadata : An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - response : An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)

The operation only tracks when restoring is complete, not when it is done training.

Note: You should always train an agent prior to sending it queries. See the [training documentation]( https://cloud.google.com/dialogflow/es/docs/training ).

Parameters
Name
Description
request
protos. google.cloud.dialogflow.v2beta1.IRestoreAgentRequest

The request object that will be sent.

options
CallOptions

Call options. See CallOptions for more details.

Returns
Type
Description
Promise <[ LROperation <protos. google.protobuf.IEmpty , protos. google.protobuf.IStruct >, protos. google.longrunning.IOperation | undefined, {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its promise() method returns a promise you can await for. Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) for more details and examples.

Example
   
 /** 
 * This snippet has been automatically generated and should be regarded as a code template only. 
 * It will require modifications to work. 
 * It may require correct/in-range values for request initialization. 
 * TODO(developer): Uncomment these variables before running the sample. 
 */ 
  
 /** 
  
 * 
  
 Required 
 . 
  
 The 
  
 project 
  
 that 
  
 the 
  
 agent 
  
 to 
  
 restore 
  
 is 
  
 associated 
  
 with 
 . 
  
 * 
  
 Format 
 : 
  
 `projects/ 
 

restoreAgent(request, options, callback)

  restoreAgent 
 ( 
 request 
 : 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 IRestoreAgentRequest 
 , 
  
 options 
 : 
  
 CallOptions 
 , 
  
 callback 
 : 
  
 Callback<LROperation<protos 
 . 
 google 
 . 
 protobuf 
 . 
 IEmpty 
 , 
  
 protos 
 . 
 google 
 . 
 protobuf 
 . 
 IStruct 
> , 
  
 protos 
 . 
 google 
 . 
 longrunning 
 . 
 IOperation 
  
 | 
  
 null 
  
 | 
  
 undefined 
 , 
  
 {} 
  
 | 
  
 null 
  
 | 
  
 undefined 
> ) 
 : 
  
 void 
 ; 
 
Parameters
Name
Description
request
protos. google.cloud.dialogflow.v2beta1.IRestoreAgentRequest
options
CallOptions
callback
Callback < LROperation <protos. google.protobuf.IEmpty , protos. google.protobuf.IStruct >, protos. google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type
Description
void

restoreAgent(request, callback)

  restoreAgent 
 ( 
 request 
 : 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 IRestoreAgentRequest 
 , 
  
 callback 
 : 
  
 Callback<LROperation<protos 
 . 
 google 
 . 
 protobuf 
 . 
 IEmpty 
 , 
  
 protos 
 . 
 google 
 . 
 protobuf 
 . 
 IStruct 
> , 
  
 protos 
 . 
 google 
 . 
 longrunning 
 . 
 IOperation 
  
 | 
  
 null 
  
 | 
  
 undefined 
 , 
  
 {} 
  
 | 
  
 null 
  
 | 
  
 undefined 
> ) 
 : 
  
 void 
 ; 
 
Parameters
Name
Description
request
protos. google.cloud.dialogflow.v2beta1.IRestoreAgentRequest
callback
Callback < LROperation <protos. google.protobuf.IEmpty , protos. google.protobuf.IStruct >, protos. google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type
Description
void

searchAgents(request, options)

  searchAgents 
 ( 
 request 
 ?: 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 ISearchAgentsRequest 
 , 
  
 options 
 ?: 
  
 CallOptions 
 ) 
 : 
  
 Promise 
< [ 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 IAgent 
 [], 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 ISearchAgentsRequest 
  
 | 
  
 null 
 , 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 ISearchAgentsResponse 
  
 ]>; 
 

Returns the list of agents. Since there is at most one conversational agent per project, this method is useful primarily for listing all agents across projects the caller has access to. One can achieve that with a wildcard project collection id "-". Refer to [List Sub-Collections](https://cloud.google.com/apis/design/design_patterns#list_sub-collections).

Parameters
Name
Description
request
protos. google.cloud.dialogflow.v2beta1.ISearchAgentsRequest

The request object that will be sent.

options
CallOptions

Call options. See CallOptions for more details.

Returns
Type
Description
Promise <[ protos. google.cloud.dialogflow.v2beta1.IAgent [], protos. google.cloud.dialogflow.v2beta1.ISearchAgentsRequest | null, protos. google.cloud.dialogflow.v2beta1.ISearchAgentsResponse ]>

{Promise} - The promise which resolves to an array. The first element of the array is Array of . 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 searchAgentsAsync() 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.

searchAgents(request, options, callback)

  searchAgents 
 ( 
 request 
 : 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 ISearchAgentsRequest 
 , 
  
 options 
 : 
  
 CallOptions 
 , 
  
 callback 
 : 
  
 PaginationCallback<protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 ISearchAgentsRequest 
 , 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 ISearchAgentsResponse 
  
 | 
  
 null 
  
 | 
  
 undefined 
 , 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 IAgent 
> ) 
 : 
  
 void 
 ; 
 
Parameters
Name
Description
request
protos. google.cloud.dialogflow.v2beta1.ISearchAgentsRequest
options
CallOptions
callback
PaginationCallback <protos. google.cloud.dialogflow.v2beta1.ISearchAgentsRequest , protos. google.cloud.dialogflow.v2beta1.ISearchAgentsResponse | null | undefined, protos. google.cloud.dialogflow.v2beta1.IAgent >
Returns
Type
Description
void

searchAgents(request, callback)

  searchAgents 
 ( 
 request 
 : 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 ISearchAgentsRequest 
 , 
  
 callback 
 : 
  
 PaginationCallback<protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 ISearchAgentsRequest 
 , 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 ISearchAgentsResponse 
  
 | 
  
 null 
  
 | 
  
 undefined 
 , 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 IAgent 
> ) 
 : 
  
 void 
 ; 
 
Parameters
Name
Description
request
protos. google.cloud.dialogflow.v2beta1.ISearchAgentsRequest
callback
PaginationCallback <protos. google.cloud.dialogflow.v2beta1.ISearchAgentsRequest , protos. google.cloud.dialogflow.v2beta1.ISearchAgentsResponse | null | undefined, protos. google.cloud.dialogflow.v2beta1.IAgent >
Returns
Type
Description
void

searchAgentsAsync(request, options)

  searchAgentsAsync 
 ( 
 request 
 ?: 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 ISearchAgentsRequest 
 , 
  
 options 
 ?: 
  
 CallOptions 
 ) 
 : 
  
 AsyncIterable<protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 IAgent 
> ; 
 

Equivalent to searchAgents , but returns an iterable object.

for - await - of syntax is used with the iterable to get response elements on-demand.

Parameters
Name
Description
request
protos. google.cloud.dialogflow.v2beta1.ISearchAgentsRequest

The request object that will be sent.

options
CallOptions

Call options. See CallOptions for more details.

Returns
Type
Description
AsyncIterable <protos. google.cloud.dialogflow.v2beta1.IAgent >

{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 . 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
   
 /** 
 * This snippet has been automatically generated and should be regarded as a code template only. 
 * It will require modifications to work. 
 * It may require correct/in-range values for request initialization. 
 * TODO(developer): Uncomment these variables before running the sample. 
 */ 
  
 /** 
  
 * 
  
 Required 
 . 
  
 The 
  
 project 
  
 to 
  
 list 
  
 agents 
  
 from 
 . 
  
 * 
  
 Format 
 : 
  
 `projects/ 
 

searchAgentsStream(request, options)

  searchAgentsStream 
 ( 
 request 
 ?: 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 ISearchAgentsRequest 
 , 
  
 options 
 ?: 
  
 CallOptions 
 ) 
 : 
  
 Transform 
 ; 
 

Equivalent to method.name.toCamelCase() , but returns a NodeJS Stream object.

Parameters
Name
Description
request
protos. google.cloud.dialogflow.v2beta1.ISearchAgentsRequest

The request object that will be sent.

options
CallOptions

Call options. See CallOptions for more details.

Returns
Type
Description
Transform

{Stream} An object stream which emits an object representing 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 searchAgentsAsync() 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.

setAgent(request, options)

  setAgent 
 ( 
 request 
 ?: 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 ISetAgentRequest 
 , 
  
 options 
 ?: 
  
 CallOptions 
 ) 
 : 
  
 Promise 
< [ 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 IAgent 
 , 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 ISetAgentRequest 
  
 | 
  
 undefined 
 , 
  
 {} 
  
 | 
  
 undefined 
  
 ]>; 
 

Creates/updates the specified agent.

Note: You should always train an agent prior to sending it queries. See the [training documentation]( https://cloud.google.com/dialogflow/es/docs/training ).

Parameters
Name
Description
request
protos. google.cloud.dialogflow.v2beta1.ISetAgentRequest

The request object that will be sent.

options
CallOptions

Call options. See CallOptions for more details.

Returns
Type
Description
Promise <[ protos. google.cloud.dialogflow.v2beta1.IAgent , protos. google.cloud.dialogflow.v2beta1.ISetAgentRequest | undefined, {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing . Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) for more details and examples.

Example
   
 /** 
 * This snippet has been automatically generated and should be regarded as a code template only. 
 * It will require modifications to work. 
 * It may require correct/in-range values for request initialization. 
 * TODO(developer): Uncomment these variables before running the sample. 
 */ 
  
 /** 
 *  Required. The agent to update. 
 */ 
  
 // const agent = {} 
  
 /** 
 *  Optional. The mask to control which fields get updated. 
 */ 
  
 // const updateMask = {} 
  
 // Imports the Dialogflow library 
  
 const 
  
 { 
 AgentsClient 
 } 
  
 = 
  
 require 
 ( 
 ' @google-cloud/dialogflow 
' 
 ). 
 v2beta1 
 ; 
  
 // Instantiates a client 
  
 const 
  
 dialogflowClient 
  
 = 
  
 new 
  
  AgentsClient 
 
 (); 
  
 async 
  
 function 
  
 callSetAgent 
 () 
  
 { 
  
 // Construct request 
  
 const 
  
 request 
  
 = 
  
 { 
  
 agent 
 , 
  
 }; 
  
 // Run request 
  
 const 
  
 response 
  
 = 
  
 await 
  
 dialogflowClient 
 . 
 setAgent 
 ( 
 request 
 ); 
  
 console 
 . 
 log 
 ( 
 response 
 ); 
  
 } 
  
 callSetAgent 
 (); 
 

setAgent(request, options, callback)

  setAgent 
 ( 
 request 
 : 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 ISetAgentRequest 
 , 
  
 options 
 : 
  
 CallOptions 
 , 
  
 callback 
 : 
  
 Callback<protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 IAgent 
 , 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 ISetAgentRequest 
  
 | 
  
 null 
  
 | 
  
 undefined 
 , 
  
 {} 
  
 | 
  
 null 
  
 | 
  
 undefined 
> ) 
 : 
  
 void 
 ; 
 
Parameters
Name
Description
request
protos. google.cloud.dialogflow.v2beta1.ISetAgentRequest
options
CallOptions
callback
Callback <protos. google.cloud.dialogflow.v2beta1.IAgent , protos. google.cloud.dialogflow.v2beta1.ISetAgentRequest | null | undefined, {} | null | undefined>
Returns
Type
Description
void

setAgent(request, callback)

  setAgent 
 ( 
 request 
 : 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 ISetAgentRequest 
 , 
  
 callback 
 : 
  
 Callback<protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 IAgent 
 , 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 ISetAgentRequest 
  
 | 
  
 null 
  
 | 
  
 undefined 
 , 
  
 {} 
  
 | 
  
 null 
  
 | 
  
 undefined 
> ) 
 : 
  
 void 
 ; 
 
Parameters
Name
Description
request
protos. google.cloud.dialogflow.v2beta1.ISetAgentRequest
callback
Callback <protos. google.cloud.dialogflow.v2beta1.IAgent , protos. google.cloud.dialogflow.v2beta1.ISetAgentRequest | null | undefined, {} | null | undefined>
Returns
Type
Description
void

trainAgent(request, options)

  trainAgent 
 ( 
 request 
 ?: 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 ITrainAgentRequest 
 , 
  
 options 
 ?: 
  
 CallOptions 
 ) 
 : 
  
 Promise 
< [ 
  
 LROperation<protos 
 . 
 google 
 . 
 protobuf 
 . 
 IEmpty 
 , 
  
 protos 
 . 
 google 
 . 
 protobuf 
 . 
 IStruct 
> , 
  
 protos 
 . 
 google 
 . 
 longrunning 
 . 
 IOperation 
  
 | 
  
 undefined 
 , 
  
 {} 
  
 | 
  
 undefined 
  
 ]>; 
 

Trains the specified agent.

This method is a [long-running operation]( https://cloud.google.com/dialogflow/es/docs/how/long-running-operations ). The returned Operation type has the following method-specific fields:

  • metadata : An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - response : An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)

Note: You should always train an agent prior to sending it queries. See the [training documentation]( https://cloud.google.com/dialogflow/es/docs/training ).

Parameters
Name
Description
request
protos. google.cloud.dialogflow.v2beta1.ITrainAgentRequest

The request object that will be sent.

options
CallOptions

Call options. See CallOptions for more details.

Returns
Type
Description
Promise <[ LROperation <protos. google.protobuf.IEmpty , protos. google.protobuf.IStruct >, protos. google.longrunning.IOperation | undefined, {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its promise() method returns a promise you can await for. Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) for more details and examples.

Example
   
 /** 
 * This snippet has been automatically generated and should be regarded as a code template only. 
 * It will require modifications to work. 
 * It may require correct/in-range values for request initialization. 
 * TODO(developer): Uncomment these variables before running the sample. 
 */ 
  
 /** 
  
 * 
  
 Required 
 . 
  
 The 
  
 project 
  
 that 
  
 the 
  
 agent 
  
 to 
  
 train 
  
 is 
  
 associated 
  
 with 
 . 
  
 * 
  
 Format 
 : 
  
 `projects/ 
 

trainAgent(request, options, callback)

  trainAgent 
 ( 
 request 
 : 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 ITrainAgentRequest 
 , 
  
 options 
 : 
  
 CallOptions 
 , 
  
 callback 
 : 
  
 Callback<LROperation<protos 
 . 
 google 
 . 
 protobuf 
 . 
 IEmpty 
 , 
  
 protos 
 . 
 google 
 . 
 protobuf 
 . 
 IStruct 
> , 
  
 protos 
 . 
 google 
 . 
 longrunning 
 . 
 IOperation 
  
 | 
  
 null 
  
 | 
  
 undefined 
 , 
  
 {} 
  
 | 
  
 null 
  
 | 
  
 undefined 
> ) 
 : 
  
 void 
 ; 
 
Parameters
Name
Description
request
protos. google.cloud.dialogflow.v2beta1.ITrainAgentRequest
options
CallOptions
callback
Callback < LROperation <protos. google.protobuf.IEmpty , protos. google.protobuf.IStruct >, protos. google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type
Description
void

trainAgent(request, callback)

  trainAgent 
 ( 
 request 
 : 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dialogflow 
 . 
 v2beta1 
 . 
 ITrainAgentRequest 
 , 
  
 callback 
 : 
  
 Callback<LROperation<protos 
 . 
 google 
 . 
 protobuf 
 . 
 IEmpty 
 , 
  
 protos 
 . 
 google 
 . 
 protobuf 
 . 
 IStruct 
> , 
  
 protos 
 . 
 google 
 . 
 longrunning 
 . 
 IOperation 
  
 | 
  
 null 
  
 | 
  
 undefined 
 , 
  
 {} 
  
 | 
  
 null 
  
 | 
  
 undefined 
> ) 
 : 
  
 void 
 ; 
 
Parameters
Name
Description
request
protos. google.cloud.dialogflow.v2beta1.ITrainAgentRequest
callback
Callback < LROperation <protos. google.protobuf.IEmpty , protos. google.protobuf.IStruct >, protos. google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type
Description
void
Design a Mobile Site
View Site in Mobile | Classic
Share by: