Class protos.google.cloud.dialogflow.cx.v3beta1.Examples (4.6.0)

Represents an Examples

Inheritance

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

Package

@google-cloud/dialogflow-cx

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

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

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

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

createExample(request, callback)

public createExample(request: google.cloud.dialogflow.cx.v3beta1.ICreateExampleRequest, callback: google.cloud.dialogflow.cx.v3beta1.Examples.CreateExampleCallback): void;

Calls CreateExample.

Parameters
NameDescription
request ICreateExampleRequest

CreateExampleRequest message or plain object

callback CreateExampleCallback

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

Returns
TypeDescription
void

createExample(request)

public createExample(request: google.cloud.dialogflow.cx.v3beta1.ICreateExampleRequest): Promise<google.cloud.dialogflow.cx.v3beta1.Example>;

Calls CreateExample.

Parameter
NameDescription
request ICreateExampleRequest

CreateExampleRequest message or plain object

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

Promise

deleteExample(request, callback)

public deleteExample(request: google.cloud.dialogflow.cx.v3beta1.IDeleteExampleRequest, callback: google.cloud.dialogflow.cx.v3beta1.Examples.DeleteExampleCallback): void;

Calls DeleteExample.

Parameters
NameDescription
request IDeleteExampleRequest

DeleteExampleRequest message or plain object

callback DeleteExampleCallback

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

Returns
TypeDescription
void

deleteExample(request)

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

Calls DeleteExample.

Parameter
NameDescription
request IDeleteExampleRequest

DeleteExampleRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

getExample(request, callback)

public getExample(request: google.cloud.dialogflow.cx.v3beta1.IGetExampleRequest, callback: google.cloud.dialogflow.cx.v3beta1.Examples.GetExampleCallback): void;

Calls GetExample.

Parameters
NameDescription
request IGetExampleRequest

GetExampleRequest message or plain object

callback GetExampleCallback

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

Returns
TypeDescription
void

getExample(request)

public getExample(request: google.cloud.dialogflow.cx.v3beta1.IGetExampleRequest): Promise<google.cloud.dialogflow.cx.v3beta1.Example>;

Calls GetExample.

Parameter
NameDescription
request IGetExampleRequest

GetExampleRequest message or plain object

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

Promise

listExamples(request, callback)

public listExamples(request: google.cloud.dialogflow.cx.v3beta1.IListExamplesRequest, callback: google.cloud.dialogflow.cx.v3beta1.Examples.ListExamplesCallback): void;

Calls ListExamples.

Parameters
NameDescription
request IListExamplesRequest

ListExamplesRequest message or plain object

callback ListExamplesCallback

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

Returns
TypeDescription
void

listExamples(request)

public listExamples(request: google.cloud.dialogflow.cx.v3beta1.IListExamplesRequest): Promise<google.cloud.dialogflow.cx.v3beta1.ListExamplesResponse>;

Calls ListExamples.

Parameter
NameDescription
request IListExamplesRequest

ListExamplesRequest message or plain object

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

Promise

updateExample(request, callback)

public updateExample(request: google.cloud.dialogflow.cx.v3beta1.IUpdateExampleRequest, callback: google.cloud.dialogflow.cx.v3beta1.Examples.UpdateExampleCallback): void;

Calls UpdateExample.

Parameters
NameDescription
request IUpdateExampleRequest

UpdateExampleRequest message or plain object

callback UpdateExampleCallback

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

Returns
TypeDescription
void

updateExample(request)

public updateExample(request: google.cloud.dialogflow.cx.v3beta1.IUpdateExampleRequest): Promise<google.cloud.dialogflow.cx.v3beta1.Example>;

Calls UpdateExample.

Parameter
NameDescription
request IUpdateExampleRequest

UpdateExampleRequest message or plain object

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

Promise