Skip to content

Commit 0cabf56

Browse files
ejona86dapengzhang0
authored andcommitted
compiler: Add GrpcGenerated annotation to generated class
This can be used by annotation processors to avoid processing the gRPC-generated code. The normal Generated annotation only has SOURCE retention, so isn't available to annotation processors. I don't include the service name within the annotation as that assumes we'll never have need for any other type of generated class. If there's a request for exposing service name via an annotation in the future, we can make an RpcService annotation or the like. Fixes grpc#8158
1 parent 6031357 commit 0cabf56

File tree

55 files changed

+93
-1
lines changed

Some content is hidden

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

55 files changed

+93
-1
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
@javax.annotation.Generated(
88
value = "by gRPC proto compiler",
99
comments = "Source: grpc/gcp/handshaker.proto")
10+
@io.grpc.stub.annotations.GrpcGenerated
1011
public final class HandshakerServiceGrpc {
1112

1213
private HandshakerServiceGrpc() {}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
@javax.annotation.Generated(
1111
value = "by gRPC proto compiler",
1212
comments = "Source: grpc/testing/test.proto")
13+
@io.grpc.stub.annotations.GrpcGenerated
1314
public final class LoadBalancerStatsServiceGrpc {
1415

1516
private LoadBalancerStatsServiceGrpc() {}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
@javax.annotation.Generated(
88
value = "by gRPC proto compiler",
99
comments = "Source: grpc/testing/metrics.proto")
10+
@io.grpc.stub.annotations.GrpcGenerated
1011
public final class MetricsServiceGrpc {
1112

1213
private MetricsServiceGrpc() {}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
@javax.annotation.Generated(
1111
value = "by gRPC proto compiler",
1212
comments = "Source: grpc/testing/test.proto")
13+
@io.grpc.stub.annotations.GrpcGenerated
1314
public final class ReconnectServiceGrpc {
1415

1516
private ReconnectServiceGrpc() {}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
@javax.annotation.Generated(
1212
value = "by gRPC proto compiler",
1313
comments = "Source: grpc/testing/test.proto")
14+
@io.grpc.stub.annotations.GrpcGenerated
1415
public final class TestServiceGrpc {
1516

1617
private TestServiceGrpc() {}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
@javax.annotation.Generated(
1212
value = "by gRPC proto compiler",
1313
comments = "Source: grpc/testing/test.proto")
14+
@io.grpc.stub.annotations.GrpcGenerated
1415
public final class UnimplementedServiceGrpc {
1516

1617
private UnimplementedServiceGrpc() {}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
@javax.annotation.Generated(
1111
value = "by gRPC proto compiler",
1212
comments = "Source: grpc/testing/test.proto")
13+
@io.grpc.stub.annotations.GrpcGenerated
1314
public final class XdsUpdateClientConfigureServiceGrpc {
1415

1516
private XdsUpdateClientConfigureServiceGrpc() {}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
@javax.annotation.Generated(
1111
value = "by gRPC proto compiler",
1212
comments = "Source: grpc/testing/test.proto")
13+
@io.grpc.stub.annotations.GrpcGenerated
1314
public final class XdsUpdateHealthServiceGrpc {
1415

1516
private XdsUpdateHealthServiceGrpc() {}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
@javax.annotation.Generated(
1111
value = "by gRPC proto compiler",
1212
comments = "Source: grpc/testing/test.proto")
13+
@io.grpc.stub.annotations.GrpcGenerated
1314
public final class LoadBalancerStatsServiceGrpc {
1415

1516
private LoadBalancerStatsServiceGrpc() {}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
@javax.annotation.Generated(
88
value = "by gRPC proto compiler",
99
comments = "Source: grpc/testing/metrics.proto")
10+
@io.grpc.stub.annotations.GrpcGenerated
1011
public final class MetricsServiceGrpc {
1112

1213
private MetricsServiceGrpc() {}

0 commit comments

Comments
 (0)