public class VersionsClient : ClientBase<Versions.VersionsClient>Client for Versions
Namespace
Google.Cloud.Dialogflow.Cx.V3Assembly
Google.Cloud.Dialogflow.Cx.V3.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 | |
|---|---|
| Name | Description |
callInvoker |
CallInvokerThe callInvoker to use to make remote calls. |
VersionsClient(ChannelBase)
public VersionsClient(ChannelBase channel)Creates a new client for Versions
| Parameter | |
|---|---|
| Name | Description |
channel |
ChannelBaseThe channel to use to make remote calls. |
VersionsClient(ClientBase.ClientBaseConfiguration)
protected VersionsClient(ClientBase.ClientBaseConfiguration configuration)Protected constructor to allow creation of configured clients.
| Parameter | |
|---|---|
| Name | Description |
configuration |
ClientBase.ClientBaseConfigurationThe client configuration. |
Methods
CompareVersions(CompareVersionsRequest, CallOptions)
public virtual CompareVersionsResponse CompareVersions(CompareVersionsRequest request, CallOptions options)Compares the specified base version with target version.
| Parameters | |
|---|---|
| Name | Description |
request |
CompareVersionsRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
CompareVersionsResponse |
The response received from the server. |
CompareVersions(CompareVersionsRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual CompareVersionsResponse CompareVersions(CompareVersionsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))Compares the specified base version with target version.
| Parameters | |
|---|---|
| Name | Description |
request |
CompareVersionsRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
CompareVersionsResponse |
The response received from the server. |
CompareVersionsAsync(CompareVersionsRequest, CallOptions)
public virtual AsyncUnaryCall<CompareVersionsResponse> CompareVersionsAsync(CompareVersionsRequest request, CallOptions options)Compares the specified base version with target version.
| Parameters | |
|---|---|
| Name | Description |
request |
CompareVersionsRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCall<CompareVersionsResponse> |
The call object. |
CompareVersionsAsync(CompareVersionsRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<CompareVersionsResponse> CompareVersionsAsync(CompareVersionsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))Compares the specified base version with target version.
| Parameters | |
|---|---|
| Name | Description |
request |
CompareVersionsRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCall<CompareVersionsResponse> |
The call object. |
CreateOperationsClient()
public virtual Operations.OperationsClient CreateOperationsClient()Creates a new instance of Operations.OperationsClient using the same call invoker as this client.
| Returns | |
|---|---|
| Type | Description |
Operations.OperationsClient |
A new Operations client for the same target as this client. |
CreateVersion(CreateVersionRequest, CallOptions)
public virtual Operation CreateVersion(CreateVersionRequest request, CallOptions options)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 | |
|---|---|
| Name | Description |
request |
CreateVersionRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
Operation |
The response received from the server. |
CreateVersion(CreateVersionRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Operation CreateVersion(CreateVersionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))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 | |
|---|---|
| Name | Description |
request |
CreateVersionRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
Operation |
The response received from the server. |
CreateVersionAsync(CreateVersionRequest, CallOptions)
public virtual AsyncUnaryCall<Operation> CreateVersionAsync(CreateVersionRequest request, CallOptions options)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 | |
|---|---|
| Name | Description |
request |
CreateVersionRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCall<Operation> |
The call object. |
CreateVersionAsync(CreateVersionRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Operation> CreateVersionAsync(CreateVersionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))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 | |
|---|---|
| Name | Description |
request |
CreateVersionRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCall<Operation> |
The call object. |
DeleteVersion(DeleteVersionRequest, CallOptions)
public virtual Empty DeleteVersion(DeleteVersionRequest request, CallOptions options)Deletes the specified [Version][google.cloud.dialogflow.cx.v3.Version].
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteVersionRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
Empty |
The response received from the server. |
DeleteVersion(DeleteVersionRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Empty DeleteVersion(DeleteVersionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))Deletes the specified [Version][google.cloud.dialogflow.cx.v3.Version].
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteVersionRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
Empty |
The response received from the server. |
DeleteVersionAsync(DeleteVersionRequest, CallOptions)
public virtual AsyncUnaryCall<Empty> DeleteVersionAsync(DeleteVersionRequest request, CallOptions options)Deletes the specified [Version][google.cloud.dialogflow.cx.v3.Version].
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteVersionRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCall<Empty> |
The call object. |
DeleteVersionAsync(DeleteVersionRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Empty> DeleteVersionAsync(DeleteVersionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))Deletes the specified [Version][google.cloud.dialogflow.cx.v3.Version].
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteVersionRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCall<Empty> |
The call object. |
GetVersion(GetVersionRequest, CallOptions)
public virtual Version GetVersion(GetVersionRequest request, CallOptions options)Retrieves the specified [Version][google.cloud.dialogflow.cx.v3.Version].
| Parameters | |
|---|---|
| Name | Description |
request |
GetVersionRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
Version |
The response received from the server. |
GetVersion(GetVersionRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Version GetVersion(GetVersionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))Retrieves the specified [Version][google.cloud.dialogflow.cx.v3.Version].
| Parameters | |
|---|---|
| Name | Description |
request |
GetVersionRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
Version |
The response received from the server. |
GetVersionAsync(GetVersionRequest, CallOptions)
public virtual AsyncUnaryCall<Version> GetVersionAsync(GetVersionRequest request, CallOptions options)Retrieves the specified [Version][google.cloud.dialogflow.cx.v3.Version].
| Parameters | |
|---|---|
| Name | Description |
request |
GetVersionRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCall<Version> |
The call object. |
GetVersionAsync(GetVersionRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Version> GetVersionAsync(GetVersionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))Retrieves the specified [Version][google.cloud.dialogflow.cx.v3.Version].
| Parameters | |
|---|---|
| Name | Description |
request |
GetVersionRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCall<Version> |
The call object. |
ListVersions(ListVersionsRequest, CallOptions)
public virtual ListVersionsResponse ListVersions(ListVersionsRequest request, CallOptions options)Returns the list of all versions in the specified [Flow][google.cloud.dialogflow.cx.v3.Flow].
| Parameters | |
|---|---|
| Name | Description |
request |
ListVersionsRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
ListVersionsResponse |
The response received from the server. |
ListVersions(ListVersionsRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual ListVersionsResponse ListVersions(ListVersionsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))Returns the list of all versions in the specified [Flow][google.cloud.dialogflow.cx.v3.Flow].
| Parameters | |
|---|---|
| Name | Description |
request |
ListVersionsRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
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 in the specified [Flow][google.cloud.dialogflow.cx.v3.Flow].
| Parameters | |
|---|---|
| Name | Description |
request |
ListVersionsRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCall<ListVersionsResponse> |
The call object. |
ListVersionsAsync(ListVersionsRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<ListVersionsResponse> ListVersionsAsync(ListVersionsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))Returns the list of all versions in the specified [Flow][google.cloud.dialogflow.cx.v3.Flow].
| Parameters | |
|---|---|
| Name | Description |
request |
ListVersionsRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCall<ListVersionsResponse> |
The call object. |
LoadVersion(LoadVersionRequest, CallOptions)
public virtual Operation LoadVersion(LoadVersionRequest request, CallOptions options)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:
metadata: An empty Struct messageresponse: An Empty message
| Parameters | |
|---|---|
| Name | Description |
request |
LoadVersionRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
Operation |
The response received from the server. |
LoadVersion(LoadVersionRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Operation LoadVersion(LoadVersionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))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:
metadata: An empty Struct messageresponse: An Empty message
| Parameters | |
|---|---|
| Name | Description |
request |
LoadVersionRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
Operation |
The response received from the server. |
LoadVersionAsync(LoadVersionRequest, CallOptions)
public virtual AsyncUnaryCall<Operation> LoadVersionAsync(LoadVersionRequest request, CallOptions options)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:
metadata: An empty Struct messageresponse: An Empty message
| Parameters | |
|---|---|
| Name | Description |
request |
LoadVersionRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCall<Operation> |
The call object. |
LoadVersionAsync(LoadVersionRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Operation> LoadVersionAsync(LoadVersionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))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:
metadata: An empty Struct messageresponse: An Empty message
| Parameters | |
|---|---|
| Name | Description |
request |
LoadVersionRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCall<Operation> |
The call object. |
NewInstance(ClientBase.ClientBaseConfiguration)
protected override Versions.VersionsClient NewInstance(ClientBase.ClientBaseConfiguration configuration)Creates a new instance of client from given ClientBaseConfiguration.
| Parameter | |
|---|---|
| Name | Description |
configuration |
ClientBase.ClientBaseConfiguration |
| Returns | |
|---|---|
| Type | Description |
Versions.VersionsClient |
|
UpdateVersion(UpdateVersionRequest, CallOptions)
public virtual Version UpdateVersion(UpdateVersionRequest request, CallOptions options)Updates the specified [Version][google.cloud.dialogflow.cx.v3.Version].
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateVersionRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
Version |
The response received from the server. |
UpdateVersion(UpdateVersionRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Version UpdateVersion(UpdateVersionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))Updates the specified [Version][google.cloud.dialogflow.cx.v3.Version].
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateVersionRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
Version |
The response received from the server. |
UpdateVersionAsync(UpdateVersionRequest, CallOptions)
public virtual AsyncUnaryCall<Version> UpdateVersionAsync(UpdateVersionRequest request, CallOptions options)Updates the specified [Version][google.cloud.dialogflow.cx.v3.Version].
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateVersionRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCall<Version> |
The call object. |
UpdateVersionAsync(UpdateVersionRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Version> UpdateVersionAsync(UpdateVersionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))Updates the specified [Version][google.cloud.dialogflow.cx.v3.Version].
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateVersionRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCall<Version> |
The call object. |