private static io.grpc.MethodDescriptor<com.example.grpc.HelloRequest, com.example.grpc.HelloResponse> getSecondGreetingMethodHelper() { io.grpc.MethodDescriptor<com.example.grpc.HelloRequest, com.example.grpc.HelloResponse> getSecondGreetingMethod; if ((getSecondGreetingMethod = GreetingServiceGrpc.getSecondGreetingMethod) == null) { synchronized (GreetingServiceGrpc.class) { if ((getSecondGreetingMethod = GreetingServiceGrpc.getSecondGreetingMethod) == null) { GreetingServiceGrpc.getSecondGreetingMethod = getSecondGreetingMethod = io.grpc.MethodDescriptor.<com.example.grpc.HelloRequest, com.example.grpc.HelloResponse>newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "com.example.grpc.GreetingService", "secondGreeting")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.example.grpc.HelloRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.example.grpc.HelloResponse.getDefaultInstance())) .setSchemaDescriptor(new GreetingServiceMethodDescriptorSupplier("secondGreeting")) .build(); } } } return getSecondGreetingMethod; }
@java.lang.Override public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { return getServiceDescriptor().findMethodByName(methodName); } }
private static io.grpc.MethodDescriptor<com.example.grpc.HelloRequest, com.example.grpc.HelloResponse> getGreetingMethodHelper() { io.grpc.MethodDescriptor<com.example.grpc.HelloRequest, com.example.grpc.HelloResponse> getGreetingMethod; if ((getGreetingMethod = GreetingServiceGrpc.getGreetingMethod) == null) { synchronized (GreetingServiceGrpc.class) { if ((getGreetingMethod = GreetingServiceGrpc.getGreetingMethod) == null) { GreetingServiceGrpc.getGreetingMethod = getGreetingMethod = io.grpc.MethodDescriptor.<com.example.grpc.HelloRequest, com.example.grpc.HelloResponse>newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "com.example.grpc.GreetingService", "greeting")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.example.grpc.HelloRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.example.grpc.HelloResponse.getDefaultInstance())) .setSchemaDescriptor(new GreetingServiceMethodDescriptorSupplier("greeting")) .build(); } } } return getGreetingMethod; }
private static io.grpc.MethodDescriptor<com.example.grpc.HelloRequest, com.example.grpc.HelloResponse> getSecondGreetingMethodHelper() { io.grpc.MethodDescriptor<com.example.grpc.HelloRequest, com.example.grpc.HelloResponse> getSecondGreetingMethod; if ((getSecondGreetingMethod = GreetingServiceGrpc.getSecondGreetingMethod) == null) { synchronized (GreetingServiceGrpc.class) { if ((getSecondGreetingMethod = GreetingServiceGrpc.getSecondGreetingMethod) == null) { GreetingServiceGrpc.getSecondGreetingMethod = getSecondGreetingMethod = io.grpc.MethodDescriptor.<com.example.grpc.HelloRequest, com.example.grpc.HelloResponse>newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "com.example.grpc.GreetingService", "secondGreeting")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.example.grpc.HelloRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.example.grpc.HelloResponse.getDefaultInstance())) .setSchemaDescriptor(new GreetingServiceMethodDescriptorSupplier("secondGreeting")) .build(); } } } return getSecondGreetingMethod; }
private static io.grpc.MethodDescriptor<com.example.grpc.HelloRequest, com.example.grpc.HelloResponse> getGreetingMethodHelper() { io.grpc.MethodDescriptor<com.example.grpc.HelloRequest, com.example.grpc.HelloResponse> getGreetingMethod; if ((getGreetingMethod = GreetingServiceGrpc.getGreetingMethod) == null) { synchronized (GreetingServiceGrpc.class) { if ((getGreetingMethod = GreetingServiceGrpc.getGreetingMethod) == null) { GreetingServiceGrpc.getGreetingMethod = getGreetingMethod = io.grpc.MethodDescriptor.<com.example.grpc.HelloRequest, com.example.grpc.HelloResponse>newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "com.example.grpc.GreetingService", "greeting")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.example.grpc.HelloRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.example.grpc.HelloResponse.getDefaultInstance())) .setSchemaDescriptor(new GreetingServiceMethodDescriptorSupplier("greeting")) .build(); } } } return getGreetingMethod; } @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
private static io.grpc.MethodDescriptor<com.example.grpc.HelloRequest, com.example.grpc.HelloResponse> getGreetingMethodHelper() { io.grpc.MethodDescriptor<com.example.grpc.HelloRequest, com.example.grpc.HelloResponse> getGreetingMethod; if ((getGreetingMethod = GreetingServiceGrpc.getGreetingMethod) == null) { synchronized (GreetingServiceGrpc.class) { if ((getGreetingMethod = GreetingServiceGrpc.getGreetingMethod) == null) { GreetingServiceGrpc.getGreetingMethod = getGreetingMethod = io.grpc.MethodDescriptor.<com.example.grpc.HelloRequest, com.example.grpc.HelloResponse>newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "com.example.grpc.GreetingService", "greeting")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.example.grpc.HelloRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.example.grpc.HelloResponse.getDefaultInstance())) .setSchemaDescriptor(new GreetingServiceMethodDescriptorSupplier("greeting")) .build(); } } } return getGreetingMethod; } @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
@java.lang.Override public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { return getServiceDescriptor().findMethodByName(methodName); } }
@java.lang.Override public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { return getServiceDescriptor().findMethodByName(methodName); } }