Represents a ToolService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.ces.v1.ToolServicePackage
@google-cloud/cesConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);Constructs a new ToolService 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): ToolService;Creates new ToolService 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 |
ToolService |
RPC service. Useful where requests and/or responses are streamed. |
executeTool(request, callback)
public executeTool(request: google.cloud.ces.v1.IExecuteToolRequest, callback: google.cloud.ces.v1.ToolService.ExecuteToolCallback): void;Calls ExecuteTool.
| Parameters | |
|---|---|
| Name | Description |
request |
IExecuteToolRequest
ExecuteToolRequest message or plain object |
callback |
ExecuteToolCallback
Node-style callback called with the error, if any, and ExecuteToolResponse |
| Returns | |
|---|---|
| Type | Description |
void |
|
executeTool(request)
public executeTool(request: google.cloud.ces.v1.IExecuteToolRequest): Promise<google.cloud.ces.v1.ExecuteToolResponse>;Calls ExecuteTool.
| Parameter | |
|---|---|
| Name | Description |
request |
IExecuteToolRequest
ExecuteToolRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.ces.v1.ExecuteToolResponse> |
Promise |
retrieveTools(request, callback)
public retrieveTools(request: google.cloud.ces.v1.IRetrieveToolsRequest, callback: google.cloud.ces.v1.ToolService.RetrieveToolsCallback): void;Calls RetrieveTools.
| Parameters | |
|---|---|
| Name | Description |
request |
IRetrieveToolsRequest
RetrieveToolsRequest message or plain object |
callback |
RetrieveToolsCallback
Node-style callback called with the error, if any, and RetrieveToolsResponse |
| Returns | |
|---|---|
| Type | Description |
void |
|
retrieveTools(request)
public retrieveTools(request: google.cloud.ces.v1.IRetrieveToolsRequest): Promise<google.cloud.ces.v1.RetrieveToolsResponse>;Calls RetrieveTools.
| Parameter | |
|---|---|
| Name | Description |
request |
IRetrieveToolsRequest
RetrieveToolsRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.ces.v1.RetrieveToolsResponse> |
Promise |
retrieveToolSchema(request, callback)
public retrieveToolSchema(request: google.cloud.ces.v1.IRetrieveToolSchemaRequest, callback: google.cloud.ces.v1.ToolService.RetrieveToolSchemaCallback): void;Calls RetrieveToolSchema.
| Parameters | |
|---|---|
| Name | Description |
request |
IRetrieveToolSchemaRequest
RetrieveToolSchemaRequest message or plain object |
callback |
RetrieveToolSchemaCallback
Node-style callback called with the error, if any, and RetrieveToolSchemaResponse |
| Returns | |
|---|---|
| Type | Description |
void |
|
retrieveToolSchema(request)
public retrieveToolSchema(request: google.cloud.ces.v1.IRetrieveToolSchemaRequest): Promise<google.cloud.ces.v1.RetrieveToolSchemaResponse>;Calls RetrieveToolSchema.
| Parameter | |
|---|---|
| Name | Description |
request |
IRetrieveToolSchemaRequest
RetrieveToolSchemaRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.ces.v1.RetrieveToolSchemaResponse> |
Promise |