public abstract class ContextRetrievalServiceClient
Reference documentation and code samples for the Data Analytics API with Gemini v1beta API class ContextRetrievalServiceClient.
ContextRetrievalService client wrapper, for convenient use.
Derived Types
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.
Properties
DefaultEndpoint
public static string DefaultEndpoint { get; }
The default endpoint for the ContextRetrievalService service, which is a host of "geminidataanalytics.googleapis.com" and a port of 443.
Property Value | |
---|---|
Type | Description |
string |
DefaultScopes
public static IReadOnlyList<string> DefaultScopes { get; }
The default ContextRetrievalService scopes.
Property Value | |
---|---|
Type | Description |
IReadOnlyListstring |
The default ContextRetrievalService scopes are:
GrpcClient
public virtual ContextRetrievalService.ContextRetrievalServiceClient GrpcClient { get; }
The underlying gRPC ContextRetrievalService client
Property Value | |
---|---|
Type | Description |
ContextRetrievalServiceContextRetrievalServiceClient |
LocationsClient
public virtual LocationsClient LocationsClient { get; }
The LocationsClient associated with this client.
Property Value | |
---|---|
Type | Description |
LocationsClient |
ServiceMetadata
public static ServiceMetadata ServiceMetadata { get; }
The service metadata associated with this client type.
Property Value | |
---|---|
Type | Description |
ServiceMetadata |
Methods
Create()
public static ContextRetrievalServiceClient Create()
Synchronously creates a ContextRetrievalServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use ContextRetrievalServiceClientBuilder.
Returns | |
---|---|
Type | Description |
ContextRetrievalServiceClient |
The created ContextRetrievalServiceClient. |
CreateAsync(CancellationToken)
public static Task<ContextRetrievalServiceClient> CreateAsync(CancellationToken cancellationToken = default)
Asynchronously creates a ContextRetrievalServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use ContextRetrievalServiceClientBuilder.
Parameter | |
---|---|
Name | Description |
cancellationToken |
CancellationToken The CancellationToken to use while creating the client. |
Returns | |
---|---|
Type | Description |
TaskContextRetrievalServiceClient |
The task representing the created ContextRetrievalServiceClient. |
RetrieveBigQueryRecentRelevantTables(RetrieveBigQueryRecentRelevantTablesRequest, CallSettings)
public virtual 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. |
// Create client
ContextRetrievalServiceClient contextRetrievalServiceClient = ContextRetrievalServiceClient.Create();
// Initialize request argument(s)
RetrieveBigQueryRecentRelevantTablesRequest request = new RetrieveBigQueryRecentRelevantTablesRequest
{
Parent = "",
Query = "",
};
// Make the request
RetrieveBigQueryRecentRelevantTablesResponse response = contextRetrievalServiceClient.RetrieveBigQueryRecentRelevantTables(request);
RetrieveBigQueryRecentRelevantTablesAsync(RetrieveBigQueryRecentRelevantTablesRequest, CallSettings)
public virtual 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. |
// Create client
ContextRetrievalServiceClient contextRetrievalServiceClient = await ContextRetrievalServiceClient.CreateAsync();
// Initialize request argument(s)
RetrieveBigQueryRecentRelevantTablesRequest request = new RetrieveBigQueryRecentRelevantTablesRequest
{
Parent = "",
Query = "",
};
// Make the request
RetrieveBigQueryRecentRelevantTablesResponse response = await contextRetrievalServiceClient.RetrieveBigQueryRecentRelevantTablesAsync(request);
RetrieveBigQueryRecentRelevantTablesAsync(RetrieveBigQueryRecentRelevantTablesRequest, CancellationToken)
public virtual Task<RetrieveBigQueryRecentRelevantTablesResponse> RetrieveBigQueryRecentRelevantTablesAsync(RetrieveBigQueryRecentRelevantTablesRequest request, CancellationToken cancellationToken)
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. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskRetrieveBigQueryRecentRelevantTablesResponse |
A Task containing the RPC response. |
// Create client
ContextRetrievalServiceClient contextRetrievalServiceClient = await ContextRetrievalServiceClient.CreateAsync();
// Initialize request argument(s)
RetrieveBigQueryRecentRelevantTablesRequest request = new RetrieveBigQueryRecentRelevantTablesRequest
{
Parent = "",
Query = "",
};
// Make the request
RetrieveBigQueryRecentRelevantTablesResponse response = await contextRetrievalServiceClient.RetrieveBigQueryRecentRelevantTablesAsync(request);
RetrieveBigQueryTableContext(RetrieveBigQueryTableContextRequest, CallSettings)
public virtual 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. |
// Create client
ContextRetrievalServiceClient contextRetrievalServiceClient = ContextRetrievalServiceClient.Create();
// Initialize request argument(s)
RetrieveBigQueryTableContextRequest request = new RetrieveBigQueryTableContextRequest
{
Query = "",
DirectLookup = { new DirectLookup(), },
Parent = "",
};
// Make the request
RetrieveBigQueryTableContextResponse response = contextRetrievalServiceClient.RetrieveBigQueryTableContext(request);
RetrieveBigQueryTableContextAsync(RetrieveBigQueryTableContextRequest, CallSettings)
public virtual 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. |
// Create client
ContextRetrievalServiceClient contextRetrievalServiceClient = await ContextRetrievalServiceClient.CreateAsync();
// Initialize request argument(s)
RetrieveBigQueryTableContextRequest request = new RetrieveBigQueryTableContextRequest
{
Query = "",
DirectLookup = { new DirectLookup(), },
Parent = "",
};
// Make the request
RetrieveBigQueryTableContextResponse response = await contextRetrievalServiceClient.RetrieveBigQueryTableContextAsync(request);
RetrieveBigQueryTableContextAsync(RetrieveBigQueryTableContextRequest, CancellationToken)
public virtual Task<RetrieveBigQueryTableContextResponse> RetrieveBigQueryTableContextAsync(RetrieveBigQueryTableContextRequest request, CancellationToken cancellationToken)
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. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskRetrieveBigQueryTableContextResponse |
A Task containing the RPC response. |
// Create client
ContextRetrievalServiceClient contextRetrievalServiceClient = await ContextRetrievalServiceClient.CreateAsync();
// Initialize request argument(s)
RetrieveBigQueryTableContextRequest request = new RetrieveBigQueryTableContextRequest
{
Query = "",
DirectLookup = { new DirectLookup(), },
Parent = "",
};
// Make the request
RetrieveBigQueryTableContextResponse response = await contextRetrievalServiceClient.RetrieveBigQueryTableContextAsync(request);
RetrieveBigQueryTableContexts(RetrieveBigQueryTableContextsRequest, CallSettings)
public virtual 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. |
// Create client
ContextRetrievalServiceClient contextRetrievalServiceClient = ContextRetrievalServiceClient.Create();
// Initialize request argument(s)
RetrieveBigQueryTableContextsRequest request = new RetrieveBigQueryTableContextsRequest
{
Parent = "",
Query = "",
DirectLookups = { new DirectLookup(), },
};
// Make the request
RetrieveBigQueryTableContextsResponse response = contextRetrievalServiceClient.RetrieveBigQueryTableContexts(request);
RetrieveBigQueryTableContextsAsync(RetrieveBigQueryTableContextsRequest, CallSettings)
public virtual 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. |
// Create client
ContextRetrievalServiceClient contextRetrievalServiceClient = await ContextRetrievalServiceClient.CreateAsync();
// Initialize request argument(s)
RetrieveBigQueryTableContextsRequest request = new RetrieveBigQueryTableContextsRequest
{
Parent = "",
Query = "",
DirectLookups = { new DirectLookup(), },
};
// Make the request
RetrieveBigQueryTableContextsResponse response = await contextRetrievalServiceClient.RetrieveBigQueryTableContextsAsync(request);
RetrieveBigQueryTableContextsAsync(RetrieveBigQueryTableContextsRequest, CancellationToken)
public virtual Task<RetrieveBigQueryTableContextsResponse> RetrieveBigQueryTableContextsAsync(RetrieveBigQueryTableContextsRequest request, CancellationToken cancellationToken)
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. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskRetrieveBigQueryTableContextsResponse |
A Task containing the RPC response. |
// Create client
ContextRetrievalServiceClient contextRetrievalServiceClient = await ContextRetrievalServiceClient.CreateAsync();
// Initialize request argument(s)
RetrieveBigQueryTableContextsRequest request = new RetrieveBigQueryTableContextsRequest
{
Parent = "",
Query = "",
DirectLookups = { new DirectLookup(), },
};
// Make the request
RetrieveBigQueryTableContextsResponse response = await contextRetrievalServiceClient.RetrieveBigQueryTableContextsAsync(request);
RetrieveBigQueryTableContextsFromRecentTables(RetrieveBigQueryTableContextsFromRecentTablesRequest, CallSettings)
public virtual 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. |
// Create client
ContextRetrievalServiceClient contextRetrievalServiceClient = ContextRetrievalServiceClient.Create();
// Initialize request argument(s)
RetrieveBigQueryTableContextsFromRecentTablesRequest request = new RetrieveBigQueryTableContextsFromRecentTablesRequest
{
Parent = "",
Query = "",
};
// Make the request
RetrieveBigQueryTableContextsFromRecentTablesResponse response = contextRetrievalServiceClient.RetrieveBigQueryTableContextsFromRecentTables(request);
RetrieveBigQueryTableContextsFromRecentTablesAsync(RetrieveBigQueryTableContextsFromRecentTablesRequest, CallSettings)
public virtual 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. |
// Create client
ContextRetrievalServiceClient contextRetrievalServiceClient = await ContextRetrievalServiceClient.CreateAsync();
// Initialize request argument(s)
RetrieveBigQueryTableContextsFromRecentTablesRequest request = new RetrieveBigQueryTableContextsFromRecentTablesRequest
{
Parent = "",
Query = "",
};
// Make the request
RetrieveBigQueryTableContextsFromRecentTablesResponse response = await contextRetrievalServiceClient.RetrieveBigQueryTableContextsFromRecentTablesAsync(request);
RetrieveBigQueryTableContextsFromRecentTablesAsync(RetrieveBigQueryTableContextsFromRecentTablesRequest, CancellationToken)
public virtual Task<RetrieveBigQueryTableContextsFromRecentTablesResponse> RetrieveBigQueryTableContextsFromRecentTablesAsync(RetrieveBigQueryTableContextsFromRecentTablesRequest request, CancellationToken cancellationToken)
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. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskRetrieveBigQueryTableContextsFromRecentTablesResponse |
A Task containing the RPC response. |
// Create client
ContextRetrievalServiceClient contextRetrievalServiceClient = await ContextRetrievalServiceClient.CreateAsync();
// Initialize request argument(s)
RetrieveBigQueryTableContextsFromRecentTablesRequest request = new RetrieveBigQueryTableContextsFromRecentTablesRequest
{
Parent = "",
Query = "",
};
// Make the request
RetrieveBigQueryTableContextsFromRecentTablesResponse response = await contextRetrievalServiceClient.RetrieveBigQueryTableContextsFromRecentTablesAsync(request);
RetrieveBigQueryTableSuggestedDescriptions(RetrieveBigQueryTableSuggestedDescriptionsRequest, CallSettings)
public virtual 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. |
// Create client
ContextRetrievalServiceClient contextRetrievalServiceClient = ContextRetrievalServiceClient.Create();
// Initialize request argument(s)
RetrieveBigQueryTableSuggestedDescriptionsRequest request = new RetrieveBigQueryTableSuggestedDescriptionsRequest
{
Parent = "",
DirectLookup = { new DirectLookup(), },
};
// Make the request
RetrieveBigQueryTableSuggestedDescriptionsResponse response = contextRetrievalServiceClient.RetrieveBigQueryTableSuggestedDescriptions(request);
RetrieveBigQueryTableSuggestedDescriptionsAsync(RetrieveBigQueryTableSuggestedDescriptionsRequest, CallSettings)
public virtual 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. |
// Create client
ContextRetrievalServiceClient contextRetrievalServiceClient = await ContextRetrievalServiceClient.CreateAsync();
// Initialize request argument(s)
RetrieveBigQueryTableSuggestedDescriptionsRequest request = new RetrieveBigQueryTableSuggestedDescriptionsRequest
{
Parent = "",
DirectLookup = { new DirectLookup(), },
};
// Make the request
RetrieveBigQueryTableSuggestedDescriptionsResponse response = await contextRetrievalServiceClient.RetrieveBigQueryTableSuggestedDescriptionsAsync(request);
RetrieveBigQueryTableSuggestedDescriptionsAsync(RetrieveBigQueryTableSuggestedDescriptionsRequest, CancellationToken)
public virtual Task<RetrieveBigQueryTableSuggestedDescriptionsResponse> RetrieveBigQueryTableSuggestedDescriptionsAsync(RetrieveBigQueryTableSuggestedDescriptionsRequest request, CancellationToken cancellationToken)
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. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskRetrieveBigQueryTableSuggestedDescriptionsResponse |
A Task containing the RPC response. |
// Create client
ContextRetrievalServiceClient contextRetrievalServiceClient = await ContextRetrievalServiceClient.CreateAsync();
// Initialize request argument(s)
RetrieveBigQueryTableSuggestedDescriptionsRequest request = new RetrieveBigQueryTableSuggestedDescriptionsRequest
{
Parent = "",
DirectLookup = { new DirectLookup(), },
};
// Make the request
RetrieveBigQueryTableSuggestedDescriptionsResponse response = await contextRetrievalServiceClient.RetrieveBigQueryTableSuggestedDescriptionsAsync(request);
RetrieveBigQueryTableSuggestedExamples(RetrieveBigQueryTableSuggestedExamplesRequest, CallSettings)
public virtual 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. |
// Create client
ContextRetrievalServiceClient contextRetrievalServiceClient = ContextRetrievalServiceClient.Create();
// Initialize request argument(s)
RetrieveBigQueryTableSuggestedExamplesRequest request = new RetrieveBigQueryTableSuggestedExamplesRequest
{
Parent = "",
DirectLookup = { new DirectLookup(), },
};
// Make the request
RetrieveBigQueryTableSuggestedExamplesResponse response = contextRetrievalServiceClient.RetrieveBigQueryTableSuggestedExamples(request);
RetrieveBigQueryTableSuggestedExamplesAsync(RetrieveBigQueryTableSuggestedExamplesRequest, CallSettings)
public virtual 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. |
// Create client
ContextRetrievalServiceClient contextRetrievalServiceClient = await ContextRetrievalServiceClient.CreateAsync();
// Initialize request argument(s)
RetrieveBigQueryTableSuggestedExamplesRequest request = new RetrieveBigQueryTableSuggestedExamplesRequest
{
Parent = "",
DirectLookup = { new DirectLookup(), },
};
// Make the request
RetrieveBigQueryTableSuggestedExamplesResponse response = await contextRetrievalServiceClient.RetrieveBigQueryTableSuggestedExamplesAsync(request);
RetrieveBigQueryTableSuggestedExamplesAsync(RetrieveBigQueryTableSuggestedExamplesRequest, CancellationToken)
public virtual Task<RetrieveBigQueryTableSuggestedExamplesResponse> RetrieveBigQueryTableSuggestedExamplesAsync(RetrieveBigQueryTableSuggestedExamplesRequest request, CancellationToken cancellationToken)
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. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskRetrieveBigQueryTableSuggestedExamplesResponse |
A Task containing the RPC response. |
// Create client
ContextRetrievalServiceClient contextRetrievalServiceClient = await ContextRetrievalServiceClient.CreateAsync();
// Initialize request argument(s)
RetrieveBigQueryTableSuggestedExamplesRequest request = new RetrieveBigQueryTableSuggestedExamplesRequest
{
Parent = "",
DirectLookup = { new DirectLookup(), },
};
// Make the request
RetrieveBigQueryTableSuggestedExamplesResponse response = await contextRetrievalServiceClient.RetrieveBigQueryTableSuggestedExamplesAsync(request);
ShutdownDefaultChannelsAsync()
public static Task ShutdownDefaultChannelsAsync()
Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.
Returns | |
---|---|
Type | Description |
Task |
A task representing the asynchronous shutdown operation. |
After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.