Google Cloud Dialogflow v2 API - Class VersionsClientImpl (4.14.0)

public sealed class VersionsClientImpl : VersionsClient

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

Versions client wrapper implementation, for convenient use.

Inheritance

object > VersionsClient > VersionsClientImpl

Namespace

Google.Cloud.Dialogflow.V2

Assembly

Google.Cloud.Dialogflow.V2.dll

Remarks

Service for managing [Versions][google.cloud.dialogflow.v2.Version].

Constructors

VersionsClientImpl(VersionsClient, VersionsSettings, ILogger)

public VersionsClientImpl(Versions.VersionsClient grpcClient, VersionsSettings settings, ILogger logger)

Constructs a client wrapper for the Versions service, with the specified gRPC client and settings.

Parameters
NameDescription
grpcClientVersionsVersionsClient

The underlying gRPC client.

settingsVersionsSettings

The base VersionsSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override Versions.VersionsClient GrpcClient { get; }

The underlying gRPC Versions client

Property Value
TypeDescription
VersionsVersionsClient
Overrides

LocationsClient

public override LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
TypeDescription
LocationsClient
Overrides

Methods

CreateVersion(CreateVersionRequest, CallSettings)

public override Version CreateVersion(CreateVersionRequest request, CallSettings callSettings = null)

Creates an agent version.

The new version points to the agent instance in the "default" environment.

Parameters
NameDescription
requestCreateVersionRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Version

The RPC response.

Overrides

CreateVersionAsync(CreateVersionRequest, CallSettings)

public override Task<Version> CreateVersionAsync(CreateVersionRequest request, CallSettings callSettings = null)

Creates an agent version.

The new version points to the agent instance in the "default" environment.

Parameters
NameDescription
requestCreateVersionRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskVersion

A Task containing the RPC response.

Overrides

DeleteVersion(DeleteVersionRequest, CallSettings)

public override void DeleteVersion(DeleteVersionRequest request, CallSettings callSettings = null)

Delete the specified agent version.

Parameters
NameDescription
requestDeleteVersionRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Overrides

DeleteVersionAsync(DeleteVersionRequest, CallSettings)

public override Task DeleteVersionAsync(DeleteVersionRequest request, CallSettings callSettings = null)

Delete the specified agent version.

Parameters
NameDescription
requestDeleteVersionRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Overrides

GetVersion(GetVersionRequest, CallSettings)

public override Version GetVersion(GetVersionRequest request, CallSettings callSettings = null)

Retrieves the specified agent version.

Parameters
NameDescription
requestGetVersionRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Version

The RPC response.

Overrides

GetVersionAsync(GetVersionRequest, CallSettings)

public override Task<Version> GetVersionAsync(GetVersionRequest request, CallSettings callSettings = null)

Retrieves the specified agent version.

Parameters
NameDescription
requestGetVersionRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskVersion

A Task containing the RPC response.

Overrides

ListVersions(ListVersionsRequest, CallSettings)

public override PagedEnumerable<ListVersionsResponse, Version> ListVersions(ListVersionsRequest request, CallSettings callSettings = null)

Returns the list of all versions of the specified agent.

Parameters
NameDescription
requestListVersionsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListVersionsResponseVersion

A pageable sequence of Version resources.

Overrides

ListVersionsAsync(ListVersionsRequest, CallSettings)

public override PagedAsyncEnumerable<ListVersionsResponse, Version> ListVersionsAsync(ListVersionsRequest request, CallSettings callSettings = null)

Returns the list of all versions of the specified agent.

Parameters
NameDescription
requestListVersionsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListVersionsResponseVersion

A pageable asynchronous sequence of Version resources.

Overrides

UpdateVersion(UpdateVersionRequest, CallSettings)

public override Version UpdateVersion(UpdateVersionRequest request, CallSettings callSettings = null)

Updates the specified agent version.

Note that this method does not allow you to update the state of the agent the given version points to. It allows you to update only mutable properties of the version resource.

Parameters
NameDescription
requestUpdateVersionRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Version

The RPC response.

Overrides

UpdateVersionAsync(UpdateVersionRequest, CallSettings)

public override Task<Version> UpdateVersionAsync(UpdateVersionRequest request, CallSettings callSettings = null)

Updates the specified agent version.

Note that this method does not allow you to update the state of the agent the given version points to. It allows you to update only mutable properties of the version resource.

Parameters
NameDescription
requestUpdateVersionRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskVersion

A Task containing the RPC response.

Overrides