// 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.TreatmentOrderDetail}
 */
public  final class TreatmentOrderDetail extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.order.TreatmentOrderDetail)
    TreatmentOrderDetailOrBuilder {
  // Use TreatmentOrderDetail.newBuilder() to construct.
  private TreatmentOrderDetail(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private TreatmentOrderDetail() {
    title_ = "";
    orderNo_ = "";
    toHospital_ = "";
    toDept_ = "";
    toDoctor_ = "";
    fromHospital_ = "";
    fromDept_ = "";
    fromDoctor_ = "";
    orderStatus_ = 0;
    orderId_ = 0;
    paymentStatus_ = 0;
    toDoctorId_ = 0;
    userId_ = 0;
    fromDoctorId_ = 0;
    patientId_ = 0;
    createTime_ = 0L;
    amount_ = 0D;
    patientName_ = "";
    sex_ = 0;
    age_ = 0;
    mobile_ = "";
    orderStatusString_ = "";
    toDoctorTitle_ = "";
    packageId_ = 0;
    extStatus_ = 0;
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
  }
  private TreatmentOrderDetail(
      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 10: {
            java.lang.String s = input.readStringRequireUtf8();

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

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

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

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

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

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

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

            fromDoctor_ = s;
            break;
          }
          case 72: {

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

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

            paymentStatus_ = input.readInt32();
            break;
          }
          case 96: {

            toDoctorId_ = input.readInt32();
            break;
          }
          case 104: {

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

            fromDoctorId_ = input.readInt32();
            break;
          }
          case 120: {

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

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

            amount_ = input.readDouble();
            break;
          }
          case 146: {
            java.lang.String s = input.readStringRequireUtf8();

            patientName_ = s;
            break;
          }
          case 152: {

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

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

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

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

            toDoctorTitle_ = s;
            break;
          }
          case 192: {

            packageId_ = input.readInt32();
            break;
          }
          case 200: {

            extStatus_ = 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_TreatmentOrderDetail_descriptor;
  }

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

  public static final int TITLE_FIELD_NUMBER = 1;
  private volatile java.lang.Object title_;
  /**
   * <code>string title = 1;</code>
   */
  public java.lang.String getTitle() {
    java.lang.Object ref = title_;
    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();
      title_ = s;
      return s;
    }
  }
  /**
   * <code>string title = 1;</code>
   */
  public com.google.protobuf.ByteString
      getTitleBytes() {
    java.lang.Object ref = title_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      title_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

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

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

  public static final int TODOCTOR_FIELD_NUMBER = 5;
  private volatile java.lang.Object toDoctor_;
  /**
   * <code>string toDoctor = 5;</code>
   */
  public java.lang.String getToDoctor() {
    java.lang.Object ref = toDoctor_;
    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();
      toDoctor_ = s;
      return s;
    }
  }
  /**
   * <code>string toDoctor = 5;</code>
   */
  public com.google.protobuf.ByteString
      getToDoctorBytes() {
    java.lang.Object ref = toDoctor_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      toDoctor_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int FROMHOSPITAL_FIELD_NUMBER = 6;
  private volatile java.lang.Object fromHospital_;
  /**
   * <code>string fromHospital = 6;</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 = 6;</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 FROMDEPT_FIELD_NUMBER = 7;
  private volatile java.lang.Object fromDept_;
  /**
   * <code>string fromDept = 7;</code>
   */
  public java.lang.String getFromDept() {
    java.lang.Object ref = fromDept_;
    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();
      fromDept_ = s;
      return s;
    }
  }
  /**
   * <code>string fromDept = 7;</code>
   */
  public com.google.protobuf.ByteString
      getFromDeptBytes() {
    java.lang.Object ref = fromDept_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      fromDept_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

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

  public static final int ORDERSTATUS_FIELD_NUMBER = 9;
  private int orderStatus_;
  /**
   * <code>int32 orderStatus = 9;</code>
   */
  public int getOrderStatus() {
    return orderStatus_;
  }

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

  public static final int PAYMENTSTATUS_FIELD_NUMBER = 11;
  private int paymentStatus_;
  /**
   * <code>int32 paymentStatus = 11;</code>
   */
  public int getPaymentStatus() {
    return paymentStatus_;
  }

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

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

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

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

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

  public static final int AMOUNT_FIELD_NUMBER = 17;
  private double amount_;
  /**
   * <code>double amount = 17;</code>
   */
  public double getAmount() {
    return amount_;
  }

  public static final int PATIENTNAME_FIELD_NUMBER = 18;
  private volatile java.lang.Object patientName_;
  /**
   * <code>string patientName = 18;</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;
    }
  }
  /**
   * <code>string patientName = 18;</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 = 19;
  private int sex_;
  /**
   * <code>int32 sex = 19;</code>
   */
  public int getSex() {
    return sex_;
  }

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

  public static final int MOBILE_FIELD_NUMBER = 21;
  private volatile java.lang.Object mobile_;
  /**
   * <code>string mobile = 21;</code>
   */
  public java.lang.String getMobile() {
    java.lang.Object ref = mobile_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      mobile_ = s;
      return s;
    }
  }
  /**
   * <code>string mobile = 21;</code>
   */
  public com.google.protobuf.ByteString
      getMobileBytes() {
    java.lang.Object ref = mobile_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      mobile_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ORDERSTATUSSTRING_FIELD_NUMBER = 22;
  private volatile java.lang.Object orderStatusString_;
  /**
   * <code>string orderStatusString = 22;</code>
   */
  public java.lang.String getOrderStatusString() {
    java.lang.Object ref = orderStatusString_;
    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();
      orderStatusString_ = s;
      return s;
    }
  }
  /**
   * <code>string orderStatusString = 22;</code>
   */
  public com.google.protobuf.ByteString
      getOrderStatusStringBytes() {
    java.lang.Object ref = orderStatusString_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      orderStatusString_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int TODOCTORTITLE_FIELD_NUMBER = 23;
  private volatile java.lang.Object toDoctorTitle_;
  /**
   * <pre>
   *被邀请医生职称
   * </pre>
   *
   * <code>string toDoctorTitle = 23;</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;
    }
  }
  /**
   * <pre>
   *被邀请医生职称
   * </pre>
   *
   * <code>string toDoctorTitle = 23;</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 PACKAGEID_FIELD_NUMBER = 24;
  private int packageId_;
  /**
   * <pre>
   *服务套餐Id
   * </pre>
   *
   * <code>int32 packageId = 24;</code>
   */
  public int getPackageId() {
    return packageId_;
  }

  public static final int EXTSTATUS_FIELD_NUMBER = 25;
  private int extStatus_;
  /**
   * <pre>
   *拓展状态位（位运算）（对orders表里面的order_status字段进行拓展）
   * </pre>
   *
   * <code>int32 extStatus = 25;</code>
   */
  public int getExtStatus() {
    return extStatus_;
  }

  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 (!getTitleBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_);
    }
    if (!getOrderNoBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, orderNo_);
    }
    if (!getToHospitalBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, toHospital_);
    }
    if (!getToDeptBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, toDept_);
    }
    if (!getToDoctorBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, toDoctor_);
    }
    if (!getFromHospitalBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, fromHospital_);
    }
    if (!getFromDeptBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, fromDept_);
    }
    if (!getFromDoctorBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, fromDoctor_);
    }
    if (orderStatus_ != 0) {
      output.writeInt32(9, orderStatus_);
    }
    if (orderId_ != 0) {
      output.writeInt32(10, orderId_);
    }
    if (paymentStatus_ != 0) {
      output.writeInt32(11, paymentStatus_);
    }
    if (toDoctorId_ != 0) {
      output.writeInt32(12, toDoctorId_);
    }
    if (userId_ != 0) {
      output.writeInt32(13, userId_);
    }
    if (fromDoctorId_ != 0) {
      output.writeInt32(14, fromDoctorId_);
    }
    if (patientId_ != 0) {
      output.writeInt32(15, patientId_);
    }
    if (createTime_ != 0L) {
      output.writeInt64(16, createTime_);
    }
    if (amount_ != 0D) {
      output.writeDouble(17, amount_);
    }
    if (!getPatientNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 18, patientName_);
    }
    if (sex_ != 0) {
      output.writeInt32(19, sex_);
    }
    if (age_ != 0) {
      output.writeInt32(20, age_);
    }
    if (!getMobileBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 21, mobile_);
    }
    if (!getOrderStatusStringBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 22, orderStatusString_);
    }
    if (!getToDoctorTitleBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 23, toDoctorTitle_);
    }
    if (packageId_ != 0) {
      output.writeInt32(24, packageId_);
    }
    if (extStatus_ != 0) {
      output.writeInt32(25, extStatus_);
    }
  }

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

    size = 0;
    if (!getTitleBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, title_);
    }
    if (!getOrderNoBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, orderNo_);
    }
    if (!getToHospitalBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, toHospital_);
    }
    if (!getToDeptBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, toDept_);
    }
    if (!getToDoctorBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, toDoctor_);
    }
    if (!getFromHospitalBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, fromHospital_);
    }
    if (!getFromDeptBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, fromDept_);
    }
    if (!getFromDoctorBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, fromDoctor_);
    }
    if (orderStatus_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(9, orderStatus_);
    }
    if (orderId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(10, orderId_);
    }
    if (paymentStatus_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(11, paymentStatus_);
    }
    if (toDoctorId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(12, toDoctorId_);
    }
    if (userId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(13, userId_);
    }
    if (fromDoctorId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(14, fromDoctorId_);
    }
    if (patientId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(15, patientId_);
    }
    if (createTime_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(16, createTime_);
    }
    if (amount_ != 0D) {
      size += com.google.protobuf.CodedOutputStream
        .computeDoubleSize(17, amount_);
    }
    if (!getPatientNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, patientName_);
    }
    if (sex_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(19, sex_);
    }
    if (age_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(20, age_);
    }
    if (!getMobileBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, mobile_);
    }
    if (!getOrderStatusStringBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, orderStatusString_);
    }
    if (!getToDoctorTitleBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, toDoctorTitle_);
    }
    if (packageId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(24, packageId_);
    }
    if (extStatus_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(25, extStatus_);
    }
    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.TreatmentOrderDetail)) {
      return super.equals(obj);
    }
    com.ywt.gapi.order.TreatmentOrderDetail other = (com.ywt.gapi.order.TreatmentOrderDetail) obj;

    boolean result = true;
    result = result && getTitle()
        .equals(other.getTitle());
    result = result && getOrderNo()
        .equals(other.getOrderNo());
    result = result && getToHospital()
        .equals(other.getToHospital());
    result = result && getToDept()
        .equals(other.getToDept());
    result = result && getToDoctor()
        .equals(other.getToDoctor());
    result = result && getFromHospital()
        .equals(other.getFromHospital());
    result = result && getFromDept()
        .equals(other.getFromDept());
    result = result && getFromDoctor()
        .equals(other.getFromDoctor());
    result = result && (getOrderStatus()
        == other.getOrderStatus());
    result = result && (getOrderId()
        == other.getOrderId());
    result = result && (getPaymentStatus()
        == other.getPaymentStatus());
    result = result && (getToDoctorId()
        == other.getToDoctorId());
    result = result && (getUserId()
        == other.getUserId());
    result = result && (getFromDoctorId()
        == other.getFromDoctorId());
    result = result && (getPatientId()
        == other.getPatientId());
    result = result && (getCreateTime()
        == other.getCreateTime());
    result = result && (
        java.lang.Double.doubleToLongBits(getAmount())
        == java.lang.Double.doubleToLongBits(
            other.getAmount()));
    result = result && getPatientName()
        .equals(other.getPatientName());
    result = result && (getSex()
        == other.getSex());
    result = result && (getAge()
        == other.getAge());
    result = result && getMobile()
        .equals(other.getMobile());
    result = result && getOrderStatusString()
        .equals(other.getOrderStatusString());
    result = result && getToDoctorTitle()
        .equals(other.getToDoctorTitle());
    result = result && (getPackageId()
        == other.getPackageId());
    result = result && (getExtStatus()
        == other.getExtStatus());
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + TITLE_FIELD_NUMBER;
    hash = (53 * hash) + getTitle().hashCode();
    hash = (37 * hash) + ORDERNO_FIELD_NUMBER;
    hash = (53 * hash) + getOrderNo().hashCode();
    hash = (37 * hash) + TOHOSPITAL_FIELD_NUMBER;
    hash = (53 * hash) + getToHospital().hashCode();
    hash = (37 * hash) + TODEPT_FIELD_NUMBER;
    hash = (53 * hash) + getToDept().hashCode();
    hash = (37 * hash) + TODOCTOR_FIELD_NUMBER;
    hash = (53 * hash) + getToDoctor().hashCode();
    hash = (37 * hash) + FROMHOSPITAL_FIELD_NUMBER;
    hash = (53 * hash) + getFromHospital().hashCode();
    hash = (37 * hash) + FROMDEPT_FIELD_NUMBER;
    hash = (53 * hash) + getFromDept().hashCode();
    hash = (37 * hash) + FROMDOCTOR_FIELD_NUMBER;
    hash = (53 * hash) + getFromDoctor().hashCode();
    hash = (37 * hash) + ORDERSTATUS_FIELD_NUMBER;
    hash = (53 * hash) + getOrderStatus();
    hash = (37 * hash) + ORDERID_FIELD_NUMBER;
    hash = (53 * hash) + getOrderId();
    hash = (37 * hash) + PAYMENTSTATUS_FIELD_NUMBER;
    hash = (53 * hash) + getPaymentStatus();
    hash = (37 * hash) + TODOCTORID_FIELD_NUMBER;
    hash = (53 * hash) + getToDoctorId();
    hash = (37 * hash) + USERID_FIELD_NUMBER;
    hash = (53 * hash) + getUserId();
    hash = (37 * hash) + FROMDOCTORID_FIELD_NUMBER;
    hash = (53 * hash) + getFromDoctorId();
    hash = (37 * hash) + PATIENTID_FIELD_NUMBER;
    hash = (53 * hash) + getPatientId();
    hash = (37 * hash) + CREATETIME_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getCreateTime());
    hash = (37 * hash) + AMOUNT_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        java.lang.Double.doubleToLongBits(getAmount()));
    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) + MOBILE_FIELD_NUMBER;
    hash = (53 * hash) + getMobile().hashCode();
    hash = (37 * hash) + ORDERSTATUSSTRING_FIELD_NUMBER;
    hash = (53 * hash) + getOrderStatusString().hashCode();
    hash = (37 * hash) + TODOCTORTITLE_FIELD_NUMBER;
    hash = (53 * hash) + getToDoctorTitle().hashCode();
    hash = (37 * hash) + PACKAGEID_FIELD_NUMBER;
    hash = (53 * hash) + getPackageId();
    hash = (37 * hash) + EXTSTATUS_FIELD_NUMBER;
    hash = (53 * hash) + getExtStatus();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

    // Construct using com.ywt.gapi.order.TreatmentOrderDetail.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();
      title_ = "";

      orderNo_ = "";

      toHospital_ = "";

      toDept_ = "";

      toDoctor_ = "";

      fromHospital_ = "";

      fromDept_ = "";

      fromDoctor_ = "";

      orderStatus_ = 0;

      orderId_ = 0;

      paymentStatus_ = 0;

      toDoctorId_ = 0;

      userId_ = 0;

      fromDoctorId_ = 0;

      patientId_ = 0;

      createTime_ = 0L;

      amount_ = 0D;

      patientName_ = "";

      sex_ = 0;

      age_ = 0;

      mobile_ = "";

      orderStatusString_ = "";

      toDoctorTitle_ = "";

      packageId_ = 0;

      extStatus_ = 0;

      return this;
    }

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

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

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

    public com.ywt.gapi.order.TreatmentOrderDetail buildPartial() {
      com.ywt.gapi.order.TreatmentOrderDetail result = new com.ywt.gapi.order.TreatmentOrderDetail(this);
      result.title_ = title_;
      result.orderNo_ = orderNo_;
      result.toHospital_ = toHospital_;
      result.toDept_ = toDept_;
      result.toDoctor_ = toDoctor_;
      result.fromHospital_ = fromHospital_;
      result.fromDept_ = fromDept_;
      result.fromDoctor_ = fromDoctor_;
      result.orderStatus_ = orderStatus_;
      result.orderId_ = orderId_;
      result.paymentStatus_ = paymentStatus_;
      result.toDoctorId_ = toDoctorId_;
      result.userId_ = userId_;
      result.fromDoctorId_ = fromDoctorId_;
      result.patientId_ = patientId_;
      result.createTime_ = createTime_;
      result.amount_ = amount_;
      result.patientName_ = patientName_;
      result.sex_ = sex_;
      result.age_ = age_;
      result.mobile_ = mobile_;
      result.orderStatusString_ = orderStatusString_;
      result.toDoctorTitle_ = toDoctorTitle_;
      result.packageId_ = packageId_;
      result.extStatus_ = extStatus_;
      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.TreatmentOrderDetail) {
        return mergeFrom((com.ywt.gapi.order.TreatmentOrderDetail)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.order.TreatmentOrderDetail other) {
      if (other == com.ywt.gapi.order.TreatmentOrderDetail.getDefaultInstance()) return this;
      if (!other.getTitle().isEmpty()) {
        title_ = other.title_;
        onChanged();
      }
      if (!other.getOrderNo().isEmpty()) {
        orderNo_ = other.orderNo_;
        onChanged();
      }
      if (!other.getToHospital().isEmpty()) {
        toHospital_ = other.toHospital_;
        onChanged();
      }
      if (!other.getToDept().isEmpty()) {
        toDept_ = other.toDept_;
        onChanged();
      }
      if (!other.getToDoctor().isEmpty()) {
        toDoctor_ = other.toDoctor_;
        onChanged();
      }
      if (!other.getFromHospital().isEmpty()) {
        fromHospital_ = other.fromHospital_;
        onChanged();
      }
      if (!other.getFromDept().isEmpty()) {
        fromDept_ = other.fromDept_;
        onChanged();
      }
      if (!other.getFromDoctor().isEmpty()) {
        fromDoctor_ = other.fromDoctor_;
        onChanged();
      }
      if (other.getOrderStatus() != 0) {
        setOrderStatus(other.getOrderStatus());
      }
      if (other.getOrderId() != 0) {
        setOrderId(other.getOrderId());
      }
      if (other.getPaymentStatus() != 0) {
        setPaymentStatus(other.getPaymentStatus());
      }
      if (other.getToDoctorId() != 0) {
        setToDoctorId(other.getToDoctorId());
      }
      if (other.getUserId() != 0) {
        setUserId(other.getUserId());
      }
      if (other.getFromDoctorId() != 0) {
        setFromDoctorId(other.getFromDoctorId());
      }
      if (other.getPatientId() != 0) {
        setPatientId(other.getPatientId());
      }
      if (other.getCreateTime() != 0L) {
        setCreateTime(other.getCreateTime());
      }
      if (other.getAmount() != 0D) {
        setAmount(other.getAmount());
      }
      if (!other.getPatientName().isEmpty()) {
        patientName_ = other.patientName_;
        onChanged();
      }
      if (other.getSex() != 0) {
        setSex(other.getSex());
      }
      if (other.getAge() != 0) {
        setAge(other.getAge());
      }
      if (!other.getMobile().isEmpty()) {
        mobile_ = other.mobile_;
        onChanged();
      }
      if (!other.getOrderStatusString().isEmpty()) {
        orderStatusString_ = other.orderStatusString_;
        onChanged();
      }
      if (!other.getToDoctorTitle().isEmpty()) {
        toDoctorTitle_ = other.toDoctorTitle_;
        onChanged();
      }
      if (other.getPackageId() != 0) {
        setPackageId(other.getPackageId());
      }
      if (other.getExtStatus() != 0) {
        setExtStatus(other.getExtStatus());
      }
      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.TreatmentOrderDetail parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.order.TreatmentOrderDetail) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private java.lang.Object title_ = "";
    /**
     * <code>string title = 1;</code>
     */
    public java.lang.String getTitle() {
      java.lang.Object ref = title_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        title_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string title = 1;</code>
     */
    public com.google.protobuf.ByteString
        getTitleBytes() {
      java.lang.Object ref = title_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        title_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string title = 1;</code>
     */
    public Builder setTitle(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      title_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string title = 1;</code>
     */
    public Builder clearTitle() {
      
      title_ = getDefaultInstance().getTitle();
      onChanged();
      return this;
    }
    /**
     * <code>string title = 1;</code>
     */
    public Builder setTitleBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      title_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object orderNo_ = "";
    /**
     * <code>string orderNo = 2;</code>
     */
    public java.lang.String getOrderNo() {
      java.lang.Object ref = orderNo_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        orderNo_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string orderNo = 2;</code>
     */
    public com.google.protobuf.ByteString
        getOrderNoBytes() {
      java.lang.Object ref = orderNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        orderNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string orderNo = 2;</code>
     */
    public Builder setOrderNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      orderNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string orderNo = 2;</code>
     */
    public Builder clearOrderNo() {
      
      orderNo_ = getDefaultInstance().getOrderNo();
      onChanged();
      return this;
    }
    /**
     * <code>string orderNo = 2;</code>
     */
    public Builder setOrderNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      orderNo_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object toHospital_ = "";
    /**
     * <code>string toHospital = 3;</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 = 3;</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 = 3;</code>
     */
    public Builder setToHospital(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      toHospital_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string toHospital = 3;</code>
     */
    public Builder clearToHospital() {
      
      toHospital_ = getDefaultInstance().getToHospital();
      onChanged();
      return this;
    }
    /**
     * <code>string toHospital = 3;</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 toDept_ = "";
    /**
     * <code>string toDept = 4;</code>
     */
    public java.lang.String getToDept() {
      java.lang.Object ref = toDept_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        toDept_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string toDept = 4;</code>
     */
    public com.google.protobuf.ByteString
        getToDeptBytes() {
      java.lang.Object ref = toDept_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        toDept_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string toDept = 4;</code>
     */
    public Builder setToDept(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      toDept_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string toDept = 4;</code>
     */
    public Builder clearToDept() {
      
      toDept_ = getDefaultInstance().getToDept();
      onChanged();
      return this;
    }
    /**
     * <code>string toDept = 4;</code>
     */
    public Builder setToDeptBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      toDept_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object toDoctor_ = "";
    /**
     * <code>string toDoctor = 5;</code>
     */
    public java.lang.String getToDoctor() {
      java.lang.Object ref = toDoctor_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        toDoctor_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string toDoctor = 5;</code>
     */
    public com.google.protobuf.ByteString
        getToDoctorBytes() {
      java.lang.Object ref = toDoctor_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        toDoctor_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string toDoctor = 5;</code>
     */
    public Builder setToDoctor(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      toDoctor_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string toDoctor = 5;</code>
     */
    public Builder clearToDoctor() {
      
      toDoctor_ = getDefaultInstance().getToDoctor();
      onChanged();
      return this;
    }
    /**
     * <code>string toDoctor = 5;</code>
     */
    public Builder setToDoctorBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      toDoctor_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object fromHospital_ = "";
    /**
     * <code>string fromHospital = 6;</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 = 6;</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 = 6;</code>
     */
    public Builder setFromHospital(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      fromHospital_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string fromHospital = 6;</code>
     */
    public Builder clearFromHospital() {
      
      fromHospital_ = getDefaultInstance().getFromHospital();
      onChanged();
      return this;
    }
    /**
     * <code>string fromHospital = 6;</code>
     */
    public Builder setFromHospitalBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      fromHospital_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object fromDept_ = "";
    /**
     * <code>string fromDept = 7;</code>
     */
    public java.lang.String getFromDept() {
      java.lang.Object ref = fromDept_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        fromDept_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string fromDept = 7;</code>
     */
    public com.google.protobuf.ByteString
        getFromDeptBytes() {
      java.lang.Object ref = fromDept_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        fromDept_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string fromDept = 7;</code>
     */
    public Builder setFromDept(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      fromDept_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string fromDept = 7;</code>
     */
    public Builder clearFromDept() {
      
      fromDept_ = getDefaultInstance().getFromDept();
      onChanged();
      return this;
    }
    /**
     * <code>string fromDept = 7;</code>
     */
    public Builder setFromDeptBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      fromDept_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object fromDoctor_ = "";
    /**
     * <code>string fromDoctor = 8;</code>
     */
    public java.lang.String getFromDoctor() {
      java.lang.Object ref = fromDoctor_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        fromDoctor_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string fromDoctor = 8;</code>
     */
    public com.google.protobuf.ByteString
        getFromDoctorBytes() {
      java.lang.Object ref = fromDoctor_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        fromDoctor_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string fromDoctor = 8;</code>
     */
    public Builder setFromDoctor(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      fromDoctor_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string fromDoctor = 8;</code>
     */
    public Builder clearFromDoctor() {
      
      fromDoctor_ = getDefaultInstance().getFromDoctor();
      onChanged();
      return this;
    }
    /**
     * <code>string fromDoctor = 8;</code>
     */
    public Builder setFromDoctorBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      fromDoctor_ = value;
      onChanged();
      return this;
    }

    private int orderStatus_ ;
    /**
     * <code>int32 orderStatus = 9;</code>
     */
    public int getOrderStatus() {
      return orderStatus_;
    }
    /**
     * <code>int32 orderStatus = 9;</code>
     */
    public Builder setOrderStatus(int value) {
      
      orderStatus_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 orderStatus = 9;</code>
     */
    public Builder clearOrderStatus() {
      
      orderStatus_ = 0;
      onChanged();
      return this;
    }

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

    private int paymentStatus_ ;
    /**
     * <code>int32 paymentStatus = 11;</code>
     */
    public int getPaymentStatus() {
      return paymentStatus_;
    }
    /**
     * <code>int32 paymentStatus = 11;</code>
     */
    public Builder setPaymentStatus(int value) {
      
      paymentStatus_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 paymentStatus = 11;</code>
     */
    public Builder clearPaymentStatus() {
      
      paymentStatus_ = 0;
      onChanged();
      return this;
    }

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

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

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

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

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

    private double amount_ ;
    /**
     * <code>double amount = 17;</code>
     */
    public double getAmount() {
      return amount_;
    }
    /**
     * <code>double amount = 17;</code>
     */
    public Builder setAmount(double value) {
      
      amount_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>double amount = 17;</code>
     */
    public Builder clearAmount() {
      
      amount_ = 0D;
      onChanged();
      return this;
    }

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

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

    private java.lang.Object mobile_ = "";
    /**
     * <code>string mobile = 21;</code>
     */
    public java.lang.String getMobile() {
      java.lang.Object ref = mobile_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        mobile_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string mobile = 21;</code>
     */
    public com.google.protobuf.ByteString
        getMobileBytes() {
      java.lang.Object ref = mobile_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        mobile_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string mobile = 21;</code>
     */
    public Builder setMobile(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      mobile_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string mobile = 21;</code>
     */
    public Builder clearMobile() {
      
      mobile_ = getDefaultInstance().getMobile();
      onChanged();
      return this;
    }
    /**
     * <code>string mobile = 21;</code>
     */
    public Builder setMobileBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      mobile_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object orderStatusString_ = "";
    /**
     * <code>string orderStatusString = 22;</code>
     */
    public java.lang.String getOrderStatusString() {
      java.lang.Object ref = orderStatusString_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        orderStatusString_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string orderStatusString = 22;</code>
     */
    public com.google.protobuf.ByteString
        getOrderStatusStringBytes() {
      java.lang.Object ref = orderStatusString_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        orderStatusString_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string orderStatusString = 22;</code>
     */
    public Builder setOrderStatusString(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      orderStatusString_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string orderStatusString = 22;</code>
     */
    public Builder clearOrderStatusString() {
      
      orderStatusString_ = getDefaultInstance().getOrderStatusString();
      onChanged();
      return this;
    }
    /**
     * <code>string orderStatusString = 22;</code>
     */
    public Builder setOrderStatusStringBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      orderStatusString_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object toDoctorTitle_ = "";
    /**
     * <pre>
     *被邀请医生职称
     * </pre>
     *
     * <code>string toDoctorTitle = 23;</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;
      }
    }
    /**
     * <pre>
     *被邀请医生职称
     * </pre>
     *
     * <code>string toDoctorTitle = 23;</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;
      }
    }
    /**
     * <pre>
     *被邀请医生职称
     * </pre>
     *
     * <code>string toDoctorTitle = 23;</code>
     */
    public Builder setToDoctorTitle(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      toDoctorTitle_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *被邀请医生职称
     * </pre>
     *
     * <code>string toDoctorTitle = 23;</code>
     */
    public Builder clearToDoctorTitle() {
      
      toDoctorTitle_ = getDefaultInstance().getToDoctorTitle();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *被邀请医生职称
     * </pre>
     *
     * <code>string toDoctorTitle = 23;</code>
     */
    public Builder setToDoctorTitleBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      toDoctorTitle_ = value;
      onChanged();
      return this;
    }

    private int packageId_ ;
    /**
     * <pre>
     *服务套餐Id
     * </pre>
     *
     * <code>int32 packageId = 24;</code>
     */
    public int getPackageId() {
      return packageId_;
    }
    /**
     * <pre>
     *服务套餐Id
     * </pre>
     *
     * <code>int32 packageId = 24;</code>
     */
    public Builder setPackageId(int value) {
      
      packageId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *服务套餐Id
     * </pre>
     *
     * <code>int32 packageId = 24;</code>
     */
    public Builder clearPackageId() {
      
      packageId_ = 0;
      onChanged();
      return this;
    }

    private int extStatus_ ;
    /**
     * <pre>
     *拓展状态位（位运算）（对orders表里面的order_status字段进行拓展）
     * </pre>
     *
     * <code>int32 extStatus = 25;</code>
     */
    public int getExtStatus() {
      return extStatus_;
    }
    /**
     * <pre>
     *拓展状态位（位运算）（对orders表里面的order_status字段进行拓展）
     * </pre>
     *
     * <code>int32 extStatus = 25;</code>
     */
    public Builder setExtStatus(int value) {
      
      extStatus_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *拓展状态位（位运算）（对orders表里面的order_status字段进行拓展）
     * </pre>
     *
     * <code>int32 extStatus = 25;</code>
     */
    public Builder clearExtStatus() {
      
      extStatus_ = 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.TreatmentOrderDetail)
  }

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

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

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

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

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

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

}

