Represents an EntityTypes
Inheritance
$protobuf.rpc.Service > protos.google.cloud.dialogflow.cx.v3beta1.EntityTypesPackage
@google-cloud/dialogflow-cxConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new EntityTypes service.
Name | Description |
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.
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Type | Description |
EntityTypes | RPC service. Useful where requests and/or responses are streamed. |
createEntityType(request, callback)
public createEntityType(request: google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3beta1.EntityTypes.CreateEntityTypeCallback): void;
Calls CreateEntityType.
Name | Description |
request |
ICreateEntityTypeRequest
CreateEntityTypeRequest message or plain object |
callback |
google.cloud.dialogflow.cx.v3beta1.EntityTypes.CreateEntityTypeCallback
Node-style callback called with the error, if any, and EntityType |
Type | Description |
void |
createEntityType(request)
public createEntityType(request: google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest): Promise<google.cloud.dialogflow.cx.v3beta1.EntityType>;
Calls CreateEntityType.
Name | Description |
request |
ICreateEntityTypeRequest
CreateEntityTypeRequest message or plain object |
Type | Description |
Promise<google.cloud.dialogflow.cx.v3beta1.EntityType> | Promise |
deleteEntityType(request, callback)
public deleteEntityType(request: google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3beta1.EntityTypes.DeleteEntityTypeCallback): void;
Calls DeleteEntityType.
Name | Description |
request |
IDeleteEntityTypeRequest
DeleteEntityTypeRequest message or plain object |
callback |
google.cloud.dialogflow.cx.v3beta1.EntityTypes.DeleteEntityTypeCallback
Node-style callback called with the error, if any, and Empty |
Type | Description |
void |
deleteEntityType(request)
public deleteEntityType(request: google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest): Promise<google.protobuf.Empty>;
Calls DeleteEntityType.
Name | Description |
request |
IDeleteEntityTypeRequest
DeleteEntityTypeRequest message or plain object |
Type | Description |
Promise<google.protobuf.Empty> | Promise |
getEntityType(request, callback)
public getEntityType(request: google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3beta1.EntityTypes.GetEntityTypeCallback): void;
Calls GetEntityType.
Name | Description |
request |
IGetEntityTypeRequest
GetEntityTypeRequest message or plain object |
callback |
google.cloud.dialogflow.cx.v3beta1.EntityTypes.GetEntityTypeCallback
Node-style callback called with the error, if any, and EntityType |
Type | Description |
void |
getEntityType(request)
public getEntityType(request: google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest): Promise<google.cloud.dialogflow.cx.v3beta1.EntityType>;
Calls GetEntityType.
Name | Description |
request |
IGetEntityTypeRequest
GetEntityTypeRequest message or plain object |
Type | Description |
Promise<google.cloud.dialogflow.cx.v3beta1.EntityType> | Promise |
listEntityTypes(request, callback)
public listEntityTypes(request: google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest, callback: google.cloud.dialogflow.cx.v3beta1.EntityTypes.ListEntityTypesCallback): void;
Calls ListEntityTypes.
Name | Description |
request |
IListEntityTypesRequest
ListEntityTypesRequest message or plain object |
callback |
google.cloud.dialogflow.cx.v3beta1.EntityTypes.ListEntityTypesCallback
Node-style callback called with the error, if any, and ListEntityTypesResponse |
Type | Description |
void |
listEntityTypes(request)
public listEntityTypes(request: google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest): Promise<google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse>;
Calls ListEntityTypes.
Name | Description |
request |
IListEntityTypesRequest
ListEntityTypesRequest message or plain object |
Type | Description |
Promise<google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse> | Promise |
updateEntityType(request, callback)
public updateEntityType(request: google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3beta1.EntityTypes.UpdateEntityTypeCallback): void;
Calls UpdateEntityType.
Name | Description |
request |
IUpdateEntityTypeRequest
UpdateEntityTypeRequest message or plain object |
callback |
google.cloud.dialogflow.cx.v3beta1.EntityTypes.UpdateEntityTypeCallback
Node-style callback called with the error, if any, and EntityType |
Type | Description |
void |
updateEntityType(request)
public updateEntityType(request: google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest): Promise<google.cloud.dialogflow.cx.v3beta1.EntityType>;
Calls UpdateEntityType.
Name | Description |
request |
IUpdateEntityTypeRequest
UpdateEntityTypeRequest message or plain object |
Type | Description |
Promise<google.cloud.dialogflow.cx.v3beta1.EntityType> | Promise |