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

package com.ywt.gapi.taihe.outpaitent;

/**
 * <pre>
 *订单支付成功通知消息
 * </pre>
 *
 * Protobuf type {@code com.ywt.gapi.taihe.outpaitent.PayCallbackRequest}
 */
public  final class PayCallbackRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.taihe.outpaitent.PayCallbackRequest)
    PayCallbackRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use PayCallbackRequest.newBuilder() to construct.
  private PayCallbackRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private PayCallbackRequest() {
    orderNo_ = "";
    orderId_ = 0;
    payType_ = 0;
    custom_ = "";
    bizId_ = 0;
    paymentNo_ = "";
    userId_ = 0;
    prepayId_ = "";
    terminal_ = 0;
    openid_ = "";
    paymentChannel_ = 0;
    oneTimeCustom_ = "";
  }

  @Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private PayCallbackRequest(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          default: {
            if (!parseUnknownFieldProto3(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
          case 10: {
            String s = input.readStringRequireUtf8();

            orderNo_ = s;
            break;
          }
          case 16: {

            orderId_ = input.readInt32();
            break;
          }
          case 24: {

            payType_ = input.readInt32();
            break;
          }
          case 34: {
            String s = input.readStringRequireUtf8();

            custom_ = s;
            break;
          }
          case 40: {

            bizId_ = input.readInt32();
            break;
          }
          case 50: {
            String s = input.readStringRequireUtf8();

            paymentNo_ = s;
            break;
          }
          case 56: {

            userId_ = input.readInt32();
            break;
          }
          case 66: {
            String s = input.readStringRequireUtf8();

            prepayId_ = s;
            break;
          }
          case 72: {

            terminal_ = input.readInt32();
            break;
          }
          case 82: {
            String s = input.readStringRequireUtf8();

            openid_ = s;
            break;
          }
          case 88: {

            paymentChannel_ = input.readInt32();
            break;
          }
          case 98: {
            String s = input.readStringRequireUtf8();

            oneTimeCustom_ = s;
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return TaiheOutpatient.internal_static_com_ywt_gapi_taihe_outpaitent_PayCallbackRequest_descriptor;
  }

  protected FieldAccessorTable
      internalGetFieldAccessorTable() {
    return TaiheOutpatient.internal_static_com_ywt_gapi_taihe_outpaitent_PayCallbackRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            PayCallbackRequest.class, Builder.class);
  }

  public static final int ORDERNO_FIELD_NUMBER = 1;
  private volatile Object orderNo_;
  /**
   * <code>string orderNo = 1;</code>
   */
  public String getOrderNo() {
    Object ref = orderNo_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      orderNo_ = s;
      return s;
    }
  }
  /**
   * <code>string orderNo = 1;</code>
   */
  public com.google.protobuf.ByteString
      getOrderNoBytes() {
    Object ref = orderNo_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      orderNo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ORDERID_FIELD_NUMBER = 2;
  private int orderId_;
  /**
   * <code>int32 orderId = 2;</code>
   */
  public int getOrderId() {
    return orderId_;
  }

  public static final int PAYTYPE_FIELD_NUMBER = 3;
  private int payType_;
  /**
   * <pre>
   *1: 微信; 2: 管理员线下收费
   * </pre>
   *
   * <code>int32 payType = 3;</code>
   */
  public int getPayType() {
    return payType_;
  }

  public static final int CUSTOM_FIELD_NUMBER = 4;
  private volatile Object custom_;
  /**
   * <pre>
   *回发创建单时设置的自定义数据
   * </pre>
   *
   * <code>string custom = 4;</code>
   */
  public String getCustom() {
    Object ref = custom_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      custom_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *回发创建单时设置的自定义数据
   * </pre>
   *
   * <code>string custom = 4;</code>
   */
  public com.google.protobuf.ByteString
      getCustomBytes() {
    Object ref = custom_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      custom_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int BIZID_FIELD_NUMBER = 5;
  private int bizId_;
  /**
   * <code>int32 bizId = 5;</code>
   */
  public int getBizId() {
    return bizId_;
  }

  public static final int PAYMENTNO_FIELD_NUMBER = 6;
  private volatile Object paymentNo_;
  /**
   * <pre>
   *订单中心支付流水号
   * </pre>
   *
   * <code>string paymentNo = 6;</code>
   */
  public String getPaymentNo() {
    Object ref = paymentNo_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      paymentNo_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *订单中心支付流水号
   * </pre>
   *
   * <code>string paymentNo = 6;</code>
   */
  public com.google.protobuf.ByteString
      getPaymentNoBytes() {
    Object ref = paymentNo_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      paymentNo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int USERID_FIELD_NUMBER = 7;
  private int userId_;
  /**
   * <pre>
   *用户id
   * </pre>
   *
   * <code>int32 userId = 7;</code>
   */
  public int getUserId() {
    return userId_;
  }

  public static final int PREPAYID_FIELD_NUMBER = 8;
  private volatile Object prepayId_;
  /**
   * <pre>
   *本次支付微信 prepay_id
   * </pre>
   *
   * <code>string prepayId = 8;</code>
   */
  public String getPrepayId() {
    Object ref = prepayId_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      prepayId_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *本次支付微信 prepay_id
   * </pre>
   *
   * <code>string prepayId = 8;</code>
   */
  public com.google.protobuf.ByteString
      getPrepayIdBytes() {
    Object ref = prepayId_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      prepayId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int TERMINAL_FIELD_NUMBER = 9;
  private int terminal_;
  /**
   * <pre>
   *发起支付终端
   * </pre>
   *
   * <code>int32 terminal = 9;</code>
   */
  public int getTerminal() {
    return terminal_;
  }

  public static final int OPENID_FIELD_NUMBER = 10;
  private volatile Object openid_;
  /**
   * <pre>
   *完成微信支付的微信用户 openid
   * </pre>
   *
   * <code>string openid = 10;</code>
   */
  public String getOpenid() {
    Object ref = openid_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      openid_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *完成微信支付的微信用户 openid
   * </pre>
   *
   * <code>string openid = 10;</code>
   */
  public com.google.protobuf.ByteString
      getOpenidBytes() {
    Object ref = openid_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      openid_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PAYMENTCHANNEL_FIELD_NUMBER = 11;
  private int paymentChannel_;
  /**
   * <code>int32 paymentChannel = 11;</code>
   */
  public int getPaymentChannel() {
    return paymentChannel_;
  }

  public static final int ONETIMECUSTOM_FIELD_NUMBER = 12;
  private volatile Object oneTimeCustom_;
  /**
   * <pre>
   *本次操作自定义数据
   * </pre>
   *
   * <code>string oneTimeCustom = 12;</code>
   */
  public String getOneTimeCustom() {
    Object ref = oneTimeCustom_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      oneTimeCustom_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *本次操作自定义数据
   * </pre>
   *
   * <code>string oneTimeCustom = 12;</code>
   */
  public com.google.protobuf.ByteString
      getOneTimeCustomBytes() {
    Object ref = oneTimeCustom_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      oneTimeCustom_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  private byte memoizedIsInitialized = -1;
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (!getOrderNoBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, orderNo_);
    }
    if (orderId_ != 0) {
      output.writeInt32(2, orderId_);
    }
    if (payType_ != 0) {
      output.writeInt32(3, payType_);
    }
    if (!getCustomBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, custom_);
    }
    if (bizId_ != 0) {
      output.writeInt32(5, bizId_);
    }
    if (!getPaymentNoBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, paymentNo_);
    }
    if (userId_ != 0) {
      output.writeInt32(7, userId_);
    }
    if (!getPrepayIdBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, prepayId_);
    }
    if (terminal_ != 0) {
      output.writeInt32(9, terminal_);
    }
    if (!getOpenidBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 10, openid_);
    }
    if (paymentChannel_ != 0) {
      output.writeInt32(11, paymentChannel_);
    }
    if (!getOneTimeCustomBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 12, oneTimeCustom_);
    }
    unknownFields.writeTo(output);
  }

  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (!getOrderNoBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, orderNo_);
    }
    if (orderId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(2, orderId_);
    }
    if (payType_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(3, payType_);
    }
    if (!getCustomBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, custom_);
    }
    if (bizId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(5, bizId_);
    }
    if (!getPaymentNoBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, paymentNo_);
    }
    if (userId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(7, userId_);
    }
    if (!getPrepayIdBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, prepayId_);
    }
    if (terminal_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(9, terminal_);
    }
    if (!getOpenidBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, openid_);
    }
    if (paymentChannel_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(11, paymentChannel_);
    }
    if (!getOneTimeCustomBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, oneTimeCustom_);
    }
    size += unknownFields.getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @Override
  public boolean equals(final Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof PayCallbackRequest)) {
      return super.equals(obj);
    }
    PayCallbackRequest other = (PayCallbackRequest) obj;

    boolean result = true;
    result = result && getOrderNo()
        .equals(other.getOrderNo());
    result = result && (getOrderId()
        == other.getOrderId());
    result = result && (getPayType()
        == other.getPayType());
    result = result && getCustom()
        .equals(other.getCustom());
    result = result && (getBizId()
        == other.getBizId());
    result = result && getPaymentNo()
        .equals(other.getPaymentNo());
    result = result && (getUserId()
        == other.getUserId());
    result = result && getPrepayId()
        .equals(other.getPrepayId());
    result = result && (getTerminal()
        == other.getTerminal());
    result = result && getOpenid()
        .equals(other.getOpenid());
    result = result && (getPaymentChannel()
        == other.getPaymentChannel());
    result = result && getOneTimeCustom()
        .equals(other.getOneTimeCustom());
    result = result && unknownFields.equals(other.unknownFields);
    return result;
  }

  @Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + ORDERNO_FIELD_NUMBER;
    hash = (53 * hash) + getOrderNo().hashCode();
    hash = (37 * hash) + ORDERID_FIELD_NUMBER;
    hash = (53 * hash) + getOrderId();
    hash = (37 * hash) + PAYTYPE_FIELD_NUMBER;
    hash = (53 * hash) + getPayType();
    hash = (37 * hash) + CUSTOM_FIELD_NUMBER;
    hash = (53 * hash) + getCustom().hashCode();
    hash = (37 * hash) + BIZID_FIELD_NUMBER;
    hash = (53 * hash) + getBizId();
    hash = (37 * hash) + PAYMENTNO_FIELD_NUMBER;
    hash = (53 * hash) + getPaymentNo().hashCode();
    hash = (37 * hash) + USERID_FIELD_NUMBER;
    hash = (53 * hash) + getUserId();
    hash = (37 * hash) + PREPAYID_FIELD_NUMBER;
    hash = (53 * hash) + getPrepayId().hashCode();
    hash = (37 * hash) + TERMINAL_FIELD_NUMBER;
    hash = (53 * hash) + getTerminal();
    hash = (37 * hash) + OPENID_FIELD_NUMBER;
    hash = (53 * hash) + getOpenid().hashCode();
    hash = (37 * hash) + PAYMENTCHANNEL_FIELD_NUMBER;
    hash = (53 * hash) + getPaymentChannel();
    hash = (37 * hash) + ONETIMECUSTOM_FIELD_NUMBER;
    hash = (53 * hash) + getOneTimeCustom().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static PayCallbackRequest parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static PayCallbackRequest parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static PayCallbackRequest parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static PayCallbackRequest parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static PayCallbackRequest parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static PayCallbackRequest parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static PayCallbackRequest parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static PayCallbackRequest parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }
  public static PayCallbackRequest parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static PayCallbackRequest parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static PayCallbackRequest parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static PayCallbackRequest parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(PayCallbackRequest prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @Override
  protected Builder newBuilderForType(
      BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * <pre>
   *订单支付成功通知消息
   * </pre>
   *
   * Protobuf type {@code com.ywt.gapi.taihe.outpaitent.PayCallbackRequest}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.taihe.outpaitent.PayCallbackRequest)
      PayCallbackRequestOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return TaiheOutpatient.internal_static_com_ywt_gapi_taihe_outpaitent_PayCallbackRequest_descriptor;
    }

    protected FieldAccessorTable
        internalGetFieldAccessorTable() {
      return TaiheOutpatient.internal_static_com_ywt_gapi_taihe_outpaitent_PayCallbackRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              PayCallbackRequest.class, Builder.class);
    }

    // Construct using com.ywt.gapi.taihe.outpaitent.PayCallbackRequest.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
      }
    }
    public Builder clear() {
      super.clear();
      orderNo_ = "";

      orderId_ = 0;

      payType_ = 0;

      custom_ = "";

      bizId_ = 0;

      paymentNo_ = "";

      userId_ = 0;

      prepayId_ = "";

      terminal_ = 0;

      openid_ = "";

      paymentChannel_ = 0;

      oneTimeCustom_ = "";

      return this;
    }

    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return TaiheOutpatient.internal_static_com_ywt_gapi_taihe_outpaitent_PayCallbackRequest_descriptor;
    }

    public PayCallbackRequest getDefaultInstanceForType() {
      return PayCallbackRequest.getDefaultInstance();
    }

    public PayCallbackRequest build() {
      PayCallbackRequest result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    public PayCallbackRequest buildPartial() {
      PayCallbackRequest result = new PayCallbackRequest(this);
      result.orderNo_ = orderNo_;
      result.orderId_ = orderId_;
      result.payType_ = payType_;
      result.custom_ = custom_;
      result.bizId_ = bizId_;
      result.paymentNo_ = paymentNo_;
      result.userId_ = userId_;
      result.prepayId_ = prepayId_;
      result.terminal_ = terminal_;
      result.openid_ = openid_;
      result.paymentChannel_ = paymentChannel_;
      result.oneTimeCustom_ = oneTimeCustom_;
      onBuilt();
      return result;
    }

    public Builder clone() {
      return (Builder) super.clone();
    }
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        Object value) {
      return (Builder) super.setField(field, value);
    }
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return (Builder) super.clearField(field);
    }
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return (Builder) super.clearOneof(oneof);
    }
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, Object value) {
      return (Builder) super.setRepeatedField(field, index, value);
    }
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        Object value) {
      return (Builder) super.addRepeatedField(field, value);
    }
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof PayCallbackRequest) {
        return mergeFrom((PayCallbackRequest)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(PayCallbackRequest other) {
      if (other == PayCallbackRequest.getDefaultInstance()) return this;
      if (!other.getOrderNo().isEmpty()) {
        orderNo_ = other.orderNo_;
        onChanged();
      }
      if (other.getOrderId() != 0) {
        setOrderId(other.getOrderId());
      }
      if (other.getPayType() != 0) {
        setPayType(other.getPayType());
      }
      if (!other.getCustom().isEmpty()) {
        custom_ = other.custom_;
        onChanged();
      }
      if (other.getBizId() != 0) {
        setBizId(other.getBizId());
      }
      if (!other.getPaymentNo().isEmpty()) {
        paymentNo_ = other.paymentNo_;
        onChanged();
      }
      if (other.getUserId() != 0) {
        setUserId(other.getUserId());
      }
      if (!other.getPrepayId().isEmpty()) {
        prepayId_ = other.prepayId_;
        onChanged();
      }
      if (other.getTerminal() != 0) {
        setTerminal(other.getTerminal());
      }
      if (!other.getOpenid().isEmpty()) {
        openid_ = other.openid_;
        onChanged();
      }
      if (other.getPaymentChannel() != 0) {
        setPaymentChannel(other.getPaymentChannel());
      }
      if (!other.getOneTimeCustom().isEmpty()) {
        oneTimeCustom_ = other.oneTimeCustom_;
        onChanged();
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

    public final boolean isInitialized() {
      return true;
    }

    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      PayCallbackRequest parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (PayCallbackRequest) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private Object orderNo_ = "";
    /**
     * <code>string orderNo = 1;</code>
     */
    public String getOrderNo() {
      Object ref = orderNo_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        orderNo_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <code>string orderNo = 1;</code>
     */
    public com.google.protobuf.ByteString
        getOrderNoBytes() {
      Object ref = orderNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        orderNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string orderNo = 1;</code>
     */
    public Builder setOrderNo(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      orderNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string orderNo = 1;</code>
     */
    public Builder clearOrderNo() {
      
      orderNo_ = getDefaultInstance().getOrderNo();
      onChanged();
      return this;
    }
    /**
     * <code>string orderNo = 1;</code>
     */
    public Builder setOrderNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      orderNo_ = value;
      onChanged();
      return this;
    }

    private int orderId_ ;
    /**
     * <code>int32 orderId = 2;</code>
     */
    public int getOrderId() {
      return orderId_;
    }
    /**
     * <code>int32 orderId = 2;</code>
     */
    public Builder setOrderId(int value) {
      
      orderId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 orderId = 2;</code>
     */
    public Builder clearOrderId() {
      
      orderId_ = 0;
      onChanged();
      return this;
    }

    private int payType_ ;
    /**
     * <pre>
     *1: 微信; 2: 管理员线下收费
     * </pre>
     *
     * <code>int32 payType = 3;</code>
     */
    public int getPayType() {
      return payType_;
    }
    /**
     * <pre>
     *1: 微信; 2: 管理员线下收费
     * </pre>
     *
     * <code>int32 payType = 3;</code>
     */
    public Builder setPayType(int value) {
      
      payType_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *1: 微信; 2: 管理员线下收费
     * </pre>
     *
     * <code>int32 payType = 3;</code>
     */
    public Builder clearPayType() {
      
      payType_ = 0;
      onChanged();
      return this;
    }

    private Object custom_ = "";
    /**
     * <pre>
     *回发创建单时设置的自定义数据
     * </pre>
     *
     * <code>string custom = 4;</code>
     */
    public String getCustom() {
      Object ref = custom_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        custom_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <pre>
     *回发创建单时设置的自定义数据
     * </pre>
     *
     * <code>string custom = 4;</code>
     */
    public com.google.protobuf.ByteString
        getCustomBytes() {
      Object ref = custom_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        custom_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *回发创建单时设置的自定义数据
     * </pre>
     *
     * <code>string custom = 4;</code>
     */
    public Builder setCustom(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      custom_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *回发创建单时设置的自定义数据
     * </pre>
     *
     * <code>string custom = 4;</code>
     */
    public Builder clearCustom() {
      
      custom_ = getDefaultInstance().getCustom();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *回发创建单时设置的自定义数据
     * </pre>
     *
     * <code>string custom = 4;</code>
     */
    public Builder setCustomBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      custom_ = value;
      onChanged();
      return this;
    }

    private int bizId_ ;
    /**
     * <code>int32 bizId = 5;</code>
     */
    public int getBizId() {
      return bizId_;
    }
    /**
     * <code>int32 bizId = 5;</code>
     */
    public Builder setBizId(int value) {
      
      bizId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 bizId = 5;</code>
     */
    public Builder clearBizId() {
      
      bizId_ = 0;
      onChanged();
      return this;
    }

    private Object paymentNo_ = "";
    /**
     * <pre>
     *订单中心支付流水号
     * </pre>
     *
     * <code>string paymentNo = 6;</code>
     */
    public String getPaymentNo() {
      Object ref = paymentNo_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        paymentNo_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <pre>
     *订单中心支付流水号
     * </pre>
     *
     * <code>string paymentNo = 6;</code>
     */
    public com.google.protobuf.ByteString
        getPaymentNoBytes() {
      Object ref = paymentNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        paymentNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *订单中心支付流水号
     * </pre>
     *
     * <code>string paymentNo = 6;</code>
     */
    public Builder setPaymentNo(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      paymentNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *订单中心支付流水号
     * </pre>
     *
     * <code>string paymentNo = 6;</code>
     */
    public Builder clearPaymentNo() {
      
      paymentNo_ = getDefaultInstance().getPaymentNo();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *订单中心支付流水号
     * </pre>
     *
     * <code>string paymentNo = 6;</code>
     */
    public Builder setPaymentNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      paymentNo_ = value;
      onChanged();
      return this;
    }

    private int userId_ ;
    /**
     * <pre>
     *用户id
     * </pre>
     *
     * <code>int32 userId = 7;</code>
     */
    public int getUserId() {
      return userId_;
    }
    /**
     * <pre>
     *用户id
     * </pre>
     *
     * <code>int32 userId = 7;</code>
     */
    public Builder setUserId(int value) {
      
      userId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *用户id
     * </pre>
     *
     * <code>int32 userId = 7;</code>
     */
    public Builder clearUserId() {
      
      userId_ = 0;
      onChanged();
      return this;
    }

    private Object prepayId_ = "";
    /**
     * <pre>
     *本次支付微信 prepay_id
     * </pre>
     *
     * <code>string prepayId = 8;</code>
     */
    public String getPrepayId() {
      Object ref = prepayId_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        prepayId_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <pre>
     *本次支付微信 prepay_id
     * </pre>
     *
     * <code>string prepayId = 8;</code>
     */
    public com.google.protobuf.ByteString
        getPrepayIdBytes() {
      Object ref = prepayId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        prepayId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *本次支付微信 prepay_id
     * </pre>
     *
     * <code>string prepayId = 8;</code>
     */
    public Builder setPrepayId(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      prepayId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *本次支付微信 prepay_id
     * </pre>
     *
     * <code>string prepayId = 8;</code>
     */
    public Builder clearPrepayId() {
      
      prepayId_ = getDefaultInstance().getPrepayId();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *本次支付微信 prepay_id
     * </pre>
     *
     * <code>string prepayId = 8;</code>
     */
    public Builder setPrepayIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      prepayId_ = value;
      onChanged();
      return this;
    }

    private int terminal_ ;
    /**
     * <pre>
     *发起支付终端
     * </pre>
     *
     * <code>int32 terminal = 9;</code>
     */
    public int getTerminal() {
      return terminal_;
    }
    /**
     * <pre>
     *发起支付终端
     * </pre>
     *
     * <code>int32 terminal = 9;</code>
     */
    public Builder setTerminal(int value) {
      
      terminal_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *发起支付终端
     * </pre>
     *
     * <code>int32 terminal = 9;</code>
     */
    public Builder clearTerminal() {
      
      terminal_ = 0;
      onChanged();
      return this;
    }

    private Object openid_ = "";
    /**
     * <pre>
     *完成微信支付的微信用户 openid
     * </pre>
     *
     * <code>string openid = 10;</code>
     */
    public String getOpenid() {
      Object ref = openid_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        openid_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <pre>
     *完成微信支付的微信用户 openid
     * </pre>
     *
     * <code>string openid = 10;</code>
     */
    public com.google.protobuf.ByteString
        getOpenidBytes() {
      Object ref = openid_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        openid_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *完成微信支付的微信用户 openid
     * </pre>
     *
     * <code>string openid = 10;</code>
     */
    public Builder setOpenid(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      openid_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *完成微信支付的微信用户 openid
     * </pre>
     *
     * <code>string openid = 10;</code>
     */
    public Builder clearOpenid() {
      
      openid_ = getDefaultInstance().getOpenid();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *完成微信支付的微信用户 openid
     * </pre>
     *
     * <code>string openid = 10;</code>
     */
    public Builder setOpenidBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      openid_ = value;
      onChanged();
      return this;
    }

    private int paymentChannel_ ;
    /**
     * <code>int32 paymentChannel = 11;</code>
     */
    public int getPaymentChannel() {
      return paymentChannel_;
    }
    /**
     * <code>int32 paymentChannel = 11;</code>
     */
    public Builder setPaymentChannel(int value) {
      
      paymentChannel_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 paymentChannel = 11;</code>
     */
    public Builder clearPaymentChannel() {
      
      paymentChannel_ = 0;
      onChanged();
      return this;
    }

    private Object oneTimeCustom_ = "";
    /**
     * <pre>
     *本次操作自定义数据
     * </pre>
     *
     * <code>string oneTimeCustom = 12;</code>
     */
    public String getOneTimeCustom() {
      Object ref = oneTimeCustom_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        oneTimeCustom_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <pre>
     *本次操作自定义数据
     * </pre>
     *
     * <code>string oneTimeCustom = 12;</code>
     */
    public com.google.protobuf.ByteString
        getOneTimeCustomBytes() {
      Object ref = oneTimeCustom_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        oneTimeCustom_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *本次操作自定义数据
     * </pre>
     *
     * <code>string oneTimeCustom = 12;</code>
     */
    public Builder setOneTimeCustom(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      oneTimeCustom_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *本次操作自定义数据
     * </pre>
     *
     * <code>string oneTimeCustom = 12;</code>
     */
    public Builder clearOneTimeCustom() {
      
      oneTimeCustom_ = getDefaultInstance().getOneTimeCustom();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *本次操作自定义数据
     * </pre>
     *
     * <code>string oneTimeCustom = 12;</code>
     */
    public Builder setOneTimeCustomBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      oneTimeCustom_ = value;
      onChanged();
      return this;
    }
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFieldsProto3(unknownFields);
    }

    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }


    // @@protoc_insertion_point(builder_scope:com.ywt.gapi.taihe.outpaitent.PayCallbackRequest)
  }

  // @@protoc_insertion_point(class_scope:com.ywt.gapi.taihe.outpaitent.PayCallbackRequest)
  private static final PayCallbackRequest DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new PayCallbackRequest();
  }

  public static PayCallbackRequest getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<PayCallbackRequest>
      PARSER = new com.google.protobuf.AbstractParser<PayCallbackRequest>() {
    public PayCallbackRequest parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new PayCallbackRequest(input, extensionRegistry);
    }
  };

  public static com.google.protobuf.Parser<PayCallbackRequest> parser() {
    return PARSER;
  }

  @Override
  public com.google.protobuf.Parser<PayCallbackRequest> getParserForType() {
    return PARSER;
  }

  public PayCallbackRequest getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

