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

package com.ywt.gapi.user;

/**
 * <pre>
 *患者订单信息
 * </pre>
 *
 * Protobuf type {@code com.ywt.gapi.user.PatientOrderInfo}
 */
public  final class PatientOrderInfo extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.user.PatientOrderInfo)
    PatientOrderInfoOrBuilder {
  // Use PatientOrderInfo.newBuilder() to construct.
  private PatientOrderInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private PatientOrderInfo() {
    patientid_ = 0;
    realname_ = "";
    age_ = 0;
    sex_ = 0;
    mobile_ = "";
    doctorId_ = 0;
    userId_ = 0;
    createtime_ = 0L;
    status_ = 0;
    type_ = 0;
    diagnosis_ = "";
    idCardNo_ = "";
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
  }
  private PatientOrderInfo(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    int mutable_bitField0_ = 0;
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          default: {
            if (!input.skipField(tag)) {
              done = true;
            }
            break;
          }
          case 8: {

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

            realname_ = s;
            break;
          }
          case 24: {

            age_ = input.readInt32();
            break;
          }
          case 32: {

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

            mobile_ = s;
            break;
          }
          case 48: {

            doctorId_ = input.readInt32();
            break;
          }
          case 56: {

            userId_ = input.readInt32();
            break;
          }
          case 64: {

            createtime_ = input.readInt64();
            break;
          }
          case 72: {

            status_ = input.readInt32();
            break;
          }
          case 80: {

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

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

            idCardNo_ = s;
            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 {
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.ywt.gapi.user.DoctorOuterClass.internal_static_com_ywt_gapi_user_PatientOrderInfo_descriptor;
  }

  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.user.DoctorOuterClass.internal_static_com_ywt_gapi_user_PatientOrderInfo_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.user.PatientOrderInfo.class, com.ywt.gapi.user.PatientOrderInfo.Builder.class);
  }

  public static final int PATIENTID_FIELD_NUMBER = 1;
  private int patientid_;
  /**
   * <code>int32 patientid = 1;</code>
   */
  public int getPatientid() {
    return patientid_;
  }

  public static final int REALNAME_FIELD_NUMBER = 2;
  private volatile java.lang.Object realname_;
  /**
   * <code>string realname = 2;</code>
   */
  public java.lang.String getRealname() {
    java.lang.Object ref = realname_;
    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();
      realname_ = s;
      return s;
    }
  }
  /**
   * <code>string realname = 2;</code>
   */
  public com.google.protobuf.ByteString
      getRealnameBytes() {
    java.lang.Object ref = realname_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      realname_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int AGE_FIELD_NUMBER = 3;
  private int age_;
  /**
   * <code>int32 age = 3;</code>
   */
  public int getAge() {
    return age_;
  }

  public static final int SEX_FIELD_NUMBER = 4;
  private int sex_;
  /**
   * <code>int32 sex = 4;</code>
   */
  public int getSex() {
    return sex_;
  }

  public static final int MOBILE_FIELD_NUMBER = 5;
  private volatile java.lang.Object mobile_;
  /**
   * <code>string mobile = 5;</code>
   */
  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 = 5;</code>
   */
  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 DOCTORID_FIELD_NUMBER = 6;
  private int doctorId_;
  /**
   * <code>int32 doctorId = 6;</code>
   */
  public int getDoctorId() {
    return doctorId_;
  }

  public static final int USERID_FIELD_NUMBER = 7;
  private int userId_;
  /**
   * <code>int32 userId = 7;</code>
   */
  public int getUserId() {
    return userId_;
  }

  public static final int CREATETIME_FIELD_NUMBER = 8;
  private long createtime_;
  /**
   * <code>int64 createtime = 8;</code>
   */
  public long getCreatetime() {
    return createtime_;
  }

  public static final int STATUS_FIELD_NUMBER = 9;
  private int status_;
  /**
   * <pre>
   *0未预约，1已预约
   * </pre>
   *
   * <code>int32 status = 9;</code>
   */
  public int getStatus() {
    return status_;
  }

  public static final int TYPE_FIELD_NUMBER = 10;
  private int type_;
  /**
   * <pre>
   *订单类型
   * </pre>
   *
   * <code>int32 type = 10;</code>
   */
  public int getType() {
    return type_;
  }

  public static final int DIAGNOSIS_FIELD_NUMBER = 11;
  private volatile java.lang.Object diagnosis_;
  /**
   * <pre>
   *诊断
   * </pre>
   *
   * <code>string diagnosis = 11;</code>
   */
  public java.lang.String getDiagnosis() {
    java.lang.Object ref = diagnosis_;
    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();
      diagnosis_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *诊断
   * </pre>
   *
   * <code>string diagnosis = 11;</code>
   */
  public com.google.protobuf.ByteString
      getDiagnosisBytes() {
    java.lang.Object ref = diagnosis_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      diagnosis_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int IDCARDNO_FIELD_NUMBER = 15;
  private volatile java.lang.Object idCardNo_;
  /**
   * <pre>
   *身份证号
   * </pre>
   *
   * <code>string idCardNo = 15;</code>
   */
  public java.lang.String getIdCardNo() {
    java.lang.Object ref = idCardNo_;
    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();
      idCardNo_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *身份证号
   * </pre>
   *
   * <code>string idCardNo = 15;</code>
   */
  public com.google.protobuf.ByteString
      getIdCardNoBytes() {
    java.lang.Object ref = idCardNo_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      idCardNo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  private byte memoizedIsInitialized = -1;
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (patientid_ != 0) {
      output.writeInt32(1, patientid_);
    }
    if (!getRealnameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, realname_);
    }
    if (age_ != 0) {
      output.writeInt32(3, age_);
    }
    if (sex_ != 0) {
      output.writeInt32(4, sex_);
    }
    if (!getMobileBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, mobile_);
    }
    if (doctorId_ != 0) {
      output.writeInt32(6, doctorId_);
    }
    if (userId_ != 0) {
      output.writeInt32(7, userId_);
    }
    if (createtime_ != 0L) {
      output.writeInt64(8, createtime_);
    }
    if (status_ != 0) {
      output.writeInt32(9, status_);
    }
    if (type_ != 0) {
      output.writeInt32(10, type_);
    }
    if (!getDiagnosisBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 11, diagnosis_);
    }
    if (!getIdCardNoBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 15, idCardNo_);
    }
  }

  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (patientid_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(1, patientid_);
    }
    if (!getRealnameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, realname_);
    }
    if (age_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(3, age_);
    }
    if (sex_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(4, sex_);
    }
    if (!getMobileBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, mobile_);
    }
    if (doctorId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(6, doctorId_);
    }
    if (userId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(7, userId_);
    }
    if (createtime_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(8, createtime_);
    }
    if (status_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(9, status_);
    }
    if (type_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(10, type_);
    }
    if (!getDiagnosisBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, diagnosis_);
    }
    if (!getIdCardNoBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, idCardNo_);
    }
    memoizedSize = size;
    return size;
  }

  private static final long serialVersionUID = 0L;
  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof com.ywt.gapi.user.PatientOrderInfo)) {
      return super.equals(obj);
    }
    com.ywt.gapi.user.PatientOrderInfo other = (com.ywt.gapi.user.PatientOrderInfo) obj;

    boolean result = true;
    result = result && (getPatientid()
        == other.getPatientid());
    result = result && getRealname()
        .equals(other.getRealname());
    result = result && (getAge()
        == other.getAge());
    result = result && (getSex()
        == other.getSex());
    result = result && getMobile()
        .equals(other.getMobile());
    result = result && (getDoctorId()
        == other.getDoctorId());
    result = result && (getUserId()
        == other.getUserId());
    result = result && (getCreatetime()
        == other.getCreatetime());
    result = result && (getStatus()
        == other.getStatus());
    result = result && (getType()
        == other.getType());
    result = result && getDiagnosis()
        .equals(other.getDiagnosis());
    result = result && getIdCardNo()
        .equals(other.getIdCardNo());
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + PATIENTID_FIELD_NUMBER;
    hash = (53 * hash) + getPatientid();
    hash = (37 * hash) + REALNAME_FIELD_NUMBER;
    hash = (53 * hash) + getRealname().hashCode();
    hash = (37 * hash) + AGE_FIELD_NUMBER;
    hash = (53 * hash) + getAge();
    hash = (37 * hash) + SEX_FIELD_NUMBER;
    hash = (53 * hash) + getSex();
    hash = (37 * hash) + MOBILE_FIELD_NUMBER;
    hash = (53 * hash) + getMobile().hashCode();
    hash = (37 * hash) + DOCTORID_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorId();
    hash = (37 * hash) + USERID_FIELD_NUMBER;
    hash = (53 * hash) + getUserId();
    hash = (37 * hash) + CREATETIME_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getCreatetime());
    hash = (37 * hash) + STATUS_FIELD_NUMBER;
    hash = (53 * hash) + getStatus();
    hash = (37 * hash) + TYPE_FIELD_NUMBER;
    hash = (53 * hash) + getType();
    hash = (37 * hash) + DIAGNOSIS_FIELD_NUMBER;
    hash = (53 * hash) + getDiagnosis().hashCode();
    hash = (37 * hash) + IDCARDNO_FIELD_NUMBER;
    hash = (53 * hash) + getIdCardNo().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.ywt.gapi.user.PatientOrderInfo parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.user.PatientOrderInfo 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.user.PatientOrderInfo parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.user.PatientOrderInfo 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.user.PatientOrderInfo parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.user.PatientOrderInfo parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.user.PatientOrderInfo parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.user.PatientOrderInfo 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.user.PatientOrderInfo parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.user.PatientOrderInfo 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.user.PatientOrderInfo parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.user.PatientOrderInfo parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(com.ywt.gapi.user.PatientOrderInfo prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  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.user.PatientOrderInfo}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.user.PatientOrderInfo)
      com.ywt.gapi.user.PatientOrderInfoOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.user.DoctorOuterClass.internal_static_com_ywt_gapi_user_PatientOrderInfo_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.user.DoctorOuterClass.internal_static_com_ywt_gapi_user_PatientOrderInfo_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.user.PatientOrderInfo.class, com.ywt.gapi.user.PatientOrderInfo.Builder.class);
    }

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

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
      }
    }
    public Builder clear() {
      super.clear();
      patientid_ = 0;

      realname_ = "";

      age_ = 0;

      sex_ = 0;

      mobile_ = "";

      doctorId_ = 0;

      userId_ = 0;

      createtime_ = 0L;

      status_ = 0;

      type_ = 0;

      diagnosis_ = "";

      idCardNo_ = "";

      return this;
    }

    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.user.DoctorOuterClass.internal_static_com_ywt_gapi_user_PatientOrderInfo_descriptor;
    }

    public com.ywt.gapi.user.PatientOrderInfo getDefaultInstanceForType() {
      return com.ywt.gapi.user.PatientOrderInfo.getDefaultInstance();
    }

    public com.ywt.gapi.user.PatientOrderInfo build() {
      com.ywt.gapi.user.PatientOrderInfo result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    public com.ywt.gapi.user.PatientOrderInfo buildPartial() {
      com.ywt.gapi.user.PatientOrderInfo result = new com.ywt.gapi.user.PatientOrderInfo(this);
      result.patientid_ = patientid_;
      result.realname_ = realname_;
      result.age_ = age_;
      result.sex_ = sex_;
      result.mobile_ = mobile_;
      result.doctorId_ = doctorId_;
      result.userId_ = userId_;
      result.createtime_ = createtime_;
      result.status_ = status_;
      result.type_ = type_;
      result.diagnosis_ = diagnosis_;
      result.idCardNo_ = idCardNo_;
      onBuilt();
      return result;
    }

    public Builder clone() {
      return (Builder) super.clone();
    }
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        Object value) {
      return (Builder) super.setField(field, value);
    }
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return (Builder) super.clearField(field);
    }
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return (Builder) super.clearOneof(oneof);
    }
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, Object value) {
      return (Builder) super.setRepeatedField(field, index, value);
    }
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        Object value) {
      return (Builder) super.addRepeatedField(field, value);
    }
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.ywt.gapi.user.PatientOrderInfo) {
        return mergeFrom((com.ywt.gapi.user.PatientOrderInfo)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.user.PatientOrderInfo other) {
      if (other == com.ywt.gapi.user.PatientOrderInfo.getDefaultInstance()) return this;
      if (other.getPatientid() != 0) {
        setPatientid(other.getPatientid());
      }
      if (!other.getRealname().isEmpty()) {
        realname_ = other.realname_;
        onChanged();
      }
      if (other.getAge() != 0) {
        setAge(other.getAge());
      }
      if (other.getSex() != 0) {
        setSex(other.getSex());
      }
      if (!other.getMobile().isEmpty()) {
        mobile_ = other.mobile_;
        onChanged();
      }
      if (other.getDoctorId() != 0) {
        setDoctorId(other.getDoctorId());
      }
      if (other.getUserId() != 0) {
        setUserId(other.getUserId());
      }
      if (other.getCreatetime() != 0L) {
        setCreatetime(other.getCreatetime());
      }
      if (other.getStatus() != 0) {
        setStatus(other.getStatus());
      }
      if (other.getType() != 0) {
        setType(other.getType());
      }
      if (!other.getDiagnosis().isEmpty()) {
        diagnosis_ = other.diagnosis_;
        onChanged();
      }
      if (!other.getIdCardNo().isEmpty()) {
        idCardNo_ = other.idCardNo_;
        onChanged();
      }
      onChanged();
      return this;
    }

    public final boolean isInitialized() {
      return true;
    }

    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      com.ywt.gapi.user.PatientOrderInfo parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.user.PatientOrderInfo) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private int patientid_ ;
    /**
     * <code>int32 patientid = 1;</code>
     */
    public int getPatientid() {
      return patientid_;
    }
    /**
     * <code>int32 patientid = 1;</code>
     */
    public Builder setPatientid(int value) {
      
      patientid_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 patientid = 1;</code>
     */
    public Builder clearPatientid() {
      
      patientid_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object realname_ = "";
    /**
     * <code>string realname = 2;</code>
     */
    public java.lang.String getRealname() {
      java.lang.Object ref = realname_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        realname_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string realname = 2;</code>
     */
    public com.google.protobuf.ByteString
        getRealnameBytes() {
      java.lang.Object ref = realname_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        realname_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string realname = 2;</code>
     */
    public Builder setRealname(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      realname_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string realname = 2;</code>
     */
    public Builder clearRealname() {
      
      realname_ = getDefaultInstance().getRealname();
      onChanged();
      return this;
    }
    /**
     * <code>string realname = 2;</code>
     */
    public Builder setRealnameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      realname_ = value;
      onChanged();
      return this;
    }

    private int age_ ;
    /**
     * <code>int32 age = 3;</code>
     */
    public int getAge() {
      return age_;
    }
    /**
     * <code>int32 age = 3;</code>
     */
    public Builder setAge(int value) {
      
      age_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 age = 3;</code>
     */
    public Builder clearAge() {
      
      age_ = 0;
      onChanged();
      return this;
    }

    private int sex_ ;
    /**
     * <code>int32 sex = 4;</code>
     */
    public int getSex() {
      return sex_;
    }
    /**
     * <code>int32 sex = 4;</code>
     */
    public Builder setSex(int value) {
      
      sex_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 sex = 4;</code>
     */
    public Builder clearSex() {
      
      sex_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object mobile_ = "";
    /**
     * <code>string mobile = 5;</code>
     */
    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 = 5;</code>
     */
    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 = 5;</code>
     */
    public Builder setMobile(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      mobile_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string mobile = 5;</code>
     */
    public Builder clearMobile() {
      
      mobile_ = getDefaultInstance().getMobile();
      onChanged();
      return this;
    }
    /**
     * <code>string mobile = 5;</code>
     */
    public Builder setMobileBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      mobile_ = value;
      onChanged();
      return this;
    }

    private int doctorId_ ;
    /**
     * <code>int32 doctorId = 6;</code>
     */
    public int getDoctorId() {
      return doctorId_;
    }
    /**
     * <code>int32 doctorId = 6;</code>
     */
    public Builder setDoctorId(int value) {
      
      doctorId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 doctorId = 6;</code>
     */
    public Builder clearDoctorId() {
      
      doctorId_ = 0;
      onChanged();
      return this;
    }

    private int userId_ ;
    /**
     * <code>int32 userId = 7;</code>
     */
    public int getUserId() {
      return userId_;
    }
    /**
     * <code>int32 userId = 7;</code>
     */
    public Builder setUserId(int value) {
      
      userId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 userId = 7;</code>
     */
    public Builder clearUserId() {
      
      userId_ = 0;
      onChanged();
      return this;
    }

    private long createtime_ ;
    /**
     * <code>int64 createtime = 8;</code>
     */
    public long getCreatetime() {
      return createtime_;
    }
    /**
     * <code>int64 createtime = 8;</code>
     */
    public Builder setCreatetime(long value) {
      
      createtime_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int64 createtime = 8;</code>
     */
    public Builder clearCreatetime() {
      
      createtime_ = 0L;
      onChanged();
      return this;
    }

    private int status_ ;
    /**
     * <pre>
     *0未预约，1已预约
     * </pre>
     *
     * <code>int32 status = 9;</code>
     */
    public int getStatus() {
      return status_;
    }
    /**
     * <pre>
     *0未预约，1已预约
     * </pre>
     *
     * <code>int32 status = 9;</code>
     */
    public Builder setStatus(int value) {
      
      status_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *0未预约，1已预约
     * </pre>
     *
     * <code>int32 status = 9;</code>
     */
    public Builder clearStatus() {
      
      status_ = 0;
      onChanged();
      return this;
    }

    private int type_ ;
    /**
     * <pre>
     *订单类型
     * </pre>
     *
     * <code>int32 type = 10;</code>
     */
    public int getType() {
      return type_;
    }
    /**
     * <pre>
     *订单类型
     * </pre>
     *
     * <code>int32 type = 10;</code>
     */
    public Builder setType(int value) {
      
      type_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *订单类型
     * </pre>
     *
     * <code>int32 type = 10;</code>
     */
    public Builder clearType() {
      
      type_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object diagnosis_ = "";
    /**
     * <pre>
     *诊断
     * </pre>
     *
     * <code>string diagnosis = 11;</code>
     */
    public java.lang.String getDiagnosis() {
      java.lang.Object ref = diagnosis_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        diagnosis_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *诊断
     * </pre>
     *
     * <code>string diagnosis = 11;</code>
     */
    public com.google.protobuf.ByteString
        getDiagnosisBytes() {
      java.lang.Object ref = diagnosis_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        diagnosis_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *诊断
     * </pre>
     *
     * <code>string diagnosis = 11;</code>
     */
    public Builder setDiagnosis(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      diagnosis_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *诊断
     * </pre>
     *
     * <code>string diagnosis = 11;</code>
     */
    public Builder clearDiagnosis() {
      
      diagnosis_ = getDefaultInstance().getDiagnosis();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *诊断
     * </pre>
     *
     * <code>string diagnosis = 11;</code>
     */
    public Builder setDiagnosisBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      diagnosis_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object idCardNo_ = "";
    /**
     * <pre>
     *身份证号
     * </pre>
     *
     * <code>string idCardNo = 15;</code>
     */
    public java.lang.String getIdCardNo() {
      java.lang.Object ref = idCardNo_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        idCardNo_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *身份证号
     * </pre>
     *
     * <code>string idCardNo = 15;</code>
     */
    public com.google.protobuf.ByteString
        getIdCardNoBytes() {
      java.lang.Object ref = idCardNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        idCardNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *身份证号
     * </pre>
     *
     * <code>string idCardNo = 15;</code>
     */
    public Builder setIdCardNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      idCardNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *身份证号
     * </pre>
     *
     * <code>string idCardNo = 15;</code>
     */
    public Builder clearIdCardNo() {
      
      idCardNo_ = getDefaultInstance().getIdCardNo();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *身份证号
     * </pre>
     *
     * <code>string idCardNo = 15;</code>
     */
    public Builder setIdCardNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      idCardNo_ = value;
      onChanged();
      return this;
    }
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return this;
    }

    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return this;
    }


    // @@protoc_insertion_point(builder_scope:com.ywt.gapi.user.PatientOrderInfo)
  }

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

  public static com.ywt.gapi.user.PatientOrderInfo getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  public com.ywt.gapi.user.PatientOrderInfo getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

