Class protos.google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes

Represents a SessionEntityTypes

Inheritance

$protobuf.rpc.Service > protos.google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes

Package

@google-cloud/dialogflow-cx

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new SessionEntityTypes 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): SessionEntityTypes;

Creates new SessionEntityTypes 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
SessionEntityTypes

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

createSessionEntityType(request, callback)

public createSessionEntityType(request: google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.CreateSessionEntityTypeCallback): void;

Calls CreateSessionEntityType.

Parameters
NameDescription
request ICreateSessionEntityTypeRequest

CreateSessionEntityTypeRequest message or plain object

callback google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.CreateSessionEntityTypeCallback

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

Returns
TypeDescription
void

createSessionEntityType(request)

public createSessionEntityType(request: google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest): Promise<google.cloud.dialogflow.cx.v3beta1.SessionEntityType>;

Calls CreateSessionEntityType.

Parameter
NameDescription
request ICreateSessionEntityTypeRequest

CreateSessionEntityTypeRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.cx.v3beta1.SessionEntityType>

Promise

deleteSessionEntityType(request, callback)

public deleteSessionEntityType(request: google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.DeleteSessionEntityTypeCallback): void;

Calls DeleteSessionEntityType.

Parameters
NameDescription
request IDeleteSessionEntityTypeRequest

DeleteSessionEntityTypeRequest message or plain object

callback google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.DeleteSessionEntityTypeCallback

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

Returns
TypeDescription
void

deleteSessionEntityType(request)

public deleteSessionEntityType(request: google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest): Promise<google.protobuf.Empty>;

Calls DeleteSessionEntityType.

Parameter
NameDescription
request IDeleteSessionEntityTypeRequest

DeleteSessionEntityTypeRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

getSessionEntityType(request, callback)

public getSessionEntityType(request: google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.GetSessionEntityTypeCallback): void;

Calls GetSessionEntityType.

Parameters
NameDescription
request google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest

GetSessionEntityTypeRequest message or plain object

callback google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.GetSessionEntityTypeCallback

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

Returns
TypeDescription
void

getSessionEntityType(request)

public getSessionEntityType(request: google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest): Promise<google.cloud.dialogflow.cx.v3beta1.SessionEntityType>;

Calls GetSessionEntityType.

Parameter
NameDescription
request google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest

GetSessionEntityTypeRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.cx.v3beta1.SessionEntityType>

Promise

listSessionEntityTypes(request, callback)

public listSessionEntityTypes(request: google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest, callback: google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.ListSessionEntityTypesCallback): void;

Calls ListSessionEntityTypes.

Parameters
NameDescription
request IListSessionEntityTypesRequest

ListSessionEntityTypesRequest message or plain object

callback google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.ListSessionEntityTypesCallback

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

Returns
TypeDescription
void

listSessionEntityTypes(request)

public listSessionEntityTypes(request: google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest): Promise<google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse>;

Calls ListSessionEntityTypes.

Parameter
NameDescription
request IListSessionEntityTypesRequest

ListSessionEntityTypesRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse>

Promise

updateSessionEntityType(request, callback)

public updateSessionEntityType(request: google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.UpdateSessionEntityTypeCallback): void;

Calls UpdateSessionEntityType.

Parameters
NameDescription
request google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest

UpdateSessionEntityTypeRequest message or plain object

callback google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.UpdateSessionEntityTypeCallback

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

Returns
TypeDescription
void

updateSessionEntityType(request)

public updateSessionEntityType(request: google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest): Promise<google.cloud.dialogflow.cx.v3beta1.SessionEntityType>;

Calls UpdateSessionEntityType.

Parameter
NameDescription
request google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest

UpdateSessionEntityTypeRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.cx.v3beta1.SessionEntityType>

Promise