Class VersionsClientImpl
Versions client wrapper implementation, for convenient use.
Inherited Members
Namespace: Google.Cloud.Dialogflow.V2
Assembly: Google.Cloud.Dialogflow.V2.dll
Syntax
public sealed class VersionsClientImpl : VersionsClient
Remarks
Service for managing [Versions][google.cloud.dialogflow.v2.Version].
Constructors
VersionsClientImpl(VersionsClient, VersionsSettings, ILogger)
Constructs a client wrapper for the Versions service, with the specified gRPC client and settings.
Declaration
public VersionsClientImpl(Versions.VersionsClient grpcClient, VersionsSettings settings, ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
Versions.VersionsClient | grpcClient | The underlying gRPC client. |
VersionsSettings | settings | The base VersionsSettings used within this client. |
ILogger | logger | Optional ILogger to use within this client. |
Properties
GrpcClient
The underlying gRPC Versions client
Declaration
public override Versions.VersionsClient GrpcClient { get; }
Property Value
Type | Description |
---|---|
Versions.VersionsClient |
Overrides
LocationsClient
The Google.Cloud.Location.LocationsClient associated with this client.
Declaration
public override LocationsClient LocationsClient { get; }
Property Value
Type | Description |
---|---|
LocationsClient |
Overrides
Methods
CreateVersion(CreateVersionRequest, CallSettings)
Creates an agent version.
The new version points to the agent instance in the "default" environment.
Declaration
public override Version CreateVersion(CreateVersionRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
CreateVersionRequest | request | 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 |
---|---|
Version | The RPC response. |
Overrides
CreateVersionAsync(CreateVersionRequest, CallSettings)
Creates an agent version.
The new version points to the agent instance in the "default" environment.
Declaration
public override Task<Version> CreateVersionAsync(CreateVersionRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
CreateVersionRequest | request | 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<Version> | A Task containing the RPC response. |
Overrides
DeleteVersion(DeleteVersionRequest, CallSettings)
Delete the specified agent version.
Declaration
public override void DeleteVersion(DeleteVersionRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
DeleteVersionRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Overrides
DeleteVersionAsync(DeleteVersionRequest, CallSettings)
Delete the specified agent version.
Declaration
public override Task DeleteVersionAsync(DeleteVersionRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
DeleteVersionRequest | request | 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
GetVersion(GetVersionRequest, CallSettings)
Retrieves the specified agent version.
Declaration
public override Version GetVersion(GetVersionRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetVersionRequest | request | 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 |
---|---|
Version | The RPC response. |
Overrides
GetVersionAsync(GetVersionRequest, CallSettings)
Retrieves the specified agent version.
Declaration
public override Task<Version> GetVersionAsync(GetVersionRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetVersionRequest | request | 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<Version> | A Task containing the RPC response. |
Overrides
ListVersions(ListVersionsRequest, CallSettings)
Returns the list of all versions of the specified agent.
Declaration
public override PagedEnumerable<ListVersionsResponse, Version> ListVersions(ListVersionsRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ListVersionsRequest | request | 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 |
---|---|
PagedEnumerable<ListVersionsResponse, Version> | A pageable sequence of Version resources. |
Overrides
ListVersionsAsync(ListVersionsRequest, CallSettings)
Returns the list of all versions of the specified agent.
Declaration
public override PagedAsyncEnumerable<ListVersionsResponse, Version> ListVersionsAsync(ListVersionsRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ListVersionsRequest | request | 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 |
---|---|
PagedAsyncEnumerable<ListVersionsResponse, Version> | A pageable asynchronous sequence of Version resources. |
Overrides
UpdateVersion(UpdateVersionRequest, CallSettings)
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 override Version UpdateVersion(UpdateVersionRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
UpdateVersionRequest | request | 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 |
---|---|
Version | The RPC response. |
Overrides
UpdateVersionAsync(UpdateVersionRequest, CallSettings)
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 override Task<Version> UpdateVersionAsync(UpdateVersionRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
UpdateVersionRequest | request | 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<Version> | A Task containing the RPC response. |