Service for managing . v2
Package
@google-cloud/dialogflow!
Constructors
(constructor)(opts)
constructor(opts?: ClientOptions);
Construct an instance of AgentsClient.
Parameter
Name | Description |
opts |
ClientOptions
|
Properties
agentsStub
agentsStub?: Promise<{
[name: string]: Function;
}>;
Property Value
Type | Description |
Promise<{
[name: string]: Function;
}> | |
apiEndpoint
static get apiEndpoint(): string;
The DNS address for this API service - same as servicePath(), exists for compatibility reasons.
Property Value
auth
Property Value
Type | Description |
gax.GoogleAuth | |
descriptors
descriptors: Descriptors;
Property Value
Type | Description |
Descriptors | |
innerApiCalls
innerApiCalls: {
[name: string]: Function;
};
Property Value
Type | Description |
{
[name: string]: Function;
} | |
operationsClient
operationsClient: gax.OperationsClient;
Property Value
Type | Description |
gax.OperationsClient | |
pathTemplates
pathTemplates: {
[name: string]: gax.PathTemplate;
};
Property Value
Type | Description |
{
[name: string]: gax.PathTemplate;
} | |
port
static get port(): number;
The port for this API service.
Property Value
scopes
static get scopes(): string[];
The scopes needed to make gRPC calls for every method defined in this service.
Property Value
servicePath
static get servicePath(): string;
The DNS address for this API service.
Property Value
Methods
agentPath(project)
agentPath(project: string): string;
Return a fully-qualified agent resource name string.
Parameter
Name | Description |
project |
string
|
Returns
Type | Description |
string | {string} Resource name string.
|
checkExportAgentProgress(name)
checkExportAgentProgress(name: string): Promise<LROperation<protos.google.cloud.dialogflow.v2.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.v2.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.
|
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.
|
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.
|
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.
|
close()
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.v2.IDeleteAgentRequest, options?: CallOptions): Promise<[protos.google.protobuf.IEmpty, protos.google.cloud.dialogflow.v2.IDeleteAgentRequest | undefined, {} | undefined]>;
Parameters
Name | Description |
request |
protos.google.cloud.dialogflow.v2.IDeleteAgentRequest
|
options |
CallOptions
|
Returns
Type | Description |
Promise<[protos.google.protobuf.IEmpty, protos.google.cloud.dialogflow.v2.IDeleteAgentRequest | undefined, {} | undefined]> | |
deleteAgent(request, options, callback)
deleteAgent(request: protos.google.cloud.dialogflow.v2.IDeleteAgentRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.google.cloud.dialogflow.v2.IDeleteAgentRequest | null | undefined, {} | null | undefined>): void;
Parameters
Name | Description |
request |
protos.google.cloud.dialogflow.v2.IDeleteAgentRequest
|
options |
CallOptions
|
callback |
Callback<protos.google.protobuf.IEmpty, protos.google.cloud.dialogflow.v2.IDeleteAgentRequest | null | undefined, {} | null | undefined>
|
Returns
deleteAgent(request, callback)
deleteAgent(request: protos.google.cloud.dialogflow.v2.IDeleteAgentRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.google.cloud.dialogflow.v2.IDeleteAgentRequest | null | undefined, {} | null | undefined>): void;
Parameters
Name | Description |
request |
protos.google.cloud.dialogflow.v2.IDeleteAgentRequest
|
callback |
Callback<protos.google.protobuf.IEmpty, protos.google.cloud.dialogflow.v2.IDeleteAgentRequest | null | undefined, {} | null | undefined>
|
Returns
entityTypePath(project, entityType)
entityTypePath(project: string, entityType: string): string;
Return a fully-qualified entityType resource name string.
Parameters
Name | Description |
project |
string
|
entityType |
string
|
Returns
Type | Description |
string | {string} Resource name string.
|
environmentPath(project, environment)
environmentPath(project: string, environment: string): string;
Return a fully-qualified environment resource name string.
Parameters
Name | Description |
project |
string
|
environment |
string
|
Returns
Type | Description |
string | {string} Resource name string.
|
exportAgent(request, options)
exportAgent(request: protos.google.cloud.dialogflow.v2.IExportAgentRequest, options?: CallOptions): Promise<[LROperation<protos.google.cloud.dialogflow.v2.IExportAgentResponse, protos.google.protobuf.IStruct>, protos.google.longrunning.IOperation | undefined, {} | undefined]>;
Parameters
Name | Description |
request |
protos.google.cloud.dialogflow.v2.IExportAgentRequest
|
options |
CallOptions
|
Returns
Type | Description |
Promise<[LROperation<protos.google.cloud.dialogflow.v2.IExportAgentResponse, protos.google.protobuf.IStruct>, protos.google.longrunning.IOperation | undefined, {} | undefined]> | |
exportAgent(request, options, callback)
exportAgent(request: protos.google.cloud.dialogflow.v2.IExportAgentRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.dialogflow.v2.IExportAgentResponse, protos.google.protobuf.IStruct>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name | Description |
request |
protos.google.cloud.dialogflow.v2.IExportAgentRequest
|
options |
CallOptions
|
callback |
Callback<LROperation<protos.google.cloud.dialogflow.v2.IExportAgentResponse, protos.google.protobuf.IStruct>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
Returns
exportAgent(request, callback)
exportAgent(request: protos.google.cloud.dialogflow.v2.IExportAgentRequest, callback: Callback<LROperation<protos.google.cloud.dialogflow.v2.IExportAgentResponse, protos.google.protobuf.IStruct>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name | Description |
request |
protos.google.cloud.dialogflow.v2.IExportAgentRequest
|
callback |
Callback<LROperation<protos.google.cloud.dialogflow.v2.IExportAgentResponse, protos.google.protobuf.IStruct>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
Returns
getAgent(request, options)
getAgent(request: protos.google.cloud.dialogflow.v2.IGetAgentRequest, options?: CallOptions): Promise<[protos.google.cloud.dialogflow.v2.IAgent, protos.google.cloud.dialogflow.v2.IGetAgentRequest | undefined, {} | undefined]>;
Parameters
Name | Description |
request |
protos.google.cloud.dialogflow.v2.IGetAgentRequest
|
options |
CallOptions
|
Returns
Type | Description |
Promise<[protos.google.cloud.dialogflow.v2.IAgent, protos.google.cloud.dialogflow.v2.IGetAgentRequest | undefined, {} | undefined]> | |
getAgent(request, options, callback)
getAgent(request: protos.google.cloud.dialogflow.v2.IGetAgentRequest, options: CallOptions, callback: Callback<protos.google.cloud.dialogflow.v2.IAgent, protos.google.cloud.dialogflow.v2.IGetAgentRequest | null | undefined, {} | null | undefined>): void;
Parameters
Name | Description |
request |
protos.google.cloud.dialogflow.v2.IGetAgentRequest
|
options |
CallOptions
|
callback |
Callback<protos.google.cloud.dialogflow.v2.IAgent, protos.google.cloud.dialogflow.v2.IGetAgentRequest | null | undefined, {} | null | undefined>
|
Returns
getAgent(request, callback)
getAgent(request: protos.google.cloud.dialogflow.v2.IGetAgentRequest, callback: Callback<protos.google.cloud.dialogflow.v2.IAgent, protos.google.cloud.dialogflow.v2.IGetAgentRequest | null | undefined, {} | null | undefined>): void;
Parameters
Name | Description |
request |
protos.google.cloud.dialogflow.v2.IGetAgentRequest
|
callback |
Callback<protos.google.cloud.dialogflow.v2.IAgent, protos.google.cloud.dialogflow.v2.IGetAgentRequest | null | undefined, {} | null | undefined>
|
Returns
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
getValidationResult(request, options)
getValidationResult(request: protos.google.cloud.dialogflow.v2.IGetValidationResultRequest, options?: CallOptions): Promise<[protos.google.cloud.dialogflow.v2.IValidationResult, protos.google.cloud.dialogflow.v2.IGetValidationResultRequest | undefined, {} | undefined]>;
Parameters
Name | Description |
request |
protos.google.cloud.dialogflow.v2.IGetValidationResultRequest
|
options |
CallOptions
|
Returns
Type | Description |
Promise<[protos.google.cloud.dialogflow.v2.IValidationResult, protos.google.cloud.dialogflow.v2.IGetValidationResultRequest | undefined, {} | undefined]> | |
getValidationResult(request, options, callback)
getValidationResult(request: protos.google.cloud.dialogflow.v2.IGetValidationResultRequest, options: CallOptions, callback: Callback<protos.google.cloud.dialogflow.v2.IValidationResult, protos.google.cloud.dialogflow.v2.IGetValidationResultRequest | null | undefined, {} | null | undefined>): void;
Parameters
Name | Description |
request |
protos.google.cloud.dialogflow.v2.IGetValidationResultRequest
|
options |
CallOptions
|
callback |
Callback<protos.google.cloud.dialogflow.v2.IValidationResult, protos.google.cloud.dialogflow.v2.IGetValidationResultRequest | null | undefined, {} | null | undefined>
|
Returns
getValidationResult(request, callback)
getValidationResult(request: protos.google.cloud.dialogflow.v2.IGetValidationResultRequest, callback: Callback<protos.google.cloud.dialogflow.v2.IValidationResult, protos.google.cloud.dialogflow.v2.IGetValidationResultRequest | null | undefined, {} | null | undefined>): void;
Parameters
Name | Description |
request |
protos.google.cloud.dialogflow.v2.IGetValidationResultRequest
|
callback |
Callback<protos.google.cloud.dialogflow.v2.IValidationResult, protos.google.cloud.dialogflow.v2.IGetValidationResultRequest | null | undefined, {} | null | undefined>
|
Returns
importAgent(request, options)
importAgent(request: protos.google.cloud.dialogflow.v2.IImportAgentRequest, options?: CallOptions): Promise<[LROperation<protos.google.protobuf.IEmpty, protos.google.protobuf.IStruct>, protos.google.longrunning.IOperation | undefined, {} | undefined]>;
Parameters
Name | Description |
request |
protos.google.cloud.dialogflow.v2.IImportAgentRequest
|
options |
CallOptions
|
Returns
Type | Description |
Promise<[LROperation<protos.google.protobuf.IEmpty, protos.google.protobuf.IStruct>, protos.google.longrunning.IOperation | undefined, {} | undefined]> | |
importAgent(request, options, callback)
importAgent(request: protos.google.cloud.dialogflow.v2.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.v2.IImportAgentRequest
|
options |
CallOptions
|
callback |
Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.protobuf.IStruct>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
Returns
importAgent(request, callback)
importAgent(request: protos.google.cloud.dialogflow.v2.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.v2.IImportAgentRequest
|
callback |
Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.protobuf.IStruct>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
Returns
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.
|
intentPath(project, intent)
intentPath(project: string, intent: string): string;
Return a fully-qualified intent resource name string.
Parameters
Name | Description |
project |
string
|
intent |
string
|
Returns
Type | Description |
string | {string} Resource name string.
|
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.
|
matchEntityTypeFromEntityTypeName(entityTypeName)
matchEntityTypeFromEntityTypeName(entityTypeName: string): string | number;
Parse the entity_type from EntityType resource.
Parameter
Name | Description |
entityTypeName |
string
A fully-qualified path representing EntityType 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.
|
matchEnvironmentFromEnvironmentName(environmentName)
matchEnvironmentFromEnvironmentName(environmentName: string): string | number;
Parse the environment from Environment resource.
Parameter
Name | Description |
environmentName |
string
A fully-qualified path representing 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.
|
matchIntentFromIntentName(intentName)
matchIntentFromIntentName(intentName: string): string | number;
Parse the intent from Intent resource.
Parameter
Name | Description |
intentName |
string
A fully-qualified path representing Intent resource.
|
Returns
Type | Description |
string | number | {string} A string representing the intent.
|
matchProjectFromAgentName(agentName)
matchProjectFromAgentName(agentName: string): string | number;
Parse the project from Agent resource.
Parameter
Name | Description |
agentName |
string
A fully-qualified path representing Agent resource.
|
Returns
Type | Description |
string | number | {string} A string representing the project.
|
matchProjectFromEntityTypeName(entityTypeName)
matchProjectFromEntityTypeName(entityTypeName: string): string | number;
Parse the project from EntityType resource.
Parameter
Name | Description |
entityTypeName |
string
A fully-qualified path representing EntityType resource.
|
Returns
Type | Description |
string | number | {string} A string representing the project.
|
matchProjectFromEnvironmentName(environmentName)
matchProjectFromEnvironmentName(environmentName: string): string | number;
Parse the project from Environment resource.
Parameter
Name | Description |
environmentName |
string
A fully-qualified path representing Environment resource.
|
Returns
Type | Description |
string | number | {string} A string representing the project.
|
matchProjectFromIntentName(intentName)
matchProjectFromIntentName(intentName: string): string | number;
Parse the project from Intent resource.
Parameter
Name | Description |
intentName |
string
A fully-qualified path representing Intent 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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.v2.IRestoreAgentRequest, options?: CallOptions): Promise<[LROperation<protos.google.protobuf.IEmpty, protos.google.protobuf.IStruct>, protos.google.longrunning.IOperation | undefined, {} | undefined]>;
Parameters
Name | Description |
request |
protos.google.cloud.dialogflow.v2.IRestoreAgentRequest
|
options |
CallOptions
|
Returns
Type | Description |
Promise<[LROperation<protos.google.protobuf.IEmpty, protos.google.protobuf.IStruct>, protos.google.longrunning.IOperation | undefined, {} | undefined]> | |
restoreAgent(request, options, callback)
restoreAgent(request: protos.google.cloud.dialogflow.v2.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.v2.IRestoreAgentRequest
|
options |
CallOptions
|
callback |
Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.protobuf.IStruct>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
Returns
restoreAgent(request, callback)
restoreAgent(request: protos.google.cloud.dialogflow.v2.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.v2.IRestoreAgentRequest
|
callback |
Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.protobuf.IStruct>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
Returns
searchAgents(request, options)
searchAgents(request: protos.google.cloud.dialogflow.v2.ISearchAgentsRequest, options?: CallOptions): Promise<[protos.google.cloud.dialogflow.v2.IAgent[], protos.google.cloud.dialogflow.v2.ISearchAgentsRequest | null, protos.google.cloud.dialogflow.v2.ISearchAgentsResponse]>;
Parameters
Name | Description |
request |
protos.google.cloud.dialogflow.v2.ISearchAgentsRequest
|
options |
CallOptions
|
Returns
Type | Description |
Promise<[protos.google.cloud.dialogflow.v2.IAgent[], protos.google.cloud.dialogflow.v2.ISearchAgentsRequest | null, protos.google.cloud.dialogflow.v2.ISearchAgentsResponse]> | |
searchAgents(request, options, callback)
searchAgents(request: protos.google.cloud.dialogflow.v2.ISearchAgentsRequest, options: CallOptions, callback: PaginationCallback<protos.google.cloud.dialogflow.v2.ISearchAgentsRequest, protos.google.cloud.dialogflow.v2.ISearchAgentsResponse | null | undefined, protos.google.cloud.dialogflow.v2.IAgent>): void;
Parameters
Name | Description |
request |
protos.google.cloud.dialogflow.v2.ISearchAgentsRequest
|
options |
CallOptions
|
callback |
PaginationCallback<protos.google.cloud.dialogflow.v2.ISearchAgentsRequest, protos.google.cloud.dialogflow.v2.ISearchAgentsResponse | null | undefined, protos.google.cloud.dialogflow.v2.IAgent>
|
Returns
searchAgents(request, callback)
searchAgents(request: protos.google.cloud.dialogflow.v2.ISearchAgentsRequest, callback: PaginationCallback<protos.google.cloud.dialogflow.v2.ISearchAgentsRequest, protos.google.cloud.dialogflow.v2.ISearchAgentsResponse | null | undefined, protos.google.cloud.dialogflow.v2.IAgent>): void;
Parameters
Name | Description |
request |
protos.google.cloud.dialogflow.v2.ISearchAgentsRequest
|
callback |
PaginationCallback<protos.google.cloud.dialogflow.v2.ISearchAgentsRequest, protos.google.cloud.dialogflow.v2.ISearchAgentsResponse | null | undefined, protos.google.cloud.dialogflow.v2.IAgent>
|
Returns
searchAgentsAsync(request, options)
searchAgentsAsync(request?: protos.google.cloud.dialogflow.v2.ISearchAgentsRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.dialogflow.v2.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.v2.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.v2.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 [Agent]. 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.
|
searchAgentsStream(request, options)
searchAgentsStream(request?: protos.google.cloud.dialogflow.v2.ISearchAgentsRequest, options?: CallOptions): Transform;
Equivalent to method.name.toCamelCase()
, but returns a NodeJS Stream object.
Parameters
Name | Description |
request |
protos.google.cloud.dialogflow.v2.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 [Agent] 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.v2.ISetAgentRequest, options?: CallOptions): Promise<[protos.google.cloud.dialogflow.v2.IAgent, protos.google.cloud.dialogflow.v2.ISetAgentRequest | undefined, {} | undefined]>;
Parameters
Name | Description |
request |
protos.google.cloud.dialogflow.v2.ISetAgentRequest
|
options |
CallOptions
|
Returns
Type | Description |
Promise<[protos.google.cloud.dialogflow.v2.IAgent, protos.google.cloud.dialogflow.v2.ISetAgentRequest | undefined, {} | undefined]> | |
setAgent(request, options, callback)
setAgent(request: protos.google.cloud.dialogflow.v2.ISetAgentRequest, options: CallOptions, callback: Callback<protos.google.cloud.dialogflow.v2.IAgent, protos.google.cloud.dialogflow.v2.ISetAgentRequest | null | undefined, {} | null | undefined>): void;
Parameters
Name | Description |
request |
protos.google.cloud.dialogflow.v2.ISetAgentRequest
|
options |
CallOptions
|
callback |
Callback<protos.google.cloud.dialogflow.v2.IAgent, protos.google.cloud.dialogflow.v2.ISetAgentRequest | null | undefined, {} | null | undefined>
|
Returns
setAgent(request, callback)
setAgent(request: protos.google.cloud.dialogflow.v2.ISetAgentRequest, callback: Callback<protos.google.cloud.dialogflow.v2.IAgent, protos.google.cloud.dialogflow.v2.ISetAgentRequest | null | undefined, {} | null | undefined>): void;
Parameters
Name | Description |
request |
protos.google.cloud.dialogflow.v2.ISetAgentRequest
|
callback |
Callback<protos.google.cloud.dialogflow.v2.IAgent, protos.google.cloud.dialogflow.v2.ISetAgentRequest | null | undefined, {} | null | undefined>
|
Returns
trainAgent(request, options)
trainAgent(request: protos.google.cloud.dialogflow.v2.ITrainAgentRequest, options?: CallOptions): Promise<[LROperation<protos.google.protobuf.IEmpty, protos.google.protobuf.IStruct>, protos.google.longrunning.IOperation | undefined, {} | undefined]>;
Parameters
Name | Description |
request |
protos.google.cloud.dialogflow.v2.ITrainAgentRequest
|
options |
CallOptions
|
Returns
Type | Description |
Promise<[LROperation<protos.google.protobuf.IEmpty, protos.google.protobuf.IStruct>, protos.google.longrunning.IOperation | undefined, {} | undefined]> | |
trainAgent(request, options, callback)
trainAgent(request: protos.google.cloud.dialogflow.v2.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.v2.ITrainAgentRequest
|
options |
CallOptions
|
callback |
Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.protobuf.IStruct>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
Returns
trainAgent(request, callback)
trainAgent(request: protos.google.cloud.dialogflow.v2.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.v2.ITrainAgentRequest
|
callback |
Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.protobuf.IStruct>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
Returns