Represents an Environments
Inheritance
$protobuf.rpc.Service > protos.google.cloud.dialogflow.v2.EnvironmentsPackage
@google-cloud/dialogflowConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new Environments service.
Parameters | |
---|---|
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.
Parameters | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Returns | |
---|---|
Type | Description |
Environments | RPC service. Useful where requests and/or responses are streamed. |
createEnvironment(request, callback)
public createEnvironment(request: google.cloud.dialogflow.v2.ICreateEnvironmentRequest, callback: google.cloud.dialogflow.v2.Environments.CreateEnvironmentCallback): void;
Calls CreateEnvironment.
Parameters | |
---|---|
Name | Description |
request |
ICreateEnvironmentRequest
CreateEnvironmentRequest message or plain object |
callback |
CreateEnvironmentCallback
Node-style callback called with the error, if any, and Environment |
Returns | |
---|---|
Type | Description |
void |
createEnvironment(request)
public createEnvironment(request: google.cloud.dialogflow.v2.ICreateEnvironmentRequest): Promise<google.cloud.dialogflow.v2.Environment>;
Calls CreateEnvironment.
Parameter | |
---|---|
Name | Description |
request |
ICreateEnvironmentRequest
CreateEnvironmentRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.dialogflow.v2.Environment> | Promise |
deleteEnvironment(request, callback)
public deleteEnvironment(request: google.cloud.dialogflow.v2.IDeleteEnvironmentRequest, callback: google.cloud.dialogflow.v2.Environments.DeleteEnvironmentCallback): void;
Calls DeleteEnvironment.
Parameters | |
---|---|
Name | Description |
request |
IDeleteEnvironmentRequest
DeleteEnvironmentRequest message or plain object |
callback |
DeleteEnvironmentCallback
Node-style callback called with the error, if any, and Empty |
Returns | |
---|---|
Type | Description |
void |
deleteEnvironment(request)
public deleteEnvironment(request: google.cloud.dialogflow.v2.IDeleteEnvironmentRequest): Promise<google.protobuf.Empty>;
Calls DeleteEnvironment.
Parameter | |
---|---|
Name | Description |
request |
IDeleteEnvironmentRequest
DeleteEnvironmentRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.protobuf.Empty> | Promise |
getEnvironment(request, callback)
public getEnvironment(request: google.cloud.dialogflow.v2.IGetEnvironmentRequest, callback: google.cloud.dialogflow.v2.Environments.GetEnvironmentCallback): void;
Calls GetEnvironment.
Parameters | |
---|---|
Name | Description |
request |
IGetEnvironmentRequest
GetEnvironmentRequest message or plain object |
callback |
GetEnvironmentCallback
Node-style callback called with the error, if any, and Environment |
Returns | |
---|---|
Type | Description |
void |
getEnvironment(request)
public getEnvironment(request: google.cloud.dialogflow.v2.IGetEnvironmentRequest): Promise<google.cloud.dialogflow.v2.Environment>;
Calls GetEnvironment.
Parameter | |
---|---|
Name | Description |
request |
IGetEnvironmentRequest
GetEnvironmentRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.dialogflow.v2.Environment> | Promise |
getEnvironmentHistory(request, callback)
public getEnvironmentHistory(request: google.cloud.dialogflow.v2.IGetEnvironmentHistoryRequest, callback: google.cloud.dialogflow.v2.Environments.GetEnvironmentHistoryCallback): void;
Calls GetEnvironmentHistory.
Parameters | |
---|---|
Name | Description |
request |
IGetEnvironmentHistoryRequest
GetEnvironmentHistoryRequest message or plain object |
callback |
GetEnvironmentHistoryCallback
Node-style callback called with the error, if any, and EnvironmentHistory |
Returns | |
---|---|
Type | Description |
void |
getEnvironmentHistory(request)
public getEnvironmentHistory(request: google.cloud.dialogflow.v2.IGetEnvironmentHistoryRequest): Promise<google.cloud.dialogflow.v2.EnvironmentHistory>;
Calls GetEnvironmentHistory.
Parameter | |
---|---|
Name | Description |
request |
IGetEnvironmentHistoryRequest
GetEnvironmentHistoryRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.dialogflow.v2.EnvironmentHistory> | Promise |
listEnvironments(request, callback)
public listEnvironments(request: google.cloud.dialogflow.v2.IListEnvironmentsRequest, callback: google.cloud.dialogflow.v2.Environments.ListEnvironmentsCallback): void;
Calls ListEnvironments.
Parameters | |
---|---|
Name | Description |
request |
IListEnvironmentsRequest
ListEnvironmentsRequest message or plain object |
callback |
ListEnvironmentsCallback
Node-style callback called with the error, if any, and ListEnvironmentsResponse |
Returns | |
---|---|
Type | Description |
void |
listEnvironments(request)
public listEnvironments(request: google.cloud.dialogflow.v2.IListEnvironmentsRequest): Promise<google.cloud.dialogflow.v2.ListEnvironmentsResponse>;
Calls ListEnvironments.
Parameter | |
---|---|
Name | Description |
request |
IListEnvironmentsRequest
ListEnvironmentsRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.dialogflow.v2.ListEnvironmentsResponse> | Promise |
updateEnvironment(request, callback)
public updateEnvironment(request: google.cloud.dialogflow.v2.IUpdateEnvironmentRequest, callback: google.cloud.dialogflow.v2.Environments.UpdateEnvironmentCallback): void;
Calls UpdateEnvironment.
Parameters | |
---|---|
Name | Description |
request |
IUpdateEnvironmentRequest
UpdateEnvironmentRequest message or plain object |
callback |
UpdateEnvironmentCallback
Node-style callback called with the error, if any, and Environment |
Returns | |
---|---|
Type | Description |
void |
updateEnvironment(request)
public updateEnvironment(request: google.cloud.dialogflow.v2.IUpdateEnvironmentRequest): Promise<google.cloud.dialogflow.v2.Environment>;
Calls UpdateEnvironment.
Parameter | |
---|---|
Name | Description |
request |
IUpdateEnvironmentRequest
UpdateEnvironmentRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.dialogflow.v2.Environment> | Promise |