// 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.CreateRegisteredOrderRequest}
 */
public  final class CreateRegisteredOrderRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.order.CreateRegisteredOrderRequest)
    CreateRegisteredOrderRequestOrBuilder {
  // Use CreateRegisteredOrderRequest.newBuilder() to construct.
  private CreateRegisteredOrderRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private CreateRegisteredOrderRequest() {
    hospitalId_ = 0;
    deptCode_ = "";
    deptName_ = "";
    doctorCode_ = "";
    doctorName_ = "";
    total_ = 0;
    registeredFee_ = 0;
    medicalFee_ = 0;
    registeredDate_ = 0L;
    period_ = 0;
    startTime_ = "";
    endTime_ = "";
    userId_ = 0;
    medicalCardId_ = 0;
    scheduleItemCode_ = "";
    paymentChannel_ = 0;
    source_ = 0;
    doctorTitle_ = "";
    type_ = 0;
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
  }
  private CreateRegisteredOrderRequest(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    int mutable_bitField0_ = 0;
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          default: {
            if (!input.skipField(tag)) {
              done = true;
            }
            break;
          }
          case 8: {

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

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

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

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

            doctorName_ = s;
            break;
          }
          case 48: {

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

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

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

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

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

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

            endTime_ = s;
            break;
          }
          case 104: {

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

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

            scheduleItemCode_ = s;
            break;
          }
          case 128: {

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

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

            doctorTitle_ = s;
            break;
          }
          case 152: {

            type_ = 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_CreateRegisteredOrderRequest_descriptor;
  }

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

  public static final int HOSPITALID_FIELD_NUMBER = 1;
  private int hospitalId_;
  /**
   * <pre>
   *医院ID
   * </pre>
   *
   * <code>int32 hospitalId = 1;</code>
   */
  public int getHospitalId() {
    return hospitalId_;
  }

  public static final int DEPTCODE_FIELD_NUMBER = 2;
  private volatile java.lang.Object deptCode_;
  /**
   * <pre>
   *科室Code
   * </pre>
   *
   * <code>string deptCode = 2;</code>
   */
  public java.lang.String getDeptCode() {
    java.lang.Object ref = deptCode_;
    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();
      deptCode_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *科室Code
   * </pre>
   *
   * <code>string deptCode = 2;</code>
   */
  public com.google.protobuf.ByteString
      getDeptCodeBytes() {
    java.lang.Object ref = deptCode_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      deptCode_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DEPTNAME_FIELD_NUMBER = 3;
  private volatile java.lang.Object deptName_;
  /**
   * <pre>
   *科室名称
   * </pre>
   *
   * <code>string deptName = 3;</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 = 3;</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 DOCTORCODE_FIELD_NUMBER = 4;
  private volatile java.lang.Object doctorCode_;
  /**
   * <pre>
   *医生Code
   * </pre>
   *
   * <code>string doctorCode = 4;</code>
   */
  public java.lang.String getDoctorCode() {
    java.lang.Object ref = doctorCode_;
    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();
      doctorCode_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *医生Code
   * </pre>
   *
   * <code>string doctorCode = 4;</code>
   */
  public com.google.protobuf.ByteString
      getDoctorCodeBytes() {
    java.lang.Object ref = doctorCode_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      doctorCode_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DOCTORNAME_FIELD_NUMBER = 5;
  private volatile java.lang.Object doctorName_;
  /**
   * <pre>
   *医生名称
   * </pre>
   *
   * <code>string doctorName = 5;</code>
   */
  public java.lang.String getDoctorName() {
    java.lang.Object ref = doctorName_;
    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();
      doctorName_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *医生名称
   * </pre>
   *
   * <code>string doctorName = 5;</code>
   */
  public com.google.protobuf.ByteString
      getDoctorNameBytes() {
    java.lang.Object ref = doctorName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      doctorName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int TOTAL_FIELD_NUMBER = 6;
  private int total_;
  /**
   * <pre>
   *预约挂号总费用
   * </pre>
   *
   * <code>int32 total = 6;</code>
   */
  public int getTotal() {
    return total_;
  }

  public static final int REGISTEREDFEE_FIELD_NUMBER = 7;
  private int registeredFee_;
  /**
   * <pre>
   *挂号费
   * </pre>
   *
   * <code>int32 registeredFee = 7;</code>
   */
  public int getRegisteredFee() {
    return registeredFee_;
  }

  public static final int MEDICALFEE_FIELD_NUMBER = 8;
  private int medicalFee_;
  /**
   * <pre>
   *诊查费
   * </pre>
   *
   * <code>int32 medicalFee = 8;</code>
   */
  public int getMedicalFee() {
    return medicalFee_;
  }

  public static final int REGISTEREDDATE_FIELD_NUMBER = 9;
  private long registeredDate_;
  /**
   * <pre>
   *预约日期
   * </pre>
   *
   * <code>int64 registeredDate = 9;</code>
   */
  public long getRegisteredDate() {
    return registeredDate_;
  }

  public static final int PERIOD_FIELD_NUMBER = 10;
  private int period_;
  /**
   * <pre>
   *预约时间段
   * </pre>
   *
   * <code>int32 period = 10;</code>
   */
  public int getPeriod() {
    return period_;
  }

  public static final int STARTTIME_FIELD_NUMBER = 11;
  private volatile java.lang.Object startTime_;
  /**
   * <pre>
   *预约开始时间：HH:MI
   * </pre>
   *
   * <code>string startTime = 11;</code>
   */
  public java.lang.String getStartTime() {
    java.lang.Object ref = startTime_;
    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();
      startTime_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *预约开始时间：HH:MI
   * </pre>
   *
   * <code>string startTime = 11;</code>
   */
  public com.google.protobuf.ByteString
      getStartTimeBytes() {
    java.lang.Object ref = startTime_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      startTime_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ENDTIME_FIELD_NUMBER = 12;
  private volatile java.lang.Object endTime_;
  /**
   * <pre>
   *预约结束时间：HH:MI
   * </pre>
   *
   * <code>string endTime = 12;</code>
   */
  public java.lang.String getEndTime() {
    java.lang.Object ref = endTime_;
    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();
      endTime_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *预约结束时间：HH:MI
   * </pre>
   *
   * <code>string endTime = 12;</code>
   */
  public com.google.protobuf.ByteString
      getEndTimeBytes() {
    java.lang.Object ref = endTime_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      endTime_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

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

  public static final int MEDICALCARDID_FIELD_NUMBER = 14;
  private int medicalCardId_;
  /**
   * <pre>
   *患者ID（即家人ID)
   * </pre>
   *
   * <code>int32 medicalCardId = 14;</code>
   */
  public int getMedicalCardId() {
    return medicalCardId_;
  }

  public static final int SCHEDULEITEMCODE_FIELD_NUMBER = 15;
  private volatile java.lang.Object scheduleItemCode_;
  /**
   * <pre>
   *门诊排班项记录标识
   * </pre>
   *
   * <code>string scheduleItemCode = 15;</code>
   */
  public java.lang.String getScheduleItemCode() {
    java.lang.Object ref = scheduleItemCode_;
    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();
      scheduleItemCode_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *门诊排班项记录标识
   * </pre>
   *
   * <code>string scheduleItemCode = 15;</code>
   */
  public com.google.protobuf.ByteString
      getScheduleItemCodeBytes() {
    java.lang.Object ref = scheduleItemCode_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      scheduleItemCode_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PAYMENTCHANNEL_FIELD_NUMBER = 16;
  private int paymentChannel_;
  /**
   * <pre>
   *支付渠道
   * </pre>
   *
   * <code>int32 paymentChannel = 16;</code>
   */
  public int getPaymentChannel() {
    return paymentChannel_;
  }

  public static final int SOURCE_FIELD_NUMBER = 17;
  private int source_;
  /**
   * <pre>
   *订单来源
   * </pre>
   *
   * <code>int32 source = 17;</code>
   */
  public int getSource() {
    return source_;
  }

  public static final int DOCTORTITLE_FIELD_NUMBER = 18;
  private volatile java.lang.Object doctorTitle_;
  /**
   * <pre>
   *医生职称
   * </pre>
   *
   * <code>string doctorTitle = 18;</code>
   */
  public java.lang.String getDoctorTitle() {
    java.lang.Object ref = doctorTitle_;
    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();
      doctorTitle_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *医生职称
   * </pre>
   *
   * <code>string doctorTitle = 18;</code>
   */
  public com.google.protobuf.ByteString
      getDoctorTitleBytes() {
    java.lang.Object ref = doctorTitle_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      doctorTitle_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int TYPE_FIELD_NUMBER = 19;
  private int type_;
  /**
   * <pre>
   *挂号类型：0-普通预约 2-加号预约
   * </pre>
   *
   * <code>int32 type = 19;</code>
   */
  public int getType() {
    return type_;
  }

  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 (hospitalId_ != 0) {
      output.writeInt32(1, hospitalId_);
    }
    if (!getDeptCodeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, deptCode_);
    }
    if (!getDeptNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, deptName_);
    }
    if (!getDoctorCodeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, doctorCode_);
    }
    if (!getDoctorNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, doctorName_);
    }
    if (total_ != 0) {
      output.writeInt32(6, total_);
    }
    if (registeredFee_ != 0) {
      output.writeInt32(7, registeredFee_);
    }
    if (medicalFee_ != 0) {
      output.writeInt32(8, medicalFee_);
    }
    if (registeredDate_ != 0L) {
      output.writeInt64(9, registeredDate_);
    }
    if (period_ != 0) {
      output.writeInt32(10, period_);
    }
    if (!getStartTimeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 11, startTime_);
    }
    if (!getEndTimeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 12, endTime_);
    }
    if (userId_ != 0) {
      output.writeInt32(13, userId_);
    }
    if (medicalCardId_ != 0) {
      output.writeInt32(14, medicalCardId_);
    }
    if (!getScheduleItemCodeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 15, scheduleItemCode_);
    }
    if (paymentChannel_ != 0) {
      output.writeInt32(16, paymentChannel_);
    }
    if (source_ != 0) {
      output.writeInt32(17, source_);
    }
    if (!getDoctorTitleBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 18, doctorTitle_);
    }
    if (type_ != 0) {
      output.writeInt32(19, type_);
    }
  }

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

    size = 0;
    if (hospitalId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(1, hospitalId_);
    }
    if (!getDeptCodeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, deptCode_);
    }
    if (!getDeptNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, deptName_);
    }
    if (!getDoctorCodeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, doctorCode_);
    }
    if (!getDoctorNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, doctorName_);
    }
    if (total_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(6, total_);
    }
    if (registeredFee_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(7, registeredFee_);
    }
    if (medicalFee_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(8, medicalFee_);
    }
    if (registeredDate_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(9, registeredDate_);
    }
    if (period_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(10, period_);
    }
    if (!getStartTimeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, startTime_);
    }
    if (!getEndTimeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, endTime_);
    }
    if (userId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(13, userId_);
    }
    if (medicalCardId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(14, medicalCardId_);
    }
    if (!getScheduleItemCodeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, scheduleItemCode_);
    }
    if (paymentChannel_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(16, paymentChannel_);
    }
    if (source_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(17, source_);
    }
    if (!getDoctorTitleBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, doctorTitle_);
    }
    if (type_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(19, type_);
    }
    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.CreateRegisteredOrderRequest)) {
      return super.equals(obj);
    }
    com.ywt.gapi.order.CreateRegisteredOrderRequest other = (com.ywt.gapi.order.CreateRegisteredOrderRequest) obj;

    boolean result = true;
    result = result && (getHospitalId()
        == other.getHospitalId());
    result = result && getDeptCode()
        .equals(other.getDeptCode());
    result = result && getDeptName()
        .equals(other.getDeptName());
    result = result && getDoctorCode()
        .equals(other.getDoctorCode());
    result = result && getDoctorName()
        .equals(other.getDoctorName());
    result = result && (getTotal()
        == other.getTotal());
    result = result && (getRegisteredFee()
        == other.getRegisteredFee());
    result = result && (getMedicalFee()
        == other.getMedicalFee());
    result = result && (getRegisteredDate()
        == other.getRegisteredDate());
    result = result && (getPeriod()
        == other.getPeriod());
    result = result && getStartTime()
        .equals(other.getStartTime());
    result = result && getEndTime()
        .equals(other.getEndTime());
    result = result && (getUserId()
        == other.getUserId());
    result = result && (getMedicalCardId()
        == other.getMedicalCardId());
    result = result && getScheduleItemCode()
        .equals(other.getScheduleItemCode());
    result = result && (getPaymentChannel()
        == other.getPaymentChannel());
    result = result && (getSource()
        == other.getSource());
    result = result && getDoctorTitle()
        .equals(other.getDoctorTitle());
    result = result && (getType()
        == other.getType());
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + HOSPITALID_FIELD_NUMBER;
    hash = (53 * hash) + getHospitalId();
    hash = (37 * hash) + DEPTCODE_FIELD_NUMBER;
    hash = (53 * hash) + getDeptCode().hashCode();
    hash = (37 * hash) + DEPTNAME_FIELD_NUMBER;
    hash = (53 * hash) + getDeptName().hashCode();
    hash = (37 * hash) + DOCTORCODE_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorCode().hashCode();
    hash = (37 * hash) + DOCTORNAME_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorName().hashCode();
    hash = (37 * hash) + TOTAL_FIELD_NUMBER;
    hash = (53 * hash) + getTotal();
    hash = (37 * hash) + REGISTEREDFEE_FIELD_NUMBER;
    hash = (53 * hash) + getRegisteredFee();
    hash = (37 * hash) + MEDICALFEE_FIELD_NUMBER;
    hash = (53 * hash) + getMedicalFee();
    hash = (37 * hash) + REGISTEREDDATE_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getRegisteredDate());
    hash = (37 * hash) + PERIOD_FIELD_NUMBER;
    hash = (53 * hash) + getPeriod();
    hash = (37 * hash) + STARTTIME_FIELD_NUMBER;
    hash = (53 * hash) + getStartTime().hashCode();
    hash = (37 * hash) + ENDTIME_FIELD_NUMBER;
    hash = (53 * hash) + getEndTime().hashCode();
    hash = (37 * hash) + USERID_FIELD_NUMBER;
    hash = (53 * hash) + getUserId();
    hash = (37 * hash) + MEDICALCARDID_FIELD_NUMBER;
    hash = (53 * hash) + getMedicalCardId();
    hash = (37 * hash) + SCHEDULEITEMCODE_FIELD_NUMBER;
    hash = (53 * hash) + getScheduleItemCode().hashCode();
    hash = (37 * hash) + PAYMENTCHANNEL_FIELD_NUMBER;
    hash = (53 * hash) + getPaymentChannel();
    hash = (37 * hash) + SOURCE_FIELD_NUMBER;
    hash = (53 * hash) + getSource();
    hash = (37 * hash) + DOCTORTITLE_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorTitle().hashCode();
    hash = (37 * hash) + TYPE_FIELD_NUMBER;
    hash = (53 * hash) + getType();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

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

      deptCode_ = "";

      deptName_ = "";

      doctorCode_ = "";

      doctorName_ = "";

      total_ = 0;

      registeredFee_ = 0;

      medicalFee_ = 0;

      registeredDate_ = 0L;

      period_ = 0;

      startTime_ = "";

      endTime_ = "";

      userId_ = 0;

      medicalCardId_ = 0;

      scheduleItemCode_ = "";

      paymentChannel_ = 0;

      source_ = 0;

      doctorTitle_ = "";

      type_ = 0;

      return this;
    }

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

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

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

    public com.ywt.gapi.order.CreateRegisteredOrderRequest buildPartial() {
      com.ywt.gapi.order.CreateRegisteredOrderRequest result = new com.ywt.gapi.order.CreateRegisteredOrderRequest(this);
      result.hospitalId_ = hospitalId_;
      result.deptCode_ = deptCode_;
      result.deptName_ = deptName_;
      result.doctorCode_ = doctorCode_;
      result.doctorName_ = doctorName_;
      result.total_ = total_;
      result.registeredFee_ = registeredFee_;
      result.medicalFee_ = medicalFee_;
      result.registeredDate_ = registeredDate_;
      result.period_ = period_;
      result.startTime_ = startTime_;
      result.endTime_ = endTime_;
      result.userId_ = userId_;
      result.medicalCardId_ = medicalCardId_;
      result.scheduleItemCode_ = scheduleItemCode_;
      result.paymentChannel_ = paymentChannel_;
      result.source_ = source_;
      result.doctorTitle_ = doctorTitle_;
      result.type_ = type_;
      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.CreateRegisteredOrderRequest) {
        return mergeFrom((com.ywt.gapi.order.CreateRegisteredOrderRequest)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.order.CreateRegisteredOrderRequest other) {
      if (other == com.ywt.gapi.order.CreateRegisteredOrderRequest.getDefaultInstance()) return this;
      if (other.getHospitalId() != 0) {
        setHospitalId(other.getHospitalId());
      }
      if (!other.getDeptCode().isEmpty()) {
        deptCode_ = other.deptCode_;
        onChanged();
      }
      if (!other.getDeptName().isEmpty()) {
        deptName_ = other.deptName_;
        onChanged();
      }
      if (!other.getDoctorCode().isEmpty()) {
        doctorCode_ = other.doctorCode_;
        onChanged();
      }
      if (!other.getDoctorName().isEmpty()) {
        doctorName_ = other.doctorName_;
        onChanged();
      }
      if (other.getTotal() != 0) {
        setTotal(other.getTotal());
      }
      if (other.getRegisteredFee() != 0) {
        setRegisteredFee(other.getRegisteredFee());
      }
      if (other.getMedicalFee() != 0) {
        setMedicalFee(other.getMedicalFee());
      }
      if (other.getRegisteredDate() != 0L) {
        setRegisteredDate(other.getRegisteredDate());
      }
      if (other.getPeriod() != 0) {
        setPeriod(other.getPeriod());
      }
      if (!other.getStartTime().isEmpty()) {
        startTime_ = other.startTime_;
        onChanged();
      }
      if (!other.getEndTime().isEmpty()) {
        endTime_ = other.endTime_;
        onChanged();
      }
      if (other.getUserId() != 0) {
        setUserId(other.getUserId());
      }
      if (other.getMedicalCardId() != 0) {
        setMedicalCardId(other.getMedicalCardId());
      }
      if (!other.getScheduleItemCode().isEmpty()) {
        scheduleItemCode_ = other.scheduleItemCode_;
        onChanged();
      }
      if (other.getPaymentChannel() != 0) {
        setPaymentChannel(other.getPaymentChannel());
      }
      if (other.getSource() != 0) {
        setSource(other.getSource());
      }
      if (!other.getDoctorTitle().isEmpty()) {
        doctorTitle_ = other.doctorTitle_;
        onChanged();
      }
      if (other.getType() != 0) {
        setType(other.getType());
      }
      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.CreateRegisteredOrderRequest parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.order.CreateRegisteredOrderRequest) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private int hospitalId_ ;
    /**
     * <pre>
     *医院ID
     * </pre>
     *
     * <code>int32 hospitalId = 1;</code>
     */
    public int getHospitalId() {
      return hospitalId_;
    }
    /**
     * <pre>
     *医院ID
     * </pre>
     *
     * <code>int32 hospitalId = 1;</code>
     */
    public Builder setHospitalId(int value) {
      
      hospitalId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医院ID
     * </pre>
     *
     * <code>int32 hospitalId = 1;</code>
     */
    public Builder clearHospitalId() {
      
      hospitalId_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object deptCode_ = "";
    /**
     * <pre>
     *科室Code
     * </pre>
     *
     * <code>string deptCode = 2;</code>
     */
    public java.lang.String getDeptCode() {
      java.lang.Object ref = deptCode_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        deptCode_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *科室Code
     * </pre>
     *
     * <code>string deptCode = 2;</code>
     */
    public com.google.protobuf.ByteString
        getDeptCodeBytes() {
      java.lang.Object ref = deptCode_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        deptCode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *科室Code
     * </pre>
     *
     * <code>string deptCode = 2;</code>
     */
    public Builder setDeptCode(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      deptCode_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *科室Code
     * </pre>
     *
     * <code>string deptCode = 2;</code>
     */
    public Builder clearDeptCode() {
      
      deptCode_ = getDefaultInstance().getDeptCode();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *科室Code
     * </pre>
     *
     * <code>string deptCode = 2;</code>
     */
    public Builder setDeptCodeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      deptCode_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object deptName_ = "";
    /**
     * <pre>
     *科室名称
     * </pre>
     *
     * <code>string deptName = 3;</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 = 3;</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 = 3;</code>
     */
    public Builder setDeptName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      deptName_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *科室名称
     * </pre>
     *
     * <code>string deptName = 3;</code>
     */
    public Builder clearDeptName() {
      
      deptName_ = getDefaultInstance().getDeptName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *科室名称
     * </pre>
     *
     * <code>string deptName = 3;</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 doctorCode_ = "";
    /**
     * <pre>
     *医生Code
     * </pre>
     *
     * <code>string doctorCode = 4;</code>
     */
    public java.lang.String getDoctorCode() {
      java.lang.Object ref = doctorCode_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        doctorCode_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *医生Code
     * </pre>
     *
     * <code>string doctorCode = 4;</code>
     */
    public com.google.protobuf.ByteString
        getDoctorCodeBytes() {
      java.lang.Object ref = doctorCode_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        doctorCode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *医生Code
     * </pre>
     *
     * <code>string doctorCode = 4;</code>
     */
    public Builder setDoctorCode(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      doctorCode_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医生Code
     * </pre>
     *
     * <code>string doctorCode = 4;</code>
     */
    public Builder clearDoctorCode() {
      
      doctorCode_ = getDefaultInstance().getDoctorCode();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医生Code
     * </pre>
     *
     * <code>string doctorCode = 4;</code>
     */
    public Builder setDoctorCodeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      doctorCode_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object doctorName_ = "";
    /**
     * <pre>
     *医生名称
     * </pre>
     *
     * <code>string doctorName = 5;</code>
     */
    public java.lang.String getDoctorName() {
      java.lang.Object ref = doctorName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        doctorName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *医生名称
     * </pre>
     *
     * <code>string doctorName = 5;</code>
     */
    public com.google.protobuf.ByteString
        getDoctorNameBytes() {
      java.lang.Object ref = doctorName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        doctorName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *医生名称
     * </pre>
     *
     * <code>string doctorName = 5;</code>
     */
    public Builder setDoctorName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      doctorName_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医生名称
     * </pre>
     *
     * <code>string doctorName = 5;</code>
     */
    public Builder clearDoctorName() {
      
      doctorName_ = getDefaultInstance().getDoctorName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医生名称
     * </pre>
     *
     * <code>string doctorName = 5;</code>
     */
    public Builder setDoctorNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      doctorName_ = value;
      onChanged();
      return this;
    }

    private int total_ ;
    /**
     * <pre>
     *预约挂号总费用
     * </pre>
     *
     * <code>int32 total = 6;</code>
     */
    public int getTotal() {
      return total_;
    }
    /**
     * <pre>
     *预约挂号总费用
     * </pre>
     *
     * <code>int32 total = 6;</code>
     */
    public Builder setTotal(int value) {
      
      total_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *预约挂号总费用
     * </pre>
     *
     * <code>int32 total = 6;</code>
     */
    public Builder clearTotal() {
      
      total_ = 0;
      onChanged();
      return this;
    }

    private int registeredFee_ ;
    /**
     * <pre>
     *挂号费
     * </pre>
     *
     * <code>int32 registeredFee = 7;</code>
     */
    public int getRegisteredFee() {
      return registeredFee_;
    }
    /**
     * <pre>
     *挂号费
     * </pre>
     *
     * <code>int32 registeredFee = 7;</code>
     */
    public Builder setRegisteredFee(int value) {
      
      registeredFee_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *挂号费
     * </pre>
     *
     * <code>int32 registeredFee = 7;</code>
     */
    public Builder clearRegisteredFee() {
      
      registeredFee_ = 0;
      onChanged();
      return this;
    }

    private int medicalFee_ ;
    /**
     * <pre>
     *诊查费
     * </pre>
     *
     * <code>int32 medicalFee = 8;</code>
     */
    public int getMedicalFee() {
      return medicalFee_;
    }
    /**
     * <pre>
     *诊查费
     * </pre>
     *
     * <code>int32 medicalFee = 8;</code>
     */
    public Builder setMedicalFee(int value) {
      
      medicalFee_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *诊查费
     * </pre>
     *
     * <code>int32 medicalFee = 8;</code>
     */
    public Builder clearMedicalFee() {
      
      medicalFee_ = 0;
      onChanged();
      return this;
    }

    private long registeredDate_ ;
    /**
     * <pre>
     *预约日期
     * </pre>
     *
     * <code>int64 registeredDate = 9;</code>
     */
    public long getRegisteredDate() {
      return registeredDate_;
    }
    /**
     * <pre>
     *预约日期
     * </pre>
     *
     * <code>int64 registeredDate = 9;</code>
     */
    public Builder setRegisteredDate(long value) {
      
      registeredDate_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *预约日期
     * </pre>
     *
     * <code>int64 registeredDate = 9;</code>
     */
    public Builder clearRegisteredDate() {
      
      registeredDate_ = 0L;
      onChanged();
      return this;
    }

    private int period_ ;
    /**
     * <pre>
     *预约时间段
     * </pre>
     *
     * <code>int32 period = 10;</code>
     */
    public int getPeriod() {
      return period_;
    }
    /**
     * <pre>
     *预约时间段
     * </pre>
     *
     * <code>int32 period = 10;</code>
     */
    public Builder setPeriod(int value) {
      
      period_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *预约时间段
     * </pre>
     *
     * <code>int32 period = 10;</code>
     */
    public Builder clearPeriod() {
      
      period_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object startTime_ = "";
    /**
     * <pre>
     *预约开始时间：HH:MI
     * </pre>
     *
     * <code>string startTime = 11;</code>
     */
    public java.lang.String getStartTime() {
      java.lang.Object ref = startTime_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        startTime_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *预约开始时间：HH:MI
     * </pre>
     *
     * <code>string startTime = 11;</code>
     */
    public com.google.protobuf.ByteString
        getStartTimeBytes() {
      java.lang.Object ref = startTime_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        startTime_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *预约开始时间：HH:MI
     * </pre>
     *
     * <code>string startTime = 11;</code>
     */
    public Builder setStartTime(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      startTime_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *预约开始时间：HH:MI
     * </pre>
     *
     * <code>string startTime = 11;</code>
     */
    public Builder clearStartTime() {
      
      startTime_ = getDefaultInstance().getStartTime();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *预约开始时间：HH:MI
     * </pre>
     *
     * <code>string startTime = 11;</code>
     */
    public Builder setStartTimeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      startTime_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object endTime_ = "";
    /**
     * <pre>
     *预约结束时间：HH:MI
     * </pre>
     *
     * <code>string endTime = 12;</code>
     */
    public java.lang.String getEndTime() {
      java.lang.Object ref = endTime_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        endTime_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *预约结束时间：HH:MI
     * </pre>
     *
     * <code>string endTime = 12;</code>
     */
    public com.google.protobuf.ByteString
        getEndTimeBytes() {
      java.lang.Object ref = endTime_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        endTime_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *预约结束时间：HH:MI
     * </pre>
     *
     * <code>string endTime = 12;</code>
     */
    public Builder setEndTime(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      endTime_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *预约结束时间：HH:MI
     * </pre>
     *
     * <code>string endTime = 12;</code>
     */
    public Builder clearEndTime() {
      
      endTime_ = getDefaultInstance().getEndTime();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *预约结束时间：HH:MI
     * </pre>
     *
     * <code>string endTime = 12;</code>
     */
    public Builder setEndTimeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      endTime_ = value;
      onChanged();
      return this;
    }

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

    private int medicalCardId_ ;
    /**
     * <pre>
     *患者ID（即家人ID)
     * </pre>
     *
     * <code>int32 medicalCardId = 14;</code>
     */
    public int getMedicalCardId() {
      return medicalCardId_;
    }
    /**
     * <pre>
     *患者ID（即家人ID)
     * </pre>
     *
     * <code>int32 medicalCardId = 14;</code>
     */
    public Builder setMedicalCardId(int value) {
      
      medicalCardId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *患者ID（即家人ID)
     * </pre>
     *
     * <code>int32 medicalCardId = 14;</code>
     */
    public Builder clearMedicalCardId() {
      
      medicalCardId_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object scheduleItemCode_ = "";
    /**
     * <pre>
     *门诊排班项记录标识
     * </pre>
     *
     * <code>string scheduleItemCode = 15;</code>
     */
    public java.lang.String getScheduleItemCode() {
      java.lang.Object ref = scheduleItemCode_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        scheduleItemCode_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *门诊排班项记录标识
     * </pre>
     *
     * <code>string scheduleItemCode = 15;</code>
     */
    public com.google.protobuf.ByteString
        getScheduleItemCodeBytes() {
      java.lang.Object ref = scheduleItemCode_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        scheduleItemCode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *门诊排班项记录标识
     * </pre>
     *
     * <code>string scheduleItemCode = 15;</code>
     */
    public Builder setScheduleItemCode(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      scheduleItemCode_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *门诊排班项记录标识
     * </pre>
     *
     * <code>string scheduleItemCode = 15;</code>
     */
    public Builder clearScheduleItemCode() {
      
      scheduleItemCode_ = getDefaultInstance().getScheduleItemCode();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *门诊排班项记录标识
     * </pre>
     *
     * <code>string scheduleItemCode = 15;</code>
     */
    public Builder setScheduleItemCodeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      scheduleItemCode_ = value;
      onChanged();
      return this;
    }

    private int paymentChannel_ ;
    /**
     * <pre>
     *支付渠道
     * </pre>
     *
     * <code>int32 paymentChannel = 16;</code>
     */
    public int getPaymentChannel() {
      return paymentChannel_;
    }
    /**
     * <pre>
     *支付渠道
     * </pre>
     *
     * <code>int32 paymentChannel = 16;</code>
     */
    public Builder setPaymentChannel(int value) {
      
      paymentChannel_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *支付渠道
     * </pre>
     *
     * <code>int32 paymentChannel = 16;</code>
     */
    public Builder clearPaymentChannel() {
      
      paymentChannel_ = 0;
      onChanged();
      return this;
    }

    private int source_ ;
    /**
     * <pre>
     *订单来源
     * </pre>
     *
     * <code>int32 source = 17;</code>
     */
    public int getSource() {
      return source_;
    }
    /**
     * <pre>
     *订单来源
     * </pre>
     *
     * <code>int32 source = 17;</code>
     */
    public Builder setSource(int value) {
      
      source_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *订单来源
     * </pre>
     *
     * <code>int32 source = 17;</code>
     */
    public Builder clearSource() {
      
      source_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object doctorTitle_ = "";
    /**
     * <pre>
     *医生职称
     * </pre>
     *
     * <code>string doctorTitle = 18;</code>
     */
    public java.lang.String getDoctorTitle() {
      java.lang.Object ref = doctorTitle_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        doctorTitle_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *医生职称
     * </pre>
     *
     * <code>string doctorTitle = 18;</code>
     */
    public com.google.protobuf.ByteString
        getDoctorTitleBytes() {
      java.lang.Object ref = doctorTitle_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        doctorTitle_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *医生职称
     * </pre>
     *
     * <code>string doctorTitle = 18;</code>
     */
    public Builder setDoctorTitle(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      doctorTitle_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医生职称
     * </pre>
     *
     * <code>string doctorTitle = 18;</code>
     */
    public Builder clearDoctorTitle() {
      
      doctorTitle_ = getDefaultInstance().getDoctorTitle();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医生职称
     * </pre>
     *
     * <code>string doctorTitle = 18;</code>
     */
    public Builder setDoctorTitleBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      doctorTitle_ = value;
      onChanged();
      return this;
    }

    private int type_ ;
    /**
     * <pre>
     *挂号类型：0-普通预约 2-加号预约
     * </pre>
     *
     * <code>int32 type = 19;</code>
     */
    public int getType() {
      return type_;
    }
    /**
     * <pre>
     *挂号类型：0-普通预约 2-加号预约
     * </pre>
     *
     * <code>int32 type = 19;</code>
     */
    public Builder setType(int value) {
      
      type_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *挂号类型：0-普通预约 2-加号预约
     * </pre>
     *
     * <code>int32 type = 19;</code>
     */
    public Builder clearType() {
      
      type_ = 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.CreateRegisteredOrderRequest)
  }

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

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

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

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

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

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

}

