Class VersionsClientImpl (2.1.0)

public sealed class VersionsClientImpl : VersionsClient

Versions client wrapper implementation, for convenient use.

Inheritance

Object > VersionsClient > VersionsClientImpl

Namespace

Google.Cloud.Dialogflow.Cx.V3

Assembly

Google.Cloud.Dialogflow.Cx.V3.dll

Remarks

Service for managing [Versions][google.cloud.dialogflow.cx.v3.Version].

Constructors

VersionsClientImpl(Versions.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
grpcClientVersions.VersionsClient

The underlying gRPC client.

settingsVersionsSettings

The base VersionsSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

CreateVersionOperationsClient

public override OperationsClient CreateVersionOperationsClient { get; }

The long-running operations client for CreateVersion.

Property Value
TypeDescription
OperationsClient
Overrides

GrpcClient

public override Versions.VersionsClient GrpcClient { get; }

The underlying gRPC Versions client

Property Value
TypeDescription
Versions.VersionsClient
Overrides

LoadVersionOperationsClient

public override OperationsClient LoadVersionOperationsClient { get; }

The long-running operations client for LoadVersion.

Property Value
TypeDescription
OperationsClient
Overrides

LocationsClient

public override LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
TypeDescription
LocationsClient
Overrides

Methods

CompareVersions(CompareVersionsRequest, CallSettings)

public override CompareVersionsResponse CompareVersions(CompareVersionsRequest request, CallSettings callSettings = null)

Compares the specified base version with target version.

Parameters
NameDescription
requestCompareVersionsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
CompareVersionsResponse

The RPC response.

Overrides

CompareVersionsAsync(CompareVersionsRequest, CallSettings)

public override Task<CompareVersionsResponse> CompareVersionsAsync(CompareVersionsRequest request, CallSettings callSettings = null)

Compares the specified base version with target version.

Parameters
NameDescription
requestCompareVersionsRequest

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<CompareVersionsResponse>

A Task containing the RPC response.

Overrides

CreateVersion(CreateVersionRequest, CallSettings)

public override Operation<Version, CreateVersionOperationMetadata> CreateVersion(CreateVersionRequest request, CallSettings callSettings = null)

Creates a [Version][google.cloud.dialogflow.cx.v3.Version] in the specified [Flow][google.cloud.dialogflow.cx.v3.Flow].

This method is a long-running operation. The returned Operation type has the following method-specific fields:

  • metadata: [CreateVersionOperationMetadata][google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata]
  • response: [Version][google.cloud.dialogflow.cx.v3.Version]
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
Operation<Version, CreateVersionOperationMetadata>

The RPC response.

Overrides

CreateVersionAsync(CreateVersionRequest, CallSettings)

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

Creates a [Version][google.cloud.dialogflow.cx.v3.Version] in the specified [Flow][google.cloud.dialogflow.cx.v3.Flow].

This method is a long-running operation. The returned Operation type has the following method-specific fields:

  • metadata: [CreateVersionOperationMetadata][google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata]
  • response: [Version][google.cloud.dialogflow.cx.v3.Version]
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
Task<Operation<Version, CreateVersionOperationMetadata>>

A Task containing the RPC response.

Overrides

DeleteVersion(DeleteVersionRequest, CallSettings)

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

Deletes the specified [Version][google.cloud.dialogflow.cx.v3.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)

Deletes the specified [Version][google.cloud.dialogflow.cx.v3.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 [Version][google.cloud.dialogflow.cx.v3.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 [Version][google.cloud.dialogflow.cx.v3.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
Task<Version>

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 in the specified [Flow][google.cloud.dialogflow.cx.v3.Flow].

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
PagedEnumerable<ListVersionsResponse, Version>

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 in the specified [Flow][google.cloud.dialogflow.cx.v3.Flow].

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
PagedAsyncEnumerable<ListVersionsResponse, Version>

A pageable asynchronous sequence of Version resources.

Overrides

LoadVersion(LoadVersionRequest, CallSettings)

public override Operation<Empty, Struct> LoadVersion(LoadVersionRequest request, CallSettings callSettings = null)

Loads resources in the specified version to the draft flow.

This method is a long-running operation. The returned Operation type has the following method-specific fields:

Parameters
NameDescription
requestLoadVersionRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Empty, Struct>

The RPC response.

Overrides

LoadVersionAsync(LoadVersionRequest, CallSettings)

public override async Task<Operation<Empty, Struct>> LoadVersionAsync(LoadVersionRequest request, CallSettings callSettings = null)

Loads resources in the specified version to the draft flow.

This method is a long-running operation. The returned Operation type has the following method-specific fields:

Parameters
NameDescription
requestLoadVersionRequest

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<Operation<Empty, Struct>>

A Task containing the RPC response.

Overrides

UpdateVersion(UpdateVersionRequest, CallSettings)

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

Updates the specified [Version][google.cloud.dialogflow.cx.v3.Version].

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 [Version][google.cloud.dialogflow.cx.v3.Version].

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
Task<Version>

A Task containing the RPC response.

Overrides