// 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.SavePatientCardRequest}
 */
public final class SavePatientCardRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.nfyy.SavePatientCardRequest)
    SavePatientCardRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use SavePatientCardRequest.newBuilder() to construct.
  private SavePatientCardRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private SavePatientCardRequest() {
    patientType_ = "";
    patientName_ = "";
    birthday_ = "";
    idType_ = "";
    idNo_ = "";
    mobile_ = "";
  }

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

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

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

            patientName_ = s;
            break;
          }
          case 24: {

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

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

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

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

            mobile_ = 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_SavePatientCardRequest_descriptor;
  }

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

  public static final int PATIENTTYPE_FIELD_NUMBER = 1;
  private volatile java.lang.Object patientType_;
  /**
   * <pre>
   *患者类型
   * </pre>
   *
   * <code>string patientType = 1;</code>
   * @return The patientType.
   */
  @java.lang.Override
  public java.lang.String getPatientType() {
    java.lang.Object ref = patientType_;
    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();
      patientType_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *患者类型
   * </pre>
   *
   * <code>string patientType = 1;</code>
   * @return The bytes for patientType.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getPatientTypeBytes() {
    java.lang.Object ref = patientType_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      patientType_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PATIENTNAME_FIELD_NUMBER = 2;
  private volatile java.lang.Object patientName_;
  /**
   * <pre>
   *患者姓名
   * </pre>
   *
   * <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;
    }
  }
  /**
   * <pre>
   *患者姓名
   * </pre>
   *
   * <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 SEX_FIELD_NUMBER = 3;
  private int sex_;
  /**
   * <pre>
   *性别
   * </pre>
   *
   * <code>int32 sex = 3;</code>
   * @return The sex.
   */
  @java.lang.Override
  public int getSex() {
    return sex_;
  }

  public static final int BIRTHDAY_FIELD_NUMBER = 4;
  private volatile java.lang.Object birthday_;
  /**
   * <pre>
   *出生日期 yyyy-MM-dd
   * </pre>
   *
   * <code>string birthday = 4;</code>
   * @return The birthday.
   */
  @java.lang.Override
  public java.lang.String getBirthday() {
    java.lang.Object ref = birthday_;
    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();
      birthday_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *出生日期 yyyy-MM-dd
   * </pre>
   *
   * <code>string birthday = 4;</code>
   * @return The bytes for birthday.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getBirthdayBytes() {
    java.lang.Object ref = birthday_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      birthday_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int IDTYPE_FIELD_NUMBER = 5;
  private volatile java.lang.Object idType_;
  /**
   * <pre>
   *证件类型
   * </pre>
   *
   * <code>string idType = 5;</code>
   * @return The idType.
   */
  @java.lang.Override
  public java.lang.String getIdType() {
    java.lang.Object ref = idType_;
    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();
      idType_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *证件类型
   * </pre>
   *
   * <code>string idType = 5;</code>
   * @return The bytes for idType.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getIdTypeBytes() {
    java.lang.Object ref = idType_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      idType_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int IDNO_FIELD_NUMBER = 6;
  private volatile java.lang.Object idNo_;
  /**
   * <pre>
   *证件号
   * </pre>
   *
   * <code>string idNo = 6;</code>
   * @return The idNo.
   */
  @java.lang.Override
  public java.lang.String getIdNo() {
    java.lang.Object ref = idNo_;
    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();
      idNo_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *证件号
   * </pre>
   *
   * <code>string idNo = 6;</code>
   * @return The bytes for idNo.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getIdNoBytes() {
    java.lang.Object ref = idNo_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      idNo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int MOBILE_FIELD_NUMBER = 7;
  private volatile java.lang.Object mobile_;
  /**
   * <pre>
   *手机号(个人电话,)
   * </pre>
   *
   * <code>string mobile = 7;</code>
   * @return The mobile.
   */
  @java.lang.Override
  public java.lang.String getMobile() {
    java.lang.Object ref = mobile_;
    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();
      mobile_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *手机号(个人电话,)
   * </pre>
   *
   * <code>string mobile = 7;</code>
   * @return The bytes for mobile.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getMobileBytes() {
    java.lang.Object ref = mobile_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      mobile_ = 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(patientType_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, patientType_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patientName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, patientName_);
    }
    if (sex_ != 0) {
      output.writeInt32(3, sex_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(birthday_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, birthday_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(idType_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, idType_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(idNo_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, idNo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mobile_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, mobile_);
    }
    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(patientType_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, patientType_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patientName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, patientName_);
    }
    if (sex_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(3, sex_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(birthday_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, birthday_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(idType_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, idType_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(idNo_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, idNo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mobile_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, mobile_);
    }
    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.SavePatientCardRequest)) {
      return super.equals(obj);
    }
    com.ywt.gapi.nfyy.SavePatientCardRequest other = (com.ywt.gapi.nfyy.SavePatientCardRequest) obj;

    if (!getPatientType()
        .equals(other.getPatientType())) return false;
    if (!getPatientName()
        .equals(other.getPatientName())) return false;
    if (getSex()
        != other.getSex()) return false;
    if (!getBirthday()
        .equals(other.getBirthday())) return false;
    if (!getIdType()
        .equals(other.getIdType())) return false;
    if (!getIdNo()
        .equals(other.getIdNo())) return false;
    if (!getMobile()
        .equals(other.getMobile())) 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) + PATIENTTYPE_FIELD_NUMBER;
    hash = (53 * hash) + getPatientType().hashCode();
    hash = (37 * hash) + PATIENTNAME_FIELD_NUMBER;
    hash = (53 * hash) + getPatientName().hashCode();
    hash = (37 * hash) + SEX_FIELD_NUMBER;
    hash = (53 * hash) + getSex();
    hash = (37 * hash) + BIRTHDAY_FIELD_NUMBER;
    hash = (53 * hash) + getBirthday().hashCode();
    hash = (37 * hash) + IDTYPE_FIELD_NUMBER;
    hash = (53 * hash) + getIdType().hashCode();
    hash = (37 * hash) + IDNO_FIELD_NUMBER;
    hash = (53 * hash) + getIdNo().hashCode();
    hash = (37 * hash) + MOBILE_FIELD_NUMBER;
    hash = (53 * hash) + getMobile().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

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

      patientName_ = "";

      sex_ = 0;

      birthday_ = "";

      idType_ = "";

      idNo_ = "";

      mobile_ = "";

      return this;
    }

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

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

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

    @java.lang.Override
    public com.ywt.gapi.nfyy.SavePatientCardRequest buildPartial() {
      com.ywt.gapi.nfyy.SavePatientCardRequest result = new com.ywt.gapi.nfyy.SavePatientCardRequest(this);
      result.patientType_ = patientType_;
      result.patientName_ = patientName_;
      result.sex_ = sex_;
      result.birthday_ = birthday_;
      result.idType_ = idType_;
      result.idNo_ = idNo_;
      result.mobile_ = mobile_;
      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.SavePatientCardRequest) {
        return mergeFrom((com.ywt.gapi.nfyy.SavePatientCardRequest)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.nfyy.SavePatientCardRequest other) {
      if (other == com.ywt.gapi.nfyy.SavePatientCardRequest.getDefaultInstance()) return this;
      if (!other.getPatientType().isEmpty()) {
        patientType_ = other.patientType_;
        onChanged();
      }
      if (!other.getPatientName().isEmpty()) {
        patientName_ = other.patientName_;
        onChanged();
      }
      if (other.getSex() != 0) {
        setSex(other.getSex());
      }
      if (!other.getBirthday().isEmpty()) {
        birthday_ = other.birthday_;
        onChanged();
      }
      if (!other.getIdType().isEmpty()) {
        idType_ = other.idType_;
        onChanged();
      }
      if (!other.getIdNo().isEmpty()) {
        idNo_ = other.idNo_;
        onChanged();
      }
      if (!other.getMobile().isEmpty()) {
        mobile_ = other.mobile_;
        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.SavePatientCardRequest parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.nfyy.SavePatientCardRequest) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private java.lang.Object patientType_ = "";
    /**
     * <pre>
     *患者类型
     * </pre>
     *
     * <code>string patientType = 1;</code>
     * @return The patientType.
     */
    public java.lang.String getPatientType() {
      java.lang.Object ref = patientType_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        patientType_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *患者类型
     * </pre>
     *
     * <code>string patientType = 1;</code>
     * @return The bytes for patientType.
     */
    public com.google.protobuf.ByteString
        getPatientTypeBytes() {
      java.lang.Object ref = patientType_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        patientType_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *患者类型
     * </pre>
     *
     * <code>string patientType = 1;</code>
     * @param value The patientType to set.
     * @return This builder for chaining.
     */
    public Builder setPatientType(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      patientType_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *患者类型
     * </pre>
     *
     * <code>string patientType = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearPatientType() {
      
      patientType_ = getDefaultInstance().getPatientType();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *患者类型
     * </pre>
     *
     * <code>string patientType = 1;</code>
     * @param value The bytes for patientType to set.
     * @return This builder for chaining.
     */
    public Builder setPatientTypeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      patientType_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object patientName_ = "";
    /**
     * <pre>
     *患者姓名
     * </pre>
     *
     * <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;
      }
    }
    /**
     * <pre>
     *患者姓名
     * </pre>
     *
     * <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;
      }
    }
    /**
     * <pre>
     *患者姓名
     * </pre>
     *
     * <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;
    }
    /**
     * <pre>
     *患者姓名
     * </pre>
     *
     * <code>string patientName = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearPatientName() {
      
      patientName_ = getDefaultInstance().getPatientName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *患者姓名
     * </pre>
     *
     * <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 int sex_ ;
    /**
     * <pre>
     *性别
     * </pre>
     *
     * <code>int32 sex = 3;</code>
     * @return The sex.
     */
    @java.lang.Override
    public int getSex() {
      return sex_;
    }
    /**
     * <pre>
     *性别
     * </pre>
     *
     * <code>int32 sex = 3;</code>
     * @param value The sex to set.
     * @return This builder for chaining.
     */
    public Builder setSex(int value) {
      
      sex_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *性别
     * </pre>
     *
     * <code>int32 sex = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearSex() {
      
      sex_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object birthday_ = "";
    /**
     * <pre>
     *出生日期 yyyy-MM-dd
     * </pre>
     *
     * <code>string birthday = 4;</code>
     * @return The birthday.
     */
    public java.lang.String getBirthday() {
      java.lang.Object ref = birthday_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        birthday_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *出生日期 yyyy-MM-dd
     * </pre>
     *
     * <code>string birthday = 4;</code>
     * @return The bytes for birthday.
     */
    public com.google.protobuf.ByteString
        getBirthdayBytes() {
      java.lang.Object ref = birthday_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        birthday_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *出生日期 yyyy-MM-dd
     * </pre>
     *
     * <code>string birthday = 4;</code>
     * @param value The birthday to set.
     * @return This builder for chaining.
     */
    public Builder setBirthday(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      birthday_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *出生日期 yyyy-MM-dd
     * </pre>
     *
     * <code>string birthday = 4;</code>
     * @return This builder for chaining.
     */
    public Builder clearBirthday() {
      
      birthday_ = getDefaultInstance().getBirthday();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *出生日期 yyyy-MM-dd
     * </pre>
     *
     * <code>string birthday = 4;</code>
     * @param value The bytes for birthday to set.
     * @return This builder for chaining.
     */
    public Builder setBirthdayBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      birthday_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object idType_ = "";
    /**
     * <pre>
     *证件类型
     * </pre>
     *
     * <code>string idType = 5;</code>
     * @return The idType.
     */
    public java.lang.String getIdType() {
      java.lang.Object ref = idType_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        idType_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *证件类型
     * </pre>
     *
     * <code>string idType = 5;</code>
     * @return The bytes for idType.
     */
    public com.google.protobuf.ByteString
        getIdTypeBytes() {
      java.lang.Object ref = idType_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        idType_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *证件类型
     * </pre>
     *
     * <code>string idType = 5;</code>
     * @param value The idType to set.
     * @return This builder for chaining.
     */
    public Builder setIdType(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      idType_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *证件类型
     * </pre>
     *
     * <code>string idType = 5;</code>
     * @return This builder for chaining.
     */
    public Builder clearIdType() {
      
      idType_ = getDefaultInstance().getIdType();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *证件类型
     * </pre>
     *
     * <code>string idType = 5;</code>
     * @param value The bytes for idType to set.
     * @return This builder for chaining.
     */
    public Builder setIdTypeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      idType_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object idNo_ = "";
    /**
     * <pre>
     *证件号
     * </pre>
     *
     * <code>string idNo = 6;</code>
     * @return The idNo.
     */
    public java.lang.String getIdNo() {
      java.lang.Object ref = idNo_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        idNo_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *证件号
     * </pre>
     *
     * <code>string idNo = 6;</code>
     * @return The bytes for idNo.
     */
    public com.google.protobuf.ByteString
        getIdNoBytes() {
      java.lang.Object ref = idNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        idNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *证件号
     * </pre>
     *
     * <code>string idNo = 6;</code>
     * @param value The idNo to set.
     * @return This builder for chaining.
     */
    public Builder setIdNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      idNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *证件号
     * </pre>
     *
     * <code>string idNo = 6;</code>
     * @return This builder for chaining.
     */
    public Builder clearIdNo() {
      
      idNo_ = getDefaultInstance().getIdNo();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *证件号
     * </pre>
     *
     * <code>string idNo = 6;</code>
     * @param value The bytes for idNo to set.
     * @return This builder for chaining.
     */
    public Builder setIdNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      idNo_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object mobile_ = "";
    /**
     * <pre>
     *手机号(个人电话,)
     * </pre>
     *
     * <code>string mobile = 7;</code>
     * @return The mobile.
     */
    public java.lang.String getMobile() {
      java.lang.Object ref = mobile_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        mobile_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *手机号(个人电话,)
     * </pre>
     *
     * <code>string mobile = 7;</code>
     * @return The bytes for mobile.
     */
    public com.google.protobuf.ByteString
        getMobileBytes() {
      java.lang.Object ref = mobile_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        mobile_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *手机号(个人电话,)
     * </pre>
     *
     * <code>string mobile = 7;</code>
     * @param value The mobile to set.
     * @return This builder for chaining.
     */
    public Builder setMobile(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      mobile_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *手机号(个人电话,)
     * </pre>
     *
     * <code>string mobile = 7;</code>
     * @return This builder for chaining.
     */
    public Builder clearMobile() {
      
      mobile_ = getDefaultInstance().getMobile();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *手机号(个人电话,)
     * </pre>
     *
     * <code>string mobile = 7;</code>
     * @param value The bytes for mobile to set.
     * @return This builder for chaining.
     */
    public Builder setMobileBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      mobile_ = 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.SavePatientCardRequest)
  }

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

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

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

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

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

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

}

