Skip to content

Commit d2af807

Browse files
Merge branch 'master' into authoritychecktls
2 parents 60efd84 + ae10972 commit d2af807

File tree

272 files changed

+9313
-1432
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

272 files changed

+9313
-1432
lines changed

.github/workflows/testing.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,11 @@ jobs:
7777

7878
bazel:
7979
runs-on: ubuntu-latest
80+
strategy:
81+
matrix:
82+
bzlmod: [true, false]
8083
env:
81-
USE_BAZEL_VERSION: 6.0.0
84+
USE_BAZEL_VERSION: 7.0.0
8285

8386
steps:
8487
- uses: actions/checkout@v4
@@ -97,19 +100,8 @@ jobs:
97100
key: ${{ runner.os }}-bazel-${{ env.USE_BAZEL_VERSION }}-${{ hashFiles('WORKSPACE', 'repositories.bzl') }}
98101

99102
- name: Run bazel build
100-
run: bazelisk build //... --enable_bzlmod=false
103+
run: bazelisk build //... --enable_bzlmod=${{ matrix.bzlmod }}
101104

102105
- name: Run example bazel build
103-
run: bazelisk build //... --enable_bzlmod=false
104-
working-directory: ./examples
105-
106-
- name: Run bazel build (bzlmod)
107-
env:
108-
USE_BAZEL_VERSION: 7.0.0
109-
run: bazelisk build //... --enable_bzlmod=true
110-
111-
- name: Run example bazel build (bzlmod)
112-
env:
113-
USE_BAZEL_VERSION: 7.0.0
114-
run: bazelisk build //... --enable_bzlmod=true
106+
run: bazelisk build //... --enable_bzlmod=${{ matrix.bzlmod }}
115107
working-directory: ./examples

MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module(
22
name = "grpc-java",
33
compatibility_level = 0,
44
repo_name = "io_grpc_grpc_java",
5-
version = "1.69.0-SNAPSHOT", # CURRENT_GRPC_VERSION
5+
version = "1.71.0-SNAPSHOT", # CURRENT_GRPC_VERSION
66
)
77

88
# GRPC_DEPS_START

