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

package com.ywt.gapi.order;

/**
 * <pre>
 *随访订单（记录）  create by daiyihua
 * </pre>
 *
 * Protobuf type {@code com.ywt.gapi.order.FollowUpOrder}
 */
public  final class FollowUpOrder extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.order.FollowUpOrder)
    FollowUpOrderOrBuilder {
  // Use FollowUpOrder.newBuilder() to construct.
  private FollowUpOrder(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private FollowUpOrder() {
    orderId_ = 0;
    patientId_ = 0;
    patientName_ = "";
    sex_ = 0;
    age_ = 0;
    followUpStatus_ = 0;
    followUpStatusStr_ = "";
    diagnosis_ = "";
    createTime_ = 0L;
  }

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

            orderId_ = input.readInt32();
            break;
          }
          case 16: {

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

            patientName_ = s;
            break;
          }
          case 32: {

            sex_ = input.readInt32();
            break;
          }
          case 40: {

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

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

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

            diagnosis_ = s;
            break;
          }
          case 72: {

            createTime_ = input.readInt64();
            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.order.OrderOuterClass.internal_static_com_ywt_gapi_order_FollowUpOrder_descriptor;
  }

  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.order.OrderOuterClass.internal_static_com_ywt_gapi_order_FollowUpOrder_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.order.FollowUpOrder.class, com.ywt.gapi.order.FollowUpOrder.Builder.class);
  }

  public static final int ORDERID_FIELD_NUMBER = 1;
  private int orderId_;
  /**
   * <pre>
   *订单ID
   * </pre>
   *
   * <code>int32 orderId = 1;</code>
   */
  public int getOrderId() {
    return orderId_;
  }

  public static final int PATIENTID_FIELD_NUMBER = 2;
  private int patientId_;
  /**
   * <pre>
   *患者ID
   * </pre>
   *
   * <code>int32 patientId = 2;</code>
   */
  public int getPatientId() {
    return patientId_;
  }

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

  public static final int AGE_FIELD_NUMBER = 5;
  private int age_;
  /**
   * <pre>
   *患者年龄
   * </pre>
   *
   * <code>int32 age = 5;</code>
   */
  public int getAge() {
    return age_;
  }

  public static final int FOLLOWUPSTATUS_FIELD_NUMBER = 6;
  private int followUpStatus_;
  /**
   * <pre>
   *订单状态
   * </pre>
   *
   * <code>int32 followUpStatus = 6;</code>
   */
  public int getFollowUpStatus() {
    return followUpStatus_;
  }

  public static final int FOLLOWUPSTATUSSTR_FIELD_NUMBER = 7;
  private volatile java.lang.Object followUpStatusStr_;
  /**
   * <pre>
   *订单状态（字符串类型）
   * </pre>
   *
   * <code>string followUpStatusStr = 7;</code>
   */
  public java.lang.String getFollowUpStatusStr() {
    java.lang.Object ref = followUpStatusStr_;
    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();
      followUpStatusStr_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *订单状态（字符串类型）
   * </pre>
   *
   * <code>string followUpStatusStr = 7;</code>
   */
  public com.google.protobuf.ByteString
      getFollowUpStatusStrBytes() {
    java.lang.Object ref = followUpStatusStr_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      followUpStatusStr_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DIAGNOSIS_FIELD_NUMBER = 8;
  private volatile java.lang.Object diagnosis_;
  /**
   * <pre>
   *诊断结果
   * </pre>
   *
   * <code>string diagnosis = 8;</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 = 8;</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 CREATETIME_FIELD_NUMBER = 9;
  private long createTime_;
  /**
   * <pre>
   *随诊时间
   * </pre>
   *
   * <code>int64 createTime = 9;</code>
   */
  public long getCreateTime() {
    return createTime_;
  }

  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 (orderId_ != 0) {
      output.writeInt32(1, orderId_);
    }
    if (patientId_ != 0) {
      output.writeInt32(2, patientId_);
    }
    if (!getPatientNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, patientName_);
    }
    if (sex_ != 0) {
      output.writeInt32(4, sex_);
    }
    if (age_ != 0) {
      output.writeInt32(5, age_);
    }
    if (followUpStatus_ != 0) {
      output.writeInt32(6, followUpStatus_);
    }
    if (!getFollowUpStatusStrBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, followUpStatusStr_);
    }
    if (!getDiagnosisBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, diagnosis_);
    }
    if (createTime_ != 0L) {
      output.writeInt64(9, createTime_);
    }
  }

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

    size = 0;
    if (orderId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(1, orderId_);
    }
    if (patientId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(2, patientId_);
    }
    if (!getPatientNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, patientName_);
    }
    if (sex_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(4, sex_);
    }
    if (age_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(5, age_);
    }
    if (followUpStatus_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(6, followUpStatus_);
    }
    if (!getFollowUpStatusStrBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, followUpStatusStr_);
    }
    if (!getDiagnosisBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, diagnosis_);
    }
    if (createTime_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(9, createTime_);
    }
    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.order.FollowUpOrder)) {
      return super.equals(obj);
    }
    com.ywt.gapi.order.FollowUpOrder other = (com.ywt.gapi.order.FollowUpOrder) obj;

    boolean result = true;
    result = result && (getOrderId()
        == other.getOrderId());
    result = result && (getPatientId()
        == other.getPatientId());
    result = result && getPatientName()
        .equals(other.getPatientName());
    result = result && (getSex()
        == other.getSex());
    result = result && (getAge()
        == other.getAge());
    result = result && (getFollowUpStatus()
        == other.getFollowUpStatus());
    result = result && getFollowUpStatusStr()
        .equals(other.getFollowUpStatusStr());
    result = result && getDiagnosis()
        .equals(other.getDiagnosis());
    result = result && (getCreateTime()
        == other.getCreateTime());
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + ORDERID_FIELD_NUMBER;
    hash = (53 * hash) + getOrderId();
    hash = (37 * hash) + PATIENTID_FIELD_NUMBER;
    hash = (53 * hash) + getPatientId();
    hash = (37 * hash) + PATIENTNAME_FIELD_NUMBER;
    hash = (53 * hash) + getPatientName().hashCode();
    hash = (37 * hash) + SEX_FIELD_NUMBER;
    hash = (53 * hash) + getSex();
    hash = (37 * hash) + AGE_FIELD_NUMBER;
    hash = (53 * hash) + getAge();
    hash = (37 * hash) + FOLLOWUPSTATUS_FIELD_NUMBER;
    hash = (53 * hash) + getFollowUpStatus();
    hash = (37 * hash) + FOLLOWUPSTATUSSTR_FIELD_NUMBER;
    hash = (53 * hash) + getFollowUpStatusStr().hashCode();
    hash = (37 * hash) + DIAGNOSIS_FIELD_NUMBER;
    hash = (53 * hash) + getDiagnosis().hashCode();
    hash = (37 * hash) + CREATETIME_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getCreateTime());
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.ywt.gapi.order.FollowUpOrder parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.order.FollowUpOrder 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.order.FollowUpOrder parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.order.FollowUpOrder 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.order.FollowUpOrder parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.order.FollowUpOrder parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.order.FollowUpOrder parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.order.FollowUpOrder 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.order.FollowUpOrder parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.order.FollowUpOrder 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.order.FollowUpOrder parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.order.FollowUpOrder 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.order.FollowUpOrder 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>
   *随访订单（记录）  create by daiyihua
   * </pre>
   *
   * Protobuf type {@code com.ywt.gapi.order.FollowUpOrder}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.order.FollowUpOrder)
      com.ywt.gapi.order.FollowUpOrderOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.order.OrderOuterClass.internal_static_com_ywt_gapi_order_FollowUpOrder_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.order.OrderOuterClass.internal_static_com_ywt_gapi_order_FollowUpOrder_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.order.FollowUpOrder.class, com.ywt.gapi.order.FollowUpOrder.Builder.class);
    }

    // Construct using com.ywt.gapi.order.FollowUpOrder.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();
      orderId_ = 0;

      patientId_ = 0;

      patientName_ = "";

      sex_ = 0;

      age_ = 0;

      followUpStatus_ = 0;

      followUpStatusStr_ = "";

      diagnosis_ = "";

      createTime_ = 0L;

      return this;
    }

    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.order.OrderOuterClass.internal_static_com_ywt_gapi_order_FollowUpOrder_descriptor;
    }

    public com.ywt.gapi.order.FollowUpOrder getDefaultInstanceForType() {
      return com.ywt.gapi.order.FollowUpOrder.getDefaultInstance();
    }

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

    public com.ywt.gapi.order.FollowUpOrder buildPartial() {
      com.ywt.gapi.order.FollowUpOrder result = new com.ywt.gapi.order.FollowUpOrder(this);
      result.orderId_ = orderId_;
      result.patientId_ = patientId_;
      result.patientName_ = patientName_;
      result.sex_ = sex_;
      result.age_ = age_;
      result.followUpStatus_ = followUpStatus_;
      result.followUpStatusStr_ = followUpStatusStr_;
      result.diagnosis_ = diagnosis_;
      result.createTime_ = createTime_;
      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.order.FollowUpOrder) {
        return mergeFrom((com.ywt.gapi.order.FollowUpOrder)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.order.FollowUpOrder other) {
      if (other == com.ywt.gapi.order.FollowUpOrder.getDefaultInstance()) return this;
      if (other.getOrderId() != 0) {
        setOrderId(other.getOrderId());
      }
      if (other.getPatientId() != 0) {
        setPatientId(other.getPatientId());
      }
      if (!other.getPatientName().isEmpty()) {
        patientName_ = other.patientName_;
        onChanged();
      }
      if (other.getSex() != 0) {
        setSex(other.getSex());
      }
      if (other.getAge() != 0) {
        setAge(other.getAge());
      }
      if (other.getFollowUpStatus() != 0) {
        setFollowUpStatus(other.getFollowUpStatus());
      }
      if (!other.getFollowUpStatusStr().isEmpty()) {
        followUpStatusStr_ = other.followUpStatusStr_;
        onChanged();
      }
      if (!other.getDiagnosis().isEmpty()) {
        diagnosis_ = other.diagnosis_;
        onChanged();
      }
      if (other.getCreateTime() != 0L) {
        setCreateTime(other.getCreateTime());
      }
      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.order.FollowUpOrder parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.order.FollowUpOrder) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private int orderId_ ;
    /**
     * <pre>
     *订单ID
     * </pre>
     *
     * <code>int32 orderId = 1;</code>
     */
    public int getOrderId() {
      return orderId_;
    }
    /**
     * <pre>
     *订单ID
     * </pre>
     *
     * <code>int32 orderId = 1;</code>
     */
    public Builder setOrderId(int value) {
      
      orderId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *订单ID
     * </pre>
     *
     * <code>int32 orderId = 1;</code>
     */
    public Builder clearOrderId() {
      
      orderId_ = 0;
      onChanged();
      return this;
    }

    private int patientId_ ;
    /**
     * <pre>
     *患者ID
     * </pre>
     *
     * <code>int32 patientId = 2;</code>
     */
    public int getPatientId() {
      return patientId_;
    }
    /**
     * <pre>
     *患者ID
     * </pre>
     *
     * <code>int32 patientId = 2;</code>
     */
    public Builder setPatientId(int value) {
      
      patientId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *患者ID
     * </pre>
     *
     * <code>int32 patientId = 2;</code>
     */
    public Builder clearPatientId() {
      
      patientId_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object patientName_ = "";
    /**
     * <pre>
     *患者姓名
     * </pre>
     *
     * <code>string patientName = 3;</code>
     */
    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 = 3;</code>
     */
    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 = 3;</code>
     */
    public Builder setPatientName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      patientName_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *患者姓名
     * </pre>
     *
     * <code>string patientName = 3;</code>
     */
    public Builder clearPatientName() {
      
      patientName_ = getDefaultInstance().getPatientName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *患者姓名
     * </pre>
     *
     * <code>string patientName = 3;</code>
     */
    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 = 4;</code>
     */
    public int getSex() {
      return sex_;
    }
    /**
     * <pre>
     *患者性别
     * </pre>
     *
     * <code>int32 sex = 4;</code>
     */
    public Builder setSex(int value) {
      
      sex_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *患者性别
     * </pre>
     *
     * <code>int32 sex = 4;</code>
     */
    public Builder clearSex() {
      
      sex_ = 0;
      onChanged();
      return this;
    }

    private int age_ ;
    /**
     * <pre>
     *患者年龄
     * </pre>
     *
     * <code>int32 age = 5;</code>
     */
    public int getAge() {
      return age_;
    }
    /**
     * <pre>
     *患者年龄
     * </pre>
     *
     * <code>int32 age = 5;</code>
     */
    public Builder setAge(int value) {
      
      age_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *患者年龄
     * </pre>
     *
     * <code>int32 age = 5;</code>
     */
    public Builder clearAge() {
      
      age_ = 0;
      onChanged();
      return this;
    }

    private int followUpStatus_ ;
    /**
     * <pre>
     *订单状态
     * </pre>
     *
     * <code>int32 followUpStatus = 6;</code>
     */
    public int getFollowUpStatus() {
      return followUpStatus_;
    }
    /**
     * <pre>
     *订单状态
     * </pre>
     *
     * <code>int32 followUpStatus = 6;</code>
     */
    public Builder setFollowUpStatus(int value) {
      
      followUpStatus_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *订单状态
     * </pre>
     *
     * <code>int32 followUpStatus = 6;</code>
     */
    public Builder clearFollowUpStatus() {
      
      followUpStatus_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object followUpStatusStr_ = "";
    /**
     * <pre>
     *订单状态（字符串类型）
     * </pre>
     *
     * <code>string followUpStatusStr = 7;</code>
     */
    public java.lang.String getFollowUpStatusStr() {
      java.lang.Object ref = followUpStatusStr_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        followUpStatusStr_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *订单状态（字符串类型）
     * </pre>
     *
     * <code>string followUpStatusStr = 7;</code>
     */
    public com.google.protobuf.ByteString
        getFollowUpStatusStrBytes() {
      java.lang.Object ref = followUpStatusStr_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        followUpStatusStr_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *订单状态（字符串类型）
     * </pre>
     *
     * <code>string followUpStatusStr = 7;</code>
     */
    public Builder setFollowUpStatusStr(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      followUpStatusStr_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *订单状态（字符串类型）
     * </pre>
     *
     * <code>string followUpStatusStr = 7;</code>
     */
    public Builder clearFollowUpStatusStr() {
      
      followUpStatusStr_ = getDefaultInstance().getFollowUpStatusStr();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *订单状态（字符串类型）
     * </pre>
     *
     * <code>string followUpStatusStr = 7;</code>
     */
    public Builder setFollowUpStatusStrBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      followUpStatusStr_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object diagnosis_ = "";
    /**
     * <pre>
     *诊断结果
     * </pre>
     *
     * <code>string diagnosis = 8;</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 = 8;</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 = 8;</code>
     */
    public Builder setDiagnosis(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      diagnosis_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *诊断结果
     * </pre>
     *
     * <code>string diagnosis = 8;</code>
     */
    public Builder clearDiagnosis() {
      
      diagnosis_ = getDefaultInstance().getDiagnosis();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *诊断结果
     * </pre>
     *
     * <code>string diagnosis = 8;</code>
     */
    public Builder setDiagnosisBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      diagnosis_ = value;
      onChanged();
      return this;
    }

    private long createTime_ ;
    /**
     * <pre>
     *随诊时间
     * </pre>
     *
     * <code>int64 createTime = 9;</code>
     */
    public long getCreateTime() {
      return createTime_;
    }
    /**
     * <pre>
     *随诊时间
     * </pre>
     *
     * <code>int64 createTime = 9;</code>
     */
    public Builder setCreateTime(long value) {
      
      createTime_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *随诊时间
     * </pre>
     *
     * <code>int64 createTime = 9;</code>
     */
    public Builder clearCreateTime() {
      
      createTime_ = 0L;
      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.order.FollowUpOrder)
  }

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

  public static com.ywt.gapi.order.FollowUpOrder getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  public com.ywt.gapi.order.FollowUpOrder getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

