@java.lang.Override public io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( METHOD_SERVER_REFLECTION_INFO, asyncBidiStreamingCall( new MethodHandlers< io.grpc.reflection.v1alpha.ServerReflectionRequest, io.grpc.reflection.v1alpha.ServerReflectionResponse>( this, METHODID_SERVER_REFLECTION_INFO))) .build(); }
public static io.grpc.ServerServiceDefinition bindService(final TestService serviceImpl) { return io.grpc.ServerServiceDefinition.builder(SERVICE_NAME) .addMethod( METHOD_UNARY_CALL, asyncUnaryCall( new MethodHandlers<io.grpc.testing.SimpleRequest, io.grpc.testing.SimpleResponse>( serviceImpl, METHODID_UNARY_CALL))) .addMethod( METHOD_STREAMING_CALL, asyncBidiStreamingCall( new MethodHandlers<io.grpc.testing.SimpleRequest, io.grpc.testing.SimpleResponse>( serviceImpl, METHODID_STREAMING_CALL))) .build(); }
@java.lang.Override public io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( METHOD_DISPATCH, asyncUnaryCall( new MethodHandlers< coprocess.CoprocessObject.Object, coprocess.CoprocessObject.Object>( this, METHODID_DISPATCH))) .addMethod( METHOD_DISPATCH_EVENT, asyncUnaryCall( new MethodHandlers< coprocess.CoprocessObject.Event, coprocess.CoprocessObject.EventReply>( this, METHODID_DISPATCH_EVENT))) .build(); }
@java.lang.Override public io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( METHOD_GET_ALL_GAUGES, asyncServerStreamingCall( new MethodHandlers< io.grpc.testing.integration.Metrics.EmptyMessage, io.grpc.testing.integration.Metrics.GaugeResponse>( this, METHODID_GET_ALL_GAUGES))) .addMethod( METHOD_GET_GAUGE, asyncUnaryCall( new MethodHandlers< io.grpc.testing.integration.Metrics.GaugeRequest, io.grpc.testing.integration.Metrics.GaugeResponse>(this, METHODID_GET_GAUGE))) .build(); }
public static io.grpc.ServerServiceDefinition bindService(final BigtableTableAdmin serviceImpl) { return io.grpc.ServerServiceDefinition.builder(SERVICE_NAME) .addMethod( METHOD_CREATE_TABLE, asyncUnaryCall( new MethodHandlers< com.google.bigtable.admin.v2.CreateTableRequest, com.google.bigtable.admin.v2.Table>(serviceImpl, METHODID_CREATE_TABLE))) .addMethod( METHOD_LIST_TABLES, asyncUnaryCall( new MethodHandlers< com.google.bigtable.admin.v2.ListTablesRequest, com.google.bigtable.admin.v2.ListTablesResponse>( serviceImpl, METHODID_LIST_TABLES))) .addMethod( METHOD_GET_TABLE, asyncUnaryCall( new MethodHandlers< com.google.bigtable.admin.v2.GetTableRequest, com.google.bigtable.admin.v2.Table>(serviceImpl, METHODID_GET_TABLE))) .addMethod( METHOD_DELETE_TABLE, asyncUnaryCall( new MethodHandlers< com.google.bigtable.admin.v2.DeleteTableRequest, com.google.protobuf.Empty>( serviceImpl, METHODID_DELETE_TABLE))) .addMethod( METHOD_MODIFY_COLUMN_FAMILIES, asyncUnaryCall( new MethodHandlers< com.google.bigtable.admin.v2.ModifyColumnFamiliesRequest, com.google.bigtable.admin.v2.Table>( serviceImpl, METHODID_MODIFY_COLUMN_FAMILIES))) .addMethod( METHOD_DROP_ROW_RANGE, asyncUnaryCall( new MethodHandlers< com.google.bigtable.admin.v2.DropRowRangeRequest, com.google.protobuf.Empty>( serviceImpl, METHODID_DROP_ROW_RANGE))) .build(); }
public static io.grpc.ServerServiceDefinition bindService(final IRCService serviceImpl) { return io.grpc.ServerServiceDefinition.builder("if4031.IRCService") .addMethod( io.grpc.ServerMethodDefinition.create( METHOD_LOGIN, asyncUnaryCall( new io.grpc.stub.ServerCalls.UnaryMethod< if4031.common.LoginRequest, if4031.common.LoginResponse>() { @java.lang.Override public void invoke( if4031.common.LoginRequest request, io.grpc.stub.StreamObserver<if4031.common.LoginResponse> responseObserver) { serviceImpl.login(request, responseObserver); } }))) .addMethod( io.grpc.ServerMethodDefinition.create( METHOD_CHANGE_NICKNAME, asyncUnaryCall( new io.grpc.stub.ServerCalls.UnaryMethod< if4031.common.ChangeNickRequest, if4031.common.StatusResponse>() { @java.lang.Override public void invoke( if4031.common.ChangeNickRequest request, io.grpc.stub.StreamObserver<if4031.common.StatusResponse> responseObserver) { serviceImpl.changeNickname(request, responseObserver); } }))) .addMethod( io.grpc.ServerMethodDefinition.create( METHOD_LOGOUT, asyncUnaryCall( new io.grpc.stub.ServerCalls.UnaryMethod< if4031.common.ActionRequest, if4031.common.StatusResponse>() { @java.lang.Override public void invoke( if4031.common.ActionRequest request, io.grpc.stub.StreamObserver<if4031.common.StatusResponse> responseObserver) { serviceImpl.logout(request, responseObserver); } }))) .addMethod( io.grpc.ServerMethodDefinition.create( METHOD_JOIN_CHANNEL, asyncUnaryCall( new io.grpc.stub.ServerCalls.UnaryMethod< if4031.common.ChannelRequest, if4031.common.StatusResponse>() { @java.lang.Override public void invoke( if4031.common.ChannelRequest request, io.grpc.stub.StreamObserver<if4031.common.StatusResponse> responseObserver) { serviceImpl.joinChannel(request, responseObserver); } }))) .addMethod( io.grpc.ServerMethodDefinition.create( METHOD_GET_MESSAGE, asyncUnaryCall( new io.grpc.stub.ServerCalls.UnaryMethod< if4031.common.ActionRequest, if4031.common.MessagesResponse>() { @java.lang.Override public void invoke( if4031.common.ActionRequest request, io.grpc.stub.StreamObserver<if4031.common.MessagesResponse> responseObserver) { serviceImpl.getMessage(request, responseObserver); } }))) .addMethod( io.grpc.ServerMethodDefinition.create( METHOD_SEND_MESSAGE_TO_CHANNEL, asyncUnaryCall( new io.grpc.stub.ServerCalls.UnaryMethod< if4031.common.ChannelMessageRequest, if4031.common.MessagesResponse>() { @java.lang.Override public void invoke( if4031.common.ChannelMessageRequest request, io.grpc.stub.StreamObserver<if4031.common.MessagesResponse> responseObserver) { serviceImpl.sendMessageToChannel(request, responseObserver); } }))) .addMethod( io.grpc.ServerMethodDefinition.create( METHOD_SEND_MESSAGE, asyncUnaryCall( new io.grpc.stub.ServerCalls.UnaryMethod< if4031.common.MessageRequest, if4031.common.MessagesResponse>() { @java.lang.Override public void invoke( if4031.common.MessageRequest request, io.grpc.stub.StreamObserver<if4031.common.MessagesResponse> responseObserver) { serviceImpl.sendMessage(request, responseObserver); } }))) .addMethod( io.grpc.ServerMethodDefinition.create( METHOD_LEAVE_CHANNEL, asyncUnaryCall( new io.grpc.stub.ServerCalls.UnaryMethod< if4031.common.ChannelRequest, if4031.common.StatusResponse>() { @java.lang.Override public void invoke( if4031.common.ChannelRequest request, io.grpc.stub.StreamObserver<if4031.common.StatusResponse> responseObserver) { serviceImpl.leaveChannel(request, responseObserver); } }))) .build(); }