# Class BigQueryWriteGrpc.BigQueryWriteStub (3.29.0)

3.27.0 (latest) 3.24.0 3.23.0 3.21.0 3.20.0 3.19.1 3.18.0 3.17.3 3.16.3 3.15.3 3.14.1 3.12.0 3.11.4 3.10.3 3.9.3 3.8.0 3.6.1 3.5.2 3.4.0 3.3.1 3.2.0 3.1.0 3.0.1 2.47.0 2.45.0 2.44.1 2.43.0

    public static final class BigQueryWriteGrpc.BigQueryWriteStub extends AbstractAsyncStub<BigQueryWriteGrpc.BigQueryWriteStub>

A stub to allow clients to do asynchronous rpc calls to service BigQueryWrite.

BigQuery Write API.
The Write API can be used to write data to BigQuery.
The [google.cloud.bigquery.storage.v1
API](https://docs.cloud.google.com/bigquery/docs/reference/storage/rpc/google.cloud.bigquery.storage.v1)
should be used instead of the v1beta2 API for BigQueryWrite operations.

## Inheritance

[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \> io.grpc.stub.AbstractStub \> io.grpc.stub.AbstractAsyncStub \> BigQueryWriteGrpc.BigQueryWriteStub

## Inherited Members

io.grpc.stub.AbstractAsyncStub.\<T\>newStub(io.grpc.stub.AbstractStub.StubFactory\<T\>,io.grpc.Channel) io.grpc.stub.AbstractAsyncStub.\<T\>newStub(io.grpc.stub.AbstractStub.StubFactory\<T\>,io.grpc.Channel,io.grpc.CallOptions) io.grpc.stub.AbstractStub.\<T\>withOption(io.grpc.CallOptions.Key\<T\>,T) io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions) io.grpc.stub.AbstractStub.getCallOptions() io.grpc.stub.AbstractStub.getChannel() io.grpc.stub.AbstractStub.withCallCredentials(io.grpc.CallCredentials) io.grpc.stub.AbstractStub.withChannel(io.grpc.Channel) io.grpc.stub.AbstractStub.withCompression(java.lang.String) io.grpc.stub.AbstractStub.withDeadline(io.grpc.Deadline) io.grpc.stub.AbstractStub.withDeadlineAfter(java.time.Duration) io.grpc.stub.AbstractStub.withDeadlineAfter(long,java.util.concurrent.TimeUnit) io.grpc.stub.AbstractStub.withExecutor(java.util.concurrent.Executor) io.grpc.stub.AbstractStub.withInterceptors(io.grpc.ClientInterceptor...) io.grpc.stub.AbstractStub.withMaxInboundMessageSize(int) io.grpc.stub.AbstractStub.withMaxOutboundMessageSize(int) io.grpc.stub.AbstractStub.withOnReadyThreshold(int) io.grpc.stub.AbstractStub.withWaitForReady() [Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) [Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) [Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) [Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) [Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) [Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) [Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) [Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) [Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) [Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) [Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)

## Methods

### appendRows(StreamObserver\<AppendRowsResponse\> responseObserver) (deprecated)

    public StreamObserver<AppendRowsRequest> appendRows(StreamObserver<AppendRowsResponse> responseObserver)

Appends data to the given stream.
If `offset` is specified, the `offset` is checked against the end of
stream. The server returns `OUT_OF_RANGE` in `AppendRowsResponse` if an
attempt is made to append to an offset beyond the current end of the stream
or `ALREADY_EXISTS` if user provids an `offset` that has already been
written to. User can retry with adjusted offset within the same RPC
stream. If `offset` is not specified, append happens at the end of the
stream.
The response contains the offset at which the append happened. Responses
are received in the same order in which requests are sent. There will be
one response for each successful request. If the `offset` is not set in
response, it means append didn't happen due to some errors. If one request
fails, all the subsequent requests will also fail until a success request
is made again.
If the stream is of `PENDING` type, data will only be available for read
operations after the stream is committed.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `responseObserver` | `io.grpc.stub.StreamObserver<https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquerystorage/latest/com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `io.grpc.stub.StreamObserver<https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquerystorage/latest/com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest>` |   |

### batchCommitWriteStreams(BatchCommitWriteStreamsRequest request, StreamObserver\<BatchCommitWriteStreamsResponse\> responseObserver) (deprecated)

    public void batchCommitWriteStreams(BatchCommitWriteStreamsRequest request, StreamObserver<BatchCommitWriteStreamsResponse> responseObserver)

Atomically commits a group of `PENDING` streams that belong to the same
`parent` table.
Streams must be finalized before commit and cannot be committed multiple
times. Once a stream is committed, data in the stream becomes available
for read operations.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquerystorage/latest/com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest` |
| `responseObserver` | `io.grpc.stub.StreamObserver<https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquerystorage/latest/com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse>` |

### build(Channel channel, CallOptions callOptions) (deprecated)

    protected BigQueryWriteGrpc.BigQueryWriteStub build(Channel channel, CallOptions callOptions)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `channel` | `io.grpc.Channel` |
| `callOptions` | `io.grpc.CallOptions` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquerystorage/latest/com.google.cloud.bigquery.storage.v1beta2.BigQueryWriteGrpc.BigQueryWriteStub` |   |

**Overrides** io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

### createWriteStream(CreateWriteStreamRequest request, StreamObserver\<WriteStream\> responseObserver) (deprecated)

    public void createWriteStream(CreateWriteStreamRequest request, StreamObserver<WriteStream> responseObserver)

Creates a write stream to the given table.
Additionally, every table has a special COMMITTED stream named '_default'
to which data can be written. This stream doesn't need to be created using
CreateWriteStream. It is a stream that can be used simultaneously by any
number of clients. Data written to this stream is considered committed as
soon as an acknowledgement is received.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquerystorage/latest/com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest` |
| `responseObserver` | `io.grpc.stub.StreamObserver<https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquerystorage/latest/com.google.cloud.bigquery.storage.v1beta2.WriteStream>` |

### finalizeWriteStream(FinalizeWriteStreamRequest request, StreamObserver\<FinalizeWriteStreamResponse\> responseObserver) (deprecated)

    public void finalizeWriteStream(FinalizeWriteStreamRequest request, StreamObserver<FinalizeWriteStreamResponse> responseObserver)

Finalize a write stream so that no new data can be appended to the
stream. Finalize is not supported on the '_default' stream.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquerystorage/latest/com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest` |
| `responseObserver` | `io.grpc.stub.StreamObserver<https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquerystorage/latest/com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse>` |

### flushRows(FlushRowsRequest request, StreamObserver\<FlushRowsResponse\> responseObserver) (deprecated)

    public void flushRows(FlushRowsRequest request, StreamObserver<FlushRowsResponse> responseObserver)

Flushes rows to a BUFFERED stream.
If users are appending rows to BUFFERED stream, flush operation is
required in order for the rows to become available for reading. A
Flush operation flushes up to any previously flushed offset in a BUFFERED
stream, to the offset specified in the request.
Flush is not supported on the _default stream, since it is not BUFFERED.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquerystorage/latest/com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest` |
| `responseObserver` | `io.grpc.stub.StreamObserver<https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquerystorage/latest/com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse>` |

### getWriteStream(GetWriteStreamRequest request, StreamObserver\<WriteStream\> responseObserver) (deprecated)

    public void getWriteStream(GetWriteStreamRequest request, StreamObserver<WriteStream> responseObserver)

Gets a write stream.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquerystorage/latest/com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest` |
| `responseObserver` | `io.grpc.stub.StreamObserver<https://docs.cloud.google.com/java/docs/reference/google-cloud-bigquerystorage/latest/com.google.cloud.bigquery.storage.v1beta2.WriteStream>` |