public static class ServiceCollectionExtensionsReference documentation and code samples for the Retail v2 API class ServiceCollectionExtensions.
Static class to provide extension methods to configure API clients.
Namespace
Microsoft.Extensions.DependencyInjectionAssembly
Google.Cloud.Retail.V2.dll
Methods
AddAnalyticsServiceClient(IServiceCollection, Action<AnalyticsServiceClientBuilder>)
public static IServiceCollection AddAnalyticsServiceClient(this IServiceCollection services, Action<AnalyticsServiceClientBuilder> action = null)Adds a singleton AnalyticsServiceClient 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 |
ActionAnalyticsServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddAnalyticsServiceClient(IServiceCollection, Action<IServiceProvider, AnalyticsServiceClientBuilder>)
public static IServiceCollection AddAnalyticsServiceClient(this IServiceCollection services, Action<IServiceProvider, AnalyticsServiceClientBuilder> action)Adds a singleton AnalyticsServiceClient 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.IServiceProviderAnalyticsServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddCatalogServiceClient(IServiceCollection, Action<CatalogServiceClientBuilder>)
public static IServiceCollection AddCatalogServiceClient(this IServiceCollection services, Action<CatalogServiceClientBuilder> action = null)Adds a singleton CatalogServiceClient 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 |
ActionCatalogServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddCatalogServiceClient(IServiceCollection, Action<IServiceProvider, CatalogServiceClientBuilder>)
public static IServiceCollection AddCatalogServiceClient(this IServiceCollection services, Action<IServiceProvider, CatalogServiceClientBuilder> action)Adds a singleton CatalogServiceClient 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.IServiceProviderCatalogServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddCompletionServiceClient(IServiceCollection, Action<CompletionServiceClientBuilder>)
public static IServiceCollection AddCompletionServiceClient(this IServiceCollection services, Action<CompletionServiceClientBuilder> action = null)Adds a singleton CompletionServiceClient 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 |
ActionCompletionServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddCompletionServiceClient(IServiceCollection, Action<IServiceProvider, CompletionServiceClientBuilder>)
public static IServiceCollection AddCompletionServiceClient(this IServiceCollection services, Action<IServiceProvider, CompletionServiceClientBuilder> action)Adds a singleton CompletionServiceClient 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.IServiceProviderCompletionServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddControlServiceClient(IServiceCollection, Action<ControlServiceClientBuilder>)
public static IServiceCollection AddControlServiceClient(this IServiceCollection services, Action<ControlServiceClientBuilder> action = null)Adds a singleton ControlServiceClient 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 |
ActionControlServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddControlServiceClient(IServiceCollection, Action<IServiceProvider, ControlServiceClientBuilder>)
public static IServiceCollection AddControlServiceClient(this IServiceCollection services, Action<IServiceProvider, ControlServiceClientBuilder> action)Adds a singleton ControlServiceClient 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.IServiceProviderControlServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddConversationalSearchServiceClient(IServiceCollection, Action<ConversationalSearchServiceClientBuilder>)
public static IServiceCollection AddConversationalSearchServiceClient(this IServiceCollection services, Action<ConversationalSearchServiceClientBuilder> action = null)Adds a singleton ConversationalSearchServiceClient 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 |
ActionConversationalSearchServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddConversationalSearchServiceClient(IServiceCollection, Action<IServiceProvider, ConversationalSearchServiceClientBuilder>)
public static IServiceCollection AddConversationalSearchServiceClient(this IServiceCollection services, Action<IServiceProvider, ConversationalSearchServiceClientBuilder> action)Adds a singleton ConversationalSearchServiceClient 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.IServiceProviderConversationalSearchServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddGenerativeQuestionServiceClient(IServiceCollection, Action<GenerativeQuestionServiceClientBuilder>)
public static IServiceCollection AddGenerativeQuestionServiceClient(this IServiceCollection services, Action<GenerativeQuestionServiceClientBuilder> action = null)Adds a singleton GenerativeQuestionServiceClient 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 |
ActionGenerativeQuestionServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddGenerativeQuestionServiceClient(IServiceCollection, Action<IServiceProvider, GenerativeQuestionServiceClientBuilder>)
public static IServiceCollection AddGenerativeQuestionServiceClient(this IServiceCollection services, Action<IServiceProvider, GenerativeQuestionServiceClientBuilder> action)Adds a singleton GenerativeQuestionServiceClient 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.IServiceProviderGenerativeQuestionServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddModelServiceClient(IServiceCollection, Action<ModelServiceClientBuilder>)
public static IServiceCollection AddModelServiceClient(this IServiceCollection services, Action<ModelServiceClientBuilder> action = null)Adds a singleton ModelServiceClient 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 |
ActionModelServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddModelServiceClient(IServiceCollection, Action<IServiceProvider, ModelServiceClientBuilder>)
public static IServiceCollection AddModelServiceClient(this IServiceCollection services, Action<IServiceProvider, ModelServiceClientBuilder> action)Adds a singleton ModelServiceClient 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.IServiceProviderModelServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddPredictionServiceClient(IServiceCollection, Action<PredictionServiceClientBuilder>)
public static IServiceCollection AddPredictionServiceClient(this IServiceCollection services, Action<PredictionServiceClientBuilder> action = null)Adds a singleton PredictionServiceClient 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 |
ActionPredictionServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddPredictionServiceClient(IServiceCollection, Action<IServiceProvider, PredictionServiceClientBuilder>)
public static IServiceCollection AddPredictionServiceClient(this IServiceCollection services, Action<IServiceProvider, PredictionServiceClientBuilder> action)Adds a singleton PredictionServiceClient 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.IServiceProviderPredictionServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddProductServiceClient(IServiceCollection, Action<ProductServiceClientBuilder>)
public static IServiceCollection AddProductServiceClient(this IServiceCollection services, Action<ProductServiceClientBuilder> action = null)Adds a singleton ProductServiceClient 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 |
ActionProductServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddProductServiceClient(IServiceCollection, Action<IServiceProvider, ProductServiceClientBuilder>)
public static IServiceCollection AddProductServiceClient(this IServiceCollection services, Action<IServiceProvider, ProductServiceClientBuilder> action)Adds a singleton ProductServiceClient 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.IServiceProviderProductServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddSearchServiceClient(IServiceCollection, Action<SearchServiceClientBuilder>)
public static IServiceCollection AddSearchServiceClient(this IServiceCollection services, Action<SearchServiceClientBuilder> action = null)Adds a singleton SearchServiceClient 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 |
ActionSearchServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddSearchServiceClient(IServiceCollection, Action<IServiceProvider, SearchServiceClientBuilder>)
public static IServiceCollection AddSearchServiceClient(this IServiceCollection services, Action<IServiceProvider, SearchServiceClientBuilder> action)Adds a singleton SearchServiceClient 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.IServiceProviderSearchServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddServingConfigServiceClient(IServiceCollection, Action<ServingConfigServiceClientBuilder>)
public static IServiceCollection AddServingConfigServiceClient(this IServiceCollection services, Action<ServingConfigServiceClientBuilder> action = null)Adds a singleton ServingConfigServiceClient 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 |
ActionServingConfigServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddServingConfigServiceClient(IServiceCollection, Action<IServiceProvider, ServingConfigServiceClientBuilder>)
public static IServiceCollection AddServingConfigServiceClient(this IServiceCollection services, Action<IServiceProvider, ServingConfigServiceClientBuilder> action)Adds a singleton ServingConfigServiceClient 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.IServiceProviderServingConfigServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddUserEventServiceClient(IServiceCollection, Action<UserEventServiceClientBuilder>)
public static IServiceCollection AddUserEventServiceClient(this IServiceCollection services, Action<UserEventServiceClientBuilder> action = null)Adds a singleton UserEventServiceClient 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 |
ActionUserEventServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddUserEventServiceClient(IServiceCollection, Action<IServiceProvider, UserEventServiceClientBuilder>)
public static IServiceCollection AddUserEventServiceClient(this IServiceCollection services, Action<IServiceProvider, UserEventServiceClientBuilder> action)Adds a singleton UserEventServiceClient 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.IServiceProviderUserEventServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|