/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements.  See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License.  You may obtain a copy of the License at
*
*     http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

    package com.ywt.gapi.ordercenter;

import org.apache.dubbo.common.stream.StreamObserver;
import org.apache.dubbo.common.URL;
import org.apache.dubbo.rpc.Invoker;
import org.apache.dubbo.rpc.PathResolver;
import org.apache.dubbo.rpc.RpcException;
import org.apache.dubbo.rpc.ServerService;
import org.apache.dubbo.rpc.TriRpcStatus;
import org.apache.dubbo.rpc.model.MethodDescriptor;
import org.apache.dubbo.rpc.model.ServiceDescriptor;
import org.apache.dubbo.rpc.model.StubMethodDescriptor;
import org.apache.dubbo.rpc.model.StubServiceDescriptor;
import org.apache.dubbo.rpc.stub.BiStreamMethodHandler;
import org.apache.dubbo.rpc.stub.ServerStreamMethodHandler;
import org.apache.dubbo.rpc.stub.StubInvocationUtil;
import org.apache.dubbo.rpc.stub.StubInvoker;
import org.apache.dubbo.rpc.stub.StubMethodHandler;
import org.apache.dubbo.rpc.stub.StubSuppliers;
import org.apache.dubbo.rpc.stub.UnaryStubMethodHandler;

import com.google.protobuf.Message;

import java.util.HashMap;
import java.util.Map;
import java.util.function.BiConsumer;
import java.util.concurrent.CompletableFuture;

public final class DubboOrderCenterServiceTriple {

    public static final String SERVICE_NAME = OrderCenterService.SERVICE_NAME;

    private static final StubServiceDescriptor serviceDescriptor = new StubServiceDescriptor(SERVICE_NAME,OrderCenterService.class);

    static {
        org.apache.dubbo.rpc.protocol.tri.service.SchemaDescriptorRegistry.addSchemaDescriptor(SERVICE_NAME,OrderCenterProto.getDescriptor());
        StubSuppliers.addSupplier(SERVICE_NAME, DubboOrderCenterServiceTriple::newStub);
        StubSuppliers.addSupplier(OrderCenterService.JAVA_SERVICE_NAME,  DubboOrderCenterServiceTriple::newStub);
        StubSuppliers.addDescriptor(SERVICE_NAME, serviceDescriptor);
        StubSuppliers.addDescriptor(OrderCenterService.JAVA_SERVICE_NAME, serviceDescriptor);
    }

    @SuppressWarnings("all")
    public static OrderCenterService newStub(Invoker<?> invoker) {
        return new OrderCenterServiceStub((Invoker<OrderCenterService>)invoker);
    }

    private static final StubMethodDescriptor createOrderMethod = new StubMethodDescriptor("createOrder",
    com.ywt.gapi.ordercenter.CreateOrderRequest.class, com.ywt.gapi.ordercenter.CreateOrderResponse.class, serviceDescriptor, MethodDescriptor.RpcType.UNARY,
    obj -> ((Message) obj).toByteArray(), obj -> ((Message) obj).toByteArray(), com.ywt.gapi.ordercenter.CreateOrderRequest::parseFrom,
    com.ywt.gapi.ordercenter.CreateOrderResponse::parseFrom);

    private static final StubMethodDescriptor createOrderAsyncMethod = new StubMethodDescriptor("createOrder",
    com.ywt.gapi.ordercenter.CreateOrderRequest.class, java.util.concurrent.CompletableFuture.class, serviceDescriptor, MethodDescriptor.RpcType.UNARY,
    obj -> ((Message) obj).toByteArray(), obj -> ((Message) obj).toByteArray(), com.ywt.gapi.ordercenter.CreateOrderRequest::parseFrom,
    com.ywt.gapi.ordercenter.CreateOrderResponse::parseFrom);

    private static final StubMethodDescriptor createOrderProxyAsyncMethod = new StubMethodDescriptor("createOrderAsync",
    com.ywt.gapi.ordercenter.CreateOrderRequest.class, com.ywt.gapi.ordercenter.CreateOrderResponse.class, serviceDescriptor, MethodDescriptor.RpcType.UNARY,
    obj -> ((Message) obj).toByteArray(), obj -> ((Message) obj).toByteArray(), com.ywt.gapi.ordercenter.CreateOrderRequest::parseFrom,
    com.ywt.gapi.ordercenter.CreateOrderResponse::parseFrom);

    /**
         * <pre>
         * 微信
         * </pre>
         */
    private static final StubMethodDescriptor payByAdminMethod = new StubMethodDescriptor("payByAdmin",
    com.ywt.gapi.ordercenter.PayByAdminRequest.class, com.ywt.gapi.ordercenter.PayByAdminResponse.class, serviceDescriptor, MethodDescriptor.RpcType.UNARY,
    obj -> ((Message) obj).toByteArray(), obj -> ((Message) obj).toByteArray(), com.ywt.gapi.ordercenter.PayByAdminRequest::parseFrom,
    com.ywt.gapi.ordercenter.PayByAdminResponse::parseFrom);

    private static final StubMethodDescriptor payByAdminAsyncMethod = new StubMethodDescriptor("payByAdmin",
    com.ywt.gapi.ordercenter.PayByAdminRequest.class, java.util.concurrent.CompletableFuture.class, serviceDescriptor, MethodDescriptor.RpcType.UNARY,
    obj -> ((Message) obj).toByteArray(), obj -> ((Message) obj).toByteArray(), com.ywt.gapi.ordercenter.PayByAdminRequest::parseFrom,
    com.ywt.gapi.ordercenter.PayByAdminResponse::parseFrom);

    private static final StubMethodDescriptor payByAdminProxyAsyncMethod = new StubMethodDescriptor("payByAdminAsync",
    com.ywt.gapi.ordercenter.PayByAdminRequest.class, com.ywt.gapi.ordercenter.PayByAdminResponse.class, serviceDescriptor, MethodDescriptor.RpcType.UNARY,
    obj -> ((Message) obj).toByteArray(), obj -> ((Message) obj).toByteArray(), com.ywt.gapi.ordercenter.PayByAdminRequest::parseFrom,
    com.ywt.gapi.ordercenter.PayByAdminResponse::parseFrom);

    /**
         * <pre>
         * 支付宝
         * </pre>
         */
    private static final StubMethodDescriptor wechatPaymentMethod = new StubMethodDescriptor("wechatPayment",
    com.ywt.gapi.ordercenter.WechatPaymentRequest.class, com.ywt.gapi.ordercenter.WechatPaymentResponse.class, serviceDescriptor, MethodDescriptor.RpcType.UNARY,
    obj -> ((Message) obj).toByteArray(), obj -> ((Message) obj).toByteArray(), com.ywt.gapi.ordercenter.WechatPaymentRequest::parseFrom,
    com.ywt.gapi.ordercenter.WechatPaymentResponse::parseFrom);

    private static final StubMethodDescriptor wechatPaymentAsyncMethod = new StubMethodDescriptor("wechatPayment",
    com.ywt.gapi.ordercenter.WechatPaymentRequest.class, java.util.concurrent.CompletableFuture.class, serviceDescriptor, MethodDescriptor.RpcType.UNARY,
    obj -> ((Message) obj).toByteArray(), obj -> ((Message) obj).toByteArray(), com.ywt.gapi.ordercenter.WechatPaymentRequest::parseFrom,
    com.ywt.gapi.ordercenter.WechatPaymentResponse::parseFrom);

    private static final StubMethodDescriptor wechatPaymentProxyAsyncMethod = new StubMethodDescriptor("wechatPaymentAsync",
    com.ywt.gapi.ordercenter.WechatPaymentRequest.class, com.ywt.gapi.ordercenter.WechatPaymentResponse.class, serviceDescriptor, MethodDescriptor.RpcType.UNARY,
    obj -> ((Message) obj).toByteArray(), obj -> ((Message) obj).toByteArray(), com.ywt.gapi.ordercenter.WechatPaymentRequest::parseFrom,
    com.ywt.gapi.ordercenter.WechatPaymentResponse::parseFrom);

    /**
         * <pre>
         * 现金
         * </pre>
         */
    private static final StubMethodDescriptor wechatPaymentNotifyMethod = new StubMethodDescriptor("WechatPaymentNotify",
    com.ywt.gapi.ordercenter.WechatPaymentNotifyRequest.class, com.ywt.gapi.ordercenter.WechatPaymentNotifyResponse.class, serviceDescriptor, MethodDescriptor.RpcType.UNARY,
    obj -> ((Message) obj).toByteArray(), obj -> ((Message) obj).toByteArray(), com.ywt.gapi.ordercenter.WechatPaymentNotifyRequest::parseFrom,
    com.ywt.gapi.ordercenter.WechatPaymentNotifyResponse::parseFrom);

    private static final StubMethodDescriptor wechatPaymentNotifyAsyncMethod = new StubMethodDescriptor("WechatPaymentNotify",
    com.ywt.gapi.ordercenter.WechatPaymentNotifyRequest.class, java.util.concurrent.CompletableFuture.class, serviceDescriptor, MethodDescriptor.RpcType.UNARY,
    obj -> ((Message) obj).toByteArray(), obj -> ((Message) obj).toByteArray(), com.ywt.gapi.ordercenter.WechatPaymentNotifyRequest::parseFrom,
    com.ywt.gapi.ordercenter.WechatPaymentNotifyResponse::parseFrom);

    private static final StubMethodDescriptor wechatPaymentNotifyProxyAsyncMethod = new StubMethodDescriptor("WechatPaymentNotifyAsync",
    com.ywt.gapi.ordercenter.WechatPaymentNotifyRequest.class, com.ywt.gapi.ordercenter.WechatPaymentNotifyResponse.class, serviceDescriptor, MethodDescriptor.RpcType.UNARY,
    obj -> ((Message) obj).toByteArray(), obj -> ((Message) obj).toByteArray(), com.ywt.gapi.ordercenter.WechatPaymentNotifyRequest::parseFrom,
    com.ywt.gapi.ordercenter.WechatPaymentNotifyResponse::parseFrom);

