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

package com.ywt.gapi.order;

/**
 * <pre>
 *远程会诊报告
 * </pre>
 *
 * Protobuf type {@code com.ywt.gapi.order.TreatmentReport}
 */
public  final class TreatmentReport extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.order.TreatmentReport)
    TreatmentReportOrBuilder {
  // Use TreatmentReport.newBuilder() to construct.
  private TreatmentReport(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private TreatmentReport() {
    id_ = 0;
    name_ = "";
    age_ = 0;
    sex_ = 0;
    fromHospital_ = "";
    fromDoctorId_ = 0;
    fromDoctorName_ = "";
    fromDoctorTitle_ = "";
    toHospital_ = "";
    toDoctorName_ = "";
    toDoctorId_ = 0;
    toDoctorTitle_ = "";
    diagnosis_ = "";
    suggestion_ = "";
    sign_ = "";
    signId_ = 0;
    createTime_ = 0L;
    patientId_ = 0;
    userId_ = 0;
    fileKey_ = "";
    status_ = 0;
    orderId_ = 0;
  }

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

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

            name_ = s;
            break;
          }
          case 24: {

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

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

            fromHospital_ = s;
            break;
          }
          case 48: {

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

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

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

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

            toDoctorName_ = s;
            break;
          }
          case 88: {

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

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

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

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

            sign_ = s;
            break;
          }
          case 128: {

            signId_ = input.readInt32();
            break;
          }
          case 136: {

            createTime_ = input.readInt64();
            break;
          }
          case 144: {

            patientId_ = input.readInt32();
            break;
          }
          case 152: {

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

            fileKey_ = s;
            break;
          }
          case 168: {

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

            orderId_ = input.readInt32();
            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_TreatmentReport_descriptor;
  }

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

  public static final int ID_FIELD_NUMBER = 1;
  private int id_;
  /**
   * <code>int32 id = 1;</code>
   */
  public int getId() {
    return id_;
  }

  public static final int NAME_FIELD_NUMBER = 2;
  private volatile java.lang.Object name_;
  /**
   * <code>string name = 2;</code>
   */
  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;
    }
  }
  /**
   * <code>string name = 2;</code>
   */
  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 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 FROMHOSPITAL_FIELD_NUMBER = 5;
  private volatile java.lang.Object fromHospital_;
  /**
   * <code>string fromHospital = 5;</code>
   */
  public java.lang.String getFromHospital() {
    java.lang.Object ref = fromHospital_;
    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();
      fromHospital_ = s;
      return s;
    }
  }
  /**
   * <code>string fromHospital = 5;</code>
   */
  public com.google.protobuf.ByteString
      getFromHospitalBytes() {
    java.lang.Object ref = fromHospital_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      fromHospital_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int FROMDOCTORID_FIELD_NUMBER = 6;
  private int fromDoctorId_;
  /**
   * <code>int32 fromDoctorId = 6;</code>
   */
  public int getFromDoctorId() {
    return fromDoctorId_;
  }

  public static final int FROMDOCTORNAME_FIELD_NUMBER = 7;
  private volatile java.lang.Object fromDoctorName_;
  /**
   * <code>string fromDoctorName = 7;</code>
   */
  public java.lang.String getFromDoctorName() {
    java.lang.Object ref = fromDoctorName_;
    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();
      fromDoctorName_ = s;
      return s;
    }
  }
  /**
   * <code>string fromDoctorName = 7;</code>
   */
  public com.google.protobuf.ByteString
      getFromDoctorNameBytes() {
    java.lang.Object ref = fromDoctorName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      fromDoctorName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int FROMDOCTORTITLE_FIELD_NUMBER = 8;
  private volatile java.lang.Object fromDoctorTitle_;
  /**
   * <code>string fromDoctorTitle = 8;</code>
   */
  public java.lang.String getFromDoctorTitle() {
    java.lang.Object ref = fromDoctorTitle_;
    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();
      fromDoctorTitle_ = s;
      return s;
    }
  }
  /**
   * <code>string fromDoctorTitle = 8;</code>
   */
  public com.google.protobuf.ByteString
      getFromDoctorTitleBytes() {
    java.lang.Object ref = fromDoctorTitle_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      fromDoctorTitle_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int TOHOSPITAL_FIELD_NUMBER = 9;
  private volatile java.lang.Object toHospital_;
  /**
   * <code>string toHospital = 9;</code>
   */
  public java.lang.String getToHospital() {
    java.lang.Object ref = toHospital_;
    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();
      toHospital_ = s;
      return s;
    }
  }
  /**
   * <code>string toHospital = 9;</code>
   */
  public com.google.protobuf.ByteString
      getToHospitalBytes() {
    java.lang.Object ref = toHospital_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      toHospital_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int TODOCTORNAME_FIELD_NUMBER = 10;
  private volatile java.lang.Object toDoctorName_;
  /**
   * <code>string toDoctorName = 10;</code>
   */
  public java.lang.String getToDoctorName() {
    java.lang.Object ref = toDoctorName_;
    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();
      toDoctorName_ = s;
      return s;
    }
  }
  /**
   * <code>string toDoctorName = 10;</code>
   */
  public com.google.protobuf.ByteString
      getToDoctorNameBytes() {
    java.lang.Object ref = toDoctorName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      toDoctorName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int TODOCTORID_FIELD_NUMBER = 11;
  private int toDoctorId_;
  /**
   * <code>int32 toDoctorId = 11;</code>
   */
  public int getToDoctorId() {
    return toDoctorId_;
  }

  public static final int TODOCTORTITLE_FIELD_NUMBER = 12;
  private volatile java.lang.Object toDoctorTitle_;
  /**
   * <code>string toDoctorTitle = 12;</code>
   */
  public java.lang.String getToDoctorTitle() {
    java.lang.Object ref = toDoctorTitle_;
    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();
      toDoctorTitle_ = s;
      return s;
    }
  }
  /**
   * <code>string toDoctorTitle = 12;</code>
   */
  public com.google.protobuf.ByteString
      getToDoctorTitleBytes() {
    java.lang.Object ref = toDoctorTitle_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      toDoctorTitle_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DIAGNOSIS_FIELD_NUMBER = 13;
  private volatile java.lang.Object diagnosis_;
  /**
   * <code>string diagnosis = 13;</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;
    }
  }
  /**
   * <code>string diagnosis = 13;</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 SUGGESTION_FIELD_NUMBER = 14;
  private volatile java.lang.Object suggestion_;
  /**
   * <code>string suggestion = 14;</code>
   */
  public java.lang.String getSuggestion() {
    java.lang.Object ref = suggestion_;
    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();
      suggestion_ = s;
      return s;
    }
  }
  /**
   * <code>string suggestion = 14;</code>
   */
  public com.google.protobuf.ByteString
      getSuggestionBytes() {
    java.lang.Object ref = suggestion_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      suggestion_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int SIGN_FIELD_NUMBER = 15;
  private volatile java.lang.Object sign_;
  /**
   * <code>string sign = 15;</code>
   */
  public java.lang.String getSign() {
    java.lang.Object ref = sign_;
    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();
      sign_ = s;
      return s;
    }
  }
  /**
   * <code>string sign = 15;</code>
   */
  public com.google.protobuf.ByteString
      getSignBytes() {
    java.lang.Object ref = sign_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      sign_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int SIGNID_FIELD_NUMBER = 16;
  private int signId_;
  /**
   * <code>int32 signId = 16;</code>
   */
  public int getSignId() {
    return signId_;
  }

  public static final int CREATETIME_FIELD_NUMBER = 17;
  private long createTime_;
  /**
   * <code>int64 createTime = 17;</code>
   */
  public long getCreateTime() {
    return createTime_;
  }

  public static final int PATIENTID_FIELD_NUMBER = 18;
  private int patientId_;
  /**
   * <code>int32 patientId = 18;</code>
   */
  public int getPatientId() {
    return patientId_;
  }

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

  public static final int FILEKEY_FIELD_NUMBER = 20;
  private volatile java.lang.Object fileKey_;
  /**
   * <code>string fileKey = 20;</code>
   */
  public java.lang.String getFileKey() {
    java.lang.Object ref = fileKey_;
    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();
      fileKey_ = s;
      return s;
    }
  }
  /**
   * <code>string fileKey = 20;</code>
   */
  public com.google.protobuf.ByteString
      getFileKeyBytes() {
    java.lang.Object ref = fileKey_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      fileKey_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int STATUS_FIELD_NUMBER = 21;
  private int status_;
  /**
   * <code>int32 status = 21;</code>
   */
  public int getStatus() {
    return status_;
  }

  public static final int ORDERID_FIELD_NUMBER = 22;
  private int orderId_;
  /**
   * <code>int32 orderId = 22;</code>
   */
  public int getOrderId() {
    return orderId_;
  }

  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 (id_ != 0) {
      output.writeInt32(1, id_);
    }
    if (!getNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
    }
    if (age_ != 0) {
      output.writeInt32(3, age_);
    }
    if (sex_ != 0) {
      output.writeInt32(4, sex_);
    }
    if (!getFromHospitalBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, fromHospital_);
    }
    if (fromDoctorId_ != 0) {
      output.writeInt32(6, fromDoctorId_);
    }
    if (!getFromDoctorNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, fromDoctorName_);
    }
    if (!getFromDoctorTitleBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, fromDoctorTitle_);
    }
    if (!getToHospitalBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 9, toHospital_);
    }
    if (!getToDoctorNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 10, toDoctorName_);
    }
    if (toDoctorId_ != 0) {
      output.writeInt32(11, toDoctorId_);
    }
    if (!getToDoctorTitleBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 12, toDoctorTitle_);
    }
    if (!getDiagnosisBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 13, diagnosis_);
    }
    if (!getSuggestionBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 14, suggestion_);
    }
    if (!getSignBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 15, sign_);
    }
    if (signId_ != 0) {
      output.writeInt32(16, signId_);
    }
    if (createTime_ != 0L) {
      output.writeInt64(17, createTime_);
    }
    if (patientId_ != 0) {
      output.writeInt32(18, patientId_);
    }
    if (userId_ != 0) {
      output.writeInt32(19, userId_);
    }
    if (!getFileKeyBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 20, fileKey_);
    }
    if (status_ != 0) {
      output.writeInt32(21, status_);
    }
    if (orderId_ != 0) {
      output.writeInt32(22, orderId_);
    }
  }

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

    size = 0;
    if (id_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(1, id_);
    }
    if (!getNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
    }
    if (age_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(3, age_);
    }
    if (sex_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(4, sex_);
    }
    if (!getFromHospitalBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, fromHospital_);
    }
    if (fromDoctorId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(6, fromDoctorId_);
    }
    if (!getFromDoctorNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, fromDoctorName_);
    }
    if (!getFromDoctorTitleBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, fromDoctorTitle_);
    }
    if (!getToHospitalBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, toHospital_);
    }
    if (!getToDoctorNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, toDoctorName_);
    }
    if (toDoctorId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(11, toDoctorId_);
    }
    if (!getToDoctorTitleBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, toDoctorTitle_);
    }
    if (!getDiagnosisBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, diagnosis_);
    }
    if (!getSuggestionBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, suggestion_);
    }
    if (!getSignBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, sign_);
    }
    if (signId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(16, signId_);
    }
    if (createTime_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(17, createTime_);
    }
    if (patientId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(18, patientId_);
    }
    if (userId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(19, userId_);
    }
    if (!getFileKeyBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, fileKey_);
    }
    if (status_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(21, status_);
    }
    if (orderId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(22, orderId_);
    }
    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.TreatmentReport)) {
      return super.equals(obj);
    }
    com.ywt.gapi.order.TreatmentReport other = (com.ywt.gapi.order.TreatmentReport) obj;

    boolean result = true;
    result = result && (getId()
        == other.getId());
    result = result && getName()
        .equals(other.getName());
    result = result && (getAge()
        == other.getAge());
    result = result && (getSex()
        == other.getSex());
    result = result && getFromHospital()
        .equals(other.getFromHospital());
    result = result && (getFromDoctorId()
        == other.getFromDoctorId());
    result = result && getFromDoctorName()
        .equals(other.getFromDoctorName());
    result = result && getFromDoctorTitle()
        .equals(other.getFromDoctorTitle());
    result = result && getToHospital()
        .equals(other.getToHospital());
    result = result && getToDoctorName()
        .equals(other.getToDoctorName());
    result = result && (getToDoctorId()
        == other.getToDoctorId());
    result = result && getToDoctorTitle()
        .equals(other.getToDoctorTitle());
    result = result && getDiagnosis()
        .equals(other.getDiagnosis());
    result = result && getSuggestion()
        .equals(other.getSuggestion());
    result = result && getSign()
        .equals(other.getSign());
    result = result && (getSignId()
        == other.getSignId());
    result = result && (getCreateTime()
        == other.getCreateTime());
    result = result && (getPatientId()
        == other.getPatientId());
    result = result && (getUserId()
        == other.getUserId());
    result = result && getFileKey()
        .equals(other.getFileKey());
    result = result && (getStatus()
        == other.getStatus());
    result = result && (getOrderId()
        == other.getOrderId());
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + ID_FIELD_NUMBER;
    hash = (53 * hash) + getId();
    hash = (37 * hash) + NAME_FIELD_NUMBER;
    hash = (53 * hash) + getName().hashCode();
    hash = (37 * hash) + AGE_FIELD_NUMBER;
    hash = (53 * hash) + getAge();
    hash = (37 * hash) + SEX_FIELD_NUMBER;
    hash = (53 * hash) + getSex();
    hash = (37 * hash) + FROMHOSPITAL_FIELD_NUMBER;
    hash = (53 * hash) + getFromHospital().hashCode();
    hash = (37 * hash) + FROMDOCTORID_FIELD_NUMBER;
    hash = (53 * hash) + getFromDoctorId();
    hash = (37 * hash) + FROMDOCTORNAME_FIELD_NUMBER;
    hash = (53 * hash) + getFromDoctorName().hashCode();
    hash = (37 * hash) + FROMDOCTORTITLE_FIELD_NUMBER;
    hash = (53 * hash) + getFromDoctorTitle().hashCode();
    hash = (37 * hash) + TOHOSPITAL_FIELD_NUMBER;
    hash = (53 * hash) + getToHospital().hashCode();
    hash = (37 * hash) + TODOCTORNAME_FIELD_NUMBER;
    hash = (53 * hash) + getToDoctorName().hashCode();
    hash = (37 * hash) + TODOCTORID_FIELD_NUMBER;
    hash = (53 * hash) + getToDoctorId();
    hash = (37 * hash) + TODOCTORTITLE_FIELD_NUMBER;
    hash = (53 * hash) + getToDoctorTitle().hashCode();
    hash = (37 * hash) + DIAGNOSIS_FIELD_NUMBER;
    hash = (53 * hash) + getDiagnosis().hashCode();
    hash = (37 * hash) + SUGGESTION_FIELD_NUMBER;
    hash = (53 * hash) + getSuggestion().hashCode();
    hash = (37 * hash) + SIGN_FIELD_NUMBER;
    hash = (53 * hash) + getSign().hashCode();
    hash = (37 * hash) + SIGNID_FIELD_NUMBER;
    hash = (53 * hash) + getSignId();
    hash = (37 * hash) + CREATETIME_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getCreateTime());
    hash = (37 * hash) + PATIENTID_FIELD_NUMBER;
    hash = (53 * hash) + getPatientId();
    hash = (37 * hash) + USERID_FIELD_NUMBER;
    hash = (53 * hash) + getUserId();
    hash = (37 * hash) + FILEKEY_FIELD_NUMBER;
    hash = (53 * hash) + getFileKey().hashCode();
    hash = (37 * hash) + STATUS_FIELD_NUMBER;
    hash = (53 * hash) + getStatus();
    hash = (37 * hash) + ORDERID_FIELD_NUMBER;
    hash = (53 * hash) + getOrderId();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

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

      name_ = "";

      age_ = 0;

      sex_ = 0;

      fromHospital_ = "";

      fromDoctorId_ = 0;

      fromDoctorName_ = "";

      fromDoctorTitle_ = "";

      toHospital_ = "";

      toDoctorName_ = "";

      toDoctorId_ = 0;

      toDoctorTitle_ = "";

      diagnosis_ = "";

      suggestion_ = "";

      sign_ = "";

      signId_ = 0;

      createTime_ = 0L;

      patientId_ = 0;

      userId_ = 0;

      fileKey_ = "";

      status_ = 0;

      orderId_ = 0;

      return this;
    }

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

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

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

    public com.ywt.gapi.order.TreatmentReport buildPartial() {
      com.ywt.gapi.order.TreatmentReport result = new com.ywt.gapi.order.TreatmentReport(this);
      result.id_ = id_;
      result.name_ = name_;
      result.age_ = age_;
      result.sex_ = sex_;
      result.fromHospital_ = fromHospital_;
      result.fromDoctorId_ = fromDoctorId_;
      result.fromDoctorName_ = fromDoctorName_;
      result.fromDoctorTitle_ = fromDoctorTitle_;
      result.toHospital_ = toHospital_;
      result.toDoctorName_ = toDoctorName_;
      result.toDoctorId_ = toDoctorId_;
      result.toDoctorTitle_ = toDoctorTitle_;
      result.diagnosis_ = diagnosis_;
      result.suggestion_ = suggestion_;
      result.sign_ = sign_;
      result.signId_ = signId_;
      result.createTime_ = createTime_;
      result.patientId_ = patientId_;
      result.userId_ = userId_;
      result.fileKey_ = fileKey_;
      result.status_ = status_;
      result.orderId_ = orderId_;
      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.TreatmentReport) {
        return mergeFrom((com.ywt.gapi.order.TreatmentReport)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.order.TreatmentReport other) {
      if (other == com.ywt.gapi.order.TreatmentReport.getDefaultInstance()) return this;
      if (other.getId() != 0) {
        setId(other.getId());
      }
      if (!other.getName().isEmpty()) {
        name_ = other.name_;
        onChanged();
      }
      if (other.getAge() != 0) {
        setAge(other.getAge());
      }
      if (other.getSex() != 0) {
        setSex(other.getSex());
      }
      if (!other.getFromHospital().isEmpty()) {
        fromHospital_ = other.fromHospital_;
        onChanged();
      }
      if (other.getFromDoctorId() != 0) {
        setFromDoctorId(other.getFromDoctorId());
      }
      if (!other.getFromDoctorName().isEmpty()) {
        fromDoctorName_ = other.fromDoctorName_;
        onChanged();
      }
      if (!other.getFromDoctorTitle().isEmpty()) {
        fromDoctorTitle_ = other.fromDoctorTitle_;
        onChanged();
      }
      if (!other.getToHospital().isEmpty()) {
        toHospital_ = other.toHospital_;
        onChanged();
      }
      if (!other.getToDoctorName().isEmpty()) {
        toDoctorName_ = other.toDoctorName_;
        onChanged();
      }
      if (other.getToDoctorId() != 0) {
        setToDoctorId(other.getToDoctorId());
      }
      if (!other.getToDoctorTitle().isEmpty()) {
        toDoctorTitle_ = other.toDoctorTitle_;
        onChanged();
      }
      if (!other.getDiagnosis().isEmpty()) {
        diagnosis_ = other.diagnosis_;
        onChanged();
      }
      if (!other.getSuggestion().isEmpty()) {
        suggestion_ = other.suggestion_;
        onChanged();
      }
      if (!other.getSign().isEmpty()) {
        sign_ = other.sign_;
        onChanged();
      }
      if (other.getSignId() != 0) {
        setSignId(other.getSignId());
      }
      if (other.getCreateTime() != 0L) {
        setCreateTime(other.getCreateTime());
      }
      if (other.getPatientId() != 0) {
        setPatientId(other.getPatientId());
      }
      if (other.getUserId() != 0) {
        setUserId(other.getUserId());
      }
      if (!other.getFileKey().isEmpty()) {
        fileKey_ = other.fileKey_;
        onChanged();
      }
      if (other.getStatus() != 0) {
        setStatus(other.getStatus());
      }
      if (other.getOrderId() != 0) {
        setOrderId(other.getOrderId());
      }
      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.TreatmentReport parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.order.TreatmentReport) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private int id_ ;
    /**
     * <code>int32 id = 1;</code>
     */
    public int getId() {
      return id_;
    }
    /**
     * <code>int32 id = 1;</code>
     */
    public Builder setId(int value) {
      
      id_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 id = 1;</code>
     */
    public Builder clearId() {
      
      id_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object name_ = "";
    /**
     * <code>string name = 2;</code>
     */
    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;
      }
    }
    /**
     * <code>string name = 2;</code>
     */
    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;
      }
    }
    /**
     * <code>string name = 2;</code>
     */
    public Builder setName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      name_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string name = 2;</code>
     */
    public Builder clearName() {
      
      name_ = getDefaultInstance().getName();
      onChanged();
      return this;
    }
    /**
     * <code>string name = 2;</code>
     */
    public Builder setNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      name_ = 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 fromHospital_ = "";
    /**
     * <code>string fromHospital = 5;</code>
     */
    public java.lang.String getFromHospital() {
      java.lang.Object ref = fromHospital_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        fromHospital_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string fromHospital = 5;</code>
     */
    public com.google.protobuf.ByteString
        getFromHospitalBytes() {
      java.lang.Object ref = fromHospital_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        fromHospital_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string fromHospital = 5;</code>
     */
    public Builder setFromHospital(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      fromHospital_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string fromHospital = 5;</code>
     */
    public Builder clearFromHospital() {
      
      fromHospital_ = getDefaultInstance().getFromHospital();
      onChanged();
      return this;
    }
    /**
     * <code>string fromHospital = 5;</code>
     */
    public Builder setFromHospitalBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      fromHospital_ = value;
      onChanged();
      return this;
    }

    private int fromDoctorId_ ;
    /**
     * <code>int32 fromDoctorId = 6;</code>
     */
    public int getFromDoctorId() {
      return fromDoctorId_;
    }
    /**
     * <code>int32 fromDoctorId = 6;</code>
     */
    public Builder setFromDoctorId(int value) {
      
      fromDoctorId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 fromDoctorId = 6;</code>
     */
    public Builder clearFromDoctorId() {
      
      fromDoctorId_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object fromDoctorName_ = "";
    /**
     * <code>string fromDoctorName = 7;</code>
     */
    public java.lang.String getFromDoctorName() {
      java.lang.Object ref = fromDoctorName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        fromDoctorName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string fromDoctorName = 7;</code>
     */
    public com.google.protobuf.ByteString
        getFromDoctorNameBytes() {
      java.lang.Object ref = fromDoctorName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        fromDoctorName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string fromDoctorName = 7;</code>
     */
    public Builder setFromDoctorName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      fromDoctorName_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string fromDoctorName = 7;</code>
     */
    public Builder clearFromDoctorName() {
      
      fromDoctorName_ = getDefaultInstance().getFromDoctorName();
      onChanged();
      return this;
    }
    /**
     * <code>string fromDoctorName = 7;</code>
     */
    public Builder setFromDoctorNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      fromDoctorName_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object fromDoctorTitle_ = "";
    /**
     * <code>string fromDoctorTitle = 8;</code>
     */
    public java.lang.String getFromDoctorTitle() {
      java.lang.Object ref = fromDoctorTitle_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        fromDoctorTitle_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string fromDoctorTitle = 8;</code>
     */
    public com.google.protobuf.ByteString
        getFromDoctorTitleBytes() {
      java.lang.Object ref = fromDoctorTitle_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        fromDoctorTitle_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string fromDoctorTitle = 8;</code>
     */
    public Builder setFromDoctorTitle(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      fromDoctorTitle_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string fromDoctorTitle = 8;</code>
     */
    public Builder clearFromDoctorTitle() {
      
      fromDoctorTitle_ = getDefaultInstance().getFromDoctorTitle();
      onChanged();
      return this;
    }
    /**
     * <code>string fromDoctorTitle = 8;</code>
     */
    public Builder setFromDoctorTitleBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      fromDoctorTitle_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object toHospital_ = "";
    /**
     * <code>string toHospital = 9;</code>
     */
    public java.lang.String getToHospital() {
      java.lang.Object ref = toHospital_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        toHospital_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string toHospital = 9;</code>
     */
    public com.google.protobuf.ByteString
        getToHospitalBytes() {
      java.lang.Object ref = toHospital_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        toHospital_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string toHospital = 9;</code>
     */
    public Builder setToHospital(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      toHospital_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string toHospital = 9;</code>
     */
    public Builder clearToHospital() {
      
      toHospital_ = getDefaultInstance().getToHospital();
      onChanged();
      return this;
    }
    /**
     * <code>string toHospital = 9;</code>
     */
    public Builder setToHospitalBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      toHospital_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object toDoctorName_ = "";
    /**
     * <code>string toDoctorName = 10;</code>
     */
    public java.lang.String getToDoctorName() {
      java.lang.Object ref = toDoctorName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        toDoctorName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string toDoctorName = 10;</code>
     */
    public com.google.protobuf.ByteString
        getToDoctorNameBytes() {
      java.lang.Object ref = toDoctorName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        toDoctorName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string toDoctorName = 10;</code>
     */
    public Builder setToDoctorName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      toDoctorName_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string toDoctorName = 10;</code>
     */
    public Builder clearToDoctorName() {
      
      toDoctorName_ = getDefaultInstance().getToDoctorName();
      onChanged();
      return this;
    }
    /**
     * <code>string toDoctorName = 10;</code>
     */
    public Builder setToDoctorNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      toDoctorName_ = value;
      onChanged();
      return this;
    }

    private int toDoctorId_ ;
    /**
     * <code>int32 toDoctorId = 11;</code>
     */
    public int getToDoctorId() {
      return toDoctorId_;
    }
    /**
     * <code>int32 toDoctorId = 11;</code>
     */
    public Builder setToDoctorId(int value) {
      
      toDoctorId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 toDoctorId = 11;</code>
     */
    public Builder clearToDoctorId() {
      
      toDoctorId_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object toDoctorTitle_ = "";
    /**
     * <code>string toDoctorTitle = 12;</code>
     */
    public java.lang.String getToDoctorTitle() {
      java.lang.Object ref = toDoctorTitle_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        toDoctorTitle_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string toDoctorTitle = 12;</code>
     */
    public com.google.protobuf.ByteString
        getToDoctorTitleBytes() {
      java.lang.Object ref = toDoctorTitle_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        toDoctorTitle_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string toDoctorTitle = 12;</code>
     */
    public Builder setToDoctorTitle(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      toDoctorTitle_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string toDoctorTitle = 12;</code>
     */
    public Builder clearToDoctorTitle() {
      
      toDoctorTitle_ = getDefaultInstance().getToDoctorTitle();
      onChanged();
      return this;
    }
    /**
     * <code>string toDoctorTitle = 12;</code>
     */
    public Builder setToDoctorTitleBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      toDoctorTitle_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object diagnosis_ = "";
    /**
     * <code>string diagnosis = 13;</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;
      }
    }
    /**
     * <code>string diagnosis = 13;</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;
      }
    }
    /**
     * <code>string diagnosis = 13;</code>
     */
    public Builder setDiagnosis(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      diagnosis_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string diagnosis = 13;</code>
     */
    public Builder clearDiagnosis() {
      
      diagnosis_ = getDefaultInstance().getDiagnosis();
      onChanged();
      return this;
    }
    /**
     * <code>string diagnosis = 13;</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 suggestion_ = "";
    /**
     * <code>string suggestion = 14;</code>
     */
    public java.lang.String getSuggestion() {
      java.lang.Object ref = suggestion_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        suggestion_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string suggestion = 14;</code>
     */
    public com.google.protobuf.ByteString
        getSuggestionBytes() {
      java.lang.Object ref = suggestion_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        suggestion_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string suggestion = 14;</code>
     */
    public Builder setSuggestion(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      suggestion_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string suggestion = 14;</code>
     */
    public Builder clearSuggestion() {
      
      suggestion_ = getDefaultInstance().getSuggestion();
      onChanged();
      return this;
    }
    /**
     * <code>string suggestion = 14;</code>
     */
    public Builder setSuggestionBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      suggestion_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object sign_ = "";
    /**
     * <code>string sign = 15;</code>
     */
    public java.lang.String getSign() {
      java.lang.Object ref = sign_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        sign_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string sign = 15;</code>
     */
    public com.google.protobuf.ByteString
        getSignBytes() {
      java.lang.Object ref = sign_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        sign_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string sign = 15;</code>
     */
    public Builder setSign(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      sign_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string sign = 15;</code>
     */
    public Builder clearSign() {
      
      sign_ = getDefaultInstance().getSign();
      onChanged();
      return this;
    }
    /**
     * <code>string sign = 15;</code>
     */
    public Builder setSignBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      sign_ = value;
      onChanged();
      return this;
    }

    private int signId_ ;
    /**
     * <code>int32 signId = 16;</code>
     */
    public int getSignId() {
      return signId_;
    }
    /**
     * <code>int32 signId = 16;</code>
     */
    public Builder setSignId(int value) {
      
      signId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 signId = 16;</code>
     */
    public Builder clearSignId() {
      
      signId_ = 0;
      onChanged();
      return this;
    }

    private long createTime_ ;
    /**
     * <code>int64 createTime = 17;</code>
     */
    public long getCreateTime() {
      return createTime_;
    }
    /**
     * <code>int64 createTime = 17;</code>
     */
    public Builder setCreateTime(long value) {
      
      createTime_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int64 createTime = 17;</code>
     */
    public Builder clearCreateTime() {
      
      createTime_ = 0L;
      onChanged();
      return this;
    }

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

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

    private java.lang.Object fileKey_ = "";
    /**
     * <code>string fileKey = 20;</code>
     */
    public java.lang.String getFileKey() {
      java.lang.Object ref = fileKey_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        fileKey_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string fileKey = 20;</code>
     */
    public com.google.protobuf.ByteString
        getFileKeyBytes() {
      java.lang.Object ref = fileKey_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        fileKey_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string fileKey = 20;</code>
     */
    public Builder setFileKey(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      fileKey_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string fileKey = 20;</code>
     */
    public Builder clearFileKey() {
      
      fileKey_ = getDefaultInstance().getFileKey();
      onChanged();
      return this;
    }
    /**
     * <code>string fileKey = 20;</code>
     */
    public Builder setFileKeyBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      fileKey_ = value;
      onChanged();
      return this;
    }

    private int status_ ;
    /**
     * <code>int32 status = 21;</code>
     */
    public int getStatus() {
      return status_;
    }
    /**
     * <code>int32 status = 21;</code>
     */
    public Builder setStatus(int value) {
      
      status_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 status = 21;</code>
     */
    public Builder clearStatus() {
      
      status_ = 0;
      onChanged();
      return this;
    }

    private int orderId_ ;
    /**
     * <code>int32 orderId = 22;</code>
     */
    public int getOrderId() {
      return orderId_;
    }
    /**
     * <code>int32 orderId = 22;</code>
     */
    public Builder setOrderId(int value) {
      
      orderId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 orderId = 22;</code>
     */
    public Builder clearOrderId() {
      
      orderId_ = 0;
      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.TreatmentReport)
  }

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

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

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

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

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

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

}

