Google Cloud Dialogflow v2 API - Class ServiceCollectionExtensions (4.7.0)

public static class ServiceCollectionExtensions

Reference documentation and code samples for the Google Cloud Dialogflow v2 API class ServiceCollectionExtensions.

Static class to provide extension methods to configure API clients.

Inheritance

Object > ServiceCollectionExtensions

Namespace

Microsoft.Extensions.DependencyInjection

Assembly

Google.Cloud.Dialogflow.V2.dll

Methods

AddAgentsClient(IServiceCollection, Action<AgentsClientBuilder>)

public static IServiceCollection AddAgentsClient(this IServiceCollection services, Action<AgentsClientBuilder> action = null)

Adds a singleton AgentsClient to services.

Parameters
NameDescription
servicesIServiceCollection

The service collection to add the client to. The services are used to configure the client when requested.

actionAction<AgentsClientBuilder>

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
TypeDescription
IServiceCollection

AddAnswerRecordsClient(IServiceCollection, Action<AnswerRecordsClientBuilder>)

public static IServiceCollection AddAnswerRecordsClient(this IServiceCollection services, Action<AnswerRecordsClientBuilder> action = null)

Adds a singleton AnswerRecordsClient to services.

Parameters
NameDescription
servicesIServiceCollection

The service collection to add the client to. The services are used to configure the client when requested.

actionAction<AnswerRecordsClientBuilder>

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
TypeDescription
IServiceCollection

AddContextsClient(IServiceCollection, Action<ContextsClientBuilder>)

public static IServiceCollection AddContextsClient(this IServiceCollection services, Action<ContextsClientBuilder> action = null)

Adds a singleton ContextsClient to services.

Parameters
NameDescription
servicesIServiceCollection

The service collection to add the client to. The services are used to configure the client when requested.

actionAction<ContextsClientBuilder>

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
TypeDescription
IServiceCollection

AddConversationDatasetsClient(IServiceCollection, Action<ConversationDatasetsClientBuilder>)

public static IServiceCollection AddConversationDatasetsClient(this IServiceCollection services, Action<ConversationDatasetsClientBuilder> action = null)

Adds a singleton ConversationDatasetsClient to services.

Parameters
NameDescription
servicesIServiceCollection

The service collection to add the client to. The services are used to configure the client when requested.

actionAction<ConversationDatasetsClientBuilder>

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
TypeDescription
IServiceCollection

AddConversationModelsClient(IServiceCollection, Action<ConversationModelsClientBuilder>)

public static IServiceCollection AddConversationModelsClient(this IServiceCollection services, Action<ConversationModelsClientBuilder> action = null)

Adds a singleton ConversationModelsClient to services.

Parameters
NameDescription
servicesIServiceCollection

The service collection to add the client to. The services are used to configure the client when requested.

actionAction<ConversationModelsClientBuilder>

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
TypeDescription
IServiceCollection

AddConversationProfilesClient(IServiceCollection, Action<ConversationProfilesClientBuilder>)

public static IServiceCollection AddConversationProfilesClient(this IServiceCollection services, Action<ConversationProfilesClientBuilder> action = null)

Adds a singleton ConversationProfilesClient to services.

Parameters
NameDescription
servicesIServiceCollection

The service collection to add the client to. The services are used to configure the client when requested.

actionAction<ConversationProfilesClientBuilder>

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
TypeDescription
IServiceCollection

AddConversationsClient(IServiceCollection, Action<ConversationsClientBuilder>)

public static IServiceCollection AddConversationsClient(this IServiceCollection services, Action<ConversationsClientBuilder> action = null)

Adds a singleton ConversationsClient to services.

Parameters
NameDescription
servicesIServiceCollection

The service collection to add the client to. The services are used to configure the client when requested.

actionAction<ConversationsClientBuilder>

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
TypeDescription
IServiceCollection

AddDocumentsClient(IServiceCollection, Action<DocumentsClientBuilder>)

public static IServiceCollection AddDocumentsClient(this IServiceCollection services, Action<DocumentsClientBuilder> action = null)

Adds a singleton DocumentsClient to services.

Parameters
NameDescription
servicesIServiceCollection

The service collection to add the client to. The services are used to configure the client when requested.

actionAction<DocumentsClientBuilder>

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
TypeDescription
IServiceCollection