    /**
         * <pre>
         * 诊疗卡
         * </pre>
         */
    private static final StubMethodDescriptor getOrderInfoMethod = new StubMethodDescriptor("getOrderInfo",
    com.ywt.gapi.ordercenter.GetOrderInfoRequest.class, com.ywt.gapi.ordercenter.GetOrderInfeResponse.class, serviceDescriptor, MethodDescriptor.RpcType.UNARY,
    obj -> ((Message) obj).toByteArray(), obj -> ((Message) obj).toByteArray(), com.ywt.gapi.ordercenter.GetOrderInfoRequest::parseFrom,
    com.ywt.gapi.ordercenter.GetOrderInfeResponse::parseFrom);

    private static final StubMethodDescriptor getOrderInfoAsyncMethod = new StubMethodDescriptor("getOrderInfo",
    com.ywt.gapi.ordercenter.GetOrderInfoRequest.class, java.util.concurrent.CompletableFuture.class, serviceDescriptor, MethodDescriptor.RpcType.UNARY,
    obj -> ((Message) obj).toByteArray(), obj -> ((Message) obj).toByteArray(), com.ywt.gapi.ordercenter.GetOrderInfoRequest::parseFrom,
    com.ywt.gapi.ordercenter.GetOrderInfeResponse::parseFrom);

    private static final StubMethodDescriptor getOrderInfoProxyAsyncMethod = new StubMethodDescriptor("getOrderInfoAsync",
    com.ywt.gapi.ordercenter.GetOrderInfoRequest.class, com.ywt.gapi.ordercenter.GetOrderInfeResponse.class, serviceDescriptor, MethodDescriptor.RpcType.UNARY,
    obj -> ((Message) obj).toByteArray(), obj -> ((Message) obj).toByteArray(), com.ywt.gapi.ordercenter.GetOrderInfoRequest::parseFrom,
    com.ywt.gapi.ordercenter.GetOrderInfeResponse::parseFrom);

    /**
         * <pre>
         * pos机
         * </pre>
         */
    private static final StubMethodDescriptor updateOrderInfoMethod = new StubMethodDescriptor("updateOrderInfo",
    com.ywt.gapi.ordercenter.UpdateOrderInfoRequest.class, com.ywt.gapi.ordercenter.UpdateOrderInfoResponse.class, serviceDescriptor, MethodDescriptor.RpcType.UNARY,
    obj -> ((Message) obj).toByteArray(), obj -> ((Message) obj).toByteArray(), com.ywt.gapi.ordercenter.UpdateOrderInfoRequest::parseFrom,
    com.ywt.gapi.ordercenter.UpdateOrderInfoResponse::parseFrom);

    private static final StubMethodDescriptor updateOrderInfoAsyncMethod = new StubMethodDescriptor("updateOrderInfo",
    com.ywt.gapi.ordercenter.UpdateOrderInfoRequest.class, java.util.concurrent.CompletableFuture.class, serviceDescriptor, MethodDescriptor.RpcType.UNARY,
    obj -> ((Message) obj).toByteArray(), obj -> ((Message) obj).toByteArray(), com.ywt.gapi.ordercenter.UpdateOrderInfoRequest::parseFrom,
    com.ywt.gapi.ordercenter.UpdateOrderInfoResponse::parseFrom);

    private static final StubMethodDescriptor updateOrderInfoProxyAsyncMethod = new StubMethodDescriptor("updateOrderInfoAsync",
    com.ywt.gapi.ordercenter.UpdateOrderInfoRequest.class, com.ywt.gapi.ordercenter.UpdateOrderInfoResponse.class, serviceDescriptor, MethodDescriptor.RpcType.UNARY,
    obj -> ((Message) obj).toByteArray(), obj -> ((Message) obj).toByteArray(), com.ywt.gapi.ordercenter.UpdateOrderInfoRequest::parseFrom,
    com.ywt.gapi.ordercenter.UpdateOrderInfoResponse::parseFrom);

    /**
         * <pre>
         * 无须支付
         * </pre>
         */
    private static final StubMethodDescriptor refundMethod = new StubMethodDescriptor("refund",
    com.ywt.gapi.ordercenter.RefundRequest.class, com.ywt.gapi.ordercenter.RefundResponse.class, serviceDescriptor, MethodDescriptor.RpcType.UNARY,
    obj -> ((Message) obj).toByteArray(), obj -> ((Message) obj).toByteArray(), com.ywt.gapi.ordercenter.RefundRequest::parseFrom,
    com.ywt.gapi.ordercenter.RefundResponse::parseFrom);

    private static final StubMethodDescriptor refundAsyncMethod = new StubMethodDescriptor("refund",
    com.ywt.gapi.ordercenter.RefundRequest.class, java.util.concurrent.CompletableFuture.class, serviceDescriptor, MethodDescriptor.RpcType.UNARY,
    obj -> ((Message) obj).toByteArray(), obj -> ((Message) obj).toByteArray(), com.ywt.gapi.ordercenter.RefundRequest::parseFrom,
    com.ywt.gapi.ordercenter.RefundResponse::parseFrom);

    private static final StubMethodDescriptor refundProxyAsyncMethod = new StubMethodDescriptor("refundAsync",
    com.ywt.gapi.ordercenter.RefundRequest.class, com.ywt.gapi.ordercenter.RefundResponse.class, serviceDescriptor, MethodDescriptor.RpcType.UNARY,
    obj -> ((Message) obj).toByteArray(), obj -> ((Message) obj).toByteArray(), com.ywt.gapi.ordercenter.RefundRequest::parseFrom,
    com.ywt.gapi.ordercenter.RefundResponse::parseFrom);

    /**
         * <pre>
         * 医保
         * </pre>
         */
    private static final StubMethodDescriptor wechatRefundNotifyMethod = new StubMethodDescriptor("wechatRefundNotify",
    com.ywt.gapi.ordercenter.WechatRefundNotifyRequest.class, com.ywt.gapi.ordercenter.WechatRefundNotifyResponse.class, serviceDescriptor, MethodDescriptor.RpcType.UNARY,
    obj -> ((Message) obj).toByteArray(), obj -> ((Message) obj).toByteArray(), com.ywt.gapi.ordercenter.WechatRefundNotifyRequest::parseFrom,
    com.ywt.gapi.ordercenter.WechatRefundNotifyResponse::parseFrom);

    private static final StubMethodDescriptor wechatRefundNotifyAsyncMethod = new StubMethodDescriptor("wechatRefundNotify",
    com.ywt.gapi.ordercenter.WechatRefundNotifyRequest.class, java.util.concurrent.CompletableFuture.class, serviceDescriptor, MethodDescriptor.RpcType.UNARY,
    obj -> ((Message) obj).toByteArray(), obj -> ((Message) obj).toByteArray(), com.ywt.gapi.ordercenter.WechatRefundNotifyRequest::parseFrom,
    com.ywt.gapi.ordercenter.WechatRefundNotifyResponse::parseFrom);

    private static final StubMethodDescriptor wechatRefundNotifyProxyAsyncMethod = new StubMethodDescriptor("wechatRefundNotifyAsync",
    com.ywt.gapi.ordercenter.WechatRefundNotifyRequest.class, com.ywt.gapi.ordercenter.WechatRefundNotifyResponse.class, serviceDescriptor, MethodDescriptor.RpcType.UNARY,
    obj -> ((Message) obj).toByteArray(), obj -> ((Message) obj).toByteArray(), com.ywt.gapi.ordercenter.WechatRefundNotifyRequest::parseFrom,
    com.ywt.gapi.ordercenter.WechatRefundNotifyResponse::parseFrom);

    /**
         * <pre>
         * 支付成功后回调grpc方法，结构：(/${package}.${service}/${method})，如：/com.ywt.gapi.mq.MQExecutorService/executeGRPC
         * </pre>
         */
    private static final StubMethodDescriptor getOrderBillMethod = new StubMethodDescriptor("getOrderBill",
    com.ywt.gapi.ordercenter.GetOrderBillRequest.class, com.ywt.gapi.ordercenter.GetOrderBillResponse.class, serviceDescriptor, MethodDescriptor.RpcType.UNARY,
    obj -> ((Message) obj).toByteArray(), obj -> ((Message) obj).toByteArray(), com.ywt.gapi.ordercenter.GetOrderBillRequest::parseFrom,
    com.ywt.gapi.ordercenter.GetOrderBillResponse::parseFrom);

    private static final StubMethodDescriptor getOrderBillAsyncMethod = new StubMethodDescriptor("getOrderBill",
    com.ywt.gapi.ordercenter.GetOrderBillRequest.class, java.util.concurrent.CompletableFuture.class, serviceDescriptor, MethodDescriptor.RpcType.UNARY,
    obj -> ((Message) obj).toByteArray(), obj -> ((Message) obj).toByteArray(), com.ywt.gapi.ordercenter.GetOrderBillRequest::parseFrom,
    com.ywt.gapi.ordercenter.GetOrderBillResponse::parseFrom);

    private static final StubMethodDescriptor getOrderBillProxyAsyncMethod = new StubMethodDescriptor("getOrderBillAsync",
    com.ywt.gapi.ordercenter.GetOrderBillRequest.class, com.ywt.gapi.ordercenter.GetOrderBillResponse.class, serviceDescriptor, MethodDescriptor.RpcType.UNARY,
    obj -> ((Message) obj).toByteArray(), obj -> ((Message) obj).toByteArray(), com.ywt.gapi.ordercenter.GetOrderBillRequest::parseFrom,
    com.ywt.gapi.ordercenter.GetOrderBillResponse::parseFrom);

