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

package com.ywt.gapi.third.taihe;

/**
 * <pre>
 *预约记录
 * </pre>
 *
 * Protobuf type {@code com.ywt.gapi.third.taihe.Registration}
 */
public  final class Registration extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.third.taihe.Registration)
    RegistrationOrBuilder {
  // Use Registration.newBuilder() to construct.
  private Registration(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private Registration() {
    orderCode_ = "";
    transactionId_ = "";
    registrationId_ = "";
    registrationDate_ = "";
    status_ = 0;
    patientName_ = "";
    patientId_ = "";
    admitDate_ = "";
    deptCode_ = "";
    deptName_ = "";
    doctorCode_ = "";
    doctorName_ = "";
    doctorTitle_ = "";
    regFee_ = 0;
    seqCode_ = 0;
    admitAddress_ = "";
    admitRange_ = "";
    returnFlag_ = "";
    datePeriod_ = 0;
    startTime_ = "";
    endTime_ = "";
  }

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

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

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

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

            registrationDate_ = s;
            break;
          }
          case 40: {

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

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

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

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

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

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

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

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

            doctorTitle_ = s;
            break;
          }
          case 112: {

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

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

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

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

            returnFlag_ = s;
            break;
          }
          case 152: {

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

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

            endTime_ = s;
            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.third.taihe.Taihe.internal_static_com_ywt_gapi_third_taihe_Registration_descriptor;
  }

  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.third.taihe.Taihe.internal_static_com_ywt_gapi_third_taihe_Registration_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.third.taihe.Registration.class, com.ywt.gapi.third.taihe.Registration.Builder.class);
  }

  public static final int ORDERCODE_FIELD_NUMBER = 1;
  private volatile java.lang.Object orderCode_;
  /**
   * <pre>
   *预约单号
   * </pre>
   *
   * <code>string orderCode = 1;</code>
   */
  public java.lang.String getOrderCode() {
    java.lang.Object ref = orderCode_;
    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();
      orderCode_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *预约单号
   * </pre>
   *
   * <code>string orderCode = 1;</code>
   */
  public com.google.protobuf.ByteString
      getOrderCodeBytes() {
    java.lang.Object ref = orderCode_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      orderCode_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int TRANSACTIONID_FIELD_NUMBER = 2;
  private volatile java.lang.Object transactionId_;
  /**
   * <pre>
   *交易流水号
   * </pre>
   *
   * <code>string transactionId = 2;</code>
   */
  public java.lang.String getTransactionId() {
    java.lang.Object ref = transactionId_;
    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();
      transactionId_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *交易流水号
   * </pre>
   *
   * <code>string transactionId = 2;</code>
   */
  public com.google.protobuf.ByteString
      getTransactionIdBytes() {
    java.lang.Object ref = transactionId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      transactionId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int REGISTRATIONID_FIELD_NUMBER = 3;
  private volatile java.lang.Object registrationId_;
  /**
   * <pre>
   *就诊流水号
   * </pre>
   *
   * <code>string registrationId = 3;</code>
   */
  public java.lang.String getRegistrationId() {
    java.lang.Object ref = registrationId_;
    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();
      registrationId_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *就诊流水号
   * </pre>
   *
   * <code>string registrationId = 3;</code>
   */
  public com.google.protobuf.ByteString
      getRegistrationIdBytes() {
    java.lang.Object ref = registrationId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      registrationId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int REGISTRATIONDATE_FIELD_NUMBER = 4;
  private volatile java.lang.Object registrationDate_;
  /**
   * <pre>
   *挂号日期(yyyy-MM-dd)
   * </pre>
   *
   * <code>string registrationDate = 4;</code>
   */
  public java.lang.String getRegistrationDate() {
    java.lang.Object ref = registrationDate_;
    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();
      registrationDate_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *挂号日期(yyyy-MM-dd)
   * </pre>
   *
   * <code>string registrationDate = 4;</code>
   */
  public com.google.protobuf.ByteString
      getRegistrationDateBytes() {
    java.lang.Object ref = registrationDate_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      registrationDate_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int STATUS_FIELD_NUMBER = 5;
  private int status_;
  /**
   * <pre>
   *状态（1-正常，2-已退号，3-已过号）
   * </pre>
   *
   * <code>int32 status = 5;</code>
   */
  public int getStatus() {
    return status_;
  }

  public static final int PATIENTNAME_FIELD_NUMBER = 6;
  private volatile java.lang.Object patientName_;
  /**
   * <pre>
   *患者姓名
   * </pre>
   *
   * <code>string patientName = 6;</code>
   */
  public java.lang.String getPatientName() {
    java.lang.Object ref = patientName_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      patientName_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *患者姓名
   * </pre>
   *
   * <code>string patientName = 6;</code>
   */
  public com.google.protobuf.ByteString
      getPatientNameBytes() {
    java.lang.Object ref = patientName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      patientName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PATIENTID_FIELD_NUMBER = 7;
  private volatile java.lang.Object patientId_;
  /**
   * <pre>
   *患者Id
   * </pre>
   *
   * <code>string patientId = 7;</code>
   */
  public java.lang.String getPatientId() {
    java.lang.Object ref = patientId_;
    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();
      patientId_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *患者Id
   * </pre>
   *
   * <code>string patientId = 7;</code>
   */
  public com.google.protobuf.ByteString
      getPatientIdBytes() {
    java.lang.Object ref = patientId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      patientId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ADMITDATE_FIELD_NUMBER = 8;
  private volatile java.lang.Object admitDate_;
  /**
   * <pre>
   *就诊日期(yyyy-MM-dd)
   * </pre>
   *
   * <code>string admitDate = 8;</code>
   */
  public java.lang.String getAdmitDate() {
    java.lang.Object ref = admitDate_;
    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();
      admitDate_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *就诊日期(yyyy-MM-dd)
   * </pre>
   *
   * <code>string admitDate = 8;</code>
   */
  public com.google.protobuf.ByteString
      getAdmitDateBytes() {
    java.lang.Object ref = admitDate_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      admitDate_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DEPTCODE_FIELD_NUMBER = 9;
  private volatile java.lang.Object deptCode_;
  /**
   * <pre>
   *科室代码
   * </pre>
   *
   * <code>string deptCode = 9;</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>
   *科室代码
   * </pre>
   *
   * <code>string deptCode = 9;</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 = 10;
  private volatile java.lang.Object deptName_;
  /**
   * <pre>
   *科室名称
   * </pre>
   *
   * <code>string deptName = 10;</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 = 10;</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 = 11;
  private volatile java.lang.Object doctorCode_;
  /**
   * <pre>
   *医生代码
   * </pre>
   *
   * <code>string doctorCode = 11;</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>
   *医生代码
   * </pre>
   *
   * <code>string doctorCode = 11;</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 = 12;
  private volatile java.lang.Object doctorName_;
  /**
   * <pre>
   *医生名称
   * </pre>
   *
   * <code>string doctorName = 12;</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 = 12;</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 DOCTORTITLE_FIELD_NUMBER = 13;
  private volatile java.lang.Object doctorTitle_;
  /**
   * <pre>
   *医生职称
   * </pre>
   *
   * <code>string doctorTitle = 13;</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 = 13;</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 REGFEE_FIELD_NUMBER = 14;
  private int regFee_;
  /**
   * <pre>
   *总费用(单位:分)
   * </pre>
   *
   * <code>int32 regFee = 14;</code>
   */
  public int getRegFee() {
    return regFee_;
  }

  public static final int SEQCODE_FIELD_NUMBER = 15;
  private int seqCode_;
  /**
   * <pre>
   *就诊序号
   * </pre>
   *
   * <code>int32 seqCode = 15;</code>
   */
  public int getSeqCode() {
    return seqCode_;
  }

  public static final int ADMITADDRESS_FIELD_NUMBER = 16;
  private volatile java.lang.Object admitAddress_;
  /**
   * <pre>
   *候诊地点
   * </pre>
   *
   * <code>string admitAddress = 16;</code>
   */
  public java.lang.String getAdmitAddress() {
    java.lang.Object ref = admitAddress_;
    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();
      admitAddress_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *候诊地点
   * </pre>
   *
   * <code>string admitAddress = 16;</code>
   */
  public com.google.protobuf.ByteString
      getAdmitAddressBytes() {
    java.lang.Object ref = admitAddress_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      admitAddress_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ADMITRANGE_FIELD_NUMBER = 17;
  private volatile java.lang.Object admitRange_;
  /**
   * <pre>
   *候诊时间
   * </pre>
   *
   * <code>string admitRange = 17;</code>
   */
  public java.lang.String getAdmitRange() {
    java.lang.Object ref = admitRange_;
    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();
      admitRange_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *候诊时间
   * </pre>
   *
   * <code>string admitRange = 17;</code>
   */
  public com.google.protobuf.ByteString
      getAdmitRangeBytes() {
    java.lang.Object ref = admitRange_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      admitRange_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int RETURNFLAG_FIELD_NUMBER = 18;
  private volatile java.lang.Object returnFlag_;
  /**
   * <pre>
   *可退号标志(Y/N)
   * </pre>
   *
   * <code>string returnFlag = 18;</code>
   */
  public java.lang.String getReturnFlag() {
    java.lang.Object ref = returnFlag_;
    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();
      returnFlag_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *可退号标志(Y/N)
   * </pre>
   *
   * <code>string returnFlag = 18;</code>
   */
  public com.google.protobuf.ByteString
      getReturnFlagBytes() {
    java.lang.Object ref = returnFlag_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      returnFlag_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DATEPERIOD_FIELD_NUMBER = 19;
  private int datePeriod_;
  /**
   * <pre>
   *预约时段
   * </pre>
   *
   * <code>int32 datePeriod = 19;</code>
   */
  public int getDatePeriod() {
    return datePeriod_;
  }

  public static final int STARTTIME_FIELD_NUMBER = 20;
  private volatile java.lang.Object startTime_;
  /**
   * <pre>
   *开始时间
   * </pre>
   *
   * <code>string startTime = 20;</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>
   *开始时间
   * </pre>
   *
   * <code>string startTime = 20;</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 = 21;
  private volatile java.lang.Object endTime_;
  /**
   * <pre>
   *结束时间
   * </pre>
   *
   * <code>string endTime = 21;</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>
   *结束时间
   * </pre>
   *
   * <code>string endTime = 21;</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;
    }
  }

  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 (!getOrderCodeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, orderCode_);
    }
    if (!getTransactionIdBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, transactionId_);
    }
    if (!getRegistrationIdBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, registrationId_);
    }
    if (!getRegistrationDateBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, registrationDate_);
    }
    if (status_ != 0) {
      output.writeInt32(5, status_);
    }
    if (!getPatientNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, patientName_);
    }
    if (!getPatientIdBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, patientId_);
    }
    if (!getAdmitDateBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, admitDate_);
    }
    if (!getDeptCodeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 9, deptCode_);
    }
    if (!getDeptNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 10, deptName_);
    }
    if (!getDoctorCodeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 11, doctorCode_);
    }
    if (!getDoctorNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 12, doctorName_);
    }
    if (!getDoctorTitleBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 13, doctorTitle_);
    }
    if (regFee_ != 0) {
      output.writeInt32(14, regFee_);
    }
    if (seqCode_ != 0) {
      output.writeInt32(15, seqCode_);
    }
    if (!getAdmitAddressBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 16, admitAddress_);
    }
    if (!getAdmitRangeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 17, admitRange_);
    }
    if (!getReturnFlagBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 18, returnFlag_);
    }
    if (datePeriod_ != 0) {
      output.writeInt32(19, datePeriod_);
    }
    if (!getStartTimeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 20, startTime_);
    }
    if (!getEndTimeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 21, endTime_);
    }
  }

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

    size = 0;
    if (!getOrderCodeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, orderCode_);
    }
    if (!getTransactionIdBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, transactionId_);
    }
    if (!getRegistrationIdBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, registrationId_);
    }
    if (!getRegistrationDateBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, registrationDate_);
    }
    if (status_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(5, status_);
    }
    if (!getPatientNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, patientName_);
    }
    if (!getPatientIdBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, patientId_);
    }
    if (!getAdmitDateBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, admitDate_);
    }
    if (!getDeptCodeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, deptCode_);
    }
    if (!getDeptNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, deptName_);
    }
    if (!getDoctorCodeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, doctorCode_);
    }
    if (!getDoctorNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, doctorName_);
    }
    if (!getDoctorTitleBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, doctorTitle_);
    }
    if (regFee_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(14, regFee_);
    }
    if (seqCode_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(15, seqCode_);
    }
    if (!getAdmitAddressBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, admitAddress_);
    }
    if (!getAdmitRangeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, admitRange_);
    }
    if (!getReturnFlagBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, returnFlag_);
    }
    if (datePeriod_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(19, datePeriod_);
    }
    if (!getStartTimeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, startTime_);
    }
    if (!getEndTimeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, endTime_);
    }
    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.third.taihe.Registration)) {
      return super.equals(obj);
    }
    com.ywt.gapi.third.taihe.Registration other = (com.ywt.gapi.third.taihe.Registration) obj;

    boolean result = true;
    result = result && getOrderCode()
        .equals(other.getOrderCode());
    result = result && getTransactionId()
        .equals(other.getTransactionId());
    result = result && getRegistrationId()
        .equals(other.getRegistrationId());
    result = result && getRegistrationDate()
        .equals(other.getRegistrationDate());
    result = result && (getStatus()
        == other.getStatus());
    result = result && getPatientName()
        .equals(other.getPatientName());
    result = result && getPatientId()
        .equals(other.getPatientId());
    result = result && getAdmitDate()
        .equals(other.getAdmitDate());
    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 && getDoctorTitle()
        .equals(other.getDoctorTitle());
    result = result && (getRegFee()
        == other.getRegFee());
    result = result && (getSeqCode()
        == other.getSeqCode());
    result = result && getAdmitAddress()
        .equals(other.getAdmitAddress());
    result = result && getAdmitRange()
        .equals(other.getAdmitRange());
    result = result && getReturnFlag()
        .equals(other.getReturnFlag());
    result = result && (getDatePeriod()
        == other.getDatePeriod());
    result = result && getStartTime()
        .equals(other.getStartTime());
    result = result && getEndTime()
        .equals(other.getEndTime());
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + ORDERCODE_FIELD_NUMBER;
    hash = (53 * hash) + getOrderCode().hashCode();
    hash = (37 * hash) + TRANSACTIONID_FIELD_NUMBER;
    hash = (53 * hash) + getTransactionId().hashCode();
    hash = (37 * hash) + REGISTRATIONID_FIELD_NUMBER;
    hash = (53 * hash) + getRegistrationId().hashCode();
    hash = (37 * hash) + REGISTRATIONDATE_FIELD_NUMBER;
    hash = (53 * hash) + getRegistrationDate().hashCode();
    hash = (37 * hash) + STATUS_FIELD_NUMBER;
    hash = (53 * hash) + getStatus();
    hash = (37 * hash) + PATIENTNAME_FIELD_NUMBER;
    hash = (53 * hash) + getPatientName().hashCode();
    hash = (37 * hash) + PATIENTID_FIELD_NUMBER;
    hash = (53 * hash) + getPatientId().hashCode();
    hash = (37 * hash) + ADMITDATE_FIELD_NUMBER;
    hash = (53 * hash) + getAdmitDate().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) + DOCTORTITLE_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorTitle().hashCode();
    hash = (37 * hash) + REGFEE_FIELD_NUMBER;
    hash = (53 * hash) + getRegFee();
    hash = (37 * hash) + SEQCODE_FIELD_NUMBER;
    hash = (53 * hash) + getSeqCode();
    hash = (37 * hash) + ADMITADDRESS_FIELD_NUMBER;
    hash = (53 * hash) + getAdmitAddress().hashCode();
    hash = (37 * hash) + ADMITRANGE_FIELD_NUMBER;
    hash = (53 * hash) + getAdmitRange().hashCode();
    hash = (37 * hash) + RETURNFLAG_FIELD_NUMBER;
    hash = (53 * hash) + getReturnFlag().hashCode();
    hash = (37 * hash) + DATEPERIOD_FIELD_NUMBER;
    hash = (53 * hash) + getDatePeriod();
    hash = (37 * hash) + STARTTIME_FIELD_NUMBER;
    hash = (53 * hash) + getStartTime().hashCode();
    hash = (37 * hash) + ENDTIME_FIELD_NUMBER;
    hash = (53 * hash) + getEndTime().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.third.taihe.Taihe.internal_static_com_ywt_gapi_third_taihe_Registration_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.third.taihe.Registration.class, com.ywt.gapi.third.taihe.Registration.Builder.class);
    }

    // Construct using com.ywt.gapi.third.taihe.Registration.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();
      orderCode_ = "";

      transactionId_ = "";

      registrationId_ = "";

      registrationDate_ = "";

      status_ = 0;

      patientName_ = "";

      patientId_ = "";

      admitDate_ = "";

      deptCode_ = "";

      deptName_ = "";

      doctorCode_ = "";

      doctorName_ = "";

      doctorTitle_ = "";

      regFee_ = 0;

      seqCode_ = 0;

      admitAddress_ = "";

      admitRange_ = "";

      returnFlag_ = "";

      datePeriod_ = 0;

      startTime_ = "";

      endTime_ = "";

      return this;
    }

    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.third.taihe.Taihe.internal_static_com_ywt_gapi_third_taihe_Registration_descriptor;
    }

    public com.ywt.gapi.third.taihe.Registration getDefaultInstanceForType() {
      return com.ywt.gapi.third.taihe.Registration.getDefaultInstance();
    }

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

    public com.ywt.gapi.third.taihe.Registration buildPartial() {
      com.ywt.gapi.third.taihe.Registration result = new com.ywt.gapi.third.taihe.Registration(this);
      result.orderCode_ = orderCode_;
      result.transactionId_ = transactionId_;
      result.registrationId_ = registrationId_;
      result.registrationDate_ = registrationDate_;
      result.status_ = status_;
      result.patientName_ = patientName_;
      result.patientId_ = patientId_;
      result.admitDate_ = admitDate_;
      result.deptCode_ = deptCode_;
      result.deptName_ = deptName_;
      result.doctorCode_ = doctorCode_;
      result.doctorName_ = doctorName_;
      result.doctorTitle_ = doctorTitle_;
      result.regFee_ = regFee_;
      result.seqCode_ = seqCode_;
      result.admitAddress_ = admitAddress_;
      result.admitRange_ = admitRange_;
      result.returnFlag_ = returnFlag_;
      result.datePeriod_ = datePeriod_;
      result.startTime_ = startTime_;
      result.endTime_ = endTime_;
      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.third.taihe.Registration) {
        return mergeFrom((com.ywt.gapi.third.taihe.Registration)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.third.taihe.Registration other) {
      if (other == com.ywt.gapi.third.taihe.Registration.getDefaultInstance()) return this;
      if (!other.getOrderCode().isEmpty()) {
        orderCode_ = other.orderCode_;
        onChanged();
      }
      if (!other.getTransactionId().isEmpty()) {
        transactionId_ = other.transactionId_;
        onChanged();
      }
      if (!other.getRegistrationId().isEmpty()) {
        registrationId_ = other.registrationId_;
        onChanged();
      }
      if (!other.getRegistrationDate().isEmpty()) {
        registrationDate_ = other.registrationDate_;
        onChanged();
      }
      if (other.getStatus() != 0) {
        setStatus(other.getStatus());
      }
      if (!other.getPatientName().isEmpty()) {
        patientName_ = other.patientName_;
        onChanged();
      }
      if (!other.getPatientId().isEmpty()) {
        patientId_ = other.patientId_;
        onChanged();
      }
      if (!other.getAdmitDate().isEmpty()) {
        admitDate_ = other.admitDate_;
        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.getDoctorTitle().isEmpty()) {
        doctorTitle_ = other.doctorTitle_;
        onChanged();
      }
      if (other.getRegFee() != 0) {
        setRegFee(other.getRegFee());
      }
      if (other.getSeqCode() != 0) {
        setSeqCode(other.getSeqCode());
      }
      if (!other.getAdmitAddress().isEmpty()) {
        admitAddress_ = other.admitAddress_;
        onChanged();
      }
      if (!other.getAdmitRange().isEmpty()) {
        admitRange_ = other.admitRange_;
        onChanged();
      }
      if (!other.getReturnFlag().isEmpty()) {
        returnFlag_ = other.returnFlag_;
        onChanged();
      }
      if (other.getDatePeriod() != 0) {
        setDatePeriod(other.getDatePeriod());
      }
      if (!other.getStartTime().isEmpty()) {
        startTime_ = other.startTime_;
        onChanged();
      }
      if (!other.getEndTime().isEmpty()) {
        endTime_ = other.endTime_;
        onChanged();
      }
      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.third.taihe.Registration parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.third.taihe.Registration) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private java.lang.Object orderCode_ = "";
    /**
     * <pre>
     *预约单号
     * </pre>
     *
     * <code>string orderCode = 1;</code>
     */
    public java.lang.String getOrderCode() {
      java.lang.Object ref = orderCode_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        orderCode_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *预约单号
     * </pre>
     *
     * <code>string orderCode = 1;</code>
     */
    public com.google.protobuf.ByteString
        getOrderCodeBytes() {
      java.lang.Object ref = orderCode_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        orderCode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *预约单号
     * </pre>
     *
     * <code>string orderCode = 1;</code>
     */
    public Builder setOrderCode(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      orderCode_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *预约单号
     * </pre>
     *
     * <code>string orderCode = 1;</code>
     */
    public Builder clearOrderCode() {
      
      orderCode_ = getDefaultInstance().getOrderCode();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *预约单号
     * </pre>
     *
     * <code>string orderCode = 1;</code>
     */
    public Builder setOrderCodeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      orderCode_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object transactionId_ = "";
    /**
     * <pre>
     *交易流水号
     * </pre>
     *
     * <code>string transactionId = 2;</code>
     */
    public java.lang.String getTransactionId() {
      java.lang.Object ref = transactionId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        transactionId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *交易流水号
     * </pre>
     *
     * <code>string transactionId = 2;</code>
     */
    public com.google.protobuf.ByteString
        getTransactionIdBytes() {
      java.lang.Object ref = transactionId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        transactionId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *交易流水号
     * </pre>
     *
     * <code>string transactionId = 2;</code>
     */
    public Builder setTransactionId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      transactionId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *交易流水号
     * </pre>
     *
     * <code>string transactionId = 2;</code>
     */
    public Builder clearTransactionId() {
      
      transactionId_ = getDefaultInstance().getTransactionId();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *交易流水号
     * </pre>
     *
     * <code>string transactionId = 2;</code>
     */
    public Builder setTransactionIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      transactionId_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object registrationId_ = "";
    /**
     * <pre>
     *就诊流水号
     * </pre>
     *
     * <code>string registrationId = 3;</code>
     */
    public java.lang.String getRegistrationId() {
      java.lang.Object ref = registrationId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        registrationId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *就诊流水号
     * </pre>
     *
     * <code>string registrationId = 3;</code>
     */
    public com.google.protobuf.ByteString
        getRegistrationIdBytes() {
      java.lang.Object ref = registrationId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        registrationId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *就诊流水号
     * </pre>
     *
     * <code>string registrationId = 3;</code>
     */
    public Builder setRegistrationId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      registrationId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *就诊流水号
     * </pre>
     *
     * <code>string registrationId = 3;</code>
     */
    public Builder clearRegistrationId() {
      
      registrationId_ = getDefaultInstance().getRegistrationId();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *就诊流水号
     * </pre>
     *
     * <code>string registrationId = 3;</code>
     */
    public Builder setRegistrationIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      registrationId_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object registrationDate_ = "";
    /**
     * <pre>
     *挂号日期(yyyy-MM-dd)
     * </pre>
     *
     * <code>string registrationDate = 4;</code>
     */
    public java.lang.String getRegistrationDate() {
      java.lang.Object ref = registrationDate_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        registrationDate_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *挂号日期(yyyy-MM-dd)
     * </pre>
     *
     * <code>string registrationDate = 4;</code>
     */
    public com.google.protobuf.ByteString
        getRegistrationDateBytes() {
      java.lang.Object ref = registrationDate_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        registrationDate_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *挂号日期(yyyy-MM-dd)
     * </pre>
     *
     * <code>string registrationDate = 4;</code>
     */
    public Builder setRegistrationDate(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      registrationDate_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *挂号日期(yyyy-MM-dd)
     * </pre>
     *
     * <code>string registrationDate = 4;</code>
     */
    public Builder clearRegistrationDate() {
      
      registrationDate_ = getDefaultInstance().getRegistrationDate();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *挂号日期(yyyy-MM-dd)
     * </pre>
     *
     * <code>string registrationDate = 4;</code>
     */
    public Builder setRegistrationDateBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      registrationDate_ = value;
      onChanged();
      return this;
    }

    private int status_ ;
    /**
     * <pre>
     *状态（1-正常，2-已退号，3-已过号）
     * </pre>
     *
     * <code>int32 status = 5;</code>
     */
    public int getStatus() {
      return status_;
    }
    /**
     * <pre>
     *状态（1-正常，2-已退号，3-已过号）
     * </pre>
     *
     * <code>int32 status = 5;</code>
     */
    public Builder setStatus(int value) {
      
      status_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *状态（1-正常，2-已退号，3-已过号）
     * </pre>
     *
     * <code>int32 status = 5;</code>
     */
    public Builder clearStatus() {
      
      status_ = 0;
      onChanged();
      return this;
    }

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

    private java.lang.Object patientId_ = "";
    /**
     * <pre>
     *患者Id
     * </pre>
     *
     * <code>string patientId = 7;</code>
     */
    public java.lang.String getPatientId() {
      java.lang.Object ref = patientId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        patientId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *患者Id
     * </pre>
     *
     * <code>string patientId = 7;</code>
     */
    public com.google.protobuf.ByteString
        getPatientIdBytes() {
      java.lang.Object ref = patientId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        patientId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *患者Id
     * </pre>
     *
     * <code>string patientId = 7;</code>
     */
    public Builder setPatientId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      patientId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *患者Id
     * </pre>
     *
     * <code>string patientId = 7;</code>
     */
    public Builder clearPatientId() {
      
      patientId_ = getDefaultInstance().getPatientId();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *患者Id
     * </pre>
     *
     * <code>string patientId = 7;</code>
     */
    public Builder setPatientIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      patientId_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object admitDate_ = "";
    /**
     * <pre>
     *就诊日期(yyyy-MM-dd)
     * </pre>
     *
     * <code>string admitDate = 8;</code>
     */
    public java.lang.String getAdmitDate() {
      java.lang.Object ref = admitDate_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        admitDate_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *就诊日期(yyyy-MM-dd)
     * </pre>
     *
     * <code>string admitDate = 8;</code>
     */
    public com.google.protobuf.ByteString
        getAdmitDateBytes() {
      java.lang.Object ref = admitDate_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        admitDate_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *就诊日期(yyyy-MM-dd)
     * </pre>
     *
     * <code>string admitDate = 8;</code>
     */
    public Builder setAdmitDate(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      admitDate_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *就诊日期(yyyy-MM-dd)
     * </pre>
     *
     * <code>string admitDate = 8;</code>
     */
    public Builder clearAdmitDate() {
      
      admitDate_ = getDefaultInstance().getAdmitDate();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *就诊日期(yyyy-MM-dd)
     * </pre>
     *
     * <code>string admitDate = 8;</code>
     */
    public Builder setAdmitDateBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      admitDate_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object deptCode_ = "";
    /**
     * <pre>
     *科室代码
     * </pre>
     *
     * <code>string deptCode = 9;</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>
     *科室代码
     * </pre>
     *
     * <code>string deptCode = 9;</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>
     *科室代码
     * </pre>
     *
     * <code>string deptCode = 9;</code>
     */
    public Builder setDeptCode(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      deptCode_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *科室代码
     * </pre>
     *
     * <code>string deptCode = 9;</code>
     */
    public Builder clearDeptCode() {
      
      deptCode_ = getDefaultInstance().getDeptCode();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *科室代码
     * </pre>
     *
     * <code>string deptCode = 9;</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 = 10;</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 = 10;</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 = 10;</code>
     */
    public Builder setDeptName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      deptName_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *科室名称
     * </pre>
     *
     * <code>string deptName = 10;</code>
     */
    public Builder clearDeptName() {
      
      deptName_ = getDefaultInstance().getDeptName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *科室名称
     * </pre>
     *
     * <code>string deptName = 10;</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>
     *医生代码
     * </pre>
     *
     * <code>string doctorCode = 11;</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>
     *医生代码
     * </pre>
     *
     * <code>string doctorCode = 11;</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>
     *医生代码
     * </pre>
     *
     * <code>string doctorCode = 11;</code>
     */
    public Builder setDoctorCode(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      doctorCode_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医生代码
     * </pre>
     *
     * <code>string doctorCode = 11;</code>
     */
    public Builder clearDoctorCode() {
      
      doctorCode_ = getDefaultInstance().getDoctorCode();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医生代码
     * </pre>
     *
     * <code>string doctorCode = 11;</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 = 12;</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 = 12;</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 = 12;</code>
     */
    public Builder setDoctorName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      doctorName_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医生名称
     * </pre>
     *
     * <code>string doctorName = 12;</code>
     */
    public Builder clearDoctorName() {
      
      doctorName_ = getDefaultInstance().getDoctorName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医生名称
     * </pre>
     *
     * <code>string doctorName = 12;</code>
     */
    public Builder setDoctorNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      doctorName_ = value;
      onChanged();
      return this;
    }

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

    private int regFee_ ;
    /**
     * <pre>
     *总费用(单位:分)
     * </pre>
     *
     * <code>int32 regFee = 14;</code>
     */
    public int getRegFee() {
      return regFee_;
    }
    /**
     * <pre>
     *总费用(单位:分)
     * </pre>
     *
     * <code>int32 regFee = 14;</code>
     */
    public Builder setRegFee(int value) {
      
      regFee_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *总费用(单位:分)
     * </pre>
     *
     * <code>int32 regFee = 14;</code>
     */
    public Builder clearRegFee() {
      
      regFee_ = 0;
      onChanged();
      return this;
    }

    private int seqCode_ ;
    /**
     * <pre>
     *就诊序号
     * </pre>
     *
     * <code>int32 seqCode = 15;</code>
     */
    public int getSeqCode() {
      return seqCode_;
    }
    /**
     * <pre>
     *就诊序号
     * </pre>
     *
     * <code>int32 seqCode = 15;</code>
     */
    public Builder setSeqCode(int value) {
      
      seqCode_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *就诊序号
     * </pre>
     *
     * <code>int32 seqCode = 15;</code>
     */
    public Builder clearSeqCode() {
      
      seqCode_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object admitAddress_ = "";
    /**
     * <pre>
     *候诊地点
     * </pre>
     *
     * <code>string admitAddress = 16;</code>
     */
    public java.lang.String getAdmitAddress() {
      java.lang.Object ref = admitAddress_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        admitAddress_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *候诊地点
     * </pre>
     *
     * <code>string admitAddress = 16;</code>
     */
    public com.google.protobuf.ByteString
        getAdmitAddressBytes() {
      java.lang.Object ref = admitAddress_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        admitAddress_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *候诊地点
     * </pre>
     *
     * <code>string admitAddress = 16;</code>
     */
    public Builder setAdmitAddress(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      admitAddress_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *候诊地点
     * </pre>
     *
     * <code>string admitAddress = 16;</code>
     */
    public Builder clearAdmitAddress() {
      
      admitAddress_ = getDefaultInstance().getAdmitAddress();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *候诊地点
     * </pre>
     *
     * <code>string admitAddress = 16;</code>
     */
    public Builder setAdmitAddressBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      admitAddress_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object admitRange_ = "";
    /**
     * <pre>
     *候诊时间
     * </pre>
     *
     * <code>string admitRange = 17;</code>
     */
    public java.lang.String getAdmitRange() {
      java.lang.Object ref = admitRange_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        admitRange_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *候诊时间
     * </pre>
     *
     * <code>string admitRange = 17;</code>
     */
    public com.google.protobuf.ByteString
        getAdmitRangeBytes() {
      java.lang.Object ref = admitRange_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        admitRange_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *候诊时间
     * </pre>
     *
     * <code>string admitRange = 17;</code>
     */
    public Builder setAdmitRange(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      admitRange_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *候诊时间
     * </pre>
     *
     * <code>string admitRange = 17;</code>
     */
    public Builder clearAdmitRange() {
      
      admitRange_ = getDefaultInstance().getAdmitRange();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *候诊时间
     * </pre>
     *
     * <code>string admitRange = 17;</code>
     */
    public Builder setAdmitRangeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      admitRange_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object returnFlag_ = "";
    /**
     * <pre>
     *可退号标志(Y/N)
     * </pre>
     *
     * <code>string returnFlag = 18;</code>
     */
    public java.lang.String getReturnFlag() {
      java.lang.Object ref = returnFlag_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        returnFlag_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *可退号标志(Y/N)
     * </pre>
     *
     * <code>string returnFlag = 18;</code>
     */
    public com.google.protobuf.ByteString
        getReturnFlagBytes() {
      java.lang.Object ref = returnFlag_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        returnFlag_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *可退号标志(Y/N)
     * </pre>
     *
     * <code>string returnFlag = 18;</code>
     */
    public Builder setReturnFlag(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      returnFlag_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *可退号标志(Y/N)
     * </pre>
     *
     * <code>string returnFlag = 18;</code>
     */
    public Builder clearReturnFlag() {
      
      returnFlag_ = getDefaultInstance().getReturnFlag();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *可退号标志(Y/N)
     * </pre>
     *
     * <code>string returnFlag = 18;</code>
     */
    public Builder setReturnFlagBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      returnFlag_ = value;
      onChanged();
      return this;
    }

    private int datePeriod_ ;
    /**
     * <pre>
     *预约时段
     * </pre>
     *
     * <code>int32 datePeriod = 19;</code>
     */
    public int getDatePeriod() {
      return datePeriod_;
    }
    /**
     * <pre>
     *预约时段
     * </pre>
     *
     * <code>int32 datePeriod = 19;</code>
     */
    public Builder setDatePeriod(int value) {
      
      datePeriod_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *预约时段
     * </pre>
     *
     * <code>int32 datePeriod = 19;</code>
     */
    public Builder clearDatePeriod() {
      
      datePeriod_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object startTime_ = "";
    /**
     * <pre>
     *开始时间
     * </pre>
     *
     * <code>string startTime = 20;</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>
     *开始时间
     * </pre>
     *
     * <code>string startTime = 20;</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>
     *开始时间
     * </pre>
     *
     * <code>string startTime = 20;</code>
     */
    public Builder setStartTime(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      startTime_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *开始时间
     * </pre>
     *
     * <code>string startTime = 20;</code>
     */
    public Builder clearStartTime() {
      
      startTime_ = getDefaultInstance().getStartTime();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *开始时间
     * </pre>
     *
     * <code>string startTime = 20;</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>
     *结束时间
     * </pre>
     *
     * <code>string endTime = 21;</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>
     *结束时间
     * </pre>
     *
     * <code>string endTime = 21;</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>
     *结束时间
     * </pre>
     *
     * <code>string endTime = 21;</code>
     */
    public Builder setEndTime(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      endTime_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *结束时间
     * </pre>
     *
     * <code>string endTime = 21;</code>
     */
    public Builder clearEndTime() {
      
      endTime_ = getDefaultInstance().getEndTime();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *结束时间
     * </pre>
     *
     * <code>string endTime = 21;</code>
     */
    public Builder setEndTimeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      endTime_ = value;
      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.third.taihe.Registration)
  }

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

  public static com.ywt.gapi.third.taihe.Registration getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  public com.ywt.gapi.third.taihe.Registration getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

