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

package com.ywt.gapi.checkup_booking;

/**
 * Protobuf type {@code com.ywt.gapi.checkup_booking.SaveRegRecordRequest}
 */
public final class SaveRegRecordRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.checkup_booking.SaveRegRecordRequest)
    SaveRegRecordRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use SaveRegRecordRequest.newBuilder() to construct.
  private SaveRegRecordRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private SaveRegRecordRequest() {
    certificateNo_ = "";
    patientName_ = "";
    telephoneNo_ = "";
    patientDob_ = "";
    sex_ = "";
    locId_ = "";
    pmType_ = "";
    levelDesc_ = "";
    ordSetsId_ = "";
    examDate_ = "";
    detailId_ = "";
    selfItem_ = java.util.Collections.emptyList();
  }

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

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

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

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

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

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

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

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

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

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

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

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

            detailId_ = s;
            break;
          }
          case 98: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              selfItem_ = new java.util.ArrayList<com.ywt.gapi.checkup_booking.SelfItem>();
              mutable_bitField0_ |= 0x00000001;
            }
            selfItem_.add(
                input.readMessage(com.ywt.gapi.checkup_booking.SelfItem.parser(), extensionRegistry));
            break;
          }
          case 104: {

            hospitalId_ = input.readInt32();
            break;
          }
          case 112: {

            subHospitalId_ = input.readInt32();
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      if (((mutable_bitField0_ & 0x00000001) != 0)) {
        selfItem_ = java.util.Collections.unmodifiableList(selfItem_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.ywt.gapi.checkup_booking.CheckupBookingProto.internal_static_com_ywt_gapi_checkup_booking_SaveRegRecordRequest_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.checkup_booking.CheckupBookingProto.internal_static_com_ywt_gapi_checkup_booking_SaveRegRecordRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.checkup_booking.SaveRegRecordRequest.class, com.ywt.gapi.checkup_booking.SaveRegRecordRequest.Builder.class);
  }

  public static final int CERTIFICATENO_FIELD_NUMBER = 1;
  private volatile java.lang.Object certificateNo_;
  /**
   * <pre>
   * 身份证号码
   * </pre>
   *
   * <code>string certificateNo = 1;</code>
   * @return The certificateNo.
   */
  @java.lang.Override
  public java.lang.String getCertificateNo() {
    java.lang.Object ref = certificateNo_;
    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();
      certificateNo_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 身份证号码
   * </pre>
   *
   * <code>string certificateNo = 1;</code>
   * @return The bytes for certificateNo.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getCertificateNoBytes() {
    java.lang.Object ref = certificateNo_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      certificateNo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PATIENTNAME_FIELD_NUMBER = 2;
  private volatile java.lang.Object patientName_;
  /**
   * <code>string patientName = 2;</code>
   * @return The patientName.
   */
  @java.lang.Override
  public java.lang.String getPatientName() {
    java.lang.Object ref = patientName_;
    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();
      patientName_ = s;
      return s;
    }
  }
  /**
   * <code>string patientName = 2;</code>
   * @return The bytes for patientName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getPatientNameBytes() {
    java.lang.Object ref = patientName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      patientName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

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

  public static final int PATIENTDOB_FIELD_NUMBER = 4;
  private volatile java.lang.Object patientDob_;
  /**
   * <pre>
   * 出生日期，格式：YYYY-MM-DD
   * </pre>
   *
   * <code>string patientDob = 4;</code>
   * @return The patientDob.
   */
  @java.lang.Override
  public java.lang.String getPatientDob() {
    java.lang.Object ref = patientDob_;
    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();
      patientDob_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 出生日期，格式：YYYY-MM-DD
   * </pre>
   *
   * <code>string patientDob = 4;</code>
   * @return The bytes for patientDob.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getPatientDobBytes() {
    java.lang.Object ref = patientDob_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      patientDob_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int SEX_FIELD_NUMBER = 5;
  private volatile java.lang.Object sex_;
  /**
   * <code>string sex = 5;</code>
   * @return The sex.
   */
  @java.lang.Override
  public java.lang.String getSex() {
    java.lang.Object ref = sex_;
    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();
      sex_ = s;
      return s;
    }
  }
  /**
   * <code>string sex = 5;</code>
   * @return The bytes for sex.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getSexBytes() {
    java.lang.Object ref = sex_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      sex_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int LOCID_FIELD_NUMBER = 6;
  private volatile java.lang.Object locId_;
  /**
   * <code>string locId = 6;</code>
   * @return The locId.
   */
  @java.lang.Override
  public java.lang.String getLocId() {
    java.lang.Object ref = locId_;
    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();
      locId_ = s;
      return s;
    }
  }
  /**
   * <code>string locId = 6;</code>
   * @return The bytes for locId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getLocIdBytes() {
    java.lang.Object ref = locId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      locId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PMTYPE_FIELD_NUMBER = 7;
  private volatile java.lang.Object pmType_;
  /**
   * <pre>
   * 预约类型	I：个人 G：团体 H：主场 O：过期主场
   * </pre>
   *
   * <code>string pmType = 7;</code>
   * @return The pmType.
   */
  @java.lang.Override
  public java.lang.String getPmType() {
    java.lang.Object ref = pmType_;
    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();
      pmType_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 预约类型	I：个人 G：团体 H：主场 O：过期主场
   * </pre>
   *
   * <code>string pmType = 7;</code>
   * @return The bytes for pmType.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getPmTypeBytes() {
    java.lang.Object ref = pmType_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      pmType_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int LEVELDESC_FIELD_NUMBER = 8;
  private volatile java.lang.Object levelDesc_;
  /**
   * <pre>
   * Vip等级描述 传普通
   * </pre>
   *
   * <code>string levelDesc = 8;</code>
   * @return The levelDesc.
   */
  @java.lang.Override
  public java.lang.String getLevelDesc() {
    java.lang.Object ref = levelDesc_;
    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();
      levelDesc_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * Vip等级描述 传普通
   * </pre>
   *
   * <code>string levelDesc = 8;</code>
   * @return The bytes for levelDesc.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getLevelDescBytes() {
    java.lang.Object ref = levelDesc_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      levelDesc_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ORDSETSID_FIELD_NUMBER = 9;
  private volatile java.lang.Object ordSetsId_;
  /**
   * <pre>
   * HIS套餐ID
   * </pre>
   *
   * <code>string ordSetsId = 9;</code>
   * @return The ordSetsId.
   */
  @java.lang.Override
  public java.lang.String getOrdSetsId() {
    java.lang.Object ref = ordSetsId_;
    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();
      ordSetsId_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * HIS套餐ID
   * </pre>
   *
   * <code>string ordSetsId = 9;</code>
   * @return The bytes for ordSetsId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getOrdSetsIdBytes() {
    java.lang.Object ref = ordSetsId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      ordSetsId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int EXAMDATE_FIELD_NUMBER = 10;
  private volatile java.lang.Object examDate_;
  /**
   * <pre>
   * 预约日期	YYYY-MM-DD
   * </pre>
   *
   * <code>string examDate = 10;</code>
   * @return The examDate.
   */
  @java.lang.Override
  public java.lang.String getExamDate() {
    java.lang.Object ref = examDate_;
    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();
      examDate_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 预约日期	YYYY-MM-DD
   * </pre>
   *
   * <code>string examDate = 10;</code>
   * @return The bytes for examDate.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getExamDateBytes() {
    java.lang.Object ref = examDate_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      examDate_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DETAILID_FIELD_NUMBER = 11;
  private volatile java.lang.Object detailId_;
  /**
   * <pre>
   * 排班ID
   * </pre>
   *
   * <code>string detailId = 11;</code>
   * @return The detailId.
   */
  @java.lang.Override
  public java.lang.String getDetailId() {
    java.lang.Object ref = detailId_;
    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();
      detailId_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 排班ID
   * </pre>
   *
   * <code>string detailId = 11;</code>
   * @return The bytes for detailId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getDetailIdBytes() {
    java.lang.Object ref = detailId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      detailId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int SELFITEM_FIELD_NUMBER = 12;
  private java.util.List<com.ywt.gapi.checkup_booking.SelfItem> selfItem_;
  /**
   * <pre>
   * 自选项目医嘱 id
   * </pre>
   *
   * <code>repeated .com.ywt.gapi.checkup_booking.SelfItem selfItem = 12;</code>
   */
  @java.lang.Override
  public java.util.List<com.ywt.gapi.checkup_booking.SelfItem> getSelfItemList() {
    return selfItem_;
  }
  /**
   * <pre>
   * 自选项目医嘱 id
   * </pre>
   *
   * <code>repeated .com.ywt.gapi.checkup_booking.SelfItem selfItem = 12;</code>
   */
  @java.lang.Override
  public java.util.List<? extends com.ywt.gapi.checkup_booking.SelfItemOrBuilder> 
      getSelfItemOrBuilderList() {
    return selfItem_;
  }
  /**
   * <pre>
   * 自选项目医嘱 id
   * </pre>
   *
   * <code>repeated .com.ywt.gapi.checkup_booking.SelfItem selfItem = 12;</code>
   */
  @java.lang.Override
  public int getSelfItemCount() {
    return selfItem_.size();
  }
  /**
   * <pre>
   * 自选项目医嘱 id
   * </pre>
   *
   * <code>repeated .com.ywt.gapi.checkup_booking.SelfItem selfItem = 12;</code>
   */
  @java.lang.Override
  public com.ywt.gapi.checkup_booking.SelfItem getSelfItem(int index) {
    return selfItem_.get(index);
  }
  /**
   * <pre>
   * 自选项目医嘱 id
   * </pre>
   *
   * <code>repeated .com.ywt.gapi.checkup_booking.SelfItem selfItem = 12;</code>
   */
  @java.lang.Override
  public com.ywt.gapi.checkup_booking.SelfItemOrBuilder getSelfItemOrBuilder(
      int index) {
    return selfItem_.get(index);
  }

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

  public static final int SUBHOSPITALID_FIELD_NUMBER = 14;
  private int subHospitalId_;
  /**
   * <code>int32 subHospitalId = 14;</code>
   * @return The subHospitalId.
   */
  @java.lang.Override
  public int getSubHospitalId() {
    return subHospitalId_;
  }

  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(certificateNo_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, certificateNo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patientName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, patientName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(telephoneNo_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, telephoneNo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patientDob_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, patientDob_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sex_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, sex_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, locId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pmType_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, pmType_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(levelDesc_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, levelDesc_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ordSetsId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 9, ordSetsId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(examDate_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 10, examDate_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detailId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 11, detailId_);
    }
    for (int i = 0; i < selfItem_.size(); i++) {
      output.writeMessage(12, selfItem_.get(i));
    }
    if (hospitalId_ != 0) {
      output.writeInt32(13, hospitalId_);
    }
    if (subHospitalId_ != 0) {
      output.writeInt32(14, subHospitalId_);
    }
    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(certificateNo_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, certificateNo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patientName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, patientName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(telephoneNo_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, telephoneNo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patientDob_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, patientDob_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sex_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, sex_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, locId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pmType_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, pmType_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(levelDesc_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, levelDesc_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ordSetsId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, ordSetsId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(examDate_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, examDate_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detailId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, detailId_);
    }
    for (int i = 0; i < selfItem_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(12, selfItem_.get(i));
    }
    if (hospitalId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(13, hospitalId_);
    }
    if (subHospitalId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(14, subHospitalId_);
    }
    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.checkup_booking.SaveRegRecordRequest)) {
      return super.equals(obj);
    }
    com.ywt.gapi.checkup_booking.SaveRegRecordRequest other = (com.ywt.gapi.checkup_booking.SaveRegRecordRequest) obj;

    if (!getCertificateNo()
        .equals(other.getCertificateNo())) return false;
    if (!getPatientName()
        .equals(other.getPatientName())) return false;
    if (!getTelephoneNo()
        .equals(other.getTelephoneNo())) return false;
    if (!getPatientDob()
        .equals(other.getPatientDob())) return false;
    if (!getSex()
        .equals(other.getSex())) return false;
    if (!getLocId()
        .equals(other.getLocId())) return false;
    if (!getPmType()
        .equals(other.getPmType())) return false;
    if (!getLevelDesc()
        .equals(other.getLevelDesc())) return false;
    if (!getOrdSetsId()
        .equals(other.getOrdSetsId())) return false;
    if (!getExamDate()
        .equals(other.getExamDate())) return false;
    if (!getDetailId()
        .equals(other.getDetailId())) return false;
    if (!getSelfItemList()
        .equals(other.getSelfItemList())) return false;
    if (getHospitalId()
        != other.getHospitalId()) return false;
    if (getSubHospitalId()
        != other.getSubHospitalId()) 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) + CERTIFICATENO_FIELD_NUMBER;
    hash = (53 * hash) + getCertificateNo().hashCode();
    hash = (37 * hash) + PATIENTNAME_FIELD_NUMBER;
    hash = (53 * hash) + getPatientName().hashCode();
    hash = (37 * hash) + TELEPHONENO_FIELD_NUMBER;
    hash = (53 * hash) + getTelephoneNo().hashCode();
    hash = (37 * hash) + PATIENTDOB_FIELD_NUMBER;
    hash = (53 * hash) + getPatientDob().hashCode();
    hash = (37 * hash) + SEX_FIELD_NUMBER;
    hash = (53 * hash) + getSex().hashCode();
    hash = (37 * hash) + LOCID_FIELD_NUMBER;
    hash = (53 * hash) + getLocId().hashCode();
    hash = (37 * hash) + PMTYPE_FIELD_NUMBER;
    hash = (53 * hash) + getPmType().hashCode();
    hash = (37 * hash) + LEVELDESC_FIELD_NUMBER;
    hash = (53 * hash) + getLevelDesc().hashCode();
    hash = (37 * hash) + ORDSETSID_FIELD_NUMBER;
    hash = (53 * hash) + getOrdSetsId().hashCode();
    hash = (37 * hash) + EXAMDATE_FIELD_NUMBER;
    hash = (53 * hash) + getExamDate().hashCode();
    hash = (37 * hash) + DETAILID_FIELD_NUMBER;
    hash = (53 * hash) + getDetailId().hashCode();
    if (getSelfItemCount() > 0) {
      hash = (37 * hash) + SELFITEM_FIELD_NUMBER;
      hash = (53 * hash) + getSelfItemList().hashCode();
    }
    hash = (37 * hash) + HOSPITALID_FIELD_NUMBER;
    hash = (53 * hash) + getHospitalId();
    hash = (37 * hash) + SUBHOSPITALID_FIELD_NUMBER;
    hash = (53 * hash) + getSubHospitalId();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.checkup_booking.CheckupBookingProto.internal_static_com_ywt_gapi_checkup_booking_SaveRegRecordRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.checkup_booking.SaveRegRecordRequest.class, com.ywt.gapi.checkup_booking.SaveRegRecordRequest.Builder.class);
    }

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

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

      patientName_ = "";

      telephoneNo_ = "";

      patientDob_ = "";

      sex_ = "";

      locId_ = "";

      pmType_ = "";

      levelDesc_ = "";

      ordSetsId_ = "";

      examDate_ = "";

      detailId_ = "";

      if (selfItemBuilder_ == null) {
        selfItem_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
      } else {
        selfItemBuilder_.clear();
      }
      hospitalId_ = 0;

      subHospitalId_ = 0;

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.checkup_booking.CheckupBookingProto.internal_static_com_ywt_gapi_checkup_booking_SaveRegRecordRequest_descriptor;
    }

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

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

    @java.lang.Override
    public com.ywt.gapi.checkup_booking.SaveRegRecordRequest buildPartial() {
      com.ywt.gapi.checkup_booking.SaveRegRecordRequest result = new com.ywt.gapi.checkup_booking.SaveRegRecordRequest(this);
      int from_bitField0_ = bitField0_;
      result.certificateNo_ = certificateNo_;
      result.patientName_ = patientName_;
      result.telephoneNo_ = telephoneNo_;
      result.patientDob_ = patientDob_;
      result.sex_ = sex_;
      result.locId_ = locId_;
      result.pmType_ = pmType_;
      result.levelDesc_ = levelDesc_;
      result.ordSetsId_ = ordSetsId_;
      result.examDate_ = examDate_;
      result.detailId_ = detailId_;
      if (selfItemBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          selfItem_ = java.util.Collections.unmodifiableList(selfItem_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.selfItem_ = selfItem_;
      } else {
        result.selfItem_ = selfItemBuilder_.build();
      }
      result.hospitalId_ = hospitalId_;
      result.subHospitalId_ = subHospitalId_;
      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.checkup_booking.SaveRegRecordRequest) {
        return mergeFrom((com.ywt.gapi.checkup_booking.SaveRegRecordRequest)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.checkup_booking.SaveRegRecordRequest other) {
      if (other == com.ywt.gapi.checkup_booking.SaveRegRecordRequest.getDefaultInstance()) return this;
      if (!other.getCertificateNo().isEmpty()) {
        certificateNo_ = other.certificateNo_;
        onChanged();
      }
      if (!other.getPatientName().isEmpty()) {
        patientName_ = other.patientName_;
        onChanged();
      }
      if (!other.getTelephoneNo().isEmpty()) {
        telephoneNo_ = other.telephoneNo_;
        onChanged();
      }
      if (!other.getPatientDob().isEmpty()) {
        patientDob_ = other.patientDob_;
        onChanged();
      }
      if (!other.getSex().isEmpty()) {
        sex_ = other.sex_;
        onChanged();
      }
      if (!other.getLocId().isEmpty()) {
        locId_ = other.locId_;
        onChanged();
      }
      if (!other.getPmType().isEmpty()) {
        pmType_ = other.pmType_;
        onChanged();
      }
      if (!other.getLevelDesc().isEmpty()) {
        levelDesc_ = other.levelDesc_;
        onChanged();
      }
      if (!other.getOrdSetsId().isEmpty()) {
        ordSetsId_ = other.ordSetsId_;
        onChanged();
      }
      if (!other.getExamDate().isEmpty()) {
        examDate_ = other.examDate_;
        onChanged();
      }
      if (!other.getDetailId().isEmpty()) {
        detailId_ = other.detailId_;
        onChanged();
      }
      if (selfItemBuilder_ == null) {
        if (!other.selfItem_.isEmpty()) {
          if (selfItem_.isEmpty()) {
            selfItem_ = other.selfItem_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureSelfItemIsMutable();
            selfItem_.addAll(other.selfItem_);
          }
          onChanged();
        }
      } else {
        if (!other.selfItem_.isEmpty()) {
          if (selfItemBuilder_.isEmpty()) {
            selfItemBuilder_.dispose();
            selfItemBuilder_ = null;
            selfItem_ = other.selfItem_;
            bitField0_ = (bitField0_ & ~0x00000001);
            selfItemBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getSelfItemFieldBuilder() : null;
          } else {
            selfItemBuilder_.addAllMessages(other.selfItem_);
          }
        }
      }
      if (other.getHospitalId() != 0) {
        setHospitalId(other.getHospitalId());
      }
      if (other.getSubHospitalId() != 0) {
        setSubHospitalId(other.getSubHospitalId());
      }
      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.checkup_booking.SaveRegRecordRequest parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.checkup_booking.SaveRegRecordRequest) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private java.lang.Object certificateNo_ = "";
    /**
     * <pre>
     * 身份证号码
     * </pre>
     *
     * <code>string certificateNo = 1;</code>
     * @return The certificateNo.
     */
    public java.lang.String getCertificateNo() {
      java.lang.Object ref = certificateNo_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        certificateNo_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 身份证号码
     * </pre>
     *
     * <code>string certificateNo = 1;</code>
     * @return The bytes for certificateNo.
     */
    public com.google.protobuf.ByteString
        getCertificateNoBytes() {
      java.lang.Object ref = certificateNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        certificateNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 身份证号码
     * </pre>
     *
     * <code>string certificateNo = 1;</code>
     * @param value The certificateNo to set.
     * @return This builder for chaining.
     */
    public Builder setCertificateNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      certificateNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 身份证号码
     * </pre>
     *
     * <code>string certificateNo = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearCertificateNo() {
      
      certificateNo_ = getDefaultInstance().getCertificateNo();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 身份证号码
     * </pre>
     *
     * <code>string certificateNo = 1;</code>
     * @param value The bytes for certificateNo to set.
     * @return This builder for chaining.
     */
    public Builder setCertificateNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      certificateNo_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object patientName_ = "";
    /**
     * <code>string patientName = 2;</code>
     * @return The patientName.
     */
    public java.lang.String getPatientName() {
      java.lang.Object ref = patientName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        patientName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string patientName = 2;</code>
     * @return The bytes for patientName.
     */
    public com.google.protobuf.ByteString
        getPatientNameBytes() {
      java.lang.Object ref = patientName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        patientName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string patientName = 2;</code>
     * @param value The patientName to set.
     * @return This builder for chaining.
     */
    public Builder setPatientName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      patientName_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string patientName = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearPatientName() {
      
      patientName_ = getDefaultInstance().getPatientName();
      onChanged();
      return this;
    }
    /**
     * <code>string patientName = 2;</code>
     * @param value The bytes for patientName to set.
     * @return This builder for chaining.
     */
    public Builder setPatientNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      patientName_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object telephoneNo_ = "";
    /**
     * <code>string telephoneNo = 3;</code>
     * @return The telephoneNo.
     */
    public java.lang.String getTelephoneNo() {
      java.lang.Object ref = telephoneNo_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        telephoneNo_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string telephoneNo = 3;</code>
     * @return The bytes for telephoneNo.
     */
    public com.google.protobuf.ByteString
        getTelephoneNoBytes() {
      java.lang.Object ref = telephoneNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        telephoneNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string telephoneNo = 3;</code>
     * @param value The telephoneNo to set.
     * @return This builder for chaining.
     */
    public Builder setTelephoneNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      telephoneNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string telephoneNo = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearTelephoneNo() {
      
      telephoneNo_ = getDefaultInstance().getTelephoneNo();
      onChanged();
      return this;
    }
    /**
     * <code>string telephoneNo = 3;</code>
     * @param value The bytes for telephoneNo to set.
     * @return This builder for chaining.
     */
    public Builder setTelephoneNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      telephoneNo_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object patientDob_ = "";
    /**
     * <pre>
     * 出生日期，格式：YYYY-MM-DD
     * </pre>
     *
     * <code>string patientDob = 4;</code>
     * @return The patientDob.
     */
    public java.lang.String getPatientDob() {
      java.lang.Object ref = patientDob_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        patientDob_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 出生日期，格式：YYYY-MM-DD
     * </pre>
     *
     * <code>string patientDob = 4;</code>
     * @return The bytes for patientDob.
     */
    public com.google.protobuf.ByteString
        getPatientDobBytes() {
      java.lang.Object ref = patientDob_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        patientDob_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 出生日期，格式：YYYY-MM-DD
     * </pre>
     *
     * <code>string patientDob = 4;</code>
     * @param value The patientDob to set.
     * @return This builder for chaining.
     */
    public Builder setPatientDob(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      patientDob_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 出生日期，格式：YYYY-MM-DD
     * </pre>
     *
     * <code>string patientDob = 4;</code>
     * @return This builder for chaining.
     */
    public Builder clearPatientDob() {
      
      patientDob_ = getDefaultInstance().getPatientDob();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 出生日期，格式：YYYY-MM-DD
     * </pre>
     *
     * <code>string patientDob = 4;</code>
     * @param value The bytes for patientDob to set.
     * @return This builder for chaining.
     */
    public Builder setPatientDobBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      patientDob_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object sex_ = "";
    /**
     * <code>string sex = 5;</code>
     * @return The sex.
     */
    public java.lang.String getSex() {
      java.lang.Object ref = sex_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        sex_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string sex = 5;</code>
     * @return The bytes for sex.
     */
    public com.google.protobuf.ByteString
        getSexBytes() {
      java.lang.Object ref = sex_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        sex_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string sex = 5;</code>
     * @param value The sex to set.
     * @return This builder for chaining.
     */
    public Builder setSex(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      sex_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string sex = 5;</code>
     * @return This builder for chaining.
     */
    public Builder clearSex() {
      
      sex_ = getDefaultInstance().getSex();
      onChanged();
      return this;
    }
    /**
     * <code>string sex = 5;</code>
     * @param value The bytes for sex to set.
     * @return This builder for chaining.
     */
    public Builder setSexBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      sex_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object locId_ = "";
    /**
     * <code>string locId = 6;</code>
     * @return The locId.
     */
    public java.lang.String getLocId() {
      java.lang.Object ref = locId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        locId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string locId = 6;</code>
     * @return The bytes for locId.
     */
    public com.google.protobuf.ByteString
        getLocIdBytes() {
      java.lang.Object ref = locId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        locId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string locId = 6;</code>
     * @param value The locId to set.
     * @return This builder for chaining.
     */
    public Builder setLocId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      locId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string locId = 6;</code>
     * @return This builder for chaining.
     */
    public Builder clearLocId() {
      
      locId_ = getDefaultInstance().getLocId();
      onChanged();
      return this;
    }
    /**
     * <code>string locId = 6;</code>
     * @param value The bytes for locId to set.
     * @return This builder for chaining.
     */
    public Builder setLocIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      locId_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object pmType_ = "";
    /**
     * <pre>
     * 预约类型	I：个人 G：团体 H：主场 O：过期主场
     * </pre>
     *
     * <code>string pmType = 7;</code>
     * @return The pmType.
     */
    public java.lang.String getPmType() {
      java.lang.Object ref = pmType_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        pmType_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 预约类型	I：个人 G：团体 H：主场 O：过期主场
     * </pre>
     *
     * <code>string pmType = 7;</code>
     * @return The bytes for pmType.
     */
    public com.google.protobuf.ByteString
        getPmTypeBytes() {
      java.lang.Object ref = pmType_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        pmType_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 预约类型	I：个人 G：团体 H：主场 O：过期主场
     * </pre>
     *
     * <code>string pmType = 7;</code>
     * @param value The pmType to set.
     * @return This builder for chaining.
     */
    public Builder setPmType(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      pmType_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 预约类型	I：个人 G：团体 H：主场 O：过期主场
     * </pre>
     *
     * <code>string pmType = 7;</code>
     * @return This builder for chaining.
     */
    public Builder clearPmType() {
      
      pmType_ = getDefaultInstance().getPmType();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 预约类型	I：个人 G：团体 H：主场 O：过期主场
     * </pre>
     *
     * <code>string pmType = 7;</code>
     * @param value The bytes for pmType to set.
     * @return This builder for chaining.
     */
    public Builder setPmTypeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      pmType_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object levelDesc_ = "";
    /**
     * <pre>
     * Vip等级描述 传普通
     * </pre>
     *
     * <code>string levelDesc = 8;</code>
     * @return The levelDesc.
     */
    public java.lang.String getLevelDesc() {
      java.lang.Object ref = levelDesc_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        levelDesc_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * Vip等级描述 传普通
     * </pre>
     *
     * <code>string levelDesc = 8;</code>
     * @return The bytes for levelDesc.
     */
    public com.google.protobuf.ByteString
        getLevelDescBytes() {
      java.lang.Object ref = levelDesc_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        levelDesc_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * Vip等级描述 传普通
     * </pre>
     *
     * <code>string levelDesc = 8;</code>
     * @param value The levelDesc to set.
     * @return This builder for chaining.
     */
    public Builder setLevelDesc(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      levelDesc_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Vip等级描述 传普通
     * </pre>
     *
     * <code>string levelDesc = 8;</code>
     * @return This builder for chaining.
     */
    public Builder clearLevelDesc() {
      
      levelDesc_ = getDefaultInstance().getLevelDesc();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Vip等级描述 传普通
     * </pre>
     *
     * <code>string levelDesc = 8;</code>
     * @param value The bytes for levelDesc to set.
     * @return This builder for chaining.
     */
    public Builder setLevelDescBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      levelDesc_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object ordSetsId_ = "";
    /**
     * <pre>
     * HIS套餐ID
     * </pre>
     *
     * <code>string ordSetsId = 9;</code>
     * @return The ordSetsId.
     */
    public java.lang.String getOrdSetsId() {
      java.lang.Object ref = ordSetsId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        ordSetsId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * HIS套餐ID
     * </pre>
     *
     * <code>string ordSetsId = 9;</code>
     * @return The bytes for ordSetsId.
     */
    public com.google.protobuf.ByteString
        getOrdSetsIdBytes() {
      java.lang.Object ref = ordSetsId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        ordSetsId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * HIS套餐ID
     * </pre>
     *
     * <code>string ordSetsId = 9;</code>
     * @param value The ordSetsId to set.
     * @return This builder for chaining.
     */
    public Builder setOrdSetsId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      ordSetsId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * HIS套餐ID
     * </pre>
     *
     * <code>string ordSetsId = 9;</code>
     * @return This builder for chaining.
     */
    public Builder clearOrdSetsId() {
      
      ordSetsId_ = getDefaultInstance().getOrdSetsId();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * HIS套餐ID
     * </pre>
     *
     * <code>string ordSetsId = 9;</code>
     * @param value The bytes for ordSetsId to set.
     * @return This builder for chaining.
     */
    public Builder setOrdSetsIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      ordSetsId_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object examDate_ = "";
    /**
     * <pre>
     * 预约日期	YYYY-MM-DD
     * </pre>
     *
     * <code>string examDate = 10;</code>
     * @return The examDate.
     */
    public java.lang.String getExamDate() {
      java.lang.Object ref = examDate_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        examDate_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 预约日期	YYYY-MM-DD
     * </pre>
     *
     * <code>string examDate = 10;</code>
     * @return The bytes for examDate.
     */
    public com.google.protobuf.ByteString
        getExamDateBytes() {
      java.lang.Object ref = examDate_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        examDate_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 预约日期	YYYY-MM-DD
     * </pre>
     *
     * <code>string examDate = 10;</code>
     * @param value The examDate to set.
     * @return This builder for chaining.
     */
    public Builder setExamDate(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      examDate_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 预约日期	YYYY-MM-DD
     * </pre>
     *
     * <code>string examDate = 10;</code>
     * @return This builder for chaining.
     */
    public Builder clearExamDate() {
      
      examDate_ = getDefaultInstance().getExamDate();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 预约日期	YYYY-MM-DD
     * </pre>
     *
     * <code>string examDate = 10;</code>
     * @param value The bytes for examDate to set.
     * @return This builder for chaining.
     */
    public Builder setExamDateBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      examDate_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object detailId_ = "";
    /**
     * <pre>
     * 排班ID
     * </pre>
     *
     * <code>string detailId = 11;</code>
     * @return The detailId.
     */
    public java.lang.String getDetailId() {
      java.lang.Object ref = detailId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        detailId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 排班ID
     * </pre>
     *
     * <code>string detailId = 11;</code>
     * @return The bytes for detailId.
     */
    public com.google.protobuf.ByteString
        getDetailIdBytes() {
      java.lang.Object ref = detailId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        detailId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 排班ID
     * </pre>
     *
     * <code>string detailId = 11;</code>
     * @param value The detailId to set.
     * @return This builder for chaining.
     */
    public Builder setDetailId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      detailId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 排班ID
     * </pre>
     *
     * <code>string detailId = 11;</code>
     * @return This builder for chaining.
     */
    public Builder clearDetailId() {
      
      detailId_ = getDefaultInstance().getDetailId();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 排班ID
     * </pre>
     *
     * <code>string detailId = 11;</code>
     * @param value The bytes for detailId to set.
     * @return This builder for chaining.
     */
    public Builder setDetailIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      detailId_ = value;
      onChanged();
      return this;
    }

    private java.util.List<com.ywt.gapi.checkup_booking.SelfItem> selfItem_ =
      java.util.Collections.emptyList();
    private void ensureSelfItemIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        selfItem_ = new java.util.ArrayList<com.ywt.gapi.checkup_booking.SelfItem>(selfItem_);
        bitField0_ |= 0x00000001;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.checkup_booking.SelfItem, com.ywt.gapi.checkup_booking.SelfItem.Builder, com.ywt.gapi.checkup_booking.SelfItemOrBuilder> selfItemBuilder_;

    /**
     * <pre>
     * 自选项目医嘱 id
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.checkup_booking.SelfItem selfItem = 12;</code>
     */
    public java.util.List<com.ywt.gapi.checkup_booking.SelfItem> getSelfItemList() {
      if (selfItemBuilder_ == null) {
        return java.util.Collections.unmodifiableList(selfItem_);
      } else {
        return selfItemBuilder_.getMessageList();
      }
    }
    /**
     * <pre>
     * 自选项目医嘱 id
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.checkup_booking.SelfItem selfItem = 12;</code>
     */
    public int getSelfItemCount() {
      if (selfItemBuilder_ == null) {
        return selfItem_.size();
      } else {
        return selfItemBuilder_.getCount();
      }
    }
    /**
     * <pre>
     * 自选项目医嘱 id
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.checkup_booking.SelfItem selfItem = 12;</code>
     */
    public com.ywt.gapi.checkup_booking.SelfItem getSelfItem(int index) {
      if (selfItemBuilder_ == null) {
        return selfItem_.get(index);
      } else {
        return selfItemBuilder_.getMessage(index);
      }
    }
    /**
     * <pre>
     * 自选项目医嘱 id
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.checkup_booking.SelfItem selfItem = 12;</code>
     */
    public Builder setSelfItem(
        int index, com.ywt.gapi.checkup_booking.SelfItem value) {
      if (selfItemBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureSelfItemIsMutable();
        selfItem_.set(index, value);
        onChanged();
      } else {
        selfItemBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <pre>
     * 自选项目医嘱 id
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.checkup_booking.SelfItem selfItem = 12;</code>
     */
    public Builder setSelfItem(
        int index, com.ywt.gapi.checkup_booking.SelfItem.Builder builderForValue) {
      if (selfItemBuilder_ == null) {
        ensureSelfItemIsMutable();
        selfItem_.set(index, builderForValue.build());
        onChanged();
      } else {
        selfItemBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     * 自选项目医嘱 id
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.checkup_booking.SelfItem selfItem = 12;</code>
     */
    public Builder addSelfItem(com.ywt.gapi.checkup_booking.SelfItem value) {
      if (selfItemBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureSelfItemIsMutable();
        selfItem_.add(value);
        onChanged();
      } else {
        selfItemBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <pre>
     * 自选项目医嘱 id
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.checkup_booking.SelfItem selfItem = 12;</code>
     */
    public Builder addSelfItem(
        int index, com.ywt.gapi.checkup_booking.SelfItem value) {
      if (selfItemBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureSelfItemIsMutable();
        selfItem_.add(index, value);
        onChanged();
      } else {
        selfItemBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <pre>
     * 自选项目医嘱 id
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.checkup_booking.SelfItem selfItem = 12;</code>
     */
    public Builder addSelfItem(
        com.ywt.gapi.checkup_booking.SelfItem.Builder builderForValue) {
      if (selfItemBuilder_ == null) {
        ensureSelfItemIsMutable();
        selfItem_.add(builderForValue.build());
        onChanged();
      } else {
        selfItemBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     * 自选项目医嘱 id
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.checkup_booking.SelfItem selfItem = 12;</code>
     */
    public Builder addSelfItem(
        int index, com.ywt.gapi.checkup_booking.SelfItem.Builder builderForValue) {
      if (selfItemBuilder_ == null) {
        ensureSelfItemIsMutable();
        selfItem_.add(index, builderForValue.build());
        onChanged();
      } else {
        selfItemBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     * 自选项目医嘱 id
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.checkup_booking.SelfItem selfItem = 12;</code>
     */
    public Builder addAllSelfItem(
        java.lang.Iterable<? extends com.ywt.gapi.checkup_booking.SelfItem> values) {
      if (selfItemBuilder_ == null) {
        ensureSelfItemIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, selfItem_);
        onChanged();
      } else {
        selfItemBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <pre>
     * 自选项目医嘱 id
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.checkup_booking.SelfItem selfItem = 12;</code>
     */
    public Builder clearSelfItem() {
      if (selfItemBuilder_ == null) {
        selfItem_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        selfItemBuilder_.clear();
      }
      return this;
    }
    /**
     * <pre>
     * 自选项目医嘱 id
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.checkup_booking.SelfItem selfItem = 12;</code>
     */
    public Builder removeSelfItem(int index) {
      if (selfItemBuilder_ == null) {
        ensureSelfItemIsMutable();
        selfItem_.remove(index);
        onChanged();
      } else {
        selfItemBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <pre>
     * 自选项目医嘱 id
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.checkup_booking.SelfItem selfItem = 12;</code>
     */
    public com.ywt.gapi.checkup_booking.SelfItem.Builder getSelfItemBuilder(
        int index) {
      return getSelfItemFieldBuilder().getBuilder(index);
    }
    /**
     * <pre>
     * 自选项目医嘱 id
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.checkup_booking.SelfItem selfItem = 12;</code>
     */
    public com.ywt.gapi.checkup_booking.SelfItemOrBuilder getSelfItemOrBuilder(
        int index) {
      if (selfItemBuilder_ == null) {
        return selfItem_.get(index);  } else {
        return selfItemBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <pre>
     * 自选项目医嘱 id
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.checkup_booking.SelfItem selfItem = 12;</code>
     */
    public java.util.List<? extends com.ywt.gapi.checkup_booking.SelfItemOrBuilder> 
         getSelfItemOrBuilderList() {
      if (selfItemBuilder_ != null) {
        return selfItemBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(selfItem_);
      }
    }
    /**
     * <pre>
     * 自选项目医嘱 id
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.checkup_booking.SelfItem selfItem = 12;</code>
     */
    public com.ywt.gapi.checkup_booking.SelfItem.Builder addSelfItemBuilder() {
      return getSelfItemFieldBuilder().addBuilder(
          com.ywt.gapi.checkup_booking.SelfItem.getDefaultInstance());
    }
    /**
     * <pre>
     * 自选项目医嘱 id
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.checkup_booking.SelfItem selfItem = 12;</code>
     */
    public com.ywt.gapi.checkup_booking.SelfItem.Builder addSelfItemBuilder(
        int index) {
      return getSelfItemFieldBuilder().addBuilder(
          index, com.ywt.gapi.checkup_booking.SelfItem.getDefaultInstance());
    }
    /**
     * <pre>
     * 自选项目医嘱 id
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.checkup_booking.SelfItem selfItem = 12;</code>
     */
    public java.util.List<com.ywt.gapi.checkup_booking.SelfItem.Builder> 
         getSelfItemBuilderList() {
      return getSelfItemFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.checkup_booking.SelfItem, com.ywt.gapi.checkup_booking.SelfItem.Builder, com.ywt.gapi.checkup_booking.SelfItemOrBuilder> 
        getSelfItemFieldBuilder() {
      if (selfItemBuilder_ == null) {
        selfItemBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            com.ywt.gapi.checkup_booking.SelfItem, com.ywt.gapi.checkup_booking.SelfItem.Builder, com.ywt.gapi.checkup_booking.SelfItemOrBuilder>(
                selfItem_,
                ((bitField0_ & 0x00000001) != 0),
                getParentForChildren(),
                isClean());
        selfItem_ = null;
      }
      return selfItemBuilder_;
    }

    private int hospitalId_ ;
    /**
     * <code>int32 hospitalId = 13;</code>
     * @return The hospitalId.
     */
    @java.lang.Override
    public int getHospitalId() {
      return hospitalId_;
    }
    /**
     * <code>int32 hospitalId = 13;</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 = 13;</code>
     * @return This builder for chaining.
     */
    public Builder clearHospitalId() {
      
      hospitalId_ = 0;
      onChanged();
      return this;
    }

    private int subHospitalId_ ;
    /**
     * <code>int32 subHospitalId = 14;</code>
     * @return The subHospitalId.
     */
    @java.lang.Override
    public int getSubHospitalId() {
      return subHospitalId_;
    }
    /**
     * <code>int32 subHospitalId = 14;</code>
     * @param value The subHospitalId to set.
     * @return This builder for chaining.
     */
    public Builder setSubHospitalId(int value) {
      
      subHospitalId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 subHospitalId = 14;</code>
     * @return This builder for chaining.
     */
    public Builder clearSubHospitalId() {
      
      subHospitalId_ = 0;
      onChanged();
      return this;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

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


    // @@protoc_insertion_point(builder_scope:com.ywt.gapi.checkup_booking.SaveRegRecordRequest)
  }

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

  public static com.ywt.gapi.checkup_booking.SaveRegRecordRequest getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

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

}

