// 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 {
private static final long serialVersionUID = 0L;
  // Use Registration.newBuilder() to construct.
  private Registration(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private Registration() {
    orderCode_ = "";
    transactionId_ = "";
    registrationId_ = "";
    registrationDate_ = "";
    patientName_ = "";
    patientId_ = "";
    admitDate_ = "";
    deptCode_ = "";
    deptName_ = "";
    doctorCode_ = "";
    doctorName_ = "";
    doctorTitle_ = "";
    admitAddress_ = "";
    admitRange_ = "";
    returnFlag_ = "";
    startTime_ = "";
    endTime_ = "";
  }

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

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

            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;
          }
          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.third.taihe.TaiheProto.internal_static_com_ywt_gapi_third_taihe_Registration_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.third.taihe.TaiheProto.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>
   * @return The orderCode.
   */
  @java.lang.Override
  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>
   * @return The bytes for orderCode.
   */
  @java.lang.Override
  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>
   * @return The transactionId.
   */
  @java.lang.Override
  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>
   * @return The bytes for transactionId.
   */
  @java.lang.Override
  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>
   * @return The registrationId.
   */
  @java.lang.Override
  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>
   * @return The bytes for registrationId.
   */
  @java.lang.Override
  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>
   * @return The registrationDate.
   */
  @java.lang.Override
  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>
   * @return The bytes for registrationDate.
   */
  @java.lang.Override
  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>
   * @return The status.
   */
  @java.lang.Override
  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>
   * @return The patientName.
   */
  @java.lang.Override
  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>
   * @return The bytes for patientName.
   */
  @java.lang.Override
  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>
   * @return The patientId.
   */
  @java.lang.Override
  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>
   * @return The bytes for patientId.
   */
  @java.lang.Override
  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>
   * @return The admitDate.
   */
  @java.lang.Override
  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>
   * @return The bytes for admitDate.
   */
  @java.lang.Override
  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>
   * @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>
   *科室代码
   * </pre>
   *
   * <code>string deptCode = 9;</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 = 10;
  private volatile java.lang.Object deptName_;
  /**
   * <pre>
   *科室名称
   * </pre>
   *
   * <code>string deptName = 10;</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 = 10;</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 = 11;
  private volatile java.lang.Object doctorCode_;
  /**
   * <pre>
   *医生代码
   * </pre>
   *
   * <code>string doctorCode = 11;</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>
   *医生代码
   * </pre>
   *
   * <code>string doctorCode = 11;</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 = 12;
  private volatile java.lang.Object doctorName_;
  /**
   * <pre>
   *医生名称
   * </pre>
   *
   * <code>string doctorName = 12;</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 = 12;</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 DOCTORTITLE_FIELD_NUMBER = 13;
  private volatile java.lang.Object doctorTitle_;
  /**
   * <pre>
   *医生职称
   * </pre>
   *
   * <code>string doctorTitle = 13;</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 = 13;</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 REGFEE_FIELD_NUMBER = 14;
  private int regFee_;
  /**
   * <pre>
   *总费用(单位:分)
   * </pre>
   *
   * <code>int32 regFee = 14;</code>
   * @return The regFee.
   */
  @java.lang.Override
  public int getRegFee() {
    return regFee_;
  }

  public static final int SEQCODE_FIELD_NUMBER = 15;
  private int seqCode_;
  /**
   * <pre>
   *就诊序号
   * </pre>
   *
   * <code>int32 seqCode = 15;</code>
   * @return The seqCode.
   */
  @java.lang.Override
  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>
   * @return The admitAddress.
   */
  @java.lang.Override
  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>
   * @return The bytes for admitAddress.
   */
  @java.lang.Override
  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>
   * @return The admitRange.
   */
  @java.lang.Override
  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>
   * @return The bytes for admitRange.
   */
  @java.lang.Override
  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>
   * @return The returnFlag.
   */
  @java.lang.Override
  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>
   * @return The bytes for returnFlag.
   */
  @java.lang.Override
  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>
   * @return The datePeriod.
   */
  @java.lang.Override
  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>
   * @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>
   *开始时间
   * </pre>
   *
   * <code>string startTime = 20;</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 = 21;
  private volatile java.lang.Object endTime_;
  /**
   * <pre>
   *结束时间
   * </pre>
   *
   * <code>string endTime = 21;</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>
   *结束时间
   * </pre>
   *
   * <code>string endTime = 21;</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;
    }
  }

  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(orderCode_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, orderCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(transactionId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, transactionId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registrationId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, registrationId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registrationDate_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, registrationDate_);
    }
    if (status_ != 0) {
      output.writeInt32(5, status_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patientName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, patientName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patientId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, patientId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(admitDate_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, admitDate_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deptCode_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 9, deptCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deptName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 10, deptName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorCode_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 11, doctorCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 12, doctorName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorTitle_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 13, doctorTitle_);
    }
    if (regFee_ != 0) {
      output.writeInt32(14, regFee_);
    }
    if (seqCode_ != 0) {
      output.writeInt32(15, seqCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(admitAddress_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 16, admitAddress_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(admitRange_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 17, admitRange_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(returnFlag_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 18, returnFlag_);
    }
    if (datePeriod_ != 0) {
      output.writeInt32(19, datePeriod_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startTime_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 20, startTime_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endTime_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 21, endTime_);
    }
    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(orderCode_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, orderCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(transactionId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, transactionId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registrationId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, registrationId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registrationDate_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, registrationDate_);
    }
    if (status_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(5, status_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patientName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, patientName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patientId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, patientId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(admitDate_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, admitDate_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deptCode_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, deptCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deptName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, deptName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorCode_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, doctorCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, doctorName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorTitle_)) {
      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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(admitAddress_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, admitAddress_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(admitRange_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, admitRange_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(returnFlag_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, returnFlag_);
    }
    if (datePeriod_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(19, datePeriod_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startTime_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, startTime_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endTime_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, endTime_);
    }
    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.third.taihe.Registration)) {
      return super.equals(obj);
    }
    com.ywt.gapi.third.taihe.Registration other = (com.ywt.gapi.third.taihe.Registration) obj;

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

  @java.lang.Override
  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);
  }
  @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>
   *预约记录
   * </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.TaiheProto.internal_static_com_ywt_gapi_third_taihe_Registration_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.third.taihe.TaiheProto.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) {
      }
    }
    @java.lang.Override
    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;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.third.taihe.TaiheProto.internal_static_com_ywt_gapi_third_taihe_Registration_descriptor;
    }

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

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

    @java.lang.Override
    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;
    }

    @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.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();
      }
      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.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>
     * @return The orderCode.
     */
    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>
     * @return The bytes for orderCode.
     */
    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>
     * @param value The orderCode to set.
     * @return This builder for chaining.
     */
    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>
     * @return This builder for chaining.
     */
    public Builder clearOrderCode() {
      
      orderCode_ = getDefaultInstance().getOrderCode();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *预约单号
     * </pre>
     *
     * <code>string orderCode = 1;</code>
     * @param value The bytes for orderCode to set.
     * @return This builder for chaining.
     */
    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>
     * @return The transactionId.
     */
    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>
     * @return The bytes for transactionId.
     */
    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>
     * @param value The transactionId to set.
     * @return This builder for chaining.
     */
    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>
     * @return This builder for chaining.
     */
    public Builder clearTransactionId() {
      
      transactionId_ = getDefaultInstance().getTransactionId();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *交易流水号
     * </pre>
     *
     * <code>string transactionId = 2;</code>
     * @param value The bytes for transactionId to set.
     * @return This builder for chaining.
     */
    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>
     * @return The registrationId.
     */
    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>
     * @return The bytes for registrationId.
     */
    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>
     * @param value The registrationId to set.
     * @return This builder for chaining.
     */
    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>
     * @return This builder for chaining.
     */
    public Builder clearRegistrationId() {
      
      registrationId_ = getDefaultInstance().getRegistrationId();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *就诊流水号
     * </pre>
     *
     * <code>string registrationId = 3;</code>
     * @param value The bytes for registrationId to set.
     * @return This builder for chaining.
     */
    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>
     * @return The registrationDate.
     */
    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>
     * @return The bytes for registrationDate.
     */
    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>
     * @param value The registrationDate to set.
     * @return This builder for chaining.
     */
    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>
     * @return This builder for chaining.
     */
    public Builder clearRegistrationDate() {
      
      registrationDate_ = getDefaultInstance().getRegistrationDate();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *挂号日期(yyyy-MM-dd)
     * </pre>
     *
     * <code>string registrationDate = 4;</code>
     * @param value The bytes for registrationDate to set.
     * @return This builder for chaining.
     */
    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>
     * @return The status.
     */
    @java.lang.Override
    public int getStatus() {
      return status_;
    }
    /**
     * <pre>
     *状态（1-正常，2-已退号，3-已过号）
     * </pre>
     *
     * <code>int32 status = 5;</code>
     * @param value The status to set.
     * @return This builder for chaining.
     */
    public Builder setStatus(int value) {
      
      status_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *状态（1-正常，2-已退号，3-已过号）
     * </pre>
     *
     * <code>int32 status = 5;</code>
     * @return This builder for chaining.
     */
    public Builder clearStatus() {
      
      status_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object patientName_ = "";
    /**
     * <pre>
     *患者姓名
     * </pre>
     *
     * <code>string patientName = 6;</code>
     * @return The patientName.
     */
    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>
     * @return The bytes for patientName.
     */
    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>
     * @param value The patientName to set.
     * @return This builder for chaining.
     */
    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>
     * @return This builder for chaining.
     */
    public Builder clearPatientName() {
      
      patientName_ = getDefaultInstance().getPatientName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *患者姓名
     * </pre>
     *
     * <code>string patientName = 6;</code>
     * @param value The bytes for patientName to set.
     * @return This builder for chaining.
     */
    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>
     * @return The patientId.
     */
    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>
     * @return The bytes for patientId.
     */
    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>
     * @param value The patientId to set.
     * @return This builder for chaining.
     */
    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>
     * @return This builder for chaining.
     */
    public Builder clearPatientId() {
      
      patientId_ = getDefaultInstance().getPatientId();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *患者Id
     * </pre>
     *
     * <code>string patientId = 7;</code>
     * @param value The bytes for patientId to set.
     * @return This builder for chaining.
     */
    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>
     * @return The admitDate.
     */
    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>
     * @return The bytes for admitDate.
     */
    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>
     * @param value The admitDate to set.
     * @return This builder for chaining.
     */
    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>
     * @return This builder for chaining.
     */
    public Builder clearAdmitDate() {
      
      admitDate_ = getDefaultInstance().getAdmitDate();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *就诊日期(yyyy-MM-dd)
     * </pre>
     *
     * <code>string admitDate = 8;</code>
     * @param value The bytes for admitDate to set.
     * @return This builder for chaining.
     */
    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>
     * @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>
     *科室代码
     * </pre>
     *
     * <code>string deptCode = 9;</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>
     *科室代码
     * </pre>
     *
     * <code>string deptCode = 9;</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>
     *科室代码
     * </pre>
     *
     * <code>string deptCode = 9;</code>
     * @return This builder for chaining.
     */
    public Builder clearDeptCode() {
      
      deptCode_ = getDefaultInstance().getDeptCode();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *科室代码
     * </pre>
     *
     * <code>string deptCode = 9;</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 = 10;</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 = 10;</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 = 10;</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 = 10;</code>
     * @return This builder for chaining.
     */
    public Builder clearDeptName() {
      
      deptName_ = getDefaultInstance().getDeptName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *科室名称
     * </pre>
     *
     * <code>string deptName = 10;</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>
     *医生代码
     * </pre>
     *
     * <code>string doctorCode = 11;</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>
     *医生代码
     * </pre>
     *
     * <code>string doctorCode = 11;</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>
     *医生代码
     * </pre>
     *
     * <code>string doctorCode = 11;</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>
     *医生代码
     * </pre>
     *
     * <code>string doctorCode = 11;</code>
     * @return This builder for chaining.
     */
    public Builder clearDoctorCode() {
      
      doctorCode_ = getDefaultInstance().getDoctorCode();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医生代码
     * </pre>
     *
     * <code>string doctorCode = 11;</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 = 12;</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 = 12;</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 = 12;</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 = 12;</code>
     * @return This builder for chaining.
     */
    public Builder clearDoctorName() {
      
      doctorName_ = getDefaultInstance().getDoctorName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医生名称
     * </pre>
     *
     * <code>string doctorName = 12;</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 java.lang.Object doctorTitle_ = "";
    /**
     * <pre>
     *医生职称
     * </pre>
     *
     * <code>string doctorTitle = 13;</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 = 13;</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 = 13;</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 = 13;</code>
     * @return This builder for chaining.
     */
    public Builder clearDoctorTitle() {
      
      doctorTitle_ = getDefaultInstance().getDoctorTitle();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医生职称
     * </pre>
     *
     * <code>string doctorTitle = 13;</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 int regFee_ ;
    /**
     * <pre>
     *总费用(单位:分)
     * </pre>
     *
     * <code>int32 regFee = 14;</code>
     * @return The regFee.
     */
    @java.lang.Override
    public int getRegFee() {
      return regFee_;
    }
    /**
     * <pre>
     *总费用(单位:分)
     * </pre>
     *
     * <code>int32 regFee = 14;</code>
     * @param value The regFee to set.
     * @return This builder for chaining.
     */
    public Builder setRegFee(int value) {
      
      regFee_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *总费用(单位:分)
     * </pre>
     *
     * <code>int32 regFee = 14;</code>
     * @return This builder for chaining.
     */
    public Builder clearRegFee() {
      
      regFee_ = 0;
      onChanged();
      return this;
    }

    private int seqCode_ ;
    /**
     * <pre>
     *就诊序号
     * </pre>
     *
     * <code>int32 seqCode = 15;</code>
     * @return The seqCode.
     */
    @java.lang.Override
    public int getSeqCode() {
      return seqCode_;
    }
    /**
     * <pre>
     *就诊序号
     * </pre>
     *
     * <code>int32 seqCode = 15;</code>
     * @param value The seqCode to set.
     * @return This builder for chaining.
     */
    public Builder setSeqCode(int value) {
      
      seqCode_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *就诊序号
     * </pre>
     *
     * <code>int32 seqCode = 15;</code>
     * @return This builder for chaining.
     */
    public Builder clearSeqCode() {
      
      seqCode_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object admitAddress_ = "";
    /**
     * <pre>
     *候诊地点
     * </pre>
     *
     * <code>string admitAddress = 16;</code>
     * @return The admitAddress.
     */
    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>
     * @return The bytes for admitAddress.
     */
    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>
     * @param value The admitAddress to set.
     * @return This builder for chaining.
     */
    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>
     * @return This builder for chaining.
     */
    public Builder clearAdmitAddress() {
      
      admitAddress_ = getDefaultInstance().getAdmitAddress();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *候诊地点
     * </pre>
     *
     * <code>string admitAddress = 16;</code>
     * @param value The bytes for admitAddress to set.
     * @return This builder for chaining.
     */
    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>
     * @return The admitRange.
     */
    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>
     * @return The bytes for admitRange.
     */
    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>
     * @param value The admitRange to set.
     * @return This builder for chaining.
     */
    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>
     * @return This builder for chaining.
     */
    public Builder clearAdmitRange() {
      
      admitRange_ = getDefaultInstance().getAdmitRange();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *候诊时间
     * </pre>
     *
     * <code>string admitRange = 17;</code>
     * @param value The bytes for admitRange to set.
     * @return This builder for chaining.
     */
    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>
     * @return The returnFlag.
     */
    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>
     * @return The bytes for returnFlag.
     */
    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>
     * @param value The returnFlag to set.
     * @return This builder for chaining.
     */
    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>
     * @return This builder for chaining.
     */
    public Builder clearReturnFlag() {
      
      returnFlag_ = getDefaultInstance().getReturnFlag();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *可退号标志(Y/N)
     * </pre>
     *
     * <code>string returnFlag = 18;</code>
     * @param value The bytes for returnFlag to set.
     * @return This builder for chaining.
     */
    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>
     * @return The datePeriod.
     */
    @java.lang.Override
    public int getDatePeriod() {
      return datePeriod_;
    }
    /**
     * <pre>
     *预约时段
     * </pre>
     *
     * <code>int32 datePeriod = 19;</code>
     * @param value The datePeriod to set.
     * @return This builder for chaining.
     */
    public Builder setDatePeriod(int value) {
      
      datePeriod_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *预约时段
     * </pre>
     *
     * <code>int32 datePeriod = 19;</code>
     * @return This builder for chaining.
     */
    public Builder clearDatePeriod() {
      
      datePeriod_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object startTime_ = "";
    /**
     * <pre>
     *开始时间
     * </pre>
     *
     * <code>string startTime = 20;</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>
     *开始时间
     * </pre>
     *
     * <code>string startTime = 20;</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>
     *开始时间
     * </pre>
     *
     * <code>string startTime = 20;</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>
     *开始时间
     * </pre>
     *
     * <code>string startTime = 20;</code>
     * @return This builder for chaining.
     */
    public Builder clearStartTime() {
      
      startTime_ = getDefaultInstance().getStartTime();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *开始时间
     * </pre>
     *
     * <code>string startTime = 20;</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>
     *结束时间
     * </pre>
     *
     * <code>string endTime = 21;</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>
     *结束时间
     * </pre>
     *
     * <code>string endTime = 21;</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>
     *结束时间
     * </pre>
     *
     * <code>string endTime = 21;</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>
     *结束时间
     * </pre>
     *
     * <code>string endTime = 21;</code>
     * @return This builder for chaining.
     */
    public Builder clearEndTime() {
      
      endTime_ = getDefaultInstance().getEndTime();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *结束时间
     * </pre>
     *
     * <code>string endTime = 21;</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;
    }
    @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.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>() {
    @java.lang.Override
    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;
  }

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

}

