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

package com.ywt.gapi.user;

/**
 * <pre>
 *病历日期列表
 * </pre>
 *
 * Protobuf type {@code com.ywt.gapi.user.MedicalRecordsDate}
 */
public  final class MedicalRecordsDate extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.user.MedicalRecordsDate)
    MedicalRecordsDateOrBuilder {
  // Use MedicalRecordsDate.newBuilder() to construct.
  private MedicalRecordsDate(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private MedicalRecordsDate() {
    recordsDate_ = "";
    recordsTime_ = java.util.Collections.emptyList();
  }

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

            recordsDate_ = s;
            break;
          }
          case 18: {
            if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
              recordsTime_ = new java.util.ArrayList<com.ywt.gapi.user.MedicalRecordsTime>();
              mutable_bitField0_ |= 0x00000002;
            }
            recordsTime_.add(
                input.readMessage(com.ywt.gapi.user.MedicalRecordsTime.parser(), extensionRegistry));
            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 {
      if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
        recordsTime_ = java.util.Collections.unmodifiableList(recordsTime_);
      }
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.ywt.gapi.user.DoctorOuterClass.internal_static_com_ywt_gapi_user_MedicalRecordsDate_descriptor;
  }

  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.user.DoctorOuterClass.internal_static_com_ywt_gapi_user_MedicalRecordsDate_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.user.MedicalRecordsDate.class, com.ywt.gapi.user.MedicalRecordsDate.Builder.class);
  }

  private int bitField0_;
  public static final int RECORDSDATE_FIELD_NUMBER = 1;
  private volatile java.lang.Object recordsDate_;
  /**
   * <code>string recordsDate = 1;</code>
   */
  public java.lang.String getRecordsDate() {
    java.lang.Object ref = recordsDate_;
    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();
      recordsDate_ = s;
      return s;
    }
  }
  /**
   * <code>string recordsDate = 1;</code>
   */
  public com.google.protobuf.ByteString
      getRecordsDateBytes() {
    java.lang.Object ref = recordsDate_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      recordsDate_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int RECORDSTIME_FIELD_NUMBER = 2;
  private java.util.List<com.ywt.gapi.user.MedicalRecordsTime> recordsTime_;
  /**
   * <code>repeated .com.ywt.gapi.user.MedicalRecordsTime recordsTime = 2;</code>
   */
  public java.util.List<com.ywt.gapi.user.MedicalRecordsTime> getRecordsTimeList() {
    return recordsTime_;
  }
  /**
   * <code>repeated .com.ywt.gapi.user.MedicalRecordsTime recordsTime = 2;</code>
   */
  public java.util.List<? extends com.ywt.gapi.user.MedicalRecordsTimeOrBuilder> 
      getRecordsTimeOrBuilderList() {
    return recordsTime_;
  }
  /**
   * <code>repeated .com.ywt.gapi.user.MedicalRecordsTime recordsTime = 2;</code>
   */
  public int getRecordsTimeCount() {
    return recordsTime_.size();
  }
  /**
   * <code>repeated .com.ywt.gapi.user.MedicalRecordsTime recordsTime = 2;</code>
   */
  public com.ywt.gapi.user.MedicalRecordsTime getRecordsTime(int index) {
    return recordsTime_.get(index);
  }
  /**
   * <code>repeated .com.ywt.gapi.user.MedicalRecordsTime recordsTime = 2;</code>
   */
  public com.ywt.gapi.user.MedicalRecordsTimeOrBuilder getRecordsTimeOrBuilder(
      int index) {
    return recordsTime_.get(index);
  }

  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 (!getRecordsDateBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, recordsDate_);
    }
    for (int i = 0; i < recordsTime_.size(); i++) {
      output.writeMessage(2, recordsTime_.get(i));
    }
  }

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

    size = 0;
    if (!getRecordsDateBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, recordsDate_);
    }
    for (int i = 0; i < recordsTime_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, recordsTime_.get(i));
    }
    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.user.MedicalRecordsDate)) {
      return super.equals(obj);
    }
    com.ywt.gapi.user.MedicalRecordsDate other = (com.ywt.gapi.user.MedicalRecordsDate) obj;

    boolean result = true;
    result = result && getRecordsDate()
        .equals(other.getRecordsDate());
    result = result && getRecordsTimeList()
        .equals(other.getRecordsTimeList());
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + RECORDSDATE_FIELD_NUMBER;
    hash = (53 * hash) + getRecordsDate().hashCode();
    if (getRecordsTimeCount() > 0) {
      hash = (37 * hash) + RECORDSTIME_FIELD_NUMBER;
      hash = (53 * hash) + getRecordsTimeList().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.user.DoctorOuterClass.internal_static_com_ywt_gapi_user_MedicalRecordsDate_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.user.MedicalRecordsDate.class, com.ywt.gapi.user.MedicalRecordsDate.Builder.class);
    }

    // Construct using com.ywt.gapi.user.MedicalRecordsDate.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

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

      if (recordsTimeBuilder_ == null) {
        recordsTime_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
      } else {
        recordsTimeBuilder_.clear();
      }
      return this;
    }

    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.user.DoctorOuterClass.internal_static_com_ywt_gapi_user_MedicalRecordsDate_descriptor;
    }

    public com.ywt.gapi.user.MedicalRecordsDate getDefaultInstanceForType() {
      return com.ywt.gapi.user.MedicalRecordsDate.getDefaultInstance();
    }

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

    public com.ywt.gapi.user.MedicalRecordsDate buildPartial() {
      com.ywt.gapi.user.MedicalRecordsDate result = new com.ywt.gapi.user.MedicalRecordsDate(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      result.recordsDate_ = recordsDate_;
      if (recordsTimeBuilder_ == null) {
        if (((bitField0_ & 0x00000002) == 0x00000002)) {
          recordsTime_ = java.util.Collections.unmodifiableList(recordsTime_);
          bitField0_ = (bitField0_ & ~0x00000002);
        }
        result.recordsTime_ = recordsTime_;
      } else {
        result.recordsTime_ = recordsTimeBuilder_.build();
      }
      result.bitField0_ = to_bitField0_;
      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.user.MedicalRecordsDate) {
        return mergeFrom((com.ywt.gapi.user.MedicalRecordsDate)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.user.MedicalRecordsDate other) {
      if (other == com.ywt.gapi.user.MedicalRecordsDate.getDefaultInstance()) return this;
      if (!other.getRecordsDate().isEmpty()) {
        recordsDate_ = other.recordsDate_;
        onChanged();
      }
      if (recordsTimeBuilder_ == null) {
        if (!other.recordsTime_.isEmpty()) {
          if (recordsTime_.isEmpty()) {
            recordsTime_ = other.recordsTime_;
            bitField0_ = (bitField0_ & ~0x00000002);
          } else {
            ensureRecordsTimeIsMutable();
            recordsTime_.addAll(other.recordsTime_);
          }
          onChanged();
        }
      } else {
        if (!other.recordsTime_.isEmpty()) {
          if (recordsTimeBuilder_.isEmpty()) {
            recordsTimeBuilder_.dispose();
            recordsTimeBuilder_ = null;
            recordsTime_ = other.recordsTime_;
            bitField0_ = (bitField0_ & ~0x00000002);
            recordsTimeBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getRecordsTimeFieldBuilder() : null;
          } else {
            recordsTimeBuilder_.addAllMessages(other.recordsTime_);
          }
        }
      }
      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.user.MedicalRecordsDate parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.user.MedicalRecordsDate) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private java.lang.Object recordsDate_ = "";
    /**
     * <code>string recordsDate = 1;</code>
     */
    public java.lang.String getRecordsDate() {
      java.lang.Object ref = recordsDate_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        recordsDate_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string recordsDate = 1;</code>
     */
    public com.google.protobuf.ByteString
        getRecordsDateBytes() {
      java.lang.Object ref = recordsDate_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        recordsDate_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string recordsDate = 1;</code>
     */
    public Builder setRecordsDate(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      recordsDate_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string recordsDate = 1;</code>
     */
    public Builder clearRecordsDate() {
      
      recordsDate_ = getDefaultInstance().getRecordsDate();
      onChanged();
      return this;
    }
    /**
     * <code>string recordsDate = 1;</code>
     */
    public Builder setRecordsDateBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      recordsDate_ = value;
      onChanged();
      return this;
    }

    private java.util.List<com.ywt.gapi.user.MedicalRecordsTime> recordsTime_ =
      java.util.Collections.emptyList();
    private void ensureRecordsTimeIsMutable() {
      if (!((bitField0_ & 0x00000002) == 0x00000002)) {
        recordsTime_ = new java.util.ArrayList<com.ywt.gapi.user.MedicalRecordsTime>(recordsTime_);
        bitField0_ |= 0x00000002;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.user.MedicalRecordsTime, com.ywt.gapi.user.MedicalRecordsTime.Builder, com.ywt.gapi.user.MedicalRecordsTimeOrBuilder> recordsTimeBuilder_;

    /**
     * <code>repeated .com.ywt.gapi.user.MedicalRecordsTime recordsTime = 2;</code>
     */
    public java.util.List<com.ywt.gapi.user.MedicalRecordsTime> getRecordsTimeList() {
      if (recordsTimeBuilder_ == null) {
        return java.util.Collections.unmodifiableList(recordsTime_);
      } else {
        return recordsTimeBuilder_.getMessageList();
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.user.MedicalRecordsTime recordsTime = 2;</code>
     */
    public int getRecordsTimeCount() {
      if (recordsTimeBuilder_ == null) {
        return recordsTime_.size();
      } else {
        return recordsTimeBuilder_.getCount();
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.user.MedicalRecordsTime recordsTime = 2;</code>
     */
    public com.ywt.gapi.user.MedicalRecordsTime getRecordsTime(int index) {
      if (recordsTimeBuilder_ == null) {
        return recordsTime_.get(index);
      } else {
        return recordsTimeBuilder_.getMessage(index);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.user.MedicalRecordsTime recordsTime = 2;</code>
     */
    public Builder setRecordsTime(
        int index, com.ywt.gapi.user.MedicalRecordsTime value) {
      if (recordsTimeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureRecordsTimeIsMutable();
        recordsTime_.set(index, value);
        onChanged();
      } else {
        recordsTimeBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.user.MedicalRecordsTime recordsTime = 2;</code>
     */
    public Builder setRecordsTime(
        int index, com.ywt.gapi.user.MedicalRecordsTime.Builder builderForValue) {
      if (recordsTimeBuilder_ == null) {
        ensureRecordsTimeIsMutable();
        recordsTime_.set(index, builderForValue.build());
        onChanged();
      } else {
        recordsTimeBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.user.MedicalRecordsTime recordsTime = 2;</code>
     */
    public Builder addRecordsTime(com.ywt.gapi.user.MedicalRecordsTime value) {
      if (recordsTimeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureRecordsTimeIsMutable();
        recordsTime_.add(value);
        onChanged();
      } else {
        recordsTimeBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.user.MedicalRecordsTime recordsTime = 2;</code>
     */
    public Builder addRecordsTime(
        int index, com.ywt.gapi.user.MedicalRecordsTime value) {
      if (recordsTimeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureRecordsTimeIsMutable();
        recordsTime_.add(index, value);
        onChanged();
      } else {
        recordsTimeBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.user.MedicalRecordsTime recordsTime = 2;</code>
     */
    public Builder addRecordsTime(
        com.ywt.gapi.user.MedicalRecordsTime.Builder builderForValue) {
      if (recordsTimeBuilder_ == null) {
        ensureRecordsTimeIsMutable();
        recordsTime_.add(builderForValue.build());
        onChanged();
      } else {
        recordsTimeBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.user.MedicalRecordsTime recordsTime = 2;</code>
     */
    public Builder addRecordsTime(
        int index, com.ywt.gapi.user.MedicalRecordsTime.Builder builderForValue) {
      if (recordsTimeBuilder_ == null) {
        ensureRecordsTimeIsMutable();
        recordsTime_.add(index, builderForValue.build());
        onChanged();
      } else {
        recordsTimeBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.user.MedicalRecordsTime recordsTime = 2;</code>
     */
    public Builder addAllRecordsTime(
        java.lang.Iterable<? extends com.ywt.gapi.user.MedicalRecordsTime> values) {
      if (recordsTimeBuilder_ == null) {
        ensureRecordsTimeIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, recordsTime_);
        onChanged();
      } else {
        recordsTimeBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.user.MedicalRecordsTime recordsTime = 2;</code>
     */
    public Builder clearRecordsTime() {
      if (recordsTimeBuilder_ == null) {
        recordsTime_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
      } else {
        recordsTimeBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.user.MedicalRecordsTime recordsTime = 2;</code>
     */
    public Builder removeRecordsTime(int index) {
      if (recordsTimeBuilder_ == null) {
        ensureRecordsTimeIsMutable();
        recordsTime_.remove(index);
        onChanged();
      } else {
        recordsTimeBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.user.MedicalRecordsTime recordsTime = 2;</code>
     */
    public com.ywt.gapi.user.MedicalRecordsTime.Builder getRecordsTimeBuilder(
        int index) {
      return getRecordsTimeFieldBuilder().getBuilder(index);
    }
    /**
     * <code>repeated .com.ywt.gapi.user.MedicalRecordsTime recordsTime = 2;</code>
     */
    public com.ywt.gapi.user.MedicalRecordsTimeOrBuilder getRecordsTimeOrBuilder(
        int index) {
      if (recordsTimeBuilder_ == null) {
        return recordsTime_.get(index);  } else {
        return recordsTimeBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.user.MedicalRecordsTime recordsTime = 2;</code>
     */
    public java.util.List<? extends com.ywt.gapi.user.MedicalRecordsTimeOrBuilder> 
         getRecordsTimeOrBuilderList() {
      if (recordsTimeBuilder_ != null) {
        return recordsTimeBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(recordsTime_);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.user.MedicalRecordsTime recordsTime = 2;</code>
     */
    public com.ywt.gapi.user.MedicalRecordsTime.Builder addRecordsTimeBuilder() {
      return getRecordsTimeFieldBuilder().addBuilder(
          com.ywt.gapi.user.MedicalRecordsTime.getDefaultInstance());
    }
    /**
     * <code>repeated .com.ywt.gapi.user.MedicalRecordsTime recordsTime = 2;</code>
     */
    public com.ywt.gapi.user.MedicalRecordsTime.Builder addRecordsTimeBuilder(
        int index) {
      return getRecordsTimeFieldBuilder().addBuilder(
          index, com.ywt.gapi.user.MedicalRecordsTime.getDefaultInstance());
    }
    /**
     * <code>repeated .com.ywt.gapi.user.MedicalRecordsTime recordsTime = 2;</code>
     */
    public java.util.List<com.ywt.gapi.user.MedicalRecordsTime.Builder> 
         getRecordsTimeBuilderList() {
      return getRecordsTimeFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.user.MedicalRecordsTime, com.ywt.gapi.user.MedicalRecordsTime.Builder, com.ywt.gapi.user.MedicalRecordsTimeOrBuilder> 
        getRecordsTimeFieldBuilder() {
      if (recordsTimeBuilder_ == null) {
        recordsTimeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            com.ywt.gapi.user.MedicalRecordsTime, com.ywt.gapi.user.MedicalRecordsTime.Builder, com.ywt.gapi.user.MedicalRecordsTimeOrBuilder>(
                recordsTime_,
                ((bitField0_ & 0x00000002) == 0x00000002),
                getParentForChildren(),
                isClean());
        recordsTime_ = null;
      }
      return recordsTimeBuilder_;
    }
    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.user.MedicalRecordsDate)
  }

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

  public static com.ywt.gapi.user.MedicalRecordsDate getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  public com.ywt.gapi.user.MedicalRecordsDate getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

