Class protos.google.cloud.dialogflow.v2.Environments (3.5.0)

Represents an Environments

Inheritance

$protobuf.rpc.Service > protos.google.cloud.dialogflow.v2.Environments

Package

@google-cloud/dialogflow!

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

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

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

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

listEnvironments(request, callback)

public listEnvironments(request: google.cloud.dialogflow.v2.IListEnvironmentsRequest, callback: google.cloud.dialogflow.v2.Environments.ListEnvironmentsCallback): void;

Calls ListEnvironments.

Parameters
NameDescription
request google.cloud.dialogflow.v2.IListEnvironmentsRequest

ListEnvironmentsRequest message or plain object

callback google.cloud.dialogflow.v2.Environments.ListEnvironmentsCallback

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

Returns
TypeDescription
void

listEnvironments(request)

public listEnvironments(request: google.cloud.dialogflow.v2.IListEnvironmentsRequest): Promise<google.cloud.dialogflow.v2.ListEnvironmentsResponse>;

Calls ListEnvironments.

Parameter
NameDescription
request google.cloud.dialogflow.v2.IListEnvironmentsRequest

ListEnvironmentsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.v2.ListEnvironmentsResponse>

Promise