Class Versions.VersionsClient (3.7.0)

public class VersionsClient : ClientBase<Versions.VersionsClient>

Client for Versions

Inheritance

Object > ClientBase > ClientBase<Versions.VersionsClient> > Versions.VersionsClient

Namespace

Google.Cloud.Dialogflow.V2

Assembly

Google.Cloud.Dialogflow.V2.dll

Constructors

VersionsClient()

protected VersionsClient()

Protected parameterless constructor to allow creation of test doubles.

VersionsClient(CallInvoker)

public VersionsClient(CallInvoker callInvoker)

Creates a new client for Versions that uses a custom CallInvoker.

Parameter
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

VersionsClient(ChannelBase)

public VersionsClient(ChannelBase channel)

Creates a new client for Versions

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

VersionsClient(ClientBase.ClientBaseConfiguration)

protected VersionsClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration

The client configuration.

Methods

CreateVersion(CreateVersionRequest, CallOptions)

public virtual Version CreateVersion(CreateVersionRequest request, CallOptions options)

Creates an agent version.

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

Parameters
NameDescription
requestCreateVersionRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Version

The response received from the server.

CreateVersion(CreateVersionRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Version CreateVersion(CreateVersionRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Creates an agent version.

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

Parameters
NameDescription
requestCreateVersionRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Version

The response received from the server.

CreateVersionAsync(CreateVersionRequest, CallOptions)

public virtual AsyncUnaryCall<Version> CreateVersionAsync(CreateVersionRequest request, CallOptions options)

Creates an agent version.

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

Parameters
NameDescription
requestCreateVersionRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Version>

The call object.

CreateVersionAsync(CreateVersionRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Version> CreateVersionAsync(CreateVersionRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Creates an agent version.

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

Parameters
NameDescription
requestCreateVersionRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Version>

The call object.

DeleteVersion(DeleteVersionRequest, CallOptions)

public virtual Empty DeleteVersion(DeleteVersionRequest request, CallOptions options)

Delete the specified agent version.

Parameters
NameDescription
requestDeleteVersionRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Empty

The response received from the server.

DeleteVersion(DeleteVersionRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Empty DeleteVersion(DeleteVersionRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Delete the specified agent version.

Parameters
NameDescription
requestDeleteVersionRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Empty

The response received from the server.

DeleteVersionAsync(DeleteVersionRequest, CallOptions)

public virtual AsyncUnaryCall<Empty> DeleteVersionAsync(DeleteVersionRequest request, CallOptions options)

Delete the specified agent version.

Parameters
NameDescription
requestDeleteVersionRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Empty>

The call object.

DeleteVersionAsync(DeleteVersionRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Empty> DeleteVersionAsync(DeleteVersionRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Delete the specified agent version.

Parameters
NameDescription
requestDeleteVersionRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Empty>

The call object.

GetVersion(GetVersionRequest, CallOptions)

public virtual Version GetVersion(GetVersionRequest request, CallOptions options)

Retrieves the specified agent version.

Parameters
NameDescription
requestGetVersionRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Version

The response received from the server.

GetVersion(GetVersionRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Version GetVersion(GetVersionRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Retrieves the specified agent version.

Parameters
NameDescription
requestGetVersionRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Version

The response received from the server.

GetVersionAsync(GetVersionRequest, CallOptions)

public virtual AsyncUnaryCall<Version> GetVersionAsync(GetVersionRequest request, CallOptions options)

Retrieves the specified agent version.

Parameters
NameDescription
requestGetVersionRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Version>

The call object.

GetVersionAsync(GetVersionRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Version> GetVersionAsync(GetVersionRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Retrieves the specified agent version.

Parameters
NameDescription
requestGetVersionRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Version>

The call object.

ListVersions(ListVersionsRequest, CallOptions)

public virtual ListVersionsResponse ListVersions(ListVersionsRequest request, CallOptions options)

Returns the list of all versions of the specified agent.

Parameters
NameDescription
requestListVersionsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
ListVersionsResponse

The response received from the server.

ListVersions(ListVersionsRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual ListVersionsResponse ListVersions(ListVersionsRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Returns the list of all versions of the specified agent.

Parameters
NameDescription
requestListVersionsRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
ListVersionsResponse

The response received from the server.

ListVersionsAsync(ListVersionsRequest, CallOptions)

public virtual AsyncUnaryCall<ListVersionsResponse> ListVersionsAsync(ListVersionsRequest request, CallOptions options)

Returns the list of all versions of the specified agent.

Parameters
NameDescription
requestListVersionsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<ListVersionsResponse>

The call object.

ListVersionsAsync(ListVersionsRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<ListVersionsResponse> ListVersionsAsync(ListVersionsRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Returns the list of all versions of the specified agent.

Parameters
NameDescription
requestListVersionsRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<ListVersionsResponse>

The call object.

NewInstance(ClientBase.ClientBaseConfiguration)

protected override Versions.VersionsClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration
Returns
TypeDescription
Versions.VersionsClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Dialogflow.V2.Versions.VersionsClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

UpdateVersion(UpdateVersionRequest, CallOptions)

public virtual Version UpdateVersion(UpdateVersionRequest request, CallOptions options)

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 to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Version

The response received from the server.

UpdateVersion(UpdateVersionRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Version UpdateVersion(UpdateVersionRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

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 to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Version

The response received from the server.

UpdateVersionAsync(UpdateVersionRequest, CallOptions)

public virtual AsyncUnaryCall<Version> UpdateVersionAsync(UpdateVersionRequest request, CallOptions options)

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 to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Version>

The call object.

UpdateVersionAsync(UpdateVersionRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Version> UpdateVersionAsync(UpdateVersionRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

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 to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Version>

The call object.