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

package com.ywt.gapi.message;

/**
 * <pre>
 * 微信消息相关服务     // 对应 MsgService 项目的 WeChatMsgProvider 类
 * </pre>
 *
 * Protobuf service {@code com.ywt.gapi.message.WeChatMessageService}
 */
public  abstract class WeChatMessageService
    implements com.google.protobuf.Service {
  protected WeChatMessageService() {}

  public interface Interface {
    /**
     * <pre>
     * 发送微信模板消息
     *Edit on 2018-10-22 17:15:37 by Walker
     *修改内容:MessageService中模板消息记录入库和发送两个方法拆分，这个方法只做消息记录，真正的发送方法是sendTemplateMessageAsync
     * </pre>
     *
     * <code>rpc sendTemplateMessage(.com.ywt.gapi.message.SendTemplateMessageRequest) returns (.com.ywt.gapi.message.SendTemplateMessageResponse);</code>
     */
    public abstract void sendTemplateMessage(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.message.SendTemplateMessageRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.message.SendTemplateMessageResponse> done);

    /**
     * <pre>
     * 统一发送客服消息
     * </pre>
     *
     * <code>rpc sendCustomMessage(.com.ywt.gapi.message.SendCustomMessageRequest) returns (.com.ywt.gapi.message.SendCustomMessageResponse);</code>
     */
    public abstract void sendCustomMessage(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.message.SendCustomMessageRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.message.SendCustomMessageResponse> done);

    /**
     * <pre>
     *异步方法发送模板消息。这个是真正发送模板消息的方法。
     * </pre>
     *
     * <code>rpc sendTemplateMessageAsync(.com.ywt.gapi.message.SendTemplateMessageAsyncRequest) returns (.com.ywt.gapi.message.SendTemplateMessageAsyncResponse);</code>
     */
    public abstract void sendTemplateMessageAsync(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.message.SendTemplateMessageAsyncRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.message.SendTemplateMessageAsyncResponse> done);

    /**
     * <pre>
     *发送小程序模板消息（旧）
     * </pre>
     *
     * <code>rpc sendMPTemplateMessage(.com.ywt.gapi.message.SendMPTemplateMessageRequest) returns (.com.ywt.gapi.message.SendMPTemplateMessageResponse);</code>
     */
    public abstract void sendMPTemplateMessage(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.message.SendMPTemplateMessageRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.message.SendMPTemplateMessageResponse> done);

    /**
     * <pre>
     *根据日志表ID发送小程序模板消息（旧）
     * </pre>
     *
     * <code>rpc sendMPTemplateMessageByLogId(.com.ywt.gapi.message.SendMPTemplateMessageByLogIdRequest) returns (.com.ywt.gapi.message.SendMPTemplateMessageByLogIdResponse);</code>
     */
    public abstract void sendMPTemplateMessageByLogId(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.message.SendMPTemplateMessageByLogIdRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.message.SendMPTemplateMessageByLogIdResponse> done);

    /**
     * <pre>
     *发送小程序订阅消息（新）
     * </pre>
     *
     * <code>rpc sendMPSubscribeMessage(.com.ywt.gapi.message.SendMPSubscribeMessageRequest) returns (.com.ywt.gapi.message.SendMPSubscribeMessageResponse);</code>
     */
    public abstract void sendMPSubscribeMessage(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.message.SendMPSubscribeMessageRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.message.SendMPSubscribeMessageResponse> done);

    /**
     * <pre>
     *根据日志表ID发送小程序订阅消息（新）
     * </pre>
     *
     * <code>rpc sendMPSubscribeMessageByLogId(.com.ywt.gapi.message.SendMPSubscribeMessageByLogIdRequest) returns (.com.ywt.gapi.message.SendMPSubscribeMessageByLogIdResponse);</code>
     */
    public abstract void sendMPSubscribeMessageByLogId(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.message.SendMPSubscribeMessageByLogIdRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.message.SendMPSubscribeMessageByLogIdResponse> done);

  }

  public static com.google.protobuf.Service newReflectiveService(
      final Interface impl) {
    return new WeChatMessageService() {
      @java.lang.Override
      public  void sendTemplateMessage(
          com.google.protobuf.RpcController controller,
          com.ywt.gapi.message.SendTemplateMessageRequest request,
          com.google.protobuf.RpcCallback<com.ywt.gapi.message.SendTemplateMessageResponse> done) {
        impl.sendTemplateMessage(controller, request, done);
      }

      @java.lang.Override
      public  void sendCustomMessage(
          com.google.protobuf.RpcController controller,
          com.ywt.gapi.message.SendCustomMessageRequest request,
          com.google.protobuf.RpcCallback<com.ywt.gapi.message.SendCustomMessageResponse> done) {
        impl.sendCustomMessage(controller, request, done);
      }

      @java.lang.Override
      public  void sendTemplateMessageAsync(
          com.google.protobuf.RpcController controller,
          com.ywt.gapi.message.SendTemplateMessageAsyncRequest request,
          com.google.protobuf.RpcCallback<com.ywt.gapi.message.SendTemplateMessageAsyncResponse> done) {
        impl.sendTemplateMessageAsync(controller, request, done);
      }

      @java.lang.Override
      public  void sendMPTemplateMessage(
          com.google.protobuf.RpcController controller,
          com.ywt.gapi.message.SendMPTemplateMessageRequest request,
          com.google.protobuf.RpcCallback<com.ywt.gapi.message.SendMPTemplateMessageResponse> done) {
        impl.sendMPTemplateMessage(controller, request, done);
      }

      @java.lang.Override
      public  void sendMPTemplateMessageByLogId(
          com.google.protobuf.RpcController controller,
          com.ywt.gapi.message.SendMPTemplateMessageByLogIdRequest request,
          com.google.protobuf.RpcCallback<com.ywt.gapi.message.SendMPTemplateMessageByLogIdResponse> done) {
        impl.sendMPTemplateMessageByLogId(controller, request, done);
      }

      @java.lang.Override
      public  void sendMPSubscribeMessage(
          com.google.protobuf.RpcController controller,
          com.ywt.gapi.message.SendMPSubscribeMessageRequest request,
          com.google.protobuf.RpcCallback<com.ywt.gapi.message.SendMPSubscribeMessageResponse> done) {
        impl.sendMPSubscribeMessage(controller, request, done);
      }

      @java.lang.Override
      public  void sendMPSubscribeMessageByLogId(
          com.google.protobuf.RpcController controller,
          com.ywt.gapi.message.SendMPSubscribeMessageByLogIdRequest request,
          com.google.protobuf.RpcCallback<com.ywt.gapi.message.SendMPSubscribeMessageByLogIdResponse> done) {
        impl.sendMPSubscribeMessageByLogId(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.sendTemplateMessage(controller, (com.ywt.gapi.message.SendTemplateMessageRequest)request);
          case 1:
            return impl.sendCustomMessage(controller, (com.ywt.gapi.message.SendCustomMessageRequest)request);
          case 2:
            return impl.sendTemplateMessageAsync(controller, (com.ywt.gapi.message.SendTemplateMessageAsyncRequest)request);
          case 3:
            return impl.sendMPTemplateMessage(controller, (com.ywt.gapi.message.SendMPTemplateMessageRequest)request);
          case 4:
            return impl.sendMPTemplateMessageByLogId(controller, (com.ywt.gapi.message.SendMPTemplateMessageByLogIdRequest)request);
          case 5:
            return impl.sendMPSubscribeMessage(controller, (com.ywt.gapi.message.SendMPSubscribeMessageRequest)request);
          case 6:
            return impl.sendMPSubscribeMessageByLogId(controller, (com.ywt.gapi.message.SendMPSubscribeMessageByLogIdRequest)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.message.SendTemplateMessageRequest.getDefaultInstance();
          case 1:
            return com.ywt.gapi.message.SendCustomMessageRequest.getDefaultInstance();
          case 2:
            return com.ywt.gapi.message.SendTemplateMessageAsyncRequest.getDefaultInstance();
          case 3:
            return com.ywt.gapi.message.SendMPTemplateMessageRequest.getDefaultInstance();
          case 4:
            return com.ywt.gapi.message.SendMPTemplateMessageByLogIdRequest.getDefaultInstance();
          case 5:
            return com.ywt.gapi.message.SendMPSubscribeMessageRequest.getDefaultInstance();
          case 6:
            return com.ywt.gapi.message.SendMPSubscribeMessageByLogIdRequest.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.message.SendTemplateMessageResponse.getDefaultInstance();
          case 1:
            return com.ywt.gapi.message.SendCustomMessageResponse.getDefaultInstance();
          case 2:
            return com.ywt.gapi.message.SendTemplateMessageAsyncResponse.getDefaultInstance();
          case 3:
            return com.ywt.gapi.message.SendMPTemplateMessageResponse.getDefaultInstance();
          case 4:
            return com.ywt.gapi.message.SendMPTemplateMessageByLogIdResponse.getDefaultInstance();
          case 5:
            return com.ywt.gapi.message.SendMPSubscribeMessageResponse.getDefaultInstance();
          case 6:
            return com.ywt.gapi.message.SendMPSubscribeMessageByLogIdResponse.getDefaultInstance();
          default:
            throw new java.lang.AssertionError("Can't get here.");
        }
      }

    };
  }

  /**
   * <pre>
   * 发送微信模板消息
   *Edit on 2018-10-22 17:15:37 by Walker
   *修改内容:MessageService中模板消息记录入库和发送两个方法拆分，这个方法只做消息记录，真正的发送方法是sendTemplateMessageAsync
   * </pre>
   *
   * <code>rpc sendTemplateMessage(.com.ywt.gapi.message.SendTemplateMessageRequest) returns (.com.ywt.gapi.message.SendTemplateMessageResponse);</code>
   */
  public abstract void sendTemplateMessage(
      com.google.protobuf.RpcController controller,
      com.ywt.gapi.message.SendTemplateMessageRequest request,
      com.google.protobuf.RpcCallback<com.ywt.gapi.message.SendTemplateMessageResponse> done);

  /**
   * <pre>
   * 统一发送客服消息
   * </pre>
   *
   * <code>rpc sendCustomMessage(.com.ywt.gapi.message.SendCustomMessageRequest) returns (.com.ywt.gapi.message.SendCustomMessageResponse);</code>
   */
  public abstract void sendCustomMessage(
      com.google.protobuf.RpcController controller,
      com.ywt.gapi.message.SendCustomMessageRequest request,
      com.google.protobuf.RpcCallback<com.ywt.gapi.message.SendCustomMessageResponse> done);

  /**
   * <pre>
   *异步方法发送模板消息。这个是真正发送模板消息的方法。
   * </pre>
   *
   * <code>rpc sendTemplateMessageAsync(.com.ywt.gapi.message.SendTemplateMessageAsyncRequest) returns (.com.ywt.gapi.message.SendTemplateMessageAsyncResponse);</code>
   */
  public abstract void sendTemplateMessageAsync(
      com.google.protobuf.RpcController controller,
      com.ywt.gapi.message.SendTemplateMessageAsyncRequest request,
      com.google.protobuf.RpcCallback<com.ywt.gapi.message.SendTemplateMessageAsyncResponse> done);

  /**
   * <pre>
   *发送小程序模板消息（旧）
   * </pre>
   *
   * <code>rpc sendMPTemplateMessage(.com.ywt.gapi.message.SendMPTemplateMessageRequest) returns (.com.ywt.gapi.message.SendMPTemplateMessageResponse);</code>
   */
  public abstract void sendMPTemplateMessage(
      com.google.protobuf.RpcController controller,
      com.ywt.gapi.message.SendMPTemplateMessageRequest request,
      com.google.protobuf.RpcCallback<com.ywt.gapi.message.SendMPTemplateMessageResponse> done);

  /**
   * <pre>
   *根据日志表ID发送小程序模板消息（旧）
   * </pre>
   *
   * <code>rpc sendMPTemplateMessageByLogId(.com.ywt.gapi.message.SendMPTemplateMessageByLogIdRequest) returns (.com.ywt.gapi.message.SendMPTemplateMessageByLogIdResponse);</code>
   */
  public abstract void sendMPTemplateMessageByLogId(
      com.google.protobuf.RpcController controller,
      com.ywt.gapi.message.SendMPTemplateMessageByLogIdRequest request,
      com.google.protobuf.RpcCallback<com.ywt.gapi.message.SendMPTemplateMessageByLogIdResponse> done);

  /**
   * <pre>
   *发送小程序订阅消息（新）
   * </pre>
   *
   * <code>rpc sendMPSubscribeMessage(.com.ywt.gapi.message.SendMPSubscribeMessageRequest) returns (.com.ywt.gapi.message.SendMPSubscribeMessageResponse);</code>
   */
  public abstract void sendMPSubscribeMessage(
      com.google.protobuf.RpcController controller,
      com.ywt.gapi.message.SendMPSubscribeMessageRequest request,
      com.google.protobuf.RpcCallback<com.ywt.gapi.message.SendMPSubscribeMessageResponse> done);

  /**
   * <pre>
   *根据日志表ID发送小程序订阅消息（新）
   * </pre>
   *
   * <code>rpc sendMPSubscribeMessageByLogId(.com.ywt.gapi.message.SendMPSubscribeMessageByLogIdRequest) returns (.com.ywt.gapi.message.SendMPSubscribeMessageByLogIdResponse);</code>
   */
  public abstract void sendMPSubscribeMessageByLogId(
      com.google.protobuf.RpcController controller,
      com.ywt.gapi.message.SendMPSubscribeMessageByLogIdRequest request,
      com.google.protobuf.RpcCallback<com.ywt.gapi.message.SendMPSubscribeMessageByLogIdResponse> done);

  public static final
      com.google.protobuf.Descriptors.ServiceDescriptor
      getDescriptor() {
    return com.ywt.gapi.message.Message.getDescriptor().getServices().get(2);
  }
  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.sendTemplateMessage(controller, (com.ywt.gapi.message.SendTemplateMessageRequest)request,
          com.google.protobuf.RpcUtil.<com.ywt.gapi.message.SendTemplateMessageResponse>specializeCallback(
            done));
        return;
      case 1:
        this.sendCustomMessage(controller, (com.ywt.gapi.message.SendCustomMessageRequest)request,
          com.google.protobuf.RpcUtil.<com.ywt.gapi.message.SendCustomMessageResponse>specializeCallback(
            done));
        return;
      case 2:
        this.sendTemplateMessageAsync(controller, (com.ywt.gapi.message.SendTemplateMessageAsyncRequest)request,
          com.google.protobuf.RpcUtil.<com.ywt.gapi.message.SendTemplateMessageAsyncResponse>specializeCallback(
            done));
        return;
      case 3:
        this.sendMPTemplateMessage(controller, (com.ywt.gapi.message.SendMPTemplateMessageRequest)request,
          com.google.protobuf.RpcUtil.<com.ywt.gapi.message.SendMPTemplateMessageResponse>specializeCallback(
            done));
        return;
      case 4:
        this.sendMPTemplateMessageByLogId(controller, (com.ywt.gapi.message.SendMPTemplateMessageByLogIdRequest)request,
          com.google.protobuf.RpcUtil.<com.ywt.gapi.message.SendMPTemplateMessageByLogIdResponse>specializeCallback(
            done));
        return;
      case 5:
        this.sendMPSubscribeMessage(controller, (com.ywt.gapi.message.SendMPSubscribeMessageRequest)request,
          com.google.protobuf.RpcUtil.<com.ywt.gapi.message.SendMPSubscribeMessageResponse>specializeCallback(
            done));
        return;
      case 6:
        this.sendMPSubscribeMessageByLogId(controller, (com.ywt.gapi.message.SendMPSubscribeMessageByLogIdRequest)request,
          com.google.protobuf.RpcUtil.<com.ywt.gapi.message.SendMPSubscribeMessageByLogIdResponse>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.message.SendTemplateMessageRequest.getDefaultInstance();
      case 1:
        return com.ywt.gapi.message.SendCustomMessageRequest.getDefaultInstance();
      case 2:
        return com.ywt.gapi.message.SendTemplateMessageAsyncRequest.getDefaultInstance();
      case 3:
        return com.ywt.gapi.message.SendMPTemplateMessageRequest.getDefaultInstance();
      case 4:
        return com.ywt.gapi.message.SendMPTemplateMessageByLogIdRequest.getDefaultInstance();
      case 5:
        return com.ywt.gapi.message.SendMPSubscribeMessageRequest.getDefaultInstance();
      case 6:
        return com.ywt.gapi.message.SendMPSubscribeMessageByLogIdRequest.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.message.SendTemplateMessageResponse.getDefaultInstance();
      case 1:
        return com.ywt.gapi.message.SendCustomMessageResponse.getDefaultInstance();
      case 2:
        return com.ywt.gapi.message.SendTemplateMessageAsyncResponse.getDefaultInstance();
      case 3:
        return com.ywt.gapi.message.SendMPTemplateMessageResponse.getDefaultInstance();
      case 4:
        return com.ywt.gapi.message.SendMPTemplateMessageByLogIdResponse.getDefaultInstance();
      case 5:
        return com.ywt.gapi.message.SendMPSubscribeMessageResponse.getDefaultInstance();
      case 6:
        return com.ywt.gapi.message.SendMPSubscribeMessageByLogIdResponse.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.message.WeChatMessageService 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 sendTemplateMessage(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.message.SendTemplateMessageRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.message.SendTemplateMessageResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(0),
        controller,
        request,
        com.ywt.gapi.message.SendTemplateMessageResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          com.ywt.gapi.message.SendTemplateMessageResponse.class,
          com.ywt.gapi.message.SendTemplateMessageResponse.getDefaultInstance()));
    }

    public  void sendCustomMessage(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.message.SendCustomMessageRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.message.SendCustomMessageResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(1),
        controller,
        request,
        com.ywt.gapi.message.SendCustomMessageResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          com.ywt.gapi.message.SendCustomMessageResponse.class,
          com.ywt.gapi.message.SendCustomMessageResponse.getDefaultInstance()));
    }

    public  void sendTemplateMessageAsync(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.message.SendTemplateMessageAsyncRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.message.SendTemplateMessageAsyncResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(2),
        controller,
        request,
        com.ywt.gapi.message.SendTemplateMessageAsyncResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          com.ywt.gapi.message.SendTemplateMessageAsyncResponse.class,
          com.ywt.gapi.message.SendTemplateMessageAsyncResponse.getDefaultInstance()));
    }

    public  void sendMPTemplateMessage(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.message.SendMPTemplateMessageRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.message.SendMPTemplateMessageResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(3),
        controller,
        request,
        com.ywt.gapi.message.SendMPTemplateMessageResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          com.ywt.gapi.message.SendMPTemplateMessageResponse.class,
          com.ywt.gapi.message.SendMPTemplateMessageResponse.getDefaultInstance()));
    }

    public  void sendMPTemplateMessageByLogId(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.message.SendMPTemplateMessageByLogIdRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.message.SendMPTemplateMessageByLogIdResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(4),
        controller,
        request,
        com.ywt.gapi.message.SendMPTemplateMessageByLogIdResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          com.ywt.gapi.message.SendMPTemplateMessageByLogIdResponse.class,
          com.ywt.gapi.message.SendMPTemplateMessageByLogIdResponse.getDefaultInstance()));
    }

    public  void sendMPSubscribeMessage(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.message.SendMPSubscribeMessageRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.message.SendMPSubscribeMessageResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(5),
        controller,
        request,
        com.ywt.gapi.message.SendMPSubscribeMessageResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          com.ywt.gapi.message.SendMPSubscribeMessageResponse.class,
          com.ywt.gapi.message.SendMPSubscribeMessageResponse.getDefaultInstance()));
    }

    public  void sendMPSubscribeMessageByLogId(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.message.SendMPSubscribeMessageByLogIdRequest request,
        com.google.protobuf.RpcCallback<com.ywt.gapi.message.SendMPSubscribeMessageByLogIdResponse> done) {
      channel.callMethod(
        getDescriptor().getMethods().get(6),
        controller,
        request,
        com.ywt.gapi.message.SendMPSubscribeMessageByLogIdResponse.getDefaultInstance(),
        com.google.protobuf.RpcUtil.generalizeCallback(
          done,
          com.ywt.gapi.message.SendMPSubscribeMessageByLogIdResponse.class,
          com.ywt.gapi.message.SendMPSubscribeMessageByLogIdResponse.getDefaultInstance()));
    }
  }

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

  public interface BlockingInterface {
    public com.ywt.gapi.message.SendTemplateMessageResponse sendTemplateMessage(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.message.SendTemplateMessageRequest request)
        throws com.google.protobuf.ServiceException;

    public com.ywt.gapi.message.SendCustomMessageResponse sendCustomMessage(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.message.SendCustomMessageRequest request)
        throws com.google.protobuf.ServiceException;

    public com.ywt.gapi.message.SendTemplateMessageAsyncResponse sendTemplateMessageAsync(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.message.SendTemplateMessageAsyncRequest request)
        throws com.google.protobuf.ServiceException;

    public com.ywt.gapi.message.SendMPTemplateMessageResponse sendMPTemplateMessage(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.message.SendMPTemplateMessageRequest request)
        throws com.google.protobuf.ServiceException;

    public com.ywt.gapi.message.SendMPTemplateMessageByLogIdResponse sendMPTemplateMessageByLogId(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.message.SendMPTemplateMessageByLogIdRequest request)
        throws com.google.protobuf.ServiceException;

    public com.ywt.gapi.message.SendMPSubscribeMessageResponse sendMPSubscribeMessage(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.message.SendMPSubscribeMessageRequest request)
        throws com.google.protobuf.ServiceException;

    public com.ywt.gapi.message.SendMPSubscribeMessageByLogIdResponse sendMPSubscribeMessageByLogId(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.message.SendMPSubscribeMessageByLogIdRequest 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.message.SendTemplateMessageResponse sendTemplateMessage(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.message.SendTemplateMessageRequest request)
        throws com.google.protobuf.ServiceException {
      return (com.ywt.gapi.message.SendTemplateMessageResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(0),
        controller,
        request,
        com.ywt.gapi.message.SendTemplateMessageResponse.getDefaultInstance());
    }


    public com.ywt.gapi.message.SendCustomMessageResponse sendCustomMessage(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.message.SendCustomMessageRequest request)
        throws com.google.protobuf.ServiceException {
      return (com.ywt.gapi.message.SendCustomMessageResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(1),
        controller,
        request,
        com.ywt.gapi.message.SendCustomMessageResponse.getDefaultInstance());
    }


    public com.ywt.gapi.message.SendTemplateMessageAsyncResponse sendTemplateMessageAsync(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.message.SendTemplateMessageAsyncRequest request)
        throws com.google.protobuf.ServiceException {
      return (com.ywt.gapi.message.SendTemplateMessageAsyncResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(2),
        controller,
        request,
        com.ywt.gapi.message.SendTemplateMessageAsyncResponse.getDefaultInstance());
    }


    public com.ywt.gapi.message.SendMPTemplateMessageResponse sendMPTemplateMessage(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.message.SendMPTemplateMessageRequest request)
        throws com.google.protobuf.ServiceException {
      return (com.ywt.gapi.message.SendMPTemplateMessageResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(3),
        controller,
        request,
        com.ywt.gapi.message.SendMPTemplateMessageResponse.getDefaultInstance());
    }


    public com.ywt.gapi.message.SendMPTemplateMessageByLogIdResponse sendMPTemplateMessageByLogId(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.message.SendMPTemplateMessageByLogIdRequest request)
        throws com.google.protobuf.ServiceException {
      return (com.ywt.gapi.message.SendMPTemplateMessageByLogIdResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(4),
        controller,
        request,
        com.ywt.gapi.message.SendMPTemplateMessageByLogIdResponse.getDefaultInstance());
    }


    public com.ywt.gapi.message.SendMPSubscribeMessageResponse sendMPSubscribeMessage(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.message.SendMPSubscribeMessageRequest request)
        throws com.google.protobuf.ServiceException {
      return (com.ywt.gapi.message.SendMPSubscribeMessageResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(5),
        controller,
        request,
        com.ywt.gapi.message.SendMPSubscribeMessageResponse.getDefaultInstance());
    }


    public com.ywt.gapi.message.SendMPSubscribeMessageByLogIdResponse sendMPSubscribeMessageByLogId(
        com.google.protobuf.RpcController controller,
        com.ywt.gapi.message.SendMPSubscribeMessageByLogIdRequest request)
        throws com.google.protobuf.ServiceException {
      return (com.ywt.gapi.message.SendMPSubscribeMessageByLogIdResponse) channel.callBlockingMethod(
        getDescriptor().getMethods().get(6),
        controller,
        request,
        com.ywt.gapi.message.SendMPSubscribeMessageByLogIdResponse.getDefaultInstance());
    }

  }

  // @@protoc_insertion_point(class_scope:com.ywt.gapi.message.WeChatMessageService)
}

