Represents a SessionEntityTypes
Inheritance
$protobuf.rpc.Service > protos.google.cloud.dialogflow.cx.v3.SessionEntityTypesPackage
@google-cloud/dialogflow-cxConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);Constructs a new SessionEntityTypes service.
| Parameters | |
|---|---|
| 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): SessionEntityTypes;Creates new SessionEntityTypes service using the specified rpc implementation.
| Parameters | |
|---|---|
| Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
| Returns | |
|---|---|
| Type | Description |
SessionEntityTypes |
RPC service. Useful where requests and/or responses are streamed. |
createSessionEntityType(request, callback)
public createSessionEntityType(request: google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.SessionEntityTypes.CreateSessionEntityTypeCallback): void;Calls CreateSessionEntityType.
| Parameters | |
|---|---|
| Name | Description |
request |
ICreateSessionEntityTypeRequest
CreateSessionEntityTypeRequest message or plain object |
callback |
CreateSessionEntityTypeCallback
Node-style callback called with the error, if any, and SessionEntityType |
| Returns | |
|---|---|
| Type | Description |
void |
|
createSessionEntityType(request)
public createSessionEntityType(request: google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest): Promise<google.cloud.dialogflow.cx.v3.SessionEntityType>;Calls CreateSessionEntityType.
| Parameter | |
|---|---|
| Name | Description |
request |
ICreateSessionEntityTypeRequest
CreateSessionEntityTypeRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.dialogflow.cx.v3.SessionEntityType> |
Promise |
deleteSessionEntityType(request, callback)
public deleteSessionEntityType(request: google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.SessionEntityTypes.DeleteSessionEntityTypeCallback): void;Calls DeleteSessionEntityType.
| Parameters | |
|---|---|
| Name | Description |
request |
IDeleteSessionEntityTypeRequest
DeleteSessionEntityTypeRequest message or plain object |
callback |
DeleteSessionEntityTypeCallback
Node-style callback called with the error, if any, and Empty |
| Returns | |
|---|---|
| Type | Description |
void |
|
deleteSessionEntityType(request)
public deleteSessionEntityType(request: google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest): Promise<google.protobuf.Empty>;Calls DeleteSessionEntityType.
| Parameter | |
|---|---|
| Name | Description |
request |
IDeleteSessionEntityTypeRequest
DeleteSessionEntityTypeRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.protobuf.Empty> |
Promise |
getSessionEntityType(request, callback)
public getSessionEntityType(request: google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.SessionEntityTypes.GetSessionEntityTypeCallback): void;Calls GetSessionEntityType.
| Parameters | |
|---|---|
| Name | Description |
request |
IGetSessionEntityTypeRequest
GetSessionEntityTypeRequest message or plain object |
callback |
GetSessionEntityTypeCallback
Node-style callback called with the error, if any, and SessionEntityType |
| Returns | |
|---|---|
| Type | Description |
void |
|
getSessionEntityType(request)
public getSessionEntityType(request: google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest): Promise<google.cloud.dialogflow.cx.v3.SessionEntityType>;Calls GetSessionEntityType.
| Parameter | |
|---|---|
| Name | Description |
request |
IGetSessionEntityTypeRequest
GetSessionEntityTypeRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.dialogflow.cx.v3.SessionEntityType> |
Promise |
listSessionEntityTypes(request, callback)
public listSessionEntityTypes(request: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest, callback: google.cloud.dialogflow.cx.v3.SessionEntityTypes.ListSessionEntityTypesCallback): void;Calls ListSessionEntityTypes.
| Parameters | |
|---|---|
| Name | Description |
request |
IListSessionEntityTypesRequest
ListSessionEntityTypesRequest message or plain object |
callback |
ListSessionEntityTypesCallback
Node-style callback called with the error, if any, and ListSessionEntityTypesResponse |
| Returns | |
|---|---|
| Type | Description |
void |
|
listSessionEntityTypes(request)
public listSessionEntityTypes(request: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest): Promise<google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse>;Calls ListSessionEntityTypes.
| Parameter | |
|---|---|
| Name | Description |
request |
IListSessionEntityTypesRequest
ListSessionEntityTypesRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse> |
Promise |
updateSessionEntityType(request, callback)
public updateSessionEntityType(request: google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.SessionEntityTypes.UpdateSessionEntityTypeCallback): void;Calls UpdateSessionEntityType.
| Parameters | |
|---|---|
| Name | Description |
request |
IUpdateSessionEntityTypeRequest
UpdateSessionEntityTypeRequest message or plain object |
callback |
UpdateSessionEntityTypeCallback
Node-style callback called with the error, if any, and SessionEntityType |
| Returns | |
|---|---|
| Type | Description |
void |
|
updateSessionEntityType(request)
public updateSessionEntityType(request: google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest): Promise<google.cloud.dialogflow.cx.v3.SessionEntityType>;Calls UpdateSessionEntityType.
| Parameter | |
|---|---|
| Name | Description |
request |
IUpdateSessionEntityTypeRequest
UpdateSessionEntityTypeRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.dialogflow.cx.v3.SessionEntityType> |
Promise |