Google Cloud Dialogflow v2 API - Class CompanionAgentsClientImpl (4.32.0)

public sealed class CompanionAgentsClientImpl : CompanionAgentsClient

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

CompanionAgents client wrapper implementation, for convenient use.

Inheritance

object > CompanionAgentsClient > CompanionAgentsClientImpl

Namespace

Google.Cloud.Dialogflow.V2

Assembly

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 CompanionAgentsCompanionAgentsClient

The underlying gRPC client.

settings CompanionAgentsSettings

The base CompanionAgentsSettings used within this client.

logger ILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override CompanionAgents.CompanionAgentsClient GrpcClient { get; }

The underlying gRPC CompanionAgents client

Property Value
Type Description
CompanionAgentsCompanionAgentsClient
Overrides

LocationsClient

public override LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
Type Description
LocationsClient
Overrides

Methods

CreateCompanionAgent(CreateCompanionAgentRequest, CallSettings)

public override CompanionAgent CreateCompanionAgent(CreateCompanionAgentRequest request, CallSettings callSettings = null)

Creates a companion agent.

Parameters
Name Description
request CreateCompanionAgentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
CompanionAgent

The RPC response.

Overrides

CreateCompanionAgentAsync(CreateCompanionAgentRequest, CallSettings)

public override Task<CompanionAgent> CreateCompanionAgentAsync(CreateCompanionAgentRequest request, CallSettings callSettings = null)

Creates a companion agent.

Parameters
Name Description
request CreateCompanionAgentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskCompanionAgent

A Task containing the RPC response.

Overrides

DeleteCompanionAgent(DeleteCompanionAgentRequest, CallSettings)

public override void DeleteCompanionAgent(DeleteCompanionAgentRequest request, CallSettings callSettings = null)

Deletes a companion agent.

Parameters
Name Description
request DeleteCompanionAgentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Overrides

DeleteCompanionAgentAsync(DeleteCompanionAgentRequest, CallSettings)

public override Task DeleteCompanionAgentAsync(DeleteCompanionAgentRequest request, CallSettings callSettings = null)

Deletes a companion agent.

Parameters
Name Description
request DeleteCompanionAgentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Overrides

GetCompanionAgent(GetCompanionAgentRequest, CallSettings)

public override CompanionAgent GetCompanionAgent(GetCompanionAgentRequest request, CallSettings callSettings = null)

Gets a companion agent.

Parameters
Name Description
request GetCompanionAgentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
CompanionAgent

The RPC response.

Overrides

GetCompanionAgentAsync(GetCompanionAgentRequest, CallSettings)

public override Task<CompanionAgent> GetCompanionAgentAsync(GetCompanionAgentRequest request, CallSettings callSettings = null)

Gets a companion agent.

Parameters
Name Description
request GetCompanionAgentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskCompanionAgent

A Task containing the RPC response.

Overrides

ListCompanionAgents(ListCompanionAgentsRequest, CallSettings)

public override PagedEnumerable<ListCompanionAgentsResponse, CompanionAgent> ListCompanionAgents(ListCompanionAgentsRequest request, CallSettings callSettings = null)

Lists companion agents.

Parameters
Name Description
request ListCompanionAgentsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListCompanionAgentsResponseCompanionAgent

A pageable sequence of CompanionAgent resources.

Overrides

ListCompanionAgentsAsync(ListCompanionAgentsRequest, CallSettings)

public override PagedAsyncEnumerable<ListCompanionAgentsResponse, CompanionAgent> ListCompanionAgentsAsync(ListCompanionAgentsRequest request, CallSettings callSettings = null)

Lists companion agents.

Parameters
Name Description
request ListCompanionAgentsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListCompanionAgentsResponseCompanionAgent

A pageable asynchronous sequence of CompanionAgent resources.

Overrides

UpdateCompanionAgent(UpdateCompanionAgentRequest, CallSettings)

public override CompanionAgent UpdateCompanionAgent(UpdateCompanionAgentRequest request, CallSettings callSettings = null)

Updates a companion agent.

Parameters
Name Description
request UpdateCompanionAgentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
CompanionAgent

The RPC response.

Overrides

UpdateCompanionAgentAsync(UpdateCompanionAgentRequest, CallSettings)

public override Task<CompanionAgent> UpdateCompanionAgentAsync(UpdateCompanionAgentRequest request, CallSettings callSettings = null)

Updates a companion agent.

Parameters
Name Description
request UpdateCompanionAgentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskCompanionAgent

A Task containing the RPC response.

Overrides