Class v2.EntityTypesClient (3.3.0)

Service for managing . v2

Package

@google-cloud/dialogflow!

Constructors

(constructor)(opts)

constructor(opts?: ClientOptions);

Construct an instance of EntityTypesClient.

Parameter
NameDescription
opts ClientOptions

Properties

apiEndpoint

static get apiEndpoint(): string;

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

Property Value
TypeDescription
string

auth

auth: gax.GoogleAuth;
Property Value
TypeDescription
gax.GoogleAuth

descriptors

descriptors: Descriptors;
Property Value
TypeDescription
Descriptors

entityTypesStub

entityTypesStub?: Promise<{
        [name: string]: Function;
    }>;
Property Value
TypeDescription
Promise<{ [name: string]: Function; }>

innerApiCalls

innerApiCalls: {
        [name: string]: Function;
    };
Property Value
TypeDescription
{ [name: string]: Function; }

operationsClient

operationsClient: gax.OperationsClient;
Property Value
TypeDescription
gax.OperationsClient

pathTemplates

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

port

static get port(): number;

The port for this API service.

Property Value
TypeDescription
number

scopes

static get scopes(): string[];

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

Property Value
TypeDescription
string[]

servicePath

static get servicePath(): string;

The DNS address for this API service.

Property Value
TypeDescription
string

Methods

agentPath(project)

agentPath(project: string): string;

Return a fully-qualified agent resource name string.

Parameter
NameDescription
project string
Returns
TypeDescription
string

{string} Resource name string.

batchCreateEntities(request, options)

batchCreateEntities(request: protos.google.cloud.dialogflow.v2.IBatchCreateEntitiesRequest, options?: CallOptions): Promise<[LROperation<protos.google.protobuf.IEmpty, protos.google.protobuf.IStruct>, protos.google.longrunning.IOperation | undefined, {} | undefined]>;
Parameters
NameDescription
request protos.google.cloud.dialogflow.v2.IBatchCreateEntitiesRequest
options CallOptions
Returns
TypeDescription
Promise<[LROperation<protos.google.protobuf.IEmpty, protos.google.protobuf.IStruct>, protos.google.longrunning.IOperation | undefined, {} | undefined]>

batchCreateEntities(request, options, callback)

