public static class ServiceCollectionExtensions
Reference documentation and code samples for the Discovery Engine v1beta API class ServiceCollectionExtensions.
Static class to provide extension methods to configure API clients.
Namespace
Microsoft.Extensions.DependencyInjectionAssembly
Google.Cloud.DiscoveryEngine.V1Beta.dll
Methods
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 |
IServiceCollection The service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionCompletionServiceClientBuilder An 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 |
IServiceCollection The service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionSystem.IServiceProviderCompletionServiceClientBuilder An 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 |
IServiceCollection The service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionControlServiceClientBuilder An 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 |
IServiceCollection The service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionSystem.IServiceProviderControlServiceClientBuilder An 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 |
IServiceCollection The service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionConversationalSearchServiceClientBuilder An 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 |
IServiceCollection The service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionSystem.IServiceProviderConversationalSearchServiceClientBuilder An optional action to invoke on the client builder. This is invoked before services from
|
Returns | |
---|---|
Type | Description |
IServiceCollection |
AddDataStoreServiceClient(IServiceCollection, Action<DataStoreServiceClientBuilder>)
public static IServiceCollection AddDataStoreServiceClient(this IServiceCollection services, Action<DataStoreServiceClientBuilder> action = null)
Adds a singleton DataStoreServiceClient to services
.
Parameters | |
---|---|
Name | Description |
services |
IServiceCollection The service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionDataStoreServiceClientBuilder An optional action to invoke on the client builder. This is invoked before services from
|
Returns | |
---|---|
Type | Description |
IServiceCollection |
AddDataStoreServiceClient(IServiceCollection, Action<IServiceProvider, DataStoreServiceClientBuilder>)
public static IServiceCollection AddDataStoreServiceClient(this IServiceCollection services, Action<IServiceProvider, DataStoreServiceClientBuilder> action)
Adds a singleton DataStoreServiceClient to services
.
Parameters | |
---|---|
Name | Description |
services |
IServiceCollection The service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionSystem.IServiceProviderDataStoreServiceClientBuilder An optional action to invoke on the client builder. This is invoked before services from
|
Returns | |
---|---|
Type | Description |
IServiceCollection |
AddDocumentServiceClient(IServiceCollection, Action<DocumentServiceClientBuilder>)
public static IServiceCollection AddDocumentServiceClient(this IServiceCollection services, Action<DocumentServiceClientBuilder> action = null)
Adds a singleton DocumentServiceClient to services
.
Parameters | |
---|---|
Name | Description |
services |
IServiceCollection The service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionDocumentServiceClientBuilder An optional action to invoke on the client builder. This is invoked before services from
|
Returns | |
---|---|
Type | Description |
IServiceCollection |
AddDocumentServiceClient(IServiceCollection, Action<IServiceProvider, DocumentServiceClientBuilder>)
public static IServiceCollection AddDocumentServiceClient(this IServiceCollection services, Action<IServiceProvider, DocumentServiceClientBuilder> action)
Adds a singleton DocumentServiceClient to services
.
Parameters | |
---|---|
Name | Description |
services |
IServiceCollection The service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionSystem.IServiceProviderDocumentServiceClientBuilder An optional action to invoke on the client builder. This is invoked before services from
|
Returns | |
---|---|
Type | Description |
IServiceCollection |
AddEngineServiceClient(IServiceCollection, Action<EngineServiceClientBuilder>)
public static IServiceCollection AddEngineServiceClient(this IServiceCollection services, Action<EngineServiceClientBuilder> action = null)
Adds a singleton EngineServiceClient to services
.
Parameters | |
---|---|
Name | Description |
services |
IServiceCollection The service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionEngineServiceClientBuilder An optional action to invoke on the client builder. This is invoked before services from
|
Returns | |
---|---|
Type | Description |
IServiceCollection |
AddEngineServiceClient(IServiceCollection, Action<IServiceProvider, EngineServiceClientBuilder>)
public static IServiceCollection AddEngineServiceClient(this IServiceCollection services, Action<IServiceProvider, EngineServiceClientBuilder> action)
Adds a singleton EngineServiceClient to services
.
Parameters | |
---|---|
Name | Description |
services |
IServiceCollection The service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionSystem.IServiceProviderEngineServiceClientBuilder An optional action to invoke on the client builder. This is invoked before services from
|
Returns | |
---|---|
Type | Description |
IServiceCollection |
AddEvaluationServiceClient(IServiceCollection, Action<EvaluationServiceClientBuilder>)
public static IServiceCollection AddEvaluationServiceClient(this IServiceCollection services, Action<EvaluationServiceClientBuilder> action = null)
Adds a singleton EvaluationServiceClient to services
.
Parameters | |
---|---|
Name | Description |
services |
IServiceCollection The service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionEvaluationServiceClientBuilder An optional action to invoke on the client builder. This is invoked before services from
|
Returns | |
---|---|
Type | Description |
IServiceCollection |
AddEvaluationServiceClient(IServiceCollection, Action<IServiceProvider, EvaluationServiceClientBuilder>)
public static IServiceCollection AddEvaluationServiceClient(this IServiceCollection services, Action<IServiceProvider, EvaluationServiceClientBuilder> action)
Adds a singleton EvaluationServiceClient to services
.
Parameters | |
---|---|
Name | Description |
services |
IServiceCollection The service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionSystem.IServiceProviderEvaluationServiceClientBuilder An optional action to invoke on the client builder. This is invoked before services from
|
Returns | |
---|---|
Type | Description |
IServiceCollection |
AddGroundedGenerationServiceClient(IServiceCollection, Action<GroundedGenerationServiceClientBuilder>)
public static IServiceCollection AddGroundedGenerationServiceClient(this IServiceCollection services, Action<GroundedGenerationServiceClientBuilder> action = null)
Adds a singleton GroundedGenerationServiceClient to services
.
Parameters | |
---|---|
Name | Description |
services |
IServiceCollection The service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionGroundedGenerationServiceClientBuilder An optional action to invoke on the client builder. This is invoked before services from
|
Returns | |
---|---|
Type | Description |
IServiceCollection |
AddGroundedGenerationServiceClient(IServiceCollection, Action<IServiceProvider, GroundedGenerationServiceClientBuilder>)
public static IServiceCollection AddGroundedGenerationServiceClient(this IServiceCollection services, Action<IServiceProvider, GroundedGenerationServiceClientBuilder> action)
Adds a singleton GroundedGenerationServiceClient to services
.
Parameters | |
---|---|
Name | Description |
services |
IServiceCollection The service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionSystem.IServiceProviderGroundedGenerationServiceClientBuilder An optional action to invoke on the client builder. This is invoked before services from
|
Returns | |
---|---|
Type | Description |
IServiceCollection |
AddProjectServiceClient(IServiceCollection, Action<ProjectServiceClientBuilder>)
public static IServiceCollection AddProjectServiceClient(this IServiceCollection services, Action<ProjectServiceClientBuilder> action = null)
Adds a singleton ProjectServiceClient to services
.
Parameters | |
---|---|
Name | Description |
services |
IServiceCollection The service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionProjectServiceClientBuilder An optional action to invoke on the client builder. This is invoked before services from
|
Returns | |
---|---|
Type | Description |
IServiceCollection |
AddProjectServiceClient(IServiceCollection, Action<IServiceProvider, ProjectServiceClientBuilder>)
public static IServiceCollection AddProjectServiceClient(this IServiceCollection services, Action<IServiceProvider, ProjectServiceClientBuilder> action)
Adds a singleton ProjectServiceClient to services
.
Parameters | |
---|---|
Name | Description |
services |
IServiceCollection The service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionSystem.IServiceProviderProjectServiceClientBuilder An optional action to invoke on the client builder. This is invoked before services from
|
Returns | |
---|---|
Type | Description |
IServiceCollection |
AddRankServiceClient(IServiceCollection, Action<RankServiceClientBuilder>)
public static IServiceCollection AddRankServiceClient(this IServiceCollection services, Action<RankServiceClientBuilder> action = null)
Adds a singleton RankServiceClient to services
.
Parameters | |
---|---|
Name | Description |
services |
IServiceCollection The service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionRankServiceClientBuilder An optional action to invoke on the client builder. This is invoked before services from
|
Returns | |
---|---|
Type | Description |
IServiceCollection |
AddRankServiceClient(IServiceCollection, Action<IServiceProvider, RankServiceClientBuilder>)
public static IServiceCollection AddRankServiceClient(this IServiceCollection services, Action<IServiceProvider, RankServiceClientBuilder> action)
Adds a singleton RankServiceClient to services
.
Parameters | |
---|---|
Name | Description |
services |
IServiceCollection The service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionSystem.IServiceProviderRankServiceClientBuilder An optional action to invoke on the client builder. This is invoked before services from
|
Returns | |
---|---|
Type | Description |
IServiceCollection |
AddRecommendationServiceClient(IServiceCollection, Action<RecommendationServiceClientBuilder>)
public static IServiceCollection AddRecommendationServiceClient(this IServiceCollection services, Action<RecommendationServiceClientBuilder> action = null)
Adds a singleton RecommendationServiceClient to services
.
Parameters | |
---|---|
Name | Description |
services |
IServiceCollection The service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionRecommendationServiceClientBuilder An optional action to invoke on the client builder. This is invoked before services from
|
Returns | |
---|---|
Type | Description |
IServiceCollection |
AddRecommendationServiceClient(IServiceCollection, Action<IServiceProvider, RecommendationServiceClientBuilder>)
public static IServiceCollection AddRecommendationServiceClient(this IServiceCollection services, Action<IServiceProvider, RecommendationServiceClientBuilder> action)
Adds a singleton RecommendationServiceClient to services
.
Parameters | |
---|---|
Name | Description |
services |
IServiceCollection The service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionSystem.IServiceProviderRecommendationServiceClientBuilder An optional action to invoke on the client builder. This is invoked before services from
|
Returns | |
---|---|
Type | Description |
IServiceCollection |
AddSampleQueryServiceClient(IServiceCollection, Action<SampleQueryServiceClientBuilder>)
public static IServiceCollection AddSampleQueryServiceClient(this IServiceCollection services, Action<SampleQueryServiceClientBuilder> action = null)
Adds a singleton SampleQueryServiceClient to services
.
Parameters | |
---|---|
Name | Description |
services |
IServiceCollection The service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionSampleQueryServiceClientBuilder An optional action to invoke on the client builder. This is invoked before services from
|
Returns | |
---|---|
Type | Description |
IServiceCollection |
AddSampleQueryServiceClient(IServiceCollection, Action<IServiceProvider, SampleQueryServiceClientBuilder>)
public static IServiceCollection AddSampleQueryServiceClient(this IServiceCollection services, Action<IServiceProvider, SampleQueryServiceClientBuilder> action)
Adds a singleton SampleQueryServiceClient to services
.
Parameters | |
---|---|
Name | Description |
services |
IServiceCollection The service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionSystem.IServiceProviderSampleQueryServiceClientBuilder An optional action to invoke on the client builder. This is invoked before services from
|
Returns | |
---|---|
Type | Description |
IServiceCollection |
AddSampleQuerySetServiceClient(IServiceCollection, Action<SampleQuerySetServiceClientBuilder>)
public static IServiceCollection AddSampleQuerySetServiceClient(this IServiceCollection services, Action<SampleQuerySetServiceClientBuilder> action = null)
Adds a singleton SampleQuerySetServiceClient to services
.
Parameters | |
---|---|
Name | Description |
services |
IServiceCollection The service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionSampleQuerySetServiceClientBuilder An optional action to invoke on the client builder. This is invoked before services from
|
Returns | |
---|---|
Type | Description |
IServiceCollection |
AddSampleQuerySetServiceClient(IServiceCollection, Action<IServiceProvider, SampleQuerySetServiceClientBuilder>)
public static IServiceCollection AddSampleQuerySetServiceClient(this IServiceCollection services, Action<IServiceProvider, SampleQuerySetServiceClientBuilder> action)
Adds a singleton SampleQuerySetServiceClient to services
.
Parameters | |
---|---|
Name | Description |
services |
IServiceCollection The service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionSystem.IServiceProviderSampleQuerySetServiceClientBuilder An optional action to invoke on the client builder. This is invoked before services from
|
Returns | |
---|---|
Type | Description |
IServiceCollection |
AddSchemaServiceClient(IServiceCollection, Action<SchemaServiceClientBuilder>)
public static IServiceCollection AddSchemaServiceClient(this IServiceCollection services, Action<SchemaServiceClientBuilder> action = null)
Adds a singleton SchemaServiceClient to services
.
Parameters | |
---|---|
Name | Description |
services |
IServiceCollection The service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionSchemaServiceClientBuilder An optional action to invoke on the client builder. This is invoked before services from
|
Returns | |
---|---|
Type | Description |
IServiceCollection |
AddSchemaServiceClient(IServiceCollection, Action<IServiceProvider, SchemaServiceClientBuilder>)
public static IServiceCollection AddSchemaServiceClient(this IServiceCollection services, Action<IServiceProvider, SchemaServiceClientBuilder> action)
Adds a singleton SchemaServiceClient to services
.
Parameters | |
---|---|
Name | Description |
services |
IServiceCollection The service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionSystem.IServiceProviderSchemaServiceClientBuilder An 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 |
IServiceCollection The service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionSearchServiceClientBuilder An 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 |
IServiceCollection The service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionSystem.IServiceProviderSearchServiceClientBuilder An optional action to invoke on the client builder. This is invoked before services from
|
Returns | |
---|---|
Type | Description |
IServiceCollection |
AddSearchTuningServiceClient(IServiceCollection, Action<SearchTuningServiceClientBuilder>)
public static IServiceCollection AddSearchTuningServiceClient(this IServiceCollection services, Action<SearchTuningServiceClientBuilder> action = null)
Adds a singleton SearchTuningServiceClient to services
.
Parameters | |
---|---|
Name | Description |
services |
IServiceCollection The service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionSearchTuningServiceClientBuilder An optional action to invoke on the client builder. This is invoked before services from
|
Returns | |
---|---|
Type | Description |
IServiceCollection |
AddSearchTuningServiceClient(IServiceCollection, Action<IServiceProvider, SearchTuningServiceClientBuilder>)
public static IServiceCollection AddSearchTuningServiceClient(this IServiceCollection services, Action<IServiceProvider, SearchTuningServiceClientBuilder> action)
Adds a singleton SearchTuningServiceClient to services
.
Parameters | |
---|---|
Name | Description |
services |
IServiceCollection The service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionSystem.IServiceProviderSearchTuningServiceClientBuilder An 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 |
IServiceCollection The service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionServingConfigServiceClientBuilder An 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 |
IServiceCollection The service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionSystem.IServiceProviderServingConfigServiceClientBuilder An optional action to invoke on the client builder. This is invoked before services from
|
Returns | |
---|---|
Type | Description |
IServiceCollection |
AddSiteSearchEngineServiceClient(IServiceCollection, Action<SiteSearchEngineServiceClientBuilder>)
public static IServiceCollection AddSiteSearchEngineServiceClient(this IServiceCollection services, Action<SiteSearchEngineServiceClientBuilder> action = null)
Adds a singleton SiteSearchEngineServiceClient to services
.
Parameters | |
---|---|
Name | Description |
services |
IServiceCollection The service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionSiteSearchEngineServiceClientBuilder An optional action to invoke on the client builder. This is invoked before services from
|
Returns | |
---|---|
Type | Description |
IServiceCollection |
AddSiteSearchEngineServiceClient(IServiceCollection, Action<IServiceProvider, SiteSearchEngineServiceClientBuilder>)
public static IServiceCollection AddSiteSearchEngineServiceClient(this IServiceCollection services, Action<IServiceProvider, SiteSearchEngineServiceClientBuilder> action)
Adds a singleton SiteSearchEngineServiceClient to services
.
Parameters | |
---|---|
Name | Description |
services |
IServiceCollection The service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionSystem.IServiceProviderSiteSearchEngineServiceClientBuilder An 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 |
IServiceCollection The service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionUserEventServiceClientBuilder An 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 |
IServiceCollection The service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionSystem.IServiceProviderUserEventServiceClientBuilder An optional action to invoke on the client builder. This is invoked before services from
|
Returns | |
---|---|
Type | Description |
IServiceCollection |