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

package com.ywt.gapi.ordercenter;

/**
 * <pre>
 *订单中心服务  // 对应 rpc-ordercenter-service 项目的 OrderCenterServiceImpl 类
 * </pre>
 *
 * Protobuf service {@code com.ywt.gapi.ordercenter.OrderCenterService}
 */
public  abstract class OrderCenterService
    implements com.google.protobuf.Service {
  protected OrderCenterService() {}

  public interface Interface {
    /**
     * <pre>
     *创建订单
     * </pre>
     *
     * <code>rpc createOrder(.com.ywt.gapi.ordercenter.CreateOrderRequest) returns (.com.ywt.gapi.ordercenter.CreateOrderResponse);</code>
     */
    public abstract void createOrder(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.CreateOrderRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.CreateOrderResponse> done);

    /**
     * <pre>
     *管理员线下收费
     * </pre>
     *
     * <code>rpc payByAdmin(.com.ywt.gapi.ordercenter.PayByAdminRequest) returns (.com.ywt.gapi.ordercenter.PayByAdminResponse);</code>
     */
    public abstract void payByAdmin(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.PayByAdminRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.PayByAdminResponse> done);

    /**
     * <pre>
     *微信支付方式支付订单
     * </pre>
     *
     * <code>rpc wechatPayment(.com.ywt.gapi.ordercenter.WechatPaymentRequest) returns (.com.ywt.gapi.ordercenter.WechatPaymentResponse);</code>
     */
    public abstract void wechatPayment(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.WechatPaymentRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.WechatPaymentResponse> done);

    /**
     * <pre>
     *支付中心微信支付成功后回调通知
     * </pre>
     *
     * <code>rpc WechatPaymentNotify(.com.ywt.gapi.ordercenter.WechatPaymentNotifyRequest) returns (.com.ywt.gapi.ordercenter.WechatPaymentNotifyResponse);</code>
     */
    public abstract void wechatPaymentNotify(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.WechatPaymentNotifyRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.WechatPaymentNotifyResponse> done);

    /**
     * <pre>
     *获取订单信息
     * </pre>
     *
     * <code>rpc getOrderInfo(.com.ywt.gapi.ordercenter.GetOrderInfoRequest) returns (.com.ywt.gapi.ordercenter.GetOrderInfeResponse);</code>
     */
    public abstract void getOrderInfo(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.GetOrderInfoRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.GetOrderInfeResponse> done);

    /**
     * <pre>
     *更新订单信息
     * </pre>
     *
     * <code>rpc updateOrderInfo(.com.ywt.gapi.ordercenter.UpdateOrderInfoRequest) returns (.com.ywt.gapi.ordercenter.UpdateOrderInfoResponse);</code>
     */
    public abstract void updateOrderInfo(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.UpdateOrderInfoRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.UpdateOrderInfoResponse> done);

    /**
     * <pre>
     *退款
     * </pre>
     *
     * <code>rpc refund(.com.ywt.gapi.ordercenter.RefundRequest) returns (.com.ywt.gapi.ordercenter.RefundResponse);</code>
     */
    public abstract void refund(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.RefundRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.RefundResponse> done);

    /**
     * <pre>
     *支付中心微信退款成功通知
     * </pre>
     *
     * <code>rpc wechatRefundNotify(.com.ywt.gapi.ordercenter.WechatRefundNotifyRequest) returns (.com.ywt.gapi.ordercenter.WechatRefundNotifyResponse);</code>
     */
    public abstract void wechatRefundNotify(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.WechatRefundNotifyRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.WechatRefundNotifyResponse> done);

    /**
     * <pre>
     *获取订单中心账单
     * </pre>
     *
     * <code>rpc getOrderBill(.com.ywt.gapi.ordercenter.GetOrderBillRequest) returns (.com.ywt.gapi.ordercenter.GetOrderBillResponse);</code>
     */
    public abstract void getOrderBill(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.GetOrderBillRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.GetOrderBillResponse> done);

    /**
     * <pre>
     *POS机申请预支付信息
     * </pre>
     *
     * <code>rpc prePayByPOS(.com.ywt.gapi.ordercenter.PrePayByPOSRequest) returns (.com.ywt.gapi.ordercenter.PrePayByPOSResponse);</code>
     */
    public abstract void prePayByPOS(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.PrePayByPOSRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.PrePayByPOSResponse> done);

    /**
     * <pre>
     *POS机完成支付信息更新
     * </pre>
     *
     * <code>rpc finishPayByPOS(.com.ywt.gapi.ordercenter.FinishPayByPOSRequest) returns (.com.ywt.gapi.ordercenter.FinishPayByPOSResponse);</code>
     */
    public abstract void finishPayByPOS(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.FinishPayByPOSRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.FinishPayByPOSResponse> done);

    /**
     * <pre>
     *ICBC支付方式支付订单
     * </pre>
     *
     * <code>rpc icbcPayment(.com.ywt.gapi.ordercenter.ICBCPaymentRequest) returns (.com.ywt.gapi.ordercenter.ICBCPaymentResponse);</code>
     */
    public abstract void icbcPayment(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.ICBCPaymentRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.ICBCPaymentResponse> done);

    /**
     * <pre>
     *支付中心ICBC支付成功后回调通知
     * </pre>
     *
     * <code>rpc icbcPaymentNotify(.com.ywt.gapi.ordercenter.ICBCPaymentNotifyRequest) returns (.com.ywt.gapi.ordercenter.ICBCPaymentNotifyResponse);</code>
     */
    public abstract void icbcPaymentNotify(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.ICBCPaymentNotifyRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.ICBCPaymentNotifyResponse> done);

    /**
     * <pre>
     *支付中心工行退款成功通知
     * </pre>
     *
     * <code>rpc icbcRefundNotify(.com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest) returns (.com.ywt.gapi.ordercenter.ICBCRefundNotifyResponse);</code>
     */
    public abstract void icbcRefundNotify(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.ICBCRefundNotifyResponse> done);

    /**
     * <pre>
     *清除支付锁
     * </pre>
     *
     * <code>rpc cleanPayLock(.com.ywt.gapi.ordercenter.CleanPayLockRequest) returns (.com.ywt.gapi.ordercenter.CleanPayLockResponse);</code>
     */
    public abstract void cleanPayLock(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.CleanPayLockRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.CleanPayLockResponse> done);

    /**
     * <pre>
     *判断是否在支付中
     * </pre>
     *
     * <code>rpc checkIsPaying(.com.ywt.gapi.ordercenter.CheckIsPayingRequest) returns (.com.ywt.gapi.ordercenter.CheckIsPayingResponse);</code>
     */
    public abstract void checkIsPaying(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.CheckIsPayingRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.CheckIsPayingResponse> done);

  }

  public static com.google.protobuf.Service newReflectiveService(
      final Interface impl) {
    return new OrderCenterService() {
      @java.lang.Override
      public  void createOrder(
          com.google.protobuf.RpcController controller,
          com.ywt.gapi.ordercenter.CreateOrderRequest request,
          com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.CreateOrderResponse> done) {
        impl.createOrder(controller, request, done);
      }

      @java.lang.Override
      public  void payByAdmin(
          com.google.protobuf.RpcController controller,
          com.ywt.gapi.ordercenter.PayByAdminRequest request,
          com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.PayByAdminResponse> done) {
        impl.payByAdmin(controller, request, done);
      }

      @java.lang.Override
      public  void wechatPayment(
          com.google.protobuf.RpcController controller,
          com.ywt.gapi.ordercenter.WechatPaymentRequest request,
          com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.WechatPaymentResponse> done) {
        impl.wechatPayment(controller, request, done);
      }

      @java.lang.Override
      public  void wechatPaymentNotify(
          com.google.protobuf.RpcController controller,
          com.ywt.gapi.ordercenter.WechatPaymentNotifyRequest request,
          com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.WechatPaymentNotifyResponse> done) {
        impl.wechatPaymentNotify(controller, request, done);
      }

      @java.lang.Override
      public  void getOrderInfo(
          com.google.protobuf.RpcController controller,
          com.ywt.gapi.ordercenter.GetOrderInfoRequest request,
          com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.GetOrderInfeResponse> done) {
        impl.getOrderInfo(controller, request, done);
      }

      @java.lang.Override
      public  void updateOrderInfo(
          com.google.protobuf.RpcController controller,
          com.ywt.gapi.ordercenter.UpdateOrderInfoRequest request,
          com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.UpdateOrderInfoResponse> done) {
        impl.updateOrderInfo(controller, request, done);
      }

      @java.lang.Override
      public  void refund(
          com.google.protobuf.RpcController controller,
          com.ywt.gapi.ordercenter.RefundRequest request,
          com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.RefundResponse> done) {
        impl.refund(controller, request, done);
      }

      @java.lang.Override
      public  void wechatRefundNotify(
          com.google.protobuf.RpcController controller,
          com.ywt.gapi.ordercenter.WechatRefundNotifyRequest request,
          com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.WechatRefundNotifyResponse> done) {
        impl.wechatRefundNotify(controller, request, done);
      }

      @java.lang.Override
      public  void getOrderBill(
          com.google.protobuf.RpcController controller,
          com.ywt.gapi.ordercenter.GetOrderBillRequest request,
          com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.GetOrderBillResponse> done) {
        impl.getOrderBill(controller, request, done);
      }

      @java.lang.Override
      public  void prePayByPOS(
          com.google.protobuf.RpcController controller,
          com.ywt.gapi.ordercenter.PrePayByPOSRequest request,
          com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.PrePayByPOSResponse> done) {
        impl.prePayByPOS(controller, request, done);
      }

      @java.lang.Override
      public  void finishPayByPOS(
          com.google.protobuf.RpcController controller,
          com.ywt.gapi.ordercenter.FinishPayByPOSRequest request,
          com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.FinishPayByPOSResponse> done) {
        impl.finishPayByPOS(controller, request, done);
      }

      @java.lang.Override
      public  void icbcPayment(
          com.google.protobuf.RpcController controller,
          com.ywt.gapi.ordercenter.ICBCPaymentRequest request,
          com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.ICBCPaymentResponse> done) {
        impl.icbcPayment(controller, request, done);
      }

      @java.lang.Override
      public  void icbcPaymentNotify(
          com.google.protobuf.RpcController controller,
          com.ywt.gapi.ordercenter.ICBCPaymentNotifyRequest request,
          com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.ICBCPaymentNotifyResponse> done) {
        impl.icbcPaymentNotify(controller, request, done);
      }

      @java.lang.Override
      public  void icbcRefundNotify(
          com.google.protobuf.RpcController controller,
          com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest request,
          com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.ICBCRefundNotifyResponse> done) {
        impl.icbcRefundNotify(controller, request, done);
      }

      @java.lang.Override
      public  void cleanPayLock(
          com.google.protobuf.RpcController controller,
          com.ywt.gapi.ordercenter.CleanPayLockRequest request,
          com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.CleanPayLockResponse> done) {
        impl.cleanPayLock(controller, request, done);
      }

      @java.lang.Override
      public  void checkIsPaying(
          com.google.protobuf.RpcController controller,
          com.ywt.gapi.ordercenter.CheckIsPayingRequest request,
          com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.CheckIsPayingResponse> done) {
        impl.checkIsPaying(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.createOrder(controller, (com.ywt.gapi.ordercenter.CreateOrderRequest)request);
          case 1:
            return impl.payByAdmin(controller, (com.ywt.gapi.ordercenter.PayByAdminRequest)request);
          case 2:
            return impl.wechatPayment(controller, (com.ywt.gapi.ordercenter.WechatPaymentRequest)request);
          case 3:
            return impl.wechatPaymentNotify(controller, (com.ywt.gapi.ordercenter.WechatPaymentNotifyRequest)request);
          case 4:
            return impl.getOrderInfo(controller, (com.ywt.gapi.ordercenter.GetOrderInfoRequest)request);
          case 5:
            return impl.updateOrderInfo(controller, (com.ywt.gapi.ordercenter.UpdateOrderInfoRequest)request);
          case 6:
            return impl.refund(controller, (com.ywt.gapi.ordercenter.RefundRequest)request);
          case 7:
            return impl.wechatRefundNotify(controller, (com.ywt.gapi.ordercenter.WechatRefundNotifyRequest)request);
          case 8:
            return impl.getOrderBill(controller, (com.ywt.gapi.ordercenter.GetOrderBillRequest)request);
          case 9:
            return impl.prePayByPOS(controller, (com.ywt.gapi.ordercenter.PrePayByPOSRequest)request);
          case 10:
            return impl.finishPayByPOS(controller, (com.ywt.gapi.ordercenter.FinishPayByPOSRequest)request);
          case 11:
            return impl.icbcPayment(controller, (com.ywt.gapi.ordercenter.ICBCPaymentRequest)request);
          case 12:
            return impl.icbcPaymentNotify(controller, (com.ywt.gapi.ordercenter.ICBCPaymentNotifyRequest)request);
          case 13:
            return impl.icbcRefundNotify(controller, (com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest)request);
          case 14:
            return impl.cleanPayLock(controller, (com.ywt.gapi.ordercenter.CleanPayLockRequest)request);
          case 15:
            return impl.checkIsPaying(controller, (com.ywt.gapi.ordercenter.CheckIsPayingRequest)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.ordercenter.CreateOrderRequest.getDefaultInstance();
          case 1:
            return com.ywt.gapi.ordercenter.PayByAdminRequest.getDefaultInstance();
          case 2:
            return com.ywt.gapi.ordercenter.WechatPaymentRequest.getDefaultInstance();
          case 3:
            return com.ywt.gapi.ordercenter.WechatPaymentNotifyRequest.getDefaultInstance();
          case 4:
            return com.ywt.gapi.ordercenter.GetOrderInfoRequest.getDefaultInstance();
          case 5:
            return com.ywt.gapi.ordercenter.UpdateOrderInfoRequest.getDefaultInstance();
          case 6:
            return com.ywt.gapi.ordercenter.RefundRequest.getDefaultInstance();
          case 7:
            return com.ywt.gapi.ordercenter.WechatRefundNotifyRequest.getDefaultInstance();
          case 8:
            return com.ywt.gapi.ordercenter.GetOrderBillRequest.getDefaultInstance();
          case 9:
            return com.ywt.gapi.ordercenter.PrePayByPOSRequest.getDefaultInstance();
          case 10:
            return com.ywt.gapi.ordercenter.FinishPayByPOSRequest.getDefaultInstance();
          case 11:
            return com.ywt.gapi.ordercenter.ICBCPaymentRequest.getDefaultInstance();
          case 12:
            return com.ywt.gapi.ordercenter.ICBCPaymentNotifyRequest.getDefaultInstance();
          case 13:
            return com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.getDefaultInstance();
          case 14:
            return com.ywt.gapi.ordercenter.CleanPayLockRequest.getDefaultInstance();
          case 15:
            return com.ywt.gapi.ordercenter.CheckIsPayingRequest.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.ordercenter.CreateOrderResponse.getDefaultInstance();
          case 1:
            return com.ywt.gapi.ordercenter.PayByAdminResponse.getDefaultInstance();
          case 2:
            return com.ywt.gapi.ordercenter.WechatPaymentResponse.getDefaultInstance();
          case 3:
            return com.ywt.gapi.ordercenter.WechatPaymentNotifyResponse.getDefaultInstance();
          case 4:
            return com.ywt.gapi.ordercenter.GetOrderInfeResponse.getDefaultInstance();
          case 5:
            return com.ywt.gapi.ordercenter.UpdateOrderInfoResponse.getDefaultInstance();
          case 6:
            return com.ywt.gapi.ordercenter.RefundResponse.getDefaultInstance();
          case 7:
            return com.ywt.gapi.ordercenter.WechatRefundNotifyResponse.getDefaultInstance();
          case 8:
            return com.ywt.gapi.ordercenter.GetOrderBillResponse.getDefaultInstance();
          case 9:
            return com.ywt.gapi.ordercenter.PrePayByPOSResponse.getDefaultInstance();
          case 10:
            return com.ywt.gapi.ordercenter.FinishPayByPOSResponse.getDefaultInstance();
          case 11:
            return com.ywt.gapi.ordercenter.ICBCPaymentResponse.getDefaultInstance();
          case 12:
            return com.ywt.gapi.ordercenter.ICBCPaymentNotifyResponse.getDefaultInstance();
          case 13:
            return com.ywt.gapi.ordercenter.ICBCRefundNotifyResponse.getDefaultInstance();
          case 14:
            return com.ywt.gapi.ordercenter.CleanPayLockResponse.getDefaultInstance();
          case 15:
            return com.ywt.gapi.ordercenter.CheckIsPayingResponse.getDefaultInstance();
          default:
            throw new java.lang.AssertionError("Can't get here.");
        }
      }

    };
  }

  /**
   * <pre>
   *创建订单
   * </pre>
   *
   * <code>rpc createOrder(.com.ywt.gapi.ordercenter.CreateOrderRequest) returns (.com.ywt.gapi.ordercenter.CreateOrderResponse);</code>
   */
  public abstract void createOrder(
      com.google.protobuf.RpcController controller,
      com.ywt.gapi.ordercenter.CreateOrderRequest request,
      com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.CreateOrderResponse> done);

  /**
   * <pre>
   *管理员线下收费
   * </pre>
   *
   * <code>rpc payByAdmin(.com.ywt.gapi.ordercenter.PayByAdminRequest) returns (.com.ywt.gapi.ordercenter.PayByAdminResponse);</code>
   */
  public abstract void payByAdmin(
      com.google.protobuf.RpcController controller,
      com.ywt.gapi.ordercenter.PayByAdminRequest request,
      com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.PayByAdminResponse> done);

  /**
   * <pre>
   *微信支付方式支付订单
   * </pre>
   *
   * <code>rpc wechatPayment(.com.ywt.gapi.ordercenter.WechatPaymentRequest) returns (.com.ywt.gapi.ordercenter.WechatPaymentResponse);</code>
   */
  public abstract void wechatPayment(
      com.google.protobuf.RpcController controller,
      com.ywt.gapi.ordercenter.WechatPaymentRequest request,
      com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.WechatPaymentResponse> done);

  /**
   * <pre>
   *支付中心微信支付成功后回调通知
   * </pre>
   *
   * <code>rpc WechatPaymentNotify(.com.ywt.gapi.ordercenter.WechatPaymentNotifyRequest) returns (.com.ywt.gapi.ordercenter.WechatPaymentNotifyResponse);</code>
   */
  public abstract void wechatPaymentNotify(
      com.google.protobuf.RpcController controller,
      com.ywt.gapi.ordercenter.WechatPaymentNotifyRequest request,
      com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.WechatPaymentNotifyResponse> done);

  /**
   * <pre>
   *获取订单信息
   * </pre>
   *
   * <code>rpc getOrderInfo(.com.ywt.gapi.ordercenter.GetOrderInfoRequest) returns (.com.ywt.gapi.ordercenter.GetOrderInfeResponse);</code>
   */
  public abstract void getOrderInfo(
      com.google.protobuf.RpcController controller,
      com.ywt.gapi.ordercenter.GetOrderInfoRequest request,
      com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.GetOrderInfeResponse> done);

  /**
   * <pre>
   *更新订单信息
   * </pre>
   *
   * <code>rpc updateOrderInfo(.com.ywt.gapi.ordercenter.UpdateOrderInfoRequest) returns (.com.ywt.gapi.ordercenter.UpdateOrderInfoResponse);</code>
   */
  public abstract void updateOrderInfo(
      com.google.protobuf.RpcController controller,
      com.ywt.gapi.ordercenter.UpdateOrderInfoRequest request,
      com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.UpdateOrderInfoResponse> done);

  /**
   * <pre>
   *退款
   * </pre>
   *
   * <code>rpc refund(.com.ywt.gapi.ordercenter.RefundRequest) returns (.com.ywt.gapi.ordercenter.RefundResponse);</code>
   */
  public abstract void refund(
      com.google.protobuf.RpcController controller,
      com.ywt.gapi.ordercenter.RefundRequest request,
      com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.RefundResponse> done);

  /**
   * <pre>
   *支付中心微信退款成功通知
   * </pre>
   *
   * <code>rpc wechatRefundNotify(.com.ywt.gapi.ordercenter.WechatRefundNotifyRequest) returns (.com.ywt.gapi.ordercenter.WechatRefundNotifyResponse);</code>
   */
  public abstract void wechatRefundNotify(
      com.google.protobuf.RpcController controller,
      com.ywt.gapi.ordercenter.WechatRefundNotifyRequest request,
      com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.WechatRefundNotifyResponse> done);

  /**
   * <pre>
   *获取订单中心账单
   * </pre>
   *
   * <code>rpc getOrderBill(.com.ywt.gapi.ordercenter.GetOrderBillRequest) returns (.com.ywt.gapi.ordercenter.GetOrderBillResponse);</code>
   */
  public abstract void getOrderBill(
      com.google.protobuf.RpcController controller,
      com.ywt.gapi.ordercenter.GetOrderBillRequest request,
      com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.GetOrderBillResponse> done);

  /**
   * <pre>
   *POS机申请预支付信息
   * </pre>
   *
   * <code>rpc prePayByPOS(.com.ywt.gapi.ordercenter.PrePayByPOSRequest) returns (.com.ywt.gapi.ordercenter.PrePayByPOSResponse);</code>
   */
  public abstract void prePayByPOS(
      com.google.protobuf.RpcController controller,
      com.ywt.gapi.ordercenter.PrePayByPOSRequest request,
      com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.PrePayByPOSResponse> done);

  /**
   * <pre>
   *POS机完成支付信息更新
   * </pre>
   *
   * <code>rpc finishPayByPOS(.com.ywt.gapi.ordercenter.FinishPayByPOSRequest) returns (.com.ywt.gapi.ordercenter.FinishPayByPOSResponse);</code>
   */
  public abstract void finishPayByPOS(
      com.google.protobuf.RpcController controller,
      com.ywt.gapi.ordercenter.FinishPayByPOSRequest request,
      com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.FinishPayByPOSResponse> done);

  /**
   * <pre>
   *ICBC支付方式支付订单
   * </pre>
   *
   * <code>rpc icbcPayment(.com.ywt.gapi.ordercenter.ICBCPaymentRequest) returns (.com.ywt.gapi.ordercenter.ICBCPaymentResponse);</code>
   */
  public abstract void icbcPayment(
      com.google.protobuf.RpcController controller,
      com.ywt.gapi.ordercenter.ICBCPaymentRequest request,
      com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.ICBCPaymentResponse> done);

  /**
   * <pre>
   *支付中心ICBC支付成功后回调通知
   * </pre>
   *
   * <code>rpc icbcPaymentNotify(.com.ywt.gapi.ordercenter.ICBCPaymentNotifyRequest) returns (.com.ywt.gapi.ordercenter.ICBCPaymentNotifyResponse);</code>
   */
  public abstract void icbcPaymentNotify(
      com.google.protobuf.RpcController controller,
      com.ywt.gapi.ordercenter.ICBCPaymentNotifyRequest request,
      com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.ICBCPaymentNotifyResponse> done);

  /**
   * <pre>
   *支付中心工行退款成功通知
   * </pre>
   *
   * <code>rpc icbcRefundNotify(.com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest) returns (.com.ywt.gapi.ordercenter.ICBCRefundNotifyResponse);</code>
   */
  public abstract void icbcRefundNotify(
      com.google.protobuf.RpcController controller,
      com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest request,
      com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.ICBCRefundNotifyResponse> done);

  /**
   * <pre>
   *清除支付锁
   * </pre>
   *
   * <code>rpc cleanPayLock(.com.ywt.gapi.ordercenter.CleanPayLockRequest) returns (.com.ywt.gapi.ordercenter.CleanPayLockResponse);</code>
   */
  public abstract void cleanPayLock(
      com.google.protobuf.RpcController controller,
      com.ywt.gapi.ordercenter.CleanPayLockRequest request,
      com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.CleanPayLockResponse> done);

  /**
   * <pre>
   *判断是否在支付中
   * </pre>
   *
   * <code>rpc checkIsPaying(.com.ywt.gapi.ordercenter.CheckIsPayingRequest) returns (.com.ywt.gapi.ordercenter.CheckIsPayingResponse);</code>
   */
  public abstract void checkIsPaying(
      com.google.protobuf.RpcController controller,
      com.ywt.gapi.ordercenter.CheckIsPayingRequest request,
      com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.CheckIsPayingResponse> done);

  public static final
      com.google.protobuf.Descriptors.ServiceDescriptor
      getDescriptor() {
    return com.ywt.gapi.ordercenter.Ordercenter.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.createOrder(controller, (com.ywt.gapi.ordercenter.CreateOrderRequest)request,
          com.google.protobuf.RpcUtil.<com.ywt.gapi.ordercenter.CreateOrderResponse>specializeCallback(
            done));
        return;
      case 1:
        this.payByAdmin(controller, (com.ywt.gapi.ordercenter.PayByAdminRequest)request,
          com.google.protobuf.RpcUtil.<com.ywt.gapi.ordercenter.PayByAdminResponse>specializeCallback(
            done));
        return;
      case 2:
        this.wechatPayment(controller, (com.ywt.gapi.ordercenter.WechatPaymentRequest)request,
          com.google.protobuf.RpcUtil.<com.ywt.gapi.ordercenter.WechatPaymentResponse>specializeCallback(
            done));
        return;
      case 3:
        this.wechatPaymentNotify(controller, (com.ywt.gapi.ordercenter.WechatPaymentNotifyRequest)request,
          com.google.protobuf.RpcUtil.<com.ywt.gapi.ordercenter.WechatPaymentNotifyResponse>specializeCallback(
            done));
        return;
      case 4:
        this.getOrderInfo(controller, (com.ywt.gapi.ordercenter.GetOrderInfoRequest)request,
          com.google.protobuf.RpcUtil.<com.ywt.gapi.ordercenter.GetOrderInfeResponse>specializeCallback(
            done));
        return;
      case 5:
        this.updateOrderInfo(controller, (com.ywt.gapi.ordercenter.UpdateOrderInfoRequest)request,
          com.google.protobuf.RpcUtil.<com.ywt.gapi.ordercenter.UpdateOrderInfoResponse>specializeCallback(
            done));
        return;
      case 6:
        this.refund(controller, (com.ywt.gapi.ordercenter.RefundRequest)request,
          com.google.protobuf.RpcUtil.<com.ywt.gapi.ordercenter.RefundResponse>specializeCallback(
            done));
        return;
      case 7:
        this.wechatRefundNotify(controller, (com.ywt.gapi.ordercenter.WechatRefundNotifyRequest)request,
          com.google.protobuf.RpcUtil.<com.ywt.gapi.ordercenter.WechatRefundNotifyResponse>specializeCallback(
            done));
        return;
      case 8:
        this.getOrderBill(controller, (com.ywt.gapi.ordercenter.GetOrderBillRequest)request,
          com.google.protobuf.RpcUtil.<com.ywt.gapi.ordercenter.GetOrderBillResponse>specializeCallback(
            done));
        return;
      case 9:
        this.prePayByPOS(controller, (com.ywt.gapi.ordercenter.PrePayByPOSRequest)request,
          com.google.protobuf.RpcUtil.<com.ywt.gapi.ordercenter.PrePayByPOSResponse>specializeCallback(
            done));
        return;
      case 10:
        this.finishPayByPOS(controller, (com.ywt.gapi.ordercenter.FinishPayByPOSRequest)request,
          com.google.protobuf.RpcUtil.<com.ywt.gapi.ordercenter.FinishPayByPOSResponse>specializeCallback(
            done));
        return;
      case 11:
        this.icbcPayment(controller, (com.ywt.gapi.ordercenter.ICBCPaymentRequest)request,
          com.google.protobuf.RpcUtil.<com.ywt.gapi.ordercenter.ICBCPaymentResponse>specializeCallback(
            done));
        return;
      case 12:
        this.icbcPaymentNotify(controller, (com.ywt.gapi.ordercenter.ICBCPaymentNotifyRequest)request,
          com.google.protobuf.RpcUtil.<com.ywt.gapi.ordercenter.ICBCPaymentNotifyResponse>specializeCallback(
            done));
        return;
      case 13:
        this.icbcRefundNotify(controller, (com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest)request,
          com.google.protobuf.RpcUtil.<com.ywt.gapi.ordercenter.ICBCRefundNotifyResponse>specializeCallback(
            done));
        return;
      case 14:
        this.cleanPayLock(controller, (com.ywt.gapi.ordercenter.CleanPayLockRequest)request,
          com.google.protobuf.RpcUtil.<com.ywt.gapi.ordercenter.CleanPayLockResponse>specializeCallback(
            done));
        return;
      case 15:
        this.checkIsPaying(controller, (com.ywt.gapi.ordercenter.CheckIsPayingRequest)request,
          com.google.protobuf.RpcUtil.<com.ywt.gapi.ordercenter.CheckIsPayingResponse>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.ordercenter.CreateOrderRequest.getDefaultInstance();
      case 1:
        return com.ywt.gapi.ordercenter.PayByAdminRequest.getDefaultInstance();
      case 2:
        return com.ywt.gapi.ordercenter.WechatPaymentRequest.getDefaultInstance();
      case 3:
        return com.ywt.gapi.ordercenter.WechatPaymentNotifyRequest.getDefaultInstance();
      case 4:
        return com.ywt.gapi.ordercenter.GetOrderInfoRequest.getDefaultInstance();
      case 5:
        return com.ywt.gapi.ordercenter.UpdateOrderInfoRequest.getDefaultInstance();
      case 6:
        return com.ywt.gapi.ordercenter.RefundRequest.getDefaultInstance();
      case 7:
        return com.ywt.gapi.ordercenter.WechatRefundNotifyRequest.getDefaultInstance();
      case 8:
        return com.ywt.gapi.ordercenter.GetOrderBillRequest.getDefaultInstance();
      case 9:
        return com.ywt.gapi.ordercenter.PrePayByPOSRequest.getDefaultInstance();
      case 10:
        return com.ywt.gapi.ordercenter.FinishPayByPOSRequest.getDefaultInstance();
      case 11:
        return com.ywt.gapi.ordercenter.ICBCPaymentRequest.getDefaultInstance();
      case 12:
        return com.ywt.gapi.ordercenter.ICBCPaymentNotifyRequest.getDefaultInstance();
      case 13:
        return com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.getDefaultInstance();
      case 14:
        return com.ywt.gapi.ordercenter.CleanPayLockRequest.getDefaultInstance();
      case 15:
        return com.ywt.gapi.ordercenter.CheckIsPayingRequest.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.ordercenter.CreateOrderResponse.getDefaultInstance();
      case 1:
        return com.ywt.gapi.ordercenter.PayByAdminResponse.getDefaultInstance();
      case 2:
        return com.ywt.gapi.ordercenter.WechatPaymentResponse.getDefaultInstance();
      case 3:
        return com.ywt.gapi.ordercenter.WechatPaymentNotifyResponse.getDefaultInstance();
      case 4:
        return com.ywt.gapi.ordercenter.GetOrderInfeResponse.getDefaultInstance();
      case 5:
        return com.ywt.gapi.ordercenter.UpdateOrderInfoResponse.getDefaultInstance();
      case 6:
        return com.ywt.gapi.ordercenter.RefundResponse.getDefaultInstance();
      case 7:
        return com.ywt.gapi.ordercenter.WechatRefundNotifyResponse.getDefaultInstance();
      case 8:
        return com.ywt.gapi.ordercenter.GetOrderBillResponse.getDefaultInstance();
      case 9:
        return com.ywt.gapi.ordercenter.PrePayByPOSResponse.getDefaultInstance();
      case 10:
        return com.ywt.gapi.ordercenter.FinishPayByPOSResponse.getDefaultInstance();
      case 11:
        return com.ywt.gapi.ordercenter.ICBCPaymentResponse.getDefaultInstance();
      case 12:
        return com.ywt.gapi.ordercenter.ICBCPaymentNotifyResponse.getDefaultInstance();
      case 13:
        return com.ywt.gapi.ordercenter.ICBCRefundNotifyResponse.getDefaultInstance();
      case 14:
        return com.ywt.gapi.ordercenter.CleanPayLockResponse.getDefaultInstance();
      case 15:
        return com.ywt.gapi.ordercenter.CheckIsPayingResponse.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.ordercenter.OrderCenterService 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 createOrder(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.CreateOrderRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.CreateOrderResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(0),
        controller,
        request,
        com.ywt.gapi.ordercenter.CreateOrderResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          com.ywt.gapi.ordercenter.CreateOrderResponse.class,
          com.ywt.gapi.ordercenter.CreateOrderResponse.getDefaultInstance()));
    }

    public  void payByAdmin(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.PayByAdminRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.PayByAdminResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(1),
        controller,
        request,
        com.ywt.gapi.ordercenter.PayByAdminResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          com.ywt.gapi.ordercenter.PayByAdminResponse.class,
          com.ywt.gapi.ordercenter.PayByAdminResponse.getDefaultInstance()));
    }

    public  void wechatPayment(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.WechatPaymentRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.WechatPaymentResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(2),
        controller,
        request,
        com.ywt.gapi.ordercenter.WechatPaymentResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          com.ywt.gapi.ordercenter.WechatPaymentResponse.class,
          com.ywt.gapi.ordercenter.WechatPaymentResponse.getDefaultInstance()));
    }

    public  void wechatPaymentNotify(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.WechatPaymentNotifyRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.WechatPaymentNotifyResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(3),
        controller,
        request,
        com.ywt.gapi.ordercenter.WechatPaymentNotifyResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          com.ywt.gapi.ordercenter.WechatPaymentNotifyResponse.class,
          com.ywt.gapi.ordercenter.WechatPaymentNotifyResponse.getDefaultInstance()));
    }

    public  void getOrderInfo(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.GetOrderInfoRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.GetOrderInfeResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(4),
        controller,
        request,
        com.ywt.gapi.ordercenter.GetOrderInfeResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          com.ywt.gapi.ordercenter.GetOrderInfeResponse.class,
          com.ywt.gapi.ordercenter.GetOrderInfeResponse.getDefaultInstance()));
    }

    public  void updateOrderInfo(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.UpdateOrderInfoRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.UpdateOrderInfoResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(5),
        controller,
        request,
        com.ywt.gapi.ordercenter.UpdateOrderInfoResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          com.ywt.gapi.ordercenter.UpdateOrderInfoResponse.class,
          com.ywt.gapi.ordercenter.UpdateOrderInfoResponse.getDefaultInstance()));
    }

    public  void refund(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.RefundRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.RefundResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(6),
        controller,
        request,
        com.ywt.gapi.ordercenter.RefundResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          com.ywt.gapi.ordercenter.RefundResponse.class,
          com.ywt.gapi.ordercenter.RefundResponse.getDefaultInstance()));
    }

    public  void wechatRefundNotify(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.WechatRefundNotifyRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.WechatRefundNotifyResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(7),
        controller,
        request,
        com.ywt.gapi.ordercenter.WechatRefundNotifyResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          com.ywt.gapi.ordercenter.WechatRefundNotifyResponse.class,
          com.ywt.gapi.ordercenter.WechatRefundNotifyResponse.getDefaultInstance()));
    }

    public  void getOrderBill(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.GetOrderBillRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.GetOrderBillResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(8),
        controller,
        request,
        com.ywt.gapi.ordercenter.GetOrderBillResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          com.ywt.gapi.ordercenter.GetOrderBillResponse.class,
          com.ywt.gapi.ordercenter.GetOrderBillResponse.getDefaultInstance()));
    }

    public  void prePayByPOS(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.PrePayByPOSRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.PrePayByPOSResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(9),
        controller,
        request,
        com.ywt.gapi.ordercenter.PrePayByPOSResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          com.ywt.gapi.ordercenter.PrePayByPOSResponse.class,
          com.ywt.gapi.ordercenter.PrePayByPOSResponse.getDefaultInstance()));
    }

    public  void finishPayByPOS(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.FinishPayByPOSRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.FinishPayByPOSResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(10),
        controller,
        request,
        com.ywt.gapi.ordercenter.FinishPayByPOSResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          com.ywt.gapi.ordercenter.FinishPayByPOSResponse.class,
          com.ywt.gapi.ordercenter.FinishPayByPOSResponse.getDefaultInstance()));
    }

    public  void icbcPayment(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.ICBCPaymentRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.ICBCPaymentResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(11),
        controller,
        request,
        com.ywt.gapi.ordercenter.ICBCPaymentResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          com.ywt.gapi.ordercenter.ICBCPaymentResponse.class,
          com.ywt.gapi.ordercenter.ICBCPaymentResponse.getDefaultInstance()));
    }

    public  void icbcPaymentNotify(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.ICBCPaymentNotifyRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.ICBCPaymentNotifyResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(12),
        controller,
        request,
        com.ywt.gapi.ordercenter.ICBCPaymentNotifyResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          com.ywt.gapi.ordercenter.ICBCPaymentNotifyResponse.class,
          com.ywt.gapi.ordercenter.ICBCPaymentNotifyResponse.getDefaultInstance()));
    }

    public  void icbcRefundNotify(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.ICBCRefundNotifyResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(13),
        controller,
        request,
        com.ywt.gapi.ordercenter.ICBCRefundNotifyResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          com.ywt.gapi.ordercenter.ICBCRefundNotifyResponse.class,
          com.ywt.gapi.ordercenter.ICBCRefundNotifyResponse.getDefaultInstance()));
    }

    public  void cleanPayLock(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.CleanPayLockRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.CleanPayLockResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(14),
        controller,
        request,
        com.ywt.gapi.ordercenter.CleanPayLockResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          com.ywt.gapi.ordercenter.CleanPayLockResponse.class,
          com.ywt.gapi.ordercenter.CleanPayLockResponse.getDefaultInstance()));
    }

    public  void checkIsPaying(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.CheckIsPayingRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.ordercenter.CheckIsPayingResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(15),
        controller,
        request,
        com.ywt.gapi.ordercenter.CheckIsPayingResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          com.ywt.gapi.ordercenter.CheckIsPayingResponse.class,
          com.ywt.gapi.ordercenter.CheckIsPayingResponse.getDefaultInstance()));
    }
  }

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

  public interface BlockingInterface {
    public com.ywt.gapi.ordercenter.CreateOrderResponse createOrder(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.CreateOrderRequest request)
        throws com.google.protobuf.ServiceException;

    public com.ywt.gapi.ordercenter.PayByAdminResponse payByAdmin(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.PayByAdminRequest request)
        throws com.google.protobuf.ServiceException;

    public com.ywt.gapi.ordercenter.WechatPaymentResponse wechatPayment(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.WechatPaymentRequest request)
        throws com.google.protobuf.ServiceException;

    public com.ywt.gapi.ordercenter.WechatPaymentNotifyResponse wechatPaymentNotify(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.WechatPaymentNotifyRequest request)
        throws com.google.protobuf.ServiceException;

    public com.ywt.gapi.ordercenter.GetOrderInfeResponse getOrderInfo(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.GetOrderInfoRequest request)
        throws com.google.protobuf.ServiceException;

    public com.ywt.gapi.ordercenter.UpdateOrderInfoResponse updateOrderInfo(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.UpdateOrderInfoRequest request)
        throws com.google.protobuf.ServiceException;

    public com.ywt.gapi.ordercenter.RefundResponse refund(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.RefundRequest request)
        throws com.google.protobuf.ServiceException;

    public com.ywt.gapi.ordercenter.WechatRefundNotifyResponse wechatRefundNotify(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.WechatRefundNotifyRequest request)
        throws com.google.protobuf.ServiceException;

    public com.ywt.gapi.ordercenter.GetOrderBillResponse getOrderBill(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.GetOrderBillRequest request)
        throws com.google.protobuf.ServiceException;

    public com.ywt.gapi.ordercenter.PrePayByPOSResponse prePayByPOS(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.PrePayByPOSRequest request)
        throws com.google.protobuf.ServiceException;

    public com.ywt.gapi.ordercenter.FinishPayByPOSResponse finishPayByPOS(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.FinishPayByPOSRequest request)
        throws com.google.protobuf.ServiceException;

    public com.ywt.gapi.ordercenter.ICBCPaymentResponse icbcPayment(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.ICBCPaymentRequest request)
        throws com.google.protobuf.ServiceException;

    public com.ywt.gapi.ordercenter.ICBCPaymentNotifyResponse icbcPaymentNotify(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.ICBCPaymentNotifyRequest request)
        throws com.google.protobuf.ServiceException;

    public com.ywt.gapi.ordercenter.ICBCRefundNotifyResponse icbcRefundNotify(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest request)
        throws com.google.protobuf.ServiceException;

    public com.ywt.gapi.ordercenter.CleanPayLockResponse cleanPayLock(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.CleanPayLockRequest request)
        throws com.google.protobuf.ServiceException;

    public com.ywt.gapi.ordercenter.CheckIsPayingResponse checkIsPaying(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.CheckIsPayingRequest 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.ordercenter.CreateOrderResponse createOrder(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.CreateOrderRequest request)
        throws com.google.protobuf.ServiceException {
      return (com.ywt.gapi.ordercenter.CreateOrderResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(0),
        controller,
        request,
        com.ywt.gapi.ordercenter.CreateOrderResponse.getDefaultInstance());
    }


    public com.ywt.gapi.ordercenter.PayByAdminResponse payByAdmin(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.PayByAdminRequest request)
        throws com.google.protobuf.ServiceException {
      return (com.ywt.gapi.ordercenter.PayByAdminResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(1),
        controller,
        request,
        com.ywt.gapi.ordercenter.PayByAdminResponse.getDefaultInstance());
    }


    public com.ywt.gapi.ordercenter.WechatPaymentResponse wechatPayment(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.WechatPaymentRequest request)
        throws com.google.protobuf.ServiceException {
      return (com.ywt.gapi.ordercenter.WechatPaymentResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(2),
        controller,
        request,
        com.ywt.gapi.ordercenter.WechatPaymentResponse.getDefaultInstance());
    }


    public com.ywt.gapi.ordercenter.WechatPaymentNotifyResponse wechatPaymentNotify(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.WechatPaymentNotifyRequest request)
        throws com.google.protobuf.ServiceException {
      return (com.ywt.gapi.ordercenter.WechatPaymentNotifyResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(3),
        controller,
        request,
        com.ywt.gapi.ordercenter.WechatPaymentNotifyResponse.getDefaultInstance());
    }


    public com.ywt.gapi.ordercenter.GetOrderInfeResponse getOrderInfo(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.GetOrderInfoRequest request)
        throws com.google.protobuf.ServiceException {
      return (com.ywt.gapi.ordercenter.GetOrderInfeResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(4),
        controller,
        request,
        com.ywt.gapi.ordercenter.GetOrderInfeResponse.getDefaultInstance());
    }


    public com.ywt.gapi.ordercenter.UpdateOrderInfoResponse updateOrderInfo(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.UpdateOrderInfoRequest request)
        throws com.google.protobuf.ServiceException {
      return (com.ywt.gapi.ordercenter.UpdateOrderInfoResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(5),
        controller,
        request,
        com.ywt.gapi.ordercenter.UpdateOrderInfoResponse.getDefaultInstance());
    }


    public com.ywt.gapi.ordercenter.RefundResponse refund(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.RefundRequest request)
        throws com.google.protobuf.ServiceException {
      return (com.ywt.gapi.ordercenter.RefundResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(6),
        controller,
        request,
        com.ywt.gapi.ordercenter.RefundResponse.getDefaultInstance());
    }


    public com.ywt.gapi.ordercenter.WechatRefundNotifyResponse wechatRefundNotify(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.WechatRefundNotifyRequest request)
        throws com.google.protobuf.ServiceException {
      return (com.ywt.gapi.ordercenter.WechatRefundNotifyResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(7),
        controller,
        request,
        com.ywt.gapi.ordercenter.WechatRefundNotifyResponse.getDefaultInstance());
    }


    public com.ywt.gapi.ordercenter.GetOrderBillResponse getOrderBill(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.GetOrderBillRequest request)
        throws com.google.protobuf.ServiceException {
      return (com.ywt.gapi.ordercenter.GetOrderBillResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(8),
        controller,
        request,
        com.ywt.gapi.ordercenter.GetOrderBillResponse.getDefaultInstance());
    }


    public com.ywt.gapi.ordercenter.PrePayByPOSResponse prePayByPOS(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.PrePayByPOSRequest request)
        throws com.google.protobuf.ServiceException {
      return (com.ywt.gapi.ordercenter.PrePayByPOSResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(9),
        controller,
        request,
        com.ywt.gapi.ordercenter.PrePayByPOSResponse.getDefaultInstance());
    }


    public com.ywt.gapi.ordercenter.FinishPayByPOSResponse finishPayByPOS(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.FinishPayByPOSRequest request)
        throws com.google.protobuf.ServiceException {
      return (com.ywt.gapi.ordercenter.FinishPayByPOSResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(10),
        controller,
        request,
        com.ywt.gapi.ordercenter.FinishPayByPOSResponse.getDefaultInstance());
    }


    public com.ywt.gapi.ordercenter.ICBCPaymentResponse icbcPayment(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.ICBCPaymentRequest request)
        throws com.google.protobuf.ServiceException {
      return (com.ywt.gapi.ordercenter.ICBCPaymentResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(11),
        controller,
        request,
        com.ywt.gapi.ordercenter.ICBCPaymentResponse.getDefaultInstance());
    }


    public com.ywt.gapi.ordercenter.ICBCPaymentNotifyResponse icbcPaymentNotify(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.ICBCPaymentNotifyRequest request)
        throws com.google.protobuf.ServiceException {
      return (com.ywt.gapi.ordercenter.ICBCPaymentNotifyResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(12),
        controller,
        request,
        com.ywt.gapi.ordercenter.ICBCPaymentNotifyResponse.getDefaultInstance());
    }


    public com.ywt.gapi.ordercenter.ICBCRefundNotifyResponse icbcRefundNotify(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest request)
        throws com.google.protobuf.ServiceException {
      return (com.ywt.gapi.ordercenter.ICBCRefundNotifyResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(13),
        controller,
        request,
        com.ywt.gapi.ordercenter.ICBCRefundNotifyResponse.getDefaultInstance());
    }


    public com.ywt.gapi.ordercenter.CleanPayLockResponse cleanPayLock(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.CleanPayLockRequest request)
        throws com.google.protobuf.ServiceException {
      return (com.ywt.gapi.ordercenter.CleanPayLockResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(14),
        controller,
        request,
        com.ywt.gapi.ordercenter.CleanPayLockResponse.getDefaultInstance());
    }


    public com.ywt.gapi.ordercenter.CheckIsPayingResponse checkIsPaying(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.ordercenter.CheckIsPayingRequest request)
        throws com.google.protobuf.ServiceException {
      return (com.ywt.gapi.ordercenter.CheckIsPayingResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(15),
        controller,
        request,
        com.ywt.gapi.ordercenter.CheckIsPayingResponse.getDefaultInstance());
    }

  }

  // @@protoc_insertion_point(class_scope:com.ywt.gapi.ordercenter.OrderCenterService)
}

