Skip to content

Commit a2ef4c0

Browse files
authored
services: update v1alpha reflection.proto to match grpc-proto repo (grpc#4973)
More info: grpc/grpc-proto#38
1 parent b7c3d27 commit a2ef4c0

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

services/build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ buildscript {
99

1010
description = "gRPC: Services"
1111

12+
[compileJava].each() {
13+
// v1alpha of reflection.proto is deprecated at the file level.
14+
// Without this workaround, the project can not compile.
15+
it.options.compilerArgs += [
16+
"-Xlint:-deprecation",
17+
]
18+
}
19+
1220
dependencies {
1321
compile project(':grpc-protobuf'),
1422
project(':grpc-stub')

services/src/generated/main/java/io/grpc/reflection/v1alpha/ServerReflectionProto.java

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

services/src/main/proto/io/grpc/reflection/v1alpha/reflection.proto

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,15 @@
1313
// limitations under the License.
1414
// Service exported by server reflection
1515

16+
17+
// Warning: this entire file is deprecated. Use this instead:
18+
// https://github.com/grpc/grpc-proto/blob/master/grpc/reflection/v1/reflection.proto
19+
1620
syntax = "proto3";
1721

1822
package grpc.reflection.v1alpha;
1923

24+
option deprecated = true;
2025
option java_multiple_files = true;
2126
option java_package = "io.grpc.reflection.v1alpha";
2227
option java_outer_classname = "ServerReflectionProto";

0 commit comments

Comments
 (0)