Represents a SessionService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.discoveryengine.v1beta.SessionServicePackage
@google-cloud/discoveryengineConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);Constructs a new SessionService service.
| Parameters | |
|---|---|
| Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Methods
create(rpcImpl, requestDelimited, responseDelimited)
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): SessionService;Creates new SessionService service using the specified rpc implementation.
| Parameters | |
|---|---|
| Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
| Returns | |
|---|---|
| Type | Description |
SessionService |
RPC service. Useful where requests and/or responses are streamed. |
createSession(request, callback)
public createSession(request: google.cloud.discoveryengine.v1beta.ICreateSessionRequest, callback: google.cloud.discoveryengine.v1beta.SessionService.CreateSessionCallback): void;Calls CreateSession.
| Parameters | |
|---|---|
| Name | Description |
request |
ICreateSessionRequest
CreateSessionRequest message or plain object |
callback |
CreateSessionCallback
Node-style callback called with the error, if any, and Session |
| Returns | |
|---|---|
| Type | Description |
void |
|
createSession(request)
public createSession(request: google.cloud.discoveryengine.v1beta.ICreateSessionRequest): Promise<google.cloud.discoveryengine.v1beta.Session>;Calls CreateSession.
| Parameter | |
|---|---|
| Name | Description |
request |
ICreateSessionRequest
CreateSessionRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.discoveryengine.v1beta.Session> |
Promise |
deleteSession(request, callback)
public deleteSession(request: google.cloud.discoveryengine.v1beta.IDeleteSessionRequest, callback: google.cloud.discoveryengine.v1beta.SessionService.DeleteSessionCallback): void;Calls DeleteSession.
| Parameters | |
|---|---|
| Name | Description |
request |
IDeleteSessionRequest
DeleteSessionRequest message or plain object |
callback |
DeleteSessionCallback
Node-style callback called with the error, if any, and Empty |
| Returns | |
|---|---|
| Type | Description |
void |
|
deleteSession(request)
public deleteSession(request: google.cloud.discoveryengine.v1beta.IDeleteSessionRequest): Promise<google.protobuf.Empty>;Calls DeleteSession.
| Parameter | |
|---|---|
| Name | Description |
request |
IDeleteSessionRequest
DeleteSessionRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.protobuf.Empty> |
Promise |
getSession(request, callback)
public getSession(request: google.cloud.discoveryengine.v1beta.IGetSessionRequest, callback: google.cloud.discoveryengine.v1beta.SessionService.GetSessionCallback): void;Calls GetSession.
| Parameters | |
|---|---|
| Name | Description |
request |
IGetSessionRequest
GetSessionRequest message or plain object |
callback |
GetSessionCallback
Node-style callback called with the error, if any, and Session |
| Returns | |
|---|---|
| Type | Description |
void |
|
getSession(request)
public getSession(request: google.cloud.discoveryengine.v1beta.IGetSessionRequest): Promise<google.cloud.discoveryengine.v1beta.Session>;Calls GetSession.
| Parameter | |
|---|---|
| Name | Description |
request |
IGetSessionRequest
GetSessionRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.discoveryengine.v1beta.Session> |
Promise |
listSessions(request, callback)
public listSessions(request: google.cloud.discoveryengine.v1beta.IListSessionsRequest, callback: google.cloud.discoveryengine.v1beta.SessionService.ListSessionsCallback): void;Calls ListSessions.
| Parameters | |
|---|---|
| Name | Description |
request |
IListSessionsRequest
ListSessionsRequest message or plain object |
callback |
ListSessionsCallback
Node-style callback called with the error, if any, and ListSessionsResponse |
| Returns | |
|---|---|
| Type | Description |
void |
|
listSessions(request)
public listSessions(request: google.cloud.discoveryengine.v1beta.IListSessionsRequest): Promise<google.cloud.discoveryengine.v1beta.ListSessionsResponse>;Calls ListSessions.
| Parameter | |
|---|---|
| Name | Description |
request |
IListSessionsRequest
ListSessionsRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.discoveryengine.v1beta.ListSessionsResponse> |
Promise |
updateSession(request, callback)
public updateSession(request: google.cloud.discoveryengine.v1beta.IUpdateSessionRequest, callback: google.cloud.discoveryengine.v1beta.SessionService.UpdateSessionCallback): void;Calls UpdateSession.
| Parameters | |
|---|---|
| Name | Description |
request |
IUpdateSessionRequest
UpdateSessionRequest message or plain object |
callback |
UpdateSessionCallback
Node-style callback called with the error, if any, and Session |
| Returns | |
|---|---|
| Type | Description |
void |
|
updateSession(request)
public updateSession(request: google.cloud.discoveryengine.v1beta.IUpdateSessionRequest): Promise<google.cloud.discoveryengine.v1beta.Session>;Calls UpdateSession.
| Parameter | |
|---|---|
| Name | Description |
request |
IUpdateSessionRequest
UpdateSessionRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.discoveryengine.v1beta.Session> |
Promise |