Class protos.google.cloud.sql.v1beta4.SqlDataService (0.25.0)

Represents a SqlDataService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.sql.v1beta4.SqlDataService

Package

@google-cloud/sql

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

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

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

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

streamSqlData(request, callback)

public streamSqlData(request: google.cloud.sql.v1beta4.IStreamSqlDataRequest, callback: google.cloud.sql.v1beta4.SqlDataService.StreamSqlDataCallback): void;

Calls StreamSqlData.

Parameters
Name Description
request IStreamSqlDataRequest

StreamSqlDataRequest message or plain object

callback StreamSqlDataCallback

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

Returns
Type Description
void

streamSqlData(request)

public streamSqlData(request: google.cloud.sql.v1beta4.IStreamSqlDataRequest): Promise<google.cloud.sql.v1beta4.StreamSqlDataResponse>;

Calls StreamSqlData.

Parameter
Name Description
request IStreamSqlDataRequest

StreamSqlDataRequest message or plain object

Returns
Type Description
Promise<google.cloud.sql.v1beta4.StreamSqlDataResponse>

Promise