Class SessionEntityTypes.SessionEntityTypesClient (3.3.0)

public class SessionEntityTypesClient : ClientBase<SessionEntityTypes.SessionEntityTypesClient>

Client for SessionEntityTypes

Inheritance

Object > ClientBase > ClientBase<SessionEntityTypes.SessionEntityTypesClient> > SessionEntityTypes.SessionEntityTypesClient

Namespace

Google.Cloud.Dialogflow.V2

Assembly

Google.Cloud.Dialogflow.V2.dll

Constructors

SessionEntityTypesClient()

protected SessionEntityTypesClient()

Protected parameterless constructor to allow creation of test doubles.

SessionEntityTypesClient(CallInvoker)

public SessionEntityTypesClient(CallInvoker callInvoker)

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

Parameter
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

SessionEntityTypesClient(Channel)

[Obsolete("This constructor overload is present for compatibility only, and will be removed in the next major version")]
public SessionEntityTypesClient(Channel channel)

Creates a new client using a channel.

Parameter
NameDescription
channelGrpc.Core.Channel

The channel to use to make remote calls.

SessionEntityTypesClient(ChannelBase)

public SessionEntityTypesClient(ChannelBase channel)

Creates a new client for SessionEntityTypes

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

SessionEntityTypesClient(ClientBase.ClientBaseConfiguration)

protected SessionEntityTypesClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration

The client configuration.

Methods

CreateSessionEntityType(CreateSessionEntityTypeRequest, CallOptions)

public virtual SessionEntityType CreateSessionEntityType(CreateSessionEntityTypeRequest request, CallOptions options)

Creates a session entity type.

If the specified session entity type already exists, overrides the session entity type.

This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

Parameters
NameDescription
requestCreateSessionEntityTypeRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
SessionEntityType

The response received from the server.

