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

package com.ywt.gapi.taihe.register;

/**
 * <pre>
 *挂号Request
 * </pre>
 *
 * Protobuf type {@code com.ywt.gapi.taihe.register.CreateRegisteredRequest}
 */
public final class CreateRegisteredRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.taihe.register.CreateRegisteredRequest)
    CreateRegisteredRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use CreateRegisteredRequest.newBuilder() to construct.
  private CreateRegisteredRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private CreateRegisteredRequest() {
    doctorTitle_ = "";
    deptCode_ = "";
    deptName_ = "";
    doctorCode_ = "";
    doctorName_ = "";
    startTime_ = "";
    endTime_ = "";
    scheduleItemCode_ = "";
    lockQueueNo_ = "";
    availableNumStr_ = "";
    doctorSessTypeCode_ = "";
    doctorSessTypeName_ = "";
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new CreateRegisteredRequest();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private CreateRegisteredRequest(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 10: {
            java.lang.String s = input.readStringRequireUtf8();

            doctorTitle_ = s;
            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 144: {

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

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

            availableNumStr_ = s;
            break;
          }
          case 168: {

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

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

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

            doctorSessTypeName_ = s;
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            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 {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.ywt.gapi.taihe.register.TaiheRegisterProto.internal_static_com_ywt_gapi_taihe_register_CreateRegisteredRequest_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.taihe.register.TaiheRegisterProto.internal_static_com_ywt_gapi_taihe_register_CreateRegisteredRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.taihe.register.CreateRegisteredRequest.class, com.ywt.gapi.taihe.register.CreateRegisteredRequest.Builder.class);
  }

  public static final int DOCTORTITLE_FIELD_NUMBER = 1;
  private volatile java.lang.Object doctorTitle_;
  /**
   * <pre>
   *医生职称
   * </pre>
   *
   * <code>string doctorTitle = 1;</code>
   * @return The doctorTitle.
   */
  @java.lang.Override
  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 = 1;</code>
   * @return The bytes for doctorTitle.
   */
  @java.lang.Override
  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 DEPTCODE_FIELD_NUMBER = 2;
  private volatile java.lang.Object deptCode_;
  /**
   * <pre>
   *科室Code
   * </pre>
   *
   * <code>string deptCode = 2;</code>
   * @return The deptCode.
   */
  @java.lang.Override
  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>
   * @return The bytes for deptCode.
   */
  @java.lang.Override
  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>
   * @return The deptName.
   */
  @java.lang.Override
  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>
   * @return The bytes for deptName.
   */
  @java.lang.Override
  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>
   * @return The doctorCode.
   */
  @java.lang.Override
  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>
   * @return The bytes for doctorCode.
   */
  @java.lang.Override
  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>
   * @return The doctorName.
   */
  @java.lang.Override
  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>
   * @return The bytes for doctorName.
   */
  @java.lang.Override
  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>
   * @return The total.
   */
  @java.lang.Override
  public int getTotal() {
    return total_;
  }

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

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

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

  public static final int PERIOD_FIELD_NUMBER = 10;
  private int period_;
  /**
   * <pre>
   *预约时间段
   * </pre>
   *
   * <code>int32 period = 10;</code>
   * @return The period.
   */
  @java.lang.Override
  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>
   * @return The startTime.
   */
  @java.lang.Override
  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>
   * @return The bytes for startTime.
   */
  @java.lang.Override
  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>
   * @return The endTime.
   */
  @java.lang.Override
  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>
   * @return The bytes for endTime.
   */
  @java.lang.Override
  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>
   * @return The userId.
   */
  @java.lang.Override
  public int getUserId() {
    return userId_;
  }

  public static final int MEDICALCARDID_FIELD_NUMBER = 14;
  private int medicalCardId_;
  /**
   * <pre>
   *诊疗卡ID
   * </pre>
   *
   * <code>int32 medicalCardId = 14;</code>
   * @return The medicalCardId.
   */
  @java.lang.Override
  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>
   * @return The scheduleItemCode.
   */
  @java.lang.Override
  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>
   * @return The bytes for scheduleItemCode.
   */
  @java.lang.Override
  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>
   * @return The paymentChannel.
   */
  @java.lang.Override
  public int getPaymentChannel() {
    return paymentChannel_;
  }

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

  public static final int DEPTID_FIELD_NUMBER = 18;
  private int deptId_;
  /**
   * <pre>
   *科室ID
   * </pre>
   *
   * <code>int32 deptId = 18;</code>
   * @return The deptId.
   */
  @java.lang.Override
  public int getDeptId() {
    return deptId_;
  }

  public static final int LOCKQUEUENO_FIELD_NUMBER = 19;
  private volatile java.lang.Object lockQueueNo_;
  /**
   * <code>string lockQueueNo = 19;</code>
   * @return The lockQueueNo.
   */
  @java.lang.Override
  public java.lang.String getLockQueueNo() {
    java.lang.Object ref = lockQueueNo_;
    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();
      lockQueueNo_ = s;
      return s;
    }
  }
  /**
   * <code>string lockQueueNo = 19;</code>
   * @return The bytes for lockQueueNo.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getLockQueueNoBytes() {
    java.lang.Object ref = lockQueueNo_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      lockQueueNo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int AVAILABLENUMSTR_FIELD_NUMBER = 20;
  private volatile java.lang.Object availableNumStr_;
  /**
   * <code>string availableNumStr = 20;</code>
   * @return The availableNumStr.
   */
  @java.lang.Override
  public java.lang.String getAvailableNumStr() {
    java.lang.Object ref = availableNumStr_;
    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();
      availableNumStr_ = s;
      return s;
    }
  }
  /**
   * <code>string availableNumStr = 20;</code>
   * @return The bytes for availableNumStr.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getAvailableNumStrBytes() {
    java.lang.Object ref = availableNumStr_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      availableNumStr_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int HOSPITALID_FIELD_NUMBER = 21;
  private int hospitalId_;
  /**
   * <code>int32 hospitalId = 21;</code>
   * @return The hospitalId.
   */
  @java.lang.Override
  public int getHospitalId() {
    return hospitalId_;
  }

  public static final int SUBHOSPITALID_FIELD_NUMBER = 22;
  private int subHospitalId_;
  /**
   * <pre>
   * 分院 id
   * </pre>
   *
   * <code>int32 subHospitalId = 22;</code>
   * @return The subHospitalId.
   */
  @java.lang.Override
  public int getSubHospitalId() {
    return subHospitalId_;
  }

  public static final int DOCTORSESSTYPECODE_FIELD_NUMBER = 23;
  private volatile java.lang.Object doctorSessTypeCode_;
  /**
   * <pre>
   * 出诊级别code
   * </pre>
   *
   * <code>string doctorSessTypeCode = 23;</code>
   * @return The doctorSessTypeCode.
   */
  @java.lang.Override
  public java.lang.String getDoctorSessTypeCode() {
    java.lang.Object ref = doctorSessTypeCode_;
    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();
      doctorSessTypeCode_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 出诊级别code
   * </pre>
   *
   * <code>string doctorSessTypeCode = 23;</code>
   * @return The bytes for doctorSessTypeCode.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getDoctorSessTypeCodeBytes() {
    java.lang.Object ref = doctorSessTypeCode_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      doctorSessTypeCode_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DOCTORSESSTYPENAME_FIELD_NUMBER = 24;
  private volatile java.lang.Object doctorSessTypeName_;
  /**
   * <pre>
   * 出诊级别name
   * </pre>
   *
   * <code>string doctorSessTypeName = 24;</code>
   * @return The doctorSessTypeName.
   */
  @java.lang.Override
  public java.lang.String getDoctorSessTypeName() {
    java.lang.Object ref = doctorSessTypeName_;
    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();
      doctorSessTypeName_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 出诊级别name
   * </pre>
   *
   * <code>string doctorSessTypeName = 24;</code>
   * @return The bytes for doctorSessTypeName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getDoctorSessTypeNameBytes() {
    java.lang.Object ref = doctorSessTypeName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      doctorSessTypeName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  private byte memoizedIsInitialized = -1;
  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorTitle_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, doctorTitle_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deptCode_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, deptCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deptName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, deptName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorCode_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, doctorCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorName_)) {
      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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startTime_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 11, startTime_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endTime_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 12, endTime_);
    }
    if (userId_ != 0) {
      output.writeInt32(13, userId_);
    }
    if (medicalCardId_ != 0) {
      output.writeInt32(14, medicalCardId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scheduleItemCode_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 15, scheduleItemCode_);
    }
    if (paymentChannel_ != 0) {
      output.writeInt32(16, paymentChannel_);
    }
    if (source_ != 0) {
      output.writeInt32(17, source_);
    }
    if (deptId_ != 0) {
      output.writeInt32(18, deptId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lockQueueNo_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 19, lockQueueNo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(availableNumStr_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 20, availableNumStr_);
    }
    if (hospitalId_ != 0) {
      output.writeInt32(21, hospitalId_);
    }
    if (subHospitalId_ != 0) {
      output.writeInt32(22, subHospitalId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorSessTypeCode_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 23, doctorSessTypeCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorSessTypeName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 24, doctorSessTypeName_);
    }
    unknownFields.writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorTitle_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, doctorTitle_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deptCode_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, deptCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deptName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, deptName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorCode_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, doctorCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorName_)) {
      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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startTime_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, startTime_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endTime_)) {
      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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scheduleItemCode_)) {
      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 (deptId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(18, deptId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lockQueueNo_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, lockQueueNo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(availableNumStr_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, availableNumStr_);
    }
    if (hospitalId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(21, hospitalId_);
    }
    if (subHospitalId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(22, subHospitalId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorSessTypeCode_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, doctorSessTypeCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorSessTypeName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(24, doctorSessTypeName_);
    }
    size += unknownFields.getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof com.ywt.gapi.taihe.register.CreateRegisteredRequest)) {
      return super.equals(obj);
    }
    com.ywt.gapi.taihe.register.CreateRegisteredRequest other = (com.ywt.gapi.taihe.register.CreateRegisteredRequest) obj;

    if (!getDoctorTitle()
        .equals(other.getDoctorTitle())) return false;
    if (!getDeptCode()
        .equals(other.getDeptCode())) return false;
    if (!getDeptName()
        .equals(other.getDeptName())) return false;
    if (!getDoctorCode()
        .equals(other.getDoctorCode())) return false;
    if (!getDoctorName()
        .equals(other.getDoctorName())) return false;
    if (getTotal()
        != other.getTotal()) return false;
    if (getRegisteredFee()
        != other.getRegisteredFee()) return false;
    if (getMedicalFee()
        != other.getMedicalFee()) return false;
    if (getRegisteredDate()
        != other.getRegisteredDate()) return false;
    if (getPeriod()
        != other.getPeriod()) return false;
    if (!getStartTime()
        .equals(other.getStartTime())) return false;
    if (!getEndTime()
        .equals(other.getEndTime())) return false;
    if (getUserId()
        != other.getUserId()) return false;
    if (getMedicalCardId()
        != other.getMedicalCardId()) return false;
    if (!getScheduleItemCode()
        .equals(other.getScheduleItemCode())) return false;
    if (getPaymentChannel()
        != other.getPaymentChannel()) return false;
    if (getSource()
        != other.getSource()) return false;
    if (getDeptId()
        != other.getDeptId()) return false;
    if (!getLockQueueNo()
        .equals(other.getLockQueueNo())) return false;
    if (!getAvailableNumStr()
        .equals(other.getAvailableNumStr())) return false;
    if (getHospitalId()
        != other.getHospitalId()) return false;
    if (getSubHospitalId()
        != other.getSubHospitalId()) return false;
    if (!getDoctorSessTypeCode()
        .equals(other.getDoctorSessTypeCode())) return false;
    if (!getDoctorSessTypeName()
        .equals(other.getDoctorSessTypeName())) return false;
    if (!unknownFields.equals(other.unknownFields)) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + DOCTORTITLE_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorTitle().hashCode();
    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) + DEPTID_FIELD_NUMBER;
    hash = (53 * hash) + getDeptId();
    hash = (37 * hash) + LOCKQUEUENO_FIELD_NUMBER;
    hash = (53 * hash) + getLockQueueNo().hashCode();
    hash = (37 * hash) + AVAILABLENUMSTR_FIELD_NUMBER;
    hash = (53 * hash) + getAvailableNumStr().hashCode();
    hash = (37 * hash) + HOSPITALID_FIELD_NUMBER;
    hash = (53 * hash) + getHospitalId();
    hash = (37 * hash) + SUBHOSPITALID_FIELD_NUMBER;
    hash = (53 * hash) + getSubHospitalId();
    hash = (37 * hash) + DOCTORSESSTYPECODE_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorSessTypeCode().hashCode();
    hash = (37 * hash) + DOCTORSESSTYPENAME_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorSessTypeName().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.ywt.gapi.taihe.register.CreateRegisteredRequest parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.taihe.register.CreateRegisteredRequest 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.taihe.register.CreateRegisteredRequest parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.taihe.register.CreateRegisteredRequest 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.taihe.register.CreateRegisteredRequest parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.taihe.register.CreateRegisteredRequest parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.taihe.register.CreateRegisteredRequest parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.taihe.register.CreateRegisteredRequest 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.taihe.register.CreateRegisteredRequest parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.taihe.register.CreateRegisteredRequest 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.taihe.register.CreateRegisteredRequest parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.taihe.register.CreateRegisteredRequest parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(com.ywt.gapi.taihe.register.CreateRegisteredRequest prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  @java.lang.Override
  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>
   *挂号Request
   * </pre>
   *
   * Protobuf type {@code com.ywt.gapi.taihe.register.CreateRegisteredRequest}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.taihe.register.CreateRegisteredRequest)
      com.ywt.gapi.taihe.register.CreateRegisteredRequestOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.taihe.register.TaiheRegisterProto.internal_static_com_ywt_gapi_taihe_register_CreateRegisteredRequest_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.taihe.register.TaiheRegisterProto.internal_static_com_ywt_gapi_taihe_register_CreateRegisteredRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.taihe.register.CreateRegisteredRequest.class, com.ywt.gapi.taihe.register.CreateRegisteredRequest.Builder.class);
    }

    // Construct using com.ywt.gapi.taihe.register.CreateRegisteredRequest.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      doctorTitle_ = "";

      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;

      deptId_ = 0;

      lockQueueNo_ = "";

      availableNumStr_ = "";

      hospitalId_ = 0;

      subHospitalId_ = 0;

      doctorSessTypeCode_ = "";

      doctorSessTypeName_ = "";

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.taihe.register.TaiheRegisterProto.internal_static_com_ywt_gapi_taihe_register_CreateRegisteredRequest_descriptor;
    }

    @java.lang.Override
    public com.ywt.gapi.taihe.register.CreateRegisteredRequest getDefaultInstanceForType() {
      return com.ywt.gapi.taihe.register.CreateRegisteredRequest.getDefaultInstance();
    }

    @java.lang.Override
    public com.ywt.gapi.taihe.register.CreateRegisteredRequest build() {
      com.ywt.gapi.taihe.register.CreateRegisteredRequest result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.ywt.gapi.taihe.register.CreateRegisteredRequest buildPartial() {
      com.ywt.gapi.taihe.register.CreateRegisteredRequest result = new com.ywt.gapi.taihe.register.CreateRegisteredRequest(this);
      result.doctorTitle_ = doctorTitle_;
      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.deptId_ = deptId_;
      result.lockQueueNo_ = lockQueueNo_;
      result.availableNumStr_ = availableNumStr_;
      result.hospitalId_ = hospitalId_;
      result.subHospitalId_ = subHospitalId_;
      result.doctorSessTypeCode_ = doctorSessTypeCode_;
      result.doctorSessTypeName_ = doctorSessTypeName_;
      onBuilt();
      return result;
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }
    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.setField(field, value);
    }
    @java.lang.Override
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }
    @java.lang.Override
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }
    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }
    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }
    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.ywt.gapi.taihe.register.CreateRegisteredRequest) {
        return mergeFrom((com.ywt.gapi.taihe.register.CreateRegisteredRequest)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.taihe.register.CreateRegisteredRequest other) {
      if (other == com.ywt.gapi.taihe.register.CreateRegisteredRequest.getDefaultInstance()) return this;
      if (!other.getDoctorTitle().isEmpty()) {
        doctorTitle_ = other.doctorTitle_;
        onChanged();
      }
      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.getDeptId() != 0) {
        setDeptId(other.getDeptId());
      }
      if (!other.getLockQueueNo().isEmpty()) {
        lockQueueNo_ = other.lockQueueNo_;
        onChanged();
      }
      if (!other.getAvailableNumStr().isEmpty()) {
        availableNumStr_ = other.availableNumStr_;
        onChanged();
      }
      if (other.getHospitalId() != 0) {
        setHospitalId(other.getHospitalId());
      }
      if (other.getSubHospitalId() != 0) {
        setSubHospitalId(other.getSubHospitalId());
      }
      if (!other.getDoctorSessTypeCode().isEmpty()) {
        doctorSessTypeCode_ = other.doctorSessTypeCode_;
        onChanged();
      }
      if (!other.getDoctorSessTypeName().isEmpty()) {
        doctorSessTypeName_ = other.doctorSessTypeName_;
        onChanged();
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      com.ywt.gapi.taihe.register.CreateRegisteredRequest parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.taihe.register.CreateRegisteredRequest) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private java.lang.Object doctorTitle_ = "";
    /**
     * <pre>
     *医生职称
     * </pre>
     *
     * <code>string doctorTitle = 1;</code>
     * @return The doctorTitle.
     */
    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 = 1;</code>
     * @return The bytes for doctorTitle.
     */
    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 = 1;</code>
     * @param value The doctorTitle to set.
     * @return This builder for chaining.
     */
    public Builder setDoctorTitle(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      doctorTitle_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医生职称
     * </pre>
     *
     * <code>string doctorTitle = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearDoctorTitle() {
      
      doctorTitle_ = getDefaultInstance().getDoctorTitle();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医生职称
     * </pre>
     *
     * <code>string doctorTitle = 1;</code>
     * @param value The bytes for doctorTitle to set.
     * @return This builder for chaining.
     */
    public Builder setDoctorTitleBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      doctorTitle_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object deptCode_ = "";
    /**
     * <pre>
     *科室Code
     * </pre>
     *
     * <code>string deptCode = 2;</code>
     * @return The deptCode.
     */
    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>
     * @return The bytes for deptCode.
     */
    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>
     * @param value The deptCode to set.
     * @return This builder for chaining.
     */
    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>
     * @return This builder for chaining.
     */
    public Builder clearDeptCode() {
      
      deptCode_ = getDefaultInstance().getDeptCode();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *科室Code
     * </pre>
     *
     * <code>string deptCode = 2;</code>
     * @param value The bytes for deptCode to set.
     * @return This builder for chaining.
     */
    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>
     * @return The deptName.
     */
    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>
     * @return The bytes for deptName.
     */
    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>
     * @param value The deptName to set.
     * @return This builder for chaining.
     */
    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>
     * @return This builder for chaining.
     */
    public Builder clearDeptName() {
      
      deptName_ = getDefaultInstance().getDeptName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *科室名称
     * </pre>
     *
     * <code>string deptName = 3;</code>
     * @param value The bytes for deptName to set.
     * @return This builder for chaining.
     */
    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>
     * @return The doctorCode.
     */
    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>
     * @return The bytes for doctorCode.
     */
    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>
     * @param value The doctorCode to set.
     * @return This builder for chaining.
     */
    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>
     * @return This builder for chaining.
     */
    public Builder clearDoctorCode() {
      
      doctorCode_ = getDefaultInstance().getDoctorCode();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医生Code
     * </pre>
     *
     * <code>string doctorCode = 4;</code>
     * @param value The bytes for doctorCode to set.
     * @return This builder for chaining.
     */
    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>
     * @return The doctorName.
     */
    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>
     * @return The bytes for doctorName.
     */
    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>
     * @param value The doctorName to set.
     * @return This builder for chaining.
     */
    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>
     * @return This builder for chaining.
     */
    public Builder clearDoctorName() {
      
      doctorName_ = getDefaultInstance().getDoctorName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医生名称
     * </pre>
     *
     * <code>string doctorName = 5;</code>
     * @param value The bytes for doctorName to set.
     * @return This builder for chaining.
     */
    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>
     * @return The total.
     */
    @java.lang.Override
    public int getTotal() {
      return total_;
    }
    /**
     * <pre>
     *预约挂号总费用
     * </pre>
     *
     * <code>int32 total = 6;</code>
     * @param value The total to set.
     * @return This builder for chaining.
     */
    public Builder setTotal(int value) {
      
      total_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *预约挂号总费用
     * </pre>
     *
     * <code>int32 total = 6;</code>
     * @return This builder for chaining.
     */
    public Builder clearTotal() {
      
      total_ = 0;
      onChanged();
      return this;
    }

    private int registeredFee_ ;
    /**
     * <pre>
     *挂号费
     * </pre>
     *
     * <code>int32 registeredFee = 7;</code>
     * @return The registeredFee.
     */
    @java.lang.Override
    public int getRegisteredFee() {
      return registeredFee_;
    }
    /**
     * <pre>
     *挂号费
     * </pre>
     *
     * <code>int32 registeredFee = 7;</code>
     * @param value The registeredFee to set.
     * @return This builder for chaining.
     */
    public Builder setRegisteredFee(int value) {
      
      registeredFee_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *挂号费
     * </pre>
     *
     * <code>int32 registeredFee = 7;</code>
     * @return This builder for chaining.
     */
    public Builder clearRegisteredFee() {
      
      registeredFee_ = 0;
      onChanged();
      return this;
    }

    private int medicalFee_ ;
    /**
     * <pre>
     *诊查费
     * </pre>
     *
     * <code>int32 medicalFee = 8;</code>
     * @return The medicalFee.
     */
    @java.lang.Override
    public int getMedicalFee() {
      return medicalFee_;
    }
    /**
     * <pre>
     *诊查费
     * </pre>
     *
     * <code>int32 medicalFee = 8;</code>
     * @param value The medicalFee to set.
     * @return This builder for chaining.
     */
    public Builder setMedicalFee(int value) {
      
      medicalFee_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *诊查费
     * </pre>
     *
     * <code>int32 medicalFee = 8;</code>
     * @return This builder for chaining.
     */
    public Builder clearMedicalFee() {
      
      medicalFee_ = 0;
      onChanged();
      return this;
    }

    private long registeredDate_ ;
    /**
     * <pre>
     *预约日期
     * </pre>
     *
     * <code>int64 registeredDate = 9;</code>
     * @return The registeredDate.
     */
    @java.lang.Override
    public long getRegisteredDate() {
      return registeredDate_;
    }
    /**
     * <pre>
     *预约日期
     * </pre>
     *
     * <code>int64 registeredDate = 9;</code>
     * @param value The registeredDate to set.
     * @return This builder for chaining.
     */
    public Builder setRegisteredDate(long value) {
      
      registeredDate_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *预约日期
     * </pre>
     *
     * <code>int64 registeredDate = 9;</code>
     * @return This builder for chaining.
     */
    public Builder clearRegisteredDate() {
      
      registeredDate_ = 0L;
      onChanged();
      return this;
    }

    private int period_ ;
    /**
     * <pre>
     *预约时间段
     * </pre>
     *
     * <code>int32 period = 10;</code>
     * @return The period.
     */
    @java.lang.Override
    public int getPeriod() {
      return period_;
    }
    /**
     * <pre>
     *预约时间段
     * </pre>
     *
     * <code>int32 period = 10;</code>
     * @param value The period to set.
     * @return This builder for chaining.
     */
    public Builder setPeriod(int value) {
      
      period_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *预约时间段
     * </pre>
     *
     * <code>int32 period = 10;</code>
     * @return This builder for chaining.
     */
    public Builder clearPeriod() {
      
      period_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object startTime_ = "";
    /**
     * <pre>
     *预约开始时间：HH:MI
     * </pre>
     *
     * <code>string startTime = 11;</code>
     * @return The startTime.
     */
    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>
     * @return The bytes for startTime.
     */
    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>
     * @param value The startTime to set.
     * @return This builder for chaining.
     */
    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>
     * @return This builder for chaining.
     */
    public Builder clearStartTime() {
      
      startTime_ = getDefaultInstance().getStartTime();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *预约开始时间：HH:MI
     * </pre>
     *
     * <code>string startTime = 11;</code>
     * @param value The bytes for startTime to set.
     * @return This builder for chaining.
     */
    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>
     * @return The endTime.
     */
    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>
     * @return The bytes for endTime.
     */
    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>
     * @param value The endTime to set.
     * @return This builder for chaining.
     */
    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>
     * @return This builder for chaining.
     */
    public Builder clearEndTime() {
      
      endTime_ = getDefaultInstance().getEndTime();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *预约结束时间：HH:MI
     * </pre>
     *
     * <code>string endTime = 12;</code>
     * @param value The bytes for endTime to set.
     * @return This builder for chaining.
     */
    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>
     * @return The userId.
     */
    @java.lang.Override
    public int getUserId() {
      return userId_;
    }
    /**
     * <pre>
     *用户ID
     * </pre>
     *
     * <code>int32 userId = 13;</code>
     * @param value The userId to set.
     * @return This builder for chaining.
     */
    public Builder setUserId(int value) {
      
      userId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *用户ID
     * </pre>
     *
     * <code>int32 userId = 13;</code>
     * @return This builder for chaining.
     */
    public Builder clearUserId() {
      
      userId_ = 0;
      onChanged();
      return this;
    }

    private int medicalCardId_ ;
    /**
     * <pre>
     *诊疗卡ID
     * </pre>
     *
     * <code>int32 medicalCardId = 14;</code>
     * @return The medicalCardId.
     */
    @java.lang.Override
    public int getMedicalCardId() {
      return medicalCardId_;
    }
    /**
     * <pre>
     *诊疗卡ID
     * </pre>
     *
     * <code>int32 medicalCardId = 14;</code>
     * @param value The medicalCardId to set.
     * @return This builder for chaining.
     */
    public Builder setMedicalCardId(int value) {
      
      medicalCardId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *诊疗卡ID
     * </pre>
     *
     * <code>int32 medicalCardId = 14;</code>
     * @return This builder for chaining.
     */
    public Builder clearMedicalCardId() {
      
      medicalCardId_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object scheduleItemCode_ = "";
    /**
     * <pre>
     *门诊排班项记录标识
     * </pre>
     *
     * <code>string scheduleItemCode = 15;</code>
     * @return The scheduleItemCode.
     */
    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>
     * @return The bytes for scheduleItemCode.
     */
    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>
     * @param value The scheduleItemCode to set.
     * @return This builder for chaining.
     */
    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>
     * @return This builder for chaining.
     */
    public Builder clearScheduleItemCode() {
      
      scheduleItemCode_ = getDefaultInstance().getScheduleItemCode();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *门诊排班项记录标识
     * </pre>
     *
     * <code>string scheduleItemCode = 15;</code>
     * @param value The bytes for scheduleItemCode to set.
     * @return This builder for chaining.
     */
    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>
     * @return The paymentChannel.
     */
    @java.lang.Override
    public int getPaymentChannel() {
      return paymentChannel_;
    }
    /**
     * <pre>
     *支付渠道
     * </pre>
     *
     * <code>int32 paymentChannel = 16;</code>
     * @param value The paymentChannel to set.
     * @return This builder for chaining.
     */
    public Builder setPaymentChannel(int value) {
      
      paymentChannel_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *支付渠道
     * </pre>
     *
     * <code>int32 paymentChannel = 16;</code>
     * @return This builder for chaining.
     */
    public Builder clearPaymentChannel() {
      
      paymentChannel_ = 0;
      onChanged();
      return this;
    }

    private int source_ ;
    /**
     * <pre>
     *订单来源
     * </pre>
     *
     * <code>int32 source = 17;</code>
     * @return The source.
     */
    @java.lang.Override
    public int getSource() {
      return source_;
    }
    /**
     * <pre>
     *订单来源
     * </pre>
     *
     * <code>int32 source = 17;</code>
     * @param value The source to set.
     * @return This builder for chaining.
     */
    public Builder setSource(int value) {
      
      source_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *订单来源
     * </pre>
     *
     * <code>int32 source = 17;</code>
     * @return This builder for chaining.
     */
    public Builder clearSource() {
      
      source_ = 0;
      onChanged();
      return this;
    }

    private int deptId_ ;
    /**
     * <pre>
     *科室ID
     * </pre>
     *
     * <code>int32 deptId = 18;</code>
     * @return The deptId.
     */
    @java.lang.Override
    public int getDeptId() {
      return deptId_;
    }
    /**
     * <pre>
     *科室ID
     * </pre>
     *
     * <code>int32 deptId = 18;</code>
     * @param value The deptId to set.
     * @return This builder for chaining.
     */
    public Builder setDeptId(int value) {
      
      deptId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *科室ID
     * </pre>
     *
     * <code>int32 deptId = 18;</code>
     * @return This builder for chaining.
     */
    public Builder clearDeptId() {
      
      deptId_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object lockQueueNo_ = "";
    /**
     * <code>string lockQueueNo = 19;</code>
     * @return The lockQueueNo.
     */
    public java.lang.String getLockQueueNo() {
      java.lang.Object ref = lockQueueNo_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        lockQueueNo_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string lockQueueNo = 19;</code>
     * @return The bytes for lockQueueNo.
     */
    public com.google.protobuf.ByteString
        getLockQueueNoBytes() {
      java.lang.Object ref = lockQueueNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        lockQueueNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string lockQueueNo = 19;</code>
     * @param value The lockQueueNo to set.
     * @return This builder for chaining.
     */
    public Builder setLockQueueNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      lockQueueNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string lockQueueNo = 19;</code>
     * @return This builder for chaining.
     */
    public Builder clearLockQueueNo() {
      
      lockQueueNo_ = getDefaultInstance().getLockQueueNo();
      onChanged();
      return this;
    }
    /**
     * <code>string lockQueueNo = 19;</code>
     * @param value The bytes for lockQueueNo to set.
     * @return This builder for chaining.
     */
    public Builder setLockQueueNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      lockQueueNo_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object availableNumStr_ = "";
    /**
     * <code>string availableNumStr = 20;</code>
     * @return The availableNumStr.
     */
    public java.lang.String getAvailableNumStr() {
      java.lang.Object ref = availableNumStr_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        availableNumStr_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string availableNumStr = 20;</code>
     * @return The bytes for availableNumStr.
     */
    public com.google.protobuf.ByteString
        getAvailableNumStrBytes() {
      java.lang.Object ref = availableNumStr_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        availableNumStr_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string availableNumStr = 20;</code>
     * @param value The availableNumStr to set.
     * @return This builder for chaining.
     */
    public Builder setAvailableNumStr(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      availableNumStr_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string availableNumStr = 20;</code>
     * @return This builder for chaining.
     */
    public Builder clearAvailableNumStr() {
      
      availableNumStr_ = getDefaultInstance().getAvailableNumStr();
      onChanged();
      return this;
    }
    /**
     * <code>string availableNumStr = 20;</code>
     * @param value The bytes for availableNumStr to set.
     * @return This builder for chaining.
     */
    public Builder setAvailableNumStrBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      availableNumStr_ = value;
      onChanged();
      return this;
    }

    private int hospitalId_ ;
    /**
     * <code>int32 hospitalId = 21;</code>
     * @return The hospitalId.
     */
    @java.lang.Override
    public int getHospitalId() {
      return hospitalId_;
    }
    /**
     * <code>int32 hospitalId = 21;</code>
     * @param value The hospitalId to set.
     * @return This builder for chaining.
     */
    public Builder setHospitalId(int value) {
      
      hospitalId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 hospitalId = 21;</code>
     * @return This builder for chaining.
     */
    public Builder clearHospitalId() {
      
      hospitalId_ = 0;
      onChanged();
      return this;
    }

    private int subHospitalId_ ;
    /**
     * <pre>
     * 分院 id
     * </pre>
     *
     * <code>int32 subHospitalId = 22;</code>
     * @return The subHospitalId.
     */
    @java.lang.Override
    public int getSubHospitalId() {
      return subHospitalId_;
    }
    /**
     * <pre>
     * 分院 id
     * </pre>
     *
     * <code>int32 subHospitalId = 22;</code>
     * @param value The subHospitalId to set.
     * @return This builder for chaining.
     */
    public Builder setSubHospitalId(int value) {
      
      subHospitalId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 分院 id
     * </pre>
     *
     * <code>int32 subHospitalId = 22;</code>
     * @return This builder for chaining.
     */
    public Builder clearSubHospitalId() {
      
      subHospitalId_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object doctorSessTypeCode_ = "";
    /**
     * <pre>
     * 出诊级别code
     * </pre>
     *
     * <code>string doctorSessTypeCode = 23;</code>
     * @return The doctorSessTypeCode.
     */
    public java.lang.String getDoctorSessTypeCode() {
      java.lang.Object ref = doctorSessTypeCode_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        doctorSessTypeCode_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 出诊级别code
     * </pre>
     *
     * <code>string doctorSessTypeCode = 23;</code>
     * @return The bytes for doctorSessTypeCode.
     */
    public com.google.protobuf.ByteString
        getDoctorSessTypeCodeBytes() {
      java.lang.Object ref = doctorSessTypeCode_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        doctorSessTypeCode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 出诊级别code
     * </pre>
     *
     * <code>string doctorSessTypeCode = 23;</code>
     * @param value The doctorSessTypeCode to set.
     * @return This builder for chaining.
     */
    public Builder setDoctorSessTypeCode(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      doctorSessTypeCode_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 出诊级别code
     * </pre>
     *
     * <code>string doctorSessTypeCode = 23;</code>
     * @return This builder for chaining.
     */
    public Builder clearDoctorSessTypeCode() {
      
      doctorSessTypeCode_ = getDefaultInstance().getDoctorSessTypeCode();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 出诊级别code
     * </pre>
     *
     * <code>string doctorSessTypeCode = 23;</code>
     * @param value The bytes for doctorSessTypeCode to set.
     * @return This builder for chaining.
     */
    public Builder setDoctorSessTypeCodeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      doctorSessTypeCode_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object doctorSessTypeName_ = "";
    /**
     * <pre>
     * 出诊级别name
     * </pre>
     *
     * <code>string doctorSessTypeName = 24;</code>
     * @return The doctorSessTypeName.
     */
    public java.lang.String getDoctorSessTypeName() {
      java.lang.Object ref = doctorSessTypeName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        doctorSessTypeName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 出诊级别name
     * </pre>
     *
     * <code>string doctorSessTypeName = 24;</code>
     * @return The bytes for doctorSessTypeName.
     */
    public com.google.protobuf.ByteString
        getDoctorSessTypeNameBytes() {
      java.lang.Object ref = doctorSessTypeName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        doctorSessTypeName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 出诊级别name
     * </pre>
     *
     * <code>string doctorSessTypeName = 24;</code>
     * @param value The doctorSessTypeName to set.
     * @return This builder for chaining.
     */
    public Builder setDoctorSessTypeName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      doctorSessTypeName_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 出诊级别name
     * </pre>
     *
     * <code>string doctorSessTypeName = 24;</code>
     * @return This builder for chaining.
     */
    public Builder clearDoctorSessTypeName() {
      
      doctorSessTypeName_ = getDefaultInstance().getDoctorSessTypeName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 出诊级别name
     * </pre>
     *
     * <code>string doctorSessTypeName = 24;</code>
     * @param value The bytes for doctorSessTypeName to set.
     * @return This builder for chaining.
     */
    public Builder setDoctorSessTypeNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      doctorSessTypeName_ = value;
      onChanged();
      return this;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }


    // @@protoc_insertion_point(builder_scope:com.ywt.gapi.taihe.register.CreateRegisteredRequest)
  }

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

  public static com.ywt.gapi.taihe.register.CreateRegisteredRequest getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  @java.lang.Override
  public com.ywt.gapi.taihe.register.CreateRegisteredRequest getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

