// 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.SaveTeamRequest}
 */
public  final class SaveTeamRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.user.SaveTeamRequest)
    SaveTeamRequestOrBuilder {
  // Use SaveTeamRequest.newBuilder() to construct.
  private SaveTeamRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private SaveTeamRequest() {
    teamId_ = 0;
    teamName_ = "";
    teamIntro_ = "";
    teamDoctorInfo_ = java.util.Collections.emptyList();
    doctorId_ = 0;
  }

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

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

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

            teamIntro_ = s;
            break;
          }
          case 34: {
            if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
              teamDoctorInfo_ = new java.util.ArrayList<com.ywt.gapi.user.TeamDoctorInfo>();
              mutable_bitField0_ |= 0x00000008;
            }
            teamDoctorInfo_.add(
                input.readMessage(com.ywt.gapi.user.TeamDoctorInfo.parser(), extensionRegistry));
            break;
          }
          case 40: {

            doctorId_ = input.readInt32();
            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_ & 0x00000008) == 0x00000008)) {
        teamDoctorInfo_ = java.util.Collections.unmodifiableList(teamDoctorInfo_);
      }
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.ywt.gapi.user.DoctorOuterClass.internal_static_com_ywt_gapi_user_SaveTeamRequest_descriptor;
  }

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

  private int bitField0_;
  public static final int TEAMID_FIELD_NUMBER = 1;
  private int teamId_;
  /**
   * <pre>
   *团队ID，新增时传0
   * </pre>
   *
   * <code>int32 teamId = 1;</code>
   */
  public int getTeamId() {
    return teamId_;
  }

  public static final int TEAMNAME_FIELD_NUMBER = 2;
  private volatile java.lang.Object teamName_;
  /**
   * <pre>
   *团队名称
   * </pre>
   *
   * <code>string teamName = 2;</code>
   */
  public java.lang.String getTeamName() {
    java.lang.Object ref = teamName_;
    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();
      teamName_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *团队名称
   * </pre>
   *
   * <code>string teamName = 2;</code>
   */
  public com.google.protobuf.ByteString
      getTeamNameBytes() {
    java.lang.Object ref = teamName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      teamName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int TEAMINTRO_FIELD_NUMBER = 3;
  private volatile java.lang.Object teamIntro_;
  /**
   * <pre>
   *团队介绍
   * </pre>
   *
   * <code>string teamIntro = 3;</code>
   */
  public java.lang.String getTeamIntro() {
    java.lang.Object ref = teamIntro_;
    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();
      teamIntro_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *团队介绍
   * </pre>
   *
   * <code>string teamIntro = 3;</code>
   */
  public com.google.protobuf.ByteString
      getTeamIntroBytes() {
    java.lang.Object ref = teamIntro_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      teamIntro_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int TEAMDOCTORINFO_FIELD_NUMBER = 4;
  private java.util.List<com.ywt.gapi.user.TeamDoctorInfo> teamDoctorInfo_;
  /**
   * <pre>
   *团队成员
   * </pre>
   *
   * <code>repeated .com.ywt.gapi.user.TeamDoctorInfo teamDoctorInfo = 4;</code>
   */
  public java.util.List<com.ywt.gapi.user.TeamDoctorInfo> getTeamDoctorInfoList() {
    return teamDoctorInfo_;
  }
  /**
   * <pre>
   *团队成员
   * </pre>
   *
   * <code>repeated .com.ywt.gapi.user.TeamDoctorInfo teamDoctorInfo = 4;</code>
   */
  public java.util.List<? extends com.ywt.gapi.user.TeamDoctorInfoOrBuilder> 
      getTeamDoctorInfoOrBuilderList() {
    return teamDoctorInfo_;
  }
  /**
   * <pre>
   *团队成员
   * </pre>
   *
   * <code>repeated .com.ywt.gapi.user.TeamDoctorInfo teamDoctorInfo = 4;</code>
   */
  public int getTeamDoctorInfoCount() {
    return teamDoctorInfo_.size();
  }
  /**
   * <pre>
   *团队成员
   * </pre>
   *
   * <code>repeated .com.ywt.gapi.user.TeamDoctorInfo teamDoctorInfo = 4;</code>
   */
  public com.ywt.gapi.user.TeamDoctorInfo getTeamDoctorInfo(int index) {
    return teamDoctorInfo_.get(index);
  }
  /**
   * <pre>
   *团队成员
   * </pre>
   *
   * <code>repeated .com.ywt.gapi.user.TeamDoctorInfo teamDoctorInfo = 4;</code>
   */
  public com.ywt.gapi.user.TeamDoctorInfoOrBuilder getTeamDoctorInfoOrBuilder(
      int index) {
    return teamDoctorInfo_.get(index);
  }

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

  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 (teamId_ != 0) {
      output.writeInt32(1, teamId_);
    }
    if (!getTeamNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, teamName_);
    }
    if (!getTeamIntroBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, teamIntro_);
    }
    for (int i = 0; i < teamDoctorInfo_.size(); i++) {
      output.writeMessage(4, teamDoctorInfo_.get(i));
    }
    if (doctorId_ != 0) {
      output.writeInt32(5, doctorId_);
    }
  }

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

    size = 0;
    if (teamId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(1, teamId_);
    }
    if (!getTeamNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, teamName_);
    }
    if (!getTeamIntroBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, teamIntro_);
    }
    for (int i = 0; i < teamDoctorInfo_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(4, teamDoctorInfo_.get(i));
    }
    if (doctorId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(5, doctorId_);
    }
    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.SaveTeamRequest)) {
      return super.equals(obj);
    }
    com.ywt.gapi.user.SaveTeamRequest other = (com.ywt.gapi.user.SaveTeamRequest) obj;

    boolean result = true;
    result = result && (getTeamId()
        == other.getTeamId());
    result = result && getTeamName()
        .equals(other.getTeamName());
    result = result && getTeamIntro()
        .equals(other.getTeamIntro());
    result = result && getTeamDoctorInfoList()
        .equals(other.getTeamDoctorInfoList());
    result = result && (getDoctorId()
        == other.getDoctorId());
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + TEAMID_FIELD_NUMBER;
    hash = (53 * hash) + getTeamId();
    hash = (37 * hash) + TEAMNAME_FIELD_NUMBER;
    hash = (53 * hash) + getTeamName().hashCode();
    hash = (37 * hash) + TEAMINTRO_FIELD_NUMBER;
    hash = (53 * hash) + getTeamIntro().hashCode();
    if (getTeamDoctorInfoCount() > 0) {
      hash = (37 * hash) + TEAMDOCTORINFO_FIELD_NUMBER;
      hash = (53 * hash) + getTeamDoctorInfoList().hashCode();
    }
    hash = (37 * hash) + DOCTORID_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorId();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

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

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

      teamName_ = "";

      teamIntro_ = "";

      if (teamDoctorInfoBuilder_ == null) {
        teamDoctorInfo_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000008);
      } else {
        teamDoctorInfoBuilder_.clear();
      }
      doctorId_ = 0;

      return this;
    }

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

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

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

    public com.ywt.gapi.user.SaveTeamRequest buildPartial() {
      com.ywt.gapi.user.SaveTeamRequest result = new com.ywt.gapi.user.SaveTeamRequest(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      result.teamId_ = teamId_;
      result.teamName_ = teamName_;
      result.teamIntro_ = teamIntro_;
      if (teamDoctorInfoBuilder_ == null) {
        if (((bitField0_ & 0x00000008) == 0x00000008)) {
          teamDoctorInfo_ = java.util.Collections.unmodifiableList(teamDoctorInfo_);
          bitField0_ = (bitField0_ & ~0x00000008);
        }
        result.teamDoctorInfo_ = teamDoctorInfo_;
      } else {
        result.teamDoctorInfo_ = teamDoctorInfoBuilder_.build();
      }
      result.doctorId_ = doctorId_;
      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.SaveTeamRequest) {
        return mergeFrom((com.ywt.gapi.user.SaveTeamRequest)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.user.SaveTeamRequest other) {
      if (other == com.ywt.gapi.user.SaveTeamRequest.getDefaultInstance()) return this;
      if (other.getTeamId() != 0) {
        setTeamId(other.getTeamId());
      }
      if (!other.getTeamName().isEmpty()) {
        teamName_ = other.teamName_;
        onChanged();
      }
      if (!other.getTeamIntro().isEmpty()) {
        teamIntro_ = other.teamIntro_;
        onChanged();
      }
      if (teamDoctorInfoBuilder_ == null) {
        if (!other.teamDoctorInfo_.isEmpty()) {
          if (teamDoctorInfo_.isEmpty()) {
            teamDoctorInfo_ = other.teamDoctorInfo_;
            bitField0_ = (bitField0_ & ~0x00000008);
          } else {
            ensureTeamDoctorInfoIsMutable();
            teamDoctorInfo_.addAll(other.teamDoctorInfo_);
          }
          onChanged();
        }
      } else {
        if (!other.teamDoctorInfo_.isEmpty()) {
          if (teamDoctorInfoBuilder_.isEmpty()) {
            teamDoctorInfoBuilder_.dispose();
            teamDoctorInfoBuilder_ = null;
            teamDoctorInfo_ = other.teamDoctorInfo_;
            bitField0_ = (bitField0_ & ~0x00000008);
            teamDoctorInfoBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getTeamDoctorInfoFieldBuilder() : null;
          } else {
            teamDoctorInfoBuilder_.addAllMessages(other.teamDoctorInfo_);
          }
        }
      }
      if (other.getDoctorId() != 0) {
        setDoctorId(other.getDoctorId());
      }
      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.SaveTeamRequest parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.user.SaveTeamRequest) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private int teamId_ ;
    /**
     * <pre>
     *团队ID，新增时传0
     * </pre>
     *
     * <code>int32 teamId = 1;</code>
     */
    public int getTeamId() {
      return teamId_;
    }
    /**
     * <pre>
     *团队ID，新增时传0
     * </pre>
     *
     * <code>int32 teamId = 1;</code>
     */
    public Builder setTeamId(int value) {
      
      teamId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *团队ID，新增时传0
     * </pre>
     *
     * <code>int32 teamId = 1;</code>
     */
    public Builder clearTeamId() {
      
      teamId_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object teamName_ = "";
    /**
     * <pre>
     *团队名称
     * </pre>
     *
     * <code>string teamName = 2;</code>
     */
    public java.lang.String getTeamName() {
      java.lang.Object ref = teamName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        teamName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *团队名称
     * </pre>
     *
     * <code>string teamName = 2;</code>
     */
    public com.google.protobuf.ByteString
        getTeamNameBytes() {
      java.lang.Object ref = teamName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        teamName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *团队名称
     * </pre>
     *
     * <code>string teamName = 2;</code>
     */
    public Builder setTeamName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      teamName_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *团队名称
     * </pre>
     *
     * <code>string teamName = 2;</code>
     */
    public Builder clearTeamName() {
      
      teamName_ = getDefaultInstance().getTeamName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *团队名称
     * </pre>
     *
     * <code>string teamName = 2;</code>
     */
    public Builder setTeamNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      teamName_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object teamIntro_ = "";
    /**
     * <pre>
     *团队介绍
     * </pre>
     *
     * <code>string teamIntro = 3;</code>
     */
    public java.lang.String getTeamIntro() {
      java.lang.Object ref = teamIntro_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        teamIntro_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *团队介绍
     * </pre>
     *
     * <code>string teamIntro = 3;</code>
     */
    public com.google.protobuf.ByteString
        getTeamIntroBytes() {
      java.lang.Object ref = teamIntro_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        teamIntro_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *团队介绍
     * </pre>
     *
     * <code>string teamIntro = 3;</code>
     */
    public Builder setTeamIntro(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      teamIntro_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *团队介绍
     * </pre>
     *
     * <code>string teamIntro = 3;</code>
     */
    public Builder clearTeamIntro() {
      
      teamIntro_ = getDefaultInstance().getTeamIntro();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *团队介绍
     * </pre>
     *
     * <code>string teamIntro = 3;</code>
     */
    public Builder setTeamIntroBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      teamIntro_ = value;
      onChanged();
      return this;
    }

    private java.util.List<com.ywt.gapi.user.TeamDoctorInfo> teamDoctorInfo_ =
      java.util.Collections.emptyList();
    private void ensureTeamDoctorInfoIsMutable() {
      if (!((bitField0_ & 0x00000008) == 0x00000008)) {
        teamDoctorInfo_ = new java.util.ArrayList<com.ywt.gapi.user.TeamDoctorInfo>(teamDoctorInfo_);
        bitField0_ |= 0x00000008;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.user.TeamDoctorInfo, com.ywt.gapi.user.TeamDoctorInfo.Builder, com.ywt.gapi.user.TeamDoctorInfoOrBuilder> teamDoctorInfoBuilder_;

    /**
     * <pre>
     *团队成员
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.TeamDoctorInfo teamDoctorInfo = 4;</code>
     */
    public java.util.List<com.ywt.gapi.user.TeamDoctorInfo> getTeamDoctorInfoList() {
      if (teamDoctorInfoBuilder_ == null) {
        return java.util.Collections.unmodifiableList(teamDoctorInfo_);
      } else {
        return teamDoctorInfoBuilder_.getMessageList();
      }
    }
    /**
     * <pre>
     *团队成员
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.TeamDoctorInfo teamDoctorInfo = 4;</code>
     */
    public int getTeamDoctorInfoCount() {
      if (teamDoctorInfoBuilder_ == null) {
        return teamDoctorInfo_.size();
      } else {
        return teamDoctorInfoBuilder_.getCount();
      }
    }
    /**
     * <pre>
     *团队成员
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.TeamDoctorInfo teamDoctorInfo = 4;</code>
     */
    public com.ywt.gapi.user.TeamDoctorInfo getTeamDoctorInfo(int index) {
      if (teamDoctorInfoBuilder_ == null) {
        return teamDoctorInfo_.get(index);
      } else {
        return teamDoctorInfoBuilder_.getMessage(index);
      }
    }
    /**
     * <pre>
     *团队成员
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.TeamDoctorInfo teamDoctorInfo = 4;</code>
     */
    public Builder setTeamDoctorInfo(
        int index, com.ywt.gapi.user.TeamDoctorInfo value) {
      if (teamDoctorInfoBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureTeamDoctorInfoIsMutable();
        teamDoctorInfo_.set(index, value);
        onChanged();
      } else {
        teamDoctorInfoBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <pre>
     *团队成员
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.TeamDoctorInfo teamDoctorInfo = 4;</code>
     */
    public Builder setTeamDoctorInfo(
        int index, com.ywt.gapi.user.TeamDoctorInfo.Builder builderForValue) {
      if (teamDoctorInfoBuilder_ == null) {
        ensureTeamDoctorInfoIsMutable();
        teamDoctorInfo_.set(index, builderForValue.build());
        onChanged();
      } else {
        teamDoctorInfoBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     *团队成员
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.TeamDoctorInfo teamDoctorInfo = 4;</code>
     */
    public Builder addTeamDoctorInfo(com.ywt.gapi.user.TeamDoctorInfo value) {
      if (teamDoctorInfoBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureTeamDoctorInfoIsMutable();
        teamDoctorInfo_.add(value);
        onChanged();
      } else {
        teamDoctorInfoBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <pre>
     *团队成员
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.TeamDoctorInfo teamDoctorInfo = 4;</code>
     */
    public Builder addTeamDoctorInfo(
        int index, com.ywt.gapi.user.TeamDoctorInfo value) {
      if (teamDoctorInfoBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureTeamDoctorInfoIsMutable();
        teamDoctorInfo_.add(index, value);
        onChanged();
      } else {
        teamDoctorInfoBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <pre>
     *团队成员
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.TeamDoctorInfo teamDoctorInfo = 4;</code>
     */
    public Builder addTeamDoctorInfo(
        com.ywt.gapi.user.TeamDoctorInfo.Builder builderForValue) {
      if (teamDoctorInfoBuilder_ == null) {
        ensureTeamDoctorInfoIsMutable();
        teamDoctorInfo_.add(builderForValue.build());
        onChanged();
      } else {
        teamDoctorInfoBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     *团队成员
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.TeamDoctorInfo teamDoctorInfo = 4;</code>
     */
    public Builder addTeamDoctorInfo(
        int index, com.ywt.gapi.user.TeamDoctorInfo.Builder builderForValue) {
      if (teamDoctorInfoBuilder_ == null) {
        ensureTeamDoctorInfoIsMutable();
        teamDoctorInfo_.add(index, builderForValue.build());
        onChanged();
      } else {
        teamDoctorInfoBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     *团队成员
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.TeamDoctorInfo teamDoctorInfo = 4;</code>
     */
    public Builder addAllTeamDoctorInfo(
        java.lang.Iterable<? extends com.ywt.gapi.user.TeamDoctorInfo> values) {
      if (teamDoctorInfoBuilder_ == null) {
        ensureTeamDoctorInfoIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, teamDoctorInfo_);
        onChanged();
      } else {
        teamDoctorInfoBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <pre>
     *团队成员
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.TeamDoctorInfo teamDoctorInfo = 4;</code>
     */
    public Builder clearTeamDoctorInfo() {
      if (teamDoctorInfoBuilder_ == null) {
        teamDoctorInfo_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000008);
        onChanged();
      } else {
        teamDoctorInfoBuilder_.clear();
      }
      return this;
    }
    /**
     * <pre>
     *团队成员
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.TeamDoctorInfo teamDoctorInfo = 4;</code>
     */
    public Builder removeTeamDoctorInfo(int index) {
      if (teamDoctorInfoBuilder_ == null) {
        ensureTeamDoctorInfoIsMutable();
        teamDoctorInfo_.remove(index);
        onChanged();
      } else {
        teamDoctorInfoBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <pre>
     *团队成员
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.TeamDoctorInfo teamDoctorInfo = 4;</code>
     */
    public com.ywt.gapi.user.TeamDoctorInfo.Builder getTeamDoctorInfoBuilder(
        int index) {
      return getTeamDoctorInfoFieldBuilder().getBuilder(index);
    }
    /**
     * <pre>
     *团队成员
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.TeamDoctorInfo teamDoctorInfo = 4;</code>
     */
    public com.ywt.gapi.user.TeamDoctorInfoOrBuilder getTeamDoctorInfoOrBuilder(
        int index) {
      if (teamDoctorInfoBuilder_ == null) {
        return teamDoctorInfo_.get(index);  } else {
        return teamDoctorInfoBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <pre>
     *团队成员
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.TeamDoctorInfo teamDoctorInfo = 4;</code>
     */
    public java.util.List<? extends com.ywt.gapi.user.TeamDoctorInfoOrBuilder> 
         getTeamDoctorInfoOrBuilderList() {
      if (teamDoctorInfoBuilder_ != null) {
        return teamDoctorInfoBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(teamDoctorInfo_);
      }
    }
    /**
     * <pre>
     *团队成员
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.TeamDoctorInfo teamDoctorInfo = 4;</code>
     */
    public com.ywt.gapi.user.TeamDoctorInfo.Builder addTeamDoctorInfoBuilder() {
      return getTeamDoctorInfoFieldBuilder().addBuilder(
          com.ywt.gapi.user.TeamDoctorInfo.getDefaultInstance());
    }
    /**
     * <pre>
     *团队成员
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.TeamDoctorInfo teamDoctorInfo = 4;</code>
     */
    public com.ywt.gapi.user.TeamDoctorInfo.Builder addTeamDoctorInfoBuilder(
        int index) {
      return getTeamDoctorInfoFieldBuilder().addBuilder(
          index, com.ywt.gapi.user.TeamDoctorInfo.getDefaultInstance());
    }
    /**
     * <pre>
     *团队成员
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.TeamDoctorInfo teamDoctorInfo = 4;</code>
     */
    public java.util.List<com.ywt.gapi.user.TeamDoctorInfo.Builder> 
         getTeamDoctorInfoBuilderList() {
      return getTeamDoctorInfoFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.user.TeamDoctorInfo, com.ywt.gapi.user.TeamDoctorInfo.Builder, com.ywt.gapi.user.TeamDoctorInfoOrBuilder> 
        getTeamDoctorInfoFieldBuilder() {
      if (teamDoctorInfoBuilder_ == null) {
        teamDoctorInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            com.ywt.gapi.user.TeamDoctorInfo, com.ywt.gapi.user.TeamDoctorInfo.Builder, com.ywt.gapi.user.TeamDoctorInfoOrBuilder>(
                teamDoctorInfo_,
                ((bitField0_ & 0x00000008) == 0x00000008),
                getParentForChildren(),
                isClean());
        teamDoctorInfo_ = null;
      }
      return teamDoctorInfoBuilder_;
    }

    private int doctorId_ ;
    /**
     * <pre>
     *创建医生ID
     * </pre>
     *
     * <code>int32 doctorId = 5;</code>
     */
    public int getDoctorId() {
      return doctorId_;
    }
    /**
     * <pre>
     *创建医生ID
     * </pre>
     *
     * <code>int32 doctorId = 5;</code>
     */
    public Builder setDoctorId(int value) {
      
      doctorId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *创建医生ID
     * </pre>
     *
     * <code>int32 doctorId = 5;</code>
     */
    public Builder clearDoctorId() {
      
      doctorId_ = 0;
      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.user.SaveTeamRequest)
  }

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

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

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

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

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

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

}

