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

package com.ywt.gapi.wx_ins_pay;

/**
 * <pre>
 * 微信医保支付接口，实现在中控-wxInsPay-index.js
 * </pre>
 *
 * Protobuf service {@code com.ywt.gapi.wx_ins_pay.WxInsPayService}
 */
public  abstract class WxInsPayService
    implements com.google.protobuf.Service {
  protected WxInsPayService() {}

  public interface Interface {
    /**
     * <pre>
     * 挂号/诊间支付统一下单 API 接口
     * </pre>
     *
     * <code>rpc createPayInsOrder(.com.ywt.gapi.wx_ins_pay.CreatePayInsOrderRequest) returns (.com.ywt.gapi.wx_ins_pay.CreatePayInsOrderResponse);</code>
     */
    public abstract void createPayInsOrder(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.wx_ins_pay.CreatePayInsOrderRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.wx_ins_pay.CreatePayInsOrderResponse> done);

    /**
     * <pre>
     * 查询订单
     * </pre>
     *
     * <code>rpc queryPayInsOrder(.com.ywt.gapi.wx_ins_pay.QueryPayInsOrderRequest) returns (.com.ywt.gapi.wx_ins_pay.QueryPayInsOrderResponse);</code>
     */
    public abstract void queryPayInsOrder(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.wx_ins_pay.QueryPayInsOrderRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.wx_ins_pay.QueryPayInsOrderResponse> done);

    /**
     * <pre>
     * 支付回调
     * </pre>
     *
     * <code>rpc wxPayCallback(.com.ywt.gapi.wx_ins_pay.WxPayCallbackRequest) returns (.com.ywt.gapi.wx_ins_pay.WxPayCallbackResponse);</code>
     */
    public abstract void wxPayCallback(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.wx_ins_pay.WxPayCallbackRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.wx_ins_pay.WxPayCallbackResponse> done);

    /**
     * <pre>
     * 退款
     * rpc refund (RefundRequest) returns (RefundResponse);
     * 查询医保卡信息/查询是否绑定医保卡
     * </pre>
     *
     * <code>rpc verifyMedInfo(.com.ywt.gapi.wx_ins_pay.VerifyMedInfoRequest) returns (.com.ywt.gapi.wx_ins_pay.VerifyMedInfoResponse);</code>
     */
    public abstract void verifyMedInfo(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.wx_ins_pay.VerifyMedInfoRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.wx_ins_pay.VerifyMedInfoResponse> done);

    /**
     * <pre>
     * 把订单标记为删除，主要用于腾讯下单失败时将已生成的订单删除，让用户可以重新下单。为了方便线上测试，把该方法实现放在医保服务中
     * </pre>
     *
     * <code>rpc markOpOrderDeleted(.com.ywt.gapi.wx_ins_pay.MarkOpOrderDeletedRequest) returns (.com.ywt.gapi.wx_ins_pay.MarkOpOrderDeletedResponse);</code>
     */
    public abstract void markOpOrderDeleted(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.wx_ins_pay.MarkOpOrderDeletedRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.wx_ins_pay.MarkOpOrderDeletedResponse> done);

    /**
     * <pre>
     * 自费门诊订单，微信支付原路退回成功回调
     * </pre>
     *
     * <code>rpc wechatAutoRefundCallback(.com.ywt.gapi.wx_ins_pay.WechatAutoRefundCallbackRequest) returns (.com.ywt.gapi.wx_ins_pay.WechatAutoRefundCallbackResponse);</code>
     */
    public abstract void wechatAutoRefundCallback(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.wx_ins_pay.WechatAutoRefundCallbackRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.wx_ins_pay.WechatAutoRefundCallbackResponse> done);

  }

  public static com.google.protobuf.Service newReflectiveService(
      final Interface impl) {
    return new WxInsPayService() {
      @java.lang.Override
      public  void createPayInsOrder(
          com.google.protobuf.RpcController controller,
          com.ywt.gapi.wx_ins_pay.CreatePayInsOrderRequest request,
          com.google.protobuf.RpcCallback<com.ywt.gapi.wx_ins_pay.CreatePayInsOrderResponse> done) {
        impl.createPayInsOrder(controller, request, done);
      }

      @java.lang.Override
      public  void queryPayInsOrder(
          com.google.protobuf.RpcController controller,
          com.ywt.gapi.wx_ins_pay.QueryPayInsOrderRequest request,
          com.google.protobuf.RpcCallback<com.ywt.gapi.wx_ins_pay.QueryPayInsOrderResponse> done) {
        impl.queryPayInsOrder(controller, request, done);
      }

      @java.lang.Override
      public  void wxPayCallback(
          com.google.protobuf.RpcController controller,
          com.ywt.gapi.wx_ins_pay.WxPayCallbackRequest request,
          com.google.protobuf.RpcCallback<com.ywt.gapi.wx_ins_pay.WxPayCallbackResponse> done) {
        impl.wxPayCallback(controller, request, done);
      }

      @java.lang.Override
      public  void verifyMedInfo(
          com.google.protobuf.RpcController controller,
          com.ywt.gapi.wx_ins_pay.VerifyMedInfoRequest request,
          com.google.protobuf.RpcCallback<com.ywt.gapi.wx_ins_pay.VerifyMedInfoResponse> done) {
        impl.verifyMedInfo(controller, request, done);
      }

      @java.lang.Override
      public  void markOpOrderDeleted(
          com.google.protobuf.RpcController controller,
          com.ywt.gapi.wx_ins_pay.MarkOpOrderDeletedRequest request,
          com.google.protobuf.RpcCallback<com.ywt.gapi.wx_ins_pay.MarkOpOrderDeletedResponse> done) {
        impl.markOpOrderDeleted(controller, request, done);
      }

      @java.lang.Override
      public  void wechatAutoRefundCallback(
          com.google.protobuf.RpcController controller,
          com.ywt.gapi.wx_ins_pay.WechatAutoRefundCallbackRequest request,
          com.google.protobuf.RpcCallback<com.ywt.gapi.wx_ins_pay.WechatAutoRefundCallbackResponse> done) {
        impl.wechatAutoRefundCallback(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.createPayInsOrder(controller, (com.ywt.gapi.wx_ins_pay.CreatePayInsOrderRequest)request);
          case 1:
            return impl.queryPayInsOrder(controller, (com.ywt.gapi.wx_ins_pay.QueryPayInsOrderRequest)request);
          case 2:
            return impl.wxPayCallback(controller, (com.ywt.gapi.wx_ins_pay.WxPayCallbackRequest)request);
          case 3:
            return impl.verifyMedInfo(controller, (com.ywt.gapi.wx_ins_pay.VerifyMedInfoRequest)request);
          case 4:
            return impl.markOpOrderDeleted(controller, (com.ywt.gapi.wx_ins_pay.MarkOpOrderDeletedRequest)request);
          case 5:
            return impl.wechatAutoRefundCallback(controller, (com.ywt.gapi.wx_ins_pay.WechatAutoRefundCallbackRequest)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.wx_ins_pay.CreatePayInsOrderRequest.getDefaultInstance();
          case 1:
            return com.ywt.gapi.wx_ins_pay.QueryPayInsOrderRequest.getDefaultInstance();
          case 2:
            return com.ywt.gapi.wx_ins_pay.WxPayCallbackRequest.getDefaultInstance();
          case 3:
            return com.ywt.gapi.wx_ins_pay.VerifyMedInfoRequest.getDefaultInstance();
          case 4:
            return com.ywt.gapi.wx_ins_pay.MarkOpOrderDeletedRequest.getDefaultInstance();
          case 5:
            return com.ywt.gapi.wx_ins_pay.WechatAutoRefundCallbackRequest.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.wx_ins_pay.CreatePayInsOrderResponse.getDefaultInstance();
          case 1:
            return com.ywt.gapi.wx_ins_pay.QueryPayInsOrderResponse.getDefaultInstance();
          case 2:
            return com.ywt.gapi.wx_ins_pay.WxPayCallbackResponse.getDefaultInstance();
          case 3:
            return com.ywt.gapi.wx_ins_pay.VerifyMedInfoResponse.getDefaultInstance();
          case 4:
            return com.ywt.gapi.wx_ins_pay.MarkOpOrderDeletedResponse.getDefaultInstance();
          case 5:
            return com.ywt.gapi.wx_ins_pay.WechatAutoRefundCallbackResponse.getDefaultInstance();
          default:
            throw new java.lang.AssertionError("Can't get here.");
        }
      }

    };
  }

  /**
   * <pre>
   * 挂号/诊间支付统一下单 API 接口
   * </pre>
   *
   * <code>rpc createPayInsOrder(.com.ywt.gapi.wx_ins_pay.CreatePayInsOrderRequest) returns (.com.ywt.gapi.wx_ins_pay.CreatePayInsOrderResponse);</code>
   */
  public abstract void createPayInsOrder(
      com.google.protobuf.RpcController controller,
      com.ywt.gapi.wx_ins_pay.CreatePayInsOrderRequest request,
      com.google.protobuf.RpcCallback<com.ywt.gapi.wx_ins_pay.CreatePayInsOrderResponse> done);

  /**
   * <pre>
   * 查询订单
   * </pre>
   *
   * <code>rpc queryPayInsOrder(.com.ywt.gapi.wx_ins_pay.QueryPayInsOrderRequest) returns (.com.ywt.gapi.wx_ins_pay.QueryPayInsOrderResponse);</code>
   */
  public abstract void queryPayInsOrder(
      com.google.protobuf.RpcController controller,
      com.ywt.gapi.wx_ins_pay.QueryPayInsOrderRequest request,
      com.google.protobuf.RpcCallback<com.ywt.gapi.wx_ins_pay.QueryPayInsOrderResponse> done);

  /**
   * <pre>
   * 支付回调
   * </pre>
   *
   * <code>rpc wxPayCallback(.com.ywt.gapi.wx_ins_pay.WxPayCallbackRequest) returns (.com.ywt.gapi.wx_ins_pay.WxPayCallbackResponse);</code>
   */
  public abstract void wxPayCallback(
      com.google.protobuf.RpcController controller,
      com.ywt.gapi.wx_ins_pay.WxPayCallbackRequest request,
      com.google.protobuf.RpcCallback<com.ywt.gapi.wx_ins_pay.WxPayCallbackResponse> done);

  /**
   * <pre>
   * 退款
   * rpc refund (RefundRequest) returns (RefundResponse);
   * 查询医保卡信息/查询是否绑定医保卡
   * </pre>
   *
   * <code>rpc verifyMedInfo(.com.ywt.gapi.wx_ins_pay.VerifyMedInfoRequest) returns (.com.ywt.gapi.wx_ins_pay.VerifyMedInfoResponse);</code>
   */
  public abstract void verifyMedInfo(
      com.google.protobuf.RpcController controller,
      com.ywt.gapi.wx_ins_pay.VerifyMedInfoRequest request,
      com.google.protobuf.RpcCallback<com.ywt.gapi.wx_ins_pay.VerifyMedInfoResponse> done);

  /**
   * <pre>
   * 把订单标记为删除，主要用于腾讯下单失败时将已生成的订单删除，让用户可以重新下单。为了方便线上测试，把该方法实现放在医保服务中
   * </pre>
   *
   * <code>rpc markOpOrderDeleted(.com.ywt.gapi.wx_ins_pay.MarkOpOrderDeletedRequest) returns (.com.ywt.gapi.wx_ins_pay.MarkOpOrderDeletedResponse);</code>
   */
  public abstract void markOpOrderDeleted(
      com.google.protobuf.RpcController controller,
      com.ywt.gapi.wx_ins_pay.MarkOpOrderDeletedRequest request,
      com.google.protobuf.RpcCallback<com.ywt.gapi.wx_ins_pay.MarkOpOrderDeletedResponse> done);

  /**
   * <pre>
   * 自费门诊订单，微信支付原路退回成功回调
   * </pre>
   *
   * <code>rpc wechatAutoRefundCallback(.com.ywt.gapi.wx_ins_pay.WechatAutoRefundCallbackRequest) returns (.com.ywt.gapi.wx_ins_pay.WechatAutoRefundCallbackResponse);</code>
   */
  public abstract void wechatAutoRefundCallback(
      com.google.protobuf.RpcController controller,
      com.ywt.gapi.wx_ins_pay.WechatAutoRefundCallbackRequest request,
      com.google.protobuf.RpcCallback<com.ywt.gapi.wx_ins_pay.WechatAutoRefundCallbackResponse> done);

  public static final
      com.google.protobuf.Descriptors.ServiceDescriptor
      getDescriptor() {
    return com.ywt.gapi.wx_ins_pay.WxInsPay.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.createPayInsOrder(controller, (com.ywt.gapi.wx_ins_pay.CreatePayInsOrderRequest)request,
          com.google.protobuf.RpcUtil.<com.ywt.gapi.wx_ins_pay.CreatePayInsOrderResponse>specializeCallback(
            done));
        return;
      case 1:
        this.queryPayInsOrder(controller, (com.ywt.gapi.wx_ins_pay.QueryPayInsOrderRequest)request,
          com.google.protobuf.RpcUtil.<com.ywt.gapi.wx_ins_pay.QueryPayInsOrderResponse>specializeCallback(
            done));
        return;
      case 2:
        this.wxPayCallback(controller, (com.ywt.gapi.wx_ins_pay.WxPayCallbackRequest)request,
          com.google.protobuf.RpcUtil.<com.ywt.gapi.wx_ins_pay.WxPayCallbackResponse>specializeCallback(
            done));
        return;
      case 3:
        this.verifyMedInfo(controller, (com.ywt.gapi.wx_ins_pay.VerifyMedInfoRequest)request,
          com.google.protobuf.RpcUtil.<com.ywt.gapi.wx_ins_pay.VerifyMedInfoResponse>specializeCallback(
            done));
        return;
      case 4:
        this.markOpOrderDeleted(controller, (com.ywt.gapi.wx_ins_pay.MarkOpOrderDeletedRequest)request,
          com.google.protobuf.RpcUtil.<com.ywt.gapi.wx_ins_pay.MarkOpOrderDeletedResponse>specializeCallback(
            done));
        return;
      case 5:
        this.wechatAutoRefundCallback(controller, (com.ywt.gapi.wx_ins_pay.WechatAutoRefundCallbackRequest)request,
          com.google.protobuf.RpcUtil.<com.ywt.gapi.wx_ins_pay.WechatAutoRefundCallbackResponse>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.wx_ins_pay.CreatePayInsOrderRequest.getDefaultInstance();
      case 1:
        return com.ywt.gapi.wx_ins_pay.QueryPayInsOrderRequest.getDefaultInstance();
      case 2:
        return com.ywt.gapi.wx_ins_pay.WxPayCallbackRequest.getDefaultInstance();
      case 3:
        return com.ywt.gapi.wx_ins_pay.VerifyMedInfoRequest.getDefaultInstance();
      case 4:
        return com.ywt.gapi.wx_ins_pay.MarkOpOrderDeletedRequest.getDefaultInstance();
      case 5:
        return com.ywt.gapi.wx_ins_pay.WechatAutoRefundCallbackRequest.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.wx_ins_pay.CreatePayInsOrderResponse.getDefaultInstance();
      case 1:
        return com.ywt.gapi.wx_ins_pay.QueryPayInsOrderResponse.getDefaultInstance();
      case 2:
        return com.ywt.gapi.wx_ins_pay.WxPayCallbackResponse.getDefaultInstance();
      case 3:
        return com.ywt.gapi.wx_ins_pay.VerifyMedInfoResponse.getDefaultInstance();
      case 4:
        return com.ywt.gapi.wx_ins_pay.MarkOpOrderDeletedResponse.getDefaultInstance();
      case 5:
        return com.ywt.gapi.wx_ins_pay.WechatAutoRefundCallbackResponse.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.wx_ins_pay.WxInsPayService 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 createPayInsOrder(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.wx_ins_pay.CreatePayInsOrderRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.wx_ins_pay.CreatePayInsOrderResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(0),
        controller,
        request,
        com.ywt.gapi.wx_ins_pay.CreatePayInsOrderResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          com.ywt.gapi.wx_ins_pay.CreatePayInsOrderResponse.class,
          com.ywt.gapi.wx_ins_pay.CreatePayInsOrderResponse.getDefaultInstance()));
    }

    public  void queryPayInsOrder(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.wx_ins_pay.QueryPayInsOrderRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.wx_ins_pay.QueryPayInsOrderResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(1),
        controller,
        request,
        com.ywt.gapi.wx_ins_pay.QueryPayInsOrderResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          com.ywt.gapi.wx_ins_pay.QueryPayInsOrderResponse.class,
          com.ywt.gapi.wx_ins_pay.QueryPayInsOrderResponse.getDefaultInstance()));
    }

    public  void wxPayCallback(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.wx_ins_pay.WxPayCallbackRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.wx_ins_pay.WxPayCallbackResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(2),
        controller,
        request,
        com.ywt.gapi.wx_ins_pay.WxPayCallbackResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          com.ywt.gapi.wx_ins_pay.WxPayCallbackResponse.class,
          com.ywt.gapi.wx_ins_pay.WxPayCallbackResponse.getDefaultInstance()));
    }

    public  void verifyMedInfo(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.wx_ins_pay.VerifyMedInfoRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.wx_ins_pay.VerifyMedInfoResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(3),
        controller,
        request,
        com.ywt.gapi.wx_ins_pay.VerifyMedInfoResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          com.ywt.gapi.wx_ins_pay.VerifyMedInfoResponse.class,
          com.ywt.gapi.wx_ins_pay.VerifyMedInfoResponse.getDefaultInstance()));
    }

    public  void markOpOrderDeleted(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.wx_ins_pay.MarkOpOrderDeletedRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.wx_ins_pay.MarkOpOrderDeletedResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(4),
        controller,
        request,
        com.ywt.gapi.wx_ins_pay.MarkOpOrderDeletedResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          com.ywt.gapi.wx_ins_pay.MarkOpOrderDeletedResponse.class,
          com.ywt.gapi.wx_ins_pay.MarkOpOrderDeletedResponse.getDefaultInstance()));
    }

    public  void wechatAutoRefundCallback(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.wx_ins_pay.WechatAutoRefundCallbackRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.wx_ins_pay.WechatAutoRefundCallbackResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(5),
        controller,
        request,
        com.ywt.gapi.wx_ins_pay.WechatAutoRefundCallbackResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          com.ywt.gapi.wx_ins_pay.WechatAutoRefundCallbackResponse.class,
          com.ywt.gapi.wx_ins_pay.WechatAutoRefundCallbackResponse.getDefaultInstance()));
    }
  }

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

  public interface BlockingInterface {
    public com.ywt.gapi.wx_ins_pay.CreatePayInsOrderResponse createPayInsOrder(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.wx_ins_pay.CreatePayInsOrderRequest request)
        throws com.google.protobuf.ServiceException;

    public com.ywt.gapi.wx_ins_pay.QueryPayInsOrderResponse queryPayInsOrder(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.wx_ins_pay.QueryPayInsOrderRequest request)
        throws com.google.protobuf.ServiceException;

    public com.ywt.gapi.wx_ins_pay.WxPayCallbackResponse wxPayCallback(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.wx_ins_pay.WxPayCallbackRequest request)
        throws com.google.protobuf.ServiceException;

    public com.ywt.gapi.wx_ins_pay.VerifyMedInfoResponse verifyMedInfo(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.wx_ins_pay.VerifyMedInfoRequest request)
        throws com.google.protobuf.ServiceException;

    public com.ywt.gapi.wx_ins_pay.MarkOpOrderDeletedResponse markOpOrderDeleted(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.wx_ins_pay.MarkOpOrderDeletedRequest request)
        throws com.google.protobuf.ServiceException;

    public com.ywt.gapi.wx_ins_pay.WechatAutoRefundCallbackResponse wechatAutoRefundCallback(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.wx_ins_pay.WechatAutoRefundCallbackRequest 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.wx_ins_pay.CreatePayInsOrderResponse createPayInsOrder(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.wx_ins_pay.CreatePayInsOrderRequest request)
        throws com.google.protobuf.ServiceException {
      return (com.ywt.gapi.wx_ins_pay.CreatePayInsOrderResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(0),
        controller,
        request,
        com.ywt.gapi.wx_ins_pay.CreatePayInsOrderResponse.getDefaultInstance());
    }


    public com.ywt.gapi.wx_ins_pay.QueryPayInsOrderResponse queryPayInsOrder(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.wx_ins_pay.QueryPayInsOrderRequest request)
        throws com.google.protobuf.ServiceException {
      return (com.ywt.gapi.wx_ins_pay.QueryPayInsOrderResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(1),
        controller,
        request,
        com.ywt.gapi.wx_ins_pay.QueryPayInsOrderResponse.getDefaultInstance());
    }


    public com.ywt.gapi.wx_ins_pay.WxPayCallbackResponse wxPayCallback(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.wx_ins_pay.WxPayCallbackRequest request)
        throws com.google.protobuf.ServiceException {
      return (com.ywt.gapi.wx_ins_pay.WxPayCallbackResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(2),
        controller,
        request,
        com.ywt.gapi.wx_ins_pay.WxPayCallbackResponse.getDefaultInstance());
    }


    public com.ywt.gapi.wx_ins_pay.VerifyMedInfoResponse verifyMedInfo(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.wx_ins_pay.VerifyMedInfoRequest request)
        throws com.google.protobuf.ServiceException {
      return (com.ywt.gapi.wx_ins_pay.VerifyMedInfoResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(3),
        controller,
        request,
        com.ywt.gapi.wx_ins_pay.VerifyMedInfoResponse.getDefaultInstance());
    }


    public com.ywt.gapi.wx_ins_pay.MarkOpOrderDeletedResponse markOpOrderDeleted(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.wx_ins_pay.MarkOpOrderDeletedRequest request)
        throws com.google.protobuf.ServiceException {
      return (com.ywt.gapi.wx_ins_pay.MarkOpOrderDeletedResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(4),
        controller,
        request,
        com.ywt.gapi.wx_ins_pay.MarkOpOrderDeletedResponse.getDefaultInstance());
    }


    public com.ywt.gapi.wx_ins_pay.WechatAutoRefundCallbackResponse wechatAutoRefundCallback(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.wx_ins_pay.WechatAutoRefundCallbackRequest request)
        throws com.google.protobuf.ServiceException {
      return (com.ywt.gapi.wx_ins_pay.WechatAutoRefundCallbackResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(5),
        controller,
        request,
        com.ywt.gapi.wx_ins_pay.WechatAutoRefundCallbackResponse.getDefaultInstance());
    }

  }

  // @@protoc_insertion_point(class_scope:com.ywt.gapi.wx_ins_pay.WxInsPayService)
}

