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

package com.ywt.gapi.order;

/**
 * Protobuf type {@code com.ywt.gapi.order.Order}
 */
public  final class Order extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.order.Order)
    OrderOrBuilder {
  // Use Order.newBuilder() to construct.
  private Order(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private Order() {
    name_ = "";
    inviteStatusName_ = "";
    status_ = 0;
    createTime_ = 0L;
    sessionId_ = "";
    orderId_ = 0;
    unionDoctorId_ = 0;
    sponsorId_ = 0;
    orderNo_ = "";
    paymentStatus_ = 0;
    paymentStatusName_ = "";
    deptName_ = "";
    patientName_ = "";
  }

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

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

            inviteStatusName_ = s;
            break;
          }
          case 24: {

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

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

            sessionId_ = s;
            break;
          }
          case 48: {

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

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

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

            orderNo_ = s;
            break;
          }
          case 80: {

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

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

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

            patientName_ = s;
            break;
          }
          case 114: {
            com.ywt.gapi.order.OrderDoctorInfo.Builder subBuilder = null;
            if (doctorInfo_ != null) {
              subBuilder = doctorInfo_.toBuilder();
            }
            doctorInfo_ = input.readMessage(com.ywt.gapi.order.OrderDoctorInfo.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(doctorInfo_);
              doctorInfo_ = subBuilder.buildPartial();
            }

            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_Order_descriptor;
  }

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

  public static final int NAME_FIELD_NUMBER = 1;
  private volatile java.lang.Object name_;
  /**
   * <code>string name = 1;</code>
   */
  public java.lang.String getName() {
    java.lang.Object ref = name_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      name_ = s;
      return s;
    }
  }
  /**
   * <code>string name = 1;</code>
   */
  public com.google.protobuf.ByteString
      getNameBytes() {
    java.lang.Object ref = name_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      name_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

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

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

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

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

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

  public static final int UNIONDOCTORID_FIELD_NUMBER = 7;
  private int unionDoctorId_;
  /**
   * <code>int32 unionDoctorId = 7;</code>
   */
  public int getUnionDoctorId() {
    return unionDoctorId_;
  }

  public static final int SPONSORID_FIELD_NUMBER = 8;
  private int sponsorId_;
  /**
   * <code>int32 sponsorId = 8;</code>
   */
  public int getSponsorId() {
    return sponsorId_;
  }

  public static final int ORDERNO_FIELD_NUMBER = 9;
  private volatile java.lang.Object orderNo_;
  /**
   * <code>string orderNo = 9;</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 = 9;</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 PAYMENTSTATUS_FIELD_NUMBER = 10;
  private int paymentStatus_;
  /**
   * <code>int32 paymentStatus = 10;</code>
   */
  public int getPaymentStatus() {
    return paymentStatus_;
  }

  public static final int PAYMENTSTATUSNAME_FIELD_NUMBER = 11;
  private volatile java.lang.Object paymentStatusName_;
  /**
   * <code>string paymentStatusName = 11;</code>
   */
  public java.lang.String getPaymentStatusName() {
    java.lang.Object ref = paymentStatusName_;
    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();
      paymentStatusName_ = s;
      return s;
    }
  }
  /**
   * <code>string paymentStatusName = 11;</code>
   */
  public com.google.protobuf.ByteString
      getPaymentStatusNameBytes() {
    java.lang.Object ref = paymentStatusName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      paymentStatusName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DEPTNAME_FIELD_NUMBER = 12;
  private volatile java.lang.Object deptName_;
  /**
   * <pre>
   *科室名称
   * </pre>
   *
   * <code>string deptName = 12;</code>
   */
  public java.lang.String getDeptName() {
    java.lang.Object ref = deptName_;
    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();
      deptName_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *科室名称
   * </pre>
   *
   * <code>string deptName = 12;</code>
   */
  public com.google.protobuf.ByteString
      getDeptNameBytes() {
    java.lang.Object ref = deptName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      deptName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PATIENTNAME_FIELD_NUMBER = 13;
  private volatile java.lang.Object patientName_;
  /**
   * <pre>
   *患者姓名
   * </pre>
   *
   * <code>string patientName = 13;</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 = 13;</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 DOCTORINFO_FIELD_NUMBER = 14;
  private com.ywt.gapi.order.OrderDoctorInfo doctorInfo_;
  /**
   * <code>.com.ywt.gapi.order.OrderDoctorInfo doctorInfo = 14;</code>
   */
  public boolean hasDoctorInfo() {
    return doctorInfo_ != null;
  }
  /**
   * <code>.com.ywt.gapi.order.OrderDoctorInfo doctorInfo = 14;</code>
   */
  public com.ywt.gapi.order.OrderDoctorInfo getDoctorInfo() {
    return doctorInfo_ == null ? com.ywt.gapi.order.OrderDoctorInfo.getDefaultInstance() : doctorInfo_;
  }
  /**
   * <code>.com.ywt.gapi.order.OrderDoctorInfo doctorInfo = 14;</code>
   */
  public com.ywt.gapi.order.OrderDoctorInfoOrBuilder getDoctorInfoOrBuilder() {
    return getDoctorInfo();
  }

  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 (!getNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
    }
    if (!getInviteStatusNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, inviteStatusName_);
    }
    if (status_ != 0) {
      output.writeInt32(3, status_);
    }
    if (createTime_ != 0L) {
      output.writeInt64(4, createTime_);
    }
    if (!getSessionIdBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, sessionId_);
    }
    if (orderId_ != 0) {
      output.writeInt32(6, orderId_);
    }
    if (unionDoctorId_ != 0) {
      output.writeInt32(7, unionDoctorId_);
    }
    if (sponsorId_ != 0) {
      output.writeInt32(8, sponsorId_);
    }
    if (!getOrderNoBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 9, orderNo_);
    }
    if (paymentStatus_ != 0) {
      output.writeInt32(10, paymentStatus_);
    }
    if (!getPaymentStatusNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 11, paymentStatusName_);
    }
    if (!getDeptNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 12, deptName_);
    }
    if (!getPatientNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 13, patientName_);
    }
    if (doctorInfo_ != null) {
      output.writeMessage(14, getDoctorInfo());
    }
  }

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

    size = 0;
    if (!getNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
    }
    if (!getInviteStatusNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, inviteStatusName_);
    }
    if (status_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(3, status_);
    }
    if (createTime_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(4, createTime_);
    }
    if (!getSessionIdBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, sessionId_);
    }
    if (orderId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(6, orderId_);
    }
    if (unionDoctorId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(7, unionDoctorId_);
    }
    if (sponsorId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(8, sponsorId_);
    }
    if (!getOrderNoBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, orderNo_);
    }
    if (paymentStatus_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(10, paymentStatus_);
    }
    if (!getPaymentStatusNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, paymentStatusName_);
    }
    if (!getDeptNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, deptName_);
    }
    if (!getPatientNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, patientName_);
    }
    if (doctorInfo_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(14, getDoctorInfo());
    }
    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.Order)) {
      return super.equals(obj);
    }
    com.ywt.gapi.order.Order other = (com.ywt.gapi.order.Order) obj;

    boolean result = true;
    result = result && getName()
        .equals(other.getName());
    result = result && getInviteStatusName()
        .equals(other.getInviteStatusName());
    result = result && (getStatus()
        == other.getStatus());
    result = result && (getCreateTime()
        == other.getCreateTime());
    result = result && getSessionId()
        .equals(other.getSessionId());
    result = result && (getOrderId()
        == other.getOrderId());
    result = result && (getUnionDoctorId()
        == other.getUnionDoctorId());
    result = result && (getSponsorId()
        == other.getSponsorId());
    result = result && getOrderNo()
        .equals(other.getOrderNo());
    result = result && (getPaymentStatus()
        == other.getPaymentStatus());
    result = result && getPaymentStatusName()
        .equals(other.getPaymentStatusName());
    result = result && getDeptName()
        .equals(other.getDeptName());
    result = result && getPatientName()
        .equals(other.getPatientName());
    result = result && (hasDoctorInfo() == other.hasDoctorInfo());
    if (hasDoctorInfo()) {
      result = result && getDoctorInfo()
          .equals(other.getDoctorInfo());
    }
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + NAME_FIELD_NUMBER;
    hash = (53 * hash) + getName().hashCode();
    hash = (37 * hash) + INVITESTATUSNAME_FIELD_NUMBER;
    hash = (53 * hash) + getInviteStatusName().hashCode();
    hash = (37 * hash) + STATUS_FIELD_NUMBER;
    hash = (53 * hash) + getStatus();
    hash = (37 * hash) + CREATETIME_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getCreateTime());
    hash = (37 * hash) + SESSIONID_FIELD_NUMBER;
    hash = (53 * hash) + getSessionId().hashCode();
    hash = (37 * hash) + ORDERID_FIELD_NUMBER;
    hash = (53 * hash) + getOrderId();
    hash = (37 * hash) + UNIONDOCTORID_FIELD_NUMBER;
    hash = (53 * hash) + getUnionDoctorId();
    hash = (37 * hash) + SPONSORID_FIELD_NUMBER;
    hash = (53 * hash) + getSponsorId();
    hash = (37 * hash) + ORDERNO_FIELD_NUMBER;
    hash = (53 * hash) + getOrderNo().hashCode();
    hash = (37 * hash) + PAYMENTSTATUS_FIELD_NUMBER;
    hash = (53 * hash) + getPaymentStatus();
    hash = (37 * hash) + PAYMENTSTATUSNAME_FIELD_NUMBER;
    hash = (53 * hash) + getPaymentStatusName().hashCode();
    hash = (37 * hash) + DEPTNAME_FIELD_NUMBER;
    hash = (53 * hash) + getDeptName().hashCode();
    hash = (37 * hash) + PATIENTNAME_FIELD_NUMBER;
    hash = (53 * hash) + getPatientName().hashCode();
    if (hasDoctorInfo()) {
      hash = (37 * hash) + DOCTORINFO_FIELD_NUMBER;
      hash = (53 * hash) + getDoctorInfo().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

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

      inviteStatusName_ = "";

      status_ = 0;

      createTime_ = 0L;

      sessionId_ = "";

      orderId_ = 0;

      unionDoctorId_ = 0;

      sponsorId_ = 0;

      orderNo_ = "";

      paymentStatus_ = 0;

      paymentStatusName_ = "";

      deptName_ = "";

      patientName_ = "";

      if (doctorInfoBuilder_ == null) {
        doctorInfo_ = null;
      } else {
        doctorInfo_ = null;
        doctorInfoBuilder_ = null;
      }
      return this;
    }

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

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

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

    public com.ywt.gapi.order.Order buildPartial() {
      com.ywt.gapi.order.Order result = new com.ywt.gapi.order.Order(this);
      result.name_ = name_;
      result.inviteStatusName_ = inviteStatusName_;
      result.status_ = status_;
      result.createTime_ = createTime_;
      result.sessionId_ = sessionId_;
      result.orderId_ = orderId_;
      result.unionDoctorId_ = unionDoctorId_;
      result.sponsorId_ = sponsorId_;
      result.orderNo_ = orderNo_;
      result.paymentStatus_ = paymentStatus_;
      result.paymentStatusName_ = paymentStatusName_;
      result.deptName_ = deptName_;
      result.patientName_ = patientName_;
      if (doctorInfoBuilder_ == null) {
        result.doctorInfo_ = doctorInfo_;
      } else {
        result.doctorInfo_ = doctorInfoBuilder_.build();
      }
      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.Order) {
        return mergeFrom((com.ywt.gapi.order.Order)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.order.Order other) {
      if (other == com.ywt.gapi.order.Order.getDefaultInstance()) return this;
      if (!other.getName().isEmpty()) {
        name_ = other.name_;
        onChanged();
      }
      if (!other.getInviteStatusName().isEmpty()) {
        inviteStatusName_ = other.inviteStatusName_;
        onChanged();
      }
      if (other.getStatus() != 0) {
        setStatus(other.getStatus());
      }
      if (other.getCreateTime() != 0L) {
        setCreateTime(other.getCreateTime());
      }
      if (!other.getSessionId().isEmpty()) {
        sessionId_ = other.sessionId_;
        onChanged();
      }
      if (other.getOrderId() != 0) {
        setOrderId(other.getOrderId());
      }
      if (other.getUnionDoctorId() != 0) {
        setUnionDoctorId(other.getUnionDoctorId());
      }
      if (other.getSponsorId() != 0) {
        setSponsorId(other.getSponsorId());
      }
      if (!other.getOrderNo().isEmpty()) {
        orderNo_ = other.orderNo_;
        onChanged();
      }
      if (other.getPaymentStatus() != 0) {
        setPaymentStatus(other.getPaymentStatus());
      }
      if (!other.getPaymentStatusName().isEmpty()) {
        paymentStatusName_ = other.paymentStatusName_;
        onChanged();
      }
      if (!other.getDeptName().isEmpty()) {
        deptName_ = other.deptName_;
        onChanged();
      }
      if (!other.getPatientName().isEmpty()) {
        patientName_ = other.patientName_;
        onChanged();
      }
      if (other.hasDoctorInfo()) {
        mergeDoctorInfo(other.getDoctorInfo());
      }
      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.Order parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.order.Order) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private java.lang.Object name_ = "";
    /**
     * <code>string name = 1;</code>
     */
    public java.lang.String getName() {
      java.lang.Object ref = name_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        name_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string name = 1;</code>
     */
    public com.google.protobuf.ByteString
        getNameBytes() {
      java.lang.Object ref = name_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        name_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string name = 1;</code>
     */
    public Builder setName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      name_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string name = 1;</code>
     */
    public Builder clearName() {
      
      name_ = getDefaultInstance().getName();
      onChanged();
      return this;
    }
    /**
     * <code>string name = 1;</code>
     */
    public Builder setNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      name_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object inviteStatusName_ = "";
    /**
     * <code>string inviteStatusName = 2;</code>
     */
    public java.lang.String getInviteStatusName() {
      java.lang.Object ref = inviteStatusName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        inviteStatusName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string inviteStatusName = 2;</code>
     */
    public com.google.protobuf.ByteString
        getInviteStatusNameBytes() {
      java.lang.Object ref = inviteStatusName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        inviteStatusName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string inviteStatusName = 2;</code>
     */
    public Builder setInviteStatusName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      inviteStatusName_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string inviteStatusName = 2;</code>
     */
    public Builder clearInviteStatusName() {
      
      inviteStatusName_ = getDefaultInstance().getInviteStatusName();
      onChanged();
      return this;
    }
    /**
     * <code>string inviteStatusName = 2;</code>
     */
    public Builder setInviteStatusNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      inviteStatusName_ = value;
      onChanged();
      return this;
    }

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

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

    private java.lang.Object sessionId_ = "";
    /**
     * <code>string sessionId = 5;</code>
     */
    public java.lang.String getSessionId() {
      java.lang.Object ref = sessionId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        sessionId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string sessionId = 5;</code>
     */
    public com.google.protobuf.ByteString
        getSessionIdBytes() {
      java.lang.Object ref = sessionId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        sessionId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string sessionId = 5;</code>
     */
    public Builder setSessionId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      sessionId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string sessionId = 5;</code>
     */
    public Builder clearSessionId() {
      
      sessionId_ = getDefaultInstance().getSessionId();
      onChanged();
      return this;
    }
    /**
     * <code>string sessionId = 5;</code>
     */
    public Builder setSessionIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      sessionId_ = value;
      onChanged();
      return this;
    }

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

    private int unionDoctorId_ ;
    /**
     * <code>int32 unionDoctorId = 7;</code>
     */
    public int getUnionDoctorId() {
      return unionDoctorId_;
    }
    /**
     * <code>int32 unionDoctorId = 7;</code>
     */
    public Builder setUnionDoctorId(int value) {
      
      unionDoctorId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 unionDoctorId = 7;</code>
     */
    public Builder clearUnionDoctorId() {
      
      unionDoctorId_ = 0;
      onChanged();
      return this;
    }

    private int sponsorId_ ;
    /**
     * <code>int32 sponsorId = 8;</code>
     */
    public int getSponsorId() {
      return sponsorId_;
    }
    /**
     * <code>int32 sponsorId = 8;</code>
     */
    public Builder setSponsorId(int value) {
      
      sponsorId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 sponsorId = 8;</code>
     */
    public Builder clearSponsorId() {
      
      sponsorId_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object orderNo_ = "";
    /**
     * <code>string orderNo = 9;</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 = 9;</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 = 9;</code>
     */
    public Builder setOrderNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      orderNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string orderNo = 9;</code>
     */
    public Builder clearOrderNo() {
      
      orderNo_ = getDefaultInstance().getOrderNo();
      onChanged();
      return this;
    }
    /**
     * <code>string orderNo = 9;</code>
     */
    public Builder setOrderNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      orderNo_ = value;
      onChanged();
      return this;
    }

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

    private java.lang.Object paymentStatusName_ = "";
    /**
     * <code>string paymentStatusName = 11;</code>
     */
    public java.lang.String getPaymentStatusName() {
      java.lang.Object ref = paymentStatusName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        paymentStatusName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string paymentStatusName = 11;</code>
     */
    public com.google.protobuf.ByteString
        getPaymentStatusNameBytes() {
      java.lang.Object ref = paymentStatusName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        paymentStatusName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string paymentStatusName = 11;</code>
     */
    public Builder setPaymentStatusName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      paymentStatusName_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string paymentStatusName = 11;</code>
     */
    public Builder clearPaymentStatusName() {
      
      paymentStatusName_ = getDefaultInstance().getPaymentStatusName();
      onChanged();
      return this;
    }
    /**
     * <code>string paymentStatusName = 11;</code>
     */
    public Builder setPaymentStatusNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      paymentStatusName_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object deptName_ = "";
    /**
     * <pre>
     *科室名称
     * </pre>
     *
     * <code>string deptName = 12;</code>
     */
    public java.lang.String getDeptName() {
      java.lang.Object ref = deptName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        deptName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *科室名称
     * </pre>
     *
     * <code>string deptName = 12;</code>
     */
    public com.google.protobuf.ByteString
        getDeptNameBytes() {
      java.lang.Object ref = deptName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        deptName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *科室名称
     * </pre>
     *
     * <code>string deptName = 12;</code>
     */
    public Builder setDeptName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      deptName_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *科室名称
     * </pre>
     *
     * <code>string deptName = 12;</code>
     */
    public Builder clearDeptName() {
      
      deptName_ = getDefaultInstance().getDeptName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *科室名称
     * </pre>
     *
     * <code>string deptName = 12;</code>
     */
    public Builder setDeptNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      deptName_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object patientName_ = "";
    /**
     * <pre>
     *患者姓名
     * </pre>
     *
     * <code>string patientName = 13;</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 = 13;</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 = 13;</code>
     */
    public Builder setPatientName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      patientName_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *患者姓名
     * </pre>
     *
     * <code>string patientName = 13;</code>
     */
    public Builder clearPatientName() {
      
      patientName_ = getDefaultInstance().getPatientName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *患者姓名
     * </pre>
     *
     * <code>string patientName = 13;</code>
     */
    public Builder setPatientNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      patientName_ = value;
      onChanged();
      return this;
    }

    private com.ywt.gapi.order.OrderDoctorInfo doctorInfo_ = null;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.ywt.gapi.order.OrderDoctorInfo, com.ywt.gapi.order.OrderDoctorInfo.Builder, com.ywt.gapi.order.OrderDoctorInfoOrBuilder> doctorInfoBuilder_;
    /**
     * <code>.com.ywt.gapi.order.OrderDoctorInfo doctorInfo = 14;</code>
     */
    public boolean hasDoctorInfo() {
      return doctorInfoBuilder_ != null || doctorInfo_ != null;
    }
    /**
     * <code>.com.ywt.gapi.order.OrderDoctorInfo doctorInfo = 14;</code>
     */
    public com.ywt.gapi.order.OrderDoctorInfo getDoctorInfo() {
      if (doctorInfoBuilder_ == null) {
        return doctorInfo_ == null ? com.ywt.gapi.order.OrderDoctorInfo.getDefaultInstance() : doctorInfo_;
      } else {
        return doctorInfoBuilder_.getMessage();
      }
    }
    /**
     * <code>.com.ywt.gapi.order.OrderDoctorInfo doctorInfo = 14;</code>
     */
    public Builder setDoctorInfo(com.ywt.gapi.order.OrderDoctorInfo value) {
      if (doctorInfoBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        doctorInfo_ = value;
        onChanged();
      } else {
        doctorInfoBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <code>.com.ywt.gapi.order.OrderDoctorInfo doctorInfo = 14;</code>
     */
    public Builder setDoctorInfo(
        com.ywt.gapi.order.OrderDoctorInfo.Builder builderForValue) {
      if (doctorInfoBuilder_ == null) {
        doctorInfo_ = builderForValue.build();
        onChanged();
      } else {
        doctorInfoBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <code>.com.ywt.gapi.order.OrderDoctorInfo doctorInfo = 14;</code>
     */
    public Builder mergeDoctorInfo(com.ywt.gapi.order.OrderDoctorInfo value) {
      if (doctorInfoBuilder_ == null) {
        if (doctorInfo_ != null) {
          doctorInfo_ =
            com.ywt.gapi.order.OrderDoctorInfo.newBuilder(doctorInfo_).mergeFrom(value).buildPartial();
        } else {
          doctorInfo_ = value;
        }
        onChanged();
      } else {
        doctorInfoBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <code>.com.ywt.gapi.order.OrderDoctorInfo doctorInfo = 14;</code>
     */
    public Builder clearDoctorInfo() {
      if (doctorInfoBuilder_ == null) {
        doctorInfo_ = null;
        onChanged();
      } else {
        doctorInfo_ = null;
        doctorInfoBuilder_ = null;
      }

      return this;
    }
    /**
     * <code>.com.ywt.gapi.order.OrderDoctorInfo doctorInfo = 14;</code>
     */
    public com.ywt.gapi.order.OrderDoctorInfo.Builder getDoctorInfoBuilder() {
      
      onChanged();
      return getDoctorInfoFieldBuilder().getBuilder();
    }
    /**
     * <code>.com.ywt.gapi.order.OrderDoctorInfo doctorInfo = 14;</code>
     */
    public com.ywt.gapi.order.OrderDoctorInfoOrBuilder getDoctorInfoOrBuilder() {
      if (doctorInfoBuilder_ != null) {
        return doctorInfoBuilder_.getMessageOrBuilder();
      } else {
        return doctorInfo_ == null ?
            com.ywt.gapi.order.OrderDoctorInfo.getDefaultInstance() : doctorInfo_;
      }
    }
    /**
     * <code>.com.ywt.gapi.order.OrderDoctorInfo doctorInfo = 14;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.ywt.gapi.order.OrderDoctorInfo, com.ywt.gapi.order.OrderDoctorInfo.Builder, com.ywt.gapi.order.OrderDoctorInfoOrBuilder> 
        getDoctorInfoFieldBuilder() {
      if (doctorInfoBuilder_ == null) {
        doctorInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.ywt.gapi.order.OrderDoctorInfo, com.ywt.gapi.order.OrderDoctorInfo.Builder, com.ywt.gapi.order.OrderDoctorInfoOrBuilder>(
                getDoctorInfo(),
                getParentForChildren(),
                isClean());
        doctorInfo_ = null;
      }
      return doctorInfoBuilder_;
    }
    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.Order)
  }

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

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

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

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

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

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

}

