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

package com.ywt.gapi.nfyy;

/**
 * <pre>
 *门诊病历患者信息
 * </pre>
 *
 * Protobuf type {@code com.ywt.gapi.nfyy.MedCasePatInfo}
 */
public final class MedCasePatInfo extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.nfyy.MedCasePatInfo)
    MedCasePatInfoOrBuilder {
private static final long serialVersionUID = 0L;
  // Use MedCasePatInfo.newBuilder() to construct.
  private MedCasePatInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private MedCasePatInfo() {
    medicareNo_ = "";
    admvisitNo_ = "";
    healthCardNo_ = "";
    addr_ = "";
    name_ = "";
    telecom_ = "";
    administrativeGender_ = "";
    ethnicGroup_ = "";
    age_ = "";
  }

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

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

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

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

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

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

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

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

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

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

            age_ = 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.nfyy.NfyyProto.internal_static_com_ywt_gapi_nfyy_MedCasePatInfo_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.nfyy.NfyyProto.internal_static_com_ywt_gapi_nfyy_MedCasePatInfo_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.nfyy.MedCasePatInfo.class, com.ywt.gapi.nfyy.MedCasePatInfo.Builder.class);
  }

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

  public static final int ADMVISITNO_FIELD_NUMBER = 2;
  private volatile java.lang.Object admvisitNo_;
  /**
   * <pre>
   *门诊流水号
   * </pre>
   *
   * <code>string admvisitNo = 2;</code>
   * @return The admvisitNo.
   */
  @java.lang.Override
  public java.lang.String getAdmvisitNo() {
    java.lang.Object ref = admvisitNo_;
    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();
      admvisitNo_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *门诊流水号
   * </pre>
   *
   * <code>string admvisitNo = 2;</code>
   * @return The bytes for admvisitNo.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getAdmvisitNoBytes() {
    java.lang.Object ref = admvisitNo_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      admvisitNo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

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

  public static final int ADDR_FIELD_NUMBER = 4;
  private volatile java.lang.Object addr_;
  /**
   * <pre>
   *地址
   * </pre>
   *
   * <code>string addr = 4;</code>
   * @return The addr.
   */
  @java.lang.Override
  public java.lang.String getAddr() {
    java.lang.Object ref = addr_;
    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();
      addr_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *地址
   * </pre>
   *
   * <code>string addr = 4;</code>
   * @return The bytes for addr.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getAddrBytes() {
    java.lang.Object ref = addr_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      addr_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int NAME_FIELD_NUMBER = 5;
  private volatile java.lang.Object name_;
  /**
   * <pre>
   *姓名
   * </pre>
   *
   * <code>string name = 5;</code>
   * @return The name.
   */
  @java.lang.Override
  public java.lang.String getName() {
    java.lang.Object ref = name_;
    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();
      name_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *姓名
   * </pre>
   *
   * <code>string name = 5;</code>
   * @return The bytes for name.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getNameBytes() {
    java.lang.Object ref = name_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      name_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int TELECOM_FIELD_NUMBER = 6;
  private volatile java.lang.Object telecom_;
  /**
   * <pre>
   *电话
   * </pre>
   *
   * <code>string telecom = 6;</code>
   * @return The telecom.
   */
  @java.lang.Override
  public java.lang.String getTelecom() {
    java.lang.Object ref = telecom_;
    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();
      telecom_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *电话
   * </pre>
   *
   * <code>string telecom = 6;</code>
   * @return The bytes for telecom.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getTelecomBytes() {
    java.lang.Object ref = telecom_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      telecom_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ADMINISTRATIVEGENDER_FIELD_NUMBER = 7;
  private volatile java.lang.Object administrativeGender_;
  /**
   * <pre>
   *性别
   * </pre>
   *
   * <code>string administrativeGender = 7;</code>
   * @return The administrativeGender.
   */
  @java.lang.Override
  public java.lang.String getAdministrativeGender() {
    java.lang.Object ref = administrativeGender_;
    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();
      administrativeGender_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *性别
   * </pre>
   *
   * <code>string administrativeGender = 7;</code>
   * @return The bytes for administrativeGender.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getAdministrativeGenderBytes() {
    java.lang.Object ref = administrativeGender_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      administrativeGender_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ETHNICGROUP_FIELD_NUMBER = 8;
  private volatile java.lang.Object ethnicGroup_;
  /**
   * <pre>
   *民族
   * </pre>
   *
   * <code>string ethnicGroup = 8;</code>
   * @return The ethnicGroup.
   */
  @java.lang.Override
  public java.lang.String getEthnicGroup() {
    java.lang.Object ref = ethnicGroup_;
    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();
      ethnicGroup_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *民族
   * </pre>
   *
   * <code>string ethnicGroup = 8;</code>
   * @return The bytes for ethnicGroup.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getEthnicGroupBytes() {
    java.lang.Object ref = ethnicGroup_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      ethnicGroup_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int AGE_FIELD_NUMBER = 9;
  private volatile java.lang.Object age_;
  /**
   * <pre>
   *年龄
   * </pre>
   *
   * <code>string age = 9;</code>
   * @return The age.
   */
  @java.lang.Override
  public java.lang.String getAge() {
    java.lang.Object ref = age_;
    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();
      age_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *年龄
   * </pre>
   *
   * <code>string age = 9;</code>
   * @return The bytes for age.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getAgeBytes() {
    java.lang.Object ref = age_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      age_ = 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(medicareNo_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, medicareNo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(admvisitNo_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, admvisitNo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(healthCardNo_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, healthCardNo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(addr_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, addr_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(telecom_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, telecom_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(administrativeGender_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, administrativeGender_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ethnicGroup_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, ethnicGroup_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(age_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 9, age_);
    }
    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(medicareNo_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, medicareNo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(admvisitNo_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, admvisitNo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(healthCardNo_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, healthCardNo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(addr_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, addr_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(telecom_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, telecom_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(administrativeGender_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, administrativeGender_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ethnicGroup_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, ethnicGroup_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(age_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, age_);
    }
    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.nfyy.MedCasePatInfo)) {
      return super.equals(obj);
    }
    com.ywt.gapi.nfyy.MedCasePatInfo other = (com.ywt.gapi.nfyy.MedCasePatInfo) obj;

    if (!getMedicareNo()
        .equals(other.getMedicareNo())) return false;
    if (!getAdmvisitNo()
        .equals(other.getAdmvisitNo())) return false;
    if (!getHealthCardNo()
        .equals(other.getHealthCardNo())) return false;
    if (!getAddr()
        .equals(other.getAddr())) return false;
    if (!getName()
        .equals(other.getName())) return false;
    if (!getTelecom()
        .equals(other.getTelecom())) return false;
    if (!getAdministrativeGender()
        .equals(other.getAdministrativeGender())) return false;
    if (!getEthnicGroup()
        .equals(other.getEthnicGroup())) return false;
    if (!getAge()
        .equals(other.getAge())) 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) + MEDICARENO_FIELD_NUMBER;
    hash = (53 * hash) + getMedicareNo().hashCode();
    hash = (37 * hash) + ADMVISITNO_FIELD_NUMBER;
    hash = (53 * hash) + getAdmvisitNo().hashCode();
    hash = (37 * hash) + HEALTHCARDNO_FIELD_NUMBER;
    hash = (53 * hash) + getHealthCardNo().hashCode();
    hash = (37 * hash) + ADDR_FIELD_NUMBER;
    hash = (53 * hash) + getAddr().hashCode();
    hash = (37 * hash) + NAME_FIELD_NUMBER;
    hash = (53 * hash) + getName().hashCode();
    hash = (37 * hash) + TELECOM_FIELD_NUMBER;
    hash = (53 * hash) + getTelecom().hashCode();
    hash = (37 * hash) + ADMINISTRATIVEGENDER_FIELD_NUMBER;
    hash = (53 * hash) + getAdministrativeGender().hashCode();
    hash = (37 * hash) + ETHNICGROUP_FIELD_NUMBER;
    hash = (53 * hash) + getEthnicGroup().hashCode();
    hash = (37 * hash) + AGE_FIELD_NUMBER;
    hash = (53 * hash) + getAge().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.ywt.gapi.nfyy.MedCasePatInfo parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.nfyy.MedCasePatInfo 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.nfyy.MedCasePatInfo parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.nfyy.MedCasePatInfo 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.nfyy.MedCasePatInfo parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.nfyy.MedCasePatInfo parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.nfyy.MedCasePatInfo parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.nfyy.MedCasePatInfo 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.nfyy.MedCasePatInfo parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.nfyy.MedCasePatInfo 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.nfyy.MedCasePatInfo parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.nfyy.MedCasePatInfo 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.nfyy.MedCasePatInfo prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * <pre>
   *门诊病历患者信息
   * </pre>
   *
   * Protobuf type {@code com.ywt.gapi.nfyy.MedCasePatInfo}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.nfyy.MedCasePatInfo)
      com.ywt.gapi.nfyy.MedCasePatInfoOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.nfyy.NfyyProto.internal_static_com_ywt_gapi_nfyy_MedCasePatInfo_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.nfyy.NfyyProto.internal_static_com_ywt_gapi_nfyy_MedCasePatInfo_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.nfyy.MedCasePatInfo.class, com.ywt.gapi.nfyy.MedCasePatInfo.Builder.class);
    }

    // Construct using com.ywt.gapi.nfyy.MedCasePatInfo.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();
      medicareNo_ = "";

      admvisitNo_ = "";

      healthCardNo_ = "";

      addr_ = "";

      name_ = "";

      telecom_ = "";

      administrativeGender_ = "";

      ethnicGroup_ = "";

      age_ = "";

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.nfyy.NfyyProto.internal_static_com_ywt_gapi_nfyy_MedCasePatInfo_descriptor;
    }

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

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

    @java.lang.Override
    public com.ywt.gapi.nfyy.MedCasePatInfo buildPartial() {
      com.ywt.gapi.nfyy.MedCasePatInfo result = new com.ywt.gapi.nfyy.MedCasePatInfo(this);
      result.medicareNo_ = medicareNo_;
      result.admvisitNo_ = admvisitNo_;
      result.healthCardNo_ = healthCardNo_;
      result.addr_ = addr_;
      result.name_ = name_;
      result.telecom_ = telecom_;
      result.administrativeGender_ = administrativeGender_;
      result.ethnicGroup_ = ethnicGroup_;
      result.age_ = age_;
      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.nfyy.MedCasePatInfo) {
        return mergeFrom((com.ywt.gapi.nfyy.MedCasePatInfo)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.nfyy.MedCasePatInfo other) {
      if (other == com.ywt.gapi.nfyy.MedCasePatInfo.getDefaultInstance()) return this;
      if (!other.getMedicareNo().isEmpty()) {
        medicareNo_ = other.medicareNo_;
        onChanged();
      }
      if (!other.getAdmvisitNo().isEmpty()) {
        admvisitNo_ = other.admvisitNo_;
        onChanged();
      }
      if (!other.getHealthCardNo().isEmpty()) {
        healthCardNo_ = other.healthCardNo_;
        onChanged();
      }
      if (!other.getAddr().isEmpty()) {
        addr_ = other.addr_;
        onChanged();
      }
      if (!other.getName().isEmpty()) {
        name_ = other.name_;
        onChanged();
      }
      if (!other.getTelecom().isEmpty()) {
        telecom_ = other.telecom_;
        onChanged();
      }
      if (!other.getAdministrativeGender().isEmpty()) {
        administrativeGender_ = other.administrativeGender_;
        onChanged();
      }
      if (!other.getEthnicGroup().isEmpty()) {
        ethnicGroup_ = other.ethnicGroup_;
        onChanged();
      }
      if (!other.getAge().isEmpty()) {
        age_ = other.age_;
        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.nfyy.MedCasePatInfo parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.nfyy.MedCasePatInfo) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

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

    private java.lang.Object admvisitNo_ = "";
    /**
     * <pre>
     *门诊流水号
     * </pre>
     *
     * <code>string admvisitNo = 2;</code>
     * @return The admvisitNo.
     */
    public java.lang.String getAdmvisitNo() {
      java.lang.Object ref = admvisitNo_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        admvisitNo_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *门诊流水号
     * </pre>
     *
     * <code>string admvisitNo = 2;</code>
     * @return The bytes for admvisitNo.
     */
    public com.google.protobuf.ByteString
        getAdmvisitNoBytes() {
      java.lang.Object ref = admvisitNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        admvisitNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *门诊流水号
     * </pre>
     *
     * <code>string admvisitNo = 2;</code>
     * @param value The admvisitNo to set.
     * @return This builder for chaining.
     */
    public Builder setAdmvisitNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      admvisitNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *门诊流水号
     * </pre>
     *
     * <code>string admvisitNo = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearAdmvisitNo() {
      
      admvisitNo_ = getDefaultInstance().getAdmvisitNo();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *门诊流水号
     * </pre>
     *
     * <code>string admvisitNo = 2;</code>
     * @param value The bytes for admvisitNo to set.
     * @return This builder for chaining.
     */
    public Builder setAdmvisitNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      admvisitNo_ = value;
      onChanged();
      return this;
    }

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

    private java.lang.Object addr_ = "";
    /**
     * <pre>
     *地址
     * </pre>
     *
     * <code>string addr = 4;</code>
     * @return The addr.
     */
    public java.lang.String getAddr() {
      java.lang.Object ref = addr_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        addr_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *地址
     * </pre>
     *
     * <code>string addr = 4;</code>
     * @return The bytes for addr.
     */
    public com.google.protobuf.ByteString
        getAddrBytes() {
      java.lang.Object ref = addr_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        addr_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *地址
     * </pre>
     *
     * <code>string addr = 4;</code>
     * @param value The addr to set.
     * @return This builder for chaining.
     */
    public Builder setAddr(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      addr_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *地址
     * </pre>
     *
     * <code>string addr = 4;</code>
     * @return This builder for chaining.
     */
    public Builder clearAddr() {
      
      addr_ = getDefaultInstance().getAddr();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *地址
     * </pre>
     *
     * <code>string addr = 4;</code>
     * @param value The bytes for addr to set.
     * @return This builder for chaining.
     */
    public Builder setAddrBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      addr_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object name_ = "";
    /**
     * <pre>
     *姓名
     * </pre>
     *
     * <code>string name = 5;</code>
     * @return The name.
     */
    public java.lang.String getName() {
      java.lang.Object ref = name_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        name_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *姓名
     * </pre>
     *
     * <code>string name = 5;</code>
     * @return The bytes for name.
     */
    public com.google.protobuf.ByteString
        getNameBytes() {
      java.lang.Object ref = name_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        name_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *姓名
     * </pre>
     *
     * <code>string name = 5;</code>
     * @param value The name to set.
     * @return This builder for chaining.
     */
    public Builder setName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      name_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *姓名
     * </pre>
     *
     * <code>string name = 5;</code>
     * @return This builder for chaining.
     */
    public Builder clearName() {
      
      name_ = getDefaultInstance().getName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *姓名
     * </pre>
     *
     * <code>string name = 5;</code>
     * @param value The bytes for name to set.
     * @return This builder for chaining.
     */
    public Builder setNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      name_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object telecom_ = "";
    /**
     * <pre>
     *电话
     * </pre>
     *
     * <code>string telecom = 6;</code>
     * @return The telecom.
     */
    public java.lang.String getTelecom() {
      java.lang.Object ref = telecom_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        telecom_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *电话
     * </pre>
     *
     * <code>string telecom = 6;</code>
     * @return The bytes for telecom.
     */
    public com.google.protobuf.ByteString
        getTelecomBytes() {
      java.lang.Object ref = telecom_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        telecom_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *电话
     * </pre>
     *
     * <code>string telecom = 6;</code>
     * @param value The telecom to set.
     * @return This builder for chaining.
     */
    public Builder setTelecom(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      telecom_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *电话
     * </pre>
     *
     * <code>string telecom = 6;</code>
     * @return This builder for chaining.
     */
    public Builder clearTelecom() {
      
      telecom_ = getDefaultInstance().getTelecom();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *电话
     * </pre>
     *
     * <code>string telecom = 6;</code>
     * @param value The bytes for telecom to set.
     * @return This builder for chaining.
     */
    public Builder setTelecomBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      telecom_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object administrativeGender_ = "";
    /**
     * <pre>
     *性别
     * </pre>
     *
     * <code>string administrativeGender = 7;</code>
     * @return The administrativeGender.
     */
    public java.lang.String getAdministrativeGender() {
      java.lang.Object ref = administrativeGender_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        administrativeGender_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *性别
     * </pre>
     *
     * <code>string administrativeGender = 7;</code>
     * @return The bytes for administrativeGender.
     */
    public com.google.protobuf.ByteString
        getAdministrativeGenderBytes() {
      java.lang.Object ref = administrativeGender_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        administrativeGender_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *性别
     * </pre>
     *
     * <code>string administrativeGender = 7;</code>
     * @param value The administrativeGender to set.
     * @return This builder for chaining.
     */
    public Builder setAdministrativeGender(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      administrativeGender_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *性别
     * </pre>
     *
     * <code>string administrativeGender = 7;</code>
     * @return This builder for chaining.
     */
    public Builder clearAdministrativeGender() {
      
      administrativeGender_ = getDefaultInstance().getAdministrativeGender();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *性别
     * </pre>
     *
     * <code>string administrativeGender = 7;</code>
     * @param value The bytes for administrativeGender to set.
     * @return This builder for chaining.
     */
    public Builder setAdministrativeGenderBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      administrativeGender_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object ethnicGroup_ = "";
    /**
     * <pre>
     *民族
     * </pre>
     *
     * <code>string ethnicGroup = 8;</code>
     * @return The ethnicGroup.
     */
    public java.lang.String getEthnicGroup() {
      java.lang.Object ref = ethnicGroup_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        ethnicGroup_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *民族
     * </pre>
     *
     * <code>string ethnicGroup = 8;</code>
     * @return The bytes for ethnicGroup.
     */
    public com.google.protobuf.ByteString
        getEthnicGroupBytes() {
      java.lang.Object ref = ethnicGroup_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        ethnicGroup_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *民族
     * </pre>
     *
     * <code>string ethnicGroup = 8;</code>
     * @param value The ethnicGroup to set.
     * @return This builder for chaining.
     */
    public Builder setEthnicGroup(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      ethnicGroup_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *民族
     * </pre>
     *
     * <code>string ethnicGroup = 8;</code>
     * @return This builder for chaining.
     */
    public Builder clearEthnicGroup() {
      
      ethnicGroup_ = getDefaultInstance().getEthnicGroup();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *民族
     * </pre>
     *
     * <code>string ethnicGroup = 8;</code>
     * @param value The bytes for ethnicGroup to set.
     * @return This builder for chaining.
     */
    public Builder setEthnicGroupBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      ethnicGroup_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object age_ = "";
    /**
     * <pre>
     *年龄
     * </pre>
     *
     * <code>string age = 9;</code>
     * @return The age.
     */
    public java.lang.String getAge() {
      java.lang.Object ref = age_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        age_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *年龄
     * </pre>
     *
     * <code>string age = 9;</code>
     * @return The bytes for age.
     */
    public com.google.protobuf.ByteString
        getAgeBytes() {
      java.lang.Object ref = age_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        age_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *年龄
     * </pre>
     *
     * <code>string age = 9;</code>
     * @param value The age to set.
     * @return This builder for chaining.
     */
    public Builder setAge(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      age_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *年龄
     * </pre>
     *
     * <code>string age = 9;</code>
     * @return This builder for chaining.
     */
    public Builder clearAge() {
      
      age_ = getDefaultInstance().getAge();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *年龄
     * </pre>
     *
     * <code>string age = 9;</code>
     * @param value The bytes for age to set.
     * @return This builder for chaining.
     */
    public Builder setAgeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      age_ = 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.nfyy.MedCasePatInfo)
  }

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

  public static com.ywt.gapi.nfyy.MedCasePatInfo getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

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

}

