// 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.RegisterRequest}
 */
public final class RegisterRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.third.taihe.RegisterRequest)
    RegisterRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use RegisterRequest.newBuilder() to construct.
  private RegisterRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private RegisterRequest() {
    scheduleItemCode_ = "";
    patientId_ = "";
    cardNo_ = "";
    startTime_ = "";
    endTime_ = "";
  }

  @Override
  @SuppressWarnings({"unused"})
  protected Object newInstance(
      UnusedPrivateParameter unused) {
    return new RegisterRequest();
  }

  @Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private RegisterRequest(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new 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: {
            String s = input.readStringRequireUtf8();

            scheduleItemCode_ = s;
            break;
          }
          case 18: {
            String s = input.readStringRequireUtf8();

            patientId_ = s;
            break;
          }
          case 26: {
            String s = input.readStringRequireUtf8();

            cardNo_ = s;
            break;
          }
          case 58: {
            String s = input.readStringRequireUtf8();

            startTime_ = s;
            break;
          }
          case 66: {
            String s = input.readStringRequireUtf8();

            endTime_ = s;
            break;
          }
          case 72: {

            hospitalId_ = input.readInt32();
            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.ThirdTaiheProto.internal_static_com_ywt_gapi_third_taihe_RegisterRequest_descriptor;
  }

  @Override
  protected FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.third.taihe.ThirdTaiheProto.internal_static_com_ywt_gapi_third_taihe_RegisterRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            RegisterRequest.class, Builder.class);
  }

  public static final int SCHEDULEITEMCODE_FIELD_NUMBER = 1;
  private volatile Object scheduleItemCode_;
  /**
   * <pre>
   *门诊排班项代码
   * </pre>
   *
   * <code>string scheduleItemCode = 1;</code>
   * @return The scheduleItemCode.
   */
  @Override
  public String getScheduleItemCode() {
    Object ref = scheduleItemCode_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      scheduleItemCode_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *门诊排班项代码
   * </pre>
   *
   * <code>string scheduleItemCode = 1;</code>
   * @return The bytes for scheduleItemCode.
   */
  @Override
  public com.google.protobuf.ByteString
      getScheduleItemCodeBytes() {
    Object ref = scheduleItemCode_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      scheduleItemCode_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PATIENTID_FIELD_NUMBER = 2;
  private volatile Object patientId_;
  /**
   * <pre>
   *病人ID(CardNo为空时必填)
   * </pre>
   *
   * <code>string patientId = 2;</code>
   * @return The patientId.
   */
  @Override
  public String getPatientId() {
    Object ref = patientId_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      patientId_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *病人ID(CardNo为空时必填)
   * </pre>
   *
   * <code>string patientId = 2;</code>
   * @return The bytes for patientId.
   */
  @Override
  public com.google.protobuf.ByteString
      getPatientIdBytes() {
    Object ref = patientId_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      patientId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int CARDNO_FIELD_NUMBER = 3;
  private volatile Object cardNo_;
  /**
   * <pre>
   *卡号(PatientID为空时，必填）
   * </pre>
   *
   * <code>string cardNo = 3;</code>
   * @return The cardNo.
   */
  @Override
  public String getCardNo() {
    Object ref = cardNo_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      cardNo_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *卡号(PatientID为空时，必填）
   * </pre>
   *
   * <code>string cardNo = 3;</code>
   * @return The bytes for cardNo.
   */
  @Override
  public com.google.protobuf.ByteString
      getCardNoBytes() {
    Object ref = cardNo_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      cardNo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int STARTTIME_FIELD_NUMBER = 7;
  private volatile Object startTime_;
  /**
   * <pre>
   *开始时间(09:00)
   * </pre>
   *
   * <code>string startTime = 7;</code>
   * @return The startTime.
   */
  @Override
  public String getStartTime() {
    Object ref = startTime_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      startTime_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *开始时间(09:00)
   * </pre>
   *
   * <code>string startTime = 7;</code>
   * @return The bytes for startTime.
   */
  @Override
  public com.google.protobuf.ByteString
      getStartTimeBytes() {
    Object ref = startTime_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      startTime_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ENDTIME_FIELD_NUMBER = 8;
  private volatile Object endTime_;
  /**
   * <pre>
   *结束时间(09:30)
   * </pre>
   *
   * <code>string endTime = 8;</code>
   * @return The endTime.
   */
  @Override
  public String getEndTime() {
    Object ref = endTime_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      endTime_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *结束时间(09:30)
   * </pre>
   *
   * <code>string endTime = 8;</code>
   * @return The bytes for endTime.
   */
  @Override
  public com.google.protobuf.ByteString
      getEndTimeBytes() {
    Object ref = endTime_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      endTime_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

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

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

    memoizedIsInitialized = 1;
    return true;
  }

  @Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scheduleItemCode_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, scheduleItemCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patientId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, patientId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cardNo_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, cardNo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startTime_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, startTime_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endTime_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, endTime_);
    }
    if (hospitalId_ != 0) {
      output.writeInt32(9, hospitalId_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scheduleItemCode_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, scheduleItemCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patientId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, patientId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cardNo_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, cardNo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startTime_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, startTime_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endTime_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, endTime_);
    }
    if (hospitalId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(9, hospitalId_);
    }
    size += unknownFields.getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @Override
  public boolean equals(final Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof RegisterRequest)) {
      return super.equals(obj);
    }
    RegisterRequest other = (RegisterRequest) obj;

    if (!getScheduleItemCode()
        .equals(other.getScheduleItemCode())) return false;
    if (!getPatientId()
        .equals(other.getPatientId())) return false;
    if (!getCardNo()
        .equals(other.getCardNo())) return false;
    if (!getStartTime()
        .equals(other.getStartTime())) return false;
    if (!getEndTime()
        .equals(other.getEndTime())) return false;
    if (getHospitalId()
        != other.getHospitalId()) return false;
    if (!unknownFields.equals(other.unknownFields)) return false;
    return true;
  }

  @Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + SCHEDULEITEMCODE_FIELD_NUMBER;
    hash = (53 * hash) + getScheduleItemCode().hashCode();
    hash = (37 * hash) + PATIENTID_FIELD_NUMBER;
    hash = (53 * hash) + getPatientId().hashCode();
    hash = (37 * hash) + CARDNO_FIELD_NUMBER;
    hash = (53 * hash) + getCardNo().hashCode();
    hash = (37 * hash) + STARTTIME_FIELD_NUMBER;
    hash = (53 * hash) + getStartTime().hashCode();
    hash = (37 * hash) + ENDTIME_FIELD_NUMBER;
    hash = (53 * hash) + getEndTime().hashCode();
    hash = (37 * hash) + HOSPITALID_FIELD_NUMBER;
    hash = (53 * hash) + getHospitalId();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

  @Override
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(RegisterRequest prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  @Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @Override
  protected Builder newBuilderForType(
      BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * <pre>
   *预约挂号请求
   * </pre>
   *
   * Protobuf type {@code com.ywt.gapi.third.taihe.RegisterRequest}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.third.taihe.RegisterRequest)
      com.ywt.gapi.third.taihe.RegisterRequestOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.third.taihe.ThirdTaiheProto.internal_static_com_ywt_gapi_third_taihe_RegisterRequest_descriptor;
    }

    @Override
    protected FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.third.taihe.ThirdTaiheProto.internal_static_com_ywt_gapi_third_taihe_RegisterRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              RegisterRequest.class, Builder.class);
    }

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

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

      patientId_ = "";

      cardNo_ = "";

      startTime_ = "";

      endTime_ = "";

      hospitalId_ = 0;

      return this;
    }

    @Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.third.taihe.ThirdTaiheProto.internal_static_com_ywt_gapi_third_taihe_RegisterRequest_descriptor;
    }

    @Override
    public RegisterRequest getDefaultInstanceForType() {
      return RegisterRequest.getDefaultInstance();
    }

    @Override
    public RegisterRequest build() {
      RegisterRequest result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @Override
    public RegisterRequest buildPartial() {
      RegisterRequest result = new RegisterRequest(this);
      result.scheduleItemCode_ = scheduleItemCode_;
      result.patientId_ = patientId_;
      result.cardNo_ = cardNo_;
      result.startTime_ = startTime_;
      result.endTime_ = endTime_;
      result.hospitalId_ = hospitalId_;
      onBuilt();
      return result;
    }

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

    public Builder mergeFrom(RegisterRequest other) {
      if (other == RegisterRequest.getDefaultInstance()) return this;
      if (!other.getScheduleItemCode().isEmpty()) {
        scheduleItemCode_ = other.scheduleItemCode_;
        onChanged();
      }
      if (!other.getPatientId().isEmpty()) {
        patientId_ = other.patientId_;
        onChanged();
      }
      if (!other.getCardNo().isEmpty()) {
        cardNo_ = other.cardNo_;
        onChanged();
      }
      if (!other.getStartTime().isEmpty()) {
        startTime_ = other.startTime_;
        onChanged();
      }
      if (!other.getEndTime().isEmpty()) {
        endTime_ = other.endTime_;
        onChanged();
      }
      if (other.getHospitalId() != 0) {
        setHospitalId(other.getHospitalId());
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

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

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

    private Object scheduleItemCode_ = "";
    /**
     * <pre>
     *门诊排班项代码
     * </pre>
     *
     * <code>string scheduleItemCode = 1;</code>
     * @return The scheduleItemCode.
     */
    public String getScheduleItemCode() {
      Object ref = scheduleItemCode_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        scheduleItemCode_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <pre>
     *门诊排班项代码
     * </pre>
     *
     * <code>string scheduleItemCode = 1;</code>
     * @return The bytes for scheduleItemCode.
     */
    public com.google.protobuf.ByteString
        getScheduleItemCodeBytes() {
      Object ref = scheduleItemCode_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        scheduleItemCode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *门诊排班项代码
     * </pre>
     *
     * <code>string scheduleItemCode = 1;</code>
     * @param value The scheduleItemCode to set.
     * @return This builder for chaining.
     */
    public Builder setScheduleItemCode(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      scheduleItemCode_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *门诊排班项代码
     * </pre>
     *
     * <code>string scheduleItemCode = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearScheduleItemCode() {
      
      scheduleItemCode_ = getDefaultInstance().getScheduleItemCode();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *门诊排班项代码
     * </pre>
     *
     * <code>string scheduleItemCode = 1;</code>
     * @param value The bytes for scheduleItemCode to set.
     * @return This builder for chaining.
     */
    public Builder setScheduleItemCodeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      scheduleItemCode_ = value;
      onChanged();
      return this;
    }

    private Object patientId_ = "";
    /**
     * <pre>
     *病人ID(CardNo为空时必填)
     * </pre>
     *
     * <code>string patientId = 2;</code>
     * @return The patientId.
     */
    public String getPatientId() {
      Object ref = patientId_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        patientId_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <pre>
     *病人ID(CardNo为空时必填)
     * </pre>
     *
     * <code>string patientId = 2;</code>
     * @return The bytes for patientId.
     */
    public com.google.protobuf.ByteString
        getPatientIdBytes() {
      Object ref = patientId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        patientId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *病人ID(CardNo为空时必填)
     * </pre>
     *
     * <code>string patientId = 2;</code>
     * @param value The patientId to set.
     * @return This builder for chaining.
     */
    public Builder setPatientId(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      patientId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *病人ID(CardNo为空时必填)
     * </pre>
     *
     * <code>string patientId = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearPatientId() {
      
      patientId_ = getDefaultInstance().getPatientId();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *病人ID(CardNo为空时必填)
     * </pre>
     *
     * <code>string patientId = 2;</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 Object cardNo_ = "";
    /**
     * <pre>
     *卡号(PatientID为空时，必填）
     * </pre>
     *
     * <code>string cardNo = 3;</code>
     * @return The cardNo.
     */
    public String getCardNo() {
      Object ref = cardNo_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        cardNo_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <pre>
     *卡号(PatientID为空时，必填）
     * </pre>
     *
     * <code>string cardNo = 3;</code>
     * @return The bytes for cardNo.
     */
    public com.google.protobuf.ByteString
        getCardNoBytes() {
      Object ref = cardNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        cardNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *卡号(PatientID为空时，必填）
     * </pre>
     *
     * <code>string cardNo = 3;</code>
     * @param value The cardNo to set.
     * @return This builder for chaining.
     */
    public Builder setCardNo(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      cardNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *卡号(PatientID为空时，必填）
     * </pre>
     *
     * <code>string cardNo = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearCardNo() {
      
      cardNo_ = getDefaultInstance().getCardNo();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *卡号(PatientID为空时，必填）
     * </pre>
     *
     * <code>string cardNo = 3;</code>
     * @param value The bytes for cardNo to set.
     * @return This builder for chaining.
     */
    public Builder setCardNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      cardNo_ = value;
      onChanged();
      return this;
    }

    private Object startTime_ = "";
    /**
     * <pre>
     *开始时间(09:00)
     * </pre>
     *
     * <code>string startTime = 7;</code>
     * @return The startTime.
     */
    public String getStartTime() {
      Object ref = startTime_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        startTime_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <pre>
     *开始时间(09:00)
     * </pre>
     *
     * <code>string startTime = 7;</code>
     * @return The bytes for startTime.
     */
    public com.google.protobuf.ByteString
        getStartTimeBytes() {
      Object ref = startTime_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        startTime_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *开始时间(09:00)
     * </pre>
     *
     * <code>string startTime = 7;</code>
     * @param value The startTime to set.
     * @return This builder for chaining.
     */
    public Builder setStartTime(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      startTime_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *开始时间(09:00)
     * </pre>
     *
     * <code>string startTime = 7;</code>
     * @return This builder for chaining.
     */
    public Builder clearStartTime() {
      
      startTime_ = getDefaultInstance().getStartTime();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *开始时间(09:00)
     * </pre>
     *
     * <code>string startTime = 7;</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 Object endTime_ = "";
    /**
     * <pre>
     *结束时间(09:30)
     * </pre>
     *
     * <code>string endTime = 8;</code>
     * @return The endTime.
     */
    public String getEndTime() {
      Object ref = endTime_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        endTime_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <pre>
     *结束时间(09:30)
     * </pre>
     *
     * <code>string endTime = 8;</code>
     * @return The bytes for endTime.
     */
    public com.google.protobuf.ByteString
        getEndTimeBytes() {
      Object ref = endTime_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        endTime_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *结束时间(09:30)
     * </pre>
     *
     * <code>string endTime = 8;</code>
     * @param value The endTime to set.
     * @return This builder for chaining.
     */
    public Builder setEndTime(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      endTime_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *结束时间(09:30)
     * </pre>
     *
     * <code>string endTime = 8;</code>
     * @return This builder for chaining.
     */
    public Builder clearEndTime() {
      
      endTime_ = getDefaultInstance().getEndTime();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *结束时间(09:30)
     * </pre>
     *
     * <code>string endTime = 8;</code>
     * @param value The bytes for endTime to set.
     * @return This builder for chaining.
     */
    public Builder setEndTimeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      endTime_ = value;
      onChanged();
      return this;
    }

    private int hospitalId_ ;
    /**
     * <code>int32 hospitalId = 9;</code>
     * @return The hospitalId.
     */
    @Override
    public int getHospitalId() {
      return hospitalId_;
    }
    /**
     * <code>int32 hospitalId = 9;</code>
     * @param value The hospitalId to set.
     * @return This builder for chaining.
     */
    public Builder setHospitalId(int value) {
      
      hospitalId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 hospitalId = 9;</code>
     * @return This builder for chaining.
     */
    public Builder clearHospitalId() {
      
      hospitalId_ = 0;
      onChanged();
      return this;
    }
    @Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @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.RegisterRequest)
  }

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

  public static RegisterRequest getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  @Override
  public RegisterRequest getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

