Represents a BigQueryWrite
Inheritance
$protobuf.rpc.Service > protos.google.cloud.bigquery.storage.v1.BigQueryWritePackage
@google-cloud/bigquery-storageConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new BigQueryWrite service.
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Methods
appendRows(request, callback)
public appendRows(request: google.cloud.bigquery.storage.v1.IAppendRowsRequest, callback: google.cloud.bigquery.storage.v1.BigQueryWrite.AppendRowsCallback): void;
Calls AppendRows.
Name | Description |
request |
google.cloud.bigquery.storage.v1.IAppendRowsRequest
AppendRowsRequest message or plain object |
callback |
google.cloud.bigquery.storage.v1.BigQueryWrite.AppendRowsCallback
Node-style callback called with the error, if any, and AppendRowsResponse |
Type | Description |
void |
appendRows(request)
public appendRows(request: google.cloud.bigquery.storage.v1.IAppendRowsRequest): Promise<google.cloud.bigquery.storage.v1.AppendRowsResponse>;
Calls AppendRows.
Name | Description |
request |
google.cloud.bigquery.storage.v1.IAppendRowsRequest
AppendRowsRequest message or plain object |
Type | Description |
Promise<google.cloud.bigquery.storage.v1.AppendRowsResponse> | Promise |
batchCommitWriteStreams(request, callback)
public batchCommitWriteStreams(request: google.cloud.bigquery.storage.v1.IBatchCommitWriteStreamsRequest, callback: google.cloud.bigquery.storage.v1.BigQueryWrite.BatchCommitWriteStreamsCallback): void;
Calls BatchCommitWriteStreams.
Name | Description |
request |
IBatchCommitWriteStreamsRequest
BatchCommitWriteStreamsRequest message or plain object |
callback |
google.cloud.bigquery.storage.v1.BigQueryWrite.BatchCommitWriteStreamsCallback
Node-style callback called with the error, if any, and BatchCommitWriteStreamsResponse |
Type | Description |
void |
batchCommitWriteStreams(request)
public batchCommitWriteStreams(request: google.cloud.bigquery.storage.v1.IBatchCommitWriteStreamsRequest): Promise<google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse>;
Calls BatchCommitWriteStreams.
Name | Description |
request |
IBatchCommitWriteStreamsRequest
BatchCommitWriteStreamsRequest message or plain object |
Type | Description |
Promise<google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse> | Promise |
create(rpcImpl, requestDelimited, responseDelimited)
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): BigQueryWrite;
Creates new BigQueryWrite service using the specified rpc implementation.
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Type | Description |
BigQueryWrite | RPC service. Useful where requests and/or responses are streamed. |
createWriteStream(request, callback)
public createWriteStream(request: google.cloud.bigquery.storage.v1.ICreateWriteStreamRequest, callback: google.cloud.bigquery.storage.v1.BigQueryWrite.CreateWriteStreamCallback): void;
Calls CreateWriteStream.
Name | Description |
request |
google.cloud.bigquery.storage.v1.ICreateWriteStreamRequest
CreateWriteStreamRequest message or plain object |
callback |
google.cloud.bigquery.storage.v1.BigQueryWrite.CreateWriteStreamCallback
Node-style callback called with the error, if any, and WriteStream |
Type | Description |
void |
createWriteStream(request)
public createWriteStream(request: google.cloud.bigquery.storage.v1.ICreateWriteStreamRequest): Promise<google.cloud.bigquery.storage.v1.WriteStream>;
Calls CreateWriteStream.
Name | Description |
request |
google.cloud.bigquery.storage.v1.ICreateWriteStreamRequest
CreateWriteStreamRequest message or plain object |
Type | Description |
Promise<google.cloud.bigquery.storage.v1.WriteStream> | Promise |
finalizeWriteStream(request, callback)
public finalizeWriteStream(request: google.cloud.bigquery.storage.v1.IFinalizeWriteStreamRequest, callback: google.cloud.bigquery.storage.v1.BigQueryWrite.FinalizeWriteStreamCallback): void;
Calls FinalizeWriteStream.
Name | Description |
request |
google.cloud.bigquery.storage.v1.IFinalizeWriteStreamRequest
FinalizeWriteStreamRequest message or plain object |
callback |
google.cloud.bigquery.storage.v1.BigQueryWrite.FinalizeWriteStreamCallback
Node-style callback called with the error, if any, and FinalizeWriteStreamResponse |
Type | Description |
void |
finalizeWriteStream(request)
public finalizeWriteStream(request: google.cloud.bigquery.storage.v1.IFinalizeWriteStreamRequest): Promise<google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse>;
Calls FinalizeWriteStream.
Name | Description |
request |
google.cloud.bigquery.storage.v1.IFinalizeWriteStreamRequest
FinalizeWriteStreamRequest message or plain object |
Type | Description |
Promise<google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse> | Promise |
flushRows(request, callback)
public flushRows(request: google.cloud.bigquery.storage.v1.IFlushRowsRequest, callback: google.cloud.bigquery.storage.v1.BigQueryWrite.FlushRowsCallback): void;
Calls FlushRows.
Name | Description |
request |
google.cloud.bigquery.storage.v1.IFlushRowsRequest
FlushRowsRequest message or plain object |
callback |
google.cloud.bigquery.storage.v1.BigQueryWrite.FlushRowsCallback
Node-style callback called with the error, if any, and FlushRowsResponse |
Type | Description |
void |
flushRows(request)
public flushRows(request: google.cloud.bigquery.storage.v1.IFlushRowsRequest): Promise<google.cloud.bigquery.storage.v1.FlushRowsResponse>;
Calls FlushRows.
Name | Description |
request |
google.cloud.bigquery.storage.v1.IFlushRowsRequest
FlushRowsRequest message or plain object |
Type | Description |
Promise<google.cloud.bigquery.storage.v1.FlushRowsResponse> | Promise |
getWriteStream(request, callback)
public getWriteStream(request: google.cloud.bigquery.storage.v1.IGetWriteStreamRequest, callback: google.cloud.bigquery.storage.v1.BigQueryWrite.GetWriteStreamCallback): void;
Calls GetWriteStream.
Name | Description |
request |
google.cloud.bigquery.storage.v1.IGetWriteStreamRequest
GetWriteStreamRequest message or plain object |
callback |
google.cloud.bigquery.storage.v1.BigQueryWrite.GetWriteStreamCallback
Node-style callback called with the error, if any, and WriteStream |
Type | Description |
void |
getWriteStream(request)
public getWriteStream(request: google.cloud.bigquery.storage.v1.IGetWriteStreamRequest): Promise<google.cloud.bigquery.storage.v1.WriteStream>;
Calls GetWriteStream.
Name | Description |
request |
google.cloud.bigquery.storage.v1.IGetWriteStreamRequest
GetWriteStreamRequest message or plain object |
Type | Description |
Promise<google.cloud.bigquery.storage.v1.WriteStream> | Promise |