public sealed class CompanionAgentsClientImpl : CompanionAgentsClientReference documentation and code samples for the Google Cloud Dialogflow v2 API class CompanionAgentsClientImpl.
CompanionAgents client wrapper implementation, for convenient use.
Namespace
Google.Cloud.Dialogflow.V2Assembly
Google.Cloud.Dialogflow.V2.dll
Remarks
Service for managing companion agents.
Constructors
CompanionAgentsClientImpl(CompanionAgentsClient, CompanionAgentsSettings, ILogger)
public CompanionAgentsClientImpl(CompanionAgents.CompanionAgentsClient grpcClient, CompanionAgentsSettings settings, ILogger logger)Constructs a client wrapper for the CompanionAgents service, with the specified gRPC client and settings.
| Parameters | |
|---|---|
| Name | Description |
grpcClient |
CompanionAgentsCompanionAgentsClientThe underlying gRPC client. |
settings |
CompanionAgentsSettingsThe base CompanionAgentsSettings used within this client. |
logger |
ILoggerOptional ILogger to use within this client. |
Properties
GrpcClient
public override CompanionAgents.CompanionAgentsClient GrpcClient { get; }The underlying gRPC CompanionAgents client
| Property Value | |
|---|---|
| Type | Description |
CompanionAgentsCompanionAgentsClient |
|
LocationsClient
public override LocationsClient LocationsClient { get; }The LocationsClient associated with this client.
| Property Value | |
|---|---|
| Type | Description |
LocationsClient |
|
Methods
CreateCompanionAgent(CreateCompanionAgentRequest, CallSettings)
public override CompanionAgent CreateCompanionAgent(CreateCompanionAgentRequest request, CallSettings callSettings = null)Creates a companion agent.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateCompanionAgentRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
CompanionAgent |
The RPC response. |
CreateCompanionAgentAsync(CreateCompanionAgentRequest, CallSettings)
public override Task<CompanionAgent> CreateCompanionAgentAsync(CreateCompanionAgentRequest request, CallSettings callSettings = null)Creates a companion agent.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateCompanionAgentRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskCompanionAgent |
A Task containing the RPC response. |
DeleteCompanionAgent(DeleteCompanionAgentRequest, CallSettings)
public override void DeleteCompanionAgent(DeleteCompanionAgentRequest request, CallSettings callSettings = null)Deletes a companion agent.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteCompanionAgentRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
DeleteCompanionAgentAsync(DeleteCompanionAgentRequest, CallSettings)
public override Task DeleteCompanionAgentAsync(DeleteCompanionAgentRequest request, CallSettings callSettings = null)Deletes a companion agent.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteCompanionAgentRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
GetCompanionAgent(GetCompanionAgentRequest, CallSettings)
public override CompanionAgent GetCompanionAgent(GetCompanionAgentRequest request, CallSettings callSettings = null)Gets a companion agent.
| Parameters | |
|---|---|
| Name | Description |
request |
GetCompanionAgentRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
CompanionAgent |
The RPC response. |
GetCompanionAgentAsync(GetCompanionAgentRequest, CallSettings)
public override Task<CompanionAgent> GetCompanionAgentAsync(GetCompanionAgentRequest request, CallSettings callSettings = null)Gets a companion agent.
| Parameters | |
|---|---|
| Name | Description |
request |
GetCompanionAgentRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskCompanionAgent |
A Task containing the RPC response. |
ListCompanionAgents(ListCompanionAgentsRequest, CallSettings)
public override PagedEnumerable<ListCompanionAgentsResponse, CompanionAgent> ListCompanionAgents(ListCompanionAgentsRequest request, CallSettings callSettings = null)Lists companion agents.
| Parameters | |
|---|---|
| Name | Description |
request |
ListCompanionAgentsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListCompanionAgentsResponseCompanionAgent |
A pageable sequence of CompanionAgent resources. |
ListCompanionAgentsAsync(ListCompanionAgentsRequest, CallSettings)
public override PagedAsyncEnumerable<ListCompanionAgentsResponse, CompanionAgent> ListCompanionAgentsAsync(ListCompanionAgentsRequest request, CallSettings callSettings = null)Lists companion agents.
| Parameters | |
|---|---|
| Name | Description |
request |
ListCompanionAgentsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListCompanionAgentsResponseCompanionAgent |
A pageable asynchronous sequence of CompanionAgent resources. |
UpdateCompanionAgent(UpdateCompanionAgentRequest, CallSettings)
public override CompanionAgent UpdateCompanionAgent(UpdateCompanionAgentRequest request, CallSettings callSettings = null)Updates a companion agent.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateCompanionAgentRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
CompanionAgent |
The RPC response. |
UpdateCompanionAgentAsync(UpdateCompanionAgentRequest, CallSettings)
public override Task<CompanionAgent> UpdateCompanionAgentAsync(UpdateCompanionAgentRequest request, CallSettings callSettings = null)Updates a companion agent.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateCompanionAgentRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskCompanionAgent |
A Task containing the RPC response. |