Class protos.google.cloud.dialogflow.cx.v3.EntityTypes (4.6.0)

Represents an EntityTypes

Inheritance

$protobuf.rpc.Service > protos.google.cloud.dialogflow.cx.v3.EntityTypes

Package

@google-cloud/dialogflow-cx

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new EntityTypes service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): EntityTypes;

Creates new EntityTypes service using the specified rpc implementation.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
EntityTypes

RPC service. Useful where requests and/or responses are streamed.

createEntityType(request, callback)

public createEntityType(request: google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.EntityTypes.CreateEntityTypeCallback): void;

Calls CreateEntityType.

Parameters
NameDescription
request ICreateEntityTypeRequest

CreateEntityTypeRequest message or plain object

callback CreateEntityTypeCallback

Node-style callback called with the error, if any, and EntityType

Returns
TypeDescription
void

createEntityType(request)

public createEntityType(request: google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest): Promise<google.cloud.dialogflow.cx.v3.EntityType>;

Calls CreateEntityType.

Parameter
NameDescription
request ICreateEntityTypeRequest

CreateEntityTypeRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.cx.v3.EntityType>

Promise

deleteEntityType(request, callback)

public deleteEntityType(request: google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.EntityTypes.DeleteEntityTypeCallback): void;

Calls DeleteEntityType.

Parameters
NameDescription
request IDeleteEntityTypeRequest

DeleteEntityTypeRequest message or plain object

callback DeleteEntityTypeCallback

Node-style callback called with the error, if any, and Empty

Returns
TypeDescription
void

deleteEntityType(request)

public deleteEntityType(request: google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest): Promise<google.protobuf.Empty>;

Calls DeleteEntityType.

Parameter
NameDescription
request IDeleteEntityTypeRequest

DeleteEntityTypeRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

exportEntityTypes(request, callback)

public exportEntityTypes(request: google.cloud.dialogflow.cx.v3.IExportEntityTypesRequest, callback: google.cloud.dialogflow.cx.v3.EntityTypes.ExportEntityTypesCallback): void;

Calls ExportEntityTypes.

Parameters
NameDescription
request IExportEntityTypesRequest

ExportEntityTypesRequest message or plain object

callback ExportEntityTypesCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

exportEntityTypes(request)

public exportEntityTypes(request: google.cloud.dialogflow.cx.v3.IExportEntityTypesRequest): Promise<google.longrunning.Operation>;

Calls ExportEntityTypes.

Parameter
NameDescription
request IExportEntityTypesRequest

ExportEntityTypesRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

getEntityType(request, callback)

public getEntityType(request: google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.EntityTypes.GetEntityTypeCallback): void;

Calls GetEntityType.

Parameters
NameDescription
request IGetEntityTypeRequest

GetEntityTypeRequest message or plain object

callback GetEntityTypeCallback

Node-style callback called with the error, if any, and EntityType

Returns
TypeDescription
void

getEntityType(request)

public getEntityType(request: google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest): Promise<google.cloud.dialogflow.cx.v3.EntityType>;

Calls GetEntityType.

Parameter
NameDescription
request IGetEntityTypeRequest

GetEntityTypeRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.cx.v3.EntityType>

Promise

importEntityTypes(request, callback)

public importEntityTypes(request: google.cloud.dialogflow.cx.v3.IImportEntityTypesRequest, callback: google.cloud.dialogflow.cx.v3.EntityTypes.ImportEntityTypesCallback): void;

Calls ImportEntityTypes.

Parameters
NameDescription
request IImportEntityTypesRequest

ImportEntityTypesRequest message or plain object

callback ImportEntityTypesCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

importEntityTypes(request)

public importEntityTypes(request: google.cloud.dialogflow.cx.v3.IImportEntityTypesRequest): Promise<google.longrunning.Operation>;

Calls ImportEntityTypes.

Parameter
NameDescription
request IImportEntityTypesRequest

ImportEntityTypesRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

listEntityTypes(request, callback)

public listEntityTypes(request: google.cloud.dialogflow.cx.v3.IListEntityTypesRequest, callback: google.cloud.dialogflow.cx.v3.EntityTypes.ListEntityTypesCallback): void;

Calls ListEntityTypes.

Parameters
NameDescription
request IListEntityTypesRequest

ListEntityTypesRequest message or plain object

callback ListEntityTypesCallback

Node-style callback called with the error, if any, and ListEntityTypesResponse

Returns
TypeDescription
void

listEntityTypes(request)

public listEntityTypes(request: google.cloud.dialogflow.cx.v3.IListEntityTypesRequest): Promise<google.cloud.dialogflow.cx.v3.ListEntityTypesResponse>;

Calls ListEntityTypes.

Parameter
NameDescription
request IListEntityTypesRequest

ListEntityTypesRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.cx.v3.ListEntityTypesResponse>

Promise

updateEntityType(request, callback)

public updateEntityType(request: google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.EntityTypes.UpdateEntityTypeCallback): void;

Calls UpdateEntityType.

Parameters
NameDescription
request IUpdateEntityTypeRequest

UpdateEntityTypeRequest message or plain object

callback UpdateEntityTypeCallback

Node-style callback called with the error, if any, and EntityType

Returns
TypeDescription
void

updateEntityType(request)

public updateEntityType(request: google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest): Promise<google.cloud.dialogflow.cx.v3.EntityType>;

Calls UpdateEntityType.

Parameter
NameDescription
request IUpdateEntityTypeRequest

UpdateEntityTypeRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.cx.v3.EntityType>

Promise