    private static final StubMethodDescriptor prePayByPOSMethod = new StubMethodDescriptor("prePayByPOS",
    com.ywt.gapi.ordercenter.PrePayByPOSRequest.class, com.ywt.gapi.ordercenter.PrePayByPOSResponse.class, serviceDescriptor, MethodDescriptor.RpcType.UNARY,
    obj -> ((Message) obj).toByteArray(), obj -> ((Message) obj).toByteArray(), com.ywt.gapi.ordercenter.PrePayByPOSRequest::parseFrom,
    com.ywt.gapi.ordercenter.PrePayByPOSResponse::parseFrom);

    private static final StubMethodDescriptor prePayByPOSAsyncMethod = new StubMethodDescriptor("prePayByPOS",
    com.ywt.gapi.ordercenter.PrePayByPOSRequest.class, java.util.concurrent.CompletableFuture.class, serviceDescriptor, MethodDescriptor.RpcType.UNARY,
    obj -> ((Message) obj).toByteArray(), obj -> ((Message) obj).toByteArray(), com.ywt.gapi.ordercenter.PrePayByPOSRequest::parseFrom,
    com.ywt.gapi.ordercenter.PrePayByPOSResponse::parseFrom);

    private static final StubMethodDescriptor prePayByPOSProxyAsyncMethod = new StubMethodDescriptor("prePayByPOSAsync",
    com.ywt.gapi.ordercenter.PrePayByPOSRequest.class, com.ywt.gapi.ordercenter.PrePayByPOSResponse.class, serviceDescriptor, MethodDescriptor.RpcType.UNARY,
    obj -> ((Message) obj).toByteArray(), obj -> ((Message) obj).toByteArray(), com.ywt.gapi.ordercenter.PrePayByPOSRequest::parseFrom,
    com.ywt.gapi.ordercenter.PrePayByPOSResponse::parseFrom);

    /**
         * <pre>
         * 自定义数据
         * </pre>
         */
    private static final StubMethodDescriptor finishPayByPOSMethod = new StubMethodDescriptor("finishPayByPOS",
    com.ywt.gapi.ordercenter.FinishPayByPOSRequest.class, com.ywt.gapi.ordercenter.FinishPayByPOSResponse.class, serviceDescriptor, MethodDescriptor.RpcType.UNARY,
    obj -> ((Message) obj).toByteArray(), obj -> ((Message) obj).toByteArray(), com.ywt.gapi.ordercenter.FinishPayByPOSRequest::parseFrom,
    com.ywt.gapi.ordercenter.FinishPayByPOSResponse::parseFrom);

    private static final StubMethodDescriptor finishPayByPOSAsyncMethod = new StubMethodDescriptor("finishPayByPOS",
    com.ywt.gapi.ordercenter.FinishPayByPOSRequest.class, java.util.concurrent.CompletableFuture.class, serviceDescriptor, MethodDescriptor.RpcType.UNARY,
    obj -> ((Message) obj).toByteArray(), obj -> ((Message) obj).toByteArray(), com.ywt.gapi.ordercenter.FinishPayByPOSRequest::parseFrom,
    com.ywt.gapi.ordercenter.FinishPayByPOSResponse::parseFrom);

    private static final StubMethodDescriptor finishPayByPOSProxyAsyncMethod = new StubMethodDescriptor("finishPayByPOSAsync",
    com.ywt.gapi.ordercenter.FinishPayByPOSRequest.class, com.ywt.gapi.ordercenter.FinishPayByPOSResponse.class, serviceDescriptor, MethodDescriptor.RpcType.UNARY,
    obj -> ((Message) obj).toByteArray(), obj -> ((Message) obj).toByteArray(), com.ywt.gapi.ordercenter.FinishPayByPOSRequest::parseFrom,
    com.ywt.gapi.ordercenter.FinishPayByPOSResponse::parseFrom);

    /**
         * <pre>
         * 支付代码--支付中心统一编码
         * </pre>
         */
    private static final StubMethodDescriptor icbcPaymentMethod = new StubMethodDescriptor("icbcPayment",
    com.ywt.gapi.ordercenter.ICBCPaymentRequest.class, com.ywt.gapi.ordercenter.ICBCPaymentResponse.class, serviceDescriptor, MethodDescriptor.RpcType.UNARY,
    obj -> ((Message) obj).toByteArray(), obj -> ((Message) obj).toByteArray(), com.ywt.gapi.ordercenter.ICBCPaymentRequest::parseFrom,
    com.ywt.gapi.ordercenter.ICBCPaymentResponse::parseFrom);

    private static final StubMethodDescriptor icbcPaymentAsyncMethod = new StubMethodDescriptor("icbcPayment",
    com.ywt.gapi.ordercenter.ICBCPaymentRequest.class, java.util.concurrent.CompletableFuture.class, serviceDescriptor, MethodDescriptor.RpcType.UNARY,
    obj -> ((Message) obj).toByteArray(), obj -> ((Message) obj).toByteArray(), com.ywt.gapi.ordercenter.ICBCPaymentRequest::parseFrom,
    com.ywt.gapi.ordercenter.ICBCPaymentResponse::parseFrom);

    private static final StubMethodDescriptor icbcPaymentProxyAsyncMethod = new StubMethodDescriptor("icbcPaymentAsync",
    com.ywt.gapi.ordercenter.ICBCPaymentRequest.class, com.ywt.gapi.ordercenter.ICBCPaymentResponse.class, serviceDescriptor, MethodDescriptor.RpcType.UNARY,
    obj -> ((Message) obj).toByteArray(), obj -> ((Message) obj).toByteArray(), com.ywt.gapi.ordercenter.ICBCPaymentRequest::parseFrom,
    com.ywt.gapi.ordercenter.ICBCPaymentResponse::parseFrom);

    private static final StubMethodDescriptor icbcPaymentNotifyMethod = new StubMethodDescriptor("icbcPaymentNotify",
    com.ywt.gapi.ordercenter.ICBCPaymentNotifyRequest.class, com.ywt.gapi.ordercenter.ICBCPaymentNotifyResponse.class, serviceDescriptor, MethodDescriptor.RpcType.UNARY,
    obj -> ((Message) obj).toByteArray(), obj -> ((Message) obj).toByteArray(), com.ywt.gapi.ordercenter.ICBCPaymentNotifyRequest::parseFrom,
    com.ywt.gapi.ordercenter.ICBCPaymentNotifyResponse::parseFrom);

    private static final StubMethodDescriptor icbcPaymentNotifyAsyncMethod = new StubMethodDescriptor("icbcPaymentNotify",
    com.ywt.gapi.ordercenter.ICBCPaymentNotifyRequest.class, java.util.concurrent.CompletableFuture.class, serviceDescriptor, MethodDescriptor.RpcType.UNARY,
    obj -> ((Message) obj).toByteArray(), obj -> ((Message) obj).toByteArray(), com.ywt.gapi.ordercenter.ICBCPaymentNotifyRequest::parseFrom,
    com.ywt.gapi.ordercenter.ICBCPaymentNotifyResponse::parseFrom);

    private static final StubMethodDescriptor icbcPaymentNotifyProxyAsyncMethod = new StubMethodDescriptor("icbcPaymentNotifyAsync",
    com.ywt.gapi.ordercenter.ICBCPaymentNotifyRequest.class, com.ywt.gapi.ordercenter.ICBCPaymentNotifyResponse.class, serviceDescriptor, MethodDescriptor.RpcType.UNARY,
    obj -> ((Message) obj).toByteArray(), obj -> ((Message) obj).toByteArray(), com.ywt.gapi.ordercenter.ICBCPaymentNotifyRequest::parseFrom,
    com.ywt.gapi.ordercenter.ICBCPaymentNotifyResponse::parseFrom);

    private static final StubMethodDescriptor icbcRefundNotifyMethod = new StubMethodDescriptor("icbcRefundNotify",
    com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.class, com.ywt.gapi.ordercenter.ICBCRefundNotifyResponse.class, serviceDescriptor, MethodDescriptor.RpcType.UNARY,
    obj -> ((Message) obj).toByteArray(), obj -> ((Message) obj).toByteArray(), com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest::parseFrom,
    com.ywt.gapi.ordercenter.ICBCRefundNotifyResponse::parseFrom);

    private static final StubMethodDescriptor icbcRefundNotifyAsyncMethod = new StubMethodDescriptor("icbcRefundNotify",
    com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.class, java.util.concurrent.CompletableFuture.class, serviceDescriptor, MethodDescriptor.RpcType.UNARY,
    obj -> ((Message) obj).toByteArray(), obj -> ((Message) obj).toByteArray(), com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest::parseFrom,
    com.ywt.gapi.ordercenter.ICBCRefundNotifyResponse::parseFrom);

    private static final StubMethodDescriptor icbcRefundNotifyProxyAsyncMethod = new StubMethodDescriptor("icbcRefundNotifyAsync",
    com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest.class, com.ywt.gapi.ordercenter.ICBCRefundNotifyResponse.class, serviceDescriptor, MethodDescriptor.RpcType.UNARY,
    obj -> ((Message) obj).toByteArray(), obj -> ((Message) obj).toByteArray(), com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest::parseFrom,
    com.ywt.gapi.ordercenter.ICBCRefundNotifyResponse::parseFrom);

    /**
         * <pre>
         * 退款成功后回调rest服务方法，url格式: rest://com.ywt.MgDrugApiService/path1/path2
         * </pre>
         */
    private static final StubMethodDescriptor cleanPayLockMethod = new StubMethodDescriptor("cleanPayLock",
    com.ywt.gapi.ordercenter.CleanPayLockRequest.class, com.ywt.gapi.ordercenter.CleanPayLockResponse.class, serviceDescriptor, MethodDescriptor.RpcType.UNARY,
    obj -> ((Message) obj).toByteArray(), obj -> ((Message) obj).toByteArray(), com.ywt.gapi.ordercenter.CleanPayLockRequest::parseFrom,
    com.ywt.gapi.ordercenter.CleanPayLockResponse::parseFrom);

