Class Versions.VersionsClient
Client for Versions
Inherited Members
Namespace: Google.Cloud.Dialogflow.V2
Assembly: Google.Cloud.Dialogflow.V2.dll
Syntax
public class Versions.VersionsClient : ClientBase<Versions.VersionsClient>
Constructors
VersionsClient()
Protected parameterless constructor to allow creation of test doubles.
Declaration
protected VersionsClient()
VersionsClient(CallInvoker)
Creates a new client for Versions that uses a custom CallInvoker
.
Declaration
public VersionsClient(CallInvoker callInvoker)
Parameters
Type | Name | Description |
---|---|---|
CallInvoker | callInvoker | The callInvoker to use to make remote calls. |
VersionsClient(ChannelBase)
Creates a new client for Versions
Declaration
public VersionsClient(ChannelBase channel)
Parameters
Type | Name | Description |
---|---|---|
ChannelBase | channel | The channel to use to make remote calls. |
VersionsClient(ClientBaseConfiguration)
Protected constructor to allow creation of configured clients.
Declaration
protected VersionsClient(ClientBase.ClientBaseConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
ClientBase.ClientBaseConfiguration | configuration | The client configuration. |
Methods
CreateLocationsClient()
Creates a new instance of Google.Cloud.Location.Locations.LocationsClient using the same call invoker as this client.
Declaration
public virtual Locations.LocationsClient CreateLocationsClient()
Returns
Type | Description |
---|---|
Locations.LocationsClient | A new Google.Cloud.Location.Locations.LocationsClient for the same target as this client. |
CreateVersion(CreateVersionRequest, CallOptions)
Creates an agent version.
The new version points to the agent instance in the "default" environment.
Declaration
public virtual Version CreateVersion(CreateVersionRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
CreateVersionRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
Version | The response received from the server. |
CreateVersion(CreateVersionRequest, Metadata, DateTime?, CancellationToken)
Creates an agent version.
The new version points to the agent instance in the "default" environment.
Declaration
public virtual Version CreateVersion(CreateVersionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
CreateVersionRequest | request | The request to send to the server. |
Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
DateTime? | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
Version | The response received from the server. |
CreateVersionAsync(CreateVersionRequest, CallOptions)
Creates an agent version.
The new version points to the agent instance in the "default" environment.
Declaration
public virtual AsyncUnaryCall<Version> CreateVersionAsync(CreateVersionRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
CreateVersionRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<Version> | The call object. |
CreateVersionAsync(CreateVersionRequest, Metadata, DateTime?, CancellationToken)
Creates an agent version.
The new version points to the agent instance in the "default" environment.
Declaration
public virtual AsyncUnaryCall<Version> CreateVersionAsync(CreateVersionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
CreateVersionRequest | request | The request to send to the server. |
Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
DateTime? | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<Version> | The call object. |
DeleteVersion(DeleteVersionRequest, CallOptions)
Delete the specified agent version.
Declaration
public virtual Empty DeleteVersion(DeleteVersionRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
DeleteVersionRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
Empty | The response received from the server. |
DeleteVersion(DeleteVersionRequest, Metadata, DateTime?, CancellationToken)
Delete the specified agent version.
Declaration
public virtual Empty DeleteVersion(DeleteVersionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
DeleteVersionRequest | request | The request to send to the server. |
Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
DateTime? | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
Empty | The response received from the server. |
DeleteVersionAsync(DeleteVersionRequest, CallOptions)
Delete the specified agent version.
Declaration
public virtual AsyncUnaryCall<Empty> DeleteVersionAsync(DeleteVersionRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
DeleteVersionRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<Empty> | The call object. |
DeleteVersionAsync(DeleteVersionRequest, Metadata, DateTime?, CancellationToken)
Delete the specified agent version.
Declaration
public virtual AsyncUnaryCall<Empty> DeleteVersionAsync(DeleteVersionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
DeleteVersionRequest | request | The request to send to the server. |
Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
DateTime? | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<Empty> | The call object. |
GetVersion(GetVersionRequest, CallOptions)
Retrieves the specified agent version.
Declaration
public virtual Version GetVersion(GetVersionRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
GetVersionRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
Version | The response received from the server. |
GetVersion(GetVersionRequest, Metadata, DateTime?, CancellationToken)
Retrieves the specified agent version.
Declaration
public virtual Version GetVersion(GetVersionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
GetVersionRequest | request | The request to send to the server. |
Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
DateTime? | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
Version | The response received from the server. |
GetVersionAsync(GetVersionRequest, CallOptions)
Retrieves the specified agent version.
Declaration
public virtual AsyncUnaryCall<Version> GetVersionAsync(GetVersionRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
GetVersionRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<Version> | The call object. |
GetVersionAsync(GetVersionRequest, Metadata, DateTime?, CancellationToken)
Retrieves the specified agent version.
Declaration
public virtual AsyncUnaryCall<Version> GetVersionAsync(GetVersionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
GetVersionRequest | request | The request to send to the server. |
Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
DateTime? | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<Version> | The call object. |
ListVersions(ListVersionsRequest, CallOptions)
Returns the list of all versions of the specified agent.
Declaration
public virtual ListVersionsResponse ListVersions(ListVersionsRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
ListVersionsRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
ListVersionsResponse | The response received from the server. |
ListVersions(ListVersionsRequest, Metadata, DateTime?, CancellationToken)
Returns the list of all versions of the specified agent.
Declaration
public virtual ListVersionsResponse ListVersions(ListVersionsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
ListVersionsRequest | request | The request to send to the server. |
Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
DateTime? | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
ListVersionsResponse | The response received from the server. |
ListVersionsAsync(ListVersionsRequest, CallOptions)
Returns the list of all versions of the specified agent.
Declaration
public virtual AsyncUnaryCall<ListVersionsResponse> ListVersionsAsync(ListVersionsRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
ListVersionsRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<ListVersionsResponse> | The call object. |
ListVersionsAsync(ListVersionsRequest, Metadata, DateTime?, CancellationToken)
Returns the list of all versions of the specified agent.
Declaration
public virtual AsyncUnaryCall<ListVersionsResponse> ListVersionsAsync(ListVersionsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
ListVersionsRequest | request | The request to send to the server. |
Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
DateTime? | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<ListVersionsResponse> | The call object. |
NewInstance(ClientBaseConfiguration)
Creates a new instance of client from given ClientBaseConfiguration
.
Declaration
protected override Versions.VersionsClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
ClientBase.ClientBaseConfiguration | configuration |
Returns
Type | Description |
---|---|
Versions.VersionsClient |
Overrides
UpdateVersion(UpdateVersionRequest, CallOptions)
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.
Declaration
public virtual Version UpdateVersion(UpdateVersionRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
UpdateVersionRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
Version | The response received from the server. |
UpdateVersion(UpdateVersionRequest, Metadata, DateTime?, 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.
Declaration
public virtual Version UpdateVersion(UpdateVersionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
UpdateVersionRequest | request | The request to send to the server. |
Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
DateTime? | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
Version | The response received from the server. |
UpdateVersionAsync(UpdateVersionRequest, CallOptions)
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.
Declaration
public virtual AsyncUnaryCall<Version> UpdateVersionAsync(UpdateVersionRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
UpdateVersionRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<Version> | The call object. |
UpdateVersionAsync(UpdateVersionRequest, Metadata, DateTime?, 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.
Declaration
public virtual AsyncUnaryCall<Version> UpdateVersionAsync(UpdateVersionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
UpdateVersionRequest | request | The request to send to the server. |
Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
DateTime? | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<Version> | The call object. |