Data Analytics API with Gemini v1beta API - Class DataA2AService.DataA2AServiceClient (1.0.0-beta12)

public class DataA2AService.DataA2AServiceClient : ClientBase<DataA2AService.DataA2AServiceClient>

Reference documentation and code samples for the Data Analytics API with Gemini v1beta API class DataA2AService.DataA2AServiceClient.

Client for DataA2AService

Inheritance

object > ClientBase > ClientBaseDataA2AServiceDataA2AServiceClient > DataA2AService.DataA2AServiceClient

Namespace

Google.Cloud.GeminiDataAnalytics.V1Beta

Assembly

Google.Cloud.GeminiDataAnalytics.V1Beta.dll

Constructors

DataA2AServiceClient()

protected DataA2AServiceClient()

Protected parameterless constructor to allow creation of test doubles.

DataA2AServiceClient(CallInvoker)

public DataA2AServiceClient(CallInvoker callInvoker)

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

Parameter
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

DataA2AServiceClient(ChannelBase)

public DataA2AServiceClient(ChannelBase channel)

Creates a new client for DataA2AService

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

DataA2AServiceClient(ClientBaseConfiguration)

protected DataA2AServiceClient(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.

GetAgentCard(GetAgentCardRequest, CallOptions)

public virtual AgentCard GetAgentCard(GetAgentCardRequest request, CallOptions options)

GetAgentCard returns the agent card for the agent.

Parameters
Name Description
request GetAgentCardRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AgentCard

The response received from the server.

GetAgentCard(GetAgentCardRequest, Metadata, DateTime?, CancellationToken)

public virtual AgentCard GetAgentCard(GetAgentCardRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

GetAgentCard returns the agent card for the agent.

Parameters
Name Description
request GetAgentCardRequest

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
AgentCard

The response received from the server.

GetAgentCardAsync(GetAgentCardRequest, CallOptions)

public virtual AsyncUnaryCall<AgentCard> GetAgentCardAsync(GetAgentCardRequest request, CallOptions options)

GetAgentCard returns the agent card for the agent.

Parameters
Name Description
request GetAgentCardRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallAgentCard

The call object.

GetAgentCardAsync(GetAgentCardRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<AgentCard> GetAgentCardAsync(GetAgentCardRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

GetAgentCard returns the agent card for the agent.

Parameters
Name Description
request GetAgentCardRequest

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
AsyncUnaryCallAgentCard

The call object.

NewInstance(ClientBaseConfiguration)

protected override DataA2AService.DataA2AServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
DataA2AServiceDataA2AServiceClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.GeminiDataAnalytics.V1Beta.DataA2AService.DataA2AServiceClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

SendMessage(SendMessageRequest, CallOptions)

public virtual SendMessageResponse SendMessage(SendMessageRequest request, CallOptions options)

Send a message to the agent. This is a blocking call that will return the task once it is completed.

Parameters
Name Description
request SendMessageRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
SendMessageResponse

The response received from the server.

SendMessage(SendMessageRequest, Metadata, DateTime?, CancellationToken)

public virtual SendMessageResponse SendMessage(SendMessageRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Send a message to the agent. This is a blocking call that will return the task once it is completed.

Parameters
Name Description
request SendMessageRequest

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
SendMessageResponse

The response received from the server.

SendMessageAsync(SendMessageRequest, CallOptions)

public virtual AsyncUnaryCall<SendMessageResponse> SendMessageAsync(SendMessageRequest request, CallOptions options)

Send a message to the agent. This is a blocking call that will return the task once it is completed.

Parameters
Name Description
request SendMessageRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallSendMessageResponse

The call object.

SendMessageAsync(SendMessageRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<SendMessageResponse> SendMessageAsync(SendMessageRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Send a message to the agent. This is a blocking call that will return the task once it is completed.

Parameters
Name Description
request SendMessageRequest

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
AsyncUnaryCallSendMessageResponse

The call object.

SendStreamingMessage(SendMessageRequest, CallOptions)

public virtual AsyncServerStreamingCall<StreamResponse> SendStreamingMessage(SendMessageRequest request, CallOptions options)

SendStreamingMessage is a streaming call that will return a stream of task update events until the Task is in an interrupted or terminal state.

Parameters
Name Description
request SendMessageRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncServerStreamingCallStreamResponse

The call object.

SendStreamingMessage(SendMessageRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncServerStreamingCall<StreamResponse> SendStreamingMessage(SendMessageRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

SendStreamingMessage is a streaming call that will return a stream of task update events until the Task is in an interrupted or terminal state.

Parameters
Name Description
request SendMessageRequest

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
AsyncServerStreamingCallStreamResponse

The call object.