    private static final StubMethodDescriptor cleanPayLockAsyncMethod = new StubMethodDescriptor("cleanPayLock",
    com.ywt.gapi.ordercenter.CleanPayLockRequest.class, java.util.concurrent.CompletableFuture.class, serviceDescriptor, MethodDescriptor.RpcType.UNARY,
    obj -> ((Message) obj).toByteArray(), obj -> ((Message) obj).toByteArray(), com.ywt.gapi.ordercenter.CleanPayLockRequest::parseFrom,
    com.ywt.gapi.ordercenter.CleanPayLockResponse::parseFrom);

    private static final StubMethodDescriptor cleanPayLockProxyAsyncMethod = new StubMethodDescriptor("cleanPayLockAsync",
    com.ywt.gapi.ordercenter.CleanPayLockRequest.class, com.ywt.gapi.ordercenter.CleanPayLockResponse.class, serviceDescriptor, MethodDescriptor.RpcType.UNARY,
    obj -> ((Message) obj).toByteArray(), obj -> ((Message) obj).toByteArray(), com.ywt.gapi.ordercenter.CleanPayLockRequest::parseFrom,
    com.ywt.gapi.ordercenter.CleanPayLockResponse::parseFrom);

    /**
         * <pre>
         * 判断是否在支付中
         * </pre>
         */
    private static final StubMethodDescriptor checkIsPayingMethod = new StubMethodDescriptor("checkIsPaying",
    com.ywt.gapi.ordercenter.CheckIsPayingRequest.class, com.ywt.gapi.ordercenter.CheckIsPayingResponse.class, serviceDescriptor, MethodDescriptor.RpcType.UNARY,
    obj -> ((Message) obj).toByteArray(), obj -> ((Message) obj).toByteArray(), com.ywt.gapi.ordercenter.CheckIsPayingRequest::parseFrom,
    com.ywt.gapi.ordercenter.CheckIsPayingResponse::parseFrom);

    private static final StubMethodDescriptor checkIsPayingAsyncMethod = new StubMethodDescriptor("checkIsPaying",
    com.ywt.gapi.ordercenter.CheckIsPayingRequest.class, java.util.concurrent.CompletableFuture.class, serviceDescriptor, MethodDescriptor.RpcType.UNARY,
    obj -> ((Message) obj).toByteArray(), obj -> ((Message) obj).toByteArray(), com.ywt.gapi.ordercenter.CheckIsPayingRequest::parseFrom,
    com.ywt.gapi.ordercenter.CheckIsPayingResponse::parseFrom);

    private static final StubMethodDescriptor checkIsPayingProxyAsyncMethod = new StubMethodDescriptor("checkIsPayingAsync",
    com.ywt.gapi.ordercenter.CheckIsPayingRequest.class, com.ywt.gapi.ordercenter.CheckIsPayingResponse.class, serviceDescriptor, MethodDescriptor.RpcType.UNARY,
    obj -> ((Message) obj).toByteArray(), obj -> ((Message) obj).toByteArray(), com.ywt.gapi.ordercenter.CheckIsPayingRequest::parseFrom,
    com.ywt.gapi.ordercenter.CheckIsPayingResponse::parseFrom);

    /**
         * <pre>
         *  创建支付宝订单
         * </pre>
         */
    private static final StubMethodDescriptor createAlipayOrderMethod = new StubMethodDescriptor("createAlipayOrder",
    com.ywt.gapi.ordercenter.CreateAlipayOrderRequest.class, com.ywt.gapi.ordercenter.CreateAlipayOrderResponse.class, serviceDescriptor, MethodDescriptor.RpcType.UNARY,
    obj -> ((Message) obj).toByteArray(), obj -> ((Message) obj).toByteArray(), com.ywt.gapi.ordercenter.CreateAlipayOrderRequest::parseFrom,
    com.ywt.gapi.ordercenter.CreateAlipayOrderResponse::parseFrom);

    private static final StubMethodDescriptor createAlipayOrderAsyncMethod = new StubMethodDescriptor("createAlipayOrder",
    com.ywt.gapi.ordercenter.CreateAlipayOrderRequest.class, java.util.concurrent.CompletableFuture.class, serviceDescriptor, MethodDescriptor.RpcType.UNARY,
    obj -> ((Message) obj).toByteArray(), obj -> ((Message) obj).toByteArray(), com.ywt.gapi.ordercenter.CreateAlipayOrderRequest::parseFrom,
    com.ywt.gapi.ordercenter.CreateAlipayOrderResponse::parseFrom);

    private static final StubMethodDescriptor createAlipayOrderProxyAsyncMethod = new StubMethodDescriptor("createAlipayOrderAsync",
    com.ywt.gapi.ordercenter.CreateAlipayOrderRequest.class, com.ywt.gapi.ordercenter.CreateAlipayOrderResponse.class, serviceDescriptor, MethodDescriptor.RpcType.UNARY,
    obj -> ((Message) obj).toByteArray(), obj -> ((Message) obj).toByteArray(), com.ywt.gapi.ordercenter.CreateAlipayOrderRequest::parseFrom,
    com.ywt.gapi.ordercenter.CreateAlipayOrderResponse::parseFrom);

    /**
         * <pre>
         *  支付宝支付回调
         * </pre>
         */
    private static final StubMethodDescriptor alipayNotifyMethod = new StubMethodDescriptor("alipayNotify",
    com.ywt.gapi.ordercenter.AlipayNotifyRequest.class, com.ywt.gapi.ordercenter.AlipayNotifyResponse.class, serviceDescriptor, MethodDescriptor.RpcType.UNARY,
    obj -> ((Message) obj).toByteArray(), obj -> ((Message) obj).toByteArray(), com.ywt.gapi.ordercenter.AlipayNotifyRequest::parseFrom,
    com.ywt.gapi.ordercenter.AlipayNotifyResponse::parseFrom);

    private static final StubMethodDescriptor alipayNotifyAsyncMethod = new StubMethodDescriptor("alipayNotify",
    com.ywt.gapi.ordercenter.AlipayNotifyRequest.class, java.util.concurrent.CompletableFuture.class, serviceDescriptor, MethodDescriptor.RpcType.UNARY,
    obj -> ((Message) obj).toByteArray(), obj -> ((Message) obj).toByteArray(), com.ywt.gapi.ordercenter.AlipayNotifyRequest::parseFrom,
    com.ywt.gapi.ordercenter.AlipayNotifyResponse::parseFrom);

    private static final StubMethodDescriptor alipayNotifyProxyAsyncMethod = new StubMethodDescriptor("alipayNotifyAsync",
    com.ywt.gapi.ordercenter.AlipayNotifyRequest.class, com.ywt.gapi.ordercenter.AlipayNotifyResponse.class, serviceDescriptor, MethodDescriptor.RpcType.UNARY,
    obj -> ((Message) obj).toByteArray(), obj -> ((Message) obj).toByteArray(), com.ywt.gapi.ordercenter.AlipayNotifyRequest::parseFrom,
    com.ywt.gapi.ordercenter.AlipayNotifyResponse::parseFrom);





    public static class OrderCenterServiceStub implements OrderCenterService{
        private final Invoker<OrderCenterService> invoker;

        public OrderCenterServiceStub(Invoker<OrderCenterService> invoker) {
            this.invoker = invoker;
        }

        @Override
        public com.ywt.gapi.ordercenter.CreateOrderResponse createOrder(com.ywt.gapi.ordercenter.CreateOrderRequest request){
            return StubInvocationUtil.unaryCall(invoker, createOrderMethod, request);
        }

        public CompletableFuture<com.ywt.gapi.ordercenter.CreateOrderResponse> createOrderAsync(com.ywt.gapi.ordercenter.CreateOrderRequest request){
            return StubInvocationUtil.unaryCall(invoker, createOrderAsyncMethod, request);
        }

        @Override
        public void createOrder(com.ywt.gapi.ordercenter.CreateOrderRequest request, StreamObserver<com.ywt.gapi.ordercenter.CreateOrderResponse> responseObserver){
            StubInvocationUtil.unaryCall(invoker, createOrderMethod , request, responseObserver);
        }
            /**
         * <pre>
         * 微信
         * </pre>
         */
        @Override
        public com.ywt.gapi.ordercenter.PayByAdminResponse payByAdmin(com.ywt.gapi.ordercenter.PayByAdminRequest request){
            return StubInvocationUtil.unaryCall(invoker, payByAdminMethod, request);
        }

        public CompletableFuture<com.ywt.gapi.ordercenter.PayByAdminResponse> payByAdminAsync(com.ywt.gapi.ordercenter.PayByAdminRequest request){
            return StubInvocationUtil.unaryCall(invoker, payByAdminAsyncMethod, request);
        }

            /**
         * <pre>
         * 微信
         * </pre>
         */
        @Override
        public void payByAdmin(com.ywt.gapi.ordercenter.PayByAdminRequest request, StreamObserver<com.ywt.gapi.ordercenter.PayByAdminResponse> responseObserver){
            StubInvocationUtil.unaryCall(invoker, payByAdminMethod , request, responseObserver);
        }
            /**
         * <pre>
         * 支付宝
         * </pre>
         */
        @Override
        public com.ywt.gapi.ordercenter.WechatPaymentResponse wechatPayment(com.ywt.gapi.ordercenter.WechatPaymentRequest request){
            return StubInvocationUtil.unaryCall(invoker, wechatPaymentMethod, request);
        }

        public CompletableFuture<com.ywt.gapi.ordercenter.WechatPaymentResponse> wechatPaymentAsync(com.ywt.gapi.ordercenter.WechatPaymentRequest request){
            return StubInvocationUtil.unaryCall(invoker, wechatPaymentAsyncMethod, request);
        }