AddEntityTypesClient(IServiceCollection, Action<EntityTypesClientBuilder>)

public static IServiceCollection AddEntityTypesClient(this IServiceCollection services, Action<EntityTypesClientBuilder> action = null)

Adds a singleton EntityTypesClient to services.

Parameters
NameDescription
servicesIServiceCollection

The service collection to add the client to. The services are used to configure the client when requested.

actionAction<EntityTypesClientBuilder>

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
TypeDescription
IServiceCollection

AddEnvironmentsClient(IServiceCollection, Action<EnvironmentsClientBuilder>)

public static IServiceCollection AddEnvironmentsClient(this IServiceCollection services, Action<EnvironmentsClientBuilder> action = null)

Adds a singleton EnvironmentsClient to services.

Parameters
NameDescription
servicesIServiceCollection

The service collection to add the client to. The services are used to configure the client when requested.

actionAction<EnvironmentsClientBuilder>

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
TypeDescription
IServiceCollection

AddFulfillmentsClient(IServiceCollection, Action<FulfillmentsClientBuilder>)

public static IServiceCollection AddFulfillmentsClient(this IServiceCollection services, Action<FulfillmentsClientBuilder> action = null)

Adds a singleton FulfillmentsClient to services.

Parameters
NameDescription
servicesIServiceCollection

The service collection to add the client to. The services are used to configure the client when requested.

actionAction<FulfillmentsClientBuilder>

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
TypeDescription
IServiceCollection

AddIntentsClient(IServiceCollection, Action<IntentsClientBuilder>)

public static IServiceCollection AddIntentsClient(this IServiceCollection services, Action<IntentsClientBuilder> action = null)

Adds a singleton IntentsClient to services.

Parameters
NameDescription
servicesIServiceCollection

The service collection to add the client to. The services are used to configure the client when requested.

actionAction<IntentsClientBuilder>

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
TypeDescription
IServiceCollection

AddKnowledgeBasesClient(IServiceCollection, Action<KnowledgeBasesClientBuilder>)

public static IServiceCollection AddKnowledgeBasesClient(this IServiceCollection services, Action<KnowledgeBasesClientBuilder> action = null)

Adds a singleton KnowledgeBasesClient to services.

Parameters
NameDescription
servicesIServiceCollection

The service collection to add the client to. The services are used to configure the client when requested.

actionAction<KnowledgeBasesClientBuilder>

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
TypeDescription
IServiceCollection

AddParticipantsClient(IServiceCollection, Action<ParticipantsClientBuilder>)

public static IServiceCollection AddParticipantsClient(this IServiceCollection services, Action<ParticipantsClientBuilder> action = null)

Adds a singleton ParticipantsClient to services.

Parameters
NameDescription
servicesIServiceCollection

The service collection to add the client to. The services are used to configure the client when requested.

actionAction<ParticipantsClientBuilder>

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
TypeDescription
IServiceCollection

AddSessionEntityTypesClient(IServiceCollection, Action<SessionEntityTypesClientBuilder>)

public static IServiceCollection AddSessionEntityTypesClient(this IServiceCollection services, Action<SessionEntityTypesClientBuilder> action = null)

Adds a singleton SessionEntityTypesClient to services.

Parameters
NameDescription
servicesIServiceCollection

The service collection to add the client to. The services are used to configure the client when requested.

actionAction<SessionEntityTypesClientBuilder>

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
TypeDescription
IServiceCollection

AddSessionsClient(IServiceCollection, Action<SessionsClientBuilder>)

public static IServiceCollection AddSessionsClient(this IServiceCollection services, Action<SessionsClientBuilder> action = null)

Adds a singleton SessionsClient to services.

Parameters
NameDescription
servicesIServiceCollection

The service collection to add the client to. The services are used to configure the client when requested.

actionAction<SessionsClientBuilder>

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
TypeDescription
IServiceCollection

AddVersionsClient(IServiceCollection, Action<VersionsClientBuilder>)

public static IServiceCollection AddVersionsClient(this IServiceCollection services, Action<VersionsClientBuilder> action = null)

Adds a singleton VersionsClient to services.

Parameters
NameDescription
servicesIServiceCollection

The service collection to add the client to. The services are used to configure the client when requested.

actionAction<VersionsClientBuilder>

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
TypeDescription
IServiceCollection