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.
Namespace
Google.Cloud.DiscoveryEngine.V1BetaAssembly
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 |
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.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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |