diff options
author | Eric Gribkoff <ericgribkoff@google.com> | 2018-02-08 11:25:38 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-08 11:25:38 -0800 |
commit | 6f9b4e87e16192b870cc13bd2d48f4db187d2308 (patch) | |
tree | 90db349cd960b427103406c90820490d8928cf6f /services | |
parent | f8c7f963efb441cee24f94ffc97aeb642a0a1c9c (diff) | |
download | grpc-grpc-java-6f9b4e87e16192b870cc13bd2d48f4db187d2308.tar.gz |
compiler: avoid invoking experimental method in generated code
Diffstat (limited to 'services')
6 files changed, 117 insertions, 67 deletions
diff --git a/services/src/generated/main/grpc/io/grpc/health/v1/HealthGrpc.java b/services/src/generated/main/grpc/io/grpc/health/v1/HealthGrpc.java index e3f4f49a8..d2a62cd55 100644 --- a/services/src/generated/main/grpc/io/grpc/health/v1/HealthGrpc.java +++ b/services/src/generated/main/grpc/io/grpc/health/v1/HealthGrpc.java @@ -30,7 +30,7 @@ public final class HealthGrpc { @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") @java.lang.Deprecated // Use {@link #getCheckMethod()} instead. public static final io.grpc.MethodDescriptor<io.grpc.health.v1.HealthCheckRequest, - io.grpc.health.v1.HealthCheckResponse> METHOD_CHECK = getCheckMethod(); + io.grpc.health.v1.HealthCheckResponse> METHOD_CHECK = getCheckMethodHelper(); private static volatile io.grpc.MethodDescriptor<io.grpc.health.v1.HealthCheckRequest, io.grpc.health.v1.HealthCheckResponse> getCheckMethod; @@ -38,6 +38,11 @@ public final class HealthGrpc { @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") public static io.grpc.MethodDescriptor<io.grpc.health.v1.HealthCheckRequest, io.grpc.health.v1.HealthCheckResponse> getCheckMethod() { + return getCheckMethodHelper(); + } + + private static io.grpc.MethodDescriptor<io.grpc.health.v1.HealthCheckRequest, + io.grpc.health.v1.HealthCheckResponse> getCheckMethodHelper() { io.grpc.MethodDescriptor<io.grpc.health.v1.HealthCheckRequest, io.grpc.health.v1.HealthCheckResponse> getCheckMethod; if ((getCheckMethod = HealthGrpc.getCheckMethod) == null) { synchronized (HealthGrpc.class) { @@ -91,13 +96,13 @@ public final class HealthGrpc { */ public void check(io.grpc.health.v1.HealthCheckRequest request, io.grpc.stub.StreamObserver<io.grpc.health.v1.HealthCheckResponse> responseObserver) { - asyncUnimplementedUnaryCall(getCheckMethod(), responseObserver); + asyncUnimplementedUnaryCall(getCheckMethodHelper(), responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getCheckMethod(), + getCheckMethodHelper(), asyncUnaryCall( new MethodHandlers< io.grpc.health.v1.HealthCheckRequest, @@ -130,7 +135,7 @@ public final class HealthGrpc { public void check(io.grpc.health.v1.HealthCheckRequest request, io.grpc.stub.StreamObserver<io.grpc.health.v1.HealthCheckResponse> responseObserver) { asyncUnaryCall( - getChannel().newCall(getCheckMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getCheckMethodHelper(), getCallOptions()), request, responseObserver); } } @@ -156,7 +161,7 @@ public final class HealthGrpc { */ public io.grpc.health.v1.HealthCheckResponse check(io.grpc.health.v1.HealthCheckRequest request) { return blockingUnaryCall( - getChannel(), getCheckMethod(), getCallOptions(), request); + getChannel(), getCheckMethodHelper(), getCallOptions(), request); } } @@ -183,7 +188,7 @@ public final class HealthGrpc { public com.google.common.util.concurrent.ListenableFuture<io.grpc.health.v1.HealthCheckResponse> check( io.grpc.health.v1.HealthCheckRequest request) { return futureUnaryCall( - getChannel().newCall(getCheckMethod(), getCallOptions()), request); + getChannel().newCall(getCheckMethodHelper(), getCallOptions()), request); } } @@ -271,7 +276,7 @@ public final class HealthGrpc { if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new HealthFileDescriptorSupplier()) - .addMethod(getCheckMethod()) + .addMethod(getCheckMethodHelper()) .build(); } } diff --git a/services/src/generated/main/grpc/io/grpc/instrumentation/v1alpha/MonitoringGrpc.java b/services/src/generated/main/grpc/io/grpc/instrumentation/v1alpha/MonitoringGrpc.java index 6da75b3e1..bfc578506 100644 --- a/services/src/generated/main/grpc/io/grpc/instrumentation/v1alpha/MonitoringGrpc.java +++ b/services/src/generated/main/grpc/io/grpc/instrumentation/v1alpha/MonitoringGrpc.java @@ -30,7 +30,7 @@ public final class MonitoringGrpc { @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") @java.lang.Deprecated // Use {@link #getGetCanonicalRpcStatsMethod()} instead. public static final io.grpc.MethodDescriptor<com.google.protobuf.Empty, - io.grpc.instrumentation.v1alpha.CanonicalRpcStats> METHOD_GET_CANONICAL_RPC_STATS = getGetCanonicalRpcStatsMethod(); + io.grpc.instrumentation.v1alpha.CanonicalRpcStats> METHOD_GET_CANONICAL_RPC_STATS = getGetCanonicalRpcStatsMethodHelper(); private static volatile io.grpc.MethodDescriptor<com.google.protobuf.Empty, io.grpc.instrumentation.v1alpha.CanonicalRpcStats> getGetCanonicalRpcStatsMethod; @@ -38,6 +38,11 @@ public final class MonitoringGrpc { @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") public static io.grpc.MethodDescriptor<com.google.protobuf.Empty, io.grpc.instrumentation.v1alpha.CanonicalRpcStats> getGetCanonicalRpcStatsMethod() { + return getGetCanonicalRpcStatsMethodHelper(); + } + + private static io.grpc.MethodDescriptor<com.google.protobuf.Empty, + io.grpc.instrumentation.v1alpha.CanonicalRpcStats> getGetCanonicalRpcStatsMethodHelper() { io.grpc.MethodDescriptor<com.google.protobuf.Empty, io.grpc.instrumentation.v1alpha.CanonicalRpcStats> getGetCanonicalRpcStatsMethod; if ((getGetCanonicalRpcStatsMethod = MonitoringGrpc.getGetCanonicalRpcStatsMethod) == null) { synchronized (MonitoringGrpc.class) { @@ -62,7 +67,7 @@ public final class MonitoringGrpc { @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") @java.lang.Deprecated // Use {@link #getGetStatsMethod()} instead. public static final io.grpc.MethodDescriptor<io.grpc.instrumentation.v1alpha.StatsRequest, - io.grpc.instrumentation.v1alpha.StatsResponse> METHOD_GET_STATS = getGetStatsMethod(); + io.grpc.instrumentation.v1alpha.StatsResponse> METHOD_GET_STATS = getGetStatsMethodHelper(); private static volatile io.grpc.MethodDescriptor<io.grpc.instrumentation.v1alpha.StatsRequest, io.grpc.instrumentation.v1alpha.StatsResponse> getGetStatsMethod; @@ -70,6 +75,11 @@ public final class MonitoringGrpc { @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") public static io.grpc.MethodDescriptor<io.grpc.instrumentation.v1alpha.StatsRequest, io.grpc.instrumentation.v1alpha.StatsResponse> getGetStatsMethod() { + return getGetStatsMethodHelper(); + } + + private static io.grpc.MethodDescriptor<io.grpc.instrumentation.v1alpha.StatsRequest, + io.grpc.instrumentation.v1alpha.StatsResponse> getGetStatsMethodHelper() { io.grpc.MethodDescriptor<io.grpc.instrumentation.v1alpha.StatsRequest, io.grpc.instrumentation.v1alpha.StatsResponse> getGetStatsMethod; if ((getGetStatsMethod = MonitoringGrpc.getGetStatsMethod) == null) { synchronized (MonitoringGrpc.class) { @@ -94,7 +104,7 @@ public final class MonitoringGrpc { @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") @java.lang.Deprecated // Use {@link #getWatchStatsMethod()} instead. public static final io.grpc.MethodDescriptor<io.grpc.instrumentation.v1alpha.StatsRequest, - io.grpc.instrumentation.v1alpha.StatsResponse> METHOD_WATCH_STATS = getWatchStatsMethod(); + io.grpc.instrumentation.v1alpha.StatsResponse> METHOD_WATCH_STATS = getWatchStatsMethodHelper(); private static volatile io.grpc.MethodDescriptor<io.grpc.instrumentation.v1alpha.StatsRequest, io.grpc.instrumentation.v1alpha.StatsResponse> getWatchStatsMethod; @@ -102,6 +112,11 @@ public final class MonitoringGrpc { @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") public static io.grpc.MethodDescriptor<io.grpc.instrumentation.v1alpha.StatsRequest, io.grpc.instrumentation.v1alpha.StatsResponse> getWatchStatsMethod() { + return getWatchStatsMethodHelper(); + } + + private static io.grpc.MethodDescriptor<io.grpc.instrumentation.v1alpha.StatsRequest, + io.grpc.instrumentation.v1alpha.StatsResponse> getWatchStatsMethodHelper() { io.grpc.MethodDescriptor<io.grpc.instrumentation.v1alpha.StatsRequest, io.grpc.instrumentation.v1alpha.StatsResponse> getWatchStatsMethod; if ((getWatchStatsMethod = MonitoringGrpc.getWatchStatsMethod) == null) { synchronized (MonitoringGrpc.class) { @@ -126,7 +141,7 @@ public final class MonitoringGrpc { @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") @java.lang.Deprecated // Use {@link #getGetRequestTracesMethod()} instead. public static final io.grpc.MethodDescriptor<io.grpc.instrumentation.v1alpha.TraceRequest, - io.grpc.instrumentation.v1alpha.TraceResponse> METHOD_GET_REQUEST_TRACES = getGetRequestTracesMethod(); + io.grpc.instrumentation.v1alpha.TraceResponse> METHOD_GET_REQUEST_TRACES = getGetRequestTracesMethodHelper(); private static volatile io.grpc.MethodDescriptor<io.grpc.instrumentation.v1alpha.TraceRequest, io.grpc.instrumentation.v1alpha.TraceResponse> getGetRequestTracesMethod; @@ -134,6 +149,11 @@ public final class MonitoringGrpc { @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") public static io.grpc.MethodDescriptor<io.grpc.instrumentation.v1alpha.TraceRequest, io.grpc.instrumentation.v1alpha.TraceResponse> getGetRequestTracesMethod() { + return getGetRequestTracesMethodHelper(); + } + + private static io.grpc.MethodDescriptor<io.grpc.instrumentation.v1alpha.TraceRequest, + io.grpc.instrumentation.v1alpha.TraceResponse> getGetRequestTracesMethodHelper() { io.grpc.MethodDescriptor<io.grpc.instrumentation.v1alpha.TraceRequest, io.grpc.instrumentation.v1alpha.TraceResponse> getGetRequestTracesMethod; if ((getGetRequestTracesMethod = MonitoringGrpc.getGetRequestTracesMethod) == null) { synchronized (MonitoringGrpc.class) { @@ -158,7 +178,7 @@ public final class MonitoringGrpc { @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") @java.lang.Deprecated // Use {@link #getGetCustomMonitoringDataMethod()} instead. public static final io.grpc.MethodDescriptor<io.grpc.instrumentation.v1alpha.MonitoringDataGroup, - io.grpc.instrumentation.v1alpha.CustomMonitoringData> METHOD_GET_CUSTOM_MONITORING_DATA = getGetCustomMonitoringDataMethod(); + io.grpc.instrumentation.v1alpha.CustomMonitoringData> METHOD_GET_CUSTOM_MONITORING_DATA = getGetCustomMonitoringDataMethodHelper(); private static volatile io.grpc.MethodDescriptor<io.grpc.instrumentation.v1alpha.MonitoringDataGroup, io.grpc.instrumentation.v1alpha.CustomMonitoringData> getGetCustomMonitoringDataMethod; @@ -166,6 +186,11 @@ public final class MonitoringGrpc { @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") public static io.grpc.MethodDescriptor<io.grpc.instrumentation.v1alpha.MonitoringDataGroup, io.grpc.instrumentation.v1alpha.CustomMonitoringData> getGetCustomMonitoringDataMethod() { + return getGetCustomMonitoringDataMethodHelper(); + } + + private static io.grpc.MethodDescriptor<io.grpc.instrumentation.v1alpha.MonitoringDataGroup, + io.grpc.instrumentation.v1alpha.CustomMonitoringData> getGetCustomMonitoringDataMethodHelper() { io.grpc.MethodDescriptor<io.grpc.instrumentation.v1alpha.MonitoringDataGroup, io.grpc.instrumentation.v1alpha.CustomMonitoringData> getGetCustomMonitoringDataMethod; if ((getGetCustomMonitoringDataMethod = MonitoringGrpc.getGetCustomMonitoringDataMethod) == null) { synchronized (MonitoringGrpc.class) { @@ -222,7 +247,7 @@ public final class MonitoringGrpc { */ public void getCanonicalRpcStats(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<io.grpc.instrumentation.v1alpha.CanonicalRpcStats> responseObserver) { - asyncUnimplementedUnaryCall(getGetCanonicalRpcStatsMethod(), responseObserver); + asyncUnimplementedUnaryCall(getGetCanonicalRpcStatsMethodHelper(), responseObserver); } /** @@ -232,7 +257,7 @@ public final class MonitoringGrpc { */ public void getStats(io.grpc.instrumentation.v1alpha.StatsRequest request, io.grpc.stub.StreamObserver<io.grpc.instrumentation.v1alpha.StatsResponse> responseObserver) { - asyncUnimplementedUnaryCall(getGetStatsMethod(), responseObserver); + asyncUnimplementedUnaryCall(getGetStatsMethodHelper(), responseObserver); } /** @@ -242,7 +267,7 @@ public final class MonitoringGrpc { */ public void watchStats(io.grpc.instrumentation.v1alpha.StatsRequest request, io.grpc.stub.StreamObserver<io.grpc.instrumentation.v1alpha.StatsResponse> responseObserver) { - asyncUnimplementedUnaryCall(getWatchStatsMethod(), responseObserver); + asyncUnimplementedUnaryCall(getWatchStatsMethodHelper(), responseObserver); } /** @@ -252,7 +277,7 @@ public final class MonitoringGrpc { */ public void getRequestTraces(io.grpc.instrumentation.v1alpha.TraceRequest request, io.grpc.stub.StreamObserver<io.grpc.instrumentation.v1alpha.TraceResponse> responseObserver) { - asyncUnimplementedUnaryCall(getGetRequestTracesMethod(), responseObserver); + asyncUnimplementedUnaryCall(getGetRequestTracesMethodHelper(), responseObserver); } /** @@ -265,41 +290,41 @@ public final class MonitoringGrpc { */ public void getCustomMonitoringData(io.grpc.instrumentation.v1alpha.MonitoringDataGroup request, io.grpc.stub.StreamObserver<io.grpc.instrumentation.v1alpha.CustomMonitoringData> responseObserver) { - asyncUnimplementedUnaryCall(getGetCustomMonitoringDataMethod(), responseObserver); + asyncUnimplementedUnaryCall(getGetCustomMonitoringDataMethodHelper(), responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getGetCanonicalRpcStatsMethod(), + getGetCanonicalRpcStatsMethodHelper(), asyncUnaryCall( new MethodHandlers< com.google.protobuf.Empty, io.grpc.instrumentation.v1alpha.CanonicalRpcStats>( this, METHODID_GET_CANONICAL_RPC_STATS))) .addMethod( - getGetStatsMethod(), + getGetStatsMethodHelper(), asyncUnaryCall( new MethodHandlers< io.grpc.instrumentation.v1alpha.StatsRequest, io.grpc.instrumentation.v1alpha.StatsResponse>( this, METHODID_GET_STATS))) .addMethod( - getWatchStatsMethod(), + getWatchStatsMethodHelper(), asyncServerStreamingCall( new MethodHandlers< io.grpc.instrumentation.v1alpha.StatsRequest, io.grpc.instrumentation.v1alpha.StatsResponse>( this, METHODID_WATCH_STATS))) .addMethod( - getGetRequestTracesMethod(), + getGetRequestTracesMethodHelper(), asyncUnaryCall( new MethodHandlers< io.grpc.instrumentation.v1alpha.TraceRequest, io.grpc.instrumentation.v1alpha.TraceResponse>( this, METHODID_GET_REQUEST_TRACES))) .addMethod( - getGetCustomMonitoringDataMethod(), + getGetCustomMonitoringDataMethodHelper(), asyncUnaryCall( new MethodHandlers< io.grpc.instrumentation.v1alpha.MonitoringDataGroup, @@ -335,7 +360,7 @@ public final class MonitoringGrpc { public void getCanonicalRpcStats(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<io.grpc.instrumentation.v1alpha.CanonicalRpcStats> responseObserver) { asyncUnaryCall( - getChannel().newCall(getGetCanonicalRpcStatsMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getGetCanonicalRpcStatsMethodHelper(), getCallOptions()), request, responseObserver); } /** @@ -346,7 +371,7 @@ public final class MonitoringGrpc { public void getStats(io.grpc.instrumentation.v1alpha.StatsRequest request, io.grpc.stub.StreamObserver<io.grpc.instrumentation.v1alpha.StatsResponse> responseObserver) { asyncUnaryCall( - getChannel().newCall(getGetStatsMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getGetStatsMethodHelper(), getCallOptions()), request, responseObserver); } /** @@ -357,7 +382,7 @@ public final class MonitoringGrpc { public void watchStats(io.grpc.instrumentation.v1alpha.StatsRequest request, io.grpc.stub.StreamObserver<io.grpc.instrumentation.v1alpha.StatsResponse> responseObserver) { asyncServerStreamingCall( - getChannel().newCall(getWatchStatsMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getWatchStatsMethodHelper(), getCallOptions()), request, responseObserver); } /** @@ -368,7 +393,7 @@ public final class MonitoringGrpc { public void getRequestTraces(io.grpc.instrumentation.v1alpha.TraceRequest request, io.grpc.stub.StreamObserver<io.grpc.instrumentation.v1alpha.TraceResponse> responseObserver) { asyncUnaryCall( - getChannel().newCall(getGetRequestTracesMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getGetRequestTracesMethodHelper(), getCallOptions()), request, responseObserver); } /** @@ -382,7 +407,7 @@ public final class MonitoringGrpc { public void getCustomMonitoringData(io.grpc.instrumentation.v1alpha.MonitoringDataGroup request, io.grpc.stub.StreamObserver<io.grpc.instrumentation.v1alpha.CustomMonitoringData> responseObserver) { asyncUnaryCall( - getChannel().newCall(getGetCustomMonitoringDataMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getGetCustomMonitoringDataMethodHelper(), getCallOptions()), request, responseObserver); } } @@ -411,7 +436,7 @@ public final class MonitoringGrpc { */ public io.grpc.instrumentation.v1alpha.CanonicalRpcStats getCanonicalRpcStats(com.google.protobuf.Empty request) { return blockingUnaryCall( - getChannel(), getGetCanonicalRpcStatsMethod(), getCallOptions(), request); + getChannel(), getGetCanonicalRpcStatsMethodHelper(), getCallOptions(), request); } /** @@ -421,7 +446,7 @@ public final class MonitoringGrpc { */ public io.grpc.instrumentation.v1alpha.StatsResponse getStats(io.grpc.instrumentation.v1alpha.StatsRequest request) { return blockingUnaryCall( - getChannel(), getGetStatsMethod(), getCallOptions(), request); + getChannel(), getGetStatsMethodHelper(), getCallOptions(), request); } /** @@ -432,7 +457,7 @@ public final class MonitoringGrpc { public java.util.Iterator<io.grpc.instrumentation.v1alpha.StatsResponse> watchStats( io.grpc.instrumentation.v1alpha.StatsRequest request) { return blockingServerStreamingCall( - getChannel(), getWatchStatsMethod(), getCallOptions(), request); + getChannel(), getWatchStatsMethodHelper(), getCallOptions(), request); } /** @@ -442,7 +467,7 @@ public final class MonitoringGrpc { */ public io.grpc.instrumentation.v1alpha.TraceResponse getRequestTraces(io.grpc.instrumentation.v1alpha.TraceRequest request) { return blockingUnaryCall( - getChannel(), getGetRequestTracesMethod(), getCallOptions(), request); + getChannel(), getGetRequestTracesMethodHelper(), getCallOptions(), request); } /** @@ -455,7 +480,7 @@ public final class MonitoringGrpc { */ public io.grpc.instrumentation.v1alpha.CustomMonitoringData getCustomMonitoringData(io.grpc.instrumentation.v1alpha.MonitoringDataGroup request) { return blockingUnaryCall( - getChannel(), getGetCustomMonitoringDataMethod(), getCallOptions(), request); + getChannel(), getGetCustomMonitoringDataMethodHelper(), getCallOptions(), request); } } @@ -485,7 +510,7 @@ public final class MonitoringGrpc { public com.google.common.util.concurrent.ListenableFuture<io.grpc.instrumentation.v1alpha.CanonicalRpcStats> getCanonicalRpcStats( com.google.protobuf.Empty request) { return futureUnaryCall( - getChannel().newCall(getGetCanonicalRpcStatsMethod(), getCallOptions()), request); + getChannel().newCall(getGetCanonicalRpcStatsMethodHelper(), getCallOptions()), request); } /** @@ -496,7 +521,7 @@ public final class MonitoringGrpc { public com.google.common.util.concurrent.ListenableFuture<io.grpc.instrumentation.v1alpha.StatsResponse> getStats( io.grpc.instrumentation.v1alpha.StatsRequest request) { return futureUnaryCall( - getChannel().newCall(getGetStatsMethod(), getCallOptions()), request); + getChannel().newCall(getGetStatsMethodHelper(), getCallOptions()), request); } /** @@ -507,7 +532,7 @@ public final class MonitoringGrpc { public com.google.common.util.concurrent.ListenableFuture<io.grpc.instrumentation.v1alpha.TraceResponse> getRequestTraces( io.grpc.instrumentation.v1alpha.TraceRequest request) { return futureUnaryCall( - getChannel().newCall(getGetRequestTracesMethod(), getCallOptions()), request); + getChannel().newCall(getGetRequestTracesMethodHelper(), getCallOptions()), request); } /** @@ -521,7 +546,7 @@ public final class MonitoringGrpc { public com.google.common.util.concurrent.ListenableFuture<io.grpc.instrumentation.v1alpha.CustomMonitoringData> getCustomMonitoringData( io.grpc.instrumentation.v1alpha.MonitoringDataGroup request) { return futureUnaryCall( - getChannel().newCall(getGetCustomMonitoringDataMethod(), getCallOptions()), request); + getChannel().newCall(getGetCustomMonitoringDataMethodHelper(), getCallOptions()), request); } } @@ -629,11 +654,11 @@ public final class MonitoringGrpc { if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new MonitoringFileDescriptorSupplier()) - .addMethod(getGetCanonicalRpcStatsMethod()) - .addMethod(getGetStatsMethod()) - .addMethod(getWatchStatsMethod()) - .addMethod(getGetRequestTracesMethod()) - .addMethod(getGetCustomMonitoringDataMethod()) + .addMethod(getGetCanonicalRpcStatsMethodHelper()) + .addMethod(getGetStatsMethodHelper()) + .addMethod(getWatchStatsMethodHelper()) + .addMethod(getGetRequestTracesMethodHelper()) + .addMethod(getGetCustomMonitoringDataMethodHelper()) .build(); } } diff --git a/services/src/generated/main/grpc/io/grpc/reflection/v1alpha/ServerReflectionGrpc.java b/services/src/generated/main/grpc/io/grpc/reflection/v1alpha/ServerReflectionGrpc.java index fd03585c5..21bb625ad 100644 --- a/services/src/generated/main/grpc/io/grpc/reflection/v1alpha/ServerReflectionGrpc.java +++ b/services/src/generated/main/grpc/io/grpc/reflection/v1alpha/ServerReflectionGrpc.java @@ -30,7 +30,7 @@ public final class ServerReflectionGrpc { @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") @java.lang.Deprecated // Use {@link #getServerReflectionInfoMethod()} instead. public static final io.grpc.MethodDescriptor<io.grpc.reflection.v1alpha.ServerReflectionRequest, - io.grpc.reflection.v1alpha.ServerReflectionResponse> METHOD_SERVER_REFLECTION_INFO = getServerReflectionInfoMethod(); + io.grpc.reflection.v1alpha.ServerReflectionResponse> METHOD_SERVER_REFLECTION_INFO = getServerReflectionInfoMethodHelper(); private static volatile io.grpc.MethodDescriptor<io.grpc.reflection.v1alpha.ServerReflectionRequest, io.grpc.reflection.v1alpha.ServerReflectionResponse> getServerReflectionInfoMethod; @@ -38,6 +38,11 @@ public final class ServerReflectionGrpc { @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") public static io.grpc.MethodDescriptor<io.grpc.reflection.v1alpha.ServerReflectionRequest, io.grpc.reflection.v1alpha.ServerReflectionResponse> getServerReflectionInfoMethod() { + return getServerReflectionInfoMethodHelper(); + } + + private static io.grpc.MethodDescriptor<io.grpc.reflection.v1alpha.ServerReflectionRequest, + io.grpc.reflection.v1alpha.ServerReflectionResponse> getServerReflectionInfoMethodHelper() { io.grpc.MethodDescriptor<io.grpc.reflection.v1alpha.ServerReflectionRequest, io.grpc.reflection.v1alpha.ServerReflectionResponse> getServerReflectionInfoMethod; if ((getServerReflectionInfoMethod = ServerReflectionGrpc.getServerReflectionInfoMethod) == null) { synchronized (ServerReflectionGrpc.class) { @@ -95,13 +100,13 @@ public final class ServerReflectionGrpc { */ public io.grpc.stub.StreamObserver<io.grpc.reflection.v1alpha.ServerReflectionRequest> serverReflectionInfo( io.grpc.stub.StreamObserver<io.grpc.reflection.v1alpha.ServerReflectionResponse> responseObserver) { - return asyncUnimplementedStreamingCall(getServerReflectionInfoMethod(), responseObserver); + return asyncUnimplementedStreamingCall(getServerReflectionInfoMethodHelper(), responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getServerReflectionInfoMethod(), + getServerReflectionInfoMethodHelper(), asyncBidiStreamingCall( new MethodHandlers< io.grpc.reflection.v1alpha.ServerReflectionRequest, @@ -138,7 +143,7 @@ public final class ServerReflectionGrpc { public io.grpc.stub.StreamObserver<io.grpc.reflection.v1alpha.ServerReflectionRequest> serverReflectionInfo( io.grpc.stub.StreamObserver<io.grpc.reflection.v1alpha.ServerReflectionResponse> responseObserver) { return asyncBidiStreamingCall( - getChannel().newCall(getServerReflectionInfoMethod(), getCallOptions()), responseObserver); + getChannel().newCall(getServerReflectionInfoMethodHelper(), getCallOptions()), responseObserver); } } @@ -263,7 +268,7 @@ public final class ServerReflectionGrpc { if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new ServerReflectionFileDescriptorSupplier()) - .addMethod(getServerReflectionInfoMethod()) + .addMethod(getServerReflectionInfoMethodHelper()) .build(); } } diff --git a/services/src/generated/test/grpc/io/grpc/reflection/testing/AnotherDynamicServiceGrpc.java b/services/src/generated/test/grpc/io/grpc/reflection/testing/AnotherDynamicServiceGrpc.java index efbbd249e..fcb29e5bb 100644 --- a/services/src/generated/test/grpc/io/grpc/reflection/testing/AnotherDynamicServiceGrpc.java +++ b/services/src/generated/test/grpc/io/grpc/reflection/testing/AnotherDynamicServiceGrpc.java @@ -33,7 +33,7 @@ public final class AnotherDynamicServiceGrpc { @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") @java.lang.Deprecated // Use {@link #getMethodMethod()} instead. public static final io.grpc.MethodDescriptor<io.grpc.reflection.testing.DynamicRequest, - io.grpc.reflection.testing.DynamicReply> METHOD_METHOD = getMethodMethod(); + io.grpc.reflection.testing.DynamicReply> METHOD_METHOD = getMethodMethodHelper(); private static volatile io.grpc.MethodDescriptor<io.grpc.reflection.testing.DynamicRequest, io.grpc.reflection.testing.DynamicReply> getMethodMethod; @@ -41,6 +41,11 @@ public final class AnotherDynamicServiceGrpc { @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") public static io.grpc.MethodDescriptor<io.grpc.reflection.testing.DynamicRequest, io.grpc.reflection.testing.DynamicReply> getMethodMethod() { + return getMethodMethodHelper(); + } + + private static io.grpc.MethodDescriptor<io.grpc.reflection.testing.DynamicRequest, + io.grpc.reflection.testing.DynamicReply> getMethodMethodHelper() { io.grpc.MethodDescriptor<io.grpc.reflection.testing.DynamicRequest, io.grpc.reflection.testing.DynamicReply> getMethodMethod; if ((getMethodMethod = AnotherDynamicServiceGrpc.getMethodMethod) == null) { synchronized (AnotherDynamicServiceGrpc.class) { @@ -100,13 +105,13 @@ public final class AnotherDynamicServiceGrpc { */ public void method(io.grpc.reflection.testing.DynamicRequest request, io.grpc.stub.StreamObserver<io.grpc.reflection.testing.DynamicReply> responseObserver) { - asyncUnimplementedUnaryCall(getMethodMethod(), responseObserver); + asyncUnimplementedUnaryCall(getMethodMethodHelper(), responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getMethodMethod(), + getMethodMethodHelper(), asyncUnaryCall( new MethodHandlers< io.grpc.reflection.testing.DynamicRequest, @@ -145,7 +150,7 @@ public final class AnotherDynamicServiceGrpc { public void method(io.grpc.reflection.testing.DynamicRequest request, io.grpc.stub.StreamObserver<io.grpc.reflection.testing.DynamicReply> responseObserver) { asyncUnaryCall( - getChannel().newCall(getMethodMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getMethodMethodHelper(), getCallOptions()), request, responseObserver); } } @@ -177,7 +182,7 @@ public final class AnotherDynamicServiceGrpc { */ public io.grpc.reflection.testing.DynamicReply method(io.grpc.reflection.testing.DynamicRequest request) { return blockingUnaryCall( - getChannel(), getMethodMethod(), getCallOptions(), request); + getChannel(), getMethodMethodHelper(), getCallOptions(), request); } } @@ -210,7 +215,7 @@ public final class AnotherDynamicServiceGrpc { public com.google.common.util.concurrent.ListenableFuture<io.grpc.reflection.testing.DynamicReply> method( io.grpc.reflection.testing.DynamicRequest request) { return futureUnaryCall( - getChannel().newCall(getMethodMethod(), getCallOptions()), request); + getChannel().newCall(getMethodMethodHelper(), getCallOptions()), request); } } @@ -298,7 +303,7 @@ public final class AnotherDynamicServiceGrpc { if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new AnotherDynamicServiceFileDescriptorSupplier()) - .addMethod(getMethodMethod()) + .addMethod(getMethodMethodHelper()) .build(); } } diff --git a/services/src/generated/test/grpc/io/grpc/reflection/testing/DynamicServiceGrpc.java b/services/src/generated/test/grpc/io/grpc/reflection/testing/DynamicServiceGrpc.java index d63ac4af2..b45abf607 100644 --- a/services/src/generated/test/grpc/io/grpc/reflection/testing/DynamicServiceGrpc.java +++ b/services/src/generated/test/grpc/io/grpc/reflection/testing/DynamicServiceGrpc.java @@ -33,7 +33,7 @@ public final class DynamicServiceGrpc { @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") @java.lang.Deprecated // Use {@link #getMethodMethod()} instead. public static final io.grpc.MethodDescriptor<io.grpc.reflection.testing.DynamicRequest, - io.grpc.reflection.testing.DynamicReply> METHOD_METHOD = getMethodMethod(); + io.grpc.reflection.testing.DynamicReply> METHOD_METHOD = getMethodMethodHelper(); private static volatile io.grpc.MethodDescriptor<io.grpc.reflection.testing.DynamicRequest, io.grpc.reflection.testing.DynamicReply> getMethodMethod; @@ -41,6 +41,11 @@ public final class DynamicServiceGrpc { @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") public static io.grpc.MethodDescriptor<io.grpc.reflection.testing.DynamicRequest, io.grpc.reflection.testing.DynamicReply> getMethodMethod() { + return getMethodMethodHelper(); + } + + private static io.grpc.MethodDescriptor<io.grpc.reflection.testing.DynamicRequest, + io.grpc.reflection.testing.DynamicReply> getMethodMethodHelper() { io.grpc.MethodDescriptor<io.grpc.reflection.testing.DynamicRequest, io.grpc.reflection.testing.DynamicReply> getMethodMethod; if ((getMethodMethod = DynamicServiceGrpc.getMethodMethod) == null) { synchronized (DynamicServiceGrpc.class) { @@ -100,13 +105,13 @@ public final class DynamicServiceGrpc { */ public void method(io.grpc.reflection.testing.DynamicRequest request, io.grpc.stub.StreamObserver<io.grpc.reflection.testing.DynamicReply> responseObserver) { - asyncUnimplementedUnaryCall(getMethodMethod(), responseObserver); + asyncUnimplementedUnaryCall(getMethodMethodHelper(), responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getMethodMethod(), + getMethodMethodHelper(), asyncUnaryCall( new MethodHandlers< io.grpc.reflection.testing.DynamicRequest, @@ -145,7 +150,7 @@ public final class DynamicServiceGrpc { public void method(io.grpc.reflection.testing.DynamicRequest request, io.grpc.stub.StreamObserver<io.grpc.reflection.testing.DynamicReply> responseObserver) { asyncUnaryCall( - getChannel().newCall(getMethodMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getMethodMethodHelper(), getCallOptions()), request, responseObserver); } } @@ -177,7 +182,7 @@ public final class DynamicServiceGrpc { */ public io.grpc.reflection.testing.DynamicReply method(io.grpc.reflection.testing.DynamicRequest request) { return blockingUnaryCall( - getChannel(), getMethodMethod(), getCallOptions(), request); + getChannel(), getMethodMethodHelper(), getCallOptions(), request); } } @@ -210,7 +215,7 @@ public final class DynamicServiceGrpc { public com.google.common.util.concurrent.ListenableFuture<io.grpc.reflection.testing.DynamicReply> method( io.grpc.reflection.testing.DynamicRequest request) { return futureUnaryCall( - getChannel().newCall(getMethodMethod(), getCallOptions()), request); + getChannel().newCall(getMethodMethodHelper(), getCallOptions()), request); } } @@ -298,7 +303,7 @@ public final class DynamicServiceGrpc { if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new DynamicServiceFileDescriptorSupplier()) - .addMethod(getMethodMethod()) + .addMethod(getMethodMethodHelper()) .build(); } } diff --git a/services/src/generated/test/grpc/io/grpc/reflection/testing/ReflectableServiceGrpc.java b/services/src/generated/test/grpc/io/grpc/reflection/testing/ReflectableServiceGrpc.java index 3650aa697..505164b44 100644 --- a/services/src/generated/test/grpc/io/grpc/reflection/testing/ReflectableServiceGrpc.java +++ b/services/src/generated/test/grpc/io/grpc/reflection/testing/ReflectableServiceGrpc.java @@ -30,7 +30,7 @@ public final class ReflectableServiceGrpc { @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") @java.lang.Deprecated // Use {@link #getMethodMethod()} instead. public static final io.grpc.MethodDescriptor<io.grpc.reflection.testing.Request, - io.grpc.reflection.testing.Reply> METHOD_METHOD = getMethodMethod(); + io.grpc.reflection.testing.Reply> METHOD_METHOD = getMethodMethodHelper(); private static volatile io.grpc.MethodDescriptor<io.grpc.reflection.testing.Request, io.grpc.reflection.testing.Reply> getMethodMethod; @@ -38,6 +38,11 @@ public final class ReflectableServiceGrpc { @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") public static io.grpc.MethodDescriptor<io.grpc.reflection.testing.Request, io.grpc.reflection.testing.Reply> getMethodMethod() { + return getMethodMethodHelper(); + } + + private static io.grpc.MethodDescriptor<io.grpc.reflection.testing.Request, + io.grpc.reflection.testing.Reply> getMethodMethodHelper() { io.grpc.MethodDescriptor<io.grpc.reflection.testing.Request, io.grpc.reflection.testing.Reply> getMethodMethod; if ((getMethodMethod = ReflectableServiceGrpc.getMethodMethod) == null) { synchronized (ReflectableServiceGrpc.class) { @@ -91,13 +96,13 @@ public final class ReflectableServiceGrpc { */ public void method(io.grpc.reflection.testing.Request request, io.grpc.stub.StreamObserver<io.grpc.reflection.testing.Reply> responseObserver) { - asyncUnimplementedUnaryCall(getMethodMethod(), responseObserver); + asyncUnimplementedUnaryCall(getMethodMethodHelper(), responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getMethodMethod(), + getMethodMethodHelper(), asyncUnaryCall( new MethodHandlers< io.grpc.reflection.testing.Request, @@ -130,7 +135,7 @@ public final class ReflectableServiceGrpc { public void method(io.grpc.reflection.testing.Request request, io.grpc.stub.StreamObserver<io.grpc.reflection.testing.Reply> responseObserver) { asyncUnaryCall( - getChannel().newCall(getMethodMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getMethodMethodHelper(), getCallOptions()), request, responseObserver); } } @@ -156,7 +161,7 @@ public final class ReflectableServiceGrpc { */ public io.grpc.reflection.testing.Reply method(io.grpc.reflection.testing.Request request) { return blockingUnaryCall( - getChannel(), getMethodMethod(), getCallOptions(), request); + getChannel(), getMethodMethodHelper(), getCallOptions(), request); } } @@ -183,7 +188,7 @@ public final class ReflectableServiceGrpc { public com.google.common.util.concurrent.ListenableFuture<io.grpc.reflection.testing.Reply> method( io.grpc.reflection.testing.Request request) { return futureUnaryCall( - getChannel().newCall(getMethodMethod(), getCallOptions()), request); + getChannel().newCall(getMethodMethodHelper(), getCallOptions()), request); } } @@ -271,7 +276,7 @@ public final class ReflectableServiceGrpc { if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new ReflectableServiceFileDescriptorSupplier()) - .addMethod(getMethodMethod()) + .addMethod(getMethodMethodHelper()) .build(); } } |