public static class ServiceCollectionExtensionsReference documentation and code samples for the Data Analytics API with Gemini v1beta API class ServiceCollectionExtensions.
Static class to provide extension methods to configure API clients.
Namespace
Microsoft.Extensions.DependencyInjectionAssembly
Google.Cloud.GeminiDataAnalytics.V1Beta.dll
Methods
AddDataA2AServiceClient(IServiceCollection, Action<DataA2AServiceClientBuilder>)
public static IServiceCollection AddDataA2AServiceClient(this IServiceCollection services, Action<DataA2AServiceClientBuilder> action = null)Adds a singleton DataA2AServiceClient to services.
| Parameters | |
|---|---|
| Name | Description |
services |
IServiceCollectionThe service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionDataA2AServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddDataA2AServiceClient(IServiceCollection, Action<IServiceProvider, DataA2AServiceClientBuilder>)
public static IServiceCollection AddDataA2AServiceClient(this IServiceCollection services, Action<IServiceProvider, DataA2AServiceClientBuilder> action)Adds a singleton DataA2AServiceClient to services.
| Parameters | |
|---|---|
| Name | Description |
services |
IServiceCollectionThe service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionSystem.IServiceProviderDataA2AServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddDataAgentServiceClient(IServiceCollection, Action<DataAgentServiceClientBuilder>)
public static IServiceCollection AddDataAgentServiceClient(this IServiceCollection services, Action<DataAgentServiceClientBuilder> action = null)Adds a singleton DataAgentServiceClient to services.
| Parameters | |
|---|---|
| Name | Description |
services |
IServiceCollectionThe service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionDataAgentServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddDataAgentServiceClient(IServiceCollection, Action<IServiceProvider, DataAgentServiceClientBuilder>)
public static IServiceCollection AddDataAgentServiceClient(this IServiceCollection services, Action<IServiceProvider, DataAgentServiceClientBuilder> action)Adds a singleton DataAgentServiceClient to services.
| Parameters | |
|---|---|
| Name | Description |
services |
IServiceCollectionThe service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionSystem.IServiceProviderDataAgentServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddDataChatServiceClient(IServiceCollection, Action<DataChatServiceClientBuilder>)
public static IServiceCollection AddDataChatServiceClient(this IServiceCollection services, Action<DataChatServiceClientBuilder> action = null)Adds a singleton DataChatServiceClient to services.
| Parameters | |
|---|---|
| Name | Description |
services |
IServiceCollectionThe service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionDataChatServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddDataChatServiceClient(IServiceCollection, Action<IServiceProvider, DataChatServiceClientBuilder>)
public static IServiceCollection AddDataChatServiceClient(this IServiceCollection services, Action<IServiceProvider, DataChatServiceClientBuilder> action)Adds a singleton DataChatServiceClient to services.
| Parameters | |
|---|---|
| Name | Description |
services |
IServiceCollectionThe service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionSystem.IServiceProviderDataChatServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|