public sealed class ToolServiceClientImpl : ToolServiceClientReference documentation and code samples for the Gemini Enterprise for Customer Experience v1 API class ToolServiceClientImpl.
ToolService client wrapper implementation, for convenient use.
Namespace
Google.Cloud.Ces.V1Assembly
Google.Cloud.Ces.V1.dll
Remarks
Tool service provides APIs for interacting with CES tools.
Constructors
ToolServiceClientImpl(ToolServiceClient, ToolServiceSettings, ILogger)
public ToolServiceClientImpl(ToolService.ToolServiceClient grpcClient, ToolServiceSettings settings, ILogger logger)Constructs a client wrapper for the ToolService service, with the specified gRPC client and settings.
| Parameters | |
|---|---|
| Name | Description |
grpcClient |
ToolServiceToolServiceClientThe underlying gRPC client. |
settings |
ToolServiceSettingsThe base ToolServiceSettings used within this client. |
logger |
ILoggerOptional ILogger to use within this client. |
Properties
GrpcClient
public override ToolService.ToolServiceClient GrpcClient { get; }The underlying gRPC ToolService client
| Property Value | |
|---|---|
| Type | Description |
ToolServiceToolServiceClient |
|
LocationsClient
public override LocationsClient LocationsClient { get; }The LocationsClient associated with this client.
| Property Value | |
|---|---|
| Type | Description |
LocationsClient |
|
Methods
ExecuteTool(ExecuteToolRequest, CallSettings)
public override ExecuteToolResponse ExecuteTool(ExecuteToolRequest request, CallSettings callSettings = null)Executes the given tool with the given arguments.
| Parameters | |
|---|---|
| Name | Description |
request |
ExecuteToolRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
ExecuteToolResponse |
The RPC response. |
ExecuteToolAsync(ExecuteToolRequest, CallSettings)
public override Task<ExecuteToolResponse> ExecuteToolAsync(ExecuteToolRequest request, CallSettings callSettings = null)Executes the given tool with the given arguments.
| Parameters | |
|---|---|
| Name | Description |
request |
ExecuteToolRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskExecuteToolResponse |
A Task containing the RPC response. |
RetrieveToolSchema(RetrieveToolSchemaRequest, CallSettings)
public override RetrieveToolSchemaResponse RetrieveToolSchema(RetrieveToolSchemaRequest request, CallSettings callSettings = null)Retrieve the schema of the given tool. The schema is computed on the fly for the given instance of the tool.
| Parameters | |
|---|---|
| Name | Description |
request |
RetrieveToolSchemaRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
RetrieveToolSchemaResponse |
The RPC response. |
RetrieveToolSchemaAsync(RetrieveToolSchemaRequest, CallSettings)
public override Task<RetrieveToolSchemaResponse> RetrieveToolSchemaAsync(RetrieveToolSchemaRequest request, CallSettings callSettings = null)Retrieve the schema of the given tool. The schema is computed on the fly for the given instance of the tool.
| Parameters | |
|---|---|
| Name | Description |
request |
RetrieveToolSchemaRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskRetrieveToolSchemaResponse |
A Task containing the RPC response. |
RetrieveTools(RetrieveToolsRequest, CallSettings)
public override RetrieveToolsResponse RetrieveTools(RetrieveToolsRequest request, CallSettings callSettings = null)Retrieve the list of tools included in the specified toolset.
| Parameters | |
|---|---|
| Name | Description |
request |
RetrieveToolsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
RetrieveToolsResponse |
The RPC response. |
RetrieveToolsAsync(RetrieveToolsRequest, CallSettings)
public override Task<RetrieveToolsResponse> RetrieveToolsAsync(RetrieveToolsRequest request, CallSettings callSettings = null)Retrieve the list of tools included in the specified toolset.
| Parameters | |
|---|---|
| Name | Description |
request |
RetrieveToolsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskRetrieveToolsResponse |
A Task containing the RPC response. |