// 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.user.RefundRequest}
 */
public final class RefundRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.user.RefundRequest)
    RefundRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use RefundRequest.newBuilder() to construct.
  private RefundRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private RefundRequest() {
    orderNo_ = "";
    opBy_ = "";
    refundNotifyMethod_ = "";
    refundNotifyRestUrl_ = "";
    remark_ = "";
    custom_ = "";
  }

  @Override
  @SuppressWarnings({"unused"})
  protected Object newInstance(
      UnusedPrivateParameter unused) {
    return new RefundRequest();
  }

  @Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private RefundRequest(
      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;
          case 10: {
            String s = input.readStringRequireUtf8();

            orderNo_ = s;
            break;
          }
          case 16: {

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

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

            opBy_ = s;
            break;
          }
          case 40: {

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

            refundNotifyMethod_ = s;
            break;
          }
          case 58: {
            String s = input.readStringRequireUtf8();

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

            remark_ = s;
            break;
          }
          case 74: {
            String s = input.readStringRequireUtf8();

            custom_ = s;
            break;
          }
          case 82: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              bizContent_ = com.google.protobuf.MapField.newMapField(
                  BizContentDefaultEntryHolder.defaultEntry);
              mutable_bitField0_ |= 0x00000001;
            }
            com.google.protobuf.MapEntry<String, String>
            bizContent__ = input.readMessage(
                BizContentDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
            bizContent_.getMutableMap().put(
                bizContent__.getKey(), bizContent__.getValue());
            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_user_RefundRequest_descriptor;
  }

  @SuppressWarnings({"rawtypes"})
  @Override
  protected com.google.protobuf.MapField internalGetMapField(
      int number) {
    switch (number) {
      case 10:
        return internalGetBizContent();
      default:
        throw new RuntimeException(
            "Invalid map field number: " + number);
    }
  }
  @Override
  protected FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.ordercenter.OrdercenterProto.internal_static_com_ywt_gapi_user_RefundRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            RefundRequest.class, Builder.class);
  }

  public static final int ORDERNO_FIELD_NUMBER = 1;
  private volatile Object orderNo_;
  /**
   * <pre>
   *订单编号
   * </pre>
   *
   * <code>string orderNo = 1;</code>
   * @return The orderNo.
   */
  @Override
  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;
    }
  }
  /**
   * <pre>
   *订单编号
   * </pre>
   *
   * <code>string orderNo = 1;</code>
   * @return The bytes for orderNo.
   */
  @Override
  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_;
  /**
   * <pre>
   *订单号
   * </pre>
   *
   * <code>int32 orderId = 2;</code>
   * @return The orderId.
   */
  @Override
  public int getOrderId() {
    return orderId_;
  }

  public static final int AMOUNT_FIELD_NUMBER = 3;
  private int amount_;
  /**
   * <pre>
   *退款金额(单位：分), 当为0时，默认该订单总金额
   * </pre>
   *
   * <code>int32 amount = 3;</code>
   * @return The amount.
   */
  @Override
  public int getAmount() {
    return amount_;
  }

  public static final int OPBY_FIELD_NUMBER = 4;
  private volatile Object opBy_;
  /**
   * <pre>
   *操作人, 当人工退款方式时必填
   * </pre>
   *
   * <code>string opBy = 4;</code>
   * @return The opBy.
   */
  @Override
  public String getOpBy() {
    Object ref = opBy_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      opBy_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *操作人, 当人工退款方式时必填
   * </pre>
   *
   * <code>string opBy = 4;</code>
   * @return The bytes for opBy.
   */
  @Override
  public com.google.protobuf.ByteString
      getOpByBytes() {
    Object ref = opBy_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      opBy_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int REFUNDTYPE_FIELD_NUMBER = 5;
  private int refundType_;
  /**
   * <pre>
   *退款方式，1: 人工, 2: 系统
   * </pre>
   *
   * <code>int32 refundType = 5;</code>
   * @return The refundType.
   */
  @Override
  public int getRefundType() {
    return refundType_;
  }

  public static final int REFUNDNOTIFYMETHOD_FIELD_NUMBER = 6;
  private volatile Object refundNotifyMethod_;
  /**
   * <pre>
   *退款成功后回调grpc方法，结构：(/${package}.${service}/${method})，如：/com.ywt.gapi.mq.MQExecutorService/executeGRPC
   * </pre>
   *
   * <code>string refundNotifyMethod = 6;</code>
   * @return The refundNotifyMethod.
   */
  @Override
  public String getRefundNotifyMethod() {
    Object ref = refundNotifyMethod_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      refundNotifyMethod_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *退款成功后回调grpc方法，结构：(/${package}.${service}/${method})，如：/com.ywt.gapi.mq.MQExecutorService/executeGRPC
   * </pre>
   *
   * <code>string refundNotifyMethod = 6;</code>
   * @return The bytes for refundNotifyMethod.
   */
  @Override
  public com.google.protobuf.ByteString
      getRefundNotifyMethodBytes() {
    Object ref = refundNotifyMethod_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      refundNotifyMethod_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int REFUNDNOTIFYRESTURL_FIELD_NUMBER = 7;
  private volatile Object refundNotifyRestUrl_;
  /**
   * <pre>
   *退款成功后回调rest服务方法，url格式: rest://com.ywt.MgDrugApiService/path1/path2
   * </pre>
   *
   * <code>string refundNotifyRestUrl = 7;</code>
   * @return The refundNotifyRestUrl.
   */
  @Override
  public String getRefundNotifyRestUrl() {
    Object ref = refundNotifyRestUrl_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      refundNotifyRestUrl_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *退款成功后回调rest服务方法，url格式: rest://com.ywt.MgDrugApiService/path1/path2
   * </pre>
   *
   * <code>string refundNotifyRestUrl = 7;</code>
   * @return The bytes for refundNotifyRestUrl.
   */
  @Override
  public com.google.protobuf.ByteString
      getRefundNotifyRestUrlBytes() {
    Object ref = refundNotifyRestUrl_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      refundNotifyRestUrl_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int REMARK_FIELD_NUMBER = 8;
  private volatile Object remark_;
  /**
   * <code>string remark = 8;</code>
   * @return The remark.
   */
  @Override
  public String getRemark() {
    Object ref = remark_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      remark_ = s;
      return s;
    }
  }
  /**
   * <code>string remark = 8;</code>
   * @return The bytes for remark.
   */
  @Override
  public com.google.protobuf.ByteString
      getRemarkBytes() {
    Object ref = remark_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      remark_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int CUSTOM_FIELD_NUMBER = 9;
  private volatile Object custom_;
  /**
   * <pre>
   *本次操作自定义数据，【订单退款成功通知】会通过 custom 回发
   * </pre>
   *
   * <code>string custom = 9;</code>
   * @return The custom.
   */
  @Override
  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>
   *本次操作自定义数据，【订单退款成功通知】会通过 custom 回发
   * </pre>
   *
   * <code>string custom = 9;</code>
   * @return The bytes for custom.
   */
  @Override
  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 BIZCONTENT_FIELD_NUMBER = 10;
  private static final class BizContentDefaultEntryHolder {
    static final com.google.protobuf.MapEntry<
        String, String> defaultEntry =
            com.google.protobuf.MapEntry
            .<String, String>newDefaultInstance(
                com.ywt.gapi.ordercenter.OrdercenterProto.internal_static_com_ywt_gapi_user_RefundRequest_BizContentEntry_descriptor, 
                com.google.protobuf.WireFormat.FieldType.STRING,
                "",
                com.google.protobuf.WireFormat.FieldType.STRING,
                "");
  }
  private com.google.protobuf.MapField<
      String, String> bizContent_;
  private com.google.protobuf.MapField<String, String>
  internalGetBizContent() {
    if (bizContent_ == null) {
      return com.google.protobuf.MapField.emptyMapField(
          BizContentDefaultEntryHolder.defaultEntry);
    }
    return bizContent_;
  }

  public int getBizContentCount() {
    return internalGetBizContent().getMap().size();
  }
  /**
   * <pre>
   * map 类型业务自定义参数，目前供支付宝医保使用
   * </pre>
   *
   * <code>map&lt;string, string&gt; bizContent = 10;</code>
   */

  @Override
  public boolean containsBizContent(
      String key) {
    if (key == null) { throw new NullPointerException("map key"); }
    return internalGetBizContent().getMap().containsKey(key);
  }
  /**
   * Use {@link #getBizContentMap()} instead.
   */
  @Override
  @Deprecated
  public java.util.Map<String, String> getBizContent() {
    return getBizContentMap();
  }
  /**
   * <pre>
   * map 类型业务自定义参数，目前供支付宝医保使用
   * </pre>
   *
   * <code>map&lt;string, string&gt; bizContent = 10;</code>
   */
  @Override

  public java.util.Map<String, String> getBizContentMap() {
    return internalGetBizContent().getMap();
  }
  /**
   * <pre>
   * map 类型业务自定义参数，目前供支付宝医保使用
   * </pre>
   *
   * <code>map&lt;string, string&gt; bizContent = 10;</code>
   */
  @Override

  public String getBizContentOrDefault(
      String key,
      String defaultValue) {
    if (key == null) { throw new NullPointerException("map key"); }
    java.util.Map<String, String> map =
        internalGetBizContent().getMap();
    return map.containsKey(key) ? map.get(key) : defaultValue;
  }
  /**
   * <pre>
   * map 类型业务自定义参数，目前供支付宝医保使用
   * </pre>
   *
   * <code>map&lt;string, string&gt; bizContent = 10;</code>
   */
  @Override

  public String getBizContentOrThrow(
      String key) {
    if (key == null) { throw new NullPointerException("map key"); }
    java.util.Map<String, String> map =
        internalGetBizContent().getMap();
    if (!map.containsKey(key)) {
      throw new IllegalArgumentException();
    }
    return map.get(key);
  }

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

    memoizedIsInitialized = 1;
    return true;
  }

  @Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderNo_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, orderNo_);
    }
    if (orderId_ != 0) {
      output.writeInt32(2, orderId_);
    }
    if (amount_ != 0) {
      output.writeInt32(3, amount_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(opBy_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, opBy_);
    }
    if (refundType_ != 0) {
      output.writeInt32(5, refundType_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(refundNotifyMethod_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, refundNotifyMethod_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(refundNotifyRestUrl_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, refundNotifyRestUrl_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(remark_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, remark_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(custom_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 9, custom_);
    }
    com.google.protobuf.GeneratedMessageV3
      .serializeStringMapTo(
        output,
        internalGetBizContent(),
        BizContentDefaultEntryHolder.defaultEntry,
        10);
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderNo_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, orderNo_);
    }
    if (orderId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(2, orderId_);
    }
    if (amount_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(3, amount_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(opBy_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, opBy_);
    }
    if (refundType_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(5, refundType_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(refundNotifyMethod_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, refundNotifyMethod_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(refundNotifyRestUrl_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, refundNotifyRestUrl_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(remark_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, remark_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(custom_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, custom_);
    }
    for (java.util.Map.Entry<String, String> entry
         : internalGetBizContent().getMap().entrySet()) {
      com.google.protobuf.MapEntry<String, String>
      bizContent__ = BizContentDefaultEntryHolder.defaultEntry.newBuilderForType()
          .setKey(entry.getKey())
          .setValue(entry.getValue())
          .build();
      size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(10, bizContent__);
    }
    size += unknownFields.getSerializedSize();
    memoizedSize = size;
    return size;
  }

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

    if (!getOrderNo()
        .equals(other.getOrderNo())) return false;
    if (getOrderId()
        != other.getOrderId()) return false;
    if (getAmount()
        != other.getAmount()) return false;
    if (!getOpBy()
        .equals(other.getOpBy())) return false;
    if (getRefundType()
        != other.getRefundType()) return false;
    if (!getRefundNotifyMethod()
        .equals(other.getRefundNotifyMethod())) return false;
    if (!getRefundNotifyRestUrl()
        .equals(other.getRefundNotifyRestUrl())) return false;
    if (!getRemark()
        .equals(other.getRemark())) return false;
    if (!getCustom()
        .equals(other.getCustom())) return false;
    if (!internalGetBizContent().equals(
        other.internalGetBizContent())) return false;
    if (!unknownFields.equals(other.unknownFields)) return false;
    return true;
  }

  @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) + AMOUNT_FIELD_NUMBER;
    hash = (53 * hash) + getAmount();
    hash = (37 * hash) + OPBY_FIELD_NUMBER;
    hash = (53 * hash) + getOpBy().hashCode();
    hash = (37 * hash) + REFUNDTYPE_FIELD_NUMBER;
    hash = (53 * hash) + getRefundType();
    hash = (37 * hash) + REFUNDNOTIFYMETHOD_FIELD_NUMBER;
    hash = (53 * hash) + getRefundNotifyMethod().hashCode();
    hash = (37 * hash) + REFUNDNOTIFYRESTURL_FIELD_NUMBER;
    hash = (53 * hash) + getRefundNotifyRestUrl().hashCode();
    hash = (37 * hash) + REMARK_FIELD_NUMBER;
    hash = (53 * hash) + getRemark().hashCode();
    hash = (37 * hash) + CUSTOM_FIELD_NUMBER;
    hash = (53 * hash) + getCustom().hashCode();
    if (!internalGetBizContent().getMap().isEmpty()) {
      hash = (37 * hash) + BIZCONTENT_FIELD_NUMBER;
      hash = (53 * hash) + internalGetBizContent().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

  @Override
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(RefundRequest prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  @Override
  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.user.RefundRequest}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.user.RefundRequest)
      com.ywt.gapi.ordercenter.RefundRequestOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.ordercenter.OrdercenterProto.internal_static_com_ywt_gapi_user_RefundRequest_descriptor;
    }

    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMapField(
        int number) {
      switch (number) {
        case 10:
          return internalGetBizContent();
        default:
          throw new RuntimeException(
              "Invalid map field number: " + number);
      }
    }
    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMutableMapField(
        int number) {
      switch (number) {
        case 10:
          return internalGetMutableBizContent();
        default:
          throw new RuntimeException(
              "Invalid map field number: " + number);
      }
    }
    @Override
    protected FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.ordercenter.OrdercenterProto.internal_static_com_ywt_gapi_user_RefundRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              RefundRequest.class, Builder.class);
    }

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

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

      orderId_ = 0;

      amount_ = 0;

      opBy_ = "";

      refundType_ = 0;

      refundNotifyMethod_ = "";

      refundNotifyRestUrl_ = "";

      remark_ = "";

      custom_ = "";

      internalGetMutableBizContent().clear();
      return this;
    }

    @Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.ordercenter.OrdercenterProto.internal_static_com_ywt_gapi_user_RefundRequest_descriptor;
    }

    @Override
    public RefundRequest getDefaultInstanceForType() {
      return RefundRequest.getDefaultInstance();
    }

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

    @Override
    public RefundRequest buildPartial() {
      RefundRequest result = new RefundRequest(this);
      int from_bitField0_ = bitField0_;
      result.orderNo_ = orderNo_;
      result.orderId_ = orderId_;
      result.amount_ = amount_;
      result.opBy_ = opBy_;
      result.refundType_ = refundType_;
      result.refundNotifyMethod_ = refundNotifyMethod_;
      result.refundNotifyRestUrl_ = refundNotifyRestUrl_;
      result.remark_ = remark_;
      result.custom_ = custom_;
      result.bizContent_ = internalGetBizContent();
      result.bizContent_.makeImmutable();
      onBuilt();
      return result;
    }

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

    public Builder mergeFrom(RefundRequest other) {
      if (other == RefundRequest.getDefaultInstance()) return this;
      if (!other.getOrderNo().isEmpty()) {
        orderNo_ = other.orderNo_;
        onChanged();
      }
      if (other.getOrderId() != 0) {
        setOrderId(other.getOrderId());
      }
      if (other.getAmount() != 0) {
        setAmount(other.getAmount());
      }
      if (!other.getOpBy().isEmpty()) {
        opBy_ = other.opBy_;
        onChanged();
      }
      if (other.getRefundType() != 0) {
        setRefundType(other.getRefundType());
      }
      if (!other.getRefundNotifyMethod().isEmpty()) {
        refundNotifyMethod_ = other.refundNotifyMethod_;
        onChanged();
      }
      if (!other.getRefundNotifyRestUrl().isEmpty()) {
        refundNotifyRestUrl_ = other.refundNotifyRestUrl_;
        onChanged();
      }
      if (!other.getRemark().isEmpty()) {
        remark_ = other.remark_;
        onChanged();
      }
      if (!other.getCustom().isEmpty()) {
        custom_ = other.custom_;
        onChanged();
      }
      internalGetMutableBizContent().mergeFrom(
          other.internalGetBizContent());
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

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

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

    private Object orderNo_ = "";
    /**
     * <pre>
     *订单编号
     * </pre>
     *
     * <code>string orderNo = 1;</code>
     * @return The orderNo.
     */
    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;
      }
    }
    /**
     * <pre>
     *订单编号
     * </pre>
     *
     * <code>string orderNo = 1;</code>
     * @return The bytes for orderNo.
     */
    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;
      }
    }
    /**
     * <pre>
     *订单编号
     * </pre>
     *
     * <code>string orderNo = 1;</code>
     * @param value The orderNo to set.
     * @return This builder for chaining.
     */
    public Builder setOrderNo(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      orderNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *订单编号
     * </pre>
     *
     * <code>string orderNo = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearOrderNo() {
      
      orderNo_ = getDefaultInstance().getOrderNo();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *订单编号
     * </pre>
     *
     * <code>string orderNo = 1;</code>
     * @param value The bytes for orderNo to set.
     * @return This builder for chaining.
     */
    public Builder setOrderNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      orderNo_ = value;
      onChanged();
      return this;
    }

    private int orderId_ ;
    /**
     * <pre>
     *订单号
     * </pre>
     *
     * <code>int32 orderId = 2;</code>
     * @return The orderId.
     */
    @Override
    public int getOrderId() {
      return orderId_;
    }
    /**
     * <pre>
     *订单号
     * </pre>
     *
     * <code>int32 orderId = 2;</code>
     * @param value The orderId to set.
     * @return This builder for chaining.
     */
    public Builder setOrderId(int value) {
      
      orderId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *订单号
     * </pre>
     *
     * <code>int32 orderId = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearOrderId() {
      
      orderId_ = 0;
      onChanged();
      return this;
    }

    private int amount_ ;
    /**
     * <pre>
     *退款金额(单位：分), 当为0时，默认该订单总金额
     * </pre>
     *
     * <code>int32 amount = 3;</code>
     * @return The amount.
     */
    @Override
    public int getAmount() {
      return amount_;
    }
    /**
     * <pre>
     *退款金额(单位：分), 当为0时，默认该订单总金额
     * </pre>
     *
     * <code>int32 amount = 3;</code>
     * @param value The amount to set.
     * @return This builder for chaining.
     */
    public Builder setAmount(int value) {
      
      amount_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *退款金额(单位：分), 当为0时，默认该订单总金额
     * </pre>
     *
     * <code>int32 amount = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearAmount() {
      
      amount_ = 0;
      onChanged();
      return this;
    }

    private Object opBy_ = "";
    /**
     * <pre>
     *操作人, 当人工退款方式时必填
     * </pre>
     *
     * <code>string opBy = 4;</code>
     * @return The opBy.
     */
    public String getOpBy() {
      Object ref = opBy_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        opBy_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <pre>
     *操作人, 当人工退款方式时必填
     * </pre>
     *
     * <code>string opBy = 4;</code>
     * @return The bytes for opBy.
     */
    public com.google.protobuf.ByteString
        getOpByBytes() {
      Object ref = opBy_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        opBy_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *操作人, 当人工退款方式时必填
     * </pre>
     *
     * <code>string opBy = 4;</code>
     * @param value The opBy to set.
     * @return This builder for chaining.
     */
    public Builder setOpBy(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      opBy_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *操作人, 当人工退款方式时必填
     * </pre>
     *
     * <code>string opBy = 4;</code>
     * @return This builder for chaining.
     */
    public Builder clearOpBy() {
      
      opBy_ = getDefaultInstance().getOpBy();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *操作人, 当人工退款方式时必填
     * </pre>
     *
     * <code>string opBy = 4;</code>
     * @param value The bytes for opBy to set.
     * @return This builder for chaining.
     */
    public Builder setOpByBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      opBy_ = value;
      onChanged();
      return this;
    }

    private int refundType_ ;
    /**
     * <pre>
     *退款方式，1: 人工, 2: 系统
     * </pre>
     *
     * <code>int32 refundType = 5;</code>
     * @return The refundType.
     */
    @Override
    public int getRefundType() {
      return refundType_;
    }
    /**
     * <pre>
     *退款方式，1: 人工, 2: 系统
     * </pre>
     *
     * <code>int32 refundType = 5;</code>
     * @param value The refundType to set.
     * @return This builder for chaining.
     */
    public Builder setRefundType(int value) {
      
      refundType_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *退款方式，1: 人工, 2: 系统
     * </pre>
     *
     * <code>int32 refundType = 5;</code>
     * @return This builder for chaining.
     */
    public Builder clearRefundType() {
      
      refundType_ = 0;
      onChanged();
      return this;
    }

    private Object refundNotifyMethod_ = "";
    /**
     * <pre>
     *退款成功后回调grpc方法，结构：(/${package}.${service}/${method})，如：/com.ywt.gapi.mq.MQExecutorService/executeGRPC
     * </pre>
     *
     * <code>string refundNotifyMethod = 6;</code>
     * @return The refundNotifyMethod.
     */
    public String getRefundNotifyMethod() {
      Object ref = refundNotifyMethod_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        refundNotifyMethod_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <pre>
     *退款成功后回调grpc方法，结构：(/${package}.${service}/${method})，如：/com.ywt.gapi.mq.MQExecutorService/executeGRPC
     * </pre>
     *
     * <code>string refundNotifyMethod = 6;</code>
     * @return The bytes for refundNotifyMethod.
     */
    public com.google.protobuf.ByteString
        getRefundNotifyMethodBytes() {
      Object ref = refundNotifyMethod_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        refundNotifyMethod_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *退款成功后回调grpc方法，结构：(/${package}.${service}/${method})，如：/com.ywt.gapi.mq.MQExecutorService/executeGRPC
     * </pre>
     *
     * <code>string refundNotifyMethod = 6;</code>
     * @param value The refundNotifyMethod to set.
     * @return This builder for chaining.
     */
    public Builder setRefundNotifyMethod(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      refundNotifyMethod_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *退款成功后回调grpc方法，结构：(/${package}.${service}/${method})，如：/com.ywt.gapi.mq.MQExecutorService/executeGRPC
     * </pre>
     *
     * <code>string refundNotifyMethod = 6;</code>
     * @return This builder for chaining.
     */
    public Builder clearRefundNotifyMethod() {
      
      refundNotifyMethod_ = getDefaultInstance().getRefundNotifyMethod();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *退款成功后回调grpc方法，结构：(/${package}.${service}/${method})，如：/com.ywt.gapi.mq.MQExecutorService/executeGRPC
     * </pre>
     *
     * <code>string refundNotifyMethod = 6;</code>
     * @param value The bytes for refundNotifyMethod to set.
     * @return This builder for chaining.
     */
    public Builder setRefundNotifyMethodBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      refundNotifyMethod_ = value;
      onChanged();
      return this;
    }

    private Object refundNotifyRestUrl_ = "";
    /**
     * <pre>
     *退款成功后回调rest服务方法，url格式: rest://com.ywt.MgDrugApiService/path1/path2
     * </pre>
     *
     * <code>string refundNotifyRestUrl = 7;</code>
     * @return The refundNotifyRestUrl.
     */
    public String getRefundNotifyRestUrl() {
      Object ref = refundNotifyRestUrl_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        refundNotifyRestUrl_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <pre>
     *退款成功后回调rest服务方法，url格式: rest://com.ywt.MgDrugApiService/path1/path2
     * </pre>
     *
     * <code>string refundNotifyRestUrl = 7;</code>
     * @return The bytes for refundNotifyRestUrl.
     */
    public com.google.protobuf.ByteString
        getRefundNotifyRestUrlBytes() {
      Object ref = refundNotifyRestUrl_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        refundNotifyRestUrl_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *退款成功后回调rest服务方法，url格式: rest://com.ywt.MgDrugApiService/path1/path2
     * </pre>
     *
     * <code>string refundNotifyRestUrl = 7;</code>
     * @param value The refundNotifyRestUrl to set.
     * @return This builder for chaining.
     */
    public Builder setRefundNotifyRestUrl(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      refundNotifyRestUrl_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *退款成功后回调rest服务方法，url格式: rest://com.ywt.MgDrugApiService/path1/path2
     * </pre>
     *
     * <code>string refundNotifyRestUrl = 7;</code>
     * @return This builder for chaining.
     */
    public Builder clearRefundNotifyRestUrl() {
      
      refundNotifyRestUrl_ = getDefaultInstance().getRefundNotifyRestUrl();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *退款成功后回调rest服务方法，url格式: rest://com.ywt.MgDrugApiService/path1/path2
     * </pre>
     *
     * <code>string refundNotifyRestUrl = 7;</code>
     * @param value The bytes for refundNotifyRestUrl to set.
     * @return This builder for chaining.
     */
    public Builder setRefundNotifyRestUrlBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      refundNotifyRestUrl_ = value;
      onChanged();
      return this;
    }

    private Object remark_ = "";
    /**
     * <code>string remark = 8;</code>
     * @return The remark.
     */
    public String getRemark() {
      Object ref = remark_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        remark_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <code>string remark = 8;</code>
     * @return The bytes for remark.
     */
    public com.google.protobuf.ByteString
        getRemarkBytes() {
      Object ref = remark_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        remark_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string remark = 8;</code>
     * @param value The remark to set.
     * @return This builder for chaining.
     */
    public Builder setRemark(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      remark_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string remark = 8;</code>
     * @return This builder for chaining.
     */
    public Builder clearRemark() {
      
      remark_ = getDefaultInstance().getRemark();
      onChanged();
      return this;
    }
    /**
     * <code>string remark = 8;</code>
     * @param value The bytes for remark to set.
     * @return This builder for chaining.
     */
    public Builder setRemarkBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      remark_ = value;
      onChanged();
      return this;
    }

    private Object custom_ = "";
    /**
     * <pre>
     *本次操作自定义数据，【订单退款成功通知】会通过 custom 回发
     * </pre>
     *
     * <code>string custom = 9;</code>
     * @return The custom.
     */
    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>
     *本次操作自定义数据，【订单退款成功通知】会通过 custom 回发
     * </pre>
     *
     * <code>string custom = 9;</code>
     * @return The bytes for custom.
     */
    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>
     *本次操作自定义数据，【订单退款成功通知】会通过 custom 回发
     * </pre>
     *
     * <code>string custom = 9;</code>
     * @param value The custom to set.
     * @return This builder for chaining.
     */
    public Builder setCustom(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      custom_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *本次操作自定义数据，【订单退款成功通知】会通过 custom 回发
     * </pre>
     *
     * <code>string custom = 9;</code>
     * @return This builder for chaining.
     */
    public Builder clearCustom() {
      
      custom_ = getDefaultInstance().getCustom();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *本次操作自定义数据，【订单退款成功通知】会通过 custom 回发
     * </pre>
     *
     * <code>string custom = 9;</code>
     * @param value The bytes for custom to set.
     * @return This builder for chaining.
     */
    public Builder setCustomBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      custom_ = value;
      onChanged();
      return this;
    }

    private com.google.protobuf.MapField<
        String, String> bizContent_;
    private com.google.protobuf.MapField<String, String>
    internalGetBizContent() {
      if (bizContent_ == null) {
        return com.google.protobuf.MapField.emptyMapField(
            BizContentDefaultEntryHolder.defaultEntry);
      }
      return bizContent_;
    }
    private com.google.protobuf.MapField<String, String>
    internalGetMutableBizContent() {
      onChanged();;
      if (bizContent_ == null) {
        bizContent_ = com.google.protobuf.MapField.newMapField(
            BizContentDefaultEntryHolder.defaultEntry);
      }
      if (!bizContent_.isMutable()) {
        bizContent_ = bizContent_.copy();
      }
      return bizContent_;
    }

    public int getBizContentCount() {
      return internalGetBizContent().getMap().size();
    }
    /**
     * <pre>
     * map 类型业务自定义参数，目前供支付宝医保使用
     * </pre>
     *
     * <code>map&lt;string, string&gt; bizContent = 10;</code>
     */

    @Override
    public boolean containsBizContent(
        String key) {
      if (key == null) { throw new NullPointerException("map key"); }
      return internalGetBizContent().getMap().containsKey(key);
    }
    /**
     * Use {@link #getBizContentMap()} instead.
     */
    @Override
    @Deprecated
    public java.util.Map<String, String> getBizContent() {
      return getBizContentMap();
    }
    /**
     * <pre>
     * map 类型业务自定义参数，目前供支付宝医保使用
     * </pre>
     *
     * <code>map&lt;string, string&gt; bizContent = 10;</code>
     */
    @Override

    public java.util.Map<String, String> getBizContentMap() {
      return internalGetBizContent().getMap();
    }
    /**
     * <pre>
     * map 类型业务自定义参数，目前供支付宝医保使用
     * </pre>
     *
     * <code>map&lt;string, string&gt; bizContent = 10;</code>
     */
    @Override

    public String getBizContentOrDefault(
        String key,
        String defaultValue) {
      if (key == null) { throw new NullPointerException("map key"); }
      java.util.Map<String, String> map =
          internalGetBizContent().getMap();
      return map.containsKey(key) ? map.get(key) : defaultValue;
    }
    /**
     * <pre>
     * map 类型业务自定义参数，目前供支付宝医保使用
     * </pre>
     *
     * <code>map&lt;string, string&gt; bizContent = 10;</code>
     */
    @Override

    public String getBizContentOrThrow(
        String key) {
      if (key == null) { throw new NullPointerException("map key"); }
      java.util.Map<String, String> map =
          internalGetBizContent().getMap();
      if (!map.containsKey(key)) {
        throw new IllegalArgumentException();
      }
      return map.get(key);
    }

    public Builder clearBizContent() {
      internalGetMutableBizContent().getMutableMap()
          .clear();
      return this;
    }
    /**
     * <pre>
     * map 类型业务自定义参数，目前供支付宝医保使用
     * </pre>
     *
     * <code>map&lt;string, string&gt; bizContent = 10;</code>
     */

    public Builder removeBizContent(
        String key) {
      if (key == null) { throw new NullPointerException("map key"); }
      internalGetMutableBizContent().getMutableMap()
          .remove(key);
      return this;
    }
    /**
     * Use alternate mutation accessors instead.
     */
    @Deprecated
    public java.util.Map<String, String>
    getMutableBizContent() {
      return internalGetMutableBizContent().getMutableMap();
    }
    /**
     * <pre>
     * map 类型业务自定义参数，目前供支付宝医保使用
     * </pre>
     *
     * <code>map&lt;string, string&gt; bizContent = 10;</code>
     */
    public Builder putBizContent(
        String key,
        String value) {
      if (key == null) { throw new NullPointerException("map key"); }
      if (value == null) {
  throw new NullPointerException("map value");
}

      internalGetMutableBizContent().getMutableMap()
          .put(key, value);
      return this;
    }
    /**
     * <pre>
     * map 类型业务自定义参数，目前供支付宝医保使用
     * </pre>
     *
     * <code>map&lt;string, string&gt; bizContent = 10;</code>
     */

    public Builder putAllBizContent(
        java.util.Map<String, String> values) {
      internalGetMutableBizContent().getMutableMap()
          .putAll(values);
      return this;
    }
    @Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

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


    // @@protoc_insertion_point(builder_scope:com.ywt.gapi.user.RefundRequest)
  }

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

  public static RefundRequest getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  @Override
  public RefundRequest getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

