Constructor
new BigQueryStorage(rpcImpl, requestDelimitedopt, responseDelimitedopt)
Constructs a new BigQueryStorage service.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
rpcImpl |
$protobuf.RPCImpl |
RPC implementation |
||
requestDelimited |
boolean |
<optional> |
false |
Whether requests are length-delimited |
responseDelimited |
boolean |
<optional> |
false |
Whether responses are length-delimited |
Extends
- $protobuf.rpc.Service
Methods
batchCreateReadSessionStreams(request, callback) → {undefined}
Calls BatchCreateReadSessionStreams.
Parameters:
Name | Type | Description |
---|---|---|
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:
Type | Description |
---|---|
undefined |
batchCreateReadSessionStreams(request) → {Promise.<google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsResponse>}
Calls BatchCreateReadSessionStreams.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.bigquery.storage.v1beta1.IBatchCreateReadSessionStreamsRequest |
BatchCreateReadSessionStreamsRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsResponse> |
Promise |
createReadSession(request, callback) → {undefined}
Calls CreateReadSession.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.bigquery.storage.v1beta1.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:
Type | Description |
---|---|
undefined |
createReadSession(request) → {Promise.<google.cloud.bigquery.storage.v1beta1.ReadSession>}
Calls CreateReadSession.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.bigquery.storage.v1beta1.ICreateReadSessionRequest |
CreateReadSessionRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.bigquery.storage.v1beta1.ReadSession> |
Promise |
finalizeStream(request, callback) → {undefined}
Calls FinalizeStream.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.bigquery.storage.v1beta1.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:
Type | Description |
---|---|
undefined |
finalizeStream(request) → {Promise.<google.protobuf.Empty>}
Calls FinalizeStream.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.bigquery.storage.v1beta1.IFinalizeStreamRequest |
FinalizeStreamRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.protobuf.Empty> |
Promise |
readRows(request, callback) → {undefined}
Calls ReadRows.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.bigquery.storage.v1beta1.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:
Type | Description |
---|---|
undefined |
readRows(request) → {Promise.<google.cloud.bigquery.storage.v1beta1.ReadRowsResponse>}
Calls ReadRows.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.bigquery.storage.v1beta1.IReadRowsRequest |
ReadRowsRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.bigquery.storage.v1beta1.ReadRowsResponse> |
Promise |
splitReadStream(request, callback) → {undefined}
Calls SplitReadStream.
Parameters:
Name | Type | Description |
---|---|---|
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:
Type | Description |
---|---|
undefined |
splitReadStream(request) → {Promise.<google.cloud.bigquery.storage.v1beta1.SplitReadStreamResponse>}
Calls SplitReadStream.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.bigquery.storage.v1beta1.ISplitReadStreamRequest |
SplitReadStreamRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.bigquery.storage.v1beta1.SplitReadStreamResponse> |
Promise |
(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {BigQueryStorage}
Creates new BigQueryStorage service using the specified rpc implementation.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
rpcImpl |
$protobuf.RPCImpl |
RPC implementation |
||
requestDelimited |
boolean |
<optional> |
false |
Whether requests are length-delimited |
responseDelimited |
boolean |
<optional> |
false |
Whether responses are length-delimited |
Returns:
Type | Description |
---|---|
BigQueryStorage |
RPC service. Useful where requests and/or responses are streamed. |
Type Definitions
BatchCreateReadSessionStreamsCallback(error, responseopt)
Callback as used by batchCreateReadSessionStreams.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsResponse |
<optional> |
BatchCreateReadSessionStreamsResponse |
CreateReadSessionCallback(error, responseopt)
Callback as used by createReadSession.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.bigquery.storage.v1beta1.ReadSession |
<optional> |
ReadSession |
FinalizeStreamCallback(error, responseopt)
Callback as used by finalizeStream.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.protobuf.Empty |
<optional> |
Empty |
ReadRowsCallback(error, responseopt)
Callback as used by readRows.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.bigquery.storage.v1beta1.ReadRowsResponse |
<optional> |
ReadRowsResponse |
SplitReadStreamCallback(error, responseopt)
Callback as used by splitReadStream.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.bigquery.storage.v1beta1.SplitReadStreamResponse |
<optional> |
SplitReadStreamResponse |