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

package com.manager.grpc;

/**
 * Protobuf type {@code com.manager.grpc.ManagerResponse}
 */
public  final class ManagerResponse extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.manager.grpc.ManagerResponse)
    ManagerResponseOrBuilder {
  // Use ManagerResponse.newBuilder() to construct.
  private ManagerResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private ManagerResponse() {
    roleId_ = java.util.Collections.emptyList();
    id_ = 0;
    username_ = "";
    password_ = "";
    statusId_ = 0;
    token_ = "";
    introduction_ = "";
    avatar_ = "";
    manager_ = java.util.Collections.emptyList();
  }

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

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

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

            password_ = s;
            break;
          }
          case 32: {

            statusId_ = input.readInt32();
            break;
          }
          case 42: {
            if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
              manager_ = new java.util.ArrayList<com.manager.grpc.Manager>();
              mutable_bitField0_ |= 0x00000100;
            }
            manager_.add(
                input.readMessage(com.manager.grpc.Manager.parser(), extensionRegistry));
            break;
          }
          case 50: {
            java.lang.String s = input.readStringRequireUtf8();

            token_ = s;
            break;
          }
          case 56: {
            if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
              roleId_ = new java.util.ArrayList<java.lang.Integer>();
              mutable_bitField0_ |= 0x00000001;
            }
            roleId_.add(input.readInt32());
            break;
          }
          case 58: {
            int length = input.readRawVarint32();
            int limit = input.pushLimit(length);
            if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) {
              roleId_ = new java.util.ArrayList<java.lang.Integer>();
              mutable_bitField0_ |= 0x00000001;
            }
            while (input.getBytesUntilLimit() > 0) {
              roleId_.add(input.readInt32());
            }
            input.popLimit(limit);
            break;
          }
          case 66: {
            java.lang.String s = input.readStringRequireUtf8();

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

            introduction_ = 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_ & 0x00000100) == 0x00000100)) {
        manager_ = java.util.Collections.unmodifiableList(manager_);
      }
      if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
        roleId_ = java.util.Collections.unmodifiableList(roleId_);
      }
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.manager.grpc.ManagerOuterClass.internal_static_com_manager_grpc_ManagerResponse_descriptor;
  }

  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.manager.grpc.ManagerOuterClass.internal_static_com_manager_grpc_ManagerResponse_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.manager.grpc.ManagerResponse.class, com.manager.grpc.ManagerResponse.Builder.class);
  }

  private int bitField0_;
  public static final int ROLE_ID_FIELD_NUMBER = 7;
  private java.util.List<java.lang.Integer> roleId_;
  /**
   * <code>repeated int32 role_id = 7;</code>
   */
  public java.util.List<java.lang.Integer>
      getRoleIdList() {
    return roleId_;
  }
  /**
   * <code>repeated int32 role_id = 7;</code>
   */
  public int getRoleIdCount() {
    return roleId_.size();
  }
  /**
   * <code>repeated int32 role_id = 7;</code>
   */
  public int getRoleId(int index) {
    return roleId_.get(index);
  }
  private int roleIdMemoizedSerializedSize = -1;

  public static final int ID_FIELD_NUMBER = 1;
  private int id_;
  /**
   * <code>int32 id = 1;</code>
   */
  public int getId() {
    return id_;
  }

  public static final int USERNAME_FIELD_NUMBER = 2;
  private volatile java.lang.Object username_;
  /**
   * <code>string username = 2;</code>
   */
  public java.lang.String getUsername() {
    java.lang.Object ref = username_;
    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();
      username_ = s;
      return s;
    }
  }
  /**
   * <code>string username = 2;</code>
   */
  public com.google.protobuf.ByteString
      getUsernameBytes() {
    java.lang.Object ref = username_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      username_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PASSWORD_FIELD_NUMBER = 3;
  private volatile java.lang.Object password_;
  /**
   * <code>string password = 3;</code>
   */
  public java.lang.String getPassword() {
    java.lang.Object ref = password_;
    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();
      password_ = s;
      return s;
    }
  }
  /**
   * <code>string password = 3;</code>
   */
  public com.google.protobuf.ByteString
      getPasswordBytes() {
    java.lang.Object ref = password_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      password_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int STATUS_ID_FIELD_NUMBER = 4;
  private int statusId_;
  /**
   * <code>int32 status_id = 4;</code>
   */
  public int getStatusId() {
    return statusId_;
  }

  public static final int TOKEN_FIELD_NUMBER = 6;
  private volatile java.lang.Object token_;
  /**
   * <code>string token = 6;</code>
   */
  public java.lang.String getToken() {
    java.lang.Object ref = token_;
    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();
      token_ = s;
      return s;
    }
  }
  /**
   * <code>string token = 6;</code>
   */
  public com.google.protobuf.ByteString
      getTokenBytes() {
    java.lang.Object ref = token_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      token_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int INTRODUCTION_FIELD_NUMBER = 9;
  private volatile java.lang.Object introduction_;
  /**
   * <code>string introduction = 9;</code>
   */
  public java.lang.String getIntroduction() {
    java.lang.Object ref = introduction_;
    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();
      introduction_ = s;
      return s;
    }
  }
  /**
   * <code>string introduction = 9;</code>
   */
  public com.google.protobuf.ByteString
      getIntroductionBytes() {
    java.lang.Object ref = introduction_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      introduction_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int AVATAR_FIELD_NUMBER = 8;
  private volatile java.lang.Object avatar_;
  /**
   * <code>string avatar = 8;</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;
    }
  }
  /**
   * <code>string avatar = 8;</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 MANAGER_FIELD_NUMBER = 5;
  private java.util.List<com.manager.grpc.Manager> manager_;
  /**
   * <code>repeated .com.manager.grpc.Manager manager = 5;</code>
   */
  public java.util.List<com.manager.grpc.Manager> getManagerList() {
    return manager_;
  }
  /**
   * <code>repeated .com.manager.grpc.Manager manager = 5;</code>
   */
  public java.util.List<? extends com.manager.grpc.ManagerOrBuilder> 
      getManagerOrBuilderList() {
    return manager_;
  }
  /**
   * <code>repeated .com.manager.grpc.Manager manager = 5;</code>
   */
  public int getManagerCount() {
    return manager_.size();
  }
  /**
   * <code>repeated .com.manager.grpc.Manager manager = 5;</code>
   */
  public com.manager.grpc.Manager getManager(int index) {
    return manager_.get(index);
  }
  /**
   * <code>repeated .com.manager.grpc.Manager manager = 5;</code>
   */
  public com.manager.grpc.ManagerOrBuilder getManagerOrBuilder(
      int index) {
    return manager_.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 {
    getSerializedSize();
    if (id_ != 0) {
      output.writeInt32(1, id_);
    }
    if (!getUsernameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, username_);
    }
    if (!getPasswordBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, password_);
    }
    if (statusId_ != 0) {
      output.writeInt32(4, statusId_);
    }
    for (int i = 0; i < manager_.size(); i++) {
      output.writeMessage(5, manager_.get(i));
    }
    if (!getTokenBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, token_);
    }
    if (getRoleIdList().size() > 0) {
      output.writeUInt32NoTag(58);
      output.writeUInt32NoTag(roleIdMemoizedSerializedSize);
    }
    for (int i = 0; i < roleId_.size(); i++) {
      output.writeInt32NoTag(roleId_.get(i));
    }
    if (!getAvatarBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, avatar_);
    }
    if (!getIntroductionBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 9, introduction_);
    }
  }

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

    size = 0;
    if (id_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(1, id_);
    }
    if (!getUsernameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, username_);
    }
    if (!getPasswordBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, password_);
    }
    if (statusId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(4, statusId_);
    }
    for (int i = 0; i < manager_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(5, manager_.get(i));
    }
    if (!getTokenBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, token_);
    }
    {
      int dataSize = 0;
      for (int i = 0; i < roleId_.size(); i++) {
        dataSize += com.google.protobuf.CodedOutputStream
          .computeInt32SizeNoTag(roleId_.get(i));
      }
      size += dataSize;
      if (!getRoleIdList().isEmpty()) {
        size += 1;
        size += com.google.protobuf.CodedOutputStream
            .computeInt32SizeNoTag(dataSize);
      }
      roleIdMemoizedSerializedSize = dataSize;
    }
    if (!getAvatarBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, avatar_);
    }
    if (!getIntroductionBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, introduction_);
    }
    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.manager.grpc.ManagerResponse)) {
      return super.equals(obj);
    }
    com.manager.grpc.ManagerResponse other = (com.manager.grpc.ManagerResponse) obj;

    boolean result = true;
    result = result && getRoleIdList()
        .equals(other.getRoleIdList());
    result = result && (getId()
        == other.getId());
    result = result && getUsername()
        .equals(other.getUsername());
    result = result && getPassword()
        .equals(other.getPassword());
    result = result && (getStatusId()
        == other.getStatusId());
    result = result && getToken()
        .equals(other.getToken());
    result = result && getIntroduction()
        .equals(other.getIntroduction());
    result = result && getAvatar()
        .equals(other.getAvatar());
    result = result && getManagerList()
        .equals(other.getManagerList());
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (getRoleIdCount() > 0) {
      hash = (37 * hash) + ROLE_ID_FIELD_NUMBER;
      hash = (53 * hash) + getRoleIdList().hashCode();
    }
    hash = (37 * hash) + ID_FIELD_NUMBER;
    hash = (53 * hash) + getId();
    hash = (37 * hash) + USERNAME_FIELD_NUMBER;
    hash = (53 * hash) + getUsername().hashCode();
    hash = (37 * hash) + PASSWORD_FIELD_NUMBER;
    hash = (53 * hash) + getPassword().hashCode();
    hash = (37 * hash) + STATUS_ID_FIELD_NUMBER;
    hash = (53 * hash) + getStatusId();
    hash = (37 * hash) + TOKEN_FIELD_NUMBER;
    hash = (53 * hash) + getToken().hashCode();
    hash = (37 * hash) + INTRODUCTION_FIELD_NUMBER;
    hash = (53 * hash) + getIntroduction().hashCode();
    hash = (37 * hash) + AVATAR_FIELD_NUMBER;
    hash = (53 * hash) + getAvatar().hashCode();
    if (getManagerCount() > 0) {
      hash = (37 * hash) + MANAGER_FIELD_NUMBER;
      hash = (53 * hash) + getManagerList().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.manager.grpc.ManagerResponse parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.manager.grpc.ManagerResponse parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.manager.grpc.ManagerResponse parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.manager.grpc.ManagerResponse parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.manager.grpc.ManagerResponse parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.manager.grpc.ManagerResponse parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.manager.grpc.ManagerResponse parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.manager.grpc.ManagerResponse 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.manager.grpc.ManagerResponse parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.manager.grpc.ManagerResponse 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.manager.grpc.ManagerResponse parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.manager.grpc.ManagerResponse 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.manager.grpc.ManagerResponse 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;
  }
  /**
   * Protobuf type {@code com.manager.grpc.ManagerResponse}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.manager.grpc.ManagerResponse)
      com.manager.grpc.ManagerResponseOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.manager.grpc.ManagerOuterClass.internal_static_com_manager_grpc_ManagerResponse_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.manager.grpc.ManagerOuterClass.internal_static_com_manager_grpc_ManagerResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.manager.grpc.ManagerResponse.class, com.manager.grpc.ManagerResponse.Builder.class);
    }

    // Construct using com.manager.grpc.ManagerResponse.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getManagerFieldBuilder();
      }
    }
    public Builder clear() {
      super.clear();
      roleId_ = java.util.Collections.emptyList();
      bitField0_ = (bitField0_ & ~0x00000001);
      id_ = 0;

      username_ = "";

      password_ = "";

      statusId_ = 0;

      token_ = "";

      introduction_ = "";

      avatar_ = "";

      if (managerBuilder_ == null) {
        manager_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000100);
      } else {
        managerBuilder_.clear();
      }
      return this;
    }

    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.manager.grpc.ManagerOuterClass.internal_static_com_manager_grpc_ManagerResponse_descriptor;
    }

    public com.manager.grpc.ManagerResponse getDefaultInstanceForType() {
      return com.manager.grpc.ManagerResponse.getDefaultInstance();
    }

    public com.manager.grpc.ManagerResponse build() {
      com.manager.grpc.ManagerResponse result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    public com.manager.grpc.ManagerResponse buildPartial() {
      com.manager.grpc.ManagerResponse result = new com.manager.grpc.ManagerResponse(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        roleId_ = java.util.Collections.unmodifiableList(roleId_);
        bitField0_ = (bitField0_ & ~0x00000001);
      }
      result.roleId_ = roleId_;
      result.id_ = id_;
      result.username_ = username_;
      result.password_ = password_;
      result.statusId_ = statusId_;
      result.token_ = token_;
      result.introduction_ = introduction_;
      result.avatar_ = avatar_;
      if (managerBuilder_ == null) {
        if (((bitField0_ & 0x00000100) == 0x00000100)) {
          manager_ = java.util.Collections.unmodifiableList(manager_);
          bitField0_ = (bitField0_ & ~0x00000100);
        }
        result.manager_ = manager_;
      } else {
        result.manager_ = managerBuilder_.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.manager.grpc.ManagerResponse) {
        return mergeFrom((com.manager.grpc.ManagerResponse)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.manager.grpc.ManagerResponse other) {
      if (other == com.manager.grpc.ManagerResponse.getDefaultInstance()) return this;
      if (!other.roleId_.isEmpty()) {
        if (roleId_.isEmpty()) {
          roleId_ = other.roleId_;
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          ensureRoleIdIsMutable();
          roleId_.addAll(other.roleId_);
        }
        onChanged();
      }
      if (other.getId() != 0) {
        setId(other.getId());
      }
      if (!other.getUsername().isEmpty()) {
        username_ = other.username_;
        onChanged();
      }
      if (!other.getPassword().isEmpty()) {
        password_ = other.password_;
        onChanged();
      }
      if (other.getStatusId() != 0) {
        setStatusId(other.getStatusId());
      }
      if (!other.getToken().isEmpty()) {
        token_ = other.token_;
        onChanged();
      }
      if (!other.getIntroduction().isEmpty()) {
        introduction_ = other.introduction_;
        onChanged();
      }
      if (!other.getAvatar().isEmpty()) {
        avatar_ = other.avatar_;
        onChanged();
      }
      if (managerBuilder_ == null) {
        if (!other.manager_.isEmpty()) {
          if (manager_.isEmpty()) {
            manager_ = other.manager_;
            bitField0_ = (bitField0_ & ~0x00000100);
          } else {
            ensureManagerIsMutable();
            manager_.addAll(other.manager_);
          }
          onChanged();
        }
      } else {
        if (!other.manager_.isEmpty()) {
          if (managerBuilder_.isEmpty()) {
            managerBuilder_.dispose();
            managerBuilder_ = null;
            manager_ = other.manager_;
            bitField0_ = (bitField0_ & ~0x00000100);
            managerBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getManagerFieldBuilder() : null;
          } else {
            managerBuilder_.addAllMessages(other.manager_);
          }
        }
      }
      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.manager.grpc.ManagerResponse parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.manager.grpc.ManagerResponse) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private java.util.List<java.lang.Integer> roleId_ = java.util.Collections.emptyList();
    private void ensureRoleIdIsMutable() {
      if (!((bitField0_ & 0x00000001) == 0x00000001)) {
        roleId_ = new java.util.ArrayList<java.lang.Integer>(roleId_);
        bitField0_ |= 0x00000001;
       }
    }
    /**
     * <code>repeated int32 role_id = 7;</code>
     */
    public java.util.List<java.lang.Integer>
        getRoleIdList() {
      return java.util.Collections.unmodifiableList(roleId_);
    }
    /**
     * <code>repeated int32 role_id = 7;</code>
     */
    public int getRoleIdCount() {
      return roleId_.size();
    }
    /**
     * <code>repeated int32 role_id = 7;</code>
     */
    public int getRoleId(int index) {
      return roleId_.get(index);
    }
    /**
     * <code>repeated int32 role_id = 7;</code>
     */
    public Builder setRoleId(
        int index, int value) {
      ensureRoleIdIsMutable();
      roleId_.set(index, value);
      onChanged();
      return this;
    }
    /**
     * <code>repeated int32 role_id = 7;</code>
     */
    public Builder addRoleId(int value) {
      ensureRoleIdIsMutable();
      roleId_.add(value);
      onChanged();
      return this;
    }
    /**
     * <code>repeated int32 role_id = 7;</code>
     */
    public Builder addAllRoleId(
        java.lang.Iterable<? extends java.lang.Integer> values) {
      ensureRoleIdIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(
          values, roleId_);
      onChanged();
      return this;
    }
    /**
     * <code>repeated int32 role_id = 7;</code>
     */
    public Builder clearRoleId() {
      roleId_ = java.util.Collections.emptyList();
      bitField0_ = (bitField0_ & ~0x00000001);
      onChanged();
      return this;
    }

    private int id_ ;
    /**
     * <code>int32 id = 1;</code>
     */
    public int getId() {
      return id_;
    }
    /**
     * <code>int32 id = 1;</code>
     */
    public Builder setId(int value) {
      
      id_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 id = 1;</code>
     */
    public Builder clearId() {
      
      id_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object username_ = "";
    /**
     * <code>string username = 2;</code>
     */
    public java.lang.String getUsername() {
      java.lang.Object ref = username_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        username_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string username = 2;</code>
     */
    public com.google.protobuf.ByteString
        getUsernameBytes() {
      java.lang.Object ref = username_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        username_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string username = 2;</code>
     */
    public Builder setUsername(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      username_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string username = 2;</code>
     */
    public Builder clearUsername() {
      
      username_ = getDefaultInstance().getUsername();
      onChanged();
      return this;
    }
    /**
     * <code>string username = 2;</code>
     */
    public Builder setUsernameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      username_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object password_ = "";
    /**
     * <code>string password = 3;</code>
     */
    public java.lang.String getPassword() {
      java.lang.Object ref = password_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        password_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string password = 3;</code>
     */
    public com.google.protobuf.ByteString
        getPasswordBytes() {
      java.lang.Object ref = password_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        password_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string password = 3;</code>
     */
    public Builder setPassword(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      password_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string password = 3;</code>
     */
    public Builder clearPassword() {
      
      password_ = getDefaultInstance().getPassword();
      onChanged();
      return this;
    }
    /**
     * <code>string password = 3;</code>
     */
    public Builder setPasswordBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      password_ = value;
      onChanged();
      return this;
    }

    private int statusId_ ;
    /**
     * <code>int32 status_id = 4;</code>
     */
    public int getStatusId() {
      return statusId_;
    }
    /**
     * <code>int32 status_id = 4;</code>
     */
    public Builder setStatusId(int value) {
      
      statusId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 status_id = 4;</code>
     */
    public Builder clearStatusId() {
      
      statusId_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object token_ = "";
    /**
     * <code>string token = 6;</code>
     */
    public java.lang.String getToken() {
      java.lang.Object ref = token_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        token_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string token = 6;</code>
     */
    public com.google.protobuf.ByteString
        getTokenBytes() {
      java.lang.Object ref = token_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        token_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string token = 6;</code>
     */
    public Builder setToken(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      token_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string token = 6;</code>
     */
    public Builder clearToken() {
      
      token_ = getDefaultInstance().getToken();
      onChanged();
      return this;
    }
    /**
     * <code>string token = 6;</code>
     */
    public Builder setTokenBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      token_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object introduction_ = "";
    /**
     * <code>string introduction = 9;</code>
     */
    public java.lang.String getIntroduction() {
      java.lang.Object ref = introduction_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        introduction_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string introduction = 9;</code>
     */
    public com.google.protobuf.ByteString
        getIntroductionBytes() {
      java.lang.Object ref = introduction_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        introduction_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string introduction = 9;</code>
     */
    public Builder setIntroduction(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      introduction_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string introduction = 9;</code>
     */
    public Builder clearIntroduction() {
      
      introduction_ = getDefaultInstance().getIntroduction();
      onChanged();
      return this;
    }
    /**
     * <code>string introduction = 9;</code>
     */
    public Builder setIntroductionBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      introduction_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object avatar_ = "";
    /**
     * <code>string avatar = 8;</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;
      }
    }
    /**
     * <code>string avatar = 8;</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;
      }
    }
    /**
     * <code>string avatar = 8;</code>
     */
    public Builder setAvatar(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      avatar_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string avatar = 8;</code>
     */
    public Builder clearAvatar() {
      
      avatar_ = getDefaultInstance().getAvatar();
      onChanged();
      return this;
    }
    /**
     * <code>string avatar = 8;</code>
     */
    public Builder setAvatarBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      avatar_ = value;
      onChanged();
      return this;
    }

    private java.util.List<com.manager.grpc.Manager> manager_ =
      java.util.Collections.emptyList();
    private void ensureManagerIsMutable() {
      if (!((bitField0_ & 0x00000100) == 0x00000100)) {
        manager_ = new java.util.ArrayList<com.manager.grpc.Manager>(manager_);
        bitField0_ |= 0x00000100;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.manager.grpc.Manager, com.manager.grpc.Manager.Builder, com.manager.grpc.ManagerOrBuilder> managerBuilder_;

    /**
     * <code>repeated .com.manager.grpc.Manager manager = 5;</code>
     */
    public java.util.List<com.manager.grpc.Manager> getManagerList() {
      if (managerBuilder_ == null) {
        return java.util.Collections.unmodifiableList(manager_);
      } else {
        return managerBuilder_.getMessageList();
      }
    }
    /**
     * <code>repeated .com.manager.grpc.Manager manager = 5;</code>
     */
    public int getManagerCount() {
      if (managerBuilder_ == null) {
        return manager_.size();
      } else {
        return managerBuilder_.getCount();
      }
    }
    /**
     * <code>repeated .com.manager.grpc.Manager manager = 5;</code>
     */
    public com.manager.grpc.Manager getManager(int index) {
      if (managerBuilder_ == null) {
        return manager_.get(index);
      } else {
        return managerBuilder_.getMessage(index);
      }
    }
    /**
     * <code>repeated .com.manager.grpc.Manager manager = 5;</code>
     */
    public Builder setManager(
        int index, com.manager.grpc.Manager value) {
      if (managerBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureManagerIsMutable();
        manager_.set(index, value);
        onChanged();
      } else {
        managerBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .com.manager.grpc.Manager manager = 5;</code>
     */
    public Builder setManager(
        int index, com.manager.grpc.Manager.Builder builderForValue) {
      if (managerBuilder_ == null) {
        ensureManagerIsMutable();
        manager_.set(index, builderForValue.build());
        onChanged();
      } else {
        managerBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.manager.grpc.Manager manager = 5;</code>
     */
    public Builder addManager(com.manager.grpc.Manager value) {
      if (managerBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureManagerIsMutable();
        manager_.add(value);
        onChanged();
      } else {
        managerBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <code>repeated .com.manager.grpc.Manager manager = 5;</code>
     */
    public Builder addManager(
        int index, com.manager.grpc.Manager value) {
      if (managerBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureManagerIsMutable();
        manager_.add(index, value);
        onChanged();
      } else {
        managerBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .com.manager.grpc.Manager manager = 5;</code>
     */
    public Builder addManager(
        com.manager.grpc.Manager.Builder builderForValue) {
      if (managerBuilder_ == null) {
        ensureManagerIsMutable();
        manager_.add(builderForValue.build());
        onChanged();
      } else {
        managerBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.manager.grpc.Manager manager = 5;</code>
     */
    public Builder addManager(
        int index, com.manager.grpc.Manager.Builder builderForValue) {
      if (managerBuilder_ == null) {
        ensureManagerIsMutable();
        manager_.add(index, builderForValue.build());
        onChanged();
      } else {
        managerBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.manager.grpc.Manager manager = 5;</code>
     */
    public Builder addAllManager(
        java.lang.Iterable<? extends com.manager.grpc.Manager> values) {
      if (managerBuilder_ == null) {
        ensureManagerIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, manager_);
        onChanged();
      } else {
        managerBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <code>repeated .com.manager.grpc.Manager manager = 5;</code>
     */
    public Builder clearManager() {
      if (managerBuilder_ == null) {
        manager_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000100);
        onChanged();
      } else {
        managerBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>repeated .com.manager.grpc.Manager manager = 5;</code>
     */
    public Builder removeManager(int index) {
      if (managerBuilder_ == null) {
        ensureManagerIsMutable();
        manager_.remove(index);
        onChanged();
      } else {
        managerBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <code>repeated .com.manager.grpc.Manager manager = 5;</code>
     */
    public com.manager.grpc.Manager.Builder getManagerBuilder(
        int index) {
      return getManagerFieldBuilder().getBuilder(index);
    }
    /**
     * <code>repeated .com.manager.grpc.Manager manager = 5;</code>
     */
    public com.manager.grpc.ManagerOrBuilder getManagerOrBuilder(
        int index) {
      if (managerBuilder_ == null) {
        return manager_.get(index);  } else {
        return managerBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <code>repeated .com.manager.grpc.Manager manager = 5;</code>
     */
    public java.util.List<? extends com.manager.grpc.ManagerOrBuilder> 
         getManagerOrBuilderList() {
      if (managerBuilder_ != null) {
        return managerBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(manager_);
      }
    }
    /**
     * <code>repeated .com.manager.grpc.Manager manager = 5;</code>
     */
    public com.manager.grpc.Manager.Builder addManagerBuilder() {
      return getManagerFieldBuilder().addBuilder(
          com.manager.grpc.Manager.getDefaultInstance());
    }
    /**
     * <code>repeated .com.manager.grpc.Manager manager = 5;</code>
     */
    public com.manager.grpc.Manager.Builder addManagerBuilder(
        int index) {
      return getManagerFieldBuilder().addBuilder(
          index, com.manager.grpc.Manager.getDefaultInstance());
    }
    /**
     * <code>repeated .com.manager.grpc.Manager manager = 5;</code>
     */
    public java.util.List<com.manager.grpc.Manager.Builder> 
         getManagerBuilderList() {
      return getManagerFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.manager.grpc.Manager, com.manager.grpc.Manager.Builder, com.manager.grpc.ManagerOrBuilder> 
        getManagerFieldBuilder() {
      if (managerBuilder_ == null) {
        managerBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            com.manager.grpc.Manager, com.manager.grpc.Manager.Builder, com.manager.grpc.ManagerOrBuilder>(
                manager_,
                ((bitField0_ & 0x00000100) == 0x00000100),
                getParentForChildren(),
                isClean());
        manager_ = null;
      }
      return managerBuilder_;
    }
    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.manager.grpc.ManagerResponse)
  }

  // @@protoc_insertion_point(class_scope:com.manager.grpc.ManagerResponse)
  private static final com.manager.grpc.ManagerResponse DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.manager.grpc.ManagerResponse();
  }

  public static com.manager.grpc.ManagerResponse getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  public com.manager.grpc.ManagerResponse getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

