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

package com.ywt.gapi.user;

/**
 * <pre>
 *保存出诊排班Request create by daiyihua
 * </pre>
 *
 * Protobuf type {@code com.ywt.gapi.user.SaveDoctorScheduleRequest}
 */
public  final class SaveDoctorScheduleRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.user.SaveDoctorScheduleRequest)
    SaveDoctorScheduleRequestOrBuilder {
  // Use SaveDoctorScheduleRequest.newBuilder() to construct.
  private SaveDoctorScheduleRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private SaveDoctorScheduleRequest() {
    doctorId_ = 0;
    doctorSchedule_ = java.util.Collections.emptyList();
  }

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

            doctorId_ = input.readInt32();
            break;
          }
          case 18: {
            if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
              doctorSchedule_ = new java.util.ArrayList<com.ywt.gapi.user.DoctorSchedule>();
              mutable_bitField0_ |= 0x00000002;
            }
            doctorSchedule_.add(
                input.readMessage(com.ywt.gapi.user.DoctorSchedule.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)) {
        doctorSchedule_ = java.util.Collections.unmodifiableList(doctorSchedule_);
      }
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.ywt.gapi.user.DoctorOuterClass.internal_static_com_ywt_gapi_user_SaveDoctorScheduleRequest_descriptor;
  }

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

  private int bitField0_;
  public static final int DOCTORID_FIELD_NUMBER = 1;
  private int doctorId_;
  /**
   * <pre>
   *医生ID
   * </pre>
   *
   * <code>int32 doctorId = 1;</code>
   */
  public int getDoctorId() {
    return doctorId_;
  }

  public static final int DOCTORSCHEDULE_FIELD_NUMBER = 2;
  private java.util.List<com.ywt.gapi.user.DoctorSchedule> doctorSchedule_;
  /**
   * <pre>
   *出诊排班
   * </pre>
   *
   * <code>repeated .com.ywt.gapi.user.DoctorSchedule doctorSchedule = 2;</code>
   */
  public java.util.List<com.ywt.gapi.user.DoctorSchedule> getDoctorScheduleList() {
    return doctorSchedule_;
  }
  /**
   * <pre>
   *出诊排班
   * </pre>
   *
   * <code>repeated .com.ywt.gapi.user.DoctorSchedule doctorSchedule = 2;</code>
   */
  public java.util.List<? extends com.ywt.gapi.user.DoctorScheduleOrBuilder> 
      getDoctorScheduleOrBuilderList() {
    return doctorSchedule_;
  }
  /**
   * <pre>
   *出诊排班
   * </pre>
   *
   * <code>repeated .com.ywt.gapi.user.DoctorSchedule doctorSchedule = 2;</code>
   */
  public int getDoctorScheduleCount() {
    return doctorSchedule_.size();
  }
  /**
   * <pre>
   *出诊排班
   * </pre>
   *
   * <code>repeated .com.ywt.gapi.user.DoctorSchedule doctorSchedule = 2;</code>
   */
  public com.ywt.gapi.user.DoctorSchedule getDoctorSchedule(int index) {
    return doctorSchedule_.get(index);
  }
  /**
   * <pre>
   *出诊排班
   * </pre>
   *
   * <code>repeated .com.ywt.gapi.user.DoctorSchedule doctorSchedule = 2;</code>
   */
  public com.ywt.gapi.user.DoctorScheduleOrBuilder getDoctorScheduleOrBuilder(
      int index) {
    return doctorSchedule_.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 (doctorId_ != 0) {
      output.writeInt32(1, doctorId_);
    }
    for (int i = 0; i < doctorSchedule_.size(); i++) {
      output.writeMessage(2, doctorSchedule_.get(i));
    }
  }

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

    size = 0;
    if (doctorId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(1, doctorId_);
    }
    for (int i = 0; i < doctorSchedule_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, doctorSchedule_.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.SaveDoctorScheduleRequest)) {
      return super.equals(obj);
    }
    com.ywt.gapi.user.SaveDoctorScheduleRequest other = (com.ywt.gapi.user.SaveDoctorScheduleRequest) obj;

    boolean result = true;
    result = result && (getDoctorId()
        == other.getDoctorId());
    result = result && getDoctorScheduleList()
        .equals(other.getDoctorScheduleList());
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + DOCTORID_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorId();
    if (getDoctorScheduleCount() > 0) {
      hash = (37 * hash) + DOCTORSCHEDULE_FIELD_NUMBER;
      hash = (53 * hash) + getDoctorScheduleList().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.ywt.gapi.user.SaveDoctorScheduleRequest parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.user.SaveDoctorScheduleRequest 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.SaveDoctorScheduleRequest parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.user.SaveDoctorScheduleRequest 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.SaveDoctorScheduleRequest parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.user.SaveDoctorScheduleRequest parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.user.SaveDoctorScheduleRequest parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.user.SaveDoctorScheduleRequest 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.SaveDoctorScheduleRequest parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.user.SaveDoctorScheduleRequest 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.SaveDoctorScheduleRequest parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.user.SaveDoctorScheduleRequest 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.SaveDoctorScheduleRequest 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>
   *保存出诊排班Request create by daiyihua
   * </pre>
   *
   * Protobuf type {@code com.ywt.gapi.user.SaveDoctorScheduleRequest}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.user.SaveDoctorScheduleRequest)
      com.ywt.gapi.user.SaveDoctorScheduleRequestOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.user.DoctorOuterClass.internal_static_com_ywt_gapi_user_SaveDoctorScheduleRequest_descriptor;
    }

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

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

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

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

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

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

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

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

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

    private int doctorId_ ;
    /**
     * <pre>
     *医生ID
     * </pre>
     *
     * <code>int32 doctorId = 1;</code>
     */
    public int getDoctorId() {
      return doctorId_;
    }
    /**
     * <pre>
     *医生ID
     * </pre>
     *
     * <code>int32 doctorId = 1;</code>
     */
    public Builder setDoctorId(int value) {
      
      doctorId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医生ID
     * </pre>
     *
     * <code>int32 doctorId = 1;</code>
     */
    public Builder clearDoctorId() {
      
      doctorId_ = 0;
      onChanged();
      return this;
    }

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

    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.user.DoctorSchedule, com.ywt.gapi.user.DoctorSchedule.Builder, com.ywt.gapi.user.DoctorScheduleOrBuilder> doctorScheduleBuilder_;

    /**
     * <pre>
     *出诊排班
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.DoctorSchedule doctorSchedule = 2;</code>
     */
    public java.util.List<com.ywt.gapi.user.DoctorSchedule> getDoctorScheduleList() {
      if (doctorScheduleBuilder_ == null) {
        return java.util.Collections.unmodifiableList(doctorSchedule_);
      } else {
        return doctorScheduleBuilder_.getMessageList();
      }
    }
    /**
     * <pre>
     *出诊排班
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.DoctorSchedule doctorSchedule = 2;</code>
     */
    public int getDoctorScheduleCount() {
      if (doctorScheduleBuilder_ == null) {
        return doctorSchedule_.size();
      } else {
        return doctorScheduleBuilder_.getCount();
      }
    }
    /**
     * <pre>
     *出诊排班
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.DoctorSchedule doctorSchedule = 2;</code>
     */
    public com.ywt.gapi.user.DoctorSchedule getDoctorSchedule(int index) {
      if (doctorScheduleBuilder_ == null) {
        return doctorSchedule_.get(index);
      } else {
        return doctorScheduleBuilder_.getMessage(index);
      }
    }
    /**
     * <pre>
     *出诊排班
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.DoctorSchedule doctorSchedule = 2;</code>
     */
    public Builder setDoctorSchedule(
        int index, com.ywt.gapi.user.DoctorSchedule value) {
      if (doctorScheduleBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureDoctorScheduleIsMutable();
        doctorSchedule_.set(index, value);
        onChanged();
      } else {
        doctorScheduleBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <pre>
     *出诊排班
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.DoctorSchedule doctorSchedule = 2;</code>
     */
    public Builder setDoctorSchedule(
        int index, com.ywt.gapi.user.DoctorSchedule.Builder builderForValue) {
      if (doctorScheduleBuilder_ == null) {
        ensureDoctorScheduleIsMutable();
        doctorSchedule_.set(index, builderForValue.build());
        onChanged();
      } else {
        doctorScheduleBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     *出诊排班
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.DoctorSchedule doctorSchedule = 2;</code>
     */
    public Builder addDoctorSchedule(com.ywt.gapi.user.DoctorSchedule value) {
      if (doctorScheduleBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureDoctorScheduleIsMutable();
        doctorSchedule_.add(value);
        onChanged();
      } else {
        doctorScheduleBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <pre>
     *出诊排班
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.DoctorSchedule doctorSchedule = 2;</code>
     */
    public Builder addDoctorSchedule(
        int index, com.ywt.gapi.user.DoctorSchedule value) {
      if (doctorScheduleBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureDoctorScheduleIsMutable();
        doctorSchedule_.add(index, value);
        onChanged();
      } else {
        doctorScheduleBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <pre>
     *出诊排班
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.DoctorSchedule doctorSchedule = 2;</code>
     */
    public Builder addDoctorSchedule(
        com.ywt.gapi.user.DoctorSchedule.Builder builderForValue) {
      if (doctorScheduleBuilder_ == null) {
        ensureDoctorScheduleIsMutable();
        doctorSchedule_.add(builderForValue.build());
        onChanged();
      } else {
        doctorScheduleBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     *出诊排班
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.DoctorSchedule doctorSchedule = 2;</code>
     */
    public Builder addDoctorSchedule(
        int index, com.ywt.gapi.user.DoctorSchedule.Builder builderForValue) {
      if (doctorScheduleBuilder_ == null) {
        ensureDoctorScheduleIsMutable();
        doctorSchedule_.add(index, builderForValue.build());
        onChanged();
      } else {
        doctorScheduleBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     *出诊排班
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.DoctorSchedule doctorSchedule = 2;</code>
     */
    public Builder addAllDoctorSchedule(
        java.lang.Iterable<? extends com.ywt.gapi.user.DoctorSchedule> values) {
      if (doctorScheduleBuilder_ == null) {
        ensureDoctorScheduleIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, doctorSchedule_);
        onChanged();
      } else {
        doctorScheduleBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <pre>
     *出诊排班
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.DoctorSchedule doctorSchedule = 2;</code>
     */
    public Builder clearDoctorSchedule() {
      if (doctorScheduleBuilder_ == null) {
        doctorSchedule_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
      } else {
        doctorScheduleBuilder_.clear();
      }
      return this;
    }
    /**
     * <pre>
     *出诊排班
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.DoctorSchedule doctorSchedule = 2;</code>
     */
    public Builder removeDoctorSchedule(int index) {
      if (doctorScheduleBuilder_ == null) {
        ensureDoctorScheduleIsMutable();
        doctorSchedule_.remove(index);
        onChanged();
      } else {
        doctorScheduleBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <pre>
     *出诊排班
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.DoctorSchedule doctorSchedule = 2;</code>
     */
    public com.ywt.gapi.user.DoctorSchedule.Builder getDoctorScheduleBuilder(
        int index) {
      return getDoctorScheduleFieldBuilder().getBuilder(index);
    }
    /**
     * <pre>
     *出诊排班
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.DoctorSchedule doctorSchedule = 2;</code>
     */
    public com.ywt.gapi.user.DoctorScheduleOrBuilder getDoctorScheduleOrBuilder(
        int index) {
      if (doctorScheduleBuilder_ == null) {
        return doctorSchedule_.get(index);  } else {
        return doctorScheduleBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <pre>
     *出诊排班
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.DoctorSchedule doctorSchedule = 2;</code>
     */
    public java.util.List<? extends com.ywt.gapi.user.DoctorScheduleOrBuilder> 
         getDoctorScheduleOrBuilderList() {
      if (doctorScheduleBuilder_ != null) {
        return doctorScheduleBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(doctorSchedule_);
      }
    }
    /**
     * <pre>
     *出诊排班
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.DoctorSchedule doctorSchedule = 2;</code>
     */
    public com.ywt.gapi.user.DoctorSchedule.Builder addDoctorScheduleBuilder() {
      return getDoctorScheduleFieldBuilder().addBuilder(
          com.ywt.gapi.user.DoctorSchedule.getDefaultInstance());
    }
    /**
     * <pre>
     *出诊排班
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.DoctorSchedule doctorSchedule = 2;</code>
     */
    public com.ywt.gapi.user.DoctorSchedule.Builder addDoctorScheduleBuilder(
        int index) {
      return getDoctorScheduleFieldBuilder().addBuilder(
          index, com.ywt.gapi.user.DoctorSchedule.getDefaultInstance());
    }
    /**
     * <pre>
     *出诊排班
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.DoctorSchedule doctorSchedule = 2;</code>
     */
    public java.util.List<com.ywt.gapi.user.DoctorSchedule.Builder> 
         getDoctorScheduleBuilderList() {
      return getDoctorScheduleFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.user.DoctorSchedule, com.ywt.gapi.user.DoctorSchedule.Builder, com.ywt.gapi.user.DoctorScheduleOrBuilder> 
        getDoctorScheduleFieldBuilder() {
      if (doctorScheduleBuilder_ == null) {
        doctorScheduleBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            com.ywt.gapi.user.DoctorSchedule, com.ywt.gapi.user.DoctorSchedule.Builder, com.ywt.gapi.user.DoctorScheduleOrBuilder>(
                doctorSchedule_,
                ((bitField0_ & 0x00000002) == 0x00000002),
                getParentForChildren(),
                isClean());
        doctorSchedule_ = null;
      }
      return doctorScheduleBuilder_;
    }
    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.SaveDoctorScheduleRequest)
  }

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

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

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

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

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

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

}

