// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: taihe_register.proto

package com.ywt.gapi.taihe.register;

/**
 * <pre>
 *太和医院预约挂号业务类 // 对应 taihe-rpc 项目 TaiheRegisterService 类
 * </pre>
 *
 * Protobuf service {@code com.ywt.gapi.taihe.register.TaiheRegisterService}
 */
public  abstract class TaiheRegisterService
    implements com.google.protobuf.Service {
  protected TaiheRegisterService() {}

  public interface Interface {
    /**
     * <pre>
     *预约挂号
     * </pre>
     *
     * <code>rpc createRegistered(.com.ywt.gapi.taihe.register.CreateRegisteredRequest) returns (.com.ywt.gapi.taihe.register.CreateRegisteredResponse);</code>
     */
    public abstract void createRegistered(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.CreateRegisteredRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.CreateRegisteredResponse> done);

    /**
     * <pre>
     *取消预约
     * </pre>
     *
     * <code>rpc cancelRegistered(.com.ywt.gapi.taihe.register.CancelRegisteredRequest) returns (.com.ywt.gapi.taihe.register.CancelRegisteredResponse);</code>
     */
    public abstract void cancelRegistered(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.CancelRegisteredRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.CancelRegisteredResponse> done);

    /**
     * <pre>
     *订单支付成功通知
     * </pre>
     *
     * <code>rpc payCallback(.com.ywt.gapi.taihe.register.PayCallbackRequest) returns (.com.ywt.gapi.taihe.register.PayCallbackResponse);</code>
     */
    public abstract void payCallback(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.PayCallbackRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.PayCallbackResponse> done);

    /**
     * <pre>
     *退款回调
     * </pre>
     *
     * <code>rpc refundCallback(.com.ywt.gapi.taihe.register.RefundCallbackRequest) returns (.com.ywt.gapi.taihe.register.RefundCallbackResponse);</code>
     */
    public abstract void refundCallback(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.RefundCallbackRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.RefundCallbackResponse> done);

    /**
     * <pre>
     *挂号（挂号信息已先保存至数据表中）
     * </pre>
     *
     * <code>rpc register(.com.ywt.gapi.taihe.register.RegisterRequest) returns (.com.ywt.gapi.taihe.register.RegisterResponse);</code>
     */
    public abstract void register(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.RegisterRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.RegisterResponse> done);

    /**
     * <pre>
     *取号
     * </pre>
     *
     * <code>rpc take(.com.ywt.gapi.taihe.register.TakeRequest) returns (.com.ywt.gapi.taihe.register.TakeResponse);</code>
     */
    public abstract void take(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.TakeRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.TakeResponse> done);

    /**
     * <pre>
     *获取候诊订单列表
     * </pre>
     *
     * <code>rpc getQueueList(.com.ywt.gapi.taihe.register.GetQueueListRequest) returns (.com.ywt.gapi.taihe.register.GetQueueListResponse);</code>
     */
    public abstract void getQueueList(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.GetQueueListRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.GetQueueListResponse> done);

    /**
     * <pre>
     *获取太和门诊记录
     * </pre>
     *
     * <code>rpc getCommonOrderList(.com.ywt.gapi.taihe.register.GetCommonOrderListRequest) returns (.com.ywt.gapi.taihe.register.GetCommonOrderListResponse);</code>
     */
    public abstract void getCommonOrderList(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.GetCommonOrderListRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.GetCommonOrderListResponse> done);

    /**
     * <pre>
     *获取挂号订单列表
     * </pre>
     *
     * <code>rpc getRegisteredList(.com.ywt.gapi.taihe.register.GetRegisteredListRequest) returns (.com.ywt.gapi.taihe.register.GetRegisteredListResponse);</code>
     */
    public abstract void getRegisteredList(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.GetRegisteredListRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.GetRegisteredListResponse> done);

    /**
     * <pre>
     *无诊疗卡挂号
     * </pre>
     *
     * <code>rpc registerWithoutMedicalCard(.com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardRequest) returns (.com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardResponse);</code>
     */
    public abstract void registerWithoutMedicalCard(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardResponse> done);

    /**
     * <pre>
     * 根据医生 id 获取下线问诊相关信息
     * </pre>
     *
     * <code>rpc getOfflineConsultInfoByDoctorId(.com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdRequest) returns (.com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdResponse);</code>
     */
    public abstract void getOfflineConsultInfoByDoctorId(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdResponse> done);

    /**
     * <pre>
     * 获取最近一次挂号订单
     * </pre>
     *
     * <code>rpc getLatestRegOrder(.com.ywt.gapi.taihe.register.GetLatestRegOrderRequest) returns (.com.ywt.gapi.taihe.register.GetLatestRegOrderResponse);</code>
     */
    public abstract void getLatestRegOrder(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.GetLatestRegOrderRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.GetLatestRegOrderResponse> done);

    /**
     * <pre>
     * 计算加收费用
     * </pre>
     *
     * <code>rpc calAdditionalFee(.com.ywt.gapi.taihe.register.CalAdditionalFeeRequest) returns (.com.ywt.gapi.taihe.register.CalAdditionalFeeResponse);</code>
     */
    public abstract void calAdditionalFee(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.CalAdditionalFeeRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.CalAdditionalFeeResponse> done);

    /**
     * <pre>
     * 根据 userId &amp; mobile 获取 hisPatientId
     * </pre>
     *
     * <code>rpc getHisPatientIdByUserIdAndMobile(.com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileRequest) returns (.com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileResponse);</code>
     */
    public abstract void getHisPatientIdByUserIdAndMobile(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileResponse> done);

    /**
     * <pre>
     * HIS 建档并在系统创建诊疗卡
     * </pre>
     *
     * <code>rpc createMedicalCard(.com.ywt.gapi.taihe.register.CreateMedicalCardRequest) returns (.com.ywt.gapi.taihe.register.CreateMedicalCardResponse);</code>
     */
    public abstract void createMedicalCard(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.CreateMedicalCardRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.CreateMedicalCardResponse> done);

  }

  public static com.google.protobuf.Service newReflectiveService(
      final Interface impl) {
    return new TaiheRegisterService() {
      @java.lang.Override
      public  void createRegistered(
          com.google.protobuf.RpcController controller,
          com.ywt.gapi.taihe.register.CreateRegisteredRequest request,
          com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.CreateRegisteredResponse> done) {
        impl.createRegistered(controller, request, done);
      }

      @java.lang.Override
      public  void cancelRegistered(
          com.google.protobuf.RpcController controller,
          com.ywt.gapi.taihe.register.CancelRegisteredRequest request,
          com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.CancelRegisteredResponse> done) {
        impl.cancelRegistered(controller, request, done);
      }

      @java.lang.Override
      public  void payCallback(
          com.google.protobuf.RpcController controller,
          com.ywt.gapi.taihe.register.PayCallbackRequest request,
          com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.PayCallbackResponse> done) {
        impl.payCallback(controller, request, done);
      }

      @java.lang.Override
      public  void refundCallback(
          com.google.protobuf.RpcController controller,
          com.ywt.gapi.taihe.register.RefundCallbackRequest request,
          com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.RefundCallbackResponse> done) {
        impl.refundCallback(controller, request, done);
      }

      @java.lang.Override
      public  void register(
          com.google.protobuf.RpcController controller,
          com.ywt.gapi.taihe.register.RegisterRequest request,
          com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.RegisterResponse> done) {
        impl.register(controller, request, done);
      }

      @java.lang.Override
      public  void take(
          com.google.protobuf.RpcController controller,
          com.ywt.gapi.taihe.register.TakeRequest request,
          com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.TakeResponse> done) {
        impl.take(controller, request, done);
      }

      @java.lang.Override
      public  void getQueueList(
          com.google.protobuf.RpcController controller,
          com.ywt.gapi.taihe.register.GetQueueListRequest request,
          com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.GetQueueListResponse> done) {
        impl.getQueueList(controller, request, done);
      }

      @java.lang.Override
      public  void getCommonOrderList(
          com.google.protobuf.RpcController controller,
          com.ywt.gapi.taihe.register.GetCommonOrderListRequest request,
          com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.GetCommonOrderListResponse> done) {
        impl.getCommonOrderList(controller, request, done);
      }

      @java.lang.Override
      public  void getRegisteredList(
          com.google.protobuf.RpcController controller,
          com.ywt.gapi.taihe.register.GetRegisteredListRequest request,
          com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.GetRegisteredListResponse> done) {
        impl.getRegisteredList(controller, request, done);
      }

      @java.lang.Override
      public  void registerWithoutMedicalCard(
          com.google.protobuf.RpcController controller,
          com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardRequest request,
          com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardResponse> done) {
        impl.registerWithoutMedicalCard(controller, request, done);
      }

      @java.lang.Override
      public  void getOfflineConsultInfoByDoctorId(
          com.google.protobuf.RpcController controller,
          com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdRequest request,
          com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdResponse> done) {
        impl.getOfflineConsultInfoByDoctorId(controller, request, done);
      }

      @java.lang.Override
      public  void getLatestRegOrder(
          com.google.protobuf.RpcController controller,
          com.ywt.gapi.taihe.register.GetLatestRegOrderRequest request,
          com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.GetLatestRegOrderResponse> done) {
        impl.getLatestRegOrder(controller, request, done);
      }

      @java.lang.Override
      public  void calAdditionalFee(
          com.google.protobuf.RpcController controller,
          com.ywt.gapi.taihe.register.CalAdditionalFeeRequest request,
          com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.CalAdditionalFeeResponse> done) {
        impl.calAdditionalFee(controller, request, done);
      }

      @java.lang.Override
      public  void getHisPatientIdByUserIdAndMobile(
          com.google.protobuf.RpcController controller,
          com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileRequest request,
          com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileResponse> done) {
        impl.getHisPatientIdByUserIdAndMobile(controller, request, done);
      }

      @java.lang.Override
      public  void createMedicalCard(
          com.google.protobuf.RpcController controller,
          com.ywt.gapi.taihe.register.CreateMedicalCardRequest request,
          com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.CreateMedicalCardResponse> done) {
        impl.createMedicalCard(controller, request, done);
      }

    };
  }

  public static com.google.protobuf.BlockingService
      newReflectiveBlockingService(final BlockingInterface impl) {
    return new com.google.protobuf.BlockingService() {
      public final com.google.protobuf.Descriptors.ServiceDescriptor
          getDescriptorForType() {
        return getDescriptor();
      }

      public final com.google.protobuf.Message callBlockingMethod(
          com.google.protobuf.Descriptors.MethodDescriptor method,
          com.google.protobuf.RpcController controller,
          com.google.protobuf.Message request)
          throws com.google.protobuf.ServiceException {
        if (method.getService() != getDescriptor()) {
          throw new java.lang.IllegalArgumentException(
            "Service.callBlockingMethod() given method descriptor for " +
            "wrong service type.");
        }
        switch(method.getIndex()) {
          case 0:
            return impl.createRegistered(controller, (com.ywt.gapi.taihe.register.CreateRegisteredRequest)request);
          case 1:
            return impl.cancelRegistered(controller, (com.ywt.gapi.taihe.register.CancelRegisteredRequest)request);
          case 2:
            return impl.payCallback(controller, (com.ywt.gapi.taihe.register.PayCallbackRequest)request);
          case 3:
            return impl.refundCallback(controller, (com.ywt.gapi.taihe.register.RefundCallbackRequest)request);
          case 4:
            return impl.register(controller, (com.ywt.gapi.taihe.register.RegisterRequest)request);
          case 5:
            return impl.take(controller, (com.ywt.gapi.taihe.register.TakeRequest)request);
          case 6:
            return impl.getQueueList(controller, (com.ywt.gapi.taihe.register.GetQueueListRequest)request);
          case 7:
            return impl.getCommonOrderList(controller, (com.ywt.gapi.taihe.register.GetCommonOrderListRequest)request);
          case 8:
            return impl.getRegisteredList(controller, (com.ywt.gapi.taihe.register.GetRegisteredListRequest)request);
          case 9:
            return impl.registerWithoutMedicalCard(controller, (com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardRequest)request);
          case 10:
            return impl.getOfflineConsultInfoByDoctorId(controller, (com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdRequest)request);
          case 11:
            return impl.getLatestRegOrder(controller, (com.ywt.gapi.taihe.register.GetLatestRegOrderRequest)request);
          case 12:
            return impl.calAdditionalFee(controller, (com.ywt.gapi.taihe.register.CalAdditionalFeeRequest)request);
          case 13:
            return impl.getHisPatientIdByUserIdAndMobile(controller, (com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileRequest)request);
          case 14:
            return impl.createMedicalCard(controller, (com.ywt.gapi.taihe.register.CreateMedicalCardRequest)request);
          default:
            throw new java.lang.AssertionError("Can't get here.");
        }
      }

      public final com.google.protobuf.Message
          getRequestPrototype(
          com.google.protobuf.Descriptors.MethodDescriptor method) {
        if (method.getService() != getDescriptor()) {
          throw new java.lang.IllegalArgumentException(
            "Service.getRequestPrototype() given method " +
            "descriptor for wrong service type.");
        }
        switch(method.getIndex()) {
          case 0:
            return com.ywt.gapi.taihe.register.CreateRegisteredRequest.getDefaultInstance();
          case 1:
            return com.ywt.gapi.taihe.register.CancelRegisteredRequest.getDefaultInstance();
          case 2:
            return com.ywt.gapi.taihe.register.PayCallbackRequest.getDefaultInstance();
          case 3:
            return com.ywt.gapi.taihe.register.RefundCallbackRequest.getDefaultInstance();
          case 4:
            return com.ywt.gapi.taihe.register.RegisterRequest.getDefaultInstance();
          case 5:
            return com.ywt.gapi.taihe.register.TakeRequest.getDefaultInstance();
          case 6:
            return com.ywt.gapi.taihe.register.GetQueueListRequest.getDefaultInstance();
          case 7:
            return com.ywt.gapi.taihe.register.GetCommonOrderListRequest.getDefaultInstance();
          case 8:
            return com.ywt.gapi.taihe.register.GetRegisteredListRequest.getDefaultInstance();
          case 9:
            return com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardRequest.getDefaultInstance();
          case 10:
            return com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdRequest.getDefaultInstance();
          case 11:
            return com.ywt.gapi.taihe.register.GetLatestRegOrderRequest.getDefaultInstance();
          case 12:
            return com.ywt.gapi.taihe.register.CalAdditionalFeeRequest.getDefaultInstance();
          case 13:
            return com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileRequest.getDefaultInstance();
          case 14:
            return com.ywt.gapi.taihe.register.CreateMedicalCardRequest.getDefaultInstance();
          default:
            throw new java.lang.AssertionError("Can't get here.");
        }
      }

      public final com.google.protobuf.Message
          getResponsePrototype(
          com.google.protobuf.Descriptors.MethodDescriptor method) {
        if (method.getService() != getDescriptor()) {
          throw new java.lang.IllegalArgumentException(
            "Service.getResponsePrototype() given method " +
            "descriptor for wrong service type.");
        }
        switch(method.getIndex()) {
          case 0:
            return com.ywt.gapi.taihe.register.CreateRegisteredResponse.getDefaultInstance();
          case 1:
            return com.ywt.gapi.taihe.register.CancelRegisteredResponse.getDefaultInstance();
          case 2:
            return com.ywt.gapi.taihe.register.PayCallbackResponse.getDefaultInstance();
          case 3:
            return com.ywt.gapi.taihe.register.RefundCallbackResponse.getDefaultInstance();
          case 4:
            return com.ywt.gapi.taihe.register.RegisterResponse.getDefaultInstance();
          case 5:
            return com.ywt.gapi.taihe.register.TakeResponse.getDefaultInstance();
          case 6:
            return com.ywt.gapi.taihe.register.GetQueueListResponse.getDefaultInstance();
          case 7:
            return com.ywt.gapi.taihe.register.GetCommonOrderListResponse.getDefaultInstance();
          case 8:
            return com.ywt.gapi.taihe.register.GetRegisteredListResponse.getDefaultInstance();
          case 9:
            return com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardResponse.getDefaultInstance();
          case 10:
            return com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdResponse.getDefaultInstance();
          case 11:
            return com.ywt.gapi.taihe.register.GetLatestRegOrderResponse.getDefaultInstance();
          case 12:
            return com.ywt.gapi.taihe.register.CalAdditionalFeeResponse.getDefaultInstance();
          case 13:
            return com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileResponse.getDefaultInstance();
          case 14:
            return com.ywt.gapi.taihe.register.CreateMedicalCardResponse.getDefaultInstance();
          default:
            throw new java.lang.AssertionError("Can't get here.");
        }
      }

    };
  }

  /**
   * <pre>
   *预约挂号
   * </pre>
   *
   * <code>rpc createRegistered(.com.ywt.gapi.taihe.register.CreateRegisteredRequest) returns (.com.ywt.gapi.taihe.register.CreateRegisteredResponse);</code>
   */
  public abstract void createRegistered(
      com.google.protobuf.RpcController controller,
      com.ywt.gapi.taihe.register.CreateRegisteredRequest request,
      com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.CreateRegisteredResponse> done);

  /**
   * <pre>
   *取消预约
   * </pre>
   *
   * <code>rpc cancelRegistered(.com.ywt.gapi.taihe.register.CancelRegisteredRequest) returns (.com.ywt.gapi.taihe.register.CancelRegisteredResponse);</code>
   */
  public abstract void cancelRegistered(
      com.google.protobuf.RpcController controller,
      com.ywt.gapi.taihe.register.CancelRegisteredRequest request,
      com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.CancelRegisteredResponse> done);

  /**
   * <pre>
   *订单支付成功通知
   * </pre>
   *
   * <code>rpc payCallback(.com.ywt.gapi.taihe.register.PayCallbackRequest) returns (.com.ywt.gapi.taihe.register.PayCallbackResponse);</code>
   */
  public abstract void payCallback(
      com.google.protobuf.RpcController controller,
      com.ywt.gapi.taihe.register.PayCallbackRequest request,
      com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.PayCallbackResponse> done);

  /**
   * <pre>
   *退款回调
   * </pre>
   *
   * <code>rpc refundCallback(.com.ywt.gapi.taihe.register.RefundCallbackRequest) returns (.com.ywt.gapi.taihe.register.RefundCallbackResponse);</code>
   */
  public abstract void refundCallback(
      com.google.protobuf.RpcController controller,
      com.ywt.gapi.taihe.register.RefundCallbackRequest request,
      com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.RefundCallbackResponse> done);

  /**
   * <pre>
   *挂号（挂号信息已先保存至数据表中）
   * </pre>
   *
   * <code>rpc register(.com.ywt.gapi.taihe.register.RegisterRequest) returns (.com.ywt.gapi.taihe.register.RegisterResponse);</code>
   */
  public abstract void register(
      com.google.protobuf.RpcController controller,
      com.ywt.gapi.taihe.register.RegisterRequest request,
      com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.RegisterResponse> done);

  /**
   * <pre>
   *取号
   * </pre>
   *
   * <code>rpc take(.com.ywt.gapi.taihe.register.TakeRequest) returns (.com.ywt.gapi.taihe.register.TakeResponse);</code>
   */
  public abstract void take(
      com.google.protobuf.RpcController controller,
      com.ywt.gapi.taihe.register.TakeRequest request,
      com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.TakeResponse> done);

  /**
   * <pre>
   *获取候诊订单列表
   * </pre>
   *
   * <code>rpc getQueueList(.com.ywt.gapi.taihe.register.GetQueueListRequest) returns (.com.ywt.gapi.taihe.register.GetQueueListResponse);</code>
   */
  public abstract void getQueueList(
      com.google.protobuf.RpcController controller,
      com.ywt.gapi.taihe.register.GetQueueListRequest request,
      com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.GetQueueListResponse> done);

  /**
   * <pre>
   *获取太和门诊记录
   * </pre>
   *
   * <code>rpc getCommonOrderList(.com.ywt.gapi.taihe.register.GetCommonOrderListRequest) returns (.com.ywt.gapi.taihe.register.GetCommonOrderListResponse);</code>
   */
  public abstract void getCommonOrderList(
      com.google.protobuf.RpcController controller,
      com.ywt.gapi.taihe.register.GetCommonOrderListRequest request,
      com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.GetCommonOrderListResponse> done);

  /**
   * <pre>
   *获取挂号订单列表
   * </pre>
   *
   * <code>rpc getRegisteredList(.com.ywt.gapi.taihe.register.GetRegisteredListRequest) returns (.com.ywt.gapi.taihe.register.GetRegisteredListResponse);</code>
   */
  public abstract void getRegisteredList(
      com.google.protobuf.RpcController controller,
      com.ywt.gapi.taihe.register.GetRegisteredListRequest request,
      com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.GetRegisteredListResponse> done);

  /**
   * <pre>
   *无诊疗卡挂号
   * </pre>
   *
   * <code>rpc registerWithoutMedicalCard(.com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardRequest) returns (.com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardResponse);</code>
   */
  public abstract void registerWithoutMedicalCard(
      com.google.protobuf.RpcController controller,
      com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardRequest request,
      com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardResponse> done);

  /**
   * <pre>
   * 根据医生 id 获取下线问诊相关信息
   * </pre>
   *
   * <code>rpc getOfflineConsultInfoByDoctorId(.com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdRequest) returns (.com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdResponse);</code>
   */
  public abstract void getOfflineConsultInfoByDoctorId(
      com.google.protobuf.RpcController controller,
      com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdRequest request,
      com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdResponse> done);

  /**
   * <pre>
   * 获取最近一次挂号订单
   * </pre>
   *
   * <code>rpc getLatestRegOrder(.com.ywt.gapi.taihe.register.GetLatestRegOrderRequest) returns (.com.ywt.gapi.taihe.register.GetLatestRegOrderResponse);</code>
   */
  public abstract void getLatestRegOrder(
      com.google.protobuf.RpcController controller,
      com.ywt.gapi.taihe.register.GetLatestRegOrderRequest request,
      com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.GetLatestRegOrderResponse> done);

  /**
   * <pre>
   * 计算加收费用
   * </pre>
   *
   * <code>rpc calAdditionalFee(.com.ywt.gapi.taihe.register.CalAdditionalFeeRequest) returns (.com.ywt.gapi.taihe.register.CalAdditionalFeeResponse);</code>
   */
  public abstract void calAdditionalFee(
      com.google.protobuf.RpcController controller,
      com.ywt.gapi.taihe.register.CalAdditionalFeeRequest request,
      com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.CalAdditionalFeeResponse> done);

  /**
   * <pre>
   * 根据 userId &amp; mobile 获取 hisPatientId
   * </pre>
   *
   * <code>rpc getHisPatientIdByUserIdAndMobile(.com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileRequest) returns (.com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileResponse);</code>
   */
  public abstract void getHisPatientIdByUserIdAndMobile(
      com.google.protobuf.RpcController controller,
      com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileRequest request,
      com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileResponse> done);

  /**
   * <pre>
   * HIS 建档并在系统创建诊疗卡
   * </pre>
   *
   * <code>rpc createMedicalCard(.com.ywt.gapi.taihe.register.CreateMedicalCardRequest) returns (.com.ywt.gapi.taihe.register.CreateMedicalCardResponse);</code>
   */
  public abstract void createMedicalCard(
      com.google.protobuf.RpcController controller,
      com.ywt.gapi.taihe.register.CreateMedicalCardRequest request,
      com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.CreateMedicalCardResponse> done);

  public static final
      com.google.protobuf.Descriptors.ServiceDescriptor
      getDescriptor() {
    return com.ywt.gapi.taihe.register.TaiheRegister.getDescriptor().getServices().get(0);
  }
  public final com.google.protobuf.Descriptors.ServiceDescriptor
      getDescriptorForType() {
    return getDescriptor();
  }

  public final void callMethod(
      com.google.protobuf.Descriptors.MethodDescriptor method,
      com.google.protobuf.RpcController controller,
      com.google.protobuf.Message request,
      com.google.protobuf.RpcCallback<
        com.google.protobuf.Message> done) {
    if (method.getService() != getDescriptor()) {
      throw new java.lang.IllegalArgumentException(
        "Service.callMethod() given method descriptor for wrong " +
        "service type.");
    }
    switch(method.getIndex()) {
      case 0:
        this.createRegistered(controller, (com.ywt.gapi.taihe.register.CreateRegisteredRequest)request,
          com.google.protobuf.RpcUtil.<com.ywt.gapi.taihe.register.CreateRegisteredResponse>specializeCallback(
            done));
        return;
      case 1:
        this.cancelRegistered(controller, (com.ywt.gapi.taihe.register.CancelRegisteredRequest)request,
          com.google.protobuf.RpcUtil.<com.ywt.gapi.taihe.register.CancelRegisteredResponse>specializeCallback(
            done));
        return;
      case 2:
        this.payCallback(controller, (com.ywt.gapi.taihe.register.PayCallbackRequest)request,
          com.google.protobuf.RpcUtil.<com.ywt.gapi.taihe.register.PayCallbackResponse>specializeCallback(
            done));
        return;
      case 3:
        this.refundCallback(controller, (com.ywt.gapi.taihe.register.RefundCallbackRequest)request,
          com.google.protobuf.RpcUtil.<com.ywt.gapi.taihe.register.RefundCallbackResponse>specializeCallback(
            done));
        return;
      case 4:
        this.register(controller, (com.ywt.gapi.taihe.register.RegisterRequest)request,
          com.google.protobuf.RpcUtil.<com.ywt.gapi.taihe.register.RegisterResponse>specializeCallback(
            done));
        return;
      case 5:
        this.take(controller, (com.ywt.gapi.taihe.register.TakeRequest)request,
          com.google.protobuf.RpcUtil.<com.ywt.gapi.taihe.register.TakeResponse>specializeCallback(
            done));
        return;
      case 6:
        this.getQueueList(controller, (com.ywt.gapi.taihe.register.GetQueueListRequest)request,
          com.google.protobuf.RpcUtil.<com.ywt.gapi.taihe.register.GetQueueListResponse>specializeCallback(
            done));
        return;
      case 7:
        this.getCommonOrderList(controller, (com.ywt.gapi.taihe.register.GetCommonOrderListRequest)request,
          com.google.protobuf.RpcUtil.<com.ywt.gapi.taihe.register.GetCommonOrderListResponse>specializeCallback(
            done));
        return;
      case 8:
        this.getRegisteredList(controller, (com.ywt.gapi.taihe.register.GetRegisteredListRequest)request,
          com.google.protobuf.RpcUtil.<com.ywt.gapi.taihe.register.GetRegisteredListResponse>specializeCallback(
            done));
        return;
      case 9:
        this.registerWithoutMedicalCard(controller, (com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardRequest)request,
          com.google.protobuf.RpcUtil.<com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardResponse>specializeCallback(
            done));
        return;
      case 10:
        this.getOfflineConsultInfoByDoctorId(controller, (com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdRequest)request,
          com.google.protobuf.RpcUtil.<com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdResponse>specializeCallback(
            done));
        return;
      case 11:
        this.getLatestRegOrder(controller, (com.ywt.gapi.taihe.register.GetLatestRegOrderRequest)request,
          com.google.protobuf.RpcUtil.<com.ywt.gapi.taihe.register.GetLatestRegOrderResponse>specializeCallback(
            done));
        return;
      case 12:
        this.calAdditionalFee(controller, (com.ywt.gapi.taihe.register.CalAdditionalFeeRequest)request,
          com.google.protobuf.RpcUtil.<com.ywt.gapi.taihe.register.CalAdditionalFeeResponse>specializeCallback(
            done));
        return;
      case 13:
        this.getHisPatientIdByUserIdAndMobile(controller, (com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileRequest)request,
          com.google.protobuf.RpcUtil.<com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileResponse>specializeCallback(
            done));
        return;
      case 14:
        this.createMedicalCard(controller, (com.ywt.gapi.taihe.register.CreateMedicalCardRequest)request,
          com.google.protobuf.RpcUtil.<com.ywt.gapi.taihe.register.CreateMedicalCardResponse>specializeCallback(
            done));
        return;
      default:
        throw new java.lang.AssertionError("Can't get here.");
    }
  }

  public final com.google.protobuf.Message
      getRequestPrototype(
      com.google.protobuf.Descriptors.MethodDescriptor method) {
    if (method.getService() != getDescriptor()) {
      throw new java.lang.IllegalArgumentException(
        "Service.getRequestPrototype() given method " +
        "descriptor for wrong service type.");
    }
    switch(method.getIndex()) {
      case 0:
        return com.ywt.gapi.taihe.register.CreateRegisteredRequest.getDefaultInstance();
      case 1:
        return com.ywt.gapi.taihe.register.CancelRegisteredRequest.getDefaultInstance();
      case 2:
        return com.ywt.gapi.taihe.register.PayCallbackRequest.getDefaultInstance();
      case 3:
        return com.ywt.gapi.taihe.register.RefundCallbackRequest.getDefaultInstance();
      case 4:
        return com.ywt.gapi.taihe.register.RegisterRequest.getDefaultInstance();
      case 5:
        return com.ywt.gapi.taihe.register.TakeRequest.getDefaultInstance();
      case 6:
        return com.ywt.gapi.taihe.register.GetQueueListRequest.getDefaultInstance();
      case 7:
        return com.ywt.gapi.taihe.register.GetCommonOrderListRequest.getDefaultInstance();
      case 8:
        return com.ywt.gapi.taihe.register.GetRegisteredListRequest.getDefaultInstance();
      case 9:
        return com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardRequest.getDefaultInstance();
      case 10:
        return com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdRequest.getDefaultInstance();
      case 11:
        return com.ywt.gapi.taihe.register.GetLatestRegOrderRequest.getDefaultInstance();
      case 12:
        return com.ywt.gapi.taihe.register.CalAdditionalFeeRequest.getDefaultInstance();
      case 13:
        return com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileRequest.getDefaultInstance();
      case 14:
        return com.ywt.gapi.taihe.register.CreateMedicalCardRequest.getDefaultInstance();
      default:
        throw new java.lang.AssertionError("Can't get here.");
    }
  }

  public final com.google.protobuf.Message
      getResponsePrototype(
      com.google.protobuf.Descriptors.MethodDescriptor method) {
    if (method.getService() != getDescriptor()) {
      throw new java.lang.IllegalArgumentException(
        "Service.getResponsePrototype() given method " +
        "descriptor for wrong service type.");
    }
    switch(method.getIndex()) {
      case 0:
        return com.ywt.gapi.taihe.register.CreateRegisteredResponse.getDefaultInstance();
      case 1:
        return com.ywt.gapi.taihe.register.CancelRegisteredResponse.getDefaultInstance();
      case 2:
        return com.ywt.gapi.taihe.register.PayCallbackResponse.getDefaultInstance();
      case 3:
        return com.ywt.gapi.taihe.register.RefundCallbackResponse.getDefaultInstance();
      case 4:
        return com.ywt.gapi.taihe.register.RegisterResponse.getDefaultInstance();
      case 5:
        return com.ywt.gapi.taihe.register.TakeResponse.getDefaultInstance();
      case 6:
        return com.ywt.gapi.taihe.register.GetQueueListResponse.getDefaultInstance();
      case 7:
        return com.ywt.gapi.taihe.register.GetCommonOrderListResponse.getDefaultInstance();
      case 8:
        return com.ywt.gapi.taihe.register.GetRegisteredListResponse.getDefaultInstance();
      case 9:
        return com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardResponse.getDefaultInstance();
      case 10:
        return com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdResponse.getDefaultInstance();
      case 11:
        return com.ywt.gapi.taihe.register.GetLatestRegOrderResponse.getDefaultInstance();
      case 12:
        return com.ywt.gapi.taihe.register.CalAdditionalFeeResponse.getDefaultInstance();
      case 13:
        return com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileResponse.getDefaultInstance();
      case 14:
        return com.ywt.gapi.taihe.register.CreateMedicalCardResponse.getDefaultInstance();
      default:
        throw new java.lang.AssertionError("Can't get here.");
    }
  }

  public static Stub newStub(
      com.google.protobuf.RpcChannel channel) {
    return new Stub(channel);
  }

  public static final class Stub extends com.ywt.gapi.taihe.register.TaiheRegisterService implements Interface {
    private Stub(com.google.protobuf.RpcChannel channel) {
      this.channel = channel;
    }

    private final com.google.protobuf.RpcChannel channel;

    public com.google.protobuf.RpcChannel getChannel() {
      return channel;
    }

    public  void createRegistered(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.CreateRegisteredRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.CreateRegisteredResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(0),
        controller,
        request,
        com.ywt.gapi.taihe.register.CreateRegisteredResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          com.ywt.gapi.taihe.register.CreateRegisteredResponse.class,
          com.ywt.gapi.taihe.register.CreateRegisteredResponse.getDefaultInstance()));
    }

    public  void cancelRegistered(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.CancelRegisteredRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.CancelRegisteredResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(1),
        controller,
        request,
        com.ywt.gapi.taihe.register.CancelRegisteredResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          com.ywt.gapi.taihe.register.CancelRegisteredResponse.class,
          com.ywt.gapi.taihe.register.CancelRegisteredResponse.getDefaultInstance()));
    }

    public  void payCallback(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.PayCallbackRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.PayCallbackResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(2),
        controller,
        request,
        com.ywt.gapi.taihe.register.PayCallbackResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          com.ywt.gapi.taihe.register.PayCallbackResponse.class,
          com.ywt.gapi.taihe.register.PayCallbackResponse.getDefaultInstance()));
    }

    public  void refundCallback(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.RefundCallbackRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.RefundCallbackResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(3),
        controller,
        request,
        com.ywt.gapi.taihe.register.RefundCallbackResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          com.ywt.gapi.taihe.register.RefundCallbackResponse.class,
          com.ywt.gapi.taihe.register.RefundCallbackResponse.getDefaultInstance()));
    }

    public  void register(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.RegisterRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.RegisterResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(4),
        controller,
        request,
        com.ywt.gapi.taihe.register.RegisterResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          com.ywt.gapi.taihe.register.RegisterResponse.class,
          com.ywt.gapi.taihe.register.RegisterResponse.getDefaultInstance()));
    }

    public  void take(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.TakeRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.TakeResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(5),
        controller,
        request,
        com.ywt.gapi.taihe.register.TakeResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          com.ywt.gapi.taihe.register.TakeResponse.class,
          com.ywt.gapi.taihe.register.TakeResponse.getDefaultInstance()));
    }

    public  void getQueueList(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.GetQueueListRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.GetQueueListResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(6),
        controller,
        request,
        com.ywt.gapi.taihe.register.GetQueueListResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          com.ywt.gapi.taihe.register.GetQueueListResponse.class,
          com.ywt.gapi.taihe.register.GetQueueListResponse.getDefaultInstance()));
    }

    public  void getCommonOrderList(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.GetCommonOrderListRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.GetCommonOrderListResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(7),
        controller,
        request,
        com.ywt.gapi.taihe.register.GetCommonOrderListResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          com.ywt.gapi.taihe.register.GetCommonOrderListResponse.class,
          com.ywt.gapi.taihe.register.GetCommonOrderListResponse.getDefaultInstance()));
    }

    public  void getRegisteredList(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.GetRegisteredListRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.GetRegisteredListResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(8),
        controller,
        request,
        com.ywt.gapi.taihe.register.GetRegisteredListResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          com.ywt.gapi.taihe.register.GetRegisteredListResponse.class,
          com.ywt.gapi.taihe.register.GetRegisteredListResponse.getDefaultInstance()));
    }

    public  void registerWithoutMedicalCard(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(9),
        controller,
        request,
        com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardResponse.class,
          com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardResponse.getDefaultInstance()));
    }

    public  void getOfflineConsultInfoByDoctorId(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(10),
        controller,
        request,
        com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdResponse.class,
          com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdResponse.getDefaultInstance()));
    }

    public  void getLatestRegOrder(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.GetLatestRegOrderRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.GetLatestRegOrderResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(11),
        controller,
        request,
        com.ywt.gapi.taihe.register.GetLatestRegOrderResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          com.ywt.gapi.taihe.register.GetLatestRegOrderResponse.class,
          com.ywt.gapi.taihe.register.GetLatestRegOrderResponse.getDefaultInstance()));
    }

    public  void calAdditionalFee(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.CalAdditionalFeeRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.CalAdditionalFeeResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(12),
        controller,
        request,
        com.ywt.gapi.taihe.register.CalAdditionalFeeResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          com.ywt.gapi.taihe.register.CalAdditionalFeeResponse.class,
          com.ywt.gapi.taihe.register.CalAdditionalFeeResponse.getDefaultInstance()));
    }

    public  void getHisPatientIdByUserIdAndMobile(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(13),
        controller,
        request,
        com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileResponse.class,
          com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileResponse.getDefaultInstance()));
    }

    public  void createMedicalCard(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.CreateMedicalCardRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.taihe.register.CreateMedicalCardResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(14),
        controller,
        request,
        com.ywt.gapi.taihe.register.CreateMedicalCardResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          com.ywt.gapi.taihe.register.CreateMedicalCardResponse.class,
          com.ywt.gapi.taihe.register.CreateMedicalCardResponse.getDefaultInstance()));
    }
  }

  public static BlockingInterface newBlockingStub(
      com.google.protobuf.BlockingRpcChannel channel) {
    return new BlockingStub(channel);
  }

  public interface BlockingInterface {
    public com.ywt.gapi.taihe.register.CreateRegisteredResponse createRegistered(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.CreateRegisteredRequest request)
        throws com.google.protobuf.ServiceException;

    public com.ywt.gapi.taihe.register.CancelRegisteredResponse cancelRegistered(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.CancelRegisteredRequest request)
        throws com.google.protobuf.ServiceException;

    public com.ywt.gapi.taihe.register.PayCallbackResponse payCallback(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.PayCallbackRequest request)
        throws com.google.protobuf.ServiceException;

    public com.ywt.gapi.taihe.register.RefundCallbackResponse refundCallback(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.RefundCallbackRequest request)
        throws com.google.protobuf.ServiceException;

    public com.ywt.gapi.taihe.register.RegisterResponse register(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.RegisterRequest request)
        throws com.google.protobuf.ServiceException;

    public com.ywt.gapi.taihe.register.TakeResponse take(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.TakeRequest request)
        throws com.google.protobuf.ServiceException;

    public com.ywt.gapi.taihe.register.GetQueueListResponse getQueueList(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.GetQueueListRequest request)
        throws com.google.protobuf.ServiceException;

    public com.ywt.gapi.taihe.register.GetCommonOrderListResponse getCommonOrderList(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.GetCommonOrderListRequest request)
        throws com.google.protobuf.ServiceException;

    public com.ywt.gapi.taihe.register.GetRegisteredListResponse getRegisteredList(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.GetRegisteredListRequest request)
        throws com.google.protobuf.ServiceException;

    public com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardResponse registerWithoutMedicalCard(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardRequest request)
        throws com.google.protobuf.ServiceException;

    public com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdResponse getOfflineConsultInfoByDoctorId(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdRequest request)
        throws com.google.protobuf.ServiceException;

    public com.ywt.gapi.taihe.register.GetLatestRegOrderResponse getLatestRegOrder(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.GetLatestRegOrderRequest request)
        throws com.google.protobuf.ServiceException;

    public com.ywt.gapi.taihe.register.CalAdditionalFeeResponse calAdditionalFee(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.CalAdditionalFeeRequest request)
        throws com.google.protobuf.ServiceException;

    public com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileResponse getHisPatientIdByUserIdAndMobile(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileRequest request)
        throws com.google.protobuf.ServiceException;

    public com.ywt.gapi.taihe.register.CreateMedicalCardResponse createMedicalCard(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.CreateMedicalCardRequest request)
        throws com.google.protobuf.ServiceException;
  }

  private static final class BlockingStub implements BlockingInterface {
    private BlockingStub(com.google.protobuf.BlockingRpcChannel channel) {
      this.channel = channel;
    }

    private final com.google.protobuf.BlockingRpcChannel channel;

    public com.ywt.gapi.taihe.register.CreateRegisteredResponse createRegistered(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.CreateRegisteredRequest request)
        throws com.google.protobuf.ServiceException {
      return (com.ywt.gapi.taihe.register.CreateRegisteredResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(0),
        controller,
        request,
        com.ywt.gapi.taihe.register.CreateRegisteredResponse.getDefaultInstance());
    }


    public com.ywt.gapi.taihe.register.CancelRegisteredResponse cancelRegistered(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.CancelRegisteredRequest request)
        throws com.google.protobuf.ServiceException {
      return (com.ywt.gapi.taihe.register.CancelRegisteredResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(1),
        controller,
        request,
        com.ywt.gapi.taihe.register.CancelRegisteredResponse.getDefaultInstance());
    }


    public com.ywt.gapi.taihe.register.PayCallbackResponse payCallback(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.PayCallbackRequest request)
        throws com.google.protobuf.ServiceException {
      return (com.ywt.gapi.taihe.register.PayCallbackResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(2),
        controller,
        request,
        com.ywt.gapi.taihe.register.PayCallbackResponse.getDefaultInstance());
    }


    public com.ywt.gapi.taihe.register.RefundCallbackResponse refundCallback(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.RefundCallbackRequest request)
        throws com.google.protobuf.ServiceException {
      return (com.ywt.gapi.taihe.register.RefundCallbackResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(3),
        controller,
        request,
        com.ywt.gapi.taihe.register.RefundCallbackResponse.getDefaultInstance());
    }


    public com.ywt.gapi.taihe.register.RegisterResponse register(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.RegisterRequest request)
        throws com.google.protobuf.ServiceException {
      return (com.ywt.gapi.taihe.register.RegisterResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(4),
        controller,
        request,
        com.ywt.gapi.taihe.register.RegisterResponse.getDefaultInstance());
    }


    public com.ywt.gapi.taihe.register.TakeResponse take(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.TakeRequest request)
        throws com.google.protobuf.ServiceException {
      return (com.ywt.gapi.taihe.register.TakeResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(5),
        controller,
        request,
        com.ywt.gapi.taihe.register.TakeResponse.getDefaultInstance());
    }


    public com.ywt.gapi.taihe.register.GetQueueListResponse getQueueList(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.GetQueueListRequest request)
        throws com.google.protobuf.ServiceException {
      return (com.ywt.gapi.taihe.register.GetQueueListResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(6),
        controller,
        request,
        com.ywt.gapi.taihe.register.GetQueueListResponse.getDefaultInstance());
    }


    public com.ywt.gapi.taihe.register.GetCommonOrderListResponse getCommonOrderList(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.GetCommonOrderListRequest request)
        throws com.google.protobuf.ServiceException {
      return (com.ywt.gapi.taihe.register.GetCommonOrderListResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(7),
        controller,
        request,
        com.ywt.gapi.taihe.register.GetCommonOrderListResponse.getDefaultInstance());
    }


    public com.ywt.gapi.taihe.register.GetRegisteredListResponse getRegisteredList(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.GetRegisteredListRequest request)
        throws com.google.protobuf.ServiceException {
      return (com.ywt.gapi.taihe.register.GetRegisteredListResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(8),
        controller,
        request,
        com.ywt.gapi.taihe.register.GetRegisteredListResponse.getDefaultInstance());
    }


    public com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardResponse registerWithoutMedicalCard(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardRequest request)
        throws com.google.protobuf.ServiceException {
      return (com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(9),
        controller,
        request,
        com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardResponse.getDefaultInstance());
    }


    public com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdResponse getOfflineConsultInfoByDoctorId(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdRequest request)
        throws com.google.protobuf.ServiceException {
      return (com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(10),
        controller,
        request,
        com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdResponse.getDefaultInstance());
    }


    public com.ywt.gapi.taihe.register.GetLatestRegOrderResponse getLatestRegOrder(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.GetLatestRegOrderRequest request)
        throws com.google.protobuf.ServiceException {
      return (com.ywt.gapi.taihe.register.GetLatestRegOrderResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(11),
        controller,
        request,
        com.ywt.gapi.taihe.register.GetLatestRegOrderResponse.getDefaultInstance());
    }


    public com.ywt.gapi.taihe.register.CalAdditionalFeeResponse calAdditionalFee(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.CalAdditionalFeeRequest request)
        throws com.google.protobuf.ServiceException {
      return (com.ywt.gapi.taihe.register.CalAdditionalFeeResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(12),
        controller,
        request,
        com.ywt.gapi.taihe.register.CalAdditionalFeeResponse.getDefaultInstance());
    }


    public com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileResponse getHisPatientIdByUserIdAndMobile(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileRequest request)
        throws com.google.protobuf.ServiceException {
      return (com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(13),
        controller,
        request,
        com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileResponse.getDefaultInstance());
    }


    public com.ywt.gapi.taihe.register.CreateMedicalCardResponse createMedicalCard(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.taihe.register.CreateMedicalCardRequest request)
        throws com.google.protobuf.ServiceException {
      return (com.ywt.gapi.taihe.register.CreateMedicalCardResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(14),
        controller,
        request,
        com.ywt.gapi.taihe.register.CreateMedicalCardResponse.getDefaultInstance());
    }

  }

  // @@protoc_insertion_point(class_scope:com.ywt.gapi.taihe.register.TaiheRegisterService)
}