            /**
         * <pre>
         * 支付宝
         * </pre>
         */
        @Override
        public void wechatPayment(com.ywt.gapi.ordercenter.WechatPaymentRequest request, StreamObserver<com.ywt.gapi.ordercenter.WechatPaymentResponse> responseObserver){
            StubInvocationUtil.unaryCall(invoker, wechatPaymentMethod , request, responseObserver);
        }
            /**
         * <pre>
         * 现金
         * </pre>
         */
        @Override
        public com.ywt.gapi.ordercenter.WechatPaymentNotifyResponse wechatPaymentNotify(com.ywt.gapi.ordercenter.WechatPaymentNotifyRequest request){
            return StubInvocationUtil.unaryCall(invoker, wechatPaymentNotifyMethod, request);
        }

        public CompletableFuture<com.ywt.gapi.ordercenter.WechatPaymentNotifyResponse> wechatPaymentNotifyAsync(com.ywt.gapi.ordercenter.WechatPaymentNotifyRequest request){
            return StubInvocationUtil.unaryCall(invoker, wechatPaymentNotifyAsyncMethod, request);
        }

            /**
         * <pre>
         * 现金
         * </pre>
         */
        @Override
        public void wechatPaymentNotify(com.ywt.gapi.ordercenter.WechatPaymentNotifyRequest request, StreamObserver<com.ywt.gapi.ordercenter.WechatPaymentNotifyResponse> responseObserver){
            StubInvocationUtil.unaryCall(invoker, wechatPaymentNotifyMethod , request, responseObserver);
        }
            /**
         * <pre>
         * 诊疗卡
         * </pre>
         */
        @Override
        public com.ywt.gapi.ordercenter.GetOrderInfeResponse getOrderInfo(com.ywt.gapi.ordercenter.GetOrderInfoRequest request){
            return StubInvocationUtil.unaryCall(invoker, getOrderInfoMethod, request);
        }

        public CompletableFuture<com.ywt.gapi.ordercenter.GetOrderInfeResponse> getOrderInfoAsync(com.ywt.gapi.ordercenter.GetOrderInfoRequest request){
            return StubInvocationUtil.unaryCall(invoker, getOrderInfoAsyncMethod, request);
        }

            /**
         * <pre>
         * 诊疗卡
         * </pre>
         */
        @Override
        public void getOrderInfo(com.ywt.gapi.ordercenter.GetOrderInfoRequest request, StreamObserver<com.ywt.gapi.ordercenter.GetOrderInfeResponse> responseObserver){
            StubInvocationUtil.unaryCall(invoker, getOrderInfoMethod , request, responseObserver);
        }
            /**
         * <pre>
         * pos机
         * </pre>
         */
        @Override
        public com.ywt.gapi.ordercenter.UpdateOrderInfoResponse updateOrderInfo(com.ywt.gapi.ordercenter.UpdateOrderInfoRequest request){
            return StubInvocationUtil.unaryCall(invoker, updateOrderInfoMethod, request);
        }

        public CompletableFuture<com.ywt.gapi.ordercenter.UpdateOrderInfoResponse> updateOrderInfoAsync(com.ywt.gapi.ordercenter.UpdateOrderInfoRequest request){
            return StubInvocationUtil.unaryCall(invoker, updateOrderInfoAsyncMethod, request);
        }

            /**
         * <pre>
         * pos机
         * </pre>
         */
        @Override
        public void updateOrderInfo(com.ywt.gapi.ordercenter.UpdateOrderInfoRequest request, StreamObserver<com.ywt.gapi.ordercenter.UpdateOrderInfoResponse> responseObserver){
            StubInvocationUtil.unaryCall(invoker, updateOrderInfoMethod , request, responseObserver);
        }
            /**
         * <pre>
         * 无须支付
         * </pre>
         */
        @Override
        public com.ywt.gapi.ordercenter.RefundResponse refund(com.ywt.gapi.ordercenter.RefundRequest request){
            return StubInvocationUtil.unaryCall(invoker, refundMethod, request);
        }

        public CompletableFuture<com.ywt.gapi.ordercenter.RefundResponse> refundAsync(com.ywt.gapi.ordercenter.RefundRequest request){
            return StubInvocationUtil.unaryCall(invoker, refundAsyncMethod, request);
        }

            /**
         * <pre>
         * 无须支付
         * </pre>
         */
        @Override
        public void refund(com.ywt.gapi.ordercenter.RefundRequest request, StreamObserver<com.ywt.gapi.ordercenter.RefundResponse> responseObserver){
            StubInvocationUtil.unaryCall(invoker, refundMethod , request, responseObserver);
        }
            /**
         * <pre>
         * 医保
         * </pre>
         */
        @Override
        public com.ywt.gapi.ordercenter.WechatRefundNotifyResponse wechatRefundNotify(com.ywt.gapi.ordercenter.WechatRefundNotifyRequest request){
            return StubInvocationUtil.unaryCall(invoker, wechatRefundNotifyMethod, request);
        }

        public CompletableFuture<com.ywt.gapi.ordercenter.WechatRefundNotifyResponse> wechatRefundNotifyAsync(com.ywt.gapi.ordercenter.WechatRefundNotifyRequest request){
            return StubInvocationUtil.unaryCall(invoker, wechatRefundNotifyAsyncMethod, request);
        }

            /**
         * <pre>
         * 医保
         * </pre>
         */
        @Override
        public void wechatRefundNotify(com.ywt.gapi.ordercenter.WechatRefundNotifyRequest request, StreamObserver<com.ywt.gapi.ordercenter.WechatRefundNotifyResponse> responseObserver){
            StubInvocationUtil.unaryCall(invoker, wechatRefundNotifyMethod , request, responseObserver);
        }
            /**
         * <pre>
         * 支付成功后回调grpc方法，结构：(/${package}.${service}/${method})，如：/com.ywt.gapi.mq.MQExecutorService/executeGRPC
         * </pre>
         */
        @Override
        public com.ywt.gapi.ordercenter.GetOrderBillResponse getOrderBill(com.ywt.gapi.ordercenter.GetOrderBillRequest request){
            return StubInvocationUtil.unaryCall(invoker, getOrderBillMethod, request);
        }

        public CompletableFuture<com.ywt.gapi.ordercenter.GetOrderBillResponse> getOrderBillAsync(com.ywt.gapi.ordercenter.GetOrderBillRequest request){
            return StubInvocationUtil.unaryCall(invoker, getOrderBillAsyncMethod, request);
        }

            /**
         * <pre>
         * 支付成功后回调grpc方法，结构：(/${package}.${service}/${method})，如：/com.ywt.gapi.mq.MQExecutorService/executeGRPC
         * </pre>
         */
        @Override
        public void getOrderBill(com.ywt.gapi.ordercenter.GetOrderBillRequest request, StreamObserver<com.ywt.gapi.ordercenter.GetOrderBillResponse> responseObserver){
            StubInvocationUtil.unaryCall(invoker, getOrderBillMethod , request, responseObserver);
        }
        @Override
        public com.ywt.gapi.ordercenter.PrePayByPOSResponse prePayByPOS(com.ywt.gapi.ordercenter.PrePayByPOSRequest request){
            return StubInvocationUtil.unaryCall(invoker, prePayByPOSMethod, request);
        }

        public CompletableFuture<com.ywt.gapi.ordercenter.PrePayByPOSResponse> prePayByPOSAsync(com.ywt.gapi.ordercenter.PrePayByPOSRequest request){
            return StubInvocationUtil.unaryCall(invoker, prePayByPOSAsyncMethod, request);
        }

        @Override
        public void prePayByPOS(com.ywt.gapi.ordercenter.PrePayByPOSRequest request, StreamObserver<com.ywt.gapi.ordercenter.PrePayByPOSResponse> responseObserver){
            StubInvocationUtil.unaryCall(invoker, prePayByPOSMethod , request, responseObserver);
        }
            /**
         * <pre>
         * 自定义数据
         * </pre>
         */
        @Override
        public com.ywt.gapi.ordercenter.FinishPayByPOSResponse finishPayByPOS(com.ywt.gapi.ordercenter.FinishPayByPOSRequest request){
            return StubInvocationUtil.unaryCall(invoker, finishPayByPOSMethod, request);
        }

        public CompletableFuture<com.ywt.gapi.ordercenter.FinishPayByPOSResponse> finishPayByPOSAsync(com.ywt.gapi.ordercenter.FinishPayByPOSRequest request){
            return StubInvocationUtil.unaryCall(invoker, finishPayByPOSAsyncMethod, request);
        }

            /**
         * <pre>
         * 自定义数据
         * </pre>
         */
        @Override
        public void finishPayByPOS(com.ywt.gapi.ordercenter.FinishPayByPOSRequest request, StreamObserver<com.ywt.gapi.ordercenter.FinishPayByPOSResponse> responseObserver){
            StubInvocationUtil.unaryCall(invoker, finishPayByPOSMethod , request, responseObserver);
        }
            /**
         * <pre>
         * 支付代码--支付中心统一编码
         * </pre>
         */
        @Override
        public com.ywt.gapi.ordercenter.ICBCPaymentResponse icbcPayment(com.ywt.gapi.ordercenter.ICBCPaymentRequest request){
            return StubInvocationUtil.unaryCall(invoker, icbcPaymentMethod, request);
        }

        public CompletableFuture<com.ywt.gapi.ordercenter.ICBCPaymentResponse> icbcPaymentAsync(com.ywt.gapi.ordercenter.ICBCPaymentRequest request){
            return StubInvocationUtil.unaryCall(invoker, icbcPaymentAsyncMethod, request);
        }

            /**
         * <pre>
         * 支付代码--支付中心统一编码
         * </pre>
         */
        @Override
        public void icbcPayment(com.ywt.gapi.ordercenter.ICBCPaymentRequest request, StreamObserver<com.ywt.gapi.ordercenter.ICBCPaymentResponse> responseObserver){
            StubInvocationUtil.unaryCall(invoker, icbcPaymentMethod , request, responseObserver);
        }
        @Override
        public com.ywt.gapi.ordercenter.ICBCPaymentNotifyResponse icbcPaymentNotify(com.ywt.gapi.ordercenter.ICBCPaymentNotifyRequest request){
            return StubInvocationUtil.unaryCall(invoker, icbcPaymentNotifyMethod, request);
        }

