// 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.ScheduleTimeInfo}
 */
public  final class ScheduleTimeInfo extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.third.taihe.ScheduleTimeInfo)
    ScheduleTimeInfoOrBuilder {
  // Use ScheduleTimeInfo.newBuilder() to construct.
  private ScheduleTimeInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private ScheduleTimeInfo() {
    scheduleItemCode_ = "";
    startTime_ = "";
    endTime_ = "";
    availableTotalNum_ = 0;
    availableLeftNum_ = 0;
    availableFlag_ = "";
    availableNumStr_ = "";
  }

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

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

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

            endTime_ = s;
            break;
          }
          case 32: {

            availableTotalNum_ = input.readInt32();
            break;
          }
          case 40: {

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

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

            availableNumStr_ = s;
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.ywt.gapi.third.taihe.Taihe.internal_static_com_ywt_gapi_third_taihe_ScheduleTimeInfo_descriptor;
  }

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

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

  public static final int STARTTIME_FIELD_NUMBER = 2;
  private volatile java.lang.Object startTime_;
  /**
   * <pre>
   *班别开始时间，格式：HH:MI
   * </pre>
   *
   * <code>string startTime = 2;</code>
   */
  public java.lang.String getStartTime() {
    java.lang.Object ref = startTime_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      startTime_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *班别开始时间，格式：HH:MI
   * </pre>
   *
   * <code>string startTime = 2;</code>
   */
  public com.google.protobuf.ByteString
      getStartTimeBytes() {
    java.lang.Object ref = startTime_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      startTime_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ENDTIME_FIELD_NUMBER = 3;
  private volatile java.lang.Object endTime_;
  /**
   * <pre>
   *班别结束时间，格式：HH:MI
   * </pre>
   *
   * <code>string endTime = 3;</code>
   */
  public java.lang.String getEndTime() {
    java.lang.Object ref = endTime_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      endTime_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *班别结束时间，格式：HH:MI
   * </pre>
   *
   * <code>string endTime = 3;</code>
   */
  public com.google.protobuf.ByteString
      getEndTimeBytes() {
    java.lang.Object ref = endTime_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      endTime_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int AVAILABLETOTALNUM_FIELD_NUMBER = 4;
  private int availableTotalNum_;
  /**
   * <pre>
   *该时段可预约的总号源数
   * </pre>
   *
   * <code>int32 availableTotalNum = 4;</code>
   */
  public int getAvailableTotalNum() {
    return availableTotalNum_;
  }

  public static final int AVAILABLELEFTNUM_FIELD_NUMBER = 5;
  private int availableLeftNum_;
  /**
   * <pre>
   *该时段剩余号源数
   * </pre>
   *
   * <code>int32 availableLeftNum = 5;</code>
   */
  public int getAvailableLeftNum() {
    return availableLeftNum_;
  }

  public static final int AVAILABLEFLAG_FIELD_NUMBER = 6;
  private volatile java.lang.Object availableFlag_;
  /**
   * <pre>
   *可否预约标识（Y:可预约，N:不可预约）
   * </pre>
   *
   * <code>string availableFlag = 6;</code>
   */
  public java.lang.String getAvailableFlag() {
    java.lang.Object ref = availableFlag_;
    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();
      availableFlag_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *可否预约标识（Y:可预约，N:不可预约）
   * </pre>
   *
   * <code>string availableFlag = 6;</code>
   */
  public com.google.protobuf.ByteString
      getAvailableFlagBytes() {
    java.lang.Object ref = availableFlag_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      availableFlag_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int AVAILABLENUMSTR_FIELD_NUMBER = 7;
  private volatile java.lang.Object availableNumStr_;
  /**
   * <pre>
   * 可预约号源序号列表
   * </pre>
   *
   * <code>string availableNumStr = 7;</code>
   */
  public java.lang.String getAvailableNumStr() {
    java.lang.Object ref = availableNumStr_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      availableNumStr_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 可预约号源序号列表
   * </pre>
   *
   * <code>string availableNumStr = 7;</code>
   */
  public com.google.protobuf.ByteString
      getAvailableNumStrBytes() {
    java.lang.Object ref = availableNumStr_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      availableNumStr_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

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

    memoizedIsInitialized = 1;
    return true;
  }

  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (!getScheduleItemCodeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, scheduleItemCode_);
    }
    if (!getStartTimeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, startTime_);
    }
    if (!getEndTimeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, endTime_);
    }
    if (availableTotalNum_ != 0) {
      output.writeInt32(4, availableTotalNum_);
    }
    if (availableLeftNum_ != 0) {
      output.writeInt32(5, availableLeftNum_);
    }
    if (!getAvailableFlagBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, availableFlag_);
    }
    if (!getAvailableNumStrBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, availableNumStr_);
    }
  }

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

    size = 0;
    if (!getScheduleItemCodeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, scheduleItemCode_);
    }
    if (!getStartTimeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, startTime_);
    }
    if (!getEndTimeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, endTime_);
    }
    if (availableTotalNum_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(4, availableTotalNum_);
    }
    if (availableLeftNum_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(5, availableLeftNum_);
    }
    if (!getAvailableFlagBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, availableFlag_);
    }
    if (!getAvailableNumStrBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, availableNumStr_);
    }
    memoizedSize = size;
    return size;
  }

  private static final long serialVersionUID = 0L;
  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof com.ywt.gapi.third.taihe.ScheduleTimeInfo)) {
      return super.equals(obj);
    }
    com.ywt.gapi.third.taihe.ScheduleTimeInfo other = (com.ywt.gapi.third.taihe.ScheduleTimeInfo) obj;

    boolean result = true;
    result = result && getScheduleItemCode()
        .equals(other.getScheduleItemCode());
    result = result && getStartTime()
        .equals(other.getStartTime());
    result = result && getEndTime()
        .equals(other.getEndTime());
    result = result && (getAvailableTotalNum()
        == other.getAvailableTotalNum());
    result = result && (getAvailableLeftNum()
        == other.getAvailableLeftNum());
    result = result && getAvailableFlag()
        .equals(other.getAvailableFlag());
    result = result && getAvailableNumStr()
        .equals(other.getAvailableNumStr());
    return result;
  }

  @java.lang.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) + STARTTIME_FIELD_NUMBER;
    hash = (53 * hash) + getStartTime().hashCode();
    hash = (37 * hash) + ENDTIME_FIELD_NUMBER;
    hash = (53 * hash) + getEndTime().hashCode();
    hash = (37 * hash) + AVAILABLETOTALNUM_FIELD_NUMBER;
    hash = (53 * hash) + getAvailableTotalNum();
    hash = (37 * hash) + AVAILABLELEFTNUM_FIELD_NUMBER;
    hash = (53 * hash) + getAvailableLeftNum();
    hash = (37 * hash) + AVAILABLEFLAG_FIELD_NUMBER;
    hash = (53 * hash) + getAvailableFlag().hashCode();
    hash = (37 * hash) + AVAILABLENUMSTR_FIELD_NUMBER;
    hash = (53 * hash) + getAvailableNumStr().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(com.ywt.gapi.third.taihe.ScheduleTimeInfo prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * <pre>
   *医生号源分时信息
   * </pre>
   *
   * Protobuf type {@code com.ywt.gapi.third.taihe.ScheduleTimeInfo}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.third.taihe.ScheduleTimeInfo)
      com.ywt.gapi.third.taihe.ScheduleTimeInfoOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.third.taihe.Taihe.internal_static_com_ywt_gapi_third_taihe_ScheduleTimeInfo_descriptor;
    }

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

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

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

      startTime_ = "";

      endTime_ = "";

      availableTotalNum_ = 0;

      availableLeftNum_ = 0;

      availableFlag_ = "";

      availableNumStr_ = "";

      return this;
    }

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

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

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

    public com.ywt.gapi.third.taihe.ScheduleTimeInfo buildPartial() {
      com.ywt.gapi.third.taihe.ScheduleTimeInfo result = new com.ywt.gapi.third.taihe.ScheduleTimeInfo(this);
      result.scheduleItemCode_ = scheduleItemCode_;
      result.startTime_ = startTime_;
      result.endTime_ = endTime_;
      result.availableTotalNum_ = availableTotalNum_;
      result.availableLeftNum_ = availableLeftNum_;
      result.availableFlag_ = availableFlag_;
      result.availableNumStr_ = availableNumStr_;
      onBuilt();
      return result;
    }

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

    public Builder mergeFrom(com.ywt.gapi.third.taihe.ScheduleTimeInfo other) {
      if (other == com.ywt.gapi.third.taihe.ScheduleTimeInfo.getDefaultInstance()) return this;
      if (!other.getScheduleItemCode().isEmpty()) {
        scheduleItemCode_ = other.scheduleItemCode_;
        onChanged();
      }
      if (!other.getStartTime().isEmpty()) {
        startTime_ = other.startTime_;
        onChanged();
      }
      if (!other.getEndTime().isEmpty()) {
        endTime_ = other.endTime_;
        onChanged();
      }
      if (other.getAvailableTotalNum() != 0) {
        setAvailableTotalNum(other.getAvailableTotalNum());
      }
      if (other.getAvailableLeftNum() != 0) {
        setAvailableLeftNum(other.getAvailableLeftNum());
      }
      if (!other.getAvailableFlag().isEmpty()) {
        availableFlag_ = other.availableFlag_;
        onChanged();
      }
      if (!other.getAvailableNumStr().isEmpty()) {
        availableNumStr_ = other.availableNumStr_;
        onChanged();
      }
      onChanged();
      return this;
    }

    public final boolean isInitialized() {
      return true;
    }

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

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

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

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

    private int availableTotalNum_ ;
    /**
     * <pre>
     *该时段可预约的总号源数
     * </pre>
     *
     * <code>int32 availableTotalNum = 4;</code>
     */
    public int getAvailableTotalNum() {
      return availableTotalNum_;
    }
    /**
     * <pre>
     *该时段可预约的总号源数
     * </pre>
     *
     * <code>int32 availableTotalNum = 4;</code>
     */
    public Builder setAvailableTotalNum(int value) {
      
      availableTotalNum_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *该时段可预约的总号源数
     * </pre>
     *
     * <code>int32 availableTotalNum = 4;</code>
     */
    public Builder clearAvailableTotalNum() {
      
      availableTotalNum_ = 0;
      onChanged();
      return this;
    }

    private int availableLeftNum_ ;
    /**
     * <pre>
     *该时段剩余号源数
     * </pre>
     *
     * <code>int32 availableLeftNum = 5;</code>
     */
    public int getAvailableLeftNum() {
      return availableLeftNum_;
    }
    /**
     * <pre>
     *该时段剩余号源数
     * </pre>
     *
     * <code>int32 availableLeftNum = 5;</code>
     */
    public Builder setAvailableLeftNum(int value) {
      
      availableLeftNum_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *该时段剩余号源数
     * </pre>
     *
     * <code>int32 availableLeftNum = 5;</code>
     */
    public Builder clearAvailableLeftNum() {
      
      availableLeftNum_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object availableFlag_ = "";
    /**
     * <pre>
     *可否预约标识（Y:可预约，N:不可预约）
     * </pre>
     *
     * <code>string availableFlag = 6;</code>
     */
    public java.lang.String getAvailableFlag() {
      java.lang.Object ref = availableFlag_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        availableFlag_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *可否预约标识（Y:可预约，N:不可预约）
     * </pre>
     *
     * <code>string availableFlag = 6;</code>
     */
    public com.google.protobuf.ByteString
        getAvailableFlagBytes() {
      java.lang.Object ref = availableFlag_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        availableFlag_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *可否预约标识（Y:可预约，N:不可预约）
     * </pre>
     *
     * <code>string availableFlag = 6;</code>
     */
    public Builder setAvailableFlag(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      availableFlag_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *可否预约标识（Y:可预约，N:不可预约）
     * </pre>
     *
     * <code>string availableFlag = 6;</code>
     */
    public Builder clearAvailableFlag() {
      
      availableFlag_ = getDefaultInstance().getAvailableFlag();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *可否预约标识（Y:可预约，N:不可预约）
     * </pre>
     *
     * <code>string availableFlag = 6;</code>
     */
    public Builder setAvailableFlagBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      availableFlag_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object availableNumStr_ = "";
    /**
     * <pre>
     * 可预约号源序号列表
     * </pre>
     *
     * <code>string availableNumStr = 7;</code>
     */
    public java.lang.String getAvailableNumStr() {
      java.lang.Object ref = availableNumStr_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        availableNumStr_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 可预约号源序号列表
     * </pre>
     *
     * <code>string availableNumStr = 7;</code>
     */
    public com.google.protobuf.ByteString
        getAvailableNumStrBytes() {
      java.lang.Object ref = availableNumStr_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        availableNumStr_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 可预约号源序号列表
     * </pre>
     *
     * <code>string availableNumStr = 7;</code>
     */
    public Builder setAvailableNumStr(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      availableNumStr_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 可预约号源序号列表
     * </pre>
     *
     * <code>string availableNumStr = 7;</code>
     */
    public Builder clearAvailableNumStr() {
      
      availableNumStr_ = getDefaultInstance().getAvailableNumStr();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 可预约号源序号列表
     * </pre>
     *
     * <code>string availableNumStr = 7;</code>
     */
    public Builder setAvailableNumStrBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      availableNumStr_ = value;
      onChanged();
      return this;
    }
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return this;
    }

    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return this;
    }


    // @@protoc_insertion_point(builder_scope:com.ywt.gapi.third.taihe.ScheduleTimeInfo)
  }

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

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

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

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

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

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

}

