public sealed class ContextRetrievalServiceClientImpl : ContextRetrievalServiceClient
Reference documentation and code samples for the Data Analytics API with Gemini v1beta API class ContextRetrievalServiceClientImpl.
ContextRetrievalService client wrapper implementation, for convenient use.
Namespace
Google.Cloud.GeminiDataAnalytics.V1BetaAssembly
Google.Cloud.GeminiDataAnalytics.V1Beta.dll
Remarks
Service to ask a natural language question with a provided project, returns BigQuery tables that are relevant to the question within the project scope that is accessible to the user, along with contextual data including table schema information as well as sample values.
Constructors
ContextRetrievalServiceClientImpl(ContextRetrievalServiceClient, ContextRetrievalServiceSettings, ILogger)
public ContextRetrievalServiceClientImpl(ContextRetrievalService.ContextRetrievalServiceClient grpcClient, ContextRetrievalServiceSettings settings, ILogger logger)
Constructs a client wrapper for the ContextRetrievalService service, with the specified gRPC client and settings.
Parameters | |
---|---|
Name | Description |
grpcClient |
ContextRetrievalServiceContextRetrievalServiceClient The underlying gRPC client. |
settings |
ContextRetrievalServiceSettings The base ContextRetrievalServiceSettings used within this client. |
logger |
ILogger Optional ILogger to use within this client. |
Properties
GrpcClient
public override ContextRetrievalService.ContextRetrievalServiceClient GrpcClient { get; }
The underlying gRPC ContextRetrievalService client
Property Value | |
---|---|
Type | Description |
ContextRetrievalServiceContextRetrievalServiceClient |
LocationsClient
public override LocationsClient LocationsClient { get; }
The LocationsClient associated with this client.
Property Value | |
---|---|
Type | Description |
LocationsClient |
Methods
RetrieveBigQueryRecentRelevantTables(RetrieveBigQueryRecentRelevantTablesRequest, CallSettings)
public override RetrieveBigQueryRecentRelevantTablesResponse RetrieveBigQueryRecentRelevantTables(RetrieveBigQueryRecentRelevantTablesRequest request, CallSettings callSettings = null)
Retrieves BigQuery table references from recently accessed tables.
Parameters | |
---|---|
Name | Description |
request |
RetrieveBigQueryRecentRelevantTablesRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
RetrieveBigQueryRecentRelevantTablesResponse |
The RPC response. |
RetrieveBigQueryRecentRelevantTablesAsync(RetrieveBigQueryRecentRelevantTablesRequest, CallSettings)
public override Task<RetrieveBigQueryRecentRelevantTablesResponse> RetrieveBigQueryRecentRelevantTablesAsync(RetrieveBigQueryRecentRelevantTablesRequest request, CallSettings callSettings = null)
Retrieves BigQuery table references from recently accessed tables.
Parameters | |
---|---|
Name | Description |
request |
RetrieveBigQueryRecentRelevantTablesRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskRetrieveBigQueryRecentRelevantTablesResponse |
A Task containing the RPC response. |
RetrieveBigQueryTableContext(RetrieveBigQueryTableContextRequest, CallSettings)
public override RetrieveBigQueryTableContextResponse RetrieveBigQueryTableContext(RetrieveBigQueryTableContextRequest request, CallSettings callSettings = null)
Retrieves BigQuery table contextual data for provided table references. Contextual data includes table schema information as well as sample values.
Parameters | |
---|---|
Name | Description |
request |
RetrieveBigQueryTableContextRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
RetrieveBigQueryTableContextResponse |
The RPC response. |
RetrieveBigQueryTableContextAsync(RetrieveBigQueryTableContextRequest, CallSettings)
public override Task<RetrieveBigQueryTableContextResponse> RetrieveBigQueryTableContextAsync(RetrieveBigQueryTableContextRequest request, CallSettings callSettings = null)
Retrieves BigQuery table contextual data for provided table references. Contextual data includes table schema information as well as sample values.
Parameters | |
---|---|
Name | Description |
request |
RetrieveBigQueryTableContextRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskRetrieveBigQueryTableContextResponse |
A Task containing the RPC response. |
RetrieveBigQueryTableContexts(RetrieveBigQueryTableContextsRequest, CallSettings)
public override RetrieveBigQueryTableContextsResponse RetrieveBigQueryTableContexts(RetrieveBigQueryTableContextsRequest request, CallSettings callSettings = null)
Retrieves BigQuery table contextual data for provided table references. Contextual data includes table schema information as well as sample values.
Parameters | |
---|---|
Name | Description |
request |
RetrieveBigQueryTableContextsRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
RetrieveBigQueryTableContextsResponse |
The RPC response. |
RetrieveBigQueryTableContextsAsync(RetrieveBigQueryTableContextsRequest, CallSettings)
public override Task<RetrieveBigQueryTableContextsResponse> RetrieveBigQueryTableContextsAsync(RetrieveBigQueryTableContextsRequest request, CallSettings callSettings = null)
Retrieves BigQuery table contextual data for provided table references. Contextual data includes table schema information as well as sample values.
Parameters | |
---|---|
Name | Description |
request |
RetrieveBigQueryTableContextsRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskRetrieveBigQueryTableContextsResponse |
A Task containing the RPC response. |
RetrieveBigQueryTableContextsFromRecentTables(RetrieveBigQueryTableContextsFromRecentTablesRequest, CallSettings)
public override RetrieveBigQueryTableContextsFromRecentTablesResponse RetrieveBigQueryTableContextsFromRecentTables(RetrieveBigQueryTableContextsFromRecentTablesRequest request, CallSettings callSettings = null)
Retrieves BigQuery table contextual data from recently accessed tables. Contextual data includes table schema information as well as sample values.
Parameters | |
---|---|
Name | Description |
request |
RetrieveBigQueryTableContextsFromRecentTablesRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
RetrieveBigQueryTableContextsFromRecentTablesResponse |
The RPC response. |
RetrieveBigQueryTableContextsFromRecentTablesAsync(RetrieveBigQueryTableContextsFromRecentTablesRequest, CallSettings)
public override Task<RetrieveBigQueryTableContextsFromRecentTablesResponse> RetrieveBigQueryTableContextsFromRecentTablesAsync(RetrieveBigQueryTableContextsFromRecentTablesRequest request, CallSettings callSettings = null)
Retrieves BigQuery table contextual data from recently accessed tables. Contextual data includes table schema information as well as sample values.
Parameters | |
---|---|
Name | Description |
request |
RetrieveBigQueryTableContextsFromRecentTablesRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskRetrieveBigQueryTableContextsFromRecentTablesResponse |
A Task containing the RPC response. |
RetrieveBigQueryTableSuggestedDescriptions(RetrieveBigQueryTableSuggestedDescriptionsRequest, CallSettings)
public override RetrieveBigQueryTableSuggestedDescriptionsResponse RetrieveBigQueryTableSuggestedDescriptions(RetrieveBigQueryTableSuggestedDescriptionsRequest request, CallSettings callSettings = null)
Retrieves BigQuery table schema with suggested table and column descriptions.
Parameters | |
---|---|
Name | Description |
request |
RetrieveBigQueryTableSuggestedDescriptionsRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
RetrieveBigQueryTableSuggestedDescriptionsResponse |
The RPC response. |
RetrieveBigQueryTableSuggestedDescriptionsAsync(RetrieveBigQueryTableSuggestedDescriptionsRequest, CallSettings)
public override Task<RetrieveBigQueryTableSuggestedDescriptionsResponse> RetrieveBigQueryTableSuggestedDescriptionsAsync(RetrieveBigQueryTableSuggestedDescriptionsRequest request, CallSettings callSettings = null)
Retrieves BigQuery table schema with suggested table and column descriptions.
Parameters | |
---|---|
Name | Description |
request |
RetrieveBigQueryTableSuggestedDescriptionsRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskRetrieveBigQueryTableSuggestedDescriptionsResponse |
A Task containing the RPC response. |
RetrieveBigQueryTableSuggestedExamples(RetrieveBigQueryTableSuggestedExamplesRequest, CallSettings)
public override RetrieveBigQueryTableSuggestedExamplesResponse RetrieveBigQueryTableSuggestedExamples(RetrieveBigQueryTableSuggestedExamplesRequest request, CallSettings callSettings = null)
Retrieves BigQuery table schema with suggested NL-SQL examples.
Parameters | |
---|---|
Name | Description |
request |
RetrieveBigQueryTableSuggestedExamplesRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
RetrieveBigQueryTableSuggestedExamplesResponse |
The RPC response. |
RetrieveBigQueryTableSuggestedExamplesAsync(RetrieveBigQueryTableSuggestedExamplesRequest, CallSettings)
public override Task<RetrieveBigQueryTableSuggestedExamplesResponse> RetrieveBigQueryTableSuggestedExamplesAsync(RetrieveBigQueryTableSuggestedExamplesRequest request, CallSettings callSettings = null)
Retrieves BigQuery table schema with suggested NL-SQL examples.
Parameters | |
---|---|
Name | Description |
request |
RetrieveBigQueryTableSuggestedExamplesRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskRetrieveBigQueryTableSuggestedExamplesResponse |
A Task containing the RPC response. |