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

package com.ywt.gapi.ordercenter;

/**
 * <pre>
 *微信退款结果通知请求消息
 * </pre>
 *
 * Protobuf type {@code com.ywt.gapi.ordercenter.WechatRefundNotifyRequest}
 */
public final class WechatRefundNotifyRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.ordercenter.WechatRefundNotifyRequest)
    WechatRefundNotifyRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use WechatRefundNotifyRequest.newBuilder() to construct.
  private WechatRefundNotifyRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private WechatRefundNotifyRequest() {
    refundNo_ = "";
    outTradeNo_ = "";
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new WechatRefundNotifyRequest();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private WechatRefundNotifyRequest(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    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;
          case 10: {
            java.lang.String s = input.readStringRequireUtf8();

            refundNo_ = s;
            break;
          }
          case 18: {
            java.lang.String s = input.readStringRequireUtf8();

            outTradeNo_ = s;
            break;
          }
          case 24: {

            refundDate_ = input.readInt64();
            break;
          }
          case 32: {

            refundFinishDate_ = input.readInt64();
            break;
          }
          case 40: {

            refundSuccessTime_ = input.readInt64();
            break;
          }
          case 48: {

            refundFee_ = input.readInt32();
            break;
          }
          case 56: {

            refundStatus_ = input.readInt32();
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            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 com.ywt.gapi.ordercenter.OrderCenterProto.internal_static_com_ywt_gapi_ordercenter_WechatRefundNotifyRequest_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.ordercenter.OrderCenterProto.internal_static_com_ywt_gapi_ordercenter_WechatRefundNotifyRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.ordercenter.WechatRefundNotifyRequest.class, com.ywt.gapi.ordercenter.WechatRefundNotifyRequest.Builder.class);
  }

  public static final int REFUNDNO_FIELD_NUMBER = 1;
  private volatile java.lang.Object refundNo_;
  /**
   * <pre>
   *商户退款单号
   * </pre>
   *
   * <code>string refundNo = 1;</code>
   * @return The refundNo.
   */
  @java.lang.Override
  public java.lang.String getRefundNo() {
    java.lang.Object ref = refundNo_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      refundNo_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *商户退款单号
   * </pre>
   *
   * <code>string refundNo = 1;</code>
   * @return The bytes for refundNo.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getRefundNoBytes() {
    java.lang.Object ref = refundNo_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      refundNo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int OUTTRADENO_FIELD_NUMBER = 2;
  private volatile java.lang.Object outTradeNo_;
  /**
   * <pre>
   *商户订单号
   * </pre>
   *
   * <code>string outTradeNo = 2;</code>
   * @return The outTradeNo.
   */
  @java.lang.Override
  public java.lang.String getOutTradeNo() {
    java.lang.Object ref = outTradeNo_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      outTradeNo_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *商户订单号
   * </pre>
   *
   * <code>string outTradeNo = 2;</code>
   * @return The bytes for outTradeNo.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getOutTradeNoBytes() {
    java.lang.Object ref = outTradeNo_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      outTradeNo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int REFUNDDATE_FIELD_NUMBER = 3;
  private long refundDate_;
  /**
   * <pre>
   *申请退款时间, 时间戳: 秒
   * </pre>
   *
   * <code>int64 refundDate = 3;</code>
   * @return The refundDate.
   */
  @java.lang.Override
  public long getRefundDate() {
    return refundDate_;
  }

  public static final int REFUNDFINISHDATE_FIELD_NUMBER = 4;
  private long refundFinishDate_;
  /**
   * <pre>
   *退款处理完成时间, 时间戳: 秒
   * </pre>
   *
   * <code>int64 refundFinishDate = 4;</code>
   * @return The refundFinishDate.
   */
  @java.lang.Override
  public long getRefundFinishDate() {
    return refundFinishDate_;
  }

  public static final int REFUNDSUCCESSTIME_FIELD_NUMBER = 5;
  private long refundSuccessTime_;
  /**
   * <pre>
   *退款成功时间, 时间戳: 秒
   * </pre>
   *
   * <code>int64 refundSuccessTime = 5;</code>
   * @return The refundSuccessTime.
   */
  @java.lang.Override
  public long getRefundSuccessTime() {
    return refundSuccessTime_;
  }

  public static final int REFUNDFEE_FIELD_NUMBER = 6;
  private int refundFee_;
  /**
   * <pre>
   *微信退款金额，单位为分
   * </pre>
   *
   * <code>int32 refundFee = 6;</code>
   * @return The refundFee.
   */
  @java.lang.Override
  public int getRefundFee() {
    return refundFee_;
  }

  public static final int REFUNDSTATUS_FIELD_NUMBER = 7;
  private int refundStatus_;
  /**
   * <pre>
   *退款状态 1: 退款成功，2: 退款异常，3: 退款关闭
   * </pre>
   *
   * <code>int32 refundStatus = 7;</code>
   * @return The refundStatus.
   */
  @java.lang.Override
  public int getRefundStatus() {
    return refundStatus_;
  }

  private byte memoizedIsInitialized = -1;
  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(refundNo_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, refundNo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outTradeNo_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, outTradeNo_);
    }
    if (refundDate_ != 0L) {
      output.writeInt64(3, refundDate_);
    }
    if (refundFinishDate_ != 0L) {
      output.writeInt64(4, refundFinishDate_);
    }
    if (refundSuccessTime_ != 0L) {
      output.writeInt64(5, refundSuccessTime_);
    }
    if (refundFee_ != 0) {
      output.writeInt32(6, refundFee_);
    }
    if (refundStatus_ != 0) {
      output.writeInt32(7, refundStatus_);
    }
    unknownFields.writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(refundNo_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, refundNo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outTradeNo_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, outTradeNo_);
    }
    if (refundDate_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(3, refundDate_);
    }
    if (refundFinishDate_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(4, refundFinishDate_);
    }
    if (refundSuccessTime_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(5, refundSuccessTime_);
    }
    if (refundFee_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(6, refundFee_);
    }
    if (refundStatus_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(7, refundStatus_);
    }
    size += unknownFields.getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof com.ywt.gapi.ordercenter.WechatRefundNotifyRequest)) {
      return super.equals(obj);
    }
    com.ywt.gapi.ordercenter.WechatRefundNotifyRequest other = (com.ywt.gapi.ordercenter.WechatRefundNotifyRequest) obj;

    if (!getRefundNo()
        .equals(other.getRefundNo())) return false;
    if (!getOutTradeNo()
        .equals(other.getOutTradeNo())) return false;
    if (getRefundDate()
        != other.getRefundDate()) return false;
    if (getRefundFinishDate()
        != other.getRefundFinishDate()) return false;
    if (getRefundSuccessTime()
        != other.getRefundSuccessTime()) return false;
    if (getRefundFee()
        != other.getRefundFee()) return false;
    if (getRefundStatus()
        != other.getRefundStatus()) return false;
    if (!unknownFields.equals(other.unknownFields)) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + REFUNDNO_FIELD_NUMBER;
    hash = (53 * hash) + getRefundNo().hashCode();
    hash = (37 * hash) + OUTTRADENO_FIELD_NUMBER;
    hash = (53 * hash) + getOutTradeNo().hashCode();
    hash = (37 * hash) + REFUNDDATE_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getRefundDate());
    hash = (37 * hash) + REFUNDFINISHDATE_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getRefundFinishDate());
    hash = (37 * hash) + REFUNDSUCCESSTIME_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getRefundSuccessTime());
    hash = (37 * hash) + REFUNDFEE_FIELD_NUMBER;
    hash = (53 * hash) + getRefundFee();
    hash = (37 * hash) + REFUNDSTATUS_FIELD_NUMBER;
    hash = (53 * hash) + getRefundStatus();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.ywt.gapi.ordercenter.WechatRefundNotifyRequest parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.ordercenter.WechatRefundNotifyRequest parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.ordercenter.WechatRefundNotifyRequest parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.ordercenter.WechatRefundNotifyRequest parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.ordercenter.WechatRefundNotifyRequest parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.ordercenter.WechatRefundNotifyRequest parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.ordercenter.WechatRefundNotifyRequest parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.ordercenter.WechatRefundNotifyRequest 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 com.ywt.gapi.ordercenter.WechatRefundNotifyRequest parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.ordercenter.WechatRefundNotifyRequest 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 com.ywt.gapi.ordercenter.WechatRefundNotifyRequest parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.ordercenter.WechatRefundNotifyRequest parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(com.ywt.gapi.ordercenter.WechatRefundNotifyRequest prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * <pre>
   *微信退款结果通知请求消息
   * </pre>
   *
   * Protobuf type {@code com.ywt.gapi.ordercenter.WechatRefundNotifyRequest}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.ordercenter.WechatRefundNotifyRequest)
      com.ywt.gapi.ordercenter.WechatRefundNotifyRequestOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.ordercenter.OrderCenterProto.internal_static_com_ywt_gapi_ordercenter_WechatRefundNotifyRequest_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.ordercenter.OrderCenterProto.internal_static_com_ywt_gapi_ordercenter_WechatRefundNotifyRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.ordercenter.WechatRefundNotifyRequest.class, com.ywt.gapi.ordercenter.WechatRefundNotifyRequest.Builder.class);
    }

    // Construct using com.ywt.gapi.ordercenter.WechatRefundNotifyRequest.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      refundNo_ = "";

      outTradeNo_ = "";

      refundDate_ = 0L;

      refundFinishDate_ = 0L;

      refundSuccessTime_ = 0L;

      refundFee_ = 0;

      refundStatus_ = 0;

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.ordercenter.OrderCenterProto.internal_static_com_ywt_gapi_ordercenter_WechatRefundNotifyRequest_descriptor;
    }

    @java.lang.Override
    public com.ywt.gapi.ordercenter.WechatRefundNotifyRequest getDefaultInstanceForType() {
      return com.ywt.gapi.ordercenter.WechatRefundNotifyRequest.getDefaultInstance();
    }

    @java.lang.Override
    public com.ywt.gapi.ordercenter.WechatRefundNotifyRequest build() {
      com.ywt.gapi.ordercenter.WechatRefundNotifyRequest result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.ywt.gapi.ordercenter.WechatRefundNotifyRequest buildPartial() {
      com.ywt.gapi.ordercenter.WechatRefundNotifyRequest result = new com.ywt.gapi.ordercenter.WechatRefundNotifyRequest(this);
      result.refundNo_ = refundNo_;
      result.outTradeNo_ = outTradeNo_;
      result.refundDate_ = refundDate_;
      result.refundFinishDate_ = refundFinishDate_;
      result.refundSuccessTime_ = refundSuccessTime_;
      result.refundFee_ = refundFee_;
      result.refundStatus_ = refundStatus_;
      onBuilt();
      return result;
    }

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

    public Builder mergeFrom(com.ywt.gapi.ordercenter.WechatRefundNotifyRequest other) {
      if (other == com.ywt.gapi.ordercenter.WechatRefundNotifyRequest.getDefaultInstance()) return this;
      if (!other.getRefundNo().isEmpty()) {
        refundNo_ = other.refundNo_;
        onChanged();
      }
      if (!other.getOutTradeNo().isEmpty()) {
        outTradeNo_ = other.outTradeNo_;
        onChanged();
      }
      if (other.getRefundDate() != 0L) {
        setRefundDate(other.getRefundDate());
      }
      if (other.getRefundFinishDate() != 0L) {
        setRefundFinishDate(other.getRefundFinishDate());
      }
      if (other.getRefundSuccessTime() != 0L) {
        setRefundSuccessTime(other.getRefundSuccessTime());
      }
      if (other.getRefundFee() != 0) {
        setRefundFee(other.getRefundFee());
      }
      if (other.getRefundStatus() != 0) {
        setRefundStatus(other.getRefundStatus());
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

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

    private java.lang.Object refundNo_ = "";
    /**
     * <pre>
     *商户退款单号
     * </pre>
     *
     * <code>string refundNo = 1;</code>
     * @return The refundNo.
     */
    public java.lang.String getRefundNo() {
      java.lang.Object ref = refundNo_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        refundNo_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *商户退款单号
     * </pre>
     *
     * <code>string refundNo = 1;</code>
     * @return The bytes for refundNo.
     */
    public com.google.protobuf.ByteString
        getRefundNoBytes() {
      java.lang.Object ref = refundNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        refundNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *商户退款单号
     * </pre>
     *
     * <code>string refundNo = 1;</code>
     * @param value The refundNo to set.
     * @return This builder for chaining.
     */
    public Builder setRefundNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      refundNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *商户退款单号
     * </pre>
     *
     * <code>string refundNo = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearRefundNo() {
      
      refundNo_ = getDefaultInstance().getRefundNo();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *商户退款单号
     * </pre>
     *
     * <code>string refundNo = 1;</code>
     * @param value The bytes for refundNo to set.
     * @return This builder for chaining.
     */
    public Builder setRefundNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      refundNo_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object outTradeNo_ = "";
    /**
     * <pre>
     *商户订单号
     * </pre>
     *
     * <code>string outTradeNo = 2;</code>
     * @return The outTradeNo.
     */
    public java.lang.String getOutTradeNo() {
      java.lang.Object ref = outTradeNo_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        outTradeNo_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *商户订单号
     * </pre>
     *
     * <code>string outTradeNo = 2;</code>
     * @return The bytes for outTradeNo.
     */
    public com.google.protobuf.ByteString
        getOutTradeNoBytes() {
      java.lang.Object ref = outTradeNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        outTradeNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *商户订单号
     * </pre>
     *
     * <code>string outTradeNo = 2;</code>
     * @param value The outTradeNo to set.
     * @return This builder for chaining.
     */
    public Builder setOutTradeNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      outTradeNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *商户订单号
     * </pre>
     *
     * <code>string outTradeNo = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearOutTradeNo() {
      
      outTradeNo_ = getDefaultInstance().getOutTradeNo();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *商户订单号
     * </pre>
     *
     * <code>string outTradeNo = 2;</code>
     * @param value The bytes for outTradeNo to set.
     * @return This builder for chaining.
     */
    public Builder setOutTradeNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      outTradeNo_ = value;
      onChanged();
      return this;
    }

    private long refundDate_ ;
    /**
     * <pre>
     *申请退款时间, 时间戳: 秒
     * </pre>
     *
     * <code>int64 refundDate = 3;</code>
     * @return The refundDate.
     */
    @java.lang.Override
    public long getRefundDate() {
      return refundDate_;
    }
    /**
     * <pre>
     *申请退款时间, 时间戳: 秒
     * </pre>
     *
     * <code>int64 refundDate = 3;</code>
     * @param value The refundDate to set.
     * @return This builder for chaining.
     */
    public Builder setRefundDate(long value) {
      
      refundDate_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *申请退款时间, 时间戳: 秒
     * </pre>
     *
     * <code>int64 refundDate = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearRefundDate() {
      
      refundDate_ = 0L;
      onChanged();
      return this;
    }

    private long refundFinishDate_ ;
    /**
     * <pre>
     *退款处理完成时间, 时间戳: 秒
     * </pre>
     *
     * <code>int64 refundFinishDate = 4;</code>
     * @return The refundFinishDate.
     */
    @java.lang.Override
    public long getRefundFinishDate() {
      return refundFinishDate_;
    }
    /**
     * <pre>
     *退款处理完成时间, 时间戳: 秒
     * </pre>
     *
     * <code>int64 refundFinishDate = 4;</code>
     * @param value The refundFinishDate to set.
     * @return This builder for chaining.
     */
    public Builder setRefundFinishDate(long value) {
      
      refundFinishDate_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *退款处理完成时间, 时间戳: 秒
     * </pre>
     *
     * <code>int64 refundFinishDate = 4;</code>
     * @return This builder for chaining.
     */
    public Builder clearRefundFinishDate() {
      
      refundFinishDate_ = 0L;
      onChanged();
      return this;
    }

    private long refundSuccessTime_ ;
    /**
     * <pre>
     *退款成功时间, 时间戳: 秒
     * </pre>
     *
     * <code>int64 refundSuccessTime = 5;</code>
     * @return The refundSuccessTime.
     */
    @java.lang.Override
    public long getRefundSuccessTime() {
      return refundSuccessTime_;
    }
    /**
     * <pre>
     *退款成功时间, 时间戳: 秒
     * </pre>
     *
     * <code>int64 refundSuccessTime = 5;</code>
     * @param value The refundSuccessTime to set.
     * @return This builder for chaining.
     */
    public Builder setRefundSuccessTime(long value) {
      
      refundSuccessTime_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *退款成功时间, 时间戳: 秒
     * </pre>
     *
     * <code>int64 refundSuccessTime = 5;</code>
     * @return This builder for chaining.
     */
    public Builder clearRefundSuccessTime() {
      
      refundSuccessTime_ = 0L;
      onChanged();
      return this;
    }

    private int refundFee_ ;
    /**
     * <pre>
     *微信退款金额，单位为分
     * </pre>
     *
     * <code>int32 refundFee = 6;</code>
     * @return The refundFee.
     */
    @java.lang.Override
    public int getRefundFee() {
      return refundFee_;
    }
    /**
     * <pre>
     *微信退款金额，单位为分
     * </pre>
     *
     * <code>int32 refundFee = 6;</code>
     * @param value The refundFee to set.
     * @return This builder for chaining.
     */
    public Builder setRefundFee(int value) {
      
      refundFee_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *微信退款金额，单位为分
     * </pre>
     *
     * <code>int32 refundFee = 6;</code>
     * @return This builder for chaining.
     */
    public Builder clearRefundFee() {
      
      refundFee_ = 0;
      onChanged();
      return this;
    }

    private int refundStatus_ ;
    /**
     * <pre>
     *退款状态 1: 退款成功，2: 退款异常，3: 退款关闭
     * </pre>
     *
     * <code>int32 refundStatus = 7;</code>
     * @return The refundStatus.
     */
    @java.lang.Override
    public int getRefundStatus() {
      return refundStatus_;
    }
    /**
     * <pre>
     *退款状态 1: 退款成功，2: 退款异常，3: 退款关闭
     * </pre>
     *
     * <code>int32 refundStatus = 7;</code>
     * @param value The refundStatus to set.
     * @return This builder for chaining.
     */
    public Builder setRefundStatus(int value) {
      
      refundStatus_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *退款状态 1: 退款成功，2: 退款异常，3: 退款关闭
     * </pre>
     *
     * <code>int32 refundStatus = 7;</code>
     * @return This builder for chaining.
     */
    public Builder clearRefundStatus() {
      
      refundStatus_ = 0;
      onChanged();
      return this;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

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


    // @@protoc_insertion_point(builder_scope:com.ywt.gapi.ordercenter.WechatRefundNotifyRequest)
  }

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

  public static com.ywt.gapi.ordercenter.WechatRefundNotifyRequest getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  @java.lang.Override
  public com.ywt.gapi.ordercenter.WechatRefundNotifyRequest getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

