+ * BigQuery Read API. + * The Read API can be used to read data from BigQuery. + *+ */ + public abstract static class BigQueryReadImplBase + implements io.grpc.BindableService, AsyncService { @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateReadSessionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest, - com.google.cloud.bigquery.storage.v1.ReadSession>( - this, METHODID_CREATE_READ_SESSION))) - .addMethod( - getReadRowsMethod(), - io.grpc.stub.ServerCalls.asyncServerStreamingCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1.ReadRowsRequest, - com.google.cloud.bigquery.storage.v1.ReadRowsResponse>( - this, METHODID_READ_ROWS))) - .addMethod( - getSplitReadStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest, - com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse>( - this, METHODID_SPLIT_READ_STREAM))) - .build(); + return BigQueryReadGrpc.bindService(this); } } /** - * + * A stub to allow clients to do asynchronous rpc calls to service BigQueryRead. * *
* BigQuery Read API.
@@ -429,7 +419,7 @@ public void splitReadStream(
}
/**
- *
+ * A stub to allow clients to do synchronous rpc calls to service BigQueryRead.
*
*
* BigQuery Read API.
@@ -519,7 +509,7 @@ public com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse splitReadStr
}
/**
- *
+ * A stub to allow clients to do ListenableFuture-style rpc calls to service BigQueryRead.
*
*
* BigQuery Read API.
@@ -601,10 +591,10 @@ private static final class MethodHandlers
io.grpc.stub.ServerCalls.ServerStreamingMethod,
io.grpc.stub.ServerCalls.ClientStreamingMethod,
io.grpc.stub.ServerCalls.BidiStreamingMethod {
- private final BigQueryReadImplBase serviceImpl;
+ private final AsyncService serviceImpl;
private final int methodId;
- MethodHandlers(BigQueryReadImplBase serviceImpl, int methodId) {
+ MethodHandlers(AsyncService serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}
@@ -648,6 +638,32 @@ public io.grpc.stub.StreamObserver invoke(
}
}
+ public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
+ return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
+ .addMethod(
+ getCreateReadSessionMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest,
+ com.google.cloud.bigquery.storage.v1.ReadSession>(
+ service, METHODID_CREATE_READ_SESSION)))
+ .addMethod(
+ getReadRowsMethod(),
+ io.grpc.stub.ServerCalls.asyncServerStreamingCall(
+ new MethodHandlers<
+ com.google.cloud.bigquery.storage.v1.ReadRowsRequest,
+ com.google.cloud.bigquery.storage.v1.ReadRowsResponse>(
+ service, METHODID_READ_ROWS)))
+ .addMethod(
+ getSplitReadStreamMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest,
+ com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse>(
+ service, METHODID_SPLIT_READ_STREAM)))
+ .build();
+ }
+
private abstract static class BigQueryReadBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
io.grpc.protobuf.ProtoServiceDescriptorSupplier {
diff --git a/grpc-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteGrpc.java b/grpc-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteGrpc.java
index e6d4a78c92..7d2259bc0b 100644
--- a/grpc-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteGrpc.java
+++ b/grpc-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteGrpc.java
@@ -374,7 +374,7 @@ public BigQueryWriteFutureStub newStub(
* https://cloud.google.com/bigquery/docs/write-api
*
*/
- public abstract static class BigQueryWriteImplBase implements io.grpc.BindableService {
+ public interface AsyncService {
/**
*
@@ -388,7 +388,7 @@ public abstract static class BigQueryWriteImplBase implements io.grpc.BindableSe
* soon as an acknowledgement is received.
*
*/
- public void createWriteStream(
+ default void createWriteStream(
com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
@@ -426,7 +426,7 @@ public void createWriteStream(
* committed via the `BatchCommitWriteStreams` rpc.
*
*/
- public io.grpc.stub.StreamObserver+ * BigQuery Write API. + * The Write API can be used to write data to BigQuery. + * For supplementary information about the Write API, see: + * https://cloud.google.com/bigquery/docs/write-api + *+ */ + public abstract static class BigQueryWriteImplBase + implements io.grpc.BindableService, AsyncService { @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateWriteStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest, - com.google.cloud.bigquery.storage.v1.WriteStream>( - this, METHODID_CREATE_WRITE_STREAM))) - .addMethod( - getAppendRowsMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1.AppendRowsRequest, - com.google.cloud.bigquery.storage.v1.AppendRowsResponse>( - this, METHODID_APPEND_ROWS))) - .addMethod( - getGetWriteStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest, - com.google.cloud.bigquery.storage.v1.WriteStream>( - this, METHODID_GET_WRITE_STREAM))) - .addMethod( - getFinalizeWriteStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest, - com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse>( - this, METHODID_FINALIZE_WRITE_STREAM))) - .addMethod( - getBatchCommitWriteStreamsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest, - com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse>( - this, METHODID_BATCH_COMMIT_WRITE_STREAMS))) - .addMethod( - getFlushRowsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1.FlushRowsRequest, - com.google.cloud.bigquery.storage.v1.FlushRowsResponse>( - this, METHODID_FLUSH_ROWS))) - .build(); + return BigQueryWriteGrpc.bindService(this); } } /** - * + * A stub to allow clients to do asynchronous rpc calls to service BigQueryWrite. * *
* BigQuery Write API.
@@ -715,7 +686,7 @@ public void flushRows(
}
/**
- *
+ * A stub to allow clients to do synchronous rpc calls to service BigQueryWrite.
*
*
* BigQuery Write API.
@@ -819,7 +790,7 @@ public com.google.cloud.bigquery.storage.v1.FlushRowsResponse flushRows(
}
/**
- *
+ * A stub to allow clients to do ListenableFuture-style rpc calls to service BigQueryWrite.
*
*
* BigQuery Write API.
@@ -940,10 +911,10 @@ private static final class MethodHandlers
io.grpc.stub.ServerCalls.ServerStreamingMethod,
io.grpc.stub.ServerCalls.ClientStreamingMethod,
io.grpc.stub.ServerCalls.BidiStreamingMethod {
- private final BigQueryWriteImplBase serviceImpl;
+ private final AsyncService serviceImpl;
private final int methodId;
- MethodHandlers(BigQueryWriteImplBase serviceImpl, int methodId) {
+ MethodHandlers(AsyncService serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}
@@ -1006,6 +977,53 @@ public io.grpc.stub.StreamObserver invoke(
}
}
+ public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
+ return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
+ .addMethod(
+ getCreateWriteStreamMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest,
+ com.google.cloud.bigquery.storage.v1.WriteStream>(
+ service, METHODID_CREATE_WRITE_STREAM)))
+ .addMethod(
+ getAppendRowsMethod(),
+ io.grpc.stub.ServerCalls.asyncBidiStreamingCall(
+ new MethodHandlers<
+ com.google.cloud.bigquery.storage.v1.AppendRowsRequest,
+ com.google.cloud.bigquery.storage.v1.AppendRowsResponse>(
+ service, METHODID_APPEND_ROWS)))
+ .addMethod(
+ getGetWriteStreamMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest,
+ com.google.cloud.bigquery.storage.v1.WriteStream>(
+ service, METHODID_GET_WRITE_STREAM)))
+ .addMethod(
+ getFinalizeWriteStreamMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest,
+ com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse>(
+ service, METHODID_FINALIZE_WRITE_STREAM)))
+ .addMethod(
+ getBatchCommitWriteStreamsMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest,
+ com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse>(
+ service, METHODID_BATCH_COMMIT_WRITE_STREAMS)))
+ .addMethod(
+ getFlushRowsMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.cloud.bigquery.storage.v1.FlushRowsRequest,
+ com.google.cloud.bigquery.storage.v1.FlushRowsResponse>(
+ service, METHODID_FLUSH_ROWS)))
+ .build();
+ }
+
private abstract static class BigQueryWriteBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
io.grpc.protobuf.ProtoServiceDescriptorSupplier {
diff --git a/grpc-google-cloud-bigquerystorage-v1beta1/pom.xml b/grpc-google-cloud-bigquerystorage-v1beta1/pom.xml
index 09bbdbb1f0..913217f564 100644
--- a/grpc-google-cloud-bigquerystorage-v1beta1/pom.xml
+++ b/grpc-google-cloud-bigquerystorage-v1beta1/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
grpc-google-cloud-bigquerystorage-v1beta1
- 0.158.1
+ 0.158.2
grpc-google-cloud-bigquerystorage-v1beta1
GRPC library for grpc-google-cloud-bigquerystorage-v1beta1
com.google.cloud
google-cloud-bigquerystorage-parent
- 2.34.1
+ 2.34.2
diff --git a/grpc-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BigQueryStorageGrpc.java b/grpc-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BigQueryStorageGrpc.java
index cf52d1ae7f..af8c4cef7b 100644
--- a/grpc-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BigQueryStorageGrpc.java
+++ b/grpc-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BigQueryStorageGrpc.java
@@ -332,7 +332,7 @@ public BigQueryStorageFutureStub newStub(
* The BigQuery storage API can be used to read data stored in BigQuery.
*
*/
- public abstract static class BigQueryStorageImplBase implements io.grpc.BindableService {
+ public interface AsyncService {
/**
*
@@ -350,7 +350,7 @@ public abstract static class BigQueryStorageImplBase implements io.grpc.Bindable
* not require manual clean-up by the caller.
*
*/
- public void createReadSession(
+ default void createReadSession(
com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
@@ -372,7 +372,7 @@ public void createReadSession(
* session, and may change as other streams continue to read data.
*
*/
- public void readRows(
+ default void readRows(
com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest request,
io.grpc.stub.StreamObserver<
com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse>
@@ -389,7 +389,7 @@ public void readRows(
* adding additional workers.
*
*/
- public void batchCreateReadSessionStreams(
+ default void batchCreateReadSessionStreams(
com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest
request,
io.grpc.stub.StreamObserver<
@@ -418,7 +418,7 @@ public void batchCreateReadSessionStreams(
* Stream.
*
*/
- public void finalizeStream(
+ default void finalizeStream(
com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest request,
io.grpc.stub.StreamObserver+ * BigQuery storage API. + * The BigQuery storage API can be used to read data stored in BigQuery. + *+ */ + public abstract static class BigQueryStorageImplBase + implements io.grpc.BindableService, AsyncService { @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateReadSessionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest, - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession>( - this, METHODID_CREATE_READ_SESSION))) - .addMethod( - getReadRowsMethod(), - io.grpc.stub.ServerCalls.asyncServerStreamingCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest, - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse>( - this, METHODID_READ_ROWS))) - .addMethod( - getBatchCreateReadSessionStreamsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsRequest, - com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsResponse>( - this, METHODID_BATCH_CREATE_READ_SESSION_STREAMS))) - .addMethod( - getFinalizeStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest, - com.google.protobuf.Empty>(this, METHODID_FINALIZE_STREAM))) - .addMethod( - getSplitReadStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest, - com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse>( - this, METHODID_SPLIT_READ_STREAM))) - .build(); + return BigQueryStorageGrpc.bindService(this); } } /** - * + * A stub to allow clients to do asynchronous rpc calls to service BigQueryStorage. * *
* BigQuery storage API.
@@ -641,7 +616,7 @@ public void splitReadStream(
}
/**
- *
+ * A stub to allow clients to do synchronous rpc calls to service BigQueryStorage.
*
*
* BigQuery storage API.
@@ -769,7 +744,7 @@ public com.google.protobuf.Empty finalizeStream(
}
/**
- *
+ * A stub to allow clients to do ListenableFuture-style rpc calls to service BigQueryStorage.
*
*
* BigQuery storage API.
@@ -893,10 +868,10 @@ private static final class MethodHandlers
io.grpc.stub.ServerCalls.ServerStreamingMethod,
io.grpc.stub.ServerCalls.ClientStreamingMethod,
io.grpc.stub.ServerCalls.BidiStreamingMethod {
- private final BigQueryStorageImplBase serviceImpl;
+ private final AsyncService serviceImpl;
private final int methodId;
- MethodHandlers(BigQueryStorageImplBase serviceImpl, int methodId) {
+ MethodHandlers(AsyncService serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}
@@ -957,6 +932,47 @@ public io.grpc.stub.StreamObserver invoke(
}
}
+ public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
+ return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
+ .addMethod(
+ getCreateReadSessionMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest,
+ com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession>(
+ service, METHODID_CREATE_READ_SESSION)))
+ .addMethod(
+ getReadRowsMethod(),
+ io.grpc.stub.ServerCalls.asyncServerStreamingCall(
+ new MethodHandlers<
+ com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest,
+ com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse>(
+ service, METHODID_READ_ROWS)))
+ .addMethod(
+ getBatchCreateReadSessionStreamsMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.cloud.bigquery.storage.v1beta1.Storage
+ .BatchCreateReadSessionStreamsRequest,
+ com.google.cloud.bigquery.storage.v1beta1.Storage
+ .BatchCreateReadSessionStreamsResponse>(
+ service, METHODID_BATCH_CREATE_READ_SESSION_STREAMS)))
+ .addMethod(
+ getFinalizeStreamMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest,
+ com.google.protobuf.Empty>(service, METHODID_FINALIZE_STREAM)))
+ .addMethod(
+ getSplitReadStreamMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest,
+ com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse>(
+ service, METHODID_SPLIT_READ_STREAM)))
+ .build();
+ }
+
private abstract static class BigQueryStorageBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
io.grpc.protobuf.ProtoServiceDescriptorSupplier {
diff --git a/grpc-google-cloud-bigquerystorage-v1beta2/pom.xml b/grpc-google-cloud-bigquerystorage-v1beta2/pom.xml
index 9f14eed3d6..0d395ca526 100644
--- a/grpc-google-cloud-bigquerystorage-v1beta2/pom.xml
+++ b/grpc-google-cloud-bigquerystorage-v1beta2/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
grpc-google-cloud-bigquerystorage-v1beta2
- 0.158.1
+ 0.158.2
grpc-google-cloud-bigquerystorage-v1beta2
GRPC library for grpc-google-cloud-bigquerystorage-v1beta2
com.google.cloud
google-cloud-bigquerystorage-parent
- 2.34.1
+ 2.34.2
diff --git a/grpc-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryReadGrpc.java b/grpc-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryReadGrpc.java
index 70f9be1cef..1678dd1f49 100644
--- a/grpc-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryReadGrpc.java
+++ b/grpc-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryReadGrpc.java
@@ -229,7 +229,7 @@ public BigQueryReadFutureStub newStub(
* API at the same time.
*
*/
- public abstract static class BigQueryReadImplBase implements io.grpc.BindableService {
+ public interface AsyncService {
/**
*
@@ -253,7 +253,7 @@ public abstract static class BigQueryReadImplBase implements io.grpc.BindableSer
* not require manual clean-up by the caller.
*
*/
- public void createReadSession(
+ default void createReadSession(
com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
@@ -273,7 +273,7 @@ public void createReadSession(
* state of the stream.
*
*/
- public void readRows(
+ default void readRows(
com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest request,
io.grpc.stub.StreamObserver+ * BigQuery Read API. + * The Read API can be used to read data from BigQuery. + * New code should use the v1 Read API going forward, if they don't use Write + * API at the same time. + *+ */ + public abstract static class BigQueryReadImplBase + implements io.grpc.BindableService, AsyncService { @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateReadSessionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest, - com.google.cloud.bigquery.storage.v1beta2.ReadSession>( - this, METHODID_CREATE_READ_SESSION))) - .addMethod( - getReadRowsMethod(), - io.grpc.stub.ServerCalls.asyncServerStreamingCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest, - com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse>( - this, METHODID_READ_ROWS))) - .addMethod( - getSplitReadStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest, - com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse>( - this, METHODID_SPLIT_READ_STREAM))) - .build(); + return BigQueryReadGrpc.bindService(this); } } /** - * + * A stub to allow clients to do asynchronous rpc calls to service BigQueryRead. * *
* BigQuery Read API.
@@ -437,7 +429,7 @@ public void splitReadStream(
}
/**
- *
+ * A stub to allow clients to do synchronous rpc calls to service BigQueryRead.
*
*
* BigQuery Read API.
@@ -529,7 +521,7 @@ public com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse splitRe
}
/**
- *
+ * A stub to allow clients to do ListenableFuture-style rpc calls to service BigQueryRead.
*
*
* BigQuery Read API.
@@ -614,10 +606,10 @@ private static final class MethodHandlers
io.grpc.stub.ServerCalls.ServerStreamingMethod,
io.grpc.stub.ServerCalls.ClientStreamingMethod,
io.grpc.stub.ServerCalls.BidiStreamingMethod {
- private final BigQueryReadImplBase serviceImpl;
+ private final AsyncService serviceImpl;
private final int methodId;
- MethodHandlers(BigQueryReadImplBase serviceImpl, int methodId) {
+ MethodHandlers(AsyncService serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}
@@ -662,6 +654,32 @@ public io.grpc.stub.StreamObserver invoke(
}
}
+ public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
+ return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
+ .addMethod(
+ getCreateReadSessionMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest,
+ com.google.cloud.bigquery.storage.v1beta2.ReadSession>(
+ service, METHODID_CREATE_READ_SESSION)))
+ .addMethod(
+ getReadRowsMethod(),
+ io.grpc.stub.ServerCalls.asyncServerStreamingCall(
+ new MethodHandlers<
+ com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest,
+ com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse>(
+ service, METHODID_READ_ROWS)))
+ .addMethod(
+ getSplitReadStreamMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest,
+ com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse>(
+ service, METHODID_SPLIT_READ_STREAM)))
+ .build();
+ }
+
private abstract static class BigQueryReadBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
io.grpc.protobuf.ProtoServiceDescriptorSupplier {
diff --git a/grpc-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteGrpc.java b/grpc-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteGrpc.java
index 8cd9ee60c9..571d59b328 100644
--- a/grpc-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteGrpc.java
+++ b/grpc-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteGrpc.java
@@ -371,7 +371,7 @@ public BigQueryWriteFutureStub newStub(
* The Write API can be used to write data to BigQuery.
*
*/
- public abstract static class BigQueryWriteImplBase implements io.grpc.BindableService {
+ public interface AsyncService {
/**
*
@@ -385,7 +385,7 @@ public abstract static class BigQueryWriteImplBase implements io.grpc.BindableSe
* soon as an acknowledgement is received.
*
*/
- public void createWriteStream(
+ default void createWriteStream(
com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
@@ -415,7 +415,7 @@ public void createWriteStream(
* operations after the stream is committed.
*
*/
- public io.grpc.stub.StreamObserver+ * BigQuery Write API. + * The Write API can be used to write data to BigQuery. + *+ */ + public abstract static class BigQueryWriteImplBase + implements io.grpc.BindableService, AsyncService { @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateWriteStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest, - com.google.cloud.bigquery.storage.v1beta2.WriteStream>( - this, METHODID_CREATE_WRITE_STREAM))) - .addMethod( - getAppendRowsMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest, - com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse>( - this, METHODID_APPEND_ROWS))) - .addMethod( - getGetWriteStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest, - com.google.cloud.bigquery.storage.v1beta2.WriteStream>( - this, METHODID_GET_WRITE_STREAM))) - .addMethod( - getFinalizeWriteStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest, - com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse>( - this, METHODID_FINALIZE_WRITE_STREAM))) - .addMethod( - getBatchCommitWriteStreamsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest, - com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse>( - this, METHODID_BATCH_COMMIT_WRITE_STREAMS))) - .addMethod( - getFlushRowsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest, - com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse>( - this, METHODID_FLUSH_ROWS))) - .build(); + return BigQueryWriteGrpc.bindService(this); } } /** - * + * A stub to allow clients to do asynchronous rpc calls to service BigQueryWrite. * *
* BigQuery Write API.
@@ -696,7 +665,7 @@ public void flushRows(
}
/**
- *
+ * A stub to allow clients to do synchronous rpc calls to service BigQueryWrite.
*
*
* BigQuery Write API.
@@ -799,7 +768,7 @@ public com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse flushRows(
}
/**
- *
+ * A stub to allow clients to do ListenableFuture-style rpc calls to service BigQueryWrite.
*
*
* BigQuery Write API.
@@ -919,10 +888,10 @@ private static final class MethodHandlers
io.grpc.stub.ServerCalls.ServerStreamingMethod,
io.grpc.stub.ServerCalls.ClientStreamingMethod,
io.grpc.stub.ServerCalls.BidiStreamingMethod {
- private final BigQueryWriteImplBase serviceImpl;
+ private final AsyncService serviceImpl;
private final int methodId;
- MethodHandlers(BigQueryWriteImplBase serviceImpl, int methodId) {
+ MethodHandlers(AsyncService serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}
@@ -986,6 +955,53 @@ public io.grpc.stub.StreamObserver invoke(
}
}
+ public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
+ return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
+ .addMethod(
+ getCreateWriteStreamMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest,
+ com.google.cloud.bigquery.storage.v1beta2.WriteStream>(
+ service, METHODID_CREATE_WRITE_STREAM)))
+ .addMethod(
+ getAppendRowsMethod(),
+ io.grpc.stub.ServerCalls.asyncBidiStreamingCall(
+ new MethodHandlers<
+ com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest,
+ com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse>(
+ service, METHODID_APPEND_ROWS)))
+ .addMethod(
+ getGetWriteStreamMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest,
+ com.google.cloud.bigquery.storage.v1beta2.WriteStream>(
+ service, METHODID_GET_WRITE_STREAM)))
+ .addMethod(
+ getFinalizeWriteStreamMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest,
+ com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse>(
+ service, METHODID_FINALIZE_WRITE_STREAM)))
+ .addMethod(
+ getBatchCommitWriteStreamsMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest,
+ com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse>(
+ service, METHODID_BATCH_COMMIT_WRITE_STREAMS)))
+ .addMethod(
+ getFlushRowsMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest,
+ com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse>(
+ service, METHODID_FLUSH_ROWS)))
+ .build();
+ }
+
private abstract static class BigQueryWriteBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
io.grpc.protobuf.ProtoServiceDescriptorSupplier {
diff --git a/pom.xml b/pom.xml
index 557069d431..7a39cb2b63 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-bigquerystorage-parent
pom
- 2.34.1
+ 2.34.2
BigQuery Storage Parent
https://github.com/googleapis/java-bigquerystorage
@@ -31,7 +31,7 @@
Google LLC
-
+
scm:git:git@github.com:googleapis/java-bigquerystorage.git
scm:git:git@github.com:googleapis/java-bigquerystorage.git
https://github.com/googleapis/java-bigquerystorage
@@ -76,44 +76,44 @@
com.google.cloud
google-cloud-shared-dependencies
- 3.5.0
+ 3.6.0
pom
import
com.google.api.grpc
proto-google-cloud-bigquerystorage-v1beta1
- 0.158.1
+ 0.158.2
com.google.api.grpc
proto-google-cloud-bigquerystorage-v1beta2
- 0.158.1
+ 0.158.2
com.google.api.grpc
proto-google-cloud-bigquerystorage-v1
- 2.34.1
+ 2.34.2
com.google.api.grpc
grpc-google-cloud-bigquerystorage-v1beta1
- 0.158.1
+ 0.158.2
com.google.api.grpc
grpc-google-cloud-bigquerystorage-v1beta2
- 0.158.1
+ 0.158.2
com.google.api.grpc
grpc-google-cloud-bigquerystorage-v1
- 2.34.1
+ 2.34.2
com.google.cloud
google-cloud-bigquerystorage
- 2.34.1
+ 2.34.2
org.json
@@ -132,7 +132,7 @@
com.google.cloud
google-cloud-bigquery
- 2.23.2
+ 2.24.3
test
diff --git a/proto-google-cloud-bigquerystorage-v1/pom.xml b/proto-google-cloud-bigquerystorage-v1/pom.xml
index 447c1b1b2e..746ad3a08d 100644
--- a/proto-google-cloud-bigquerystorage-v1/pom.xml
+++ b/proto-google-cloud-bigquerystorage-v1/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
proto-google-cloud-bigquerystorage-v1
- 2.34.1
+ 2.34.2
proto-google-cloud-bigquerystorage-v1
PROTO library for proto-google-cloud-bigquerystorage-v1
com.google.cloud
google-cloud-bigquerystorage-parent
- 2.34.1
+ 2.34.2
diff --git a/proto-google-cloud-bigquerystorage-v1beta1/pom.xml b/proto-google-cloud-bigquerystorage-v1beta1/pom.xml
index 7106bcf31a..91db33cd81 100644
--- a/proto-google-cloud-bigquerystorage-v1beta1/pom.xml
+++ b/proto-google-cloud-bigquerystorage-v1beta1/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
proto-google-cloud-bigquerystorage-v1beta1
- 0.158.1
+ 0.158.2
proto-google-cloud-bigquerystorage-v1beta1
PROTO library for proto-google-cloud-bigquerystorage-v1beta1
com.google.cloud
google-cloud-bigquerystorage-parent
- 2.34.1
+ 2.34.2
diff --git a/proto-google-cloud-bigquerystorage-v1beta2/pom.xml b/proto-google-cloud-bigquerystorage-v1beta2/pom.xml
index a02bdf0711..eb9de4ef7a 100644
--- a/proto-google-cloud-bigquerystorage-v1beta2/pom.xml
+++ b/proto-google-cloud-bigquerystorage-v1beta2/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
proto-google-cloud-bigquerystorage-v1beta2
- 0.158.1
+ 0.158.2
proto-google-cloud-bigquerystorage-v1beta2
PROTO library for proto-google-cloud-bigquerystorage-v1beta2
com.google.cloud
google-cloud-bigquerystorage-parent
- 2.34.1
+ 2.34.2
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index 587f4e4d9a..ecfcdc5934 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -30,14 +30,14 @@
com.google.cloud
google-cloud-bigquerystorage
- 2.34.0
+ 2.34.1
com.google.cloud
google-cloud-bigquery
- 2.23.2
+ 2.24.3
org.apache.avro
diff --git a/samples/pom.xml b/samples/pom.xml
index ae24bfd59f..06f79f499c 100644
--- a/samples/pom.xml
+++ b/samples/pom.xml
@@ -38,7 +38,7 @@
org.apache.maven.plugins
maven-deploy-plugin
- 3.1.0
+ 3.1.1
true
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index ae834929f8..e69f721897 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -29,14 +29,14 @@
com.google.cloud
google-cloud-bigquerystorage
- 2.34.1
+ 2.34.2
com.google.cloud
google-cloud-bigquery
- 2.23.2
+ 2.24.3
org.apache.avro
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index 7c6b185f74..6009b89583 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -31,7 +31,7 @@
com.google.cloud
libraries-bom
- 26.10.0
+ 26.11.0
pom
import
@@ -48,7 +48,7 @@
com.google.cloud
google-cloud-bigquery
- 2.23.2
+ 2.24.3
org.apache.avro
diff --git a/samples/snippets/src/main/java/com/example/bigquerystorage/WriteToDefaultStream.java b/samples/snippets/src/main/java/com/example/bigquerystorage/WriteToDefaultStream.java
index f5f357238a..8bd384c325 100644
--- a/samples/snippets/src/main/java/com/example/bigquerystorage/WriteToDefaultStream.java
+++ b/samples/snippets/src/main/java/com/example/bigquerystorage/WriteToDefaultStream.java
@@ -28,7 +28,7 @@
import com.google.cloud.bigquery.storage.v1.AppendRowsResponse;
import com.google.cloud.bigquery.storage.v1.BigQueryWriteClient;
import com.google.cloud.bigquery.storage.v1.Exceptions;
-import com.google.cloud.bigquery.storage.v1.Exceptions.AppendSerializtionError;
+import com.google.cloud.bigquery.storage.v1.Exceptions.AppendSerializationError;
import com.google.cloud.bigquery.storage.v1.Exceptions.StorageException;
import com.google.cloud.bigquery.storage.v1.JsonStreamWriter;
import com.google.cloud.bigquery.storage.v1.TableName;
@@ -218,8 +218,8 @@ public void onFailure(Throwable throwable) {
}
}
- if (throwable instanceof AppendSerializtionError) {
- AppendSerializtionError ase = (AppendSerializtionError) throwable;
+ if (throwable instanceof AppendSerializationError) {
+ AppendSerializationError ase = (AppendSerializationError) throwable;
Map rowIndexToErrorMessage = ase.getRowIndexToErrorMessage();
if (rowIndexToErrorMessage.size() > 0) {
// Omit the faulty rows
diff --git a/tutorials/JsonWriterDefaultStream/pom.xml b/tutorials/JsonWriterDefaultStream/pom.xml
index ec6944985c..7e1aca52c1 100644
--- a/tutorials/JsonWriterDefaultStream/pom.xml
+++ b/tutorials/JsonWriterDefaultStream/pom.xml
@@ -19,12 +19,12 @@
com.google.cloud
google-cloud-bigquerystorage
- 2.34.0
+ 2.34.1
com.google.cloud
google-cloud-bigquery
- 2.23.2
+ 2.24.3
org.apache.avro
diff --git a/tutorials/pom.xml b/tutorials/pom.xml
index f636d2d46e..ae46c35685 100644
--- a/tutorials/pom.xml
+++ b/tutorials/pom.xml
@@ -36,7 +36,7 @@
org.apache.maven.plugins
maven-deploy-plugin
- 3.1.0
+ 3.1.1
true
diff --git a/versions.txt b/versions.txt
index 1be806c4a1..3bb1693b4f 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,10 +1,10 @@
# Format:
# module:released-version:current-version
-google-cloud-bigquerystorage:2.34.1:2.34.1
-grpc-google-cloud-bigquerystorage-v1beta1:0.158.1:0.158.1
-grpc-google-cloud-bigquerystorage-v1beta2:0.158.1:0.158.1
-grpc-google-cloud-bigquerystorage-v1:2.34.1:2.34.1
-proto-google-cloud-bigquerystorage-v1beta1:0.158.1:0.158.1
-proto-google-cloud-bigquerystorage-v1beta2:0.158.1:0.158.1
-proto-google-cloud-bigquerystorage-v1:2.34.1:2.34.1
+google-cloud-bigquerystorage:2.34.2:2.34.2
+grpc-google-cloud-bigquerystorage-v1beta1:0.158.2:0.158.2
+grpc-google-cloud-bigquerystorage-v1beta2:0.158.2:0.158.2
+grpc-google-cloud-bigquerystorage-v1:2.34.2:2.34.2
+proto-google-cloud-bigquerystorage-v1beta1:0.158.2:0.158.2
+proto-google-cloud-bigquerystorage-v1beta2:0.158.2:0.158.2
+proto-google-cloud-bigquerystorage-v1:2.34.2:2.34.2