public sealed class SessionServiceClientImpl : SessionServiceClientReference documentation and code samples for the Discovery Engine v1 API class SessionServiceClientImpl.
SessionService client wrapper implementation, for convenient use.
Namespace
Google.Cloud.DiscoveryEngine.V1Assembly
Google.Cloud.DiscoveryEngine.V1.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 |
SessionServiceSessionServiceClientThe underlying gRPC client. |
settings |
SessionServiceSettingsThe base SessionServiceSettings used within this client. |
logger |
ILoggerOptional ILogger to use within this client. |
Properties
GrpcClient
public override SessionService.SessionServiceClient GrpcClient { get; }The underlying gRPC SessionService client
| Property Value | |
|---|---|
| Type | Description |
SessionServiceSessionServiceClient |
|
LocationsClient
public override LocationsClient LocationsClient { get; }The LocationsClient associated with this client.
| Property Value | |
|---|---|
| Type | Description |
LocationsClient |
|
Methods
CreateSession(CreateSessionRequest, CallSettings)
public override Session CreateSession(CreateSessionRequest request, CallSettings callSettings = null)Creates a Session.
If the [Session][google.cloud.discoveryengine.v1.Session] to create already exists, an ALREADY_EXISTS error is returned.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateSessionRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Session |
The RPC response. |
CreateSessionAsync(CreateSessionRequest, CallSettings)
public override Task<Session> CreateSessionAsync(CreateSessionRequest request, CallSettings callSettings = null)Creates a Session.
If the [Session][google.cloud.discoveryengine.v1.Session] to create already exists, an ALREADY_EXISTS error is returned.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateSessionRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskSession |
A Task containing the RPC response. |
DeleteSession(DeleteSessionRequest, CallSettings)
public override void DeleteSession(DeleteSessionRequest request, CallSettings callSettings = null)Deletes a Session.
If the [Session][google.cloud.discoveryengine.v1.Session] to delete does not exist, a NOT_FOUND error is returned.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteSessionRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
DeleteSessionAsync(DeleteSessionRequest, CallSettings)
public override Task DeleteSessionAsync(DeleteSessionRequest request, CallSettings callSettings = null)Deletes a Session.
If the [Session][google.cloud.discoveryengine.v1.Session] to delete does not exist, a NOT_FOUND error is returned.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteSessionRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
GetSession(GetSessionRequest, CallSettings)
public override Session GetSession(GetSessionRequest request, CallSettings callSettings = null)Gets a Session.
| Parameters | |
|---|---|
| Name | Description |
request |
GetSessionRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Session |
The RPC response. |
GetSessionAsync(GetSessionRequest, CallSettings)
public override Task<Session> GetSessionAsync(GetSessionRequest request, CallSettings callSettings = null)Gets a Session.
| Parameters | |
|---|---|
| Name | Description |
request |
GetSessionRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskSession |
A Task containing the RPC response. |
ListSessions(ListSessionsRequest, CallSettings)
public override PagedEnumerable<ListSessionsResponse, Session> ListSessions(ListSessionsRequest request, CallSettings callSettings = null)Lists all Sessions by their parent [DataStore][google.cloud.discoveryengine.v1.DataStore].
| Parameters | |
|---|---|
| Name | Description |
request |
ListSessionsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListSessionsResponseSession |
A pageable sequence of Session resources. |
ListSessionsAsync(ListSessionsRequest, CallSettings)
public override PagedAsyncEnumerable<ListSessionsResponse, Session> ListSessionsAsync(ListSessionsRequest request, CallSettings callSettings = null)Lists all Sessions by their parent [DataStore][google.cloud.discoveryengine.v1.DataStore].
| Parameters | |
|---|---|
| Name | Description |
request |
ListSessionsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListSessionsResponseSession |
A pageable asynchronous sequence of Session resources. |
UpdateSession(UpdateSessionRequest, CallSettings)
public override Session UpdateSession(UpdateSessionRequest request, CallSettings callSettings = null)Updates a Session.
[Session][google.cloud.discoveryengine.v1.Session] action type cannot be changed. If the [Session][google.cloud.discoveryengine.v1.Session] to update does not exist, a NOT_FOUND error is returned.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateSessionRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Session |
The RPC response. |
UpdateSessionAsync(UpdateSessionRequest, CallSettings)
public override Task<Session> UpdateSessionAsync(UpdateSessionRequest request, CallSettings callSettings = null)Updates a Session.
[Session][google.cloud.discoveryengine.v1.Session] action type cannot be changed. If the [Session][google.cloud.discoveryengine.v1.Session] to update does not exist, a NOT_FOUND error is returned.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateSessionRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskSession |
A Task containing the RPC response. |