README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ For a guided tour, take a look at the [quick start
4444
guide](https://grpc.io/docs/languages/java/quickstart) or the more explanatory [gRPC
4545
basics](https://grpc.io/docs/languages/java/basics).
4646

47-
The [examples](https://github.com/grpc/grpc-java/tree/v1.68.1/examples) and the
48-
[Android example](https://github.com/grpc/grpc-java/tree/v1.68.1/examples/android)
47+
The [examples](https://github.com/grpc/grpc-java/tree/v1.69.0/examples) and the
48+
[Android example](https://github.com/grpc/grpc-java/tree/v1.69.0/examples/android)
4949
are standalone projects that showcase the usage of gRPC.
5050

5151
Download
@@ -56,18 +56,18 @@ Download [the JARs][]. Or for Maven with non-Android, add to your `pom.xml`:
5656
<dependency>
5757
<groupId>io.grpc</groupId>
5858
<artifactId>grpc-netty-shaded</artifactId>
59-
<version>1.68.1</version>
59+
<version>1.69.0</version>
6060
<scope>runtime</scope>
6161
</dependency>
6262
<dependency>
6363
<groupId>io.grpc</groupId>
6464
<artifactId>grpc-protobuf</artifactId>
65-
<version>1.68.1</version>
65+
<version>1.69.0</version>
6666
</dependency>
6767
<dependency>
6868
<groupId>io.grpc</groupId>
6969
<artifactId>grpc-stub</artifactId>
70-
<version>1.68.1</version>
70+
<version>1.69.0</version>
7171
</dependency>
7272
<dependency> <!-- necessary for Java 9+ -->
7373
<groupId>org.apache.tomcat</groupId>
@@ -79,18 +79,18 @@ Download [the JARs][]. Or for Maven with non-Android, add to your `pom.xml`:
7979

8080
Or for Gradle with non-Android, add to your dependencies:
8181
```gradle
82-
runtimeOnly 'io.grpc:grpc-netty-shaded:1.68.1'
83-
implementation 'io.grpc:grpc-protobuf:1.68.1'
84-
implementation 'io.grpc:grpc-stub:1.68.1'
82+
runtimeOnly 'io.grpc:grpc-netty-shaded:1.69.0'
83+
implementation 'io.grpc:grpc-protobuf:1.69.0'
84+
implementation 'io.grpc:grpc-stub:1.69.0'
8585
compileOnly 'org.apache.tomcat:annotations-api:6.0.53' // necessary for Java 9+
8686
```
8787

8888
For Android client, use `grpc-okhttp` instead of `grpc-netty-shaded` and
8989
`grpc-protobuf-lite` instead of `grpc-protobuf`:
9090
```gradle
91-
implementation 'io.grpc:grpc-okhttp:1.68.1'
92-
implementation 'io.grpc:grpc-protobuf-lite:1.68.1'
93-
implementation 'io.grpc:grpc-stub:1.68.1'
91+
implementation 'io.grpc:grpc-okhttp:1.69.0'
92+
implementation 'io.grpc:grpc-protobuf-lite:1.69.0'
93+
implementation 'io.grpc:grpc-stub:1.69.0'
9494
compileOnly 'org.apache.tomcat:annotations-api:6.0.53' // necessary for Java 9+
9595
```
9696

@@ -99,7 +99,7 @@ For [Bazel](https://bazel.build), you can either
9999
(with the GAVs from above), or use `@io_grpc_grpc_java//api` et al (see below).
100100

101101
[the JARs]:
102-
https://search.maven.org/search?q=g:io.grpc%20AND%20v:1.68.1
102+
https://search.maven.org/search?q=g:io.grpc%20AND%20v:1.69.0
103103

104104
Development snapshots are available in [Sonatypes's snapshot
105105
repository](https://oss.sonatype.org/content/repositories/snapshots/).
@@ -131,7 +131,7 @@ For protobuf-based codegen integrated with the Maven build system, you can use
131131
<configuration>
132132
<protocArtifact>com.google.protobuf:protoc:3.25.5:exe:${os.detected.classifier}</protocArtifact>
133133
<pluginId>grpc-java</pluginId>
134-
<pluginArtifact>io.grpc:protoc-gen-grpc-java:1.68.1:exe:${os.detected.classifier}</pluginArtifact>
134+
<pluginArtifact>io.grpc:protoc-gen-grpc-java:1.69.0:exe:${os.detected.classifier}</pluginArtifact>
135135
</configuration>
136136
<executions>
137137
<execution>
@@ -161,7 +161,7 @@ protobuf {
161161
}
162162
plugins {
163163
grpc {
164-
artifact = 'io.grpc:protoc-gen-grpc-java:1.68.1'
164+
artifact = 'io.grpc:protoc-gen-grpc-java:1.69.0'
165165
}
166166
}
167167
generateProtoTasks {
@@ -194,7 +194,7 @@ protobuf {
194194
}
195195
plugins {
196196
grpc {
197-
artifact = 'io.grpc:protoc-gen-grpc-java:1.68.1'
197+
artifact = 'io.grpc:protoc-gen-grpc-java:1.69.0'
198198
}
199199
}
200200
generateProtoTasks {

alts/build.gradle

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,11 @@ dependencies {
4444
classifier = "linux-x86_64"
4545
}
4646
}
47-
signature libraries.signature.java
47+
signature (libraries.signature.java) {
48+
artifact {
49+
extension = "signature"
50+
}
51+
}
4852
}
4953

5054
configureProtoCompilation()

alts/src/generated/main/grpc/io/grpc/alts/internal/HandshakerServiceGrpc.java

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,21 @@ public HandshakerServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOption
6060
return HandshakerServiceStub.newStub(factory, channel);
6161
}
6262

63+
/**
64+
* Creates a new blocking-style stub that supports all types of calls on the service
65+
*/
66+
public static HandshakerServiceBlockingV2Stub newBlockingV2Stub(
67+
io.grpc.Channel channel) {
68+
io.grpc.stub.AbstractStub.StubFactory<HandshakerServiceBlockingV2Stub> factory =
69+
new io.grpc.stub.AbstractStub.StubFactory<HandshakerServiceBlockingV2Stub>() {
70+
@java.lang.Override
71+
public HandshakerServiceBlockingV2Stub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
72+
return new HandshakerServiceBlockingV2Stub(channel, callOptions);
73+
}
74+
};
75+
return HandshakerServiceBlockingV2Stub.newStub(factory, channel);
76+
}
77+
6378
/**
6479
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
6580
*/
@@ -157,6 +172,40 @@ public io.grpc.stub.StreamObserver<io.grpc.alts.internal.HandshakerReq> doHandsh
157172
/**
158173
* A stub to allow clients to do synchronous rpc calls to service HandshakerService.
159174
*/
175+
public static final class HandshakerServiceBlockingV2Stub
176+
extends io.grpc.stub.AbstractBlockingStub<HandshakerServiceBlockingV2Stub> {
177+
private HandshakerServiceBlockingV2Stub(
178+
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
179+
super(channel, callOptions);
180+
}
181+
182+
@java.lang.Override
183+
protected HandshakerServiceBlockingV2Stub build(
184+
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
185+
return new HandshakerServiceBlockingV2Stub(channel, callOptions);
186+
}
187+
188+
/**
189+
* <pre>
190+
* Handshaker service accepts a stream of handshaker request, returning a
191+
* stream of handshaker response. Client is expected to send exactly one
192+
* message with either client_start or server_start followed by one or more
193+
* messages with next. Each time client sends a request, the handshaker
194+
* service expects to respond. Client does not have to wait for service's
195+
* response before sending next request.
196+
* </pre>
197+
*/
198+
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918")
199+
public io.grpc.stub.BlockingClientCall<io.grpc.alts.internal.HandshakerReq, io.grpc.alts.internal.HandshakerResp>
200+
doHandshake() {
201+
return io.grpc.stub.ClientCalls.blockingBidiStreamingCall(
202+
getChannel(), getDoHandshakeMethod(), getCallOptions());
203+
}
204+
}
205+
206+
/**
207+
* A stub to allow clients to do limited synchronous rpc calls to service HandshakerService.
208+
*/
160209
public static final class HandshakerServiceBlockingStub
161210
extends io.grpc.stub.AbstractBlockingStub<HandshakerServiceBlockingStub> {
162211
private HandshakerServiceBlockingStub(

android-interop-testing/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ description = 'gRPC: Android Integration Testing'
77

88
repositories {
99
google()
10-
mavenCentral()
1110
}
1211

1312
android {

android-interop-testing/src/generated/debug/grpc/io/grpc/testing/integration/LoadBalancerStatsServiceGrpc.java

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,21 @@ public LoadBalancerStatsServiceStub newStub(io.grpc.Channel channel, io.grpc.Cal
9292
return LoadBalancerStatsServiceStub.newStub(factory, channel);
9393
}
9494

95+
/**
96+
* Creates a new blocking-style stub that supports all types of calls on the service
97+
*/
98+
public static LoadBalancerStatsServiceBlockingV2Stub newBlockingV2Stub(
99+
io.grpc.Channel channel) {
100+
io.grpc.stub.AbstractStub.StubFactory<LoadBalancerStatsServiceBlockingV2Stub> factory =
101+
new io.grpc.stub.AbstractStub.StubFactory<LoadBalancerStatsServiceBlockingV2Stub>() {
102+
@java.lang.Override
103+
public LoadBalancerStatsServiceBlockingV2Stub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
104+
return new LoadBalancerStatsServiceBlockingV2Stub(channel, callOptions);
105+
}
106+
};
107+
return LoadBalancerStatsServiceBlockingV2Stub.newStub(factory, channel);
108+
}
109+
95110
/**
96111
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
97112
*/
@@ -212,6 +227,46 @@ public void getClientAccumulatedStats(io.grpc.testing.integration.Messages.LoadB
212227
* A service used to obtain stats for verifying LB behavior.
213228
* </pre>
214229
*/
230+
public static final class LoadBalancerStatsServiceBlockingV2Stub
231+
extends io.grpc.stub.AbstractBlockingStub<LoadBalancerStatsServiceBlockingV2Stub> {
232+
private LoadBalancerStatsServiceBlockingV2Stub(
233+
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
234+
super(channel, callOptions);
235+
}
236+
237+
@java.lang.Override
238+
protected LoadBalancerStatsServiceBlockingV2Stub build(
239+
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
240+
return new LoadBalancerStatsServiceBlockingV2Stub(channel, callOptions);
241+
}
242+
243+
/**
244+
* <pre>
245+
* Gets the backend distribution for RPCs sent by a test client.
246+
* </pre>
247+
*/
248+
public io.grpc.testing.integration.Messages.LoadBalancerStatsResponse getClientStats(io.grpc.testing.integration.Messages.LoadBalancerStatsRequest request) {
249+
return io.grpc.stub.ClientCalls.blockingUnaryCall(
250+
getChannel(), getGetClientStatsMethod(), getCallOptions(), request);
251+
}
252+
253+
/**
254+
* <pre>
255+
* Gets the accumulated stats for RPCs sent by a test client.
256+
* </pre>
257+
*/
258+
public io.grpc.testing.integration.Messages.LoadBalancerAccumulatedStatsResponse getClientAccumulatedStats(io.grpc.testing.integration.Messages.LoadBalancerAccumulatedStatsRequest request) {
259+
return io.grpc.stub.ClientCalls.blockingUnaryCall(
260+
getChannel(), getGetClientAccumulatedStatsMethod(), getCallOptions(), request);
261+
}
262+
}
263+
264+
/**
265+
* A stub to allow clients to do limited synchronous rpc calls to service LoadBalancerStatsService.
266+
* <pre>
267+
* A service used to obtain stats for verifying LB behavior.
268+
* </pre>
269+
*/
215270
public static final class LoadBalancerStatsServiceBlockingStub
216271
extends io.grpc.stub.AbstractBlockingStub<LoadBalancerStatsServiceBlockingStub> {
217272
private LoadBalancerStatsServiceBlockingStub(

android-interop-testing/src/generated/debug/grpc/io/grpc/testing/integration/MetricsServiceGrpc.java

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,21 @@ public MetricsServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions c
8989
return MetricsServiceStub.newStub(factory, channel);
9090
}
9191

92+
/**
93+
* Creates a new blocking-style stub that supports all types of calls on the service
94+
*/
95+
public static MetricsServiceBlockingV2Stub newBlockingV2Stub(
96+
io.grpc.Channel channel) {
97+
io.grpc.stub.AbstractStub.StubFactory<MetricsServiceBlockingV2Stub> factory =
98+
new io.grpc.stub.AbstractStub.StubFactory<MetricsServiceBlockingV2Stub>() {
99+
@java.lang.Override
100+
public MetricsServiceBlockingV2Stub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
101+
return new MetricsServiceBlockingV2Stub(channel, callOptions);
102+
}
103+
};
104+
return MetricsServiceBlockingV2Stub.newStub(factory, channel);
105+
}
106+
92107
/**
93108
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
94109
*/
@@ -199,6 +214,46 @@ public void getGauge(io.grpc.testing.integration.Metrics.GaugeRequest request,
199214
/**
200215
* A stub to allow clients to do synchronous rpc calls to service MetricsService.
201216
*/
217+
public static final class MetricsServiceBlockingV2Stub
218+
extends io.grpc.stub.AbstractBlockingStub<MetricsServiceBlockingV2Stub> {
219+
private MetricsServiceBlockingV2Stub(
220+
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
221+
super(channel, callOptions);
222+
}
223+
224+
@java.lang.Override
225+
protected MetricsServiceBlockingV2Stub build(
226+
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
227+
return new MetricsServiceBlockingV2Stub(channel, callOptions);
228+
}
229+
230+
/**
231+
* <pre>
232+
* Returns the values of all the gauges that are currently being maintained by
233+
* the service
234+
* </pre>
235+
*/
236+
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918")
237+
public io.grpc.stub.BlockingClientCall<?, io.grpc.testing.integration.Metrics.GaugeResponse>
238+
getAllGauges(io.grpc.testing.integration.Metrics.EmptyMessage request) {
239+
return io.grpc.stub.ClientCalls.blockingV2ServerStreamingCall(
240+
getChannel(), getGetAllGaugesMethod(), getCallOptions(), request);
241+
}
242+
243+
/**
244+
* <pre>
245+
* Returns the value of one gauge
246+
* </pre>
247+
*/
248+
public io.grpc.testing.integration.Metrics.GaugeResponse getGauge(io.grpc.testing.integration.Metrics.GaugeRequest request) {
249+
return io.grpc.stub.ClientCalls.blockingUnaryCall(
250+
getChannel(), getGetGaugeMethod(), getCallOptions(), request);
251+
}
252+
}
253+
254+
/**
255+
* A stub to allow clients to do limited synchronous rpc calls to service MetricsService.
256+
*/
202257
public static final class MetricsServiceBlockingStub
203258
extends io.grpc.stub.AbstractBlockingStub<MetricsServiceBlockingStub> {
204259
private MetricsServiceBlockingStub(

0 commit comments

Comments
 (0)