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.DataA2AServiceClientNamespace
Google.Cloud.GeminiDataAnalytics.V1BetaAssembly
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 |
CallInvokerThe callInvoker to use to make remote calls. |
DataA2AServiceClient(ChannelBase)
public DataA2AServiceClient(ChannelBase channel)Creates a new client for DataA2AService
| Parameter | |
|---|---|
| Name | Description |
channel |
ChannelBaseThe 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 |
ClientBaseClientBaseConfigurationThe 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 |
GetAgentCardRequestThe request to send to the server. |
options |
CallOptionsThe 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 |
GetAgentCardRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn 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 |
GetAgentCardRequestThe request to send to the server. |
options |
CallOptionsThe 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 |
GetAgentCardRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn 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 |
|
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 |
SendMessageRequestThe request to send to the server. |
options |
CallOptionsThe 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 |
SendMessageRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn 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 |
SendMessageRequestThe request to send to the server. |
options |
CallOptionsThe 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 |
SendMessageRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn 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 |
SendMessageRequestThe request to send to the server. |
options |
CallOptionsThe 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 |
SendMessageRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncServerStreamingCallStreamResponse |
The call object. |