Class protos.google.cloud.dataproc.v1.SessionController (5.12.0)

Represents a SessionController

Inheritance

$protobuf.rpc.Service > protos.google.cloud.dataproc.v1.SessionController

Package

@google-cloud/dataproc

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new SessionController 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): SessionController;

Creates new SessionController 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
SessionController

RPC service. Useful where requests and/or responses are streamed.

createSession(request, callback)

public createSession(request: google.cloud.dataproc.v1.ICreateSessionRequest, callback: google.cloud.dataproc.v1.SessionController.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 Operation

Returns
Type Description
void

createSession(request)

public createSession(request: google.cloud.dataproc.v1.ICreateSessionRequest): Promise<google.longrunning.Operation>;

Calls CreateSession.

Parameter
Name Description
request ICreateSessionRequest

CreateSessionRequest message or plain object

Returns
Type Description
Promise<google.longrunning.Operation>

Promise

deleteSession(request, callback)

public deleteSession(request: google.cloud.dataproc.v1.IDeleteSessionRequest, callback: google.cloud.dataproc.v1.SessionController.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 Operation

Returns
Type Description
void

deleteSession(request)

public deleteSession(request: google.cloud.dataproc.v1.IDeleteSessionRequest): Promise<google.longrunning.Operation>;

Calls DeleteSession.

Parameter
Name Description
request IDeleteSessionRequest

DeleteSessionRequest message or plain object

Returns
Type Description
Promise<google.longrunning.Operation>

Promise

getSession(request, callback)

public getSession(request: google.cloud.dataproc.v1.IGetSessionRequest, callback: google.cloud.dataproc.v1.SessionController.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.dataproc.v1.IGetSessionRequest): Promise<google.cloud.dataproc.v1.Session>;

Calls GetSession.

Parameter
Name Description
request IGetSessionRequest

GetSessionRequest message or plain object

Returns
Type Description
Promise<google.cloud.dataproc.v1.Session>

Promise

listSessions(request, callback)

public listSessions(request: google.cloud.dataproc.v1.IListSessionsRequest, callback: google.cloud.dataproc.v1.SessionController.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.dataproc.v1.IListSessionsRequest): Promise<google.cloud.dataproc.v1.ListSessionsResponse>;

Calls ListSessions.

Parameter
Name Description
request IListSessionsRequest

ListSessionsRequest message or plain object

Returns
Type Description
Promise<google.cloud.dataproc.v1.ListSessionsResponse>

Promise

terminateSession(request, callback)

public terminateSession(request: google.cloud.dataproc.v1.ITerminateSessionRequest, callback: google.cloud.dataproc.v1.SessionController.TerminateSessionCallback): void;

Calls TerminateSession.

Parameters
Name Description
request ITerminateSessionRequest

TerminateSessionRequest message or plain object

callback TerminateSessionCallback

Node-style callback called with the error, if any, and Operation

Returns
Type Description
void

terminateSession(request)

public terminateSession(request: google.cloud.dataproc.v1.ITerminateSessionRequest): Promise<google.longrunning.Operation>;

Calls TerminateSession.

Parameter
Name Description
request ITerminateSessionRequest

TerminateSessionRequest message or plain object

Returns
Type Description
Promise<google.longrunning.Operation>

Promise