Dialogflow v3 API - Class Pages.PagesClient (2.9.0)

public class Pages.PagesClient : ClientBase<Pages.PagesClient>

Reference documentation and code samples for the Dialogflow v3 API class Pages.PagesClient.

Client for Pages

Inheritance

object > ClientBase > ClientBasePagesPagesClient > Pages.PagesClient

Namespace

Google.Cloud.Dialogflow.Cx.V3

Assembly

Google.Cloud.Dialogflow.Cx.V3.dll

Constructors

PagesClient()

protected PagesClient()

Protected parameterless constructor to allow creation of test doubles.

PagesClient(CallInvoker)

public PagesClient(CallInvoker callInvoker)

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

Parameter
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

PagesClient(ChannelBase)

public PagesClient(ChannelBase channel)

Creates a new client for Pages

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

PagesClient(ClientBaseConfiguration)

protected PagesClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration

The client configuration.

Methods

CreateLocationsClient()

public virtual Locations.LocationsClient CreateLocationsClient()

Creates a new instance of Locations.LocationsClient using the same call invoker as this client.

Returns
TypeDescription
LocationsLocationsClient

A new Locations.LocationsClient for the same target as this client.

CreatePage(CreatePageRequest, CallOptions)

public virtual Page CreatePage(CreatePageRequest request, CallOptions options)

Creates a page in the specified flow.

Note: You should always train a flow prior to sending it queries. See the training documentation.

Parameters
NameDescription
requestCreatePageRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Page

The response received from the server.

CreatePage(CreatePageRequest, Metadata, DateTime?, CancellationToken)

public virtual Page CreatePage(CreatePageRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates a page in the specified flow.

Note: You should always train a flow prior to sending it queries. See the training documentation.

Parameters
NameDescription
requestCreatePageRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
Page

The response received from the server.

CreatePageAsync(CreatePageRequest, CallOptions)

public virtual AsyncUnaryCall<Page> CreatePageAsync(CreatePageRequest request, CallOptions options)

Creates a page in the specified flow.

Note: You should always train a flow prior to sending it queries. See the training documentation.

Parameters
NameDescription
requestCreatePageRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallPage

The call object.

CreatePageAsync(CreatePageRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Page> CreatePageAsync(CreatePageRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates a page in the specified flow.

Note: You should always train a flow prior to sending it queries. See the training documentation.

Parameters
NameDescription
requestCreatePageRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
AsyncUnaryCallPage

The call object.

DeletePage(DeletePageRequest, CallOptions)

public virtual Empty DeletePage(DeletePageRequest request, CallOptions options)

Deletes the specified page.

Note: You should always train a flow prior to sending it queries. See the training documentation.

Parameters
NameDescription
requestDeletePageRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Empty

The response received from the server.

DeletePage(DeletePageRequest, Metadata, DateTime?, CancellationToken)

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

Deletes the specified page.

Note: You should always train a flow prior to sending it queries. See the training documentation.

Parameters
NameDescription
requestDeletePageRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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.

DeletePageAsync(DeletePageRequest, CallOptions)

public virtual AsyncUnaryCall<Empty> DeletePageAsync(DeletePageRequest request, CallOptions options)

Deletes the specified page.

Note: You should always train a flow prior to sending it queries. See the training documentation.

Parameters
NameDescription
requestDeletePageRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallEmpty

The call object.

DeletePageAsync(DeletePageRequest, Metadata, DateTime?, CancellationToken)

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

Deletes the specified page.

Note: You should always train a flow prior to sending it queries. See the training documentation.

Parameters
NameDescription
requestDeletePageRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
AsyncUnaryCallEmpty

The call object.

GetPage(GetPageRequest, CallOptions)

public virtual Page GetPage(GetPageRequest request, CallOptions options)

Retrieves the specified page.

Parameters
NameDescription
requestGetPageRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Page

The response received from the server.

GetPage(GetPageRequest, Metadata, DateTime?, CancellationToken)

public virtual Page GetPage(GetPageRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves the specified page.

Parameters
NameDescription
requestGetPageRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
Page

The response received from the server.

GetPageAsync(GetPageRequest, CallOptions)

public virtual AsyncUnaryCall<Page> GetPageAsync(GetPageRequest request, CallOptions options)

Retrieves the specified page.

Parameters
NameDescription
requestGetPageRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallPage

The call object.

GetPageAsync(GetPageRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Page> GetPageAsync(GetPageRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves the specified page.

Parameters
NameDescription
requestGetPageRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
AsyncUnaryCallPage

The call object.

ListPages(ListPagesRequest, CallOptions)

public virtual ListPagesResponse ListPages(ListPagesRequest request, CallOptions options)

Returns the list of all pages in the specified flow.

Parameters
NameDescription
requestListPagesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
ListPagesResponse

The response received from the server.

ListPages(ListPagesRequest, Metadata, DateTime?, CancellationToken)

public virtual ListPagesResponse ListPages(ListPagesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns the list of all pages in the specified flow.

Parameters
NameDescription
requestListPagesRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
ListPagesResponse

The response received from the server.

ListPagesAsync(ListPagesRequest, CallOptions)

public virtual AsyncUnaryCall<ListPagesResponse> ListPagesAsync(ListPagesRequest request, CallOptions options)

Returns the list of all pages in the specified flow.

Parameters
NameDescription
requestListPagesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallListPagesResponse

The call object.

ListPagesAsync(ListPagesRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ListPagesResponse> ListPagesAsync(ListPagesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns the list of all pages in the specified flow.

Parameters
NameDescription
requestListPagesRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
AsyncUnaryCallListPagesResponse

The call object.

NewInstance(ClientBaseConfiguration)

protected override Pages.PagesClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration
Returns
TypeDescription
PagesPagesClient
Overrides

UpdatePage(UpdatePageRequest, CallOptions)

public virtual Page UpdatePage(UpdatePageRequest request, CallOptions options)

Updates the specified page.

Note: You should always train a flow prior to sending it queries. See the training documentation.

Parameters
NameDescription
requestUpdatePageRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Page

The response received from the server.

UpdatePage(UpdatePageRequest, Metadata, DateTime?, CancellationToken)

public virtual Page UpdatePage(UpdatePageRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates the specified page.

Note: You should always train a flow prior to sending it queries. See the training documentation.

Parameters
NameDescription
requestUpdatePageRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
Page

The response received from the server.

UpdatePageAsync(UpdatePageRequest, CallOptions)

public virtual AsyncUnaryCall<Page> UpdatePageAsync(UpdatePageRequest request, CallOptions options)

Updates the specified page.

Note: You should always train a flow prior to sending it queries. See the training documentation.

Parameters
NameDescription
requestUpdatePageRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallPage

The call object.

UpdatePageAsync(UpdatePageRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Page> UpdatePageAsync(UpdatePageRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates the specified page.

Note: You should always train a flow prior to sending it queries. See the training documentation.

Parameters
NameDescription
requestUpdatePageRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
AsyncUnaryCallPage

The call object.