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

package Catalyst.Protocol.IPPN;

/**
 * Protobuf type {@code Catalyst.Protocol.IPPN.PeerNeighborsResponse}
 */
public  final class PeerNeighborsResponse extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:Catalyst.Protocol.IPPN.PeerNeighborsResponse)
    PeerNeighborsResponseOrBuilder {
private static final long serialVersionUID = 0L;
  // Use PeerNeighborsResponse.newBuilder() to construct.
  private PeerNeighborsResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private PeerNeighborsResponse() {
    peers_ = java.util.Collections.emptyList();
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new PeerNeighborsResponse();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private PeerNeighborsResponse(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 10: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              peers_ = new java.util.ArrayList<Catalyst.Protocol.Peer.PeerId>();
              mutable_bitField0_ |= 0x00000001;
            }
            peers_.add(
                input.readMessage(Catalyst.Protocol.Peer.PeerId.parser(), extensionRegistry));
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            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_ & 0x00000001) != 0)) {
        peers_ = java.util.Collections.unmodifiableList(peers_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return Catalyst.Protocol.IPPN.IPPN.internal_static_Catalyst_Protocol_IPPN_PeerNeighborsResponse_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return Catalyst.Protocol.IPPN.IPPN.internal_static_Catalyst_Protocol_IPPN_PeerNeighborsResponse_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            Catalyst.Protocol.IPPN.PeerNeighborsResponse.class, Catalyst.Protocol.IPPN.PeerNeighborsResponse.Builder.class);
  }

  public static final int PEERS_FIELD_NUMBER = 1;
  private java.util.List<Catalyst.Protocol.Peer.PeerId> peers_;
  /**
   * <pre>
   * Random subset of a nodes peer db.
   * </pre>
   *
   * <code>repeated .Catalyst.Protocol.Peer.PeerId peers = 1;</code>
   */
  public java.util.List<Catalyst.Protocol.Peer.PeerId> getPeersList() {
    return peers_;
  }
  /**
   * <pre>
   * Random subset of a nodes peer db.
   * </pre>
   *
   * <code>repeated .Catalyst.Protocol.Peer.PeerId peers = 1;</code>
   */
  public java.util.List<? extends Catalyst.Protocol.Peer.PeerIdOrBuilder> 
      getPeersOrBuilderList() {
    return peers_;
  }
  /**
   * <pre>
   * Random subset of a nodes peer db.
   * </pre>
   *
   * <code>repeated .Catalyst.Protocol.Peer.PeerId peers = 1;</code>
   */
  public int getPeersCount() {
    return peers_.size();
  }
  /**
   * <pre>
   * Random subset of a nodes peer db.
   * </pre>
   *
   * <code>repeated .Catalyst.Protocol.Peer.PeerId peers = 1;</code>
   */
  public Catalyst.Protocol.Peer.PeerId getPeers(int index) {
    return peers_.get(index);
  }
  /**
   * <pre>
   * Random subset of a nodes peer db.
   * </pre>
   *
   * <code>repeated .Catalyst.Protocol.Peer.PeerId peers = 1;</code>
   */
  public Catalyst.Protocol.Peer.PeerIdOrBuilder getPeersOrBuilder(
      int index) {
    return peers_.get(index);
  }

  private byte memoizedIsInitialized = -1;
  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    for (int i = 0; i < peers_.size(); i++) {
      output.writeMessage(1, peers_.get(i));
    }
    unknownFields.writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    for (int i = 0; i < peers_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, peers_.get(i));
    }
    size += unknownFields.getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof Catalyst.Protocol.IPPN.PeerNeighborsResponse)) {
      return super.equals(obj);
    }
    Catalyst.Protocol.IPPN.PeerNeighborsResponse other = (Catalyst.Protocol.IPPN.PeerNeighborsResponse) obj;

    if (!getPeersList()
        .equals(other.getPeersList())) return false;
    if (!unknownFields.equals(other.unknownFields)) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (getPeersCount() > 0) {
      hash = (37 * hash) + PEERS_FIELD_NUMBER;
      hash = (53 * hash) + getPeersList().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static Catalyst.Protocol.IPPN.PeerNeighborsResponse parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static Catalyst.Protocol.IPPN.PeerNeighborsResponse parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static Catalyst.Protocol.IPPN.PeerNeighborsResponse parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static Catalyst.Protocol.IPPN.PeerNeighborsResponse parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static Catalyst.Protocol.IPPN.PeerNeighborsResponse parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static Catalyst.Protocol.IPPN.PeerNeighborsResponse parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static Catalyst.Protocol.IPPN.PeerNeighborsResponse parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static Catalyst.Protocol.IPPN.PeerNeighborsResponse 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 Catalyst.Protocol.IPPN.PeerNeighborsResponse parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static Catalyst.Protocol.IPPN.PeerNeighborsResponse 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 Catalyst.Protocol.IPPN.PeerNeighborsResponse parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static Catalyst.Protocol.IPPN.PeerNeighborsResponse parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(Catalyst.Protocol.IPPN.PeerNeighborsResponse prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  @java.lang.Override
  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 Catalyst.Protocol.IPPN.PeerNeighborsResponse}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:Catalyst.Protocol.IPPN.PeerNeighborsResponse)
      Catalyst.Protocol.IPPN.PeerNeighborsResponseOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return Catalyst.Protocol.IPPN.IPPN.internal_static_Catalyst_Protocol_IPPN_PeerNeighborsResponse_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return Catalyst.Protocol.IPPN.IPPN.internal_static_Catalyst_Protocol_IPPN_PeerNeighborsResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              Catalyst.Protocol.IPPN.PeerNeighborsResponse.class, Catalyst.Protocol.IPPN.PeerNeighborsResponse.Builder.class);
    }

    // Construct using Catalyst.Protocol.IPPN.PeerNeighborsResponse.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getPeersFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      if (peersBuilder_ == null) {
        peers_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
      } else {
        peersBuilder_.clear();
      }
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return Catalyst.Protocol.IPPN.IPPN.internal_static_Catalyst_Protocol_IPPN_PeerNeighborsResponse_descriptor;
    }

    @java.lang.Override
    public Catalyst.Protocol.IPPN.PeerNeighborsResponse getDefaultInstanceForType() {
      return Catalyst.Protocol.IPPN.PeerNeighborsResponse.getDefaultInstance();
    }

    @java.lang.Override
    public Catalyst.Protocol.IPPN.PeerNeighborsResponse build() {
      Catalyst.Protocol.IPPN.PeerNeighborsResponse result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public Catalyst.Protocol.IPPN.PeerNeighborsResponse buildPartial() {
      Catalyst.Protocol.IPPN.PeerNeighborsResponse result = new Catalyst.Protocol.IPPN.PeerNeighborsResponse(this);
      int from_bitField0_ = bitField0_;
      if (peersBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          peers_ = java.util.Collections.unmodifiableList(peers_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.peers_ = peers_;
      } else {
        result.peers_ = peersBuilder_.build();
      }
      onBuilt();
      return result;
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }
    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.setField(field, value);
    }
    @java.lang.Override
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }
    @java.lang.Override
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }
    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }
    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }
    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof Catalyst.Protocol.IPPN.PeerNeighborsResponse) {
        return mergeFrom((Catalyst.Protocol.IPPN.PeerNeighborsResponse)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(Catalyst.Protocol.IPPN.PeerNeighborsResponse other) {
      if (other == Catalyst.Protocol.IPPN.PeerNeighborsResponse.getDefaultInstance()) return this;
      if (peersBuilder_ == null) {
        if (!other.peers_.isEmpty()) {
          if (peers_.isEmpty()) {
            peers_ = other.peers_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensurePeersIsMutable();
            peers_.addAll(other.peers_);
          }
          onChanged();
        }
      } else {
        if (!other.peers_.isEmpty()) {
          if (peersBuilder_.isEmpty()) {
            peersBuilder_.dispose();
            peersBuilder_ = null;
            peers_ = other.peers_;
            bitField0_ = (bitField0_ & ~0x00000001);
            peersBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getPeersFieldBuilder() : null;
          } else {
            peersBuilder_.addAllMessages(other.peers_);
          }
        }
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      Catalyst.Protocol.IPPN.PeerNeighborsResponse parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (Catalyst.Protocol.IPPN.PeerNeighborsResponse) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private java.util.List<Catalyst.Protocol.Peer.PeerId> peers_ =
      java.util.Collections.emptyList();
    private void ensurePeersIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        peers_ = new java.util.ArrayList<Catalyst.Protocol.Peer.PeerId>(peers_);
        bitField0_ |= 0x00000001;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        Catalyst.Protocol.Peer.PeerId, Catalyst.Protocol.Peer.PeerId.Builder, Catalyst.Protocol.Peer.PeerIdOrBuilder> peersBuilder_;

    /**
     * <pre>
     * Random subset of a nodes peer db.
     * </pre>
     *
     * <code>repeated .Catalyst.Protocol.Peer.PeerId peers = 1;</code>
     */
    public java.util.List<Catalyst.Protocol.Peer.PeerId> getPeersList() {
      if (peersBuilder_ == null) {
        return java.util.Collections.unmodifiableList(peers_);
      } else {
        return peersBuilder_.getMessageList();
      }
    }
    /**
     * <pre>
     * Random subset of a nodes peer db.
     * </pre>
     *
     * <code>repeated .Catalyst.Protocol.Peer.PeerId peers = 1;</code>
     */
    public int getPeersCount() {
      if (peersBuilder_ == null) {
        return peers_.size();
      } else {
        return peersBuilder_.getCount();
      }
    }
    /**
     * <pre>
     * Random subset of a nodes peer db.
     * </pre>
     *
     * <code>repeated .Catalyst.Protocol.Peer.PeerId peers = 1;</code>
     */
    public Catalyst.Protocol.Peer.PeerId getPeers(int index) {
      if (peersBuilder_ == null) {
        return peers_.get(index);
      } else {
        return peersBuilder_.getMessage(index);
      }
    }
    /**
     * <pre>
     * Random subset of a nodes peer db.
     * </pre>
     *
     * <code>repeated .Catalyst.Protocol.Peer.PeerId peers = 1;</code>
     */
    public Builder setPeers(
        int index, Catalyst.Protocol.Peer.PeerId value) {
      if (peersBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensurePeersIsMutable();
        peers_.set(index, value);
        onChanged();
      } else {
        peersBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <pre>
     * Random subset of a nodes peer db.
     * </pre>
     *
     * <code>repeated .Catalyst.Protocol.Peer.PeerId peers = 1;</code>
     */
    public Builder setPeers(
        int index, Catalyst.Protocol.Peer.PeerId.Builder builderForValue) {
      if (peersBuilder_ == null) {
        ensurePeersIsMutable();
        peers_.set(index, builderForValue.build());
        onChanged();
      } else {
        peersBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     * Random subset of a nodes peer db.
     * </pre>
     *
     * <code>repeated .Catalyst.Protocol.Peer.PeerId peers = 1;</code>
     */
    public Builder addPeers(Catalyst.Protocol.Peer.PeerId value) {
      if (peersBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensurePeersIsMutable();
        peers_.add(value);
        onChanged();
      } else {
        peersBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <pre>
     * Random subset of a nodes peer db.
     * </pre>
     *
     * <code>repeated .Catalyst.Protocol.Peer.PeerId peers = 1;</code>
     */
    public Builder addPeers(
        int index, Catalyst.Protocol.Peer.PeerId value) {
      if (peersBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensurePeersIsMutable();
        peers_.add(index, value);
        onChanged();
      } else {
        peersBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <pre>
     * Random subset of a nodes peer db.
     * </pre>
     *
     * <code>repeated .Catalyst.Protocol.Peer.PeerId peers = 1;</code>
     */
    public Builder addPeers(
        Catalyst.Protocol.Peer.PeerId.Builder builderForValue) {
      if (peersBuilder_ == null) {
        ensurePeersIsMutable();
        peers_.add(builderForValue.build());
        onChanged();
      } else {
        peersBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     * Random subset of a nodes peer db.
     * </pre>
     *
     * <code>repeated .Catalyst.Protocol.Peer.PeerId peers = 1;</code>
     */
    public Builder addPeers(
        int index, Catalyst.Protocol.Peer.PeerId.Builder builderForValue) {
      if (peersBuilder_ == null) {
        ensurePeersIsMutable();
        peers_.add(index, builderForValue.build());
        onChanged();
      } else {
        peersBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     * Random subset of a nodes peer db.
     * </pre>
     *
     * <code>repeated .Catalyst.Protocol.Peer.PeerId peers = 1;</code>
     */
    public Builder addAllPeers(
        java.lang.Iterable<? extends Catalyst.Protocol.Peer.PeerId> values) {
      if (peersBuilder_ == null) {
        ensurePeersIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, peers_);
        onChanged();
      } else {
        peersBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <pre>
     * Random subset of a nodes peer db.
     * </pre>
     *
     * <code>repeated .Catalyst.Protocol.Peer.PeerId peers = 1;</code>
     */
    public Builder clearPeers() {
      if (peersBuilder_ == null) {
        peers_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        peersBuilder_.clear();
      }
      return this;
    }
    /**
     * <pre>
     * Random subset of a nodes peer db.
     * </pre>
     *
     * <code>repeated .Catalyst.Protocol.Peer.PeerId peers = 1;</code>
     */
    public Builder removePeers(int index) {
      if (peersBuilder_ == null) {
        ensurePeersIsMutable();
        peers_.remove(index);
        onChanged();
      } else {
        peersBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <pre>
     * Random subset of a nodes peer db.
     * </pre>
     *
     * <code>repeated .Catalyst.Protocol.Peer.PeerId peers = 1;</code>
     */
    public Catalyst.Protocol.Peer.PeerId.Builder getPeersBuilder(
        int index) {
      return getPeersFieldBuilder().getBuilder(index);
    }
    /**
     * <pre>
     * Random subset of a nodes peer db.
     * </pre>
     *
     * <code>repeated .Catalyst.Protocol.Peer.PeerId peers = 1;</code>
     */
    public Catalyst.Protocol.Peer.PeerIdOrBuilder getPeersOrBuilder(
        int index) {
      if (peersBuilder_ == null) {
        return peers_.get(index);  } else {
        return peersBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <pre>
     * Random subset of a nodes peer db.
     * </pre>
     *
     * <code>repeated .Catalyst.Protocol.Peer.PeerId peers = 1;</code>
     */
    public java.util.List<? extends Catalyst.Protocol.Peer.PeerIdOrBuilder> 
         getPeersOrBuilderList() {
      if (peersBuilder_ != null) {
        return peersBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(peers_);
      }
    }
    /**
     * <pre>
     * Random subset of a nodes peer db.
     * </pre>
     *
     * <code>repeated .Catalyst.Protocol.Peer.PeerId peers = 1;</code>
     */
    public Catalyst.Protocol.Peer.PeerId.Builder addPeersBuilder() {
      return getPeersFieldBuilder().addBuilder(
          Catalyst.Protocol.Peer.PeerId.getDefaultInstance());
    }
    /**
     * <pre>
     * Random subset of a nodes peer db.
     * </pre>
     *
     * <code>repeated .Catalyst.Protocol.Peer.PeerId peers = 1;</code>
     */
    public Catalyst.Protocol.Peer.PeerId.Builder addPeersBuilder(
        int index) {
      return getPeersFieldBuilder().addBuilder(
          index, Catalyst.Protocol.Peer.PeerId.getDefaultInstance());
    }
    /**
     * <pre>
     * Random subset of a nodes peer db.
     * </pre>
     *
     * <code>repeated .Catalyst.Protocol.Peer.PeerId peers = 1;</code>
     */
    public java.util.List<Catalyst.Protocol.Peer.PeerId.Builder> 
         getPeersBuilderList() {
      return getPeersFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        Catalyst.Protocol.Peer.PeerId, Catalyst.Protocol.Peer.PeerId.Builder, Catalyst.Protocol.Peer.PeerIdOrBuilder> 
        getPeersFieldBuilder() {
      if (peersBuilder_ == null) {
        peersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            Catalyst.Protocol.Peer.PeerId, Catalyst.Protocol.Peer.PeerId.Builder, Catalyst.Protocol.Peer.PeerIdOrBuilder>(
                peers_,
                ((bitField0_ & 0x00000001) != 0),
                getParentForChildren(),
                isClean());
        peers_ = null;
      }
      return peersBuilder_;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }


    // @@protoc_insertion_point(builder_scope:Catalyst.Protocol.IPPN.PeerNeighborsResponse)
  }

  // @@protoc_insertion_point(class_scope:Catalyst.Protocol.IPPN.PeerNeighborsResponse)
  private static final Catalyst.Protocol.IPPN.PeerNeighborsResponse DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new Catalyst.Protocol.IPPN.PeerNeighborsResponse();
  }

  public static Catalyst.Protocol.IPPN.PeerNeighborsResponse getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  @java.lang.Override
  public Catalyst.Protocol.IPPN.PeerNeighborsResponse getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

