Class protos.google.cloud.dialogflow.cx.v3.Generators (4.3.1)

Represents a Generators

Inheritance

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

Package

@google-cloud/dialogflow-cx

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

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

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

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

createGenerator(request, callback)

public createGenerator(request: google.cloud.dialogflow.cx.v3.ICreateGeneratorRequest, callback: google.cloud.dialogflow.cx.v3.Generators.CreateGeneratorCallback): void;

Calls CreateGenerator.

Parameters
NameDescription
request ICreateGeneratorRequest

CreateGeneratorRequest message or plain object

callback CreateGeneratorCallback

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

Returns
TypeDescription
void

createGenerator(request)

public createGenerator(request: google.cloud.dialogflow.cx.v3.ICreateGeneratorRequest): Promise<google.cloud.dialogflow.cx.v3.Generator>;

Calls CreateGenerator.

Parameter
NameDescription
request ICreateGeneratorRequest

CreateGeneratorRequest message or plain object

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

Promise

deleteGenerator(request, callback)

public deleteGenerator(request: google.cloud.dialogflow.cx.v3.IDeleteGeneratorRequest, callback: google.cloud.dialogflow.cx.v3.Generators.DeleteGeneratorCallback): void;

Calls DeleteGenerator.

Parameters
NameDescription
request IDeleteGeneratorRequest

DeleteGeneratorRequest message or plain object

callback DeleteGeneratorCallback

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

Returns
TypeDescription
void

deleteGenerator(request)

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

Calls DeleteGenerator.

Parameter
NameDescription
request IDeleteGeneratorRequest

DeleteGeneratorRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

getGenerator(request, callback)

public getGenerator(request: google.cloud.dialogflow.cx.v3.IGetGeneratorRequest, callback: google.cloud.dialogflow.cx.v3.Generators.GetGeneratorCallback): void;

Calls GetGenerator.

Parameters
NameDescription
request IGetGeneratorRequest

GetGeneratorRequest message or plain object

callback GetGeneratorCallback

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

Returns
TypeDescription
void

getGenerator(request)

public getGenerator(request: google.cloud.dialogflow.cx.v3.IGetGeneratorRequest): Promise<google.cloud.dialogflow.cx.v3.Generator>;

Calls GetGenerator.

Parameter
NameDescription
request IGetGeneratorRequest

GetGeneratorRequest message or plain object

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

Promise

listGenerators(request, callback)

public listGenerators(request: google.cloud.dialogflow.cx.v3.IListGeneratorsRequest, callback: google.cloud.dialogflow.cx.v3.Generators.ListGeneratorsCallback): void;

Calls ListGenerators.

Parameters
NameDescription
request IListGeneratorsRequest

ListGeneratorsRequest message or plain object

callback ListGeneratorsCallback

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

Returns
TypeDescription
void

listGenerators(request)

public listGenerators(request: google.cloud.dialogflow.cx.v3.IListGeneratorsRequest): Promise<google.cloud.dialogflow.cx.v3.ListGeneratorsResponse>;

Calls ListGenerators.

Parameter
NameDescription
request IListGeneratorsRequest

ListGeneratorsRequest message or plain object

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

Promise

updateGenerator(request, callback)

public updateGenerator(request: google.cloud.dialogflow.cx.v3.IUpdateGeneratorRequest, callback: google.cloud.dialogflow.cx.v3.Generators.UpdateGeneratorCallback): void;

Calls UpdateGenerator.

Parameters
NameDescription
request IUpdateGeneratorRequest

UpdateGeneratorRequest message or plain object

callback UpdateGeneratorCallback

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

Returns
TypeDescription
void

updateGenerator(request)

public updateGenerator(request: google.cloud.dialogflow.cx.v3.IUpdateGeneratorRequest): Promise<google.cloud.dialogflow.cx.v3.Generator>;

Calls UpdateGenerator.

Parameter
NameDescription
request IUpdateGeneratorRequest

UpdateGeneratorRequest message or plain object

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

Promise