Represents an Environments
Inheritance
$protobuf.rpc.Service > protos.google.cloud.dialogflow.v2.EnvironmentsPackage
@google-cloud/dialogflow!Constructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new Environments service.
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): Environments;
Creates new Environments service using the specified rpc implementation.
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Type | Description |
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.
Name | Description |
request |
IListEnvironmentsRequest
ListEnvironmentsRequest message or plain object |
callback |
google.cloud.dialogflow.v2.Environments.ListEnvironmentsCallback
Node-style callback called with the error, if any, and ListEnvironmentsResponse |
Type | Description |
void |
listEnvironments(request)
public listEnvironments(request: google.cloud.dialogflow.v2.IListEnvironmentsRequest): Promise<google.cloud.dialogflow.v2.ListEnvironmentsResponse>;
Calls ListEnvironments.
Name | Description |
request |
IListEnvironmentsRequest
ListEnvironmentsRequest message or plain object |
Type | Description |
Promise<google.cloud.dialogflow.v2.ListEnvironmentsResponse> | Promise |