        public CompletableFuture<com.ywt.gapi.ordercenter.ICBCPaymentNotifyResponse> icbcPaymentNotifyAsync(com.ywt.gapi.ordercenter.ICBCPaymentNotifyRequest request){
            return StubInvocationUtil.unaryCall(invoker, icbcPaymentNotifyAsyncMethod, request);
        }

        @Override
        public void icbcPaymentNotify(com.ywt.gapi.ordercenter.ICBCPaymentNotifyRequest request, StreamObserver<com.ywt.gapi.ordercenter.ICBCPaymentNotifyResponse> responseObserver){
            StubInvocationUtil.unaryCall(invoker, icbcPaymentNotifyMethod , request, responseObserver);
        }
        @Override
        public com.ywt.gapi.ordercenter.ICBCRefundNotifyResponse icbcRefundNotify(com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest request){
            return StubInvocationUtil.unaryCall(invoker, icbcRefundNotifyMethod, request);
        }

        public CompletableFuture<com.ywt.gapi.ordercenter.ICBCRefundNotifyResponse> icbcRefundNotifyAsync(com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest request){
            return StubInvocationUtil.unaryCall(invoker, icbcRefundNotifyAsyncMethod, request);
        }

        @Override
        public void icbcRefundNotify(com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest request, StreamObserver<com.ywt.gapi.ordercenter.ICBCRefundNotifyResponse> responseObserver){
            StubInvocationUtil.unaryCall(invoker, icbcRefundNotifyMethod , request, responseObserver);
        }
            /**
         * <pre>
         * 退款成功后回调rest服务方法，url格式: rest://com.ywt.MgDrugApiService/path1/path2
         * </pre>
         */
        @Override
        public com.ywt.gapi.ordercenter.CleanPayLockResponse cleanPayLock(com.ywt.gapi.ordercenter.CleanPayLockRequest request){
            return StubInvocationUtil.unaryCall(invoker, cleanPayLockMethod, request);
        }

        public CompletableFuture<com.ywt.gapi.ordercenter.CleanPayLockResponse> cleanPayLockAsync(com.ywt.gapi.ordercenter.CleanPayLockRequest request){
            return StubInvocationUtil.unaryCall(invoker, cleanPayLockAsyncMethod, request);
        }

            /**
         * <pre>
         * 退款成功后回调rest服务方法，url格式: rest://com.ywt.MgDrugApiService/path1/path2
         * </pre>
         */
        @Override
        public void cleanPayLock(com.ywt.gapi.ordercenter.CleanPayLockRequest request, StreamObserver<com.ywt.gapi.ordercenter.CleanPayLockResponse> responseObserver){
            StubInvocationUtil.unaryCall(invoker, cleanPayLockMethod , request, responseObserver);
        }
            /**
         * <pre>
         * 判断是否在支付中
         * </pre>
         */
        @Override
        public com.ywt.gapi.ordercenter.CheckIsPayingResponse checkIsPaying(com.ywt.gapi.ordercenter.CheckIsPayingRequest request){
            return StubInvocationUtil.unaryCall(invoker, checkIsPayingMethod, request);
        }

        public CompletableFuture<com.ywt.gapi.ordercenter.CheckIsPayingResponse> checkIsPayingAsync(com.ywt.gapi.ordercenter.CheckIsPayingRequest request){
            return StubInvocationUtil.unaryCall(invoker, checkIsPayingAsyncMethod, request);
        }

            /**
         * <pre>
         * 判断是否在支付中
         * </pre>
         */
        @Override
        public void checkIsPaying(com.ywt.gapi.ordercenter.CheckIsPayingRequest request, StreamObserver<com.ywt.gapi.ordercenter.CheckIsPayingResponse> responseObserver){
            StubInvocationUtil.unaryCall(invoker, checkIsPayingMethod , request, responseObserver);
        }
            /**
         * <pre>
         *  创建支付宝订单
         * </pre>
         */
        @Override
        public com.ywt.gapi.ordercenter.CreateAlipayOrderResponse createAlipayOrder(com.ywt.gapi.ordercenter.CreateAlipayOrderRequest request){
            return StubInvocationUtil.unaryCall(invoker, createAlipayOrderMethod, request);
        }

        public CompletableFuture<com.ywt.gapi.ordercenter.CreateAlipayOrderResponse> createAlipayOrderAsync(com.ywt.gapi.ordercenter.CreateAlipayOrderRequest request){
            return StubInvocationUtil.unaryCall(invoker, createAlipayOrderAsyncMethod, request);
        }

            /**
         * <pre>
         *  创建支付宝订单
         * </pre>
         */
        @Override
        public void createAlipayOrder(com.ywt.gapi.ordercenter.CreateAlipayOrderRequest request, StreamObserver<com.ywt.gapi.ordercenter.CreateAlipayOrderResponse> responseObserver){
            StubInvocationUtil.unaryCall(invoker, createAlipayOrderMethod , request, responseObserver);
        }
            /**
         * <pre>
         *  支付宝支付回调
         * </pre>
         */
        @Override
        public com.ywt.gapi.ordercenter.AlipayNotifyResponse alipayNotify(com.ywt.gapi.ordercenter.AlipayNotifyRequest request){
            return StubInvocationUtil.unaryCall(invoker, alipayNotifyMethod, request);
        }

        public CompletableFuture<com.ywt.gapi.ordercenter.AlipayNotifyResponse> alipayNotifyAsync(com.ywt.gapi.ordercenter.AlipayNotifyRequest request){
            return StubInvocationUtil.unaryCall(invoker, alipayNotifyAsyncMethod, request);
        }

            /**
         * <pre>
         *  支付宝支付回调
         * </pre>
         */
        @Override
        public void alipayNotify(com.ywt.gapi.ordercenter.AlipayNotifyRequest request, StreamObserver<com.ywt.gapi.ordercenter.AlipayNotifyResponse> responseObserver){
            StubInvocationUtil.unaryCall(invoker, alipayNotifyMethod , request, responseObserver);
        }



    }

    public static abstract class OrderCenterServiceImplBase implements OrderCenterService, ServerService<OrderCenterService> {

        private <T, R> BiConsumer<T, StreamObserver<R>> syncToAsync(java.util.function.Function<T, R> syncFun) {
            return new BiConsumer<T, StreamObserver<R>>() {
                @Override
                public void accept(T t, StreamObserver<R> observer) {
                    try {
                        R ret = syncFun.apply(t);
                        observer.onNext(ret);
                        observer.onCompleted();
                    } catch (Throwable e) {
                        observer.onError(e);
                    }
                }
            };
        }

