Google Cloud Dialogflow v2beta1 API - Class Tools.ToolsClient (1.0.0-beta24)

public class Tools.ToolsClient : ClientBase<Tools.ToolsClient>

Reference documentation and code samples for the Google Cloud Dialogflow v2beta1 API class Tools.ToolsClient.

Client for Tools

Inheritance

object > ClientBase > ClientBaseToolsToolsClient > Tools.ToolsClient

Namespace

Google.Cloud.Dialogflow.V2Beta1

Assembly

Google.Cloud.Dialogflow.V2Beta1.dll

Constructors

ToolsClient()

protected ToolsClient()

Protected parameterless constructor to allow creation of test doubles.

ToolsClient(CallInvoker)

public ToolsClient(CallInvoker callInvoker)

Creates a new client for Tools that uses a custom CallInvoker.

Parameter
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

ToolsClient(ChannelBase)

public ToolsClient(ChannelBase channel)

Creates a new client for Tools

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

ToolsClient(ClientBaseConfiguration)

protected ToolsClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

The client configuration.

Methods

CreateLocationsClient()

public virtual Locations.LocationsClient CreateLocationsClient()

Creates a new instance of Locations.LocationsClient using the same call invoker as this client.

Returns
Type Description
LocationsLocationsClient

A new Locations.LocationsClient for the same target as this client.

CreateTool(CreateToolRequest, CallOptions)

public virtual Tool CreateTool(CreateToolRequest request, CallOptions options)

Creates a tool.

Parameters
Name Description
request CreateToolRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Tool

The response received from the server.

CreateTool(CreateToolRequest, Metadata, DateTime?, CancellationToken)

public virtual Tool CreateTool(CreateToolRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates a tool.

Parameters
Name Description
request CreateToolRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Tool

The response received from the server.

CreateToolAsync(CreateToolRequest, CallOptions)

public virtual AsyncUnaryCall<Tool> CreateToolAsync(CreateToolRequest request, CallOptions options)

Creates a tool.

Parameters
Name Description
request CreateToolRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallTool

The call object.

CreateToolAsync(CreateToolRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Tool> CreateToolAsync(CreateToolRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates a tool.

Parameters
Name Description
request CreateToolRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallTool

The call object.

DeleteTool(DeleteToolRequest, CallOptions)

public virtual Empty DeleteTool(DeleteToolRequest request, CallOptions options)

Deletes a tool.

Parameters
Name Description
request DeleteToolRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Empty

The response received from the server.

DeleteTool(DeleteToolRequest, Metadata, DateTime?, CancellationToken)

public virtual Empty DeleteTool(DeleteToolRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes a tool.

Parameters
Name Description
request DeleteToolRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Empty

The response received from the server.

DeleteToolAsync(DeleteToolRequest, CallOptions)

public virtual AsyncUnaryCall<Empty> DeleteToolAsync(DeleteToolRequest request, CallOptions options)

Deletes a tool.

Parameters
Name Description
request DeleteToolRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallEmpty

The call object.

DeleteToolAsync(DeleteToolRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Empty> DeleteToolAsync(DeleteToolRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes a tool.

Parameters
Name Description
request DeleteToolRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallEmpty

The call object.

GetTool(GetToolRequest, CallOptions)

public virtual Tool GetTool(GetToolRequest request, CallOptions options)

Retrieves a tool.

Parameters
Name Description
request GetToolRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Tool

The response received from the server.

GetTool(GetToolRequest, Metadata, DateTime?, CancellationToken)

public virtual Tool GetTool(GetToolRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves a tool.

Parameters
Name Description
request GetToolRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Tool

The response received from the server.

GetToolAsync(GetToolRequest, CallOptions)

public virtual AsyncUnaryCall<Tool> GetToolAsync(GetToolRequest request, CallOptions options)

Retrieves a tool.

Parameters
Name Description
request GetToolRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallTool

The call object.

GetToolAsync(GetToolRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Tool> GetToolAsync(GetToolRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves a tool.

Parameters
Name Description
request GetToolRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallTool

The call object.

ListTools(ListToolsRequest, CallOptions)

public virtual ListToolsResponse ListTools(ListToolsRequest request, CallOptions options)

Lists tools.

Parameters
Name Description
request ListToolsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
ListToolsResponse

The response received from the server.

ListTools(ListToolsRequest, Metadata, DateTime?, CancellationToken)

public virtual ListToolsResponse ListTools(ListToolsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists tools.

Parameters
Name Description
request ListToolsRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
ListToolsResponse

The response received from the server.

ListToolsAsync(ListToolsRequest, CallOptions)

public virtual AsyncUnaryCall<ListToolsResponse> ListToolsAsync(ListToolsRequest request, CallOptions options)

Lists tools.

Parameters
Name Description
request ListToolsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallListToolsResponse

The call object.

ListToolsAsync(ListToolsRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ListToolsResponse> ListToolsAsync(ListToolsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists tools.

Parameters
Name Description
request ListToolsRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallListToolsResponse

The call object.

NewInstance(ClientBaseConfiguration)

protected override Tools.ToolsClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
ToolsToolsClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Dialogflow.V2Beta1.Tools.ToolsClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

UpdateTool(UpdateToolRequest, CallOptions)

public virtual Tool UpdateTool(UpdateToolRequest request, CallOptions options)

Updates a tool.

Parameters
Name Description
request UpdateToolRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Tool

The response received from the server.

UpdateTool(UpdateToolRequest, Metadata, DateTime?, CancellationToken)

public virtual Tool UpdateTool(UpdateToolRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates a tool.

Parameters
Name Description
request UpdateToolRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Tool

The response received from the server.

UpdateToolAsync(UpdateToolRequest, CallOptions)

public virtual AsyncUnaryCall<Tool> UpdateToolAsync(UpdateToolRequest request, CallOptions options)

Updates a tool.

Parameters
Name Description
request UpdateToolRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallTool

The call object.

UpdateToolAsync(UpdateToolRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Tool> UpdateToolAsync(UpdateToolRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates a tool.

Parameters
Name Description
request UpdateToolRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallTool

The call object.