batchCreateEntities(request: protos.google.cloud.dialogflow.v2.IBatchCreateEntitiesRequest, options: CallOptions, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.protobuf.IStruct>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request protos.google.cloud.dialogflow.v2.IBatchCreateEntitiesRequest
options CallOptions
callback Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.protobuf.IStruct>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

batchCreateEntities(request, callback)

batchCreateEntities(request: protos.google.cloud.dialogflow.v2.IBatchCreateEntitiesRequest, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.protobuf.IStruct>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request protos.google.cloud.dialogflow.v2.IBatchCreateEntitiesRequest
callback Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.protobuf.IStruct>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

batchDeleteEntities(request, options)

batchDeleteEntities(request: protos.google.cloud.dialogflow.v2.IBatchDeleteEntitiesRequest, options?: CallOptions): Promise<[LROperation<protos.google.protobuf.IEmpty, protos.google.protobuf.IStruct>, protos.google.longrunning.IOperation | undefined, {} | undefined]>;
Parameters
NameDescription
request protos.google.cloud.dialogflow.v2.IBatchDeleteEntitiesRequest
options CallOptions
Returns
TypeDescription
Promise<[LROperation<protos.google.protobuf.IEmpty, protos.google.protobuf.IStruct>, protos.google.longrunning.IOperation | undefined, {} | undefined]>

batchDeleteEntities(request, options, callback)

batchDeleteEntities(request: protos.google.cloud.dialogflow.v2.IBatchDeleteEntitiesRequest, options: CallOptions, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.protobuf.IStruct>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request protos.google.cloud.dialogflow.v2.IBatchDeleteEntitiesRequest
options CallOptions
callback Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.protobuf.IStruct>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

batchDeleteEntities(request, callback)

batchDeleteEntities(request: protos.google.cloud.dialogflow.v2.IBatchDeleteEntitiesRequest, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.protobuf.IStruct>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request protos.google.cloud.dialogflow.v2.IBatchDeleteEntitiesRequest
callback Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.protobuf.IStruct>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

batchDeleteEntityTypes(request, options)

batchDeleteEntityTypes(request: protos.google.cloud.dialogflow.v2.IBatchDeleteEntityTypesRequest, options?: CallOptions): Promise<[LROperation<protos.google.protobuf.IEmpty, protos.google.protobuf.IStruct>, protos.google.longrunning.IOperation | undefined, {} | undefined]>;
Parameters
NameDescription
request protos.google.cloud.dialogflow.v2.IBatchDeleteEntityTypesRequest
options CallOptions
Returns
TypeDescription
Promise<[LROperation<protos.google.protobuf.IEmpty, protos.google.protobuf.IStruct>, protos.google.longrunning.IOperation | undefined, {} | undefined]>

batchDeleteEntityTypes(request, options, callback)

batchDeleteEntityTypes(request: protos.google.cloud.dialogflow.v2.IBatchDeleteEntityTypesRequest, options: CallOptions, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.protobuf.IStruct>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request protos.google.cloud.dialogflow.v2.IBatchDeleteEntityTypesRequest
options CallOptions
callback Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.protobuf.IStruct>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

batchDeleteEntityTypes(request, callback)

batchDeleteEntityTypes(request: protos.google.cloud.dialogflow.v2.IBatchDeleteEntityTypesRequest, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.protobuf.IStruct>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request protos.google.cloud.dialogflow.v2.IBatchDeleteEntityTypesRequest
callback Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.protobuf.IStruct>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

batchUpdateEntities(request, options)

batchUpdateEntities(request: protos.google.cloud.dialogflow.v2.IBatchUpdateEntitiesRequest, options?: CallOptions): Promise<[LROperation<protos.google.protobuf.IEmpty, protos.google.protobuf.IStruct>, protos.google.longrunning.IOperation | undefined, {} | undefined]>;
Parameters
NameDescription
request protos.google.cloud.dialogflow.v2.IBatchUpdateEntitiesRequest
options CallOptions
Returns
TypeDescription
Promise<[LROperation<protos.google.protobuf.IEmpty, protos.google.protobuf.IStruct>, protos.google.longrunning.IOperation | undefined, {} | undefined]>

batchUpdateEntities(request, options, callback)

batchUpdateEntities(request: protos.google.cloud.dialogflow.v2.IBatchUpdateEntitiesRequest, options: CallOptions, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.protobuf.IStruct>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request protos.google.cloud.dialogflow.v2.IBatchUpdateEntitiesRequest
options CallOptions
callback Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.protobuf.IStruct>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

batchUpdateEntities(request, callback)

batchUpdateEntities(request: protos.google.cloud.dialogflow.v2.IBatchUpdateEntitiesRequest, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.protobuf.IStruct>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request protos.google.cloud.dialogflow.v2.IBatchUpdateEntitiesRequest
callback Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.protobuf.IStruct>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

batchUpdateEntityTypes(request, options)

batchUpdateEntityTypes(request: protos.google.cloud.dialogflow.v2.IBatchUpdateEntityTypesRequest, options?: CallOptions): Promise<[LROperation<protos.google.cloud.dialogflow.v2.IBatchUpdateEntityTypesResponse, protos.google.protobuf.IStruct>, protos.google.longrunning.IOperation | undefined, {} | undefined]>;
Parameters
NameDescription
request protos.google.cloud.dialogflow.v2.IBatchUpdateEntityTypesRequest
options CallOptions
Returns
TypeDescription
Promise<[LROperation<protos.google.cloud.dialogflow.v2.IBatchUpdateEntityTypesResponse, protos.google.protobuf.IStruct>, protos.google.longrunning.IOperation | undefined, {} | undefined]>

batchUpdateEntityTypes(request, options, callback)

batchUpdateEntityTypes(request: protos.google.cloud.dialogflow.v2.IBatchUpdateEntityTypesRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.dialogflow.v2.IBatchUpdateEntityTypesResponse, protos.google.protobuf.IStruct>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request protos.google.cloud.dialogflow.v2.IBatchUpdateEntityTypesRequest
options CallOptions
callback Callback<LROperation<protos.google.cloud.dialogflow.v2.IBatchUpdateEntityTypesResponse, protos.google.protobuf.IStruct>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

batchUpdateEntityTypes(request, callback)

batchUpdateEntityTypes(request: protos.google.cloud.dialogflow.v2.IBatchUpdateEntityTypesRequest, callback: Callback<LROperation<protos.google.cloud.dialogflow.v2.IBatchUpdateEntityTypesResponse, protos.google.protobuf.IStruct>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request protos.google.cloud.dialogflow.v2.IBatchUpdateEntityTypesRequest
callback Callback<LROperation<protos.google.cloud.dialogflow.v2.IBatchUpdateEntityTypesResponse, protos.google.protobuf.IStruct>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

checkBatchCreateEntitiesProgress(name)

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

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

Parameter
NameDescription
name string

The operation name that will be passed.

Returns
TypeDescription
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.

checkBatchDeleteEntitiesProgress(name)

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

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

Parameter
NameDescription
name string

The operation name that will be passed.

Returns
TypeDescription
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.

checkBatchDeleteEntityTypesProgress(name)

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

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

Parameter
NameDescription
name string

The operation name that will be passed.

Returns
TypeDescription
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.

checkBatchUpdateEntitiesProgress(name)

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

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

Parameter
NameDescription
name string

The operation name that will be passed.

Returns
TypeDescription
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.

checkBatchUpdateEntityTypesProgress(name)

checkBatchUpdateEntityTypesProgress(name: string): Promise<LROperation<protos.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse, protos.google.protobuf.Struct>>;

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

Parameter
NameDescription
name string

The operation name that will be passed.

Returns
TypeDescription
Promise<LROperation<protos.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse, 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()

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
TypeDescription
Promise<void>

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

createEntityType(request, options)

createEntityType(request: protos.google.cloud.dialogflow.v2.ICreateEntityTypeRequest, options?: CallOptions): Promise<[protos.google.cloud.dialogflow.v2.IEntityType, protos.google.cloud.dialogflow.v2.ICreateEntityTypeRequest | undefined, {} | undefined]>;
Parameters
NameDescription
request protos.google.cloud.dialogflow.v2.ICreateEntityTypeRequest
options CallOptions
Returns
TypeDescription
Promise<[protos.google.cloud.dialogflow.v2.IEntityType, protos.google.cloud.dialogflow.v2.ICreateEntityTypeRequest | undefined, {} | undefined]>

createEntityType(request, options, callback)

createEntityType(request: protos.google.cloud.dialogflow.v2.ICreateEntityTypeRequest, options: CallOptions, callback: Callback<protos.google.cloud.dialogflow.v2.IEntityType, protos.google.cloud.dialogflow.v2.ICreateEntityTypeRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request protos.google.cloud.dialogflow.v2.ICreateEntityTypeRequest
options CallOptions
callback Callback<protos.google.cloud.dialogflow.v2.IEntityType, protos.google.cloud.dialogflow.v2.ICreateEntityTypeRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

createEntityType(request, callback)

createEntityType(request: protos.google.cloud.dialogflow.v2.ICreateEntityTypeRequest, callback: Callback<protos.google.cloud.dialogflow.v2.IEntityType, protos.google.cloud.dialogflow.v2.ICreateEntityTypeRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request protos.google.cloud.dialogflow.v2.ICreateEntityTypeRequest
callback Callback<protos.google.cloud.dialogflow.v2.IEntityType, protos.google.cloud.dialogflow.v2.ICreateEntityTypeRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

deleteEntityType(request, options)

deleteEntityType(request: protos.google.cloud.dialogflow.v2.IDeleteEntityTypeRequest, options?: CallOptions): Promise<[protos.google.protobuf.IEmpty, protos.google.cloud.dialogflow.v2.IDeleteEntityTypeRequest | undefined, {} | undefined]>;
Parameters
NameDescription
request protos.google.cloud.dialogflow.v2.IDeleteEntityTypeRequest
options CallOptions
Returns
TypeDescription
Promise<[protos.google.protobuf.IEmpty, protos.google.cloud.dialogflow.v2.IDeleteEntityTypeRequest | undefined, {} | undefined]>

deleteEntityType(request, options, callback)

deleteEntityType(request: protos.google.cloud.dialogflow.v2.IDeleteEntityTypeRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.google.cloud.dialogflow.v2.IDeleteEntityTypeRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request protos.google.cloud.dialogflow.v2.IDeleteEntityTypeRequest
options CallOptions
callback Callback<protos.google.protobuf.IEmpty, protos.google.cloud.dialogflow.v2.IDeleteEntityTypeRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

deleteEntityType(request, callback)

deleteEntityType(request: protos.google.cloud.dialogflow.v2.IDeleteEntityTypeRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.google.cloud.dialogflow.v2.IDeleteEntityTypeRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request protos.google.cloud.dialogflow.v2.IDeleteEntityTypeRequest
callback Callback<protos.google.protobuf.IEmpty, protos.google.cloud.dialogflow.v2.IDeleteEntityTypeRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

entityTypePath(project, entityType)

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

Return a fully-qualified entityType resource name string.

Parameters
NameDescription
project string
entityType string
Returns
TypeDescription
string

{string} Resource name string.

environmentPath(project, environment)

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

Return a fully-qualified environment resource name string.

Parameters
NameDescription
project string
environment string
Returns
TypeDescription
string

{string} Resource name string.

getEntityType(request, options)

getEntityType(request: protos.google.cloud.dialogflow.v2.IGetEntityTypeRequest, options?: CallOptions): Promise<[protos.google.cloud.dialogflow.v2.IEntityType, protos.google.cloud.dialogflow.v2.IGetEntityTypeRequest | undefined, {} | undefined]>;
Parameters
NameDescription
request protos.google.cloud.dialogflow.v2.IGetEntityTypeRequest
options CallOptions
Returns
TypeDescription
Promise<[protos.google.cloud.dialogflow.v2.IEntityType, protos.google.cloud.dialogflow.v2.IGetEntityTypeRequest | undefined, {} | undefined]>

getEntityType(request, options, callback)

getEntityType(request: protos.google.cloud.dialogflow.v2.IGetEntityTypeRequest, options: CallOptions, callback: Callback<protos.google.cloud.dialogflow.v2.IEntityType, protos.google.cloud.dialogflow.v2.IGetEntityTypeRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request protos.google.cloud.dialogflow.v2.IGetEntityTypeRequest
options CallOptions
callback Callback<protos.google.cloud.dialogflow.v2.IEntityType, protos.google.cloud.dialogflow.v2.IGetEntityTypeRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

getEntityType(request, callback)

getEntityType(request: protos.google.cloud.dialogflow.v2.IGetEntityTypeRequest, callback: Callback<protos.google.cloud.dialogflow.v2.IEntityType, protos.google.cloud.dialogflow.v2.IGetEntityTypeRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request protos.google.cloud.dialogflow.v2.IGetEntityTypeRequest
callback Callback<protos.google.cloud.dialogflow.v2.IEntityType, protos.google.cloud.dialogflow.v2.IGetEntityTypeRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

getProjectId()

getProjectId(): Promise<string>;
Returns
TypeDescription
Promise<string>

getProjectId(callback)

getProjectId(callback: Callback<string, undefined, undefined>): void;
Parameter
NameDescription
callback Callback<string, undefined, undefined>
Returns
TypeDescription
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
TypeDescription
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
NameDescription
project string
intent string
Returns
TypeDescription
string

{string} Resource name string.

listEntityTypes(request, options)

listEntityTypes(request: protos.google.cloud.dialogflow.v2.IListEntityTypesRequest, options?: CallOptions): Promise<[protos.google.cloud.dialogflow.v2.IEntityType[], protos.google.cloud.dialogflow.v2.IListEntityTypesRequest | null, protos.google.cloud.dialogflow.v2.IListEntityTypesResponse]>;
Parameters
NameDescription
request protos.google.cloud.dialogflow.v2.IListEntityTypesRequest
options CallOptions
Returns
TypeDescription
Promise<[protos.google.cloud.dialogflow.v2.IEntityType[], protos.google.cloud.dialogflow.v2.IListEntityTypesRequest | null, protos.google.cloud.dialogflow.v2.IListEntityTypesResponse]>

listEntityTypes(request, options, callback)

listEntityTypes(request: protos.google.cloud.dialogflow.v2.IListEntityTypesRequest, options: CallOptions, callback: PaginationCallback<protos.google.cloud.dialogflow.v2.IListEntityTypesRequest, protos.google.cloud.dialogflow.v2.IListEntityTypesResponse | null | undefined, protos.google.cloud.dialogflow.v2.IEntityType>): void;
Parameters
NameDescription
request protos.google.cloud.dialogflow.v2.IListEntityTypesRequest
options CallOptions
callback PaginationCallback<protos.google.cloud.dialogflow.v2.IListEntityTypesRequest, protos.google.cloud.dialogflow.v2.IListEntityTypesResponse | null | undefined, protos.google.cloud.dialogflow.v2.IEntityType>
Returns
TypeDescription
void

listEntityTypes(request, callback)

listEntityTypes(request: protos.google.cloud.dialogflow.v2.IListEntityTypesRequest, callback: PaginationCallback<protos.google.cloud.dialogflow.v2.IListEntityTypesRequest, protos.google.cloud.dialogflow.v2.IListEntityTypesResponse | null | undefined, protos.google.cloud.dialogflow.v2.IEntityType>): void;
Parameters
NameDescription
request protos.google.cloud.dialogflow.v2.IListEntityTypesRequest
callback PaginationCallback<protos.google.cloud.dialogflow.v2.IListEntityTypesRequest, protos.google.cloud.dialogflow.v2.IListEntityTypesResponse | null | undefined, protos.google.cloud.dialogflow.v2.IEntityType>
Returns
TypeDescription
void

listEntityTypesAsync(request, options)

listEntityTypesAsync(request?: protos.google.cloud.dialogflow.v2.IListEntityTypesRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.dialogflow.v2.IEntityType>;

Equivalent to listEntityTypes, but returns an iterable object.

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

Parameters
NameDescription
request protos.google.cloud.dialogflow.v2.IListEntityTypesRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
AsyncIterable<protos.google.cloud.dialogflow.v2.IEntityType>

{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 [EntityType]. 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.

listEntityTypesStream(request, options)

listEntityTypesStream(request?: protos.google.cloud.dialogflow.v2.IListEntityTypesRequest, options?: CallOptions): Transform;

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

Parameters
NameDescription
request protos.google.cloud.dialogflow.v2.IListEntityTypesRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Transform

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

matchContextFromProjectAgentEnvironmentUserSessionContextName(projectAgentEnvironmentUserSessionContextName)

matchContextFromProjectAgentEnvironmentUserSessionContextName(projectAgentEnvironmentUserSessionContextName: string): string | number;

Parse the context from ProjectAgentEnvironmentUserSessionContext resource.

Parameter
NameDescription
projectAgentEnvironmentUserSessionContextName string

A fully-qualified path representing project_agent_environment_user_session_context resource.

Returns
TypeDescription
string | number

{string} A string representing the context.

matchContextFromProjectAgentSessionContextName(projectAgentSessionContextName)

matchContextFromProjectAgentSessionContextName(projectAgentSessionContextName: string): string | number;

Parse the context from ProjectAgentSessionContext resource.

Parameter
NameDescription
projectAgentSessionContextName string

A fully-qualified path representing project_agent_session_context resource.

Returns
TypeDescription
string | number

{string} A string representing the context.

matchEntityTypeFromEntityTypeName(entityTypeName)

matchEntityTypeFromEntityTypeName(entityTypeName: string): string | number;

Parse the entity_type from EntityType resource.

Parameter
NameDescription
entityTypeName string

A fully-qualified path representing EntityType resource.

Returns
TypeDescription
string | number

{string} A string representing the entity_type.

matchEntityTypeFromProjectAgentEnvironmentUserSessionEntityTypeName(projectAgentEnvironmentUserSessionEntityTypeName)

matchEntityTypeFromProjectAgentEnvironmentUserSessionEntityTypeName(projectAgentEnvironmentUserSessionEntityTypeName: string): string | number;

Parse the entity_type from ProjectAgentEnvironmentUserSessionEntityType resource.

Parameter
NameDescription
projectAgentEnvironmentUserSessionEntityTypeName string

A fully-qualified path representing project_agent_environment_user_session_entity_type resource.

Returns
TypeDescription
string | number

{string} A string representing the entity_type.

matchEntityTypeFromProjectAgentSessionEntityTypeName(projectAgentSessionEntityTypeName)

matchEntityTypeFromProjectAgentSessionEntityTypeName(projectAgentSessionEntityTypeName: string): string | number;

Parse the entity_type from ProjectAgentSessionEntityType resource.

Parameter
NameDescription
projectAgentSessionEntityTypeName string

A fully-qualified path representing project_agent_session_entity_type resource.

Returns
TypeDescription
string | number

{string} A string representing the entity_type.

matchEnvironmentFromEnvironmentName(environmentName)

matchEnvironmentFromEnvironmentName(environmentName: string): string | number;

Parse the environment from Environment resource.

Parameter
NameDescription
environmentName string

A fully-qualified path representing Environment resource.

Returns
TypeDescription
string | number

{string} A string representing the environment.

matchEnvironmentFromProjectAgentEnvironmentUserSessionContextName(projectAgentEnvironmentUserSessionContextName)

matchEnvironmentFromProjectAgentEnvironmentUserSessionContextName(projectAgentEnvironmentUserSessionContextName: string): string | number;

Parse the environment from ProjectAgentEnvironmentUserSessionContext resource.

Parameter
NameDescription
projectAgentEnvironmentUserSessionContextName string

A fully-qualified path representing project_agent_environment_user_session_context resource.

Returns
TypeDescription
string | number

{string} A string representing the environment.

matchEnvironmentFromProjectAgentEnvironmentUserSessionEntityTypeName(projectAgentEnvironmentUserSessionEntityTypeName)

matchEnvironmentFromProjectAgentEnvironmentUserSessionEntityTypeName(projectAgentEnvironmentUserSessionEntityTypeName: string): string | number;

Parse the environment from ProjectAgentEnvironmentUserSessionEntityType resource.

Parameter
NameDescription
projectAgentEnvironmentUserSessionEntityTypeName string

A fully-qualified path representing project_agent_environment_user_session_entity_type resource.

Returns
TypeDescription
string | number

{string} A string representing the environment.

matchIntentFromIntentName(intentName)

matchIntentFromIntentName(intentName: string): string | number;

Parse the intent from Intent resource.

Parameter
NameDescription
intentName string

A fully-qualified path representing Intent resource.

Returns
TypeDescription
string | number

{string} A string representing the intent.

matchProjectFromAgentName(agentName)

matchProjectFromAgentName(agentName: string): string | number;

Parse the project from Agent resource.

Parameter
NameDescription
agentName string

A fully-qualified path representing Agent resource.

Returns
TypeDescription
string | number

{string} A string representing the project.

matchProjectFromEntityTypeName(entityTypeName)

matchProjectFromEntityTypeName(entityTypeName: string): string | number;

Parse the project from EntityType resource.

Parameter
NameDescription
entityTypeName string

A fully-qualified path representing EntityType resource.

Returns
TypeDescription
string | number

{string} A string representing the project.

matchProjectFromEnvironmentName(environmentName)

matchProjectFromEnvironmentName(environmentName: string): string | number;

Parse the project from Environment resource.

Parameter
NameDescription
environmentName string

A fully-qualified path representing Environment resource.

Returns
TypeDescription
string | number

{string} A string representing the project.

matchProjectFromIntentName(intentName)

matchProjectFromIntentName(intentName: string): string | number;

Parse the project from Intent resource.

Parameter
NameDescription
intentName string

A fully-qualified path representing Intent resource.

Returns
TypeDescription
string | number

{string} A string representing the project.

matchProjectFromProjectAgentEnvironmentUserSessionContextName(projectAgentEnvironmentUserSessionContextName)

matchProjectFromProjectAgentEnvironmentUserSessionContextName(projectAgentEnvironmentUserSessionContextName: string): string | number;

Parse the project from ProjectAgentEnvironmentUserSessionContext resource.

Parameter
NameDescription
projectAgentEnvironmentUserSessionContextName string

A fully-qualified path representing project_agent_environment_user_session_context resource.

Returns
TypeDescription
string | number

{string} A string representing the project.

matchProjectFromProjectAgentEnvironmentUserSessionEntityTypeName(projectAgentEnvironmentUserSessionEntityTypeName)

matchProjectFromProjectAgentEnvironmentUserSessionEntityTypeName(projectAgentEnvironmentUserSessionEntityTypeName: string): string | number;

Parse the project from ProjectAgentEnvironmentUserSessionEntityType resource.

Parameter
NameDescription
projectAgentEnvironmentUserSessionEntityTypeName string

A fully-qualified path representing project_agent_environment_user_session_entity_type resource.

Returns
TypeDescription
string | number

{string} A string representing the project.

matchProjectFromProjectAgentSessionContextName(projectAgentSessionContextName)

matchProjectFromProjectAgentSessionContextName(projectAgentSessionContextName: string): string | number;

Parse the project from ProjectAgentSessionContext resource.

Parameter
NameDescription
projectAgentSessionContextName string

A fully-qualified path representing project_agent_session_context resource.

Returns
TypeDescription
string | number

{string} A string representing the project.

matchProjectFromProjectAgentSessionEntityTypeName(projectAgentSessionEntityTypeName)

matchProjectFromProjectAgentSessionEntityTypeName(projectAgentSessionEntityTypeName: string): string | number;

Parse the project from ProjectAgentSessionEntityType resource.

Parameter
NameDescription
projectAgentSessionEntityTypeName string

A fully-qualified path representing project_agent_session_entity_type resource.

Returns
TypeDescription
string | number

{string} A string representing the project.

matchProjectFromProjectName(projectName)

matchProjectFromProjectName(projectName: string): string | number;

Parse the project from Project resource.

Parameter
NameDescription
projectName string

A fully-qualified path representing Project resource.

Returns
TypeDescription
string | number

{string} A string representing the project.

matchSessionFromProjectAgentEnvironmentUserSessionContextName(projectAgentEnvironmentUserSessionContextName)

matchSessionFromProjectAgentEnvironmentUserSessionContextName(projectAgentEnvironmentUserSessionContextName: string): string | number;

Parse the session from ProjectAgentEnvironmentUserSessionContext resource.

Parameter
NameDescription
projectAgentEnvironmentUserSessionContextName string

A fully-qualified path representing project_agent_environment_user_session_context resource.

Returns
TypeDescription
string | number

{string} A string representing the session.

matchSessionFromProjectAgentEnvironmentUserSessionEntityTypeName(projectAgentEnvironmentUserSessionEntityTypeName)

matchSessionFromProjectAgentEnvironmentUserSessionEntityTypeName(projectAgentEnvironmentUserSessionEntityTypeName: string): string | number;

Parse the session from ProjectAgentEnvironmentUserSessionEntityType resource.

Parameter
NameDescription
projectAgentEnvironmentUserSessionEntityTypeName string

A fully-qualified path representing project_agent_environment_user_session_entity_type resource.

Returns
TypeDescription
string | number

{string} A string representing the session.

matchSessionFromProjectAgentSessionContextName(projectAgentSessionContextName)

matchSessionFromProjectAgentSessionContextName(projectAgentSessionContextName: string): string | number;

Parse the session from ProjectAgentSessionContext resource.

Parameter
NameDescription
projectAgentSessionContextName string

A fully-qualified path representing project_agent_session_context resource.

Returns
TypeDescription
string | number

{string} A string representing the session.

matchSessionFromProjectAgentSessionEntityTypeName(projectAgentSessionEntityTypeName)

matchSessionFromProjectAgentSessionEntityTypeName(projectAgentSessionEntityTypeName: string): string | number;

Parse the session from ProjectAgentSessionEntityType resource.

Parameter
NameDescription
projectAgentSessionEntityTypeName string

A fully-qualified path representing project_agent_session_entity_type resource.

Returns
TypeDescription
string | number

{string} A string representing the session.

matchUserFromProjectAgentEnvironmentUserSessionContextName(projectAgentEnvironmentUserSessionContextName)

matchUserFromProjectAgentEnvironmentUserSessionContextName(projectAgentEnvironmentUserSessionContextName: string): string | number;

Parse the user from ProjectAgentEnvironmentUserSessionContext resource.

Parameter
NameDescription
projectAgentEnvironmentUserSessionContextName string

A fully-qualified path representing project_agent_environment_user_session_context resource.

Returns
TypeDescription
string | number

{string} A string representing the user.

matchUserFromProjectAgentEnvironmentUserSessionEntityTypeName(projectAgentEnvironmentUserSessionEntityTypeName)

matchUserFromProjectAgentEnvironmentUserSessionEntityTypeName(projectAgentEnvironmentUserSessionEntityTypeName: string): string | number;

Parse the user from ProjectAgentEnvironmentUserSessionEntityType resource.

Parameter
NameDescription
projectAgentEnvironmentUserSessionEntityTypeName string

A fully-qualified path representing project_agent_environment_user_session_entity_type resource.

Returns
TypeDescription
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
NameDescription
project string
environment string
user string
session string
context string
Returns
TypeDescription
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
NameDescription
project string
environment string
user string
session string
entityType string
Returns
TypeDescription
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
NameDescription
project string
session string
context string
Returns
TypeDescription
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
NameDescription
project string
session string
entityType string
Returns
TypeDescription
string

{string} Resource name string.

projectPath(project)

projectPath(project: string): string;

Return a fully-qualified project resource name string.

Parameter
NameDescription
project string
Returns
TypeDescription
string

{string} Resource name string.

updateEntityType(request, options)

updateEntityType(request: protos.google.cloud.dialogflow.v2.IUpdateEntityTypeRequest, options?: CallOptions): Promise<[protos.google.cloud.dialogflow.v2.IEntityType, protos.google.cloud.dialogflow.v2.IUpdateEntityTypeRequest | undefined, {} | undefined]>;
Parameters
NameDescription
request protos.google.cloud.dialogflow.v2.IUpdateEntityTypeRequest
options CallOptions
Returns
TypeDescription
Promise<[protos.google.cloud.dialogflow.v2.IEntityType, protos.google.cloud.dialogflow.v2.IUpdateEntityTypeRequest | undefined, {} | undefined]>

updateEntityType(request, options, callback)

updateEntityType(request: protos.google.cloud.dialogflow.v2.IUpdateEntityTypeRequest, options: CallOptions, callback: Callback<protos.google.cloud.dialogflow.v2.IEntityType, protos.google.cloud.dialogflow.v2.IUpdateEntityTypeRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request protos.google.cloud.dialogflow.v2.IUpdateEntityTypeRequest
options CallOptions
callback Callback<protos.google.cloud.dialogflow.v2.IEntityType, protos.google.cloud.dialogflow.v2.IUpdateEntityTypeRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

updateEntityType(request, callback)

updateEntityType(request: protos.google.cloud.dialogflow.v2.IUpdateEntityTypeRequest, callback: Callback<protos.google.cloud.dialogflow.v2.IEntityType, protos.google.cloud.dialogflow.v2.IUpdateEntityTypeRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request protos.google.cloud.dialogflow.v2.IUpdateEntityTypeRequest
callback Callback<protos.google.cloud.dialogflow.v2.IEntityType, protos.google.cloud.dialogflow.v2.IUpdateEntityTypeRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void