        @Override
        public final Invoker<OrderCenterService> getInvoker(URL url) {
            PathResolver pathResolver = url.getOrDefaultFrameworkModel()
            .getExtensionLoader(PathResolver.class)
            .getDefaultExtension();
            Map<String,StubMethodHandler<?, ?>> handlers = new HashMap<>();

            pathResolver.addNativeStub( "/" + SERVICE_NAME + "/createOrder" );
            pathResolver.addNativeStub( "/" + SERVICE_NAME + "/createOrderAsync" );
            pathResolver.addNativeStub( "/" + SERVICE_NAME + "/payByAdmin" );
            pathResolver.addNativeStub( "/" + SERVICE_NAME + "/payByAdminAsync" );
            pathResolver.addNativeStub( "/" + SERVICE_NAME + "/wechatPayment" );
            pathResolver.addNativeStub( "/" + SERVICE_NAME + "/wechatPaymentAsync" );
            pathResolver.addNativeStub( "/" + SERVICE_NAME + "/WechatPaymentNotify" );
            pathResolver.addNativeStub( "/" + SERVICE_NAME + "/WechatPaymentNotifyAsync" );
            pathResolver.addNativeStub( "/" + SERVICE_NAME + "/getOrderInfo" );
            pathResolver.addNativeStub( "/" + SERVICE_NAME + "/getOrderInfoAsync" );
            pathResolver.addNativeStub( "/" + SERVICE_NAME + "/updateOrderInfo" );
            pathResolver.addNativeStub( "/" + SERVICE_NAME + "/updateOrderInfoAsync" );
            pathResolver.addNativeStub( "/" + SERVICE_NAME + "/refund" );
            pathResolver.addNativeStub( "/" + SERVICE_NAME + "/refundAsync" );
            pathResolver.addNativeStub( "/" + SERVICE_NAME + "/wechatRefundNotify" );
            pathResolver.addNativeStub( "/" + SERVICE_NAME + "/wechatRefundNotifyAsync" );
            pathResolver.addNativeStub( "/" + SERVICE_NAME + "/getOrderBill" );
            pathResolver.addNativeStub( "/" + SERVICE_NAME + "/getOrderBillAsync" );
            pathResolver.addNativeStub( "/" + SERVICE_NAME + "/prePayByPOS" );
            pathResolver.addNativeStub( "/" + SERVICE_NAME + "/prePayByPOSAsync" );
            pathResolver.addNativeStub( "/" + SERVICE_NAME + "/finishPayByPOS" );
            pathResolver.addNativeStub( "/" + SERVICE_NAME + "/finishPayByPOSAsync" );
            pathResolver.addNativeStub( "/" + SERVICE_NAME + "/icbcPayment" );
            pathResolver.addNativeStub( "/" + SERVICE_NAME + "/icbcPaymentAsync" );
            pathResolver.addNativeStub( "/" + SERVICE_NAME + "/icbcPaymentNotify" );
            pathResolver.addNativeStub( "/" + SERVICE_NAME + "/icbcPaymentNotifyAsync" );
            pathResolver.addNativeStub( "/" + SERVICE_NAME + "/icbcRefundNotify" );
            pathResolver.addNativeStub( "/" + SERVICE_NAME + "/icbcRefundNotifyAsync" );
            pathResolver.addNativeStub( "/" + SERVICE_NAME + "/cleanPayLock" );
            pathResolver.addNativeStub( "/" + SERVICE_NAME + "/cleanPayLockAsync" );
            pathResolver.addNativeStub( "/" + SERVICE_NAME + "/checkIsPaying" );
            pathResolver.addNativeStub( "/" + SERVICE_NAME + "/checkIsPayingAsync" );
            pathResolver.addNativeStub( "/" + SERVICE_NAME + "/createAlipayOrder" );
            pathResolver.addNativeStub( "/" + SERVICE_NAME + "/createAlipayOrderAsync" );
            pathResolver.addNativeStub( "/" + SERVICE_NAME + "/alipayNotify" );
            pathResolver.addNativeStub( "/" + SERVICE_NAME + "/alipayNotifyAsync" );

            BiConsumer<com.ywt.gapi.ordercenter.CreateOrderRequest, StreamObserver<com.ywt.gapi.ordercenter.CreateOrderResponse>> createOrderFunc = this::createOrder;
            handlers.put(createOrderMethod.getMethodName(), new UnaryStubMethodHandler<>(createOrderFunc));
            BiConsumer<com.ywt.gapi.ordercenter.CreateOrderRequest, StreamObserver<com.ywt.gapi.ordercenter.CreateOrderResponse>> createOrderAsyncFunc = syncToAsync(this::createOrder);
            handlers.put(createOrderProxyAsyncMethod.getMethodName(), new UnaryStubMethodHandler<>(createOrderAsyncFunc));
            BiConsumer<com.ywt.gapi.ordercenter.PayByAdminRequest, StreamObserver<com.ywt.gapi.ordercenter.PayByAdminResponse>> payByAdminFunc = this::payByAdmin;
            handlers.put(payByAdminMethod.getMethodName(), new UnaryStubMethodHandler<>(payByAdminFunc));
            BiConsumer<com.ywt.gapi.ordercenter.PayByAdminRequest, StreamObserver<com.ywt.gapi.ordercenter.PayByAdminResponse>> payByAdminAsyncFunc = syncToAsync(this::payByAdmin);
            handlers.put(payByAdminProxyAsyncMethod.getMethodName(), new UnaryStubMethodHandler<>(payByAdminAsyncFunc));
            BiConsumer<com.ywt.gapi.ordercenter.WechatPaymentRequest, StreamObserver<com.ywt.gapi.ordercenter.WechatPaymentResponse>> wechatPaymentFunc = this::wechatPayment;
            handlers.put(wechatPaymentMethod.getMethodName(), new UnaryStubMethodHandler<>(wechatPaymentFunc));
            BiConsumer<com.ywt.gapi.ordercenter.WechatPaymentRequest, StreamObserver<com.ywt.gapi.ordercenter.WechatPaymentResponse>> wechatPaymentAsyncFunc = syncToAsync(this::wechatPayment);
            handlers.put(wechatPaymentProxyAsyncMethod.getMethodName(), new UnaryStubMethodHandler<>(wechatPaymentAsyncFunc));
            BiConsumer<com.ywt.gapi.ordercenter.WechatPaymentNotifyRequest, StreamObserver<com.ywt.gapi.ordercenter.WechatPaymentNotifyResponse>> wechatPaymentNotifyFunc = this::wechatPaymentNotify;
            handlers.put(wechatPaymentNotifyMethod.getMethodName(), new UnaryStubMethodHandler<>(wechatPaymentNotifyFunc));
            BiConsumer<com.ywt.gapi.ordercenter.WechatPaymentNotifyRequest, StreamObserver<com.ywt.gapi.ordercenter.WechatPaymentNotifyResponse>> wechatPaymentNotifyAsyncFunc = syncToAsync(this::wechatPaymentNotify);
            handlers.put(wechatPaymentNotifyProxyAsyncMethod.getMethodName(), new UnaryStubMethodHandler<>(wechatPaymentNotifyAsyncFunc));
            BiConsumer<com.ywt.gapi.ordercenter.GetOrderInfoRequest, StreamObserver<com.ywt.gapi.ordercenter.GetOrderInfeResponse>> getOrderInfoFunc = this::getOrderInfo;
            handlers.put(getOrderInfoMethod.getMethodName(), new UnaryStubMethodHandler<>(getOrderInfoFunc));
            BiConsumer<com.ywt.gapi.ordercenter.GetOrderInfoRequest, StreamObserver<com.ywt.gapi.ordercenter.GetOrderInfeResponse>> getOrderInfoAsyncFunc = syncToAsync(this::getOrderInfo);
            handlers.put(getOrderInfoProxyAsyncMethod.getMethodName(), new UnaryStubMethodHandler<>(getOrderInfoAsyncFunc));
            BiConsumer<com.ywt.gapi.ordercenter.UpdateOrderInfoRequest, StreamObserver<com.ywt.gapi.ordercenter.UpdateOrderInfoResponse>> updateOrderInfoFunc = this::updateOrderInfo;
            handlers.put(updateOrderInfoMethod.getMethodName(), new UnaryStubMethodHandler<>(updateOrderInfoFunc));
            BiConsumer<com.ywt.gapi.ordercenter.UpdateOrderInfoRequest, StreamObserver<com.ywt.gapi.ordercenter.UpdateOrderInfoResponse>> updateOrderInfoAsyncFunc = syncToAsync(this::updateOrderInfo);
            handlers.put(updateOrderInfoProxyAsyncMethod.getMethodName(), new UnaryStubMethodHandler<>(updateOrderInfoAsyncFunc));
            BiConsumer<com.ywt.gapi.ordercenter.RefundRequest, StreamObserver<com.ywt.gapi.ordercenter.RefundResponse>> refundFunc = this::refund;
            handlers.put(refundMethod.getMethodName(), new UnaryStubMethodHandler<>(refundFunc));
            BiConsumer<com.ywt.gapi.ordercenter.RefundRequest, StreamObserver<com.ywt.gapi.ordercenter.RefundResponse>> refundAsyncFunc = syncToAsync(this::refund);
            handlers.put(refundProxyAsyncMethod.getMethodName(), new UnaryStubMethodHandler<>(refundAsyncFunc));
            BiConsumer<com.ywt.gapi.ordercenter.WechatRefundNotifyRequest, StreamObserver<com.ywt.gapi.ordercenter.WechatRefundNotifyResponse>> wechatRefundNotifyFunc = this::wechatRefundNotify;
            handlers.put(wechatRefundNotifyMethod.getMethodName(), new UnaryStubMethodHandler<>(wechatRefundNotifyFunc));
            BiConsumer<com.ywt.gapi.ordercenter.WechatRefundNotifyRequest, StreamObserver<com.ywt.gapi.ordercenter.WechatRefundNotifyResponse>> wechatRefundNotifyAsyncFunc = syncToAsync(this::wechatRefundNotify);
            handlers.put(wechatRefundNotifyProxyAsyncMethod.getMethodName(), new UnaryStubMethodHandler<>(wechatRefundNotifyAsyncFunc));
            BiConsumer<com.ywt.gapi.ordercenter.GetOrderBillRequest, StreamObserver<com.ywt.gapi.ordercenter.GetOrderBillResponse>> getOrderBillFunc = this::getOrderBill;
            handlers.put(getOrderBillMethod.getMethodName(), new UnaryStubMethodHandler<>(getOrderBillFunc));
            BiConsumer<com.ywt.gapi.ordercenter.GetOrderBillRequest, StreamObserver<com.ywt.gapi.ordercenter.GetOrderBillResponse>> getOrderBillAsyncFunc = syncToAsync(this::getOrderBill);
            handlers.put(getOrderBillProxyAsyncMethod.getMethodName(), new UnaryStubMethodHandler<>(getOrderBillAsyncFunc));
            BiConsumer<com.ywt.gapi.ordercenter.PrePayByPOSRequest, StreamObserver<com.ywt.gapi.ordercenter.PrePayByPOSResponse>> prePayByPOSFunc = this::prePayByPOS;
            handlers.put(prePayByPOSMethod.getMethodName(), new UnaryStubMethodHandler<>(prePayByPOSFunc));
            BiConsumer<com.ywt.gapi.ordercenter.PrePayByPOSRequest, StreamObserver<com.ywt.gapi.ordercenter.PrePayByPOSResponse>> prePayByPOSAsyncFunc = syncToAsync(this::prePayByPOS);
            handlers.put(prePayByPOSProxyAsyncMethod.getMethodName(), new UnaryStubMethodHandler<>(prePayByPOSAsyncFunc));
            BiConsumer<com.ywt.gapi.ordercenter.FinishPayByPOSRequest, StreamObserver<com.ywt.gapi.ordercenter.FinishPayByPOSResponse>> finishPayByPOSFunc = this::finishPayByPOS;
            handlers.put(finishPayByPOSMethod.getMethodName(), new UnaryStubMethodHandler<>(finishPayByPOSFunc));
            BiConsumer<com.ywt.gapi.ordercenter.FinishPayByPOSRequest, StreamObserver<com.ywt.gapi.ordercenter.FinishPayByPOSResponse>> finishPayByPOSAsyncFunc = syncToAsync(this::finishPayByPOS);
            handlers.put(finishPayByPOSProxyAsyncMethod.getMethodName(), new UnaryStubMethodHandler<>(finishPayByPOSAsyncFunc));
            BiConsumer<com.ywt.gapi.ordercenter.ICBCPaymentRequest, StreamObserver<com.ywt.gapi.ordercenter.ICBCPaymentResponse>> icbcPaymentFunc = this::icbcPayment;
            handlers.put(icbcPaymentMethod.getMethodName(), new UnaryStubMethodHandler<>(icbcPaymentFunc));
            BiConsumer<com.ywt.gapi.ordercenter.ICBCPaymentRequest, StreamObserver<com.ywt.gapi.ordercenter.ICBCPaymentResponse>> icbcPaymentAsyncFunc = syncToAsync(this::icbcPayment);
            handlers.put(icbcPaymentProxyAsyncMethod.getMethodName(), new UnaryStubMethodHandler<>(icbcPaymentAsyncFunc));
            BiConsumer<com.ywt.gapi.ordercenter.ICBCPaymentNotifyRequest, StreamObserver<com.ywt.gapi.ordercenter.ICBCPaymentNotifyResponse>> icbcPaymentNotifyFunc = this::icbcPaymentNotify;
            handlers.put(icbcPaymentNotifyMethod.getMethodName(), new UnaryStubMethodHandler<>(icbcPaymentNotifyFunc));
            BiConsumer<com.ywt.gapi.ordercenter.ICBCPaymentNotifyRequest, StreamObserver<com.ywt.gapi.ordercenter.ICBCPaymentNotifyResponse>> icbcPaymentNotifyAsyncFunc = syncToAsync(this::icbcPaymentNotify);
            handlers.put(icbcPaymentNotifyProxyAsyncMethod.getMethodName(), new UnaryStubMethodHandler<>(icbcPaymentNotifyAsyncFunc));
            BiConsumer<com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest, StreamObserver<com.ywt.gapi.ordercenter.ICBCRefundNotifyResponse>> icbcRefundNotifyFunc = this::icbcRefundNotify;
            handlers.put(icbcRefundNotifyMethod.getMethodName(), new UnaryStubMethodHandler<>(icbcRefundNotifyFunc));
            BiConsumer<com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest, StreamObserver<com.ywt.gapi.ordercenter.ICBCRefundNotifyResponse>> icbcRefundNotifyAsyncFunc = syncToAsync(this::icbcRefundNotify);
            handlers.put(icbcRefundNotifyProxyAsyncMethod.getMethodName(), new UnaryStubMethodHandler<>(icbcRefundNotifyAsyncFunc));
            BiConsumer<com.ywt.gapi.ordercenter.CleanPayLockRequest, StreamObserver<com.ywt.gapi.ordercenter.CleanPayLockResponse>> cleanPayLockFunc = this::cleanPayLock;
            handlers.put(cleanPayLockMethod.getMethodName(), new UnaryStubMethodHandler<>(cleanPayLockFunc));
            BiConsumer<com.ywt.gapi.ordercenter.CleanPayLockRequest, StreamObserver<com.ywt.gapi.ordercenter.CleanPayLockResponse>> cleanPayLockAsyncFunc = syncToAsync(this::cleanPayLock);
            handlers.put(cleanPayLockProxyAsyncMethod.getMethodName(), new UnaryStubMethodHandler<>(cleanPayLockAsyncFunc));
            BiConsumer<com.ywt.gapi.ordercenter.CheckIsPayingRequest, StreamObserver<com.ywt.gapi.ordercenter.CheckIsPayingResponse>> checkIsPayingFunc = this::checkIsPaying;
            handlers.put(checkIsPayingMethod.getMethodName(), new UnaryStubMethodHandler<>(checkIsPayingFunc));
            BiConsumer<com.ywt.gapi.ordercenter.CheckIsPayingRequest, StreamObserver<com.ywt.gapi.ordercenter.CheckIsPayingResponse>> checkIsPayingAsyncFunc = syncToAsync(this::checkIsPaying);
            handlers.put(checkIsPayingProxyAsyncMethod.getMethodName(), new UnaryStubMethodHandler<>(checkIsPayingAsyncFunc));
            BiConsumer<com.ywt.gapi.ordercenter.CreateAlipayOrderRequest, StreamObserver<com.ywt.gapi.ordercenter.CreateAlipayOrderResponse>> createAlipayOrderFunc = this::createAlipayOrder;
            handlers.put(createAlipayOrderMethod.getMethodName(), new UnaryStubMethodHandler<>(createAlipayOrderFunc));
            BiConsumer<com.ywt.gapi.ordercenter.CreateAlipayOrderRequest, StreamObserver<com.ywt.gapi.ordercenter.CreateAlipayOrderResponse>> createAlipayOrderAsyncFunc = syncToAsync(this::createAlipayOrder);
            handlers.put(createAlipayOrderProxyAsyncMethod.getMethodName(), new UnaryStubMethodHandler<>(createAlipayOrderAsyncFunc));
            BiConsumer<com.ywt.gapi.ordercenter.AlipayNotifyRequest, StreamObserver<com.ywt.gapi.ordercenter.AlipayNotifyResponse>> alipayNotifyFunc = this::alipayNotify;
            handlers.put(alipayNotifyMethod.getMethodName(), new UnaryStubMethodHandler<>(alipayNotifyFunc));
            BiConsumer<com.ywt.gapi.ordercenter.AlipayNotifyRequest, StreamObserver<com.ywt.gapi.ordercenter.AlipayNotifyResponse>> alipayNotifyAsyncFunc = syncToAsync(this::alipayNotify);
            handlers.put(alipayNotifyProxyAsyncMethod.getMethodName(), new UnaryStubMethodHandler<>(alipayNotifyAsyncFunc));




            return new StubInvoker<>(this, url, OrderCenterService.class, handlers);
        }


