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

package com.ywt.gapi.user;

/**
 * <pre>
 *咨询订单详情  create by daiyihua
 * </pre>
 *
 * Protobuf type {@code com.ywt.gapi.user.ConsultOrderDetail}
 */
public  final class ConsultOrderDetail extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.user.ConsultOrderDetail)
    ConsultOrderDetailOrBuilder {
  // Use ConsultOrderDetail.newBuilder() to construct.
  private ConsultOrderDetail(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private ConsultOrderDetail() {
    patientName_ = "";
    patientSex_ = 0;
    patientAge_ = 0;
    patientMobile_ = "";
    amount_ = 0;
    status_ = 0;
    statusStr_ = "";
    consultId_ = 0;
    createTime_ = 0L;
    orderId_ = 0;
  }

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

            patientName_ = s;
            break;
          }
          case 16: {

            patientSex_ = input.readInt32();
            break;
          }
          case 24: {

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

            patientMobile_ = s;
            break;
          }
          case 40: {

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

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

            statusStr_ = s;
            break;
          }
          case 64: {

            consultId_ = input.readInt32();
            break;
          }
          case 72: {

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

            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.user.DoctorOuterClass.internal_static_com_ywt_gapi_user_ConsultOrderDetail_descriptor;
  }

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

  public static final int PATIENTNAME_FIELD_NUMBER = 1;
  private volatile java.lang.Object patientName_;
  /**
   * <pre>
   *患者姓名
   * </pre>
   *
   * <code>string patientName = 1;</code>
   */
  public java.lang.String getPatientName() {
    java.lang.Object ref = patientName_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      patientName_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *患者姓名
   * </pre>
   *
   * <code>string patientName = 1;</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 PATIENTSEX_FIELD_NUMBER = 2;
  private int patientSex_;
  /**
   * <pre>
   *患者性别
   * </pre>
   *
   * <code>int32 patientSex = 2;</code>
   */
  public int getPatientSex() {
    return patientSex_;
  }

  public static final int PATIENTAGE_FIELD_NUMBER = 3;
  private int patientAge_;
  /**
   * <pre>
   *患者年龄
   * </pre>
   *
   * <code>int32 patientAge = 3;</code>
   */
  public int getPatientAge() {
    return patientAge_;
  }

  public static final int PATIENTMOBILE_FIELD_NUMBER = 4;
  private volatile java.lang.Object patientMobile_;
  /**
   * <pre>
   *患者手机号
   * </pre>
   *
   * <code>string patientMobile = 4;</code>
   */
  public java.lang.String getPatientMobile() {
    java.lang.Object ref = patientMobile_;
    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();
      patientMobile_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *患者手机号
   * </pre>
   *
   * <code>string patientMobile = 4;</code>
   */
  public com.google.protobuf.ByteString
      getPatientMobileBytes() {
    java.lang.Object ref = patientMobile_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      patientMobile_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int AMOUNT_FIELD_NUMBER = 5;
  private int amount_;
  /**
   * <pre>
   *咨询费用
   * </pre>
   *
   * <code>int32 amount = 5;</code>
   */
  public int getAmount() {
    return amount_;
  }

  public static final int STATUS_FIELD_NUMBER = 6;
  private int status_;
  /**
   * <pre>
   *预约状态
   * </pre>
   *
   * <code>int32 status = 6;</code>
   */
  public int getStatus() {
    return status_;
  }

  public static final int STATUSSTR_FIELD_NUMBER = 7;
  private volatile java.lang.Object statusStr_;
  /**
   * <pre>
   *预约状态
   * </pre>
   *
   * <code>string statusStr = 7;</code>
   */
  public java.lang.String getStatusStr() {
    java.lang.Object ref = statusStr_;
    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();
      statusStr_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *预约状态
   * </pre>
   *
   * <code>string statusStr = 7;</code>
   */
  public com.google.protobuf.ByteString
      getStatusStrBytes() {
    java.lang.Object ref = statusStr_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      statusStr_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int CONSULTID_FIELD_NUMBER = 8;
  private int consultId_;
  /**
   * <pre>
   * 问诊订单ID
   * </pre>
   *
   * <code>int32 consultId = 8;</code>
   */
  public int getConsultId() {
    return consultId_;
  }

  public static final int CREATETIME_FIELD_NUMBER = 9;
  private long createTime_;
  /**
   * <pre>
   *下单时间
   * </pre>
   *
   * <code>int64 createTime = 9;</code>
   */
  public long getCreateTime() {
    return createTime_;
  }

  public static final int ORDERID_FIELD_NUMBER = 10;
  private int orderId_;
  /**
   * <pre>
   *订单ID
   * </pre>
   *
   * <code>int32 orderId = 10;</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 (!getPatientNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, patientName_);
    }
    if (patientSex_ != 0) {
      output.writeInt32(2, patientSex_);
    }
    if (patientAge_ != 0) {
      output.writeInt32(3, patientAge_);
    }
    if (!getPatientMobileBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, patientMobile_);
    }
    if (amount_ != 0) {
      output.writeInt32(5, amount_);
    }
    if (status_ != 0) {
      output.writeInt32(6, status_);
    }
    if (!getStatusStrBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, statusStr_);
    }
    if (consultId_ != 0) {
      output.writeInt32(8, consultId_);
    }
    if (createTime_ != 0L) {
      output.writeInt64(9, createTime_);
    }
    if (orderId_ != 0) {
      output.writeInt32(10, orderId_);
    }
  }

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

    size = 0;
    if (!getPatientNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, patientName_);
    }
    if (patientSex_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(2, patientSex_);
    }
    if (patientAge_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(3, patientAge_);
    }
    if (!getPatientMobileBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, patientMobile_);
    }
    if (amount_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(5, amount_);
    }
    if (status_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(6, status_);
    }
    if (!getStatusStrBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, statusStr_);
    }
    if (consultId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(8, consultId_);
    }
    if (createTime_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(9, createTime_);
    }
    if (orderId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(10, 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.user.ConsultOrderDetail)) {
      return super.equals(obj);
    }
    com.ywt.gapi.user.ConsultOrderDetail other = (com.ywt.gapi.user.ConsultOrderDetail) obj;

    boolean result = true;
    result = result && getPatientName()
        .equals(other.getPatientName());
    result = result && (getPatientSex()
        == other.getPatientSex());
    result = result && (getPatientAge()
        == other.getPatientAge());
    result = result && getPatientMobile()
        .equals(other.getPatientMobile());
    result = result && (getAmount()
        == other.getAmount());
    result = result && (getStatus()
        == other.getStatus());
    result = result && getStatusStr()
        .equals(other.getStatusStr());
    result = result && (getConsultId()
        == other.getConsultId());
    result = result && (getCreateTime()
        == other.getCreateTime());
    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) + PATIENTNAME_FIELD_NUMBER;
    hash = (53 * hash) + getPatientName().hashCode();
    hash = (37 * hash) + PATIENTSEX_FIELD_NUMBER;
    hash = (53 * hash) + getPatientSex();
    hash = (37 * hash) + PATIENTAGE_FIELD_NUMBER;
    hash = (53 * hash) + getPatientAge();
    hash = (37 * hash) + PATIENTMOBILE_FIELD_NUMBER;
    hash = (53 * hash) + getPatientMobile().hashCode();
    hash = (37 * hash) + AMOUNT_FIELD_NUMBER;
    hash = (53 * hash) + getAmount();
    hash = (37 * hash) + STATUS_FIELD_NUMBER;
    hash = (53 * hash) + getStatus();
    hash = (37 * hash) + STATUSSTR_FIELD_NUMBER;
    hash = (53 * hash) + getStatusStr().hashCode();
    hash = (37 * hash) + CONSULTID_FIELD_NUMBER;
    hash = (53 * hash) + getConsultId();
    hash = (37 * hash) + CREATETIME_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getCreateTime());
    hash = (37 * hash) + ORDERID_FIELD_NUMBER;
    hash = (53 * hash) + getOrderId();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.ywt.gapi.user.ConsultOrderDetail parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.user.ConsultOrderDetail parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.user.ConsultOrderDetail parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.user.ConsultOrderDetail parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.user.ConsultOrderDetail parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.user.ConsultOrderDetail parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.user.ConsultOrderDetail parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.user.ConsultOrderDetail parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }
  public static com.ywt.gapi.user.ConsultOrderDetail parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.user.ConsultOrderDetail parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static com.ywt.gapi.user.ConsultOrderDetail parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.user.ConsultOrderDetail parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(com.ywt.gapi.user.ConsultOrderDetail prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * <pre>
   *咨询订单详情  create by daiyihua
   * </pre>
   *
   * Protobuf type {@code com.ywt.gapi.user.ConsultOrderDetail}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.user.ConsultOrderDetail)
      com.ywt.gapi.user.ConsultOrderDetailOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.user.DoctorOuterClass.internal_static_com_ywt_gapi_user_ConsultOrderDetail_descriptor;
    }

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

    // Construct using com.ywt.gapi.user.ConsultOrderDetail.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();
      patientName_ = "";

      patientSex_ = 0;

      patientAge_ = 0;

      patientMobile_ = "";

      amount_ = 0;

      status_ = 0;

      statusStr_ = "";

      consultId_ = 0;

      createTime_ = 0L;

      orderId_ = 0;

      return this;
    }

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

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

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

    public com.ywt.gapi.user.ConsultOrderDetail buildPartial() {
      com.ywt.gapi.user.ConsultOrderDetail result = new com.ywt.gapi.user.ConsultOrderDetail(this);
      result.patientName_ = patientName_;
      result.patientSex_ = patientSex_;
      result.patientAge_ = patientAge_;
      result.patientMobile_ = patientMobile_;
      result.amount_ = amount_;
      result.status_ = status_;
      result.statusStr_ = statusStr_;
      result.consultId_ = consultId_;
      result.createTime_ = createTime_;
      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.user.ConsultOrderDetail) {
        return mergeFrom((com.ywt.gapi.user.ConsultOrderDetail)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.user.ConsultOrderDetail other) {
      if (other == com.ywt.gapi.user.ConsultOrderDetail.getDefaultInstance()) return this;
      if (!other.getPatientName().isEmpty()) {
        patientName_ = other.patientName_;
        onChanged();
      }
      if (other.getPatientSex() != 0) {
        setPatientSex(other.getPatientSex());
      }
      if (other.getPatientAge() != 0) {
        setPatientAge(other.getPatientAge());
      }
      if (!other.getPatientMobile().isEmpty()) {
        patientMobile_ = other.patientMobile_;
        onChanged();
      }
      if (other.getAmount() != 0) {
        setAmount(other.getAmount());
      }
      if (other.getStatus() != 0) {
        setStatus(other.getStatus());
      }
      if (!other.getStatusStr().isEmpty()) {
        statusStr_ = other.statusStr_;
        onChanged();
      }
      if (other.getConsultId() != 0) {
        setConsultId(other.getConsultId());
      }
      if (other.getCreateTime() != 0L) {
        setCreateTime(other.getCreateTime());
      }
      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.user.ConsultOrderDetail parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.user.ConsultOrderDetail) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private java.lang.Object patientName_ = "";
    /**
     * <pre>
     *患者姓名
     * </pre>
     *
     * <code>string patientName = 1;</code>
     */
    public java.lang.String getPatientName() {
      java.lang.Object ref = patientName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        patientName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *患者姓名
     * </pre>
     *
     * <code>string patientName = 1;</code>
     */
    public com.google.protobuf.ByteString
        getPatientNameBytes() {
      java.lang.Object ref = patientName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        patientName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *患者姓名
     * </pre>
     *
     * <code>string patientName = 1;</code>
     */
    public Builder setPatientName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      patientName_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *患者姓名
     * </pre>
     *
     * <code>string patientName = 1;</code>
     */
    public Builder clearPatientName() {
      
      patientName_ = getDefaultInstance().getPatientName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *患者姓名
     * </pre>
     *
     * <code>string patientName = 1;</code>
     */
    public Builder setPatientNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      patientName_ = value;
      onChanged();
      return this;
    }

    private int patientSex_ ;
    /**
     * <pre>
     *患者性别
     * </pre>
     *
     * <code>int32 patientSex = 2;</code>
     */
    public int getPatientSex() {
      return patientSex_;
    }
    /**
     * <pre>
     *患者性别
     * </pre>
     *
     * <code>int32 patientSex = 2;</code>
     */
    public Builder setPatientSex(int value) {
      
      patientSex_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *患者性别
     * </pre>
     *
     * <code>int32 patientSex = 2;</code>
     */
    public Builder clearPatientSex() {
      
      patientSex_ = 0;
      onChanged();
      return this;
    }

    private int patientAge_ ;
    /**
     * <pre>
     *患者年龄
     * </pre>
     *
     * <code>int32 patientAge = 3;</code>
     */
    public int getPatientAge() {
      return patientAge_;
    }
    /**
     * <pre>
     *患者年龄
     * </pre>
     *
     * <code>int32 patientAge = 3;</code>
     */
    public Builder setPatientAge(int value) {
      
      patientAge_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *患者年龄
     * </pre>
     *
     * <code>int32 patientAge = 3;</code>
     */
    public Builder clearPatientAge() {
      
      patientAge_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object patientMobile_ = "";
    /**
     * <pre>
     *患者手机号
     * </pre>
     *
     * <code>string patientMobile = 4;</code>
     */
    public java.lang.String getPatientMobile() {
      java.lang.Object ref = patientMobile_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        patientMobile_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *患者手机号
     * </pre>
     *
     * <code>string patientMobile = 4;</code>
     */
    public com.google.protobuf.ByteString
        getPatientMobileBytes() {
      java.lang.Object ref = patientMobile_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        patientMobile_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *患者手机号
     * </pre>
     *
     * <code>string patientMobile = 4;</code>
     */
    public Builder setPatientMobile(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      patientMobile_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *患者手机号
     * </pre>
     *
     * <code>string patientMobile = 4;</code>
     */
    public Builder clearPatientMobile() {
      
      patientMobile_ = getDefaultInstance().getPatientMobile();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *患者手机号
     * </pre>
     *
     * <code>string patientMobile = 4;</code>
     */
    public Builder setPatientMobileBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      patientMobile_ = value;
      onChanged();
      return this;
    }

    private int amount_ ;
    /**
     * <pre>
     *咨询费用
     * </pre>
     *
     * <code>int32 amount = 5;</code>
     */
    public int getAmount() {
      return amount_;
    }
    /**
     * <pre>
     *咨询费用
     * </pre>
     *
     * <code>int32 amount = 5;</code>
     */
    public Builder setAmount(int value) {
      
      amount_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *咨询费用
     * </pre>
     *
     * <code>int32 amount = 5;</code>
     */
    public Builder clearAmount() {
      
      amount_ = 0;
      onChanged();
      return this;
    }

    private int status_ ;
    /**
     * <pre>
     *预约状态
     * </pre>
     *
     * <code>int32 status = 6;</code>
     */
    public int getStatus() {
      return status_;
    }
    /**
     * <pre>
     *预约状态
     * </pre>
     *
     * <code>int32 status = 6;</code>
     */
    public Builder setStatus(int value) {
      
      status_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *预约状态
     * </pre>
     *
     * <code>int32 status = 6;</code>
     */
    public Builder clearStatus() {
      
      status_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object statusStr_ = "";
    /**
     * <pre>
     *预约状态
     * </pre>
     *
     * <code>string statusStr = 7;</code>
     */
    public java.lang.String getStatusStr() {
      java.lang.Object ref = statusStr_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        statusStr_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *预约状态
     * </pre>
     *
     * <code>string statusStr = 7;</code>
     */
    public com.google.protobuf.ByteString
        getStatusStrBytes() {
      java.lang.Object ref = statusStr_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        statusStr_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *预约状态
     * </pre>
     *
     * <code>string statusStr = 7;</code>
     */
    public Builder setStatusStr(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      statusStr_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *预约状态
     * </pre>
     *
     * <code>string statusStr = 7;</code>
     */
    public Builder clearStatusStr() {
      
      statusStr_ = getDefaultInstance().getStatusStr();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *预约状态
     * </pre>
     *
     * <code>string statusStr = 7;</code>
     */
    public Builder setStatusStrBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      statusStr_ = value;
      onChanged();
      return this;
    }

    private int consultId_ ;
    /**
     * <pre>
     * 问诊订单ID
     * </pre>
     *
     * <code>int32 consultId = 8;</code>
     */
    public int getConsultId() {
      return consultId_;
    }
    /**
     * <pre>
     * 问诊订单ID
     * </pre>
     *
     * <code>int32 consultId = 8;</code>
     */
    public Builder setConsultId(int value) {
      
      consultId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 问诊订单ID
     * </pre>
     *
     * <code>int32 consultId = 8;</code>
     */
    public Builder clearConsultId() {
      
      consultId_ = 0;
      onChanged();
      return this;
    }

    private long createTime_ ;
    /**
     * <pre>
     *下单时间
     * </pre>
     *
     * <code>int64 createTime = 9;</code>
     */
    public long getCreateTime() {
      return createTime_;
    }
    /**
     * <pre>
     *下单时间
     * </pre>
     *
     * <code>int64 createTime = 9;</code>
     */
    public Builder setCreateTime(long value) {
      
      createTime_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *下单时间
     * </pre>
     *
     * <code>int64 createTime = 9;</code>
     */
    public Builder clearCreateTime() {
      
      createTime_ = 0L;
      onChanged();
      return this;
    }

    private int orderId_ ;
    /**
     * <pre>
     *订单ID
     * </pre>
     *
     * <code>int32 orderId = 10;</code>
     */
    public int getOrderId() {
      return orderId_;
    }
    /**
     * <pre>
     *订单ID
     * </pre>
     *
     * <code>int32 orderId = 10;</code>
     */
    public Builder setOrderId(int value) {
      
      orderId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *订单ID
     * </pre>
     *
     * <code>int32 orderId = 10;</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.user.ConsultOrderDetail)
  }

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

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

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

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

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

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

}

