Discovery Engine v1beta API - Class SessionServiceClientImpl (1.0.0-beta19)

public sealed class SessionServiceClientImpl : SessionServiceClient

Reference documentation and code samples for the Discovery Engine v1beta API class SessionServiceClientImpl.

SessionService client wrapper implementation, for convenient use.

Inheritance

object > SessionServiceClient > SessionServiceClientImpl

Namespace

Google.Cloud.DiscoveryEngine.V1Beta

Assembly

Google.Cloud.DiscoveryEngine.V1Beta.dll

Remarks

Service for managing Sessions and Session-related resources.

Constructors

SessionServiceClientImpl(SessionServiceClient, SessionServiceSettings, ILogger)

public SessionServiceClientImpl(SessionService.SessionServiceClient grpcClient, SessionServiceSettings settings, ILogger logger)

Constructs a client wrapper for the SessionService service, with the specified gRPC client and settings.

Parameters
Name Description
grpcClient SessionServiceSessionServiceClient

The underlying gRPC client.

settings SessionServiceSettings

The base SessionServiceSettings used within this client.

logger ILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override SessionService.SessionServiceClient GrpcClient { get; }

The underlying gRPC SessionService client

Property Value
Type Description
SessionServiceSessionServiceClient
Overrides

LocationsClient

public override LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
Type Description
LocationsClient
Overrides

Methods

CreateSession(CreateSessionRequest, CallSettings)

public override Session CreateSession(CreateSessionRequest request, CallSettings callSettings = null)

Creates a Session.

If the [Session][google.cloud.discoveryengine.v1beta.Session] to create already exists, an ALREADY_EXISTS error is returned.

Parameters
Name Description
request CreateSessionRequest

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
Session

The RPC response.

Overrides

CreateSessionAsync(CreateSessionRequest, CallSettings)

public override Task<Session> CreateSessionAsync(CreateSessionRequest request, CallSettings callSettings = null)

Creates a Session.

If the [Session][google.cloud.discoveryengine.v1beta.Session] to create already exists, an ALREADY_EXISTS error is returned.

Parameters
Name Description
request CreateSessionRequest

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
TaskSession

A Task containing the RPC response.

Overrides

DeleteSession(DeleteSessionRequest, CallSettings)

public override void DeleteSession(DeleteSessionRequest request, CallSettings callSettings = null)

Deletes a Session.

If the [Session][google.cloud.discoveryengine.v1beta.Session] to delete does not exist, a NOT_FOUND error is returned.

Parameters
Name Description
request DeleteSessionRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Overrides

DeleteSessionAsync(DeleteSessionRequest, CallSettings)

public override Task DeleteSessionAsync(DeleteSessionRequest request, CallSettings callSettings = null)

Deletes a Session.

If the [Session][google.cloud.discoveryengine.v1beta.Session] to delete does not exist, a NOT_FOUND error is returned.

Parameters
Name Description
request DeleteSessionRequest

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

GetSession(GetSessionRequest, CallSettings)

public override Session GetSession(GetSessionRequest request, CallSettings callSettings = null)

Gets a Session.

Parameters
Name Description
request GetSessionRequest

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
Session

The RPC response.

Overrides

GetSessionAsync(GetSessionRequest, CallSettings)

public override Task<Session> GetSessionAsync(GetSessionRequest request, CallSettings callSettings = null)

Gets a Session.

Parameters
Name Description
request GetSessionRequest

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
TaskSession

A Task containing the RPC response.

Overrides

ListSessions(ListSessionsRequest, CallSettings)

public override PagedEnumerable<ListSessionsResponse, Session> ListSessions(ListSessionsRequest request, CallSettings callSettings = null)

Lists all Sessions by their parent [DataStore][google.cloud.discoveryengine.v1beta.DataStore].

Parameters
Name Description
request ListSessionsRequest

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
PagedEnumerableListSessionsResponseSession

A pageable sequence of Session resources.

Overrides

ListSessionsAsync(ListSessionsRequest, CallSettings)

public override PagedAsyncEnumerable<ListSessionsResponse, Session> ListSessionsAsync(ListSessionsRequest request, CallSettings callSettings = null)

Lists all Sessions by their parent [DataStore][google.cloud.discoveryengine.v1beta.DataStore].

Parameters
Name Description
request ListSessionsRequest

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
PagedAsyncEnumerableListSessionsResponseSession

A pageable asynchronous sequence of Session resources.

Overrides

UpdateSession(UpdateSessionRequest, CallSettings)

public override Session UpdateSession(UpdateSessionRequest request, CallSettings callSettings = null)

Updates a Session.

[Session][google.cloud.discoveryengine.v1beta.Session] action type cannot be changed. If the [Session][google.cloud.discoveryengine.v1beta.Session] to update does not exist, a NOT_FOUND error is returned.

Parameters
Name Description
request UpdateSessionRequest

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
Session

The RPC response.

Overrides

UpdateSessionAsync(UpdateSessionRequest, CallSettings)

public override Task<Session> UpdateSessionAsync(UpdateSessionRequest request, CallSettings callSettings = null)

Updates a Session.

[Session][google.cloud.discoveryengine.v1beta.Session] action type cannot be changed. If the [Session][google.cloud.discoveryengine.v1beta.Session] to update does not exist, a NOT_FOUND error is returned.

Parameters
Name Description
request UpdateSessionRequest

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
TaskSession

A Task containing the RPC response.

Overrides