CreateSessionEntityType(CreateSessionEntityTypeRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual SessionEntityType CreateSessionEntityType(CreateSessionEntityTypeRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Creates a session entity type.

If the specified session entity type already exists, overrides the session entity type.

This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

Parameters
NameDescription
requestCreateSessionEntityTypeRequest

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
SessionEntityType

The response received from the server.

CreateSessionEntityTypeAsync(CreateSessionEntityTypeRequest, CallOptions)

public virtual AsyncUnaryCall<SessionEntityType> CreateSessionEntityTypeAsync(CreateSessionEntityTypeRequest request, CallOptions options)

Creates a session entity type.

If the specified session entity type already exists, overrides the session entity type.

This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

Parameters
NameDescription
requestCreateSessionEntityTypeRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<SessionEntityType>

The call object.

CreateSessionEntityTypeAsync(CreateSessionEntityTypeRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<SessionEntityType> CreateSessionEntityTypeAsync(CreateSessionEntityTypeRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Creates a session entity type.

If the specified session entity type already exists, overrides the session entity type.

This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

Parameters
NameDescription
requestCreateSessionEntityTypeRequest

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<SessionEntityType>

The call object.

DeleteSessionEntityType(DeleteSessionEntityTypeRequest, CallOptions)

public virtual Empty DeleteSessionEntityType(DeleteSessionEntityTypeRequest request, CallOptions options)

Deletes the specified session entity type.

This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

Parameters
NameDescription
requestDeleteSessionEntityTypeRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Empty

The response received from the server.

DeleteSessionEntityType(DeleteSessionEntityTypeRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Deletes the specified session entity type.

This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

Parameters
NameDescription
requestDeleteSessionEntityTypeRequest

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.

DeleteSessionEntityTypeAsync(DeleteSessionEntityTypeRequest, CallOptions)

public virtual AsyncUnaryCall<Empty> DeleteSessionEntityTypeAsync(DeleteSessionEntityTypeRequest request, CallOptions options)

Deletes the specified session entity type.

This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

Parameters
NameDescription
requestDeleteSessionEntityTypeRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Empty>

The call object.

DeleteSessionEntityTypeAsync(DeleteSessionEntityTypeRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Deletes the specified session entity type.

This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

Parameters
NameDescription
requestDeleteSessionEntityTypeRequest

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.

GetSessionEntityType(GetSessionEntityTypeRequest, CallOptions)

public virtual SessionEntityType GetSessionEntityType(GetSessionEntityTypeRequest request, CallOptions options)

Retrieves the specified session entity type.

This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

Parameters
NameDescription
requestGetSessionEntityTypeRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
SessionEntityType

The response received from the server.

GetSessionEntityType(GetSessionEntityTypeRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual SessionEntityType GetSessionEntityType(GetSessionEntityTypeRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Retrieves the specified session entity type.

This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

Parameters
NameDescription
requestGetSessionEntityTypeRequest

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
SessionEntityType

The response received from the server.

GetSessionEntityTypeAsync(GetSessionEntityTypeRequest, CallOptions)

public virtual AsyncUnaryCall<SessionEntityType> GetSessionEntityTypeAsync(GetSessionEntityTypeRequest request, CallOptions options)

Retrieves the specified session entity type.

This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

Parameters
NameDescription
requestGetSessionEntityTypeRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<SessionEntityType>

The call object.

GetSessionEntityTypeAsync(GetSessionEntityTypeRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<SessionEntityType> GetSessionEntityTypeAsync(GetSessionEntityTypeRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Retrieves the specified session entity type.

This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

Parameters
NameDescription
requestGetSessionEntityTypeRequest

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<SessionEntityType>

The call object.

ListSessionEntityTypes(ListSessionEntityTypesRequest, CallOptions)

public virtual ListSessionEntityTypesResponse ListSessionEntityTypes(ListSessionEntityTypesRequest request, CallOptions options)

Returns the list of all session entity types in the specified session.

This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

Parameters
NameDescription
requestListSessionEntityTypesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
ListSessionEntityTypesResponse

The response received from the server.

ListSessionEntityTypes(ListSessionEntityTypesRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual ListSessionEntityTypesResponse ListSessionEntityTypes(ListSessionEntityTypesRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Returns the list of all session entity types in the specified session.

This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

Parameters
NameDescription
requestListSessionEntityTypesRequest

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
ListSessionEntityTypesResponse

The response received from the server.

ListSessionEntityTypesAsync(ListSessionEntityTypesRequest, CallOptions)

public virtual AsyncUnaryCall<ListSessionEntityTypesResponse> ListSessionEntityTypesAsync(ListSessionEntityTypesRequest request, CallOptions options)

Returns the list of all session entity types in the specified session.

This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

Parameters
NameDescription
requestListSessionEntityTypesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<ListSessionEntityTypesResponse>

The call object.

ListSessionEntityTypesAsync(ListSessionEntityTypesRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<ListSessionEntityTypesResponse> ListSessionEntityTypesAsync(ListSessionEntityTypesRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Returns the list of all session entity types in the specified session.

This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

Parameters
NameDescription
requestListSessionEntityTypesRequest

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<ListSessionEntityTypesResponse>

The call object.

NewInstance(ClientBase.ClientBaseConfiguration)

protected override SessionEntityTypes.SessionEntityTypesClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

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

UpdateSessionEntityType(UpdateSessionEntityTypeRequest, CallOptions)

public virtual SessionEntityType UpdateSessionEntityType(UpdateSessionEntityTypeRequest request, CallOptions options)

Updates the specified session entity type.

This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

Parameters
NameDescription
requestUpdateSessionEntityTypeRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
SessionEntityType

The response received from the server.

UpdateSessionEntityType(UpdateSessionEntityTypeRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual SessionEntityType UpdateSessionEntityType(UpdateSessionEntityTypeRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Updates the specified session entity type.

This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

Parameters
NameDescription
requestUpdateSessionEntityTypeRequest

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
SessionEntityType

The response received from the server.

UpdateSessionEntityTypeAsync(UpdateSessionEntityTypeRequest, CallOptions)

public virtual AsyncUnaryCall<SessionEntityType> UpdateSessionEntityTypeAsync(UpdateSessionEntityTypeRequest request, CallOptions options)

Updates the specified session entity type.

This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

Parameters
NameDescription
requestUpdateSessionEntityTypeRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<SessionEntityType>

The call object.

UpdateSessionEntityTypeAsync(UpdateSessionEntityTypeRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<SessionEntityType> UpdateSessionEntityTypeAsync(UpdateSessionEntityTypeRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Updates the specified session entity type.

This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

Parameters
NameDescription
requestUpdateSessionEntityTypeRequest

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<SessionEntityType>

The call object.