        @Override
        public com.ywt.gapi.ordercenter.CreateOrderResponse createOrder(com.ywt.gapi.ordercenter.CreateOrderRequest request){
            throw unimplementedMethodException(createOrderMethod);
        }

        @Override
        public com.ywt.gapi.ordercenter.PayByAdminResponse payByAdmin(com.ywt.gapi.ordercenter.PayByAdminRequest request){
            throw unimplementedMethodException(payByAdminMethod);
        }

        @Override
        public com.ywt.gapi.ordercenter.WechatPaymentResponse wechatPayment(com.ywt.gapi.ordercenter.WechatPaymentRequest request){
            throw unimplementedMethodException(wechatPaymentMethod);
        }

        @Override
        public com.ywt.gapi.ordercenter.WechatPaymentNotifyResponse wechatPaymentNotify(com.ywt.gapi.ordercenter.WechatPaymentNotifyRequest request){
            throw unimplementedMethodException(wechatPaymentNotifyMethod);
        }

        @Override
        public com.ywt.gapi.ordercenter.GetOrderInfeResponse getOrderInfo(com.ywt.gapi.ordercenter.GetOrderInfoRequest request){
            throw unimplementedMethodException(getOrderInfoMethod);
        }

        @Override
        public com.ywt.gapi.ordercenter.UpdateOrderInfoResponse updateOrderInfo(com.ywt.gapi.ordercenter.UpdateOrderInfoRequest request){
            throw unimplementedMethodException(updateOrderInfoMethod);
        }

        @Override
        public com.ywt.gapi.ordercenter.RefundResponse refund(com.ywt.gapi.ordercenter.RefundRequest request){
            throw unimplementedMethodException(refundMethod);
        }

        @Override
        public com.ywt.gapi.ordercenter.WechatRefundNotifyResponse wechatRefundNotify(com.ywt.gapi.ordercenter.WechatRefundNotifyRequest request){
            throw unimplementedMethodException(wechatRefundNotifyMethod);
        }

        @Override
        public com.ywt.gapi.ordercenter.GetOrderBillResponse getOrderBill(com.ywt.gapi.ordercenter.GetOrderBillRequest request){
            throw unimplementedMethodException(getOrderBillMethod);
        }

        @Override
        public com.ywt.gapi.ordercenter.PrePayByPOSResponse prePayByPOS(com.ywt.gapi.ordercenter.PrePayByPOSRequest request){
            throw unimplementedMethodException(prePayByPOSMethod);
        }

        @Override
        public com.ywt.gapi.ordercenter.FinishPayByPOSResponse finishPayByPOS(com.ywt.gapi.ordercenter.FinishPayByPOSRequest request){
            throw unimplementedMethodException(finishPayByPOSMethod);
        }

        @Override
        public com.ywt.gapi.ordercenter.ICBCPaymentResponse icbcPayment(com.ywt.gapi.ordercenter.ICBCPaymentRequest request){
            throw unimplementedMethodException(icbcPaymentMethod);
        }

        @Override
        public com.ywt.gapi.ordercenter.ICBCPaymentNotifyResponse icbcPaymentNotify(com.ywt.gapi.ordercenter.ICBCPaymentNotifyRequest request){
            throw unimplementedMethodException(icbcPaymentNotifyMethod);
        }

        @Override
        public com.ywt.gapi.ordercenter.ICBCRefundNotifyResponse icbcRefundNotify(com.ywt.gapi.ordercenter.ICBCRefundNotifyRequest request){
            throw unimplementedMethodException(icbcRefundNotifyMethod);
        }

        @Override
        public com.ywt.gapi.ordercenter.CleanPayLockResponse cleanPayLock(com.ywt.gapi.ordercenter.CleanPayLockRequest request){
            throw unimplementedMethodException(cleanPayLockMethod);
        }

        @Override
        public com.ywt.gapi.ordercenter.CheckIsPayingResponse checkIsPaying(com.ywt.gapi.ordercenter.CheckIsPayingRequest request){
            throw unimplementedMethodException(checkIsPayingMethod);
        }

        @Override
        public com.ywt.gapi.ordercenter.CreateAlipayOrderResponse createAlipayOrder(com.ywt.gapi.ordercenter.CreateAlipayOrderRequest request){
            throw unimplementedMethodException(createAlipayOrderMethod);
        }

        @Override
        public com.ywt.gapi.ordercenter.AlipayNotifyResponse alipayNotify(com.ywt.gapi.ordercenter.AlipayNotifyRequest request){
            throw unimplementedMethodException(alipayNotifyMethod);
        }





        @Override
        public final ServiceDescriptor getServiceDescriptor() {
            return serviceDescriptor;
        }
        private RpcException unimplementedMethodException(StubMethodDescriptor methodDescriptor) {
            return TriRpcStatus.UNIMPLEMENTED.withDescription(String.format("Method %s is unimplemented",
                "/" + serviceDescriptor.getInterfaceName() + "/" + methodDescriptor.getMethodName())).asException();
        }
    }

}
