Class ServiceCollectionExtensions
Static class to provide extension methods to configure API clients.
Namespace: Microsoft.Extensions.DependencyInjection
Assembly: Google.Cloud.Dialogflow.V2.dll
Syntax
public static class ServiceCollectionExtensions
Methods
AddAgentsClient(IServiceCollection, Action<AgentsClientBuilder>)
Adds a singleton AgentsClient to services
.
Declaration
public static IServiceCollection AddAgentsClient(this IServiceCollection services, Action<AgentsClientBuilder> action = null)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The service collection to add the client to. The services are used to configure the client when requested. |
Action<AgentsClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
Type | Description |
---|---|
IServiceCollection |
AddAgentsClient(IServiceCollection, Action<IServiceProvider, AgentsClientBuilder>)
Adds a singleton AgentsClient to services
.
Declaration
public static IServiceCollection AddAgentsClient(this IServiceCollection services, Action<IServiceProvider, AgentsClientBuilder> action)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The service collection to add the client to. The services are used to configure the client when requested. |
Action<IServiceProvider, AgentsClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
Type | Description |
---|---|
IServiceCollection |
AddAnswerRecordsClient(IServiceCollection, Action<AnswerRecordsClientBuilder>)
Adds a singleton AnswerRecordsClient to services
.
Declaration
public static IServiceCollection AddAnswerRecordsClient(this IServiceCollection services, Action<AnswerRecordsClientBuilder> action = null)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The service collection to add the client to. The services are used to configure the client when requested. |
Action<AnswerRecordsClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
Type | Description |
---|---|
IServiceCollection |
AddAnswerRecordsClient(IServiceCollection, Action<IServiceProvider, AnswerRecordsClientBuilder>)
Adds a singleton AnswerRecordsClient to services
.
Declaration
public static IServiceCollection AddAnswerRecordsClient(this IServiceCollection services, Action<IServiceProvider, AnswerRecordsClientBuilder> action)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The service collection to add the client to. The services are used to configure the client when requested. |
Action<IServiceProvider, AnswerRecordsClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
Type | Description |
---|---|
IServiceCollection |
AddContextsClient(IServiceCollection, Action<ContextsClientBuilder>)
Adds a singleton ContextsClient to services
.
Declaration
public static IServiceCollection AddContextsClient(this IServiceCollection services, Action<ContextsClientBuilder> action = null)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The service collection to add the client to. The services are used to configure the client when requested. |
Action<ContextsClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
Type | Description |
---|---|
IServiceCollection |
AddContextsClient(IServiceCollection, Action<IServiceProvider, ContextsClientBuilder>)
Adds a singleton ContextsClient to services
.
Declaration
public static IServiceCollection AddContextsClient(this IServiceCollection services, Action<IServiceProvider, ContextsClientBuilder> action)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The service collection to add the client to. The services are used to configure the client when requested. |
Action<IServiceProvider, ContextsClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
Type | Description |
---|---|
IServiceCollection |
AddConversationDatasetsClient(IServiceCollection, Action<ConversationDatasetsClientBuilder>)
Adds a singleton ConversationDatasetsClient to services
.
Declaration
public static IServiceCollection AddConversationDatasetsClient(this IServiceCollection services, Action<ConversationDatasetsClientBuilder> action = null)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The service collection to add the client to. The services are used to configure the client when requested. |
Action<ConversationDatasetsClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
Type | Description |
---|---|
IServiceCollection |
AddConversationDatasetsClient(IServiceCollection, Action<IServiceProvider, ConversationDatasetsClientBuilder>)
Adds a singleton ConversationDatasetsClient to services
.
Declaration
public static IServiceCollection AddConversationDatasetsClient(this IServiceCollection services, Action<IServiceProvider, ConversationDatasetsClientBuilder> action)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The service collection to add the client to. The services are used to configure the client when requested. |
Action<IServiceProvider, ConversationDatasetsClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
Type | Description |
---|---|
IServiceCollection |
AddConversationModelsClient(IServiceCollection, Action<ConversationModelsClientBuilder>)
Adds a singleton ConversationModelsClient to services
.
Declaration
public static IServiceCollection AddConversationModelsClient(this IServiceCollection services, Action<ConversationModelsClientBuilder> action = null)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The service collection to add the client to. The services are used to configure the client when requested. |
Action<ConversationModelsClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
Type | Description |
---|---|
IServiceCollection |
AddConversationModelsClient(IServiceCollection, Action<IServiceProvider, ConversationModelsClientBuilder>)
Adds a singleton ConversationModelsClient to services
.
Declaration
public static IServiceCollection AddConversationModelsClient(this IServiceCollection services, Action<IServiceProvider, ConversationModelsClientBuilder> action)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The service collection to add the client to. The services are used to configure the client when requested. |
Action<IServiceProvider, ConversationModelsClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
Type | Description |
---|---|
IServiceCollection |
AddConversationProfilesClient(IServiceCollection, Action<ConversationProfilesClientBuilder>)
Adds a singleton ConversationProfilesClient to services
.
Declaration
public static IServiceCollection AddConversationProfilesClient(this IServiceCollection services, Action<ConversationProfilesClientBuilder> action = null)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The service collection to add the client to. The services are used to configure the client when requested. |
Action<ConversationProfilesClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
Type | Description |
---|---|
IServiceCollection |
AddConversationProfilesClient(IServiceCollection, Action<IServiceProvider, ConversationProfilesClientBuilder>)
Adds a singleton ConversationProfilesClient to services
.
Declaration
public static IServiceCollection AddConversationProfilesClient(this IServiceCollection services, Action<IServiceProvider, ConversationProfilesClientBuilder> action)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The service collection to add the client to. The services are used to configure the client when requested. |
Action<IServiceProvider, ConversationProfilesClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
Type | Description |
---|---|
IServiceCollection |
AddConversationsClient(IServiceCollection, Action<ConversationsClientBuilder>)
Adds a singleton ConversationsClient to services
.
Declaration
public static IServiceCollection AddConversationsClient(this IServiceCollection services, Action<ConversationsClientBuilder> action = null)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The service collection to add the client to. The services are used to configure the client when requested. |
Action<ConversationsClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
Type | Description |
---|---|
IServiceCollection |
AddConversationsClient(IServiceCollection, Action<IServiceProvider, ConversationsClientBuilder>)
Adds a singleton ConversationsClient to services
.
Declaration
public static IServiceCollection AddConversationsClient(this IServiceCollection services, Action<IServiceProvider, ConversationsClientBuilder> action)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The service collection to add the client to. The services are used to configure the client when requested. |
Action<IServiceProvider, ConversationsClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
Type | Description |
---|---|
IServiceCollection |
AddDocumentsClient(IServiceCollection, Action<DocumentsClientBuilder>)
Adds a singleton DocumentsClient to services
.
Declaration
public static IServiceCollection AddDocumentsClient(this IServiceCollection services, Action<DocumentsClientBuilder> action = null)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The service collection to add the client to. The services are used to configure the client when requested. |
Action<DocumentsClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
Type | Description |
---|---|
IServiceCollection |
AddDocumentsClient(IServiceCollection, Action<IServiceProvider, DocumentsClientBuilder>)
Adds a singleton DocumentsClient to services
.
Declaration
public static IServiceCollection AddDocumentsClient(this IServiceCollection services, Action<IServiceProvider, DocumentsClientBuilder> action)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The service collection to add the client to. The services are used to configure the client when requested. |
Action<IServiceProvider, DocumentsClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
Type | Description |
---|---|
IServiceCollection |
AddEncryptionSpecServiceClient(IServiceCollection, Action<EncryptionSpecServiceClientBuilder>)
Adds a singleton EncryptionSpecServiceClient to services
.
Declaration
public static IServiceCollection AddEncryptionSpecServiceClient(this IServiceCollection services, Action<EncryptionSpecServiceClientBuilder> action = null)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The service collection to add the client to. The services are used to configure the client when requested. |
Action<EncryptionSpecServiceClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
Type | Description |
---|---|
IServiceCollection |
AddEncryptionSpecServiceClient(IServiceCollection, Action<IServiceProvider, EncryptionSpecServiceClientBuilder>)
Adds a singleton EncryptionSpecServiceClient to services
.
Declaration
public static IServiceCollection AddEncryptionSpecServiceClient(this IServiceCollection services, Action<IServiceProvider, EncryptionSpecServiceClientBuilder> action)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The service collection to add the client to. The services are used to configure the client when requested. |
Action<IServiceProvider, EncryptionSpecServiceClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
Type | Description |
---|---|
IServiceCollection |
AddEntityTypesClient(IServiceCollection, Action<EntityTypesClientBuilder>)
Adds a singleton EntityTypesClient to services
.
Declaration
public static IServiceCollection AddEntityTypesClient(this IServiceCollection services, Action<EntityTypesClientBuilder> action = null)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The service collection to add the client to. The services are used to configure the client when requested. |
Action<EntityTypesClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
Type | Description |
---|---|
IServiceCollection |
AddEntityTypesClient(IServiceCollection, Action<IServiceProvider, EntityTypesClientBuilder>)
Adds a singleton EntityTypesClient to services
.
Declaration
public static IServiceCollection AddEntityTypesClient(this IServiceCollection services, Action<IServiceProvider, EntityTypesClientBuilder> action)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The service collection to add the client to. The services are used to configure the client when requested. |
Action<IServiceProvider, EntityTypesClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
Type | Description |
---|---|
IServiceCollection |
AddEnvironmentsClient(IServiceCollection, Action<EnvironmentsClientBuilder>)
Adds a singleton EnvironmentsClient to services
.
Declaration
public static IServiceCollection AddEnvironmentsClient(this IServiceCollection services, Action<EnvironmentsClientBuilder> action = null)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The service collection to add the client to. The services are used to configure the client when requested. |
Action<EnvironmentsClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
Type | Description |
---|---|
IServiceCollection |
AddEnvironmentsClient(IServiceCollection, Action<IServiceProvider, EnvironmentsClientBuilder>)
Adds a singleton EnvironmentsClient to services
.
Declaration
public static IServiceCollection AddEnvironmentsClient(this IServiceCollection services, Action<IServiceProvider, EnvironmentsClientBuilder> action)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The service collection to add the client to. The services are used to configure the client when requested. |
Action<IServiceProvider, EnvironmentsClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
Type | Description |
---|---|
IServiceCollection |
AddFulfillmentsClient(IServiceCollection, Action<FulfillmentsClientBuilder>)
Adds a singleton FulfillmentsClient to services
.
Declaration
public static IServiceCollection AddFulfillmentsClient(this IServiceCollection services, Action<FulfillmentsClientBuilder> action = null)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The service collection to add the client to. The services are used to configure the client when requested. |
Action<FulfillmentsClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
Type | Description |
---|---|
IServiceCollection |
AddFulfillmentsClient(IServiceCollection, Action<IServiceProvider, FulfillmentsClientBuilder>)
Adds a singleton FulfillmentsClient to services
.
Declaration
public static IServiceCollection AddFulfillmentsClient(this IServiceCollection services, Action<IServiceProvider, FulfillmentsClientBuilder> action)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The service collection to add the client to. The services are used to configure the client when requested. |
Action<IServiceProvider, FulfillmentsClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
Type | Description |
---|---|
IServiceCollection |
AddGeneratorsClient(IServiceCollection, Action<GeneratorsClientBuilder>)
Adds a singleton GeneratorsClient to services
.
Declaration
public static IServiceCollection AddGeneratorsClient(this IServiceCollection services, Action<GeneratorsClientBuilder> action = null)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The service collection to add the client to. The services are used to configure the client when requested. |
Action<GeneratorsClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
Type | Description |
---|---|
IServiceCollection |
AddGeneratorsClient(IServiceCollection, Action<IServiceProvider, GeneratorsClientBuilder>)
Adds a singleton GeneratorsClient to services
.
Declaration
public static IServiceCollection AddGeneratorsClient(this IServiceCollection services, Action<IServiceProvider, GeneratorsClientBuilder> action)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The service collection to add the client to. The services are used to configure the client when requested. |
Action<IServiceProvider, GeneratorsClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
Type | Description |
---|---|
IServiceCollection |
AddIntentsClient(IServiceCollection, Action<IntentsClientBuilder>)
Adds a singleton IntentsClient to services
.
Declaration
public static IServiceCollection AddIntentsClient(this IServiceCollection services, Action<IntentsClientBuilder> action = null)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The service collection to add the client to. The services are used to configure the client when requested. |
Action<IntentsClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
Type | Description |
---|---|
IServiceCollection |
AddIntentsClient(IServiceCollection, Action<IServiceProvider, IntentsClientBuilder>)
Adds a singleton IntentsClient to services
.
Declaration
public static IServiceCollection AddIntentsClient(this IServiceCollection services, Action<IServiceProvider, IntentsClientBuilder> action)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The service collection to add the client to. The services are used to configure the client when requested. |
Action<IServiceProvider, IntentsClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
Type | Description |
---|---|
IServiceCollection |
AddKnowledgeBasesClient(IServiceCollection, Action<KnowledgeBasesClientBuilder>)
Adds a singleton KnowledgeBasesClient to services
.
Declaration
public static IServiceCollection AddKnowledgeBasesClient(this IServiceCollection services, Action<KnowledgeBasesClientBuilder> action = null)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The service collection to add the client to. The services are used to configure the client when requested. |
Action<KnowledgeBasesClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
Type | Description |
---|---|
IServiceCollection |
AddKnowledgeBasesClient(IServiceCollection, Action<IServiceProvider, KnowledgeBasesClientBuilder>)
Adds a singleton KnowledgeBasesClient to services
.
Declaration
public static IServiceCollection AddKnowledgeBasesClient(this IServiceCollection services, Action<IServiceProvider, KnowledgeBasesClientBuilder> action)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The service collection to add the client to. The services are used to configure the client when requested. |
Action<IServiceProvider, KnowledgeBasesClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
Type | Description |
---|---|
IServiceCollection |
AddParticipantsClient(IServiceCollection, Action<ParticipantsClientBuilder>)
Adds a singleton ParticipantsClient to services
.
Declaration
public static IServiceCollection AddParticipantsClient(this IServiceCollection services, Action<ParticipantsClientBuilder> action = null)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The service collection to add the client to. The services are used to configure the client when requested. |
Action<ParticipantsClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
Type | Description |
---|---|
IServiceCollection |
AddParticipantsClient(IServiceCollection, Action<IServiceProvider, ParticipantsClientBuilder>)
Adds a singleton ParticipantsClient to services
.
Declaration
public static IServiceCollection AddParticipantsClient(this IServiceCollection services, Action<IServiceProvider, ParticipantsClientBuilder> action)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The service collection to add the client to. The services are used to configure the client when requested. |
Action<IServiceProvider, ParticipantsClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
Type | Description |
---|---|
IServiceCollection |
AddSessionEntityTypesClient(IServiceCollection, Action<SessionEntityTypesClientBuilder>)
Adds a singleton SessionEntityTypesClient to services
.
Declaration
public static IServiceCollection AddSessionEntityTypesClient(this IServiceCollection services, Action<SessionEntityTypesClientBuilder> action = null)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The service collection to add the client to. The services are used to configure the client when requested. |
Action<SessionEntityTypesClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
Type | Description |
---|---|
IServiceCollection |
AddSessionEntityTypesClient(IServiceCollection, Action<IServiceProvider, SessionEntityTypesClientBuilder>)
Adds a singleton SessionEntityTypesClient to services
.
Declaration
public static IServiceCollection AddSessionEntityTypesClient(this IServiceCollection services, Action<IServiceProvider, SessionEntityTypesClientBuilder> action)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The service collection to add the client to. The services are used to configure the client when requested. |
Action<IServiceProvider, SessionEntityTypesClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
Type | Description |
---|---|
IServiceCollection |
AddSessionsClient(IServiceCollection, Action<SessionsClientBuilder>)
Adds a singleton SessionsClient to services
.
Declaration
public static IServiceCollection AddSessionsClient(this IServiceCollection services, Action<SessionsClientBuilder> action = null)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The service collection to add the client to. The services are used to configure the client when requested. |
Action<SessionsClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
Type | Description |
---|---|
IServiceCollection |
AddSessionsClient(IServiceCollection, Action<IServiceProvider, SessionsClientBuilder>)
Adds a singleton SessionsClient to services
.
Declaration
public static IServiceCollection AddSessionsClient(this IServiceCollection services, Action<IServiceProvider, SessionsClientBuilder> action)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The service collection to add the client to. The services are used to configure the client when requested. |
Action<IServiceProvider, SessionsClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
Type | Description |
---|---|
IServiceCollection |
AddVersionsClient(IServiceCollection, Action<VersionsClientBuilder>)
Adds a singleton VersionsClient to services
.
Declaration
public static IServiceCollection AddVersionsClient(this IServiceCollection services, Action<VersionsClientBuilder> action = null)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The service collection to add the client to. The services are used to configure the client when requested. |
Action<VersionsClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
Type | Description |
---|---|
IServiceCollection |
AddVersionsClient(IServiceCollection, Action<IServiceProvider, VersionsClientBuilder>)
Adds a singleton VersionsClient to services
.
Declaration
public static IServiceCollection AddVersionsClient(this IServiceCollection services, Action<IServiceProvider, VersionsClientBuilder> action)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The service collection to add the client to. The services are used to configure the client when requested. |
Action<IServiceProvider, VersionsClientBuilder> | action | An optional action to invoke on the client builder. This is invoked before services from
|
Returns
Type | Description |
---|---|
IServiceCollection |