package com.ywt.gapi.taihe.register; import static io.grpc.stub.ClientCalls.asyncUnaryCall; import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; import static io.grpc.stub.ClientCalls.blockingUnaryCall; import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; import static io.grpc.stub.ClientCalls.futureUnaryCall; import static io.grpc.MethodDescriptor.generateFullMethodName; import static io.grpc.stub.ServerCalls.asyncUnaryCall; import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; /** *
 *太和医院预约挂号业务类 // 对应 taihe-rpc 项目 TaiheRegisterService 类
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler (version 1.7.0)", comments = "Source: taihe_register.proto") public final class TaiheRegisterServiceGrpc { private TaiheRegisterServiceGrpc() {} public static final String SERVICE_NAME = "com.ywt.gapi.taihe.register.TaiheRegisterService"; // Static method descriptors that strictly reflect the proto. @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") public static final io.grpc.MethodDescriptor METHOD_CREATE_REGISTERED = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "com.ywt.gapi.taihe.register.TaiheRegisterService", "createRegistered")) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.ywt.gapi.taihe.register.CreateRegisteredRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.ywt.gapi.taihe.register.CreateRegisteredResponse.getDefaultInstance())) .setSchemaDescriptor(new TaiheRegisterServiceMethodDescriptorSupplier("createRegistered")) .build(); @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") public static final io.grpc.MethodDescriptor METHOD_CANCEL_REGISTERED = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "com.ywt.gapi.taihe.register.TaiheRegisterService", "cancelRegistered")) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.ywt.gapi.taihe.register.CancelRegisteredRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.ywt.gapi.taihe.register.CancelRegisteredResponse.getDefaultInstance())) .setSchemaDescriptor(new TaiheRegisterServiceMethodDescriptorSupplier("cancelRegistered")) .build(); @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") public static final io.grpc.MethodDescriptor METHOD_PAY_CALLBACK = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "com.ywt.gapi.taihe.register.TaiheRegisterService", "payCallback")) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.ywt.gapi.taihe.register.PayCallbackRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.ywt.gapi.taihe.register.PayCallbackResponse.getDefaultInstance())) .setSchemaDescriptor(new TaiheRegisterServiceMethodDescriptorSupplier("payCallback")) .build(); @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") public static final io.grpc.MethodDescriptor METHOD_REFUND_CALLBACK = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "com.ywt.gapi.taihe.register.TaiheRegisterService", "refundCallback")) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.ywt.gapi.taihe.register.RefundCallbackRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.ywt.gapi.taihe.register.RefundCallbackResponse.getDefaultInstance())) .setSchemaDescriptor(new TaiheRegisterServiceMethodDescriptorSupplier("refundCallback")) .build(); @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") public static final io.grpc.MethodDescriptor METHOD_REGISTER = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "com.ywt.gapi.taihe.register.TaiheRegisterService", "register")) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.ywt.gapi.taihe.register.RegisterRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.ywt.gapi.taihe.register.RegisterResponse.getDefaultInstance())) .setSchemaDescriptor(new TaiheRegisterServiceMethodDescriptorSupplier("register")) .build(); @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") public static final io.grpc.MethodDescriptor METHOD_TAKE = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "com.ywt.gapi.taihe.register.TaiheRegisterService", "take")) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.ywt.gapi.taihe.register.TakeRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.ywt.gapi.taihe.register.TakeResponse.getDefaultInstance())) .setSchemaDescriptor(new TaiheRegisterServiceMethodDescriptorSupplier("take")) .build(); @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") public static final io.grpc.MethodDescriptor METHOD_GET_QUEUE_LIST = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "com.ywt.gapi.taihe.register.TaiheRegisterService", "getQueueList")) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.ywt.gapi.taihe.register.GetQueueListRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.ywt.gapi.taihe.register.GetQueueListResponse.getDefaultInstance())) .setSchemaDescriptor(new TaiheRegisterServiceMethodDescriptorSupplier("getQueueList")) .build(); @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") public static final io.grpc.MethodDescriptor METHOD_GET_COMMON_ORDER_LIST = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "com.ywt.gapi.taihe.register.TaiheRegisterService", "getCommonOrderList")) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.ywt.gapi.taihe.register.GetCommonOrderListRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.ywt.gapi.taihe.register.GetCommonOrderListResponse.getDefaultInstance())) .setSchemaDescriptor(new TaiheRegisterServiceMethodDescriptorSupplier("getCommonOrderList")) .build(); @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") public static final io.grpc.MethodDescriptor METHOD_GET_REGISTERED_LIST = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "com.ywt.gapi.taihe.register.TaiheRegisterService", "getRegisteredList")) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.ywt.gapi.taihe.register.GetRegisteredListRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.ywt.gapi.taihe.register.GetRegisteredListResponse.getDefaultInstance())) .setSchemaDescriptor(new TaiheRegisterServiceMethodDescriptorSupplier("getRegisteredList")) .build(); @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") public static final io.grpc.MethodDescriptor METHOD_REGISTER_WITHOUT_MEDICAL_CARD = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "com.ywt.gapi.taihe.register.TaiheRegisterService", "registerWithoutMedicalCard")) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardResponse.getDefaultInstance())) .setSchemaDescriptor(new TaiheRegisterServiceMethodDescriptorSupplier("registerWithoutMedicalCard")) .build(); @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") public static final io.grpc.MethodDescriptor METHOD_GET_OFFLINE_CONSULT_INFO_BY_DOCTOR_ID = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "com.ywt.gapi.taihe.register.TaiheRegisterService", "getOfflineConsultInfoByDoctorId")) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdResponse.getDefaultInstance())) .setSchemaDescriptor(new TaiheRegisterServiceMethodDescriptorSupplier("getOfflineConsultInfoByDoctorId")) .build(); @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") public static final io.grpc.MethodDescriptor METHOD_GET_LATEST_REG_ORDER = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "com.ywt.gapi.taihe.register.TaiheRegisterService", "getLatestRegOrder")) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.ywt.gapi.taihe.register.GetLatestRegOrderRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.ywt.gapi.taihe.register.GetLatestRegOrderResponse.getDefaultInstance())) .setSchemaDescriptor(new TaiheRegisterServiceMethodDescriptorSupplier("getLatestRegOrder")) .build(); @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") public static final io.grpc.MethodDescriptor METHOD_CAL_ADDITIONAL_FEE = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "com.ywt.gapi.taihe.register.TaiheRegisterService", "calAdditionalFee")) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.ywt.gapi.taihe.register.CalAdditionalFeeRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.ywt.gapi.taihe.register.CalAdditionalFeeResponse.getDefaultInstance())) .setSchemaDescriptor(new TaiheRegisterServiceMethodDescriptorSupplier("calAdditionalFee")) .build(); @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") public static final io.grpc.MethodDescriptor METHOD_GET_HIS_PATIENT_ID_BY_USER_ID_AND_MOBILE = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "com.ywt.gapi.taihe.register.TaiheRegisterService", "getHisPatientIdByUserIdAndMobile")) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileResponse.getDefaultInstance())) .setSchemaDescriptor(new TaiheRegisterServiceMethodDescriptorSupplier("getHisPatientIdByUserIdAndMobile")) .build(); @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") public static final io.grpc.MethodDescriptor METHOD_CREATE_MEDICAL_CARD = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "com.ywt.gapi.taihe.register.TaiheRegisterService", "createMedicalCard")) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.ywt.gapi.taihe.register.CreateMedicalCardRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.ywt.gapi.taihe.register.CreateMedicalCardResponse.getDefaultInstance())) .setSchemaDescriptor(new TaiheRegisterServiceMethodDescriptorSupplier("createMedicalCard")) .build(); @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") public static final io.grpc.MethodDescriptor METHOD_REGISTER_CHECK_IN_MESSAGE = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "com.ywt.gapi.taihe.register.TaiheRegisterService", "registerCheckInMessage")) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.ywt.gapi.taihe.register.RegisterCheckInMessageRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.ywt.gapi.taihe.register.RegisterCheckInMessageResponse.getDefaultInstance())) .setSchemaDescriptor(new TaiheRegisterServiceMethodDescriptorSupplier("registerCheckInMessage")) .build(); /** * Creates a new async stub that supports all call types for the service */ public static TaiheRegisterServiceStub newStub(io.grpc.Channel channel) { return new TaiheRegisterServiceStub(channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static TaiheRegisterServiceBlockingStub newBlockingStub( io.grpc.Channel channel) { return new TaiheRegisterServiceBlockingStub(channel); } /** * Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static TaiheRegisterServiceFutureStub newFutureStub( io.grpc.Channel channel) { return new TaiheRegisterServiceFutureStub(channel); } /** *
   *太和医院预约挂号业务类 // 对应 taihe-rpc 项目 TaiheRegisterService 类
   * 
*/ public static abstract class TaiheRegisterServiceImplBase implements io.grpc.BindableService { /** *
     *预约挂号
     * 
*/ public void createRegistered(com.ywt.gapi.taihe.register.CreateRegisteredRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(METHOD_CREATE_REGISTERED, responseObserver); } /** *
     *取消预约
     * 
*/ public void cancelRegistered(com.ywt.gapi.taihe.register.CancelRegisteredRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(METHOD_CANCEL_REGISTERED, responseObserver); } /** *
     *订单支付成功通知
     * 
*/ public void payCallback(com.ywt.gapi.taihe.register.PayCallbackRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(METHOD_PAY_CALLBACK, responseObserver); } /** *
     *退款回调
     * 
*/ public void refundCallback(com.ywt.gapi.taihe.register.RefundCallbackRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(METHOD_REFUND_CALLBACK, responseObserver); } /** *
     *挂号(挂号信息已先保存至数据表中)
     * 
*/ public void register(com.ywt.gapi.taihe.register.RegisterRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(METHOD_REGISTER, responseObserver); } /** *
     *取号
     * 
*/ public void take(com.ywt.gapi.taihe.register.TakeRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(METHOD_TAKE, responseObserver); } /** *
     *获取候诊订单列表
     * 
*/ public void getQueueList(com.ywt.gapi.taihe.register.GetQueueListRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(METHOD_GET_QUEUE_LIST, responseObserver); } /** *
     *获取太和门诊记录
     * 
*/ public void getCommonOrderList(com.ywt.gapi.taihe.register.GetCommonOrderListRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(METHOD_GET_COMMON_ORDER_LIST, responseObserver); } /** *
     *获取挂号订单列表
     * 
*/ public void getRegisteredList(com.ywt.gapi.taihe.register.GetRegisteredListRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(METHOD_GET_REGISTERED_LIST, responseObserver); } /** *
     *无诊疗卡挂号
     * 
*/ public void registerWithoutMedicalCard(com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(METHOD_REGISTER_WITHOUT_MEDICAL_CARD, responseObserver); } /** *
     * 根据医生 id 获取下线问诊相关信息
     * 
*/ public void getOfflineConsultInfoByDoctorId(com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(METHOD_GET_OFFLINE_CONSULT_INFO_BY_DOCTOR_ID, responseObserver); } /** *
     * 获取最近一次挂号订单
     * 
*/ public void getLatestRegOrder(com.ywt.gapi.taihe.register.GetLatestRegOrderRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(METHOD_GET_LATEST_REG_ORDER, responseObserver); } /** *
     * 计算加收费用
     * 
*/ public void calAdditionalFee(com.ywt.gapi.taihe.register.CalAdditionalFeeRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(METHOD_CAL_ADDITIONAL_FEE, responseObserver); } /** *
     * 根据 userId & mobile 获取 hisPatientId
     * 
*/ public void getHisPatientIdByUserIdAndMobile(com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(METHOD_GET_HIS_PATIENT_ID_BY_USER_ID_AND_MOBILE, responseObserver); } /** *
     * HIS 建档并在系统创建诊疗卡
     * 
*/ public void createMedicalCard(com.ywt.gapi.taihe.register.CreateMedicalCardRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(METHOD_CREATE_MEDICAL_CARD, responseObserver); } /** *
     * 扫码报道发送信息
     * 
*/ public void registerCheckInMessage(com.ywt.gapi.taihe.register.RegisterCheckInMessageRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(METHOD_REGISTER_CHECK_IN_MESSAGE, responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( METHOD_CREATE_REGISTERED, asyncUnaryCall( new MethodHandlers< com.ywt.gapi.taihe.register.CreateRegisteredRequest, com.ywt.gapi.taihe.register.CreateRegisteredResponse>( this, METHODID_CREATE_REGISTERED))) .addMethod( METHOD_CANCEL_REGISTERED, asyncUnaryCall( new MethodHandlers< com.ywt.gapi.taihe.register.CancelRegisteredRequest, com.ywt.gapi.taihe.register.CancelRegisteredResponse>( this, METHODID_CANCEL_REGISTERED))) .addMethod( METHOD_PAY_CALLBACK, asyncUnaryCall( new MethodHandlers< com.ywt.gapi.taihe.register.PayCallbackRequest, com.ywt.gapi.taihe.register.PayCallbackResponse>( this, METHODID_PAY_CALLBACK))) .addMethod( METHOD_REFUND_CALLBACK, asyncUnaryCall( new MethodHandlers< com.ywt.gapi.taihe.register.RefundCallbackRequest, com.ywt.gapi.taihe.register.RefundCallbackResponse>( this, METHODID_REFUND_CALLBACK))) .addMethod( METHOD_REGISTER, asyncUnaryCall( new MethodHandlers< com.ywt.gapi.taihe.register.RegisterRequest, com.ywt.gapi.taihe.register.RegisterResponse>( this, METHODID_REGISTER))) .addMethod( METHOD_TAKE, asyncUnaryCall( new MethodHandlers< com.ywt.gapi.taihe.register.TakeRequest, com.ywt.gapi.taihe.register.TakeResponse>( this, METHODID_TAKE))) .addMethod( METHOD_GET_QUEUE_LIST, asyncUnaryCall( new MethodHandlers< com.ywt.gapi.taihe.register.GetQueueListRequest, com.ywt.gapi.taihe.register.GetQueueListResponse>( this, METHODID_GET_QUEUE_LIST))) .addMethod( METHOD_GET_COMMON_ORDER_LIST, asyncUnaryCall( new MethodHandlers< com.ywt.gapi.taihe.register.GetCommonOrderListRequest, com.ywt.gapi.taihe.register.GetCommonOrderListResponse>( this, METHODID_GET_COMMON_ORDER_LIST))) .addMethod( METHOD_GET_REGISTERED_LIST, asyncUnaryCall( new MethodHandlers< com.ywt.gapi.taihe.register.GetRegisteredListRequest, com.ywt.gapi.taihe.register.GetRegisteredListResponse>( this, METHODID_GET_REGISTERED_LIST))) .addMethod( METHOD_REGISTER_WITHOUT_MEDICAL_CARD, asyncUnaryCall( new MethodHandlers< com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardRequest, com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardResponse>( this, METHODID_REGISTER_WITHOUT_MEDICAL_CARD))) .addMethod( METHOD_GET_OFFLINE_CONSULT_INFO_BY_DOCTOR_ID, asyncUnaryCall( new MethodHandlers< com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdRequest, com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdResponse>( this, METHODID_GET_OFFLINE_CONSULT_INFO_BY_DOCTOR_ID))) .addMethod( METHOD_GET_LATEST_REG_ORDER, asyncUnaryCall( new MethodHandlers< com.ywt.gapi.taihe.register.GetLatestRegOrderRequest, com.ywt.gapi.taihe.register.GetLatestRegOrderResponse>( this, METHODID_GET_LATEST_REG_ORDER))) .addMethod( METHOD_CAL_ADDITIONAL_FEE, asyncUnaryCall( new MethodHandlers< com.ywt.gapi.taihe.register.CalAdditionalFeeRequest, com.ywt.gapi.taihe.register.CalAdditionalFeeResponse>( this, METHODID_CAL_ADDITIONAL_FEE))) .addMethod( METHOD_GET_HIS_PATIENT_ID_BY_USER_ID_AND_MOBILE, asyncUnaryCall( new MethodHandlers< com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileRequest, com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileResponse>( this, METHODID_GET_HIS_PATIENT_ID_BY_USER_ID_AND_MOBILE))) .addMethod( METHOD_CREATE_MEDICAL_CARD, asyncUnaryCall( new MethodHandlers< com.ywt.gapi.taihe.register.CreateMedicalCardRequest, com.ywt.gapi.taihe.register.CreateMedicalCardResponse>( this, METHODID_CREATE_MEDICAL_CARD))) .addMethod( METHOD_REGISTER_CHECK_IN_MESSAGE, asyncUnaryCall( new MethodHandlers< com.ywt.gapi.taihe.register.RegisterCheckInMessageRequest, com.ywt.gapi.taihe.register.RegisterCheckInMessageResponse>( this, METHODID_REGISTER_CHECK_IN_MESSAGE))) .build(); } } /** *
   *太和医院预约挂号业务类 // 对应 taihe-rpc 项目 TaiheRegisterService 类
   * 
*/ public static final class TaiheRegisterServiceStub extends io.grpc.stub.AbstractStub { private TaiheRegisterServiceStub(io.grpc.Channel channel) { super(channel); } private TaiheRegisterServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected TaiheRegisterServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new TaiheRegisterServiceStub(channel, callOptions); } /** *
     *预约挂号
     * 
*/ public void createRegistered(com.ywt.gapi.taihe.register.CreateRegisteredRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(METHOD_CREATE_REGISTERED, getCallOptions()), request, responseObserver); } /** *
     *取消预约
     * 
*/ public void cancelRegistered(com.ywt.gapi.taihe.register.CancelRegisteredRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(METHOD_CANCEL_REGISTERED, getCallOptions()), request, responseObserver); } /** *
     *订单支付成功通知
     * 
*/ public void payCallback(com.ywt.gapi.taihe.register.PayCallbackRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(METHOD_PAY_CALLBACK, getCallOptions()), request, responseObserver); } /** *
     *退款回调
     * 
*/ public void refundCallback(com.ywt.gapi.taihe.register.RefundCallbackRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(METHOD_REFUND_CALLBACK, getCallOptions()), request, responseObserver); } /** *
     *挂号(挂号信息已先保存至数据表中)
     * 
*/ public void register(com.ywt.gapi.taihe.register.RegisterRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(METHOD_REGISTER, getCallOptions()), request, responseObserver); } /** *
     *取号
     * 
*/ public void take(com.ywt.gapi.taihe.register.TakeRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(METHOD_TAKE, getCallOptions()), request, responseObserver); } /** *
     *获取候诊订单列表
     * 
*/ public void getQueueList(com.ywt.gapi.taihe.register.GetQueueListRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(METHOD_GET_QUEUE_LIST, getCallOptions()), request, responseObserver); } /** *
     *获取太和门诊记录
     * 
*/ public void getCommonOrderList(com.ywt.gapi.taihe.register.GetCommonOrderListRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(METHOD_GET_COMMON_ORDER_LIST, getCallOptions()), request, responseObserver); } /** *
     *获取挂号订单列表
     * 
*/ public void getRegisteredList(com.ywt.gapi.taihe.register.GetRegisteredListRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(METHOD_GET_REGISTERED_LIST, getCallOptions()), request, responseObserver); } /** *
     *无诊疗卡挂号
     * 
*/ public void registerWithoutMedicalCard(com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(METHOD_REGISTER_WITHOUT_MEDICAL_CARD, getCallOptions()), request, responseObserver); } /** *
     * 根据医生 id 获取下线问诊相关信息
     * 
*/ public void getOfflineConsultInfoByDoctorId(com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(METHOD_GET_OFFLINE_CONSULT_INFO_BY_DOCTOR_ID, getCallOptions()), request, responseObserver); } /** *
     * 获取最近一次挂号订单
     * 
*/ public void getLatestRegOrder(com.ywt.gapi.taihe.register.GetLatestRegOrderRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(METHOD_GET_LATEST_REG_ORDER, getCallOptions()), request, responseObserver); } /** *
     * 计算加收费用
     * 
*/ public void calAdditionalFee(com.ywt.gapi.taihe.register.CalAdditionalFeeRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(METHOD_CAL_ADDITIONAL_FEE, getCallOptions()), request, responseObserver); } /** *
     * 根据 userId & mobile 获取 hisPatientId
     * 
*/ public void getHisPatientIdByUserIdAndMobile(com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(METHOD_GET_HIS_PATIENT_ID_BY_USER_ID_AND_MOBILE, getCallOptions()), request, responseObserver); } /** *
     * HIS 建档并在系统创建诊疗卡
     * 
*/ public void createMedicalCard(com.ywt.gapi.taihe.register.CreateMedicalCardRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(METHOD_CREATE_MEDICAL_CARD, getCallOptions()), request, responseObserver); } /** *
     * 扫码报道发送信息
     * 
*/ public void registerCheckInMessage(com.ywt.gapi.taihe.register.RegisterCheckInMessageRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(METHOD_REGISTER_CHECK_IN_MESSAGE, getCallOptions()), request, responseObserver); } } /** *
   *太和医院预约挂号业务类 // 对应 taihe-rpc 项目 TaiheRegisterService 类
   * 
*/ public static final class TaiheRegisterServiceBlockingStub extends io.grpc.stub.AbstractStub { private TaiheRegisterServiceBlockingStub(io.grpc.Channel channel) { super(channel); } private TaiheRegisterServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected TaiheRegisterServiceBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new TaiheRegisterServiceBlockingStub(channel, callOptions); } /** *
     *预约挂号
     * 
*/ public com.ywt.gapi.taihe.register.CreateRegisteredResponse createRegistered(com.ywt.gapi.taihe.register.CreateRegisteredRequest request) { return blockingUnaryCall( getChannel(), METHOD_CREATE_REGISTERED, getCallOptions(), request); } /** *
     *取消预约
     * 
*/ public com.ywt.gapi.taihe.register.CancelRegisteredResponse cancelRegistered(com.ywt.gapi.taihe.register.CancelRegisteredRequest request) { return blockingUnaryCall( getChannel(), METHOD_CANCEL_REGISTERED, getCallOptions(), request); } /** *
     *订单支付成功通知
     * 
*/ public com.ywt.gapi.taihe.register.PayCallbackResponse payCallback(com.ywt.gapi.taihe.register.PayCallbackRequest request) { return blockingUnaryCall( getChannel(), METHOD_PAY_CALLBACK, getCallOptions(), request); } /** *
     *退款回调
     * 
*/ public com.ywt.gapi.taihe.register.RefundCallbackResponse refundCallback(com.ywt.gapi.taihe.register.RefundCallbackRequest request) { return blockingUnaryCall( getChannel(), METHOD_REFUND_CALLBACK, getCallOptions(), request); } /** *
     *挂号(挂号信息已先保存至数据表中)
     * 
*/ public com.ywt.gapi.taihe.register.RegisterResponse register(com.ywt.gapi.taihe.register.RegisterRequest request) { return blockingUnaryCall( getChannel(), METHOD_REGISTER, getCallOptions(), request); } /** *
     *取号
     * 
*/ public com.ywt.gapi.taihe.register.TakeResponse take(com.ywt.gapi.taihe.register.TakeRequest request) { return blockingUnaryCall( getChannel(), METHOD_TAKE, getCallOptions(), request); } /** *
     *获取候诊订单列表
     * 
*/ public com.ywt.gapi.taihe.register.GetQueueListResponse getQueueList(com.ywt.gapi.taihe.register.GetQueueListRequest request) { return blockingUnaryCall( getChannel(), METHOD_GET_QUEUE_LIST, getCallOptions(), request); } /** *
     *获取太和门诊记录
     * 
*/ public com.ywt.gapi.taihe.register.GetCommonOrderListResponse getCommonOrderList(com.ywt.gapi.taihe.register.GetCommonOrderListRequest request) { return blockingUnaryCall( getChannel(), METHOD_GET_COMMON_ORDER_LIST, getCallOptions(), request); } /** *
     *获取挂号订单列表
     * 
*/ public com.ywt.gapi.taihe.register.GetRegisteredListResponse getRegisteredList(com.ywt.gapi.taihe.register.GetRegisteredListRequest request) { return blockingUnaryCall( getChannel(), METHOD_GET_REGISTERED_LIST, getCallOptions(), request); } /** *
     *无诊疗卡挂号
     * 
*/ public com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardResponse registerWithoutMedicalCard(com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardRequest request) { return blockingUnaryCall( getChannel(), METHOD_REGISTER_WITHOUT_MEDICAL_CARD, getCallOptions(), request); } /** *
     * 根据医生 id 获取下线问诊相关信息
     * 
*/ public com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdResponse getOfflineConsultInfoByDoctorId(com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdRequest request) { return blockingUnaryCall( getChannel(), METHOD_GET_OFFLINE_CONSULT_INFO_BY_DOCTOR_ID, getCallOptions(), request); } /** *
     * 获取最近一次挂号订单
     * 
*/ public com.ywt.gapi.taihe.register.GetLatestRegOrderResponse getLatestRegOrder(com.ywt.gapi.taihe.register.GetLatestRegOrderRequest request) { return blockingUnaryCall( getChannel(), METHOD_GET_LATEST_REG_ORDER, getCallOptions(), request); } /** *
     * 计算加收费用
     * 
*/ public com.ywt.gapi.taihe.register.CalAdditionalFeeResponse calAdditionalFee(com.ywt.gapi.taihe.register.CalAdditionalFeeRequest request) { return blockingUnaryCall( getChannel(), METHOD_CAL_ADDITIONAL_FEE, getCallOptions(), request); } /** *
     * 根据 userId & mobile 获取 hisPatientId
     * 
*/ public com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileResponse getHisPatientIdByUserIdAndMobile(com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileRequest request) { return blockingUnaryCall( getChannel(), METHOD_GET_HIS_PATIENT_ID_BY_USER_ID_AND_MOBILE, getCallOptions(), request); } /** *
     * HIS 建档并在系统创建诊疗卡
     * 
*/ public com.ywt.gapi.taihe.register.CreateMedicalCardResponse createMedicalCard(com.ywt.gapi.taihe.register.CreateMedicalCardRequest request) { return blockingUnaryCall( getChannel(), METHOD_CREATE_MEDICAL_CARD, getCallOptions(), request); } /** *
     * 扫码报道发送信息
     * 
*/ public com.ywt.gapi.taihe.register.RegisterCheckInMessageResponse registerCheckInMessage(com.ywt.gapi.taihe.register.RegisterCheckInMessageRequest request) { return blockingUnaryCall( getChannel(), METHOD_REGISTER_CHECK_IN_MESSAGE, getCallOptions(), request); } } /** *
   *太和医院预约挂号业务类 // 对应 taihe-rpc 项目 TaiheRegisterService 类
   * 
*/ public static final class TaiheRegisterServiceFutureStub extends io.grpc.stub.AbstractStub { private TaiheRegisterServiceFutureStub(io.grpc.Channel channel) { super(channel); } private TaiheRegisterServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected TaiheRegisterServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new TaiheRegisterServiceFutureStub(channel, callOptions); } /** *
     *预约挂号
     * 
*/ public com.google.common.util.concurrent.ListenableFuture createRegistered( com.ywt.gapi.taihe.register.CreateRegisteredRequest request) { return futureUnaryCall( getChannel().newCall(METHOD_CREATE_REGISTERED, getCallOptions()), request); } /** *
     *取消预约
     * 
*/ public com.google.common.util.concurrent.ListenableFuture cancelRegistered( com.ywt.gapi.taihe.register.CancelRegisteredRequest request) { return futureUnaryCall( getChannel().newCall(METHOD_CANCEL_REGISTERED, getCallOptions()), request); } /** *
     *订单支付成功通知
     * 
*/ public com.google.common.util.concurrent.ListenableFuture payCallback( com.ywt.gapi.taihe.register.PayCallbackRequest request) { return futureUnaryCall( getChannel().newCall(METHOD_PAY_CALLBACK, getCallOptions()), request); } /** *
     *退款回调
     * 
*/ public com.google.common.util.concurrent.ListenableFuture refundCallback( com.ywt.gapi.taihe.register.RefundCallbackRequest request) { return futureUnaryCall( getChannel().newCall(METHOD_REFUND_CALLBACK, getCallOptions()), request); } /** *
     *挂号(挂号信息已先保存至数据表中)
     * 
*/ public com.google.common.util.concurrent.ListenableFuture register( com.ywt.gapi.taihe.register.RegisterRequest request) { return futureUnaryCall( getChannel().newCall(METHOD_REGISTER, getCallOptions()), request); } /** *
     *取号
     * 
*/ public com.google.common.util.concurrent.ListenableFuture take( com.ywt.gapi.taihe.register.TakeRequest request) { return futureUnaryCall( getChannel().newCall(METHOD_TAKE, getCallOptions()), request); } /** *
     *获取候诊订单列表
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getQueueList( com.ywt.gapi.taihe.register.GetQueueListRequest request) { return futureUnaryCall( getChannel().newCall(METHOD_GET_QUEUE_LIST, getCallOptions()), request); } /** *
     *获取太和门诊记录
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getCommonOrderList( com.ywt.gapi.taihe.register.GetCommonOrderListRequest request) { return futureUnaryCall( getChannel().newCall(METHOD_GET_COMMON_ORDER_LIST, getCallOptions()), request); } /** *
     *获取挂号订单列表
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getRegisteredList( com.ywt.gapi.taihe.register.GetRegisteredListRequest request) { return futureUnaryCall( getChannel().newCall(METHOD_GET_REGISTERED_LIST, getCallOptions()), request); } /** *
     *无诊疗卡挂号
     * 
*/ public com.google.common.util.concurrent.ListenableFuture registerWithoutMedicalCard( com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardRequest request) { return futureUnaryCall( getChannel().newCall(METHOD_REGISTER_WITHOUT_MEDICAL_CARD, getCallOptions()), request); } /** *
     * 根据医生 id 获取下线问诊相关信息
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getOfflineConsultInfoByDoctorId( com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdRequest request) { return futureUnaryCall( getChannel().newCall(METHOD_GET_OFFLINE_CONSULT_INFO_BY_DOCTOR_ID, getCallOptions()), request); } /** *
     * 获取最近一次挂号订单
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getLatestRegOrder( com.ywt.gapi.taihe.register.GetLatestRegOrderRequest request) { return futureUnaryCall( getChannel().newCall(METHOD_GET_LATEST_REG_ORDER, getCallOptions()), request); } /** *
     * 计算加收费用
     * 
*/ public com.google.common.util.concurrent.ListenableFuture calAdditionalFee( com.ywt.gapi.taihe.register.CalAdditionalFeeRequest request) { return futureUnaryCall( getChannel().newCall(METHOD_CAL_ADDITIONAL_FEE, getCallOptions()), request); } /** *
     * 根据 userId & mobile 获取 hisPatientId
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getHisPatientIdByUserIdAndMobile( com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileRequest request) { return futureUnaryCall( getChannel().newCall(METHOD_GET_HIS_PATIENT_ID_BY_USER_ID_AND_MOBILE, getCallOptions()), request); } /** *
     * HIS 建档并在系统创建诊疗卡
     * 
*/ public com.google.common.util.concurrent.ListenableFuture createMedicalCard( com.ywt.gapi.taihe.register.CreateMedicalCardRequest request) { return futureUnaryCall( getChannel().newCall(METHOD_CREATE_MEDICAL_CARD, getCallOptions()), request); } /** *
     * 扫码报道发送信息
     * 
*/ public com.google.common.util.concurrent.ListenableFuture registerCheckInMessage( com.ywt.gapi.taihe.register.RegisterCheckInMessageRequest request) { return futureUnaryCall( getChannel().newCall(METHOD_REGISTER_CHECK_IN_MESSAGE, getCallOptions()), request); } } private static final int METHODID_CREATE_REGISTERED = 0; private static final int METHODID_CANCEL_REGISTERED = 1; private static final int METHODID_PAY_CALLBACK = 2; private static final int METHODID_REFUND_CALLBACK = 3; private static final int METHODID_REGISTER = 4; private static final int METHODID_TAKE = 5; private static final int METHODID_GET_QUEUE_LIST = 6; private static final int METHODID_GET_COMMON_ORDER_LIST = 7; private static final int METHODID_GET_REGISTERED_LIST = 8; private static final int METHODID_REGISTER_WITHOUT_MEDICAL_CARD = 9; private static final int METHODID_GET_OFFLINE_CONSULT_INFO_BY_DOCTOR_ID = 10; private static final int METHODID_GET_LATEST_REG_ORDER = 11; private static final int METHODID_CAL_ADDITIONAL_FEE = 12; private static final int METHODID_GET_HIS_PATIENT_ID_BY_USER_ID_AND_MOBILE = 13; private static final int METHODID_CREATE_MEDICAL_CARD = 14; private static final int METHODID_REGISTER_CHECK_IN_MESSAGE = 15; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, io.grpc.stub.ServerCalls.ServerStreamingMethod, io.grpc.stub.ServerCalls.ClientStreamingMethod, io.grpc.stub.ServerCalls.BidiStreamingMethod { private final TaiheRegisterServiceImplBase serviceImpl; private final int methodId; MethodHandlers(TaiheRegisterServiceImplBase serviceImpl, int methodId) { this.serviceImpl = serviceImpl; this.methodId = methodId; } @java.lang.Override @java.lang.SuppressWarnings("unchecked") public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_CREATE_REGISTERED: serviceImpl.createRegistered((com.ywt.gapi.taihe.register.CreateRegisteredRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CANCEL_REGISTERED: serviceImpl.cancelRegistered((com.ywt.gapi.taihe.register.CancelRegisteredRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_PAY_CALLBACK: serviceImpl.payCallback((com.ywt.gapi.taihe.register.PayCallbackRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_REFUND_CALLBACK: serviceImpl.refundCallback((com.ywt.gapi.taihe.register.RefundCallbackRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_REGISTER: serviceImpl.register((com.ywt.gapi.taihe.register.RegisterRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_TAKE: serviceImpl.take((com.ywt.gapi.taihe.register.TakeRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_QUEUE_LIST: serviceImpl.getQueueList((com.ywt.gapi.taihe.register.GetQueueListRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_COMMON_ORDER_LIST: serviceImpl.getCommonOrderList((com.ywt.gapi.taihe.register.GetCommonOrderListRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_REGISTERED_LIST: serviceImpl.getRegisteredList((com.ywt.gapi.taihe.register.GetRegisteredListRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_REGISTER_WITHOUT_MEDICAL_CARD: serviceImpl.registerWithoutMedicalCard((com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_OFFLINE_CONSULT_INFO_BY_DOCTOR_ID: serviceImpl.getOfflineConsultInfoByDoctorId((com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_LATEST_REG_ORDER: serviceImpl.getLatestRegOrder((com.ywt.gapi.taihe.register.GetLatestRegOrderRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CAL_ADDITIONAL_FEE: serviceImpl.calAdditionalFee((com.ywt.gapi.taihe.register.CalAdditionalFeeRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_HIS_PATIENT_ID_BY_USER_ID_AND_MOBILE: serviceImpl.getHisPatientIdByUserIdAndMobile((com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_MEDICAL_CARD: serviceImpl.createMedicalCard((com.ywt.gapi.taihe.register.CreateMedicalCardRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_REGISTER_CHECK_IN_MESSAGE: serviceImpl.registerCheckInMessage((com.ywt.gapi.taihe.register.RegisterCheckInMessageRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); } } @java.lang.Override @java.lang.SuppressWarnings("unchecked") public io.grpc.stub.StreamObserver invoke( io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { default: throw new AssertionError(); } } } private static abstract class TaiheRegisterServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { TaiheRegisterServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return com.ywt.gapi.taihe.register.TaiheRegister.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("TaiheRegisterService"); } } private static final class TaiheRegisterServiceFileDescriptorSupplier extends TaiheRegisterServiceBaseDescriptorSupplier { TaiheRegisterServiceFileDescriptorSupplier() {} } private static final class TaiheRegisterServiceMethodDescriptorSupplier extends TaiheRegisterServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; TaiheRegisterServiceMethodDescriptorSupplier(String methodName) { this.methodName = methodName; } @java.lang.Override public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { return getServiceDescriptor().findMethodByName(methodName); } } private static volatile io.grpc.ServiceDescriptor serviceDescriptor; public static io.grpc.ServiceDescriptor getServiceDescriptor() { io.grpc.ServiceDescriptor result = serviceDescriptor; if (result == null) { synchronized (TaiheRegisterServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new TaiheRegisterServiceFileDescriptorSupplier()) .addMethod(METHOD_CREATE_REGISTERED) .addMethod(METHOD_CANCEL_REGISTERED) .addMethod(METHOD_PAY_CALLBACK) .addMethod(METHOD_REFUND_CALLBACK) .addMethod(METHOD_REGISTER) .addMethod(METHOD_TAKE) .addMethod(METHOD_GET_QUEUE_LIST) .addMethod(METHOD_GET_COMMON_ORDER_LIST) .addMethod(METHOD_GET_REGISTERED_LIST) .addMethod(METHOD_REGISTER_WITHOUT_MEDICAL_CARD) .addMethod(METHOD_GET_OFFLINE_CONSULT_INFO_BY_DOCTOR_ID) .addMethod(METHOD_GET_LATEST_REG_ORDER) .addMethod(METHOD_CAL_ADDITIONAL_FEE) .addMethod(METHOD_GET_HIS_PATIENT_ID_BY_USER_ID_AND_MOBILE) .addMethod(METHOD_CREATE_MEDICAL_CARD) .addMethod(METHOD_REGISTER_CHECK_IN_MESSAGE) .build(); } } } return result; } }