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

package com.ywt.gapi.user;

/**
 * <pre>
 *团队信息    create by daiyihua
 * </pre>
 *
 * Protobuf type {@code com.ywt.gapi.user.TeamInfo}
 */
public  final class TeamInfo extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.user.TeamInfo)
    TeamInfoOrBuilder {
  // Use TeamInfo.newBuilder() to construct.
  private TeamInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private TeamInfo() {
    teamId_ = 0;
    doctorId_ = 0;
    teamName_ = "";
    avatar_ = "";
    teamIntro_ = "";
    teamDoctor_ = java.util.Collections.emptyList();
    avatar2_ = "";
  }

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

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

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

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

            teamIntro_ = s;
            break;
          }
          case 50: {
            if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
              teamDoctor_ = new java.util.ArrayList<com.ywt.gapi.user.TeamDoctor>();
              mutable_bitField0_ |= 0x00000020;
            }
            teamDoctor_.add(
                input.readMessage(com.ywt.gapi.user.TeamDoctor.parser(), extensionRegistry));
            break;
          }
          case 58: {
            java.lang.String s = input.readStringRequireUtf8();

            avatar2_ = s;
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
        teamDoctor_ = java.util.Collections.unmodifiableList(teamDoctor_);
      }
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.ywt.gapi.user.DoctorOuterClass.internal_static_com_ywt_gapi_user_TeamInfo_descriptor;
  }

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

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

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

  public static final int TEAMNAME_FIELD_NUMBER = 3;
  private volatile java.lang.Object teamName_;
  /**
   * <pre>
   *团队名称
   * </pre>
   *
   * <code>string teamName = 3;</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 = 3;</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 AVATAR_FIELD_NUMBER = 4;
  private volatile java.lang.Object avatar_;
  /**
   * <pre>
   *团队头像（创建人头像）
   * </pre>
   *
   * <code>string avatar = 4;</code>
   */
  public java.lang.String getAvatar() {
    java.lang.Object ref = avatar_;
    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();
      avatar_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *团队头像（创建人头像）
   * </pre>
   *
   * <code>string avatar = 4;</code>
   */
  public com.google.protobuf.ByteString
      getAvatarBytes() {
    java.lang.Object ref = avatar_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      avatar_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int TEAMINTRO_FIELD_NUMBER = 5;
  private volatile java.lang.Object teamIntro_;
  /**
   * <pre>
   *团队介绍
   * </pre>
   *
   * <code>string teamIntro = 5;</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 = 5;</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 TEAMDOCTOR_FIELD_NUMBER = 6;
  private java.util.List<com.ywt.gapi.user.TeamDoctor> teamDoctor_;
  /**
   * <code>repeated .com.ywt.gapi.user.TeamDoctor teamDoctor = 6;</code>
   */
  public java.util.List<com.ywt.gapi.user.TeamDoctor> getTeamDoctorList() {
    return teamDoctor_;
  }
  /**
   * <code>repeated .com.ywt.gapi.user.TeamDoctor teamDoctor = 6;</code>
   */
  public java.util.List<? extends com.ywt.gapi.user.TeamDoctorOrBuilder> 
      getTeamDoctorOrBuilderList() {
    return teamDoctor_;
  }
  /**
   * <code>repeated .com.ywt.gapi.user.TeamDoctor teamDoctor = 6;</code>
   */
  public int getTeamDoctorCount() {
    return teamDoctor_.size();
  }
  /**
   * <code>repeated .com.ywt.gapi.user.TeamDoctor teamDoctor = 6;</code>
   */
  public com.ywt.gapi.user.TeamDoctor getTeamDoctor(int index) {
    return teamDoctor_.get(index);
  }
  /**
   * <code>repeated .com.ywt.gapi.user.TeamDoctor teamDoctor = 6;</code>
   */
  public com.ywt.gapi.user.TeamDoctorOrBuilder getTeamDoctorOrBuilder(
      int index) {
    return teamDoctor_.get(index);
  }

  public static final int AVATAR2_FIELD_NUMBER = 7;
  private volatile java.lang.Object avatar2_;
  /**
   * <pre>
   *团队头像（创建人头像）
   * </pre>
   *
   * <code>string avatar2 = 7;</code>
   */
  public java.lang.String getAvatar2() {
    java.lang.Object ref = avatar2_;
    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();
      avatar2_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *团队头像（创建人头像）
   * </pre>
   *
   * <code>string avatar2 = 7;</code>
   */
  public com.google.protobuf.ByteString
      getAvatar2Bytes() {
    java.lang.Object ref = avatar2_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      avatar2_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

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

    memoizedIsInitialized = 1;
    return true;
  }

  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (teamId_ != 0) {
      output.writeInt32(1, teamId_);
    }
    if (doctorId_ != 0) {
      output.writeInt32(2, doctorId_);
    }
    if (!getTeamNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, teamName_);
    }
    if (!getAvatarBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, avatar_);
    }
    if (!getTeamIntroBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, teamIntro_);
    }
    for (int i = 0; i < teamDoctor_.size(); i++) {
      output.writeMessage(6, teamDoctor_.get(i));
    }
    if (!getAvatar2Bytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, avatar2_);
    }
  }

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

    boolean result = true;
    result = result && (getTeamId()
        == other.getTeamId());
    result = result && (getDoctorId()
        == other.getDoctorId());
    result = result && getTeamName()
        .equals(other.getTeamName());
    result = result && getAvatar()
        .equals(other.getAvatar());
    result = result && getTeamIntro()
        .equals(other.getTeamIntro());
    result = result && getTeamDoctorList()
        .equals(other.getTeamDoctorList());
    result = result && getAvatar2()
        .equals(other.getAvatar2());
    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) + DOCTORID_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorId();
    hash = (37 * hash) + TEAMNAME_FIELD_NUMBER;
    hash = (53 * hash) + getTeamName().hashCode();
    hash = (37 * hash) + AVATAR_FIELD_NUMBER;
    hash = (53 * hash) + getAvatar().hashCode();
    hash = (37 * hash) + TEAMINTRO_FIELD_NUMBER;
    hash = (53 * hash) + getTeamIntro().hashCode();
    if (getTeamDoctorCount() > 0) {
      hash = (37 * hash) + TEAMDOCTOR_FIELD_NUMBER;
      hash = (53 * hash) + getTeamDoctorList().hashCode();
    }
    hash = (37 * hash) + AVATAR2_FIELD_NUMBER;
    hash = (53 * hash) + getAvatar2().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

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

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

      doctorId_ = 0;

      teamName_ = "";

      avatar_ = "";

      teamIntro_ = "";

      if (teamDoctorBuilder_ == null) {
        teamDoctor_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000020);
      } else {
        teamDoctorBuilder_.clear();
      }
      avatar2_ = "";

      return this;
    }

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

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

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

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

    public Builder mergeFrom(com.ywt.gapi.user.TeamInfo other) {
      if (other == com.ywt.gapi.user.TeamInfo.getDefaultInstance()) return this;
      if (other.getTeamId() != 0) {
        setTeamId(other.getTeamId());
      }
      if (other.getDoctorId() != 0) {
        setDoctorId(other.getDoctorId());
      }
      if (!other.getTeamName().isEmpty()) {
        teamName_ = other.teamName_;
        onChanged();
      }
      if (!other.getAvatar().isEmpty()) {
        avatar_ = other.avatar_;
        onChanged();
      }
      if (!other.getTeamIntro().isEmpty()) {
        teamIntro_ = other.teamIntro_;
        onChanged();
      }
      if (teamDoctorBuilder_ == null) {
        if (!other.teamDoctor_.isEmpty()) {
          if (teamDoctor_.isEmpty()) {
            teamDoctor_ = other.teamDoctor_;
            bitField0_ = (bitField0_ & ~0x00000020);
          } else {
            ensureTeamDoctorIsMutable();
            teamDoctor_.addAll(other.teamDoctor_);
          }
          onChanged();
        }
      } else {
        if (!other.teamDoctor_.isEmpty()) {
          if (teamDoctorBuilder_.isEmpty()) {
            teamDoctorBuilder_.dispose();
            teamDoctorBuilder_ = null;
            teamDoctor_ = other.teamDoctor_;
            bitField0_ = (bitField0_ & ~0x00000020);
            teamDoctorBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getTeamDoctorFieldBuilder() : null;
          } else {
            teamDoctorBuilder_.addAllMessages(other.teamDoctor_);
          }
        }
      }
      if (!other.getAvatar2().isEmpty()) {
        avatar2_ = other.avatar2_;
        onChanged();
      }
      onChanged();
      return this;
    }

    public final boolean isInitialized() {
      return true;
    }

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

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

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

    private java.lang.Object teamName_ = "";
    /**
     * <pre>
     *团队名称
     * </pre>
     *
     * <code>string teamName = 3;</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 = 3;</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 = 3;</code>
     */
    public Builder setTeamName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      teamName_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *团队名称
     * </pre>
     *
     * <code>string teamName = 3;</code>
     */
    public Builder clearTeamName() {
      
      teamName_ = getDefaultInstance().getTeamName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *团队名称
     * </pre>
     *
     * <code>string teamName = 3;</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 avatar_ = "";
    /**
     * <pre>
     *团队头像（创建人头像）
     * </pre>
     *
     * <code>string avatar = 4;</code>
     */
    public java.lang.String getAvatar() {
      java.lang.Object ref = avatar_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        avatar_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *团队头像（创建人头像）
     * </pre>
     *
     * <code>string avatar = 4;</code>
     */
    public com.google.protobuf.ByteString
        getAvatarBytes() {
      java.lang.Object ref = avatar_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        avatar_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *团队头像（创建人头像）
     * </pre>
     *
     * <code>string avatar = 4;</code>
     */
    public Builder setAvatar(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      avatar_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *团队头像（创建人头像）
     * </pre>
     *
     * <code>string avatar = 4;</code>
     */
    public Builder clearAvatar() {
      
      avatar_ = getDefaultInstance().getAvatar();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *团队头像（创建人头像）
     * </pre>
     *
     * <code>string avatar = 4;</code>
     */
    public Builder setAvatarBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      avatar_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object teamIntro_ = "";
    /**
     * <pre>
     *团队介绍
     * </pre>
     *
     * <code>string teamIntro = 5;</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 = 5;</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 = 5;</code>
     */
    public Builder setTeamIntro(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      teamIntro_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *团队介绍
     * </pre>
     *
     * <code>string teamIntro = 5;</code>
     */
    public Builder clearTeamIntro() {
      
      teamIntro_ = getDefaultInstance().getTeamIntro();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *团队介绍
     * </pre>
     *
     * <code>string teamIntro = 5;</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.TeamDoctor> teamDoctor_ =
      java.util.Collections.emptyList();
    private void ensureTeamDoctorIsMutable() {
      if (!((bitField0_ & 0x00000020) == 0x00000020)) {
        teamDoctor_ = new java.util.ArrayList<com.ywt.gapi.user.TeamDoctor>(teamDoctor_);
        bitField0_ |= 0x00000020;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.user.TeamDoctor, com.ywt.gapi.user.TeamDoctor.Builder, com.ywt.gapi.user.TeamDoctorOrBuilder> teamDoctorBuilder_;

    /**
     * <code>repeated .com.ywt.gapi.user.TeamDoctor teamDoctor = 6;</code>
     */
    public java.util.List<com.ywt.gapi.user.TeamDoctor> getTeamDoctorList() {
      if (teamDoctorBuilder_ == null) {
        return java.util.Collections.unmodifiableList(teamDoctor_);
      } else {
        return teamDoctorBuilder_.getMessageList();
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.user.TeamDoctor teamDoctor = 6;</code>
     */
    public int getTeamDoctorCount() {
      if (teamDoctorBuilder_ == null) {
        return teamDoctor_.size();
      } else {
        return teamDoctorBuilder_.getCount();
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.user.TeamDoctor teamDoctor = 6;</code>
     */
    public com.ywt.gapi.user.TeamDoctor getTeamDoctor(int index) {
      if (teamDoctorBuilder_ == null) {
        return teamDoctor_.get(index);
      } else {
        return teamDoctorBuilder_.getMessage(index);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.user.TeamDoctor teamDoctor = 6;</code>
     */
    public Builder setTeamDoctor(
        int index, com.ywt.gapi.user.TeamDoctor value) {
      if (teamDoctorBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureTeamDoctorIsMutable();
        teamDoctor_.set(index, value);
        onChanged();
      } else {
        teamDoctorBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.user.TeamDoctor teamDoctor = 6;</code>
     */
    public Builder setTeamDoctor(
        int index, com.ywt.gapi.user.TeamDoctor.Builder builderForValue) {
      if (teamDoctorBuilder_ == null) {
        ensureTeamDoctorIsMutable();
        teamDoctor_.set(index, builderForValue.build());
        onChanged();
      } else {
        teamDoctorBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.user.TeamDoctor teamDoctor = 6;</code>
     */
    public Builder addTeamDoctor(com.ywt.gapi.user.TeamDoctor value) {
      if (teamDoctorBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureTeamDoctorIsMutable();
        teamDoctor_.add(value);
        onChanged();
      } else {
        teamDoctorBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.user.TeamDoctor teamDoctor = 6;</code>
     */
    public Builder addTeamDoctor(
        int index, com.ywt.gapi.user.TeamDoctor value) {
      if (teamDoctorBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureTeamDoctorIsMutable();
        teamDoctor_.add(index, value);
        onChanged();
      } else {
        teamDoctorBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.user.TeamDoctor teamDoctor = 6;</code>
     */
    public Builder addTeamDoctor(
        com.ywt.gapi.user.TeamDoctor.Builder builderForValue) {
      if (teamDoctorBuilder_ == null) {
        ensureTeamDoctorIsMutable();
        teamDoctor_.add(builderForValue.build());
        onChanged();
      } else {
        teamDoctorBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.user.TeamDoctor teamDoctor = 6;</code>
     */
    public Builder addTeamDoctor(
        int index, com.ywt.gapi.user.TeamDoctor.Builder builderForValue) {
      if (teamDoctorBuilder_ == null) {
        ensureTeamDoctorIsMutable();
        teamDoctor_.add(index, builderForValue.build());
        onChanged();
      } else {
        teamDoctorBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.user.TeamDoctor teamDoctor = 6;</code>
     */
    public Builder addAllTeamDoctor(
        java.lang.Iterable<? extends com.ywt.gapi.user.TeamDoctor> values) {
      if (teamDoctorBuilder_ == null) {
        ensureTeamDoctorIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, teamDoctor_);
        onChanged();
      } else {
        teamDoctorBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.user.TeamDoctor teamDoctor = 6;</code>
     */
    public Builder clearTeamDoctor() {
      if (teamDoctorBuilder_ == null) {
        teamDoctor_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000020);
        onChanged();
      } else {
        teamDoctorBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.user.TeamDoctor teamDoctor = 6;</code>
     */
    public Builder removeTeamDoctor(int index) {
      if (teamDoctorBuilder_ == null) {
        ensureTeamDoctorIsMutable();
        teamDoctor_.remove(index);
        onChanged();
      } else {
        teamDoctorBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.user.TeamDoctor teamDoctor = 6;</code>
     */
    public com.ywt.gapi.user.TeamDoctor.Builder getTeamDoctorBuilder(
        int index) {
      return getTeamDoctorFieldBuilder().getBuilder(index);
    }
    /**
     * <code>repeated .com.ywt.gapi.user.TeamDoctor teamDoctor = 6;</code>
     */
    public com.ywt.gapi.user.TeamDoctorOrBuilder getTeamDoctorOrBuilder(
        int index) {
      if (teamDoctorBuilder_ == null) {
        return teamDoctor_.get(index);  } else {
        return teamDoctorBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.user.TeamDoctor teamDoctor = 6;</code>
     */
    public java.util.List<? extends com.ywt.gapi.user.TeamDoctorOrBuilder> 
         getTeamDoctorOrBuilderList() {
      if (teamDoctorBuilder_ != null) {
        return teamDoctorBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(teamDoctor_);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.user.TeamDoctor teamDoctor = 6;</code>
     */
    public com.ywt.gapi.user.TeamDoctor.Builder addTeamDoctorBuilder() {
      return getTeamDoctorFieldBuilder().addBuilder(
          com.ywt.gapi.user.TeamDoctor.getDefaultInstance());
    }
    /**
     * <code>repeated .com.ywt.gapi.user.TeamDoctor teamDoctor = 6;</code>
     */
    public com.ywt.gapi.user.TeamDoctor.Builder addTeamDoctorBuilder(
        int index) {
      return getTeamDoctorFieldBuilder().addBuilder(
          index, com.ywt.gapi.user.TeamDoctor.getDefaultInstance());
    }
    /**
     * <code>repeated .com.ywt.gapi.user.TeamDoctor teamDoctor = 6;</code>
     */
    public java.util.List<com.ywt.gapi.user.TeamDoctor.Builder> 
         getTeamDoctorBuilderList() {
      return getTeamDoctorFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.user.TeamDoctor, com.ywt.gapi.user.TeamDoctor.Builder, com.ywt.gapi.user.TeamDoctorOrBuilder> 
        getTeamDoctorFieldBuilder() {
      if (teamDoctorBuilder_ == null) {
        teamDoctorBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            com.ywt.gapi.user.TeamDoctor, com.ywt.gapi.user.TeamDoctor.Builder, com.ywt.gapi.user.TeamDoctorOrBuilder>(
                teamDoctor_,
                ((bitField0_ & 0x00000020) == 0x00000020),
                getParentForChildren(),
                isClean());
        teamDoctor_ = null;
      }
      return teamDoctorBuilder_;
    }

    private java.lang.Object avatar2_ = "";
    /**
     * <pre>
     *团队头像（创建人头像）
     * </pre>
     *
     * <code>string avatar2 = 7;</code>
     */
    public java.lang.String getAvatar2() {
      java.lang.Object ref = avatar2_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        avatar2_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *团队头像（创建人头像）
     * </pre>
     *
     * <code>string avatar2 = 7;</code>
     */
    public com.google.protobuf.ByteString
        getAvatar2Bytes() {
      java.lang.Object ref = avatar2_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        avatar2_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *团队头像（创建人头像）
     * </pre>
     *
     * <code>string avatar2 = 7;</code>
     */
    public Builder setAvatar2(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      avatar2_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *团队头像（创建人头像）
     * </pre>
     *
     * <code>string avatar2 = 7;</code>
     */
    public Builder clearAvatar2() {
      
      avatar2_ = getDefaultInstance().getAvatar2();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *团队头像（创建人头像）
     * </pre>
     *
     * <code>string avatar2 = 7;</code>
     */
    public Builder setAvatar2Bytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      avatar2_ = value;
      onChanged();
      return this;
    }
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return this;
    }

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


    // @@protoc_insertion_point(builder_scope:com.ywt.gapi.user.TeamInfo)
  }

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

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

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

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

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

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

}

