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

package com.ywt.gapi.taihe.register;

/**
 * Protobuf type {@code com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileRequest}
 */
public final class GetHisPatientIdByUserIdAndMobileRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileRequest)
    GetHisPatientIdByUserIdAndMobileRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use GetHisPatientIdByUserIdAndMobileRequest.newBuilder() to construct.
  private GetHisPatientIdByUserIdAndMobileRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private GetHisPatientIdByUserIdAndMobileRequest() {
    mobile_ = "";
    cardNo_ = "";
    address_ = "";
    patientNo_ = "";
    name_ = "";
    cardType_ = "";
  }

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

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

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

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

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

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

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

            name_ = s;
            break;
          }
          case 56: {

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

            cardType_ = 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.taihe.register.TaiheRegisterProto.internal_static_com_ywt_gapi_taihe_register_GetHisPatientIdByUserIdAndMobileRequest_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.taihe.register.TaiheRegisterProto.internal_static_com_ywt_gapi_taihe_register_GetHisPatientIdByUserIdAndMobileRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileRequest.class, com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileRequest.Builder.class);
  }

  public static final int USERID_FIELD_NUMBER = 1;
  private int userId_;
  /**
   * <code>int32 userId = 1;</code>
   * @return The userId.
   */
  @java.lang.Override
  public int getUserId() {
    return userId_;
  }

  public static final int MOBILE_FIELD_NUMBER = 2;
  private volatile java.lang.Object mobile_;
  /**
   * <code>string mobile = 2;</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;
    }
  }
  /**
   * <code>string mobile = 2;</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;
    }
  }

  public static final int CARDNO_FIELD_NUMBER = 3;
  private volatile java.lang.Object cardNo_;
  /**
   * <code>string cardNo = 3;</code>
   * @return The cardNo.
   */
  @java.lang.Override
  public java.lang.String getCardNo() {
    java.lang.Object ref = cardNo_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      cardNo_ = s;
      return s;
    }
  }
  /**
   * <code>string cardNo = 3;</code>
   * @return The bytes for cardNo.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getCardNoBytes() {
    java.lang.Object ref = cardNo_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      cardNo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

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

  public static final int PATIENTNO_FIELD_NUMBER = 5;
  private volatile java.lang.Object patientNo_;
  /**
   * <pre>
   * 患者 id, 用于更新医生端开处方填入的身份证和地址
   * </pre>
   *
   * <code>string patientNo = 5;</code>
   * @return The patientNo.
   */
  @java.lang.Override
  public java.lang.String getPatientNo() {
    java.lang.Object ref = patientNo_;
    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();
      patientNo_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 患者 id, 用于更新医生端开处方填入的身份证和地址
   * </pre>
   *
   * <code>string patientNo = 5;</code>
   * @return The bytes for patientNo.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getPatientNoBytes() {
    java.lang.Object ref = patientNo_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      patientNo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int NAME_FIELD_NUMBER = 6;
  private volatile java.lang.Object name_;
  /**
   * <pre>
   * 患者真实姓名
   * </pre>
   *
   * <code>string name = 6;</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 = 6;</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 HOSPITALID_FIELD_NUMBER = 7;
  private int hospitalId_;
  /**
   * <code>int32 hospitalId = 7;</code>
   * @return The hospitalId.
   */
  @java.lang.Override
  public int getHospitalId() {
    return hospitalId_;
  }

  public static final int CARDTYPE_FIELD_NUMBER = 8;
  private volatile java.lang.Object cardType_;
  /**
   * <pre>
   * 卡类型，默认1, 1-居民身份证,2-居民户口簿,3-护照,4-军官证,5-驾驶证,6-老年证,7-优抚证,8-残疾证,9-港澳台身份证,10-其他
   * </pre>
   *
   * <code>string cardType = 8;</code>
   * @return The cardType.
   */
  @java.lang.Override
  public java.lang.String getCardType() {
    java.lang.Object ref = cardType_;
    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();
      cardType_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 卡类型，默认1, 1-居民身份证,2-居民户口簿,3-护照,4-军官证,5-驾驶证,6-老年证,7-优抚证,8-残疾证,9-港澳台身份证,10-其他
   * </pre>
   *
   * <code>string cardType = 8;</code>
   * @return The bytes for cardType.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getCardTypeBytes() {
    java.lang.Object ref = cardType_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      cardType_ = 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 (userId_ != 0) {
      output.writeInt32(1, userId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mobile_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, mobile_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cardNo_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, cardNo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, address_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patientNo_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, patientNo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_);
    }
    if (hospitalId_ != 0) {
      output.writeInt32(7, hospitalId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cardType_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, cardType_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (userId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(1, userId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mobile_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, mobile_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cardNo_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, cardNo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, address_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patientNo_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, patientNo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_);
    }
    if (hospitalId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(7, hospitalId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cardType_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, cardType_);
    }
    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.taihe.register.GetHisPatientIdByUserIdAndMobileRequest)) {
      return super.equals(obj);
    }
    com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileRequest other = (com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileRequest) obj;

    if (getUserId()
        != other.getUserId()) return false;
    if (!getMobile()
        .equals(other.getMobile())) return false;
    if (!getCardNo()
        .equals(other.getCardNo())) return false;
    if (!getAddress()
        .equals(other.getAddress())) return false;
    if (!getPatientNo()
        .equals(other.getPatientNo())) return false;
    if (!getName()
        .equals(other.getName())) return false;
    if (getHospitalId()
        != other.getHospitalId()) return false;
    if (!getCardType()
        .equals(other.getCardType())) 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) + USERID_FIELD_NUMBER;
    hash = (53 * hash) + getUserId();
    hash = (37 * hash) + MOBILE_FIELD_NUMBER;
    hash = (53 * hash) + getMobile().hashCode();
    hash = (37 * hash) + CARDNO_FIELD_NUMBER;
    hash = (53 * hash) + getCardNo().hashCode();
    hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
    hash = (53 * hash) + getAddress().hashCode();
    hash = (37 * hash) + PATIENTNO_FIELD_NUMBER;
    hash = (53 * hash) + getPatientNo().hashCode();
    hash = (37 * hash) + NAME_FIELD_NUMBER;
    hash = (53 * hash) + getName().hashCode();
    hash = (37 * hash) + HOSPITALID_FIELD_NUMBER;
    hash = (53 * hash) + getHospitalId();
    hash = (37 * hash) + CARDTYPE_FIELD_NUMBER;
    hash = (53 * hash) + getCardType().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * Protobuf type {@code com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileRequest}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileRequest)
      com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileRequestOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.taihe.register.TaiheRegisterProto.internal_static_com_ywt_gapi_taihe_register_GetHisPatientIdByUserIdAndMobileRequest_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.taihe.register.TaiheRegisterProto.internal_static_com_ywt_gapi_taihe_register_GetHisPatientIdByUserIdAndMobileRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileRequest.class, com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileRequest.Builder.class);
    }

    // Construct using com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileRequest.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();
      userId_ = 0;

      mobile_ = "";

      cardNo_ = "";

      address_ = "";

      patientNo_ = "";

      name_ = "";

      hospitalId_ = 0;

      cardType_ = "";

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.taihe.register.TaiheRegisterProto.internal_static_com_ywt_gapi_taihe_register_GetHisPatientIdByUserIdAndMobileRequest_descriptor;
    }

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

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

    @java.lang.Override
    public com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileRequest buildPartial() {
      com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileRequest result = new com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileRequest(this);
      result.userId_ = userId_;
      result.mobile_ = mobile_;
      result.cardNo_ = cardNo_;
      result.address_ = address_;
      result.patientNo_ = patientNo_;
      result.name_ = name_;
      result.hospitalId_ = hospitalId_;
      result.cardType_ = cardType_;
      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.taihe.register.GetHisPatientIdByUserIdAndMobileRequest) {
        return mergeFrom((com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileRequest)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileRequest other) {
      if (other == com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileRequest.getDefaultInstance()) return this;
      if (other.getUserId() != 0) {
        setUserId(other.getUserId());
      }
      if (!other.getMobile().isEmpty()) {
        mobile_ = other.mobile_;
        onChanged();
      }
      if (!other.getCardNo().isEmpty()) {
        cardNo_ = other.cardNo_;
        onChanged();
      }
      if (!other.getAddress().isEmpty()) {
        address_ = other.address_;
        onChanged();
      }
      if (!other.getPatientNo().isEmpty()) {
        patientNo_ = other.patientNo_;
        onChanged();
      }
      if (!other.getName().isEmpty()) {
        name_ = other.name_;
        onChanged();
      }
      if (other.getHospitalId() != 0) {
        setHospitalId(other.getHospitalId());
      }
      if (!other.getCardType().isEmpty()) {
        cardType_ = other.cardType_;
        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.taihe.register.GetHisPatientIdByUserIdAndMobileRequest parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileRequest) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private int userId_ ;
    /**
     * <code>int32 userId = 1;</code>
     * @return The userId.
     */
    @java.lang.Override
    public int getUserId() {
      return userId_;
    }
    /**
     * <code>int32 userId = 1;</code>
     * @param value The userId to set.
     * @return This builder for chaining.
     */
    public Builder setUserId(int value) {
      
      userId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 userId = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearUserId() {
      
      userId_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object mobile_ = "";
    /**
     * <code>string mobile = 2;</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;
      }
    }
    /**
     * <code>string mobile = 2;</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;
      }
    }
    /**
     * <code>string mobile = 2;</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;
    }
    /**
     * <code>string mobile = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearMobile() {
      
      mobile_ = getDefaultInstance().getMobile();
      onChanged();
      return this;
    }
    /**
     * <code>string mobile = 2;</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;
    }

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

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

    private java.lang.Object patientNo_ = "";
    /**
     * <pre>
     * 患者 id, 用于更新医生端开处方填入的身份证和地址
     * </pre>
     *
     * <code>string patientNo = 5;</code>
     * @return The patientNo.
     */
    public java.lang.String getPatientNo() {
      java.lang.Object ref = patientNo_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        patientNo_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 患者 id, 用于更新医生端开处方填入的身份证和地址
     * </pre>
     *
     * <code>string patientNo = 5;</code>
     * @return The bytes for patientNo.
     */
    public com.google.protobuf.ByteString
        getPatientNoBytes() {
      java.lang.Object ref = patientNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        patientNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 患者 id, 用于更新医生端开处方填入的身份证和地址
     * </pre>
     *
     * <code>string patientNo = 5;</code>
     * @param value The patientNo to set.
     * @return This builder for chaining.
     */
    public Builder setPatientNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      patientNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 患者 id, 用于更新医生端开处方填入的身份证和地址
     * </pre>
     *
     * <code>string patientNo = 5;</code>
     * @return This builder for chaining.
     */
    public Builder clearPatientNo() {
      
      patientNo_ = getDefaultInstance().getPatientNo();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 患者 id, 用于更新医生端开处方填入的身份证和地址
     * </pre>
     *
     * <code>string patientNo = 5;</code>
     * @param value The bytes for patientNo to set.
     * @return This builder for chaining.
     */
    public Builder setPatientNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      patientNo_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object name_ = "";
    /**
     * <pre>
     * 患者真实姓名
     * </pre>
     *
     * <code>string name = 6;</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 = 6;</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 = 6;</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 = 6;</code>
     * @return This builder for chaining.
     */
    public Builder clearName() {
      
      name_ = getDefaultInstance().getName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 患者真实姓名
     * </pre>
     *
     * <code>string name = 6;</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 int hospitalId_ ;
    /**
     * <code>int32 hospitalId = 7;</code>
     * @return The hospitalId.
     */
    @java.lang.Override
    public int getHospitalId() {
      return hospitalId_;
    }
    /**
     * <code>int32 hospitalId = 7;</code>
     * @param value The hospitalId to set.
     * @return This builder for chaining.
     */
    public Builder setHospitalId(int value) {
      
      hospitalId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 hospitalId = 7;</code>
     * @return This builder for chaining.
     */
    public Builder clearHospitalId() {
      
      hospitalId_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object cardType_ = "";
    /**
     * <pre>
     * 卡类型，默认1, 1-居民身份证,2-居民户口簿,3-护照,4-军官证,5-驾驶证,6-老年证,7-优抚证,8-残疾证,9-港澳台身份证,10-其他
     * </pre>
     *
     * <code>string cardType = 8;</code>
     * @return The cardType.
     */
    public java.lang.String getCardType() {
      java.lang.Object ref = cardType_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        cardType_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 卡类型，默认1, 1-居民身份证,2-居民户口簿,3-护照,4-军官证,5-驾驶证,6-老年证,7-优抚证,8-残疾证,9-港澳台身份证,10-其他
     * </pre>
     *
     * <code>string cardType = 8;</code>
     * @return The bytes for cardType.
     */
    public com.google.protobuf.ByteString
        getCardTypeBytes() {
      java.lang.Object ref = cardType_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        cardType_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 卡类型，默认1, 1-居民身份证,2-居民户口簿,3-护照,4-军官证,5-驾驶证,6-老年证,7-优抚证,8-残疾证,9-港澳台身份证,10-其他
     * </pre>
     *
     * <code>string cardType = 8;</code>
     * @param value The cardType to set.
     * @return This builder for chaining.
     */
    public Builder setCardType(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      cardType_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 卡类型，默认1, 1-居民身份证,2-居民户口簿,3-护照,4-军官证,5-驾驶证,6-老年证,7-优抚证,8-残疾证,9-港澳台身份证,10-其他
     * </pre>
     *
     * <code>string cardType = 8;</code>
     * @return This builder for chaining.
     */
    public Builder clearCardType() {
      
      cardType_ = getDefaultInstance().getCardType();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 卡类型，默认1, 1-居民身份证,2-居民户口簿,3-护照,4-军官证,5-驾驶证,6-老年证,7-优抚证,8-残疾证,9-港澳台身份证,10-其他
     * </pre>
     *
     * <code>string cardType = 8;</code>
     * @param value The bytes for cardType to set.
     * @return This builder for chaining.
     */
    public Builder setCardTypeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      cardType_ = 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.taihe.register.GetHisPatientIdByUserIdAndMobileRequest)
  }

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

  public static com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileRequest getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

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

}

