Class protos.google.cloud.bigquery.storage.v1beta1.BigQueryStorage

Represents a BigQueryStorage

Inheritance

$protobuf.rpc.Service > protos.google.cloud.bigquery.storage.v1beta1.BigQueryStorage

Package

@google-cloud/bigquery-storage

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new BigQueryStorage service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

batchCreateReadSessionStreams(request, callback)

public batchCreateReadSessionStreams(request: google.cloud.bigquery.storage.v1beta1.IBatchCreateReadSessionStreamsRequest, callback: google.cloud.bigquery.storage.v1beta1.BigQueryStorage.BatchCreateReadSessionStreamsCallback): void;

Calls BatchCreateReadSessionStreams.

Parameters
NameDescription
request google.cloud.bigquery.storage.v1beta1.IBatchCreateReadSessionStreamsRequest

BatchCreateReadSessionStreamsRequest message or plain object

callback google.cloud.bigquery.storage.v1beta1.BigQueryStorage.BatchCreateReadSessionStreamsCallback

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

Returns
TypeDescription
void

batchCreateReadSessionStreams(request)

public batchCreateReadSessionStreams(request: google.cloud.bigquery.storage.v1beta1.IBatchCreateReadSessionStreamsRequest): Promise<google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsResponse>;

Calls BatchCreateReadSessionStreams.

Parameter
NameDescription
request google.cloud.bigquery.storage.v1beta1.IBatchCreateReadSessionStreamsRequest

BatchCreateReadSessionStreamsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsResponse>

Promise

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): BigQueryStorage;

Creates new BigQueryStorage service using the specified rpc implementation.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
BigQueryStorage

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

createReadSession(request, callback)

public createReadSession(request: google.cloud.bigquery.storage.v1beta1.ICreateReadSessionRequest, callback: google.cloud.bigquery.storage.v1beta1.BigQueryStorage.CreateReadSessionCallback): void;

Calls CreateReadSession.

Parameters
NameDescription
request ICreateReadSessionRequest

CreateReadSessionRequest message or plain object

callback google.cloud.bigquery.storage.v1beta1.BigQueryStorage.CreateReadSessionCallback

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

Returns
TypeDescription
void

createReadSession(request)

public createReadSession(request: google.cloud.bigquery.storage.v1beta1.ICreateReadSessionRequest): Promise<google.cloud.bigquery.storage.v1beta1.ReadSession>;

Calls CreateReadSession.

Parameter
NameDescription
request ICreateReadSessionRequest

CreateReadSessionRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.bigquery.storage.v1beta1.ReadSession>

Promise

finalizeStream(request, callback)

public finalizeStream(request: google.cloud.bigquery.storage.v1beta1.IFinalizeStreamRequest, callback: google.cloud.bigquery.storage.v1beta1.BigQueryStorage.FinalizeStreamCallback): void;

Calls FinalizeStream.

Parameters
NameDescription
request IFinalizeStreamRequest

FinalizeStreamRequest message or plain object

callback google.cloud.bigquery.storage.v1beta1.BigQueryStorage.FinalizeStreamCallback

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

Returns
TypeDescription
void

finalizeStream(request)

public finalizeStream(request: google.cloud.bigquery.storage.v1beta1.IFinalizeStreamRequest): Promise<google.protobuf.Empty>;

Calls FinalizeStream.

Parameter
NameDescription
request IFinalizeStreamRequest

FinalizeStreamRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

readRows(request, callback)

public readRows(request: google.cloud.bigquery.storage.v1beta1.IReadRowsRequest, callback: google.cloud.bigquery.storage.v1beta1.BigQueryStorage.ReadRowsCallback): void;

Calls ReadRows.

Parameters
NameDescription
request IReadRowsRequest

ReadRowsRequest message or plain object

callback google.cloud.bigquery.storage.v1beta1.BigQueryStorage.ReadRowsCallback

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

Returns
TypeDescription
void

readRows(request)

public readRows(request: google.cloud.bigquery.storage.v1beta1.IReadRowsRequest): Promise<google.cloud.bigquery.storage.v1beta1.ReadRowsResponse>;

Calls ReadRows.

Parameter
NameDescription
request IReadRowsRequest

ReadRowsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.bigquery.storage.v1beta1.ReadRowsResponse>

Promise

splitReadStream(request, callback)

public splitReadStream(request: google.cloud.bigquery.storage.v1beta1.ISplitReadStreamRequest, callback: google.cloud.bigquery.storage.v1beta1.BigQueryStorage.SplitReadStreamCallback): void;

Calls SplitReadStream.

Parameters
NameDescription
request google.cloud.bigquery.storage.v1beta1.ISplitReadStreamRequest

SplitReadStreamRequest message or plain object

callback google.cloud.bigquery.storage.v1beta1.BigQueryStorage.SplitReadStreamCallback

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

Returns
TypeDescription
void

splitReadStream(request)

public splitReadStream(request: google.cloud.bigquery.storage.v1beta1.ISplitReadStreamRequest): Promise<google.cloud.bigquery.storage.v1beta1.SplitReadStreamResponse>;

Calls SplitReadStream.

Parameter
NameDescription
request google.cloud.bigquery.storage.v1beta1.ISplitReadStreamRequest

SplitReadStreamRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.bigquery.storage.v1beta1.SplitReadStreamResponse>

Promise