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

package com.ywt.gapi.third.taihe;

/**
 * Protobuf type {@code com.ywt.gapi.third.taihe.PrePayConfirmRequest}
 */
public final class PrePayConfirmRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.third.taihe.PrePayConfirmRequest)
    PrePayConfirmRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use PrePayConfirmRequest.newBuilder() to construct.
  private PrePayConfirmRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private PrePayConfirmRequest() {
    cardNo_ = "";
    patientId_ = "";
    startDate_ = "";
    endDate_ = "";
    clinicCode_ = "";
    hisOrdNum_ = "";
    hisUserID_ = "";
    payMode_ = "";
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private PrePayConfirmRequest(
      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();

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

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

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

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

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

            hisOrdNum_ = s;
            break;
          }
          case 56: {

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

            hisUserID_ = s;
            break;
          }
          case 72: {

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

            payMode_ = s;
            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.third.taihe.TaiheProto.internal_static_com_ywt_gapi_third_taihe_PrePayConfirmRequest_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.third.taihe.TaiheProto.internal_static_com_ywt_gapi_third_taihe_PrePayConfirmRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.third.taihe.PrePayConfirmRequest.class, com.ywt.gapi.third.taihe.PrePayConfirmRequest.Builder.class);
  }

  public static final int CARDNO_FIELD_NUMBER = 1;
  private volatile java.lang.Object cardNo_;
  /**
   * <pre>
   * 卡号
   * </pre>
   *
   * <code>string cardNo = 1;</code>
   * @return The cardNo.
   */
  @java.lang.Override
  public java.lang.String getCardNo() {
    java.lang.Object ref = cardNo_;
    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();
      cardNo_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 卡号
   * </pre>
   *
   * <code>string cardNo = 1;</code>
   * @return The bytes for cardNo.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getCardNoBytes() {
    java.lang.Object ref = cardNo_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      cardNo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PATIENTID_FIELD_NUMBER = 2;
  private volatile java.lang.Object patientId_;
  /**
   * <pre>
   * HIS 患者 ID
   * </pre>
   *
   * <code>string patientId = 2;</code>
   * @return The patientId.
   */
  @java.lang.Override
  public java.lang.String getPatientId() {
    java.lang.Object ref = patientId_;
    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();
      patientId_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * HIS 患者 ID
   * </pre>
   *
   * <code>string patientId = 2;</code>
   * @return The bytes for patientId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getPatientIdBytes() {
    java.lang.Object ref = patientId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      patientId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int STARTDATE_FIELD_NUMBER = 3;
  private volatile java.lang.Object startDate_;
  /**
   * <pre>
   * </pre>
   *
   * <code>string startDate = 3;</code>
   * @return The startDate.
   */
  @java.lang.Override
  public java.lang.String getStartDate() {
    java.lang.Object ref = startDate_;
    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();
      startDate_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * </pre>
   *
   * <code>string startDate = 3;</code>
   * @return The bytes for startDate.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getStartDateBytes() {
    java.lang.Object ref = startDate_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      startDate_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ENDDATE_FIELD_NUMBER = 4;
  private volatile java.lang.Object endDate_;
  /**
   * <code>string endDate = 4;</code>
   * @return The endDate.
   */
  @java.lang.Override
  public java.lang.String getEndDate() {
    java.lang.Object ref = endDate_;
    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();
      endDate_ = s;
      return s;
    }
  }
  /**
   * <code>string endDate = 4;</code>
   * @return The bytes for endDate.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getEndDateBytes() {
    java.lang.Object ref = endDate_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      endDate_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int CLINICCODE_FIELD_NUMBER = 5;
  private volatile java.lang.Object clinicCode_;
  /**
   * <pre>
   * 就诊流水号
   * </pre>
   *
   * <code>string clinicCode = 5;</code>
   * @return The clinicCode.
   */
  @java.lang.Override
  public java.lang.String getClinicCode() {
    java.lang.Object ref = clinicCode_;
    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();
      clinicCode_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 就诊流水号
   * </pre>
   *
   * <code>string clinicCode = 5;</code>
   * @return The bytes for clinicCode.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getClinicCodeBytes() {
    java.lang.Object ref = clinicCode_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      clinicCode_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int HISORDNUM_FIELD_NUMBER = 6;
  private volatile java.lang.Object hisOrdNum_;
  /**
   * <pre>
   * HIS 订单号
   * </pre>
   *
   * <code>string hisOrdNum = 6;</code>
   * @return The hisOrdNum.
   */
  @java.lang.Override
  public java.lang.String getHisOrdNum() {
    java.lang.Object ref = hisOrdNum_;
    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();
      hisOrdNum_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * HIS 订单号
   * </pre>
   *
   * <code>string hisOrdNum = 6;</code>
   * @return The bytes for hisOrdNum.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getHisOrdNumBytes() {
    java.lang.Object ref = hisOrdNum_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      hisOrdNum_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ORDERSUM_FIELD_NUMBER = 7;
  private int orderSum_;
  /**
   * <pre>
   * 订单金额，单位分
   * </pre>
   *
   * <code>int32 orderSum = 7;</code>
   * @return The orderSum.
   */
  @java.lang.Override
  public int getOrderSum() {
    return orderSum_;
  }

  public static final int HISUSERID_FIELD_NUMBER = 8;
  private volatile java.lang.Object hisUserID_;
  /**
   * <code>string hisUserID = 8;</code>
   * @return The hisUserID.
   */
  @java.lang.Override
  public java.lang.String getHisUserID() {
    java.lang.Object ref = hisUserID_;
    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();
      hisUserID_ = s;
      return s;
    }
  }
  /**
   * <code>string hisUserID = 8;</code>
   * @return The bytes for hisUserID.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getHisUserIDBytes() {
    java.lang.Object ref = hisUserID_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      hisUserID_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int HOSPITALID_FIELD_NUMBER = 9;
  private int hospitalId_;
  /**
   * <code>int32 hospitalId = 9;</code>
   * @return The hospitalId.
   */
  @java.lang.Override
  public int getHospitalId() {
    return hospitalId_;
  }

  public static final int PAYMODE_FIELD_NUMBER = 10;
  private volatile java.lang.Object payMode_;
  /**
   * <code>string payMode = 10;</code>
   * @return The payMode.
   */
  @java.lang.Override
  public java.lang.String getPayMode() {
    java.lang.Object ref = payMode_;
    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();
      payMode_ = s;
      return s;
    }
  }
  /**
   * <code>string payMode = 10;</code>
   * @return The bytes for payMode.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getPayModeBytes() {
    java.lang.Object ref = payMode_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      payMode_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  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(cardNo_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cardNo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patientId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, patientId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startDate_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, startDate_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endDate_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, endDate_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clinicCode_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, clinicCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hisOrdNum_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, hisOrdNum_);
    }
    if (orderSum_ != 0) {
      output.writeInt32(7, orderSum_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hisUserID_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, hisUserID_);
    }
    if (hospitalId_ != 0) {
      output.writeInt32(9, hospitalId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(payMode_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 10, payMode_);
    }
    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(cardNo_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cardNo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patientId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, patientId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startDate_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, startDate_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endDate_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, endDate_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clinicCode_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, clinicCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hisOrdNum_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, hisOrdNum_);
    }
    if (orderSum_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(7, orderSum_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hisUserID_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, hisUserID_);
    }
    if (hospitalId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(9, hospitalId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(payMode_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, payMode_);
    }
    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.third.taihe.PrePayConfirmRequest)) {
      return super.equals(obj);
    }
    com.ywt.gapi.third.taihe.PrePayConfirmRequest other = (com.ywt.gapi.third.taihe.PrePayConfirmRequest) obj;

    if (!getCardNo()
        .equals(other.getCardNo())) return false;
    if (!getPatientId()
        .equals(other.getPatientId())) return false;
    if (!getStartDate()
        .equals(other.getStartDate())) return false;
    if (!getEndDate()
        .equals(other.getEndDate())) return false;
    if (!getClinicCode()
        .equals(other.getClinicCode())) return false;
    if (!getHisOrdNum()
        .equals(other.getHisOrdNum())) return false;
    if (getOrderSum()
        != other.getOrderSum()) return false;
    if (!getHisUserID()
        .equals(other.getHisUserID())) return false;
    if (getHospitalId()
        != other.getHospitalId()) return false;
    if (!getPayMode()
        .equals(other.getPayMode())) 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) + CARDNO_FIELD_NUMBER;
    hash = (53 * hash) + getCardNo().hashCode();
    hash = (37 * hash) + PATIENTID_FIELD_NUMBER;
    hash = (53 * hash) + getPatientId().hashCode();
    hash = (37 * hash) + STARTDATE_FIELD_NUMBER;
    hash = (53 * hash) + getStartDate().hashCode();
    hash = (37 * hash) + ENDDATE_FIELD_NUMBER;
    hash = (53 * hash) + getEndDate().hashCode();
    hash = (37 * hash) + CLINICCODE_FIELD_NUMBER;
    hash = (53 * hash) + getClinicCode().hashCode();
    hash = (37 * hash) + HISORDNUM_FIELD_NUMBER;
    hash = (53 * hash) + getHisOrdNum().hashCode();
    hash = (37 * hash) + ORDERSUM_FIELD_NUMBER;
    hash = (53 * hash) + getOrderSum();
    hash = (37 * hash) + HISUSERID_FIELD_NUMBER;
    hash = (53 * hash) + getHisUserID().hashCode();
    hash = (37 * hash) + HOSPITALID_FIELD_NUMBER;
    hash = (53 * hash) + getHospitalId();
    hash = (37 * hash) + PAYMODE_FIELD_NUMBER;
    hash = (53 * hash) + getPayMode().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.ywt.gapi.third.taihe.PrePayConfirmRequest parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.third.taihe.PrePayConfirmRequest 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.third.taihe.PrePayConfirmRequest parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.third.taihe.PrePayConfirmRequest 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.third.taihe.PrePayConfirmRequest parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.third.taihe.PrePayConfirmRequest parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.third.taihe.PrePayConfirmRequest parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.third.taihe.PrePayConfirmRequest 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.third.taihe.PrePayConfirmRequest parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.third.taihe.PrePayConfirmRequest 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.third.taihe.PrePayConfirmRequest parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.third.taihe.PrePayConfirmRequest 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.third.taihe.PrePayConfirmRequest 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;
  }
  /**
   * Protobuf type {@code com.ywt.gapi.third.taihe.PrePayConfirmRequest}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.third.taihe.PrePayConfirmRequest)
      com.ywt.gapi.third.taihe.PrePayConfirmRequestOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.third.taihe.TaiheProto.internal_static_com_ywt_gapi_third_taihe_PrePayConfirmRequest_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.third.taihe.TaiheProto.internal_static_com_ywt_gapi_third_taihe_PrePayConfirmRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.third.taihe.PrePayConfirmRequest.class, com.ywt.gapi.third.taihe.PrePayConfirmRequest.Builder.class);
    }

    // Construct using com.ywt.gapi.third.taihe.PrePayConfirmRequest.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();
      cardNo_ = "";

      patientId_ = "";

      startDate_ = "";

      endDate_ = "";

      clinicCode_ = "";

      hisOrdNum_ = "";

      orderSum_ = 0;

      hisUserID_ = "";

      hospitalId_ = 0;

      payMode_ = "";

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.third.taihe.TaiheProto.internal_static_com_ywt_gapi_third_taihe_PrePayConfirmRequest_descriptor;
    }

    @java.lang.Override
    public com.ywt.gapi.third.taihe.PrePayConfirmRequest getDefaultInstanceForType() {
      return com.ywt.gapi.third.taihe.PrePayConfirmRequest.getDefaultInstance();
    }

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

    @java.lang.Override
    public com.ywt.gapi.third.taihe.PrePayConfirmRequest buildPartial() {
      com.ywt.gapi.third.taihe.PrePayConfirmRequest result = new com.ywt.gapi.third.taihe.PrePayConfirmRequest(this);
      result.cardNo_ = cardNo_;
      result.patientId_ = patientId_;
      result.startDate_ = startDate_;
      result.endDate_ = endDate_;
      result.clinicCode_ = clinicCode_;
      result.hisOrdNum_ = hisOrdNum_;
      result.orderSum_ = orderSum_;
      result.hisUserID_ = hisUserID_;
      result.hospitalId_ = hospitalId_;
      result.payMode_ = payMode_;
      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.third.taihe.PrePayConfirmRequest) {
        return mergeFrom((com.ywt.gapi.third.taihe.PrePayConfirmRequest)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.third.taihe.PrePayConfirmRequest other) {
      if (other == com.ywt.gapi.third.taihe.PrePayConfirmRequest.getDefaultInstance()) return this;
      if (!other.getCardNo().isEmpty()) {
        cardNo_ = other.cardNo_;
        onChanged();
      }
      if (!other.getPatientId().isEmpty()) {
        patientId_ = other.patientId_;
        onChanged();
      }
      if (!other.getStartDate().isEmpty()) {
        startDate_ = other.startDate_;
        onChanged();
      }
      if (!other.getEndDate().isEmpty()) {
        endDate_ = other.endDate_;
        onChanged();
      }
      if (!other.getClinicCode().isEmpty()) {
        clinicCode_ = other.clinicCode_;
        onChanged();
      }
      if (!other.getHisOrdNum().isEmpty()) {
        hisOrdNum_ = other.hisOrdNum_;
        onChanged();
      }
      if (other.getOrderSum() != 0) {
        setOrderSum(other.getOrderSum());
      }
      if (!other.getHisUserID().isEmpty()) {
        hisUserID_ = other.hisUserID_;
        onChanged();
      }
      if (other.getHospitalId() != 0) {
        setHospitalId(other.getHospitalId());
      }
      if (!other.getPayMode().isEmpty()) {
        payMode_ = other.payMode_;
        onChanged();
      }
      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.third.taihe.PrePayConfirmRequest parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.third.taihe.PrePayConfirmRequest) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private java.lang.Object cardNo_ = "";
    /**
     * <pre>
     * 卡号
     * </pre>
     *
     * <code>string cardNo = 1;</code>
     * @return The cardNo.
     */
    public java.lang.String getCardNo() {
      java.lang.Object ref = cardNo_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        cardNo_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 卡号
     * </pre>
     *
     * <code>string cardNo = 1;</code>
     * @return The bytes for cardNo.
     */
    public com.google.protobuf.ByteString
        getCardNoBytes() {
      java.lang.Object ref = cardNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        cardNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 卡号
     * </pre>
     *
     * <code>string cardNo = 1;</code>
     * @param value The cardNo to set.
     * @return This builder for chaining.
     */
    public Builder setCardNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      cardNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 卡号
     * </pre>
     *
     * <code>string cardNo = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearCardNo() {
      
      cardNo_ = getDefaultInstance().getCardNo();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 卡号
     * </pre>
     *
     * <code>string cardNo = 1;</code>
     * @param value The bytes for cardNo to set.
     * @return This builder for chaining.
     */
    public Builder setCardNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      cardNo_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object patientId_ = "";
    /**
     * <pre>
     * HIS 患者 ID
     * </pre>
     *
     * <code>string patientId = 2;</code>
     * @return The patientId.
     */
    public java.lang.String getPatientId() {
      java.lang.Object ref = patientId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        patientId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * HIS 患者 ID
     * </pre>
     *
     * <code>string patientId = 2;</code>
     * @return The bytes for patientId.
     */
    public com.google.protobuf.ByteString
        getPatientIdBytes() {
      java.lang.Object ref = patientId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        patientId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * HIS 患者 ID
     * </pre>
     *
     * <code>string patientId = 2;</code>
     * @param value The patientId to set.
     * @return This builder for chaining.
     */
    public Builder setPatientId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      patientId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * HIS 患者 ID
     * </pre>
     *
     * <code>string patientId = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearPatientId() {
      
      patientId_ = getDefaultInstance().getPatientId();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * HIS 患者 ID
     * </pre>
     *
     * <code>string patientId = 2;</code>
     * @param value The bytes for patientId to set.
     * @return This builder for chaining.
     */
    public Builder setPatientIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      patientId_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object startDate_ = "";
    /**
     * <pre>
     * </pre>
     *
     * <code>string startDate = 3;</code>
     * @return The startDate.
     */
    public java.lang.String getStartDate() {
      java.lang.Object ref = startDate_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        startDate_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * </pre>
     *
     * <code>string startDate = 3;</code>
     * @return The bytes for startDate.
     */
    public com.google.protobuf.ByteString
        getStartDateBytes() {
      java.lang.Object ref = startDate_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        startDate_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * </pre>
     *
     * <code>string startDate = 3;</code>
     * @param value The startDate to set.
     * @return This builder for chaining.
     */
    public Builder setStartDate(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      startDate_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * </pre>
     *
     * <code>string startDate = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearStartDate() {
      
      startDate_ = getDefaultInstance().getStartDate();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * </pre>
     *
     * <code>string startDate = 3;</code>
     * @param value The bytes for startDate to set.
     * @return This builder for chaining.
     */
    public Builder setStartDateBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      startDate_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object endDate_ = "";
    /**
     * <code>string endDate = 4;</code>
     * @return The endDate.
     */
    public java.lang.String getEndDate() {
      java.lang.Object ref = endDate_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        endDate_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string endDate = 4;</code>
     * @return The bytes for endDate.
     */
    public com.google.protobuf.ByteString
        getEndDateBytes() {
      java.lang.Object ref = endDate_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        endDate_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string endDate = 4;</code>
     * @param value The endDate to set.
     * @return This builder for chaining.
     */
    public Builder setEndDate(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      endDate_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string endDate = 4;</code>
     * @return This builder for chaining.
     */
    public Builder clearEndDate() {
      
      endDate_ = getDefaultInstance().getEndDate();
      onChanged();
      return this;
    }
    /**
     * <code>string endDate = 4;</code>
     * @param value The bytes for endDate to set.
     * @return This builder for chaining.
     */
    public Builder setEndDateBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      endDate_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object clinicCode_ = "";
    /**
     * <pre>
     * 就诊流水号
     * </pre>
     *
     * <code>string clinicCode = 5;</code>
     * @return The clinicCode.
     */
    public java.lang.String getClinicCode() {
      java.lang.Object ref = clinicCode_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        clinicCode_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 就诊流水号
     * </pre>
     *
     * <code>string clinicCode = 5;</code>
     * @return The bytes for clinicCode.
     */
    public com.google.protobuf.ByteString
        getClinicCodeBytes() {
      java.lang.Object ref = clinicCode_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        clinicCode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 就诊流水号
     * </pre>
     *
     * <code>string clinicCode = 5;</code>
     * @param value The clinicCode to set.
     * @return This builder for chaining.
     */
    public Builder setClinicCode(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      clinicCode_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 就诊流水号
     * </pre>
     *
     * <code>string clinicCode = 5;</code>
     * @return This builder for chaining.
     */
    public Builder clearClinicCode() {
      
      clinicCode_ = getDefaultInstance().getClinicCode();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 就诊流水号
     * </pre>
     *
     * <code>string clinicCode = 5;</code>
     * @param value The bytes for clinicCode to set.
     * @return This builder for chaining.
     */
    public Builder setClinicCodeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      clinicCode_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object hisOrdNum_ = "";
    /**
     * <pre>
     * HIS 订单号
     * </pre>
     *
     * <code>string hisOrdNum = 6;</code>
     * @return The hisOrdNum.
     */
    public java.lang.String getHisOrdNum() {
      java.lang.Object ref = hisOrdNum_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        hisOrdNum_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * HIS 订单号
     * </pre>
     *
     * <code>string hisOrdNum = 6;</code>
     * @return The bytes for hisOrdNum.
     */
    public com.google.protobuf.ByteString
        getHisOrdNumBytes() {
      java.lang.Object ref = hisOrdNum_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        hisOrdNum_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * HIS 订单号
     * </pre>
     *
     * <code>string hisOrdNum = 6;</code>
     * @param value The hisOrdNum to set.
     * @return This builder for chaining.
     */
    public Builder setHisOrdNum(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      hisOrdNum_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * HIS 订单号
     * </pre>
     *
     * <code>string hisOrdNum = 6;</code>
     * @return This builder for chaining.
     */
    public Builder clearHisOrdNum() {
      
      hisOrdNum_ = getDefaultInstance().getHisOrdNum();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * HIS 订单号
     * </pre>
     *
     * <code>string hisOrdNum = 6;</code>
     * @param value The bytes for hisOrdNum to set.
     * @return This builder for chaining.
     */
    public Builder setHisOrdNumBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      hisOrdNum_ = value;
      onChanged();
      return this;
    }

    private int orderSum_ ;
    /**
     * <pre>
     * 订单金额，单位分
     * </pre>
     *
     * <code>int32 orderSum = 7;</code>
     * @return The orderSum.
     */
    @java.lang.Override
    public int getOrderSum() {
      return orderSum_;
    }
    /**
     * <pre>
     * 订单金额，单位分
     * </pre>
     *
     * <code>int32 orderSum = 7;</code>
     * @param value The orderSum to set.
     * @return This builder for chaining.
     */
    public Builder setOrderSum(int value) {
      
      orderSum_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 订单金额，单位分
     * </pre>
     *
     * <code>int32 orderSum = 7;</code>
     * @return This builder for chaining.
     */
    public Builder clearOrderSum() {
      
      orderSum_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object hisUserID_ = "";
    /**
     * <code>string hisUserID = 8;</code>
     * @return The hisUserID.
     */
    public java.lang.String getHisUserID() {
      java.lang.Object ref = hisUserID_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        hisUserID_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string hisUserID = 8;</code>
     * @return The bytes for hisUserID.
     */
    public com.google.protobuf.ByteString
        getHisUserIDBytes() {
      java.lang.Object ref = hisUserID_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        hisUserID_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string hisUserID = 8;</code>
     * @param value The hisUserID to set.
     * @return This builder for chaining.
     */
    public Builder setHisUserID(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      hisUserID_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string hisUserID = 8;</code>
     * @return This builder for chaining.
     */
    public Builder clearHisUserID() {
      
      hisUserID_ = getDefaultInstance().getHisUserID();
      onChanged();
      return this;
    }
    /**
     * <code>string hisUserID = 8;</code>
     * @param value The bytes for hisUserID to set.
     * @return This builder for chaining.
     */
    public Builder setHisUserIDBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      hisUserID_ = value;
      onChanged();
      return this;
    }

    private int hospitalId_ ;
    /**
     * <code>int32 hospitalId = 9;</code>
     * @return The hospitalId.
     */
    @java.lang.Override
    public int getHospitalId() {
      return hospitalId_;
    }
    /**
     * <code>int32 hospitalId = 9;</code>
     * @param value The hospitalId to set.
     * @return This builder for chaining.
     */
    public Builder setHospitalId(int value) {
      
      hospitalId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 hospitalId = 9;</code>
     * @return This builder for chaining.
     */
    public Builder clearHospitalId() {
      
      hospitalId_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object payMode_ = "";
    /**
     * <code>string payMode = 10;</code>
     * @return The payMode.
     */
    public java.lang.String getPayMode() {
      java.lang.Object ref = payMode_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        payMode_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string payMode = 10;</code>
     * @return The bytes for payMode.
     */
    public com.google.protobuf.ByteString
        getPayModeBytes() {
      java.lang.Object ref = payMode_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        payMode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string payMode = 10;</code>
     * @param value The payMode to set.
     * @return This builder for chaining.
     */
    public Builder setPayMode(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      payMode_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string payMode = 10;</code>
     * @return This builder for chaining.
     */
    public Builder clearPayMode() {
      
      payMode_ = getDefaultInstance().getPayMode();
      onChanged();
      return this;
    }
    /**
     * <code>string payMode = 10;</code>
     * @param value The bytes for payMode to set.
     * @return This builder for chaining.
     */
    public Builder setPayModeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      payMode_ = value;
      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.third.taihe.PrePayConfirmRequest)
  }

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

  public static com.ywt.gapi.third.taihe.PrePayConfirmRequest getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  @java.lang.Override
  public com.ywt.gapi.third.taihe.PrePayConfirmRequest getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

