All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tendermint.p2p.Types Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: tendermint/p2p/types.proto

package tendermint.p2p;

public final class Types {
  private Types() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface NetAddressOrBuilder extends
      // @@protoc_insertion_point(interface_extends:tendermint.p2p.NetAddress)
      com.google.protobuf.MessageOrBuilder {

    /**
     * string id = 1 [(.gogoproto.customname) = "ID"];
     */
    java.lang.String getId();
    /**
     * string id = 1 [(.gogoproto.customname) = "ID"];
     */
    com.google.protobuf.ByteString
        getIdBytes();

    /**
     * string ip = 2 [(.gogoproto.customname) = "IP"];
     */
    java.lang.String getIp();
    /**
     * string ip = 2 [(.gogoproto.customname) = "IP"];
     */
    com.google.protobuf.ByteString
        getIpBytes();

    /**
     * uint32 port = 3;
     */
    int getPort();
  }
  /**
   * Protobuf type {@code tendermint.p2p.NetAddress}
   */
  public  static final class NetAddress extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:tendermint.p2p.NetAddress)
      NetAddressOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use NetAddress.newBuilder() to construct.
    private NetAddress(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private NetAddress() {
      id_ = "";
      ip_ = "";
      port_ = 0;
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private NetAddress(
        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: {
              java.lang.String s = input.readStringRequireUtf8();

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

              ip_ = s;
              break;
            }
            case 24: {

              port_ = input.readUInt32();
              break;
            }
            default: {
              if (!parseUnknownFieldProto3(
                  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 {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return tendermint.p2p.Types.internal_static_tendermint_p2p_NetAddress_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return tendermint.p2p.Types.internal_static_tendermint_p2p_NetAddress_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              tendermint.p2p.Types.NetAddress.class, tendermint.p2p.Types.NetAddress.Builder.class);
    }

    public static final int ID_FIELD_NUMBER = 1;
    private volatile java.lang.Object id_;
    /**
     * string id = 1 [(.gogoproto.customname) = "ID"];
     */
    public java.lang.String getId() {
      java.lang.Object ref = id_;
      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();
        id_ = s;
        return s;
      }
    }
    /**
     * string id = 1 [(.gogoproto.customname) = "ID"];
     */
    public com.google.protobuf.ByteString
        getIdBytes() {
      java.lang.Object ref = id_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        id_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int IP_FIELD_NUMBER = 2;
    private volatile java.lang.Object ip_;
    /**
     * string ip = 2 [(.gogoproto.customname) = "IP"];
     */
    public java.lang.String getIp() {
      java.lang.Object ref = ip_;
      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();
        ip_ = s;
        return s;
      }
    }
    /**
     * string ip = 2 [(.gogoproto.customname) = "IP"];
     */
    public com.google.protobuf.ByteString
        getIpBytes() {
      java.lang.Object ref = ip_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        ip_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int PORT_FIELD_NUMBER = 3;
    private int port_;
    /**
     * uint32 port = 3;
     */
    public int getPort() {
      return port_;
    }

    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 {
      if (!getIdBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
      }
      if (!getIpBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ip_);
      }
      if (port_ != 0) {
        output.writeUInt32(3, port_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (!getIdBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
      }
      if (!getIpBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ip_);
      }
      if (port_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(3, port_);
      }
      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 tendermint.p2p.Types.NetAddress)) {
        return super.equals(obj);
      }
      tendermint.p2p.Types.NetAddress other = (tendermint.p2p.Types.NetAddress) obj;

      boolean result = true;
      result = result && getId()
          .equals(other.getId());
      result = result && getIp()
          .equals(other.getIp());
      result = result && (getPort()
          == other.getPort());
      result = result && unknownFields.equals(other.unknownFields);
      return result;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + ID_FIELD_NUMBER;
      hash = (53 * hash) + getId().hashCode();
      hash = (37 * hash) + IP_FIELD_NUMBER;
      hash = (53 * hash) + getIp().hashCode();
      hash = (37 * hash) + PORT_FIELD_NUMBER;
      hash = (53 * hash) + getPort();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return tendermint.p2p.Types.internal_static_tendermint_p2p_NetAddress_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                tendermint.p2p.Types.NetAddress.class, tendermint.p2p.Types.NetAddress.Builder.class);
      }

      // Construct using tendermint.p2p.Types.NetAddress.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        id_ = "";

        ip_ = "";

        port_ = 0;

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return tendermint.p2p.Types.internal_static_tendermint_p2p_NetAddress_descriptor;
      }

      @java.lang.Override
      public tendermint.p2p.Types.NetAddress getDefaultInstanceForType() {
        return tendermint.p2p.Types.NetAddress.getDefaultInstance();
      }

      @java.lang.Override
      public tendermint.p2p.Types.NetAddress build() {
        tendermint.p2p.Types.NetAddress result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public tendermint.p2p.Types.NetAddress buildPartial() {
        tendermint.p2p.Types.NetAddress result = new tendermint.p2p.Types.NetAddress(this);
        result.id_ = id_;
        result.ip_ = ip_;
        result.port_ = port_;
        onBuilt();
        return result;
      }

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

      public Builder mergeFrom(tendermint.p2p.Types.NetAddress other) {
        if (other == tendermint.p2p.Types.NetAddress.getDefaultInstance()) return this;
        if (!other.getId().isEmpty()) {
          id_ = other.id_;
          onChanged();
        }
        if (!other.getIp().isEmpty()) {
          ip_ = other.ip_;
          onChanged();
        }
        if (other.getPort() != 0) {
          setPort(other.getPort());
        }
        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 {
        tendermint.p2p.Types.NetAddress parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (tendermint.p2p.Types.NetAddress) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private java.lang.Object id_ = "";
      /**
       * string id = 1 [(.gogoproto.customname) = "ID"];
       */
      public java.lang.String getId() {
        java.lang.Object ref = id_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          id_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * string id = 1 [(.gogoproto.customname) = "ID"];
       */
      public com.google.protobuf.ByteString
          getIdBytes() {
        java.lang.Object ref = id_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          id_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * string id = 1 [(.gogoproto.customname) = "ID"];
       */
      public Builder setId(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        id_ = value;
        onChanged();
        return this;
      }
      /**
       * string id = 1 [(.gogoproto.customname) = "ID"];
       */
      public Builder clearId() {
        
        id_ = getDefaultInstance().getId();
        onChanged();
        return this;
      }
      /**
       * string id = 1 [(.gogoproto.customname) = "ID"];
       */
      public Builder setIdBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        id_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object ip_ = "";
      /**
       * string ip = 2 [(.gogoproto.customname) = "IP"];
       */
      public java.lang.String getIp() {
        java.lang.Object ref = ip_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          ip_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * string ip = 2 [(.gogoproto.customname) = "IP"];
       */
      public com.google.protobuf.ByteString
          getIpBytes() {
        java.lang.Object ref = ip_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          ip_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * string ip = 2 [(.gogoproto.customname) = "IP"];
       */
      public Builder setIp(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        ip_ = value;
        onChanged();
        return this;
      }
      /**
       * string ip = 2 [(.gogoproto.customname) = "IP"];
       */
      public Builder clearIp() {
        
        ip_ = getDefaultInstance().getIp();
        onChanged();
        return this;
      }
      /**
       * string ip = 2 [(.gogoproto.customname) = "IP"];
       */
      public Builder setIpBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        ip_ = value;
        onChanged();
        return this;
      }

      private int port_ ;
      /**
       * uint32 port = 3;
       */
      public int getPort() {
        return port_;
      }
      /**
       * uint32 port = 3;
       */
      public Builder setPort(int value) {
        
        port_ = value;
        onChanged();
        return this;
      }
      /**
       * uint32 port = 3;
       */
      public Builder clearPort() {
        
        port_ = 0;
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFieldsProto3(unknownFields);
      }

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


      // @@protoc_insertion_point(builder_scope:tendermint.p2p.NetAddress)
    }

    // @@protoc_insertion_point(class_scope:tendermint.p2p.NetAddress)
    private static final tendermint.p2p.Types.NetAddress DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new tendermint.p2p.Types.NetAddress();
    }

    public static tendermint.p2p.Types.NetAddress getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public tendermint.p2p.Types.NetAddress getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface ProtocolVersionOrBuilder extends
      // @@protoc_insertion_point(interface_extends:tendermint.p2p.ProtocolVersion)
      com.google.protobuf.MessageOrBuilder {

    /**
     * uint64 p2p = 1 [(.gogoproto.customname) = "P2P"];
     */
    long getP2P();

    /**
     * uint64 block = 2;
     */
    long getBlock();

    /**
     * uint64 app = 3;
     */
    long getApp();
  }
  /**
   * Protobuf type {@code tendermint.p2p.ProtocolVersion}
   */
  public  static final class ProtocolVersion extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:tendermint.p2p.ProtocolVersion)
      ProtocolVersionOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use ProtocolVersion.newBuilder() to construct.
    private ProtocolVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private ProtocolVersion() {
      p2P_ = 0L;
      block_ = 0L;
      app_ = 0L;
    }

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

              p2P_ = input.readUInt64();
              break;
            }
            case 16: {

              block_ = input.readUInt64();
              break;
            }
            case 24: {

              app_ = input.readUInt64();
              break;
            }
            default: {
              if (!parseUnknownFieldProto3(
                  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 {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return tendermint.p2p.Types.internal_static_tendermint_p2p_ProtocolVersion_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return tendermint.p2p.Types.internal_static_tendermint_p2p_ProtocolVersion_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              tendermint.p2p.Types.ProtocolVersion.class, tendermint.p2p.Types.ProtocolVersion.Builder.class);
    }

    public static final int P2P_FIELD_NUMBER = 1;
    private long p2P_;
    /**
     * uint64 p2p = 1 [(.gogoproto.customname) = "P2P"];
     */
    public long getP2P() {
      return p2P_;
    }

    public static final int BLOCK_FIELD_NUMBER = 2;
    private long block_;
    /**
     * uint64 block = 2;
     */
    public long getBlock() {
      return block_;
    }

    public static final int APP_FIELD_NUMBER = 3;
    private long app_;
    /**
     * uint64 app = 3;
     */
    public long getApp() {
      return app_;
    }

    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 {
      if (p2P_ != 0L) {
        output.writeUInt64(1, p2P_);
      }
      if (block_ != 0L) {
        output.writeUInt64(2, block_);
      }
      if (app_ != 0L) {
        output.writeUInt64(3, app_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (p2P_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt64Size(1, p2P_);
      }
      if (block_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt64Size(2, block_);
      }
      if (app_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt64Size(3, app_);
      }
      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 tendermint.p2p.Types.ProtocolVersion)) {
        return super.equals(obj);
      }
      tendermint.p2p.Types.ProtocolVersion other = (tendermint.p2p.Types.ProtocolVersion) obj;

      boolean result = true;
      result = result && (getP2P()
          == other.getP2P());
      result = result && (getBlock()
          == other.getBlock());
      result = result && (getApp()
          == other.getApp());
      result = result && unknownFields.equals(other.unknownFields);
      return result;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + P2P_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getP2P());
      hash = (37 * hash) + BLOCK_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getBlock());
      hash = (37 * hash) + APP_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getApp());
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return tendermint.p2p.Types.internal_static_tendermint_p2p_ProtocolVersion_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                tendermint.p2p.Types.ProtocolVersion.class, tendermint.p2p.Types.ProtocolVersion.Builder.class);
      }

      // Construct using tendermint.p2p.Types.ProtocolVersion.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        p2P_ = 0L;

        block_ = 0L;

        app_ = 0L;

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return tendermint.p2p.Types.internal_static_tendermint_p2p_ProtocolVersion_descriptor;
      }

      @java.lang.Override
      public tendermint.p2p.Types.ProtocolVersion getDefaultInstanceForType() {
        return tendermint.p2p.Types.ProtocolVersion.getDefaultInstance();
      }

      @java.lang.Override
      public tendermint.p2p.Types.ProtocolVersion build() {
        tendermint.p2p.Types.ProtocolVersion result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public tendermint.p2p.Types.ProtocolVersion buildPartial() {
        tendermint.p2p.Types.ProtocolVersion result = new tendermint.p2p.Types.ProtocolVersion(this);
        result.p2P_ = p2P_;
        result.block_ = block_;
        result.app_ = app_;
        onBuilt();
        return result;
      }

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

      public Builder mergeFrom(tendermint.p2p.Types.ProtocolVersion other) {
        if (other == tendermint.p2p.Types.ProtocolVersion.getDefaultInstance()) return this;
        if (other.getP2P() != 0L) {
          setP2P(other.getP2P());
        }
        if (other.getBlock() != 0L) {
          setBlock(other.getBlock());
        }
        if (other.getApp() != 0L) {
          setApp(other.getApp());
        }
        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 {
        tendermint.p2p.Types.ProtocolVersion parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (tendermint.p2p.Types.ProtocolVersion) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private long p2P_ ;
      /**
       * uint64 p2p = 1 [(.gogoproto.customname) = "P2P"];
       */
      public long getP2P() {
        return p2P_;
      }
      /**
       * uint64 p2p = 1 [(.gogoproto.customname) = "P2P"];
       */
      public Builder setP2P(long value) {
        
        p2P_ = value;
        onChanged();
        return this;
      }
      /**
       * uint64 p2p = 1 [(.gogoproto.customname) = "P2P"];
       */
      public Builder clearP2P() {
        
        p2P_ = 0L;
        onChanged();
        return this;
      }

      private long block_ ;
      /**
       * uint64 block = 2;
       */
      public long getBlock() {
        return block_;
      }
      /**
       * uint64 block = 2;
       */
      public Builder setBlock(long value) {
        
        block_ = value;
        onChanged();
        return this;
      }
      /**
       * uint64 block = 2;
       */
      public Builder clearBlock() {
        
        block_ = 0L;
        onChanged();
        return this;
      }

      private long app_ ;
      /**
       * uint64 app = 3;
       */
      public long getApp() {
        return app_;
      }
      /**
       * uint64 app = 3;
       */
      public Builder setApp(long value) {
        
        app_ = value;
        onChanged();
        return this;
      }
      /**
       * uint64 app = 3;
       */
      public Builder clearApp() {
        
        app_ = 0L;
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFieldsProto3(unknownFields);
      }

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


      // @@protoc_insertion_point(builder_scope:tendermint.p2p.ProtocolVersion)
    }

    // @@protoc_insertion_point(class_scope:tendermint.p2p.ProtocolVersion)
    private static final tendermint.p2p.Types.ProtocolVersion DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new tendermint.p2p.Types.ProtocolVersion();
    }

    public static tendermint.p2p.Types.ProtocolVersion getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public tendermint.p2p.Types.ProtocolVersion getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface DefaultNodeInfoOrBuilder extends
      // @@protoc_insertion_point(interface_extends:tendermint.p2p.DefaultNodeInfo)
      com.google.protobuf.MessageOrBuilder {

    /**
     * .tendermint.p2p.ProtocolVersion protocol_version = 1 [(.gogoproto.nullable) = false];
     */
    boolean hasProtocolVersion();
    /**
     * .tendermint.p2p.ProtocolVersion protocol_version = 1 [(.gogoproto.nullable) = false];
     */
    tendermint.p2p.Types.ProtocolVersion getProtocolVersion();
    /**
     * .tendermint.p2p.ProtocolVersion protocol_version = 1 [(.gogoproto.nullable) = false];
     */
    tendermint.p2p.Types.ProtocolVersionOrBuilder getProtocolVersionOrBuilder();

    /**
     * string default_node_id = 2 [(.gogoproto.customname) = "DefaultNodeID"];
     */
    java.lang.String getDefaultNodeId();
    /**
     * string default_node_id = 2 [(.gogoproto.customname) = "DefaultNodeID"];
     */
    com.google.protobuf.ByteString
        getDefaultNodeIdBytes();

    /**
     * string listen_addr = 3;
     */
    java.lang.String getListenAddr();
    /**
     * string listen_addr = 3;
     */
    com.google.protobuf.ByteString
        getListenAddrBytes();

    /**
     * string network = 4;
     */
    java.lang.String getNetwork();
    /**
     * string network = 4;
     */
    com.google.protobuf.ByteString
        getNetworkBytes();

    /**
     * string version = 5;
     */
    java.lang.String getVersion();
    /**
     * string version = 5;
     */
    com.google.protobuf.ByteString
        getVersionBytes();

    /**
     * bytes channels = 6;
     */
    com.google.protobuf.ByteString getChannels();

    /**
     * string moniker = 7;
     */
    java.lang.String getMoniker();
    /**
     * string moniker = 7;
     */
    com.google.protobuf.ByteString
        getMonikerBytes();

    /**
     * .tendermint.p2p.DefaultNodeInfoOther other = 8 [(.gogoproto.nullable) = false];
     */
    boolean hasOther();
    /**
     * .tendermint.p2p.DefaultNodeInfoOther other = 8 [(.gogoproto.nullable) = false];
     */
    tendermint.p2p.Types.DefaultNodeInfoOther getOther();
    /**
     * .tendermint.p2p.DefaultNodeInfoOther other = 8 [(.gogoproto.nullable) = false];
     */
    tendermint.p2p.Types.DefaultNodeInfoOtherOrBuilder getOtherOrBuilder();
  }
  /**
   * Protobuf type {@code tendermint.p2p.DefaultNodeInfo}
   */
  public  static final class DefaultNodeInfo extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:tendermint.p2p.DefaultNodeInfo)
      DefaultNodeInfoOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use DefaultNodeInfo.newBuilder() to construct.
    private DefaultNodeInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private DefaultNodeInfo() {
      defaultNodeId_ = "";
      listenAddr_ = "";
      network_ = "";
      version_ = "";
      channels_ = com.google.protobuf.ByteString.EMPTY;
      moniker_ = "";
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private DefaultNodeInfo(
        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: {
              tendermint.p2p.Types.ProtocolVersion.Builder subBuilder = null;
              if (protocolVersion_ != null) {
                subBuilder = protocolVersion_.toBuilder();
              }
              protocolVersion_ = input.readMessage(tendermint.p2p.Types.ProtocolVersion.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(protocolVersion_);
                protocolVersion_ = subBuilder.buildPartial();
              }

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

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

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

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

              version_ = s;
              break;
            }
            case 50: {

              channels_ = input.readBytes();
              break;
            }
            case 58: {
              java.lang.String s = input.readStringRequireUtf8();

              moniker_ = s;
              break;
            }
            case 66: {
              tendermint.p2p.Types.DefaultNodeInfoOther.Builder subBuilder = null;
              if (other_ != null) {
                subBuilder = other_.toBuilder();
              }
              other_ = input.readMessage(tendermint.p2p.Types.DefaultNodeInfoOther.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(other_);
                other_ = subBuilder.buildPartial();
              }

              break;
            }
            default: {
              if (!parseUnknownFieldProto3(
                  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 {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return tendermint.p2p.Types.internal_static_tendermint_p2p_DefaultNodeInfo_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return tendermint.p2p.Types.internal_static_tendermint_p2p_DefaultNodeInfo_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              tendermint.p2p.Types.DefaultNodeInfo.class, tendermint.p2p.Types.DefaultNodeInfo.Builder.class);
    }

    public static final int PROTOCOL_VERSION_FIELD_NUMBER = 1;
    private tendermint.p2p.Types.ProtocolVersion protocolVersion_;
    /**
     * .tendermint.p2p.ProtocolVersion protocol_version = 1 [(.gogoproto.nullable) = false];
     */
    public boolean hasProtocolVersion() {
      return protocolVersion_ != null;
    }
    /**
     * .tendermint.p2p.ProtocolVersion protocol_version = 1 [(.gogoproto.nullable) = false];
     */
    public tendermint.p2p.Types.ProtocolVersion getProtocolVersion() {
      return protocolVersion_ == null ? tendermint.p2p.Types.ProtocolVersion.getDefaultInstance() : protocolVersion_;
    }
    /**
     * .tendermint.p2p.ProtocolVersion protocol_version = 1 [(.gogoproto.nullable) = false];
     */
    public tendermint.p2p.Types.ProtocolVersionOrBuilder getProtocolVersionOrBuilder() {
      return getProtocolVersion();
    }

    public static final int DEFAULT_NODE_ID_FIELD_NUMBER = 2;
    private volatile java.lang.Object defaultNodeId_;
    /**
     * string default_node_id = 2 [(.gogoproto.customname) = "DefaultNodeID"];
     */
    public java.lang.String getDefaultNodeId() {
      java.lang.Object ref = defaultNodeId_;
      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();
        defaultNodeId_ = s;
        return s;
      }
    }
    /**
     * string default_node_id = 2 [(.gogoproto.customname) = "DefaultNodeID"];
     */
    public com.google.protobuf.ByteString
        getDefaultNodeIdBytes() {
      java.lang.Object ref = defaultNodeId_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        defaultNodeId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int LISTEN_ADDR_FIELD_NUMBER = 3;
    private volatile java.lang.Object listenAddr_;
    /**
     * string listen_addr = 3;
     */
    public java.lang.String getListenAddr() {
      java.lang.Object ref = listenAddr_;
      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();
        listenAddr_ = s;
        return s;
      }
    }
    /**
     * string listen_addr = 3;
     */
    public com.google.protobuf.ByteString
        getListenAddrBytes() {
      java.lang.Object ref = listenAddr_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        listenAddr_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int NETWORK_FIELD_NUMBER = 4;
    private volatile java.lang.Object network_;
    /**
     * string network = 4;
     */
    public java.lang.String getNetwork() {
      java.lang.Object ref = network_;
      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();
        network_ = s;
        return s;
      }
    }
    /**
     * string network = 4;
     */
    public com.google.protobuf.ByteString
        getNetworkBytes() {
      java.lang.Object ref = network_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        network_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int VERSION_FIELD_NUMBER = 5;
    private volatile java.lang.Object version_;
    /**
     * string version = 5;
     */
    public java.lang.String getVersion() {
      java.lang.Object ref = version_;
      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();
        version_ = s;
        return s;
      }
    }
    /**
     * string version = 5;
     */
    public com.google.protobuf.ByteString
        getVersionBytes() {
      java.lang.Object ref = version_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        version_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int CHANNELS_FIELD_NUMBER = 6;
    private com.google.protobuf.ByteString channels_;
    /**
     * bytes channels = 6;
     */
    public com.google.protobuf.ByteString getChannels() {
      return channels_;
    }

    public static final int MONIKER_FIELD_NUMBER = 7;
    private volatile java.lang.Object moniker_;
    /**
     * string moniker = 7;
     */
    public java.lang.String getMoniker() {
      java.lang.Object ref = moniker_;
      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();
        moniker_ = s;
        return s;
      }
    }
    /**
     * string moniker = 7;
     */
    public com.google.protobuf.ByteString
        getMonikerBytes() {
      java.lang.Object ref = moniker_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        moniker_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int OTHER_FIELD_NUMBER = 8;
    private tendermint.p2p.Types.DefaultNodeInfoOther other_;
    /**
     * .tendermint.p2p.DefaultNodeInfoOther other = 8 [(.gogoproto.nullable) = false];
     */
    public boolean hasOther() {
      return other_ != null;
    }
    /**
     * .tendermint.p2p.DefaultNodeInfoOther other = 8 [(.gogoproto.nullable) = false];
     */
    public tendermint.p2p.Types.DefaultNodeInfoOther getOther() {
      return other_ == null ? tendermint.p2p.Types.DefaultNodeInfoOther.getDefaultInstance() : other_;
    }
    /**
     * .tendermint.p2p.DefaultNodeInfoOther other = 8 [(.gogoproto.nullable) = false];
     */
    public tendermint.p2p.Types.DefaultNodeInfoOtherOrBuilder getOtherOrBuilder() {
      return getOther();
    }

    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 {
      if (protocolVersion_ != null) {
        output.writeMessage(1, getProtocolVersion());
      }
      if (!getDefaultNodeIdBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, defaultNodeId_);
      }
      if (!getListenAddrBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 3, listenAddr_);
      }
      if (!getNetworkBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 4, network_);
      }
      if (!getVersionBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 5, version_);
      }
      if (!channels_.isEmpty()) {
        output.writeBytes(6, channels_);
      }
      if (!getMonikerBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 7, moniker_);
      }
      if (other_ != null) {
        output.writeMessage(8, getOther());
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (protocolVersion_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, getProtocolVersion());
      }
      if (!getDefaultNodeIdBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, defaultNodeId_);
      }
      if (!getListenAddrBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, listenAddr_);
      }
      if (!getNetworkBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, network_);
      }
      if (!getVersionBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, version_);
      }
      if (!channels_.isEmpty()) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(6, channels_);
      }
      if (!getMonikerBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, moniker_);
      }
      if (other_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(8, getOther());
      }
      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 tendermint.p2p.Types.DefaultNodeInfo)) {
        return super.equals(obj);
      }
      tendermint.p2p.Types.DefaultNodeInfo other = (tendermint.p2p.Types.DefaultNodeInfo) obj;

      boolean result = true;
      result = result && (hasProtocolVersion() == other.hasProtocolVersion());
      if (hasProtocolVersion()) {
        result = result && getProtocolVersion()
            .equals(other.getProtocolVersion());
      }
      result = result && getDefaultNodeId()
          .equals(other.getDefaultNodeId());
      result = result && getListenAddr()
          .equals(other.getListenAddr());
      result = result && getNetwork()
          .equals(other.getNetwork());
      result = result && getVersion()
          .equals(other.getVersion());
      result = result && getChannels()
          .equals(other.getChannels());
      result = result && getMoniker()
          .equals(other.getMoniker());
      result = result && (hasOther() == other.hasOther());
      if (hasOther()) {
        result = result && getOther()
            .equals(other.getOther());
      }
      result = result && unknownFields.equals(other.unknownFields);
      return result;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (hasProtocolVersion()) {
        hash = (37 * hash) + PROTOCOL_VERSION_FIELD_NUMBER;
        hash = (53 * hash) + getProtocolVersion().hashCode();
      }
      hash = (37 * hash) + DEFAULT_NODE_ID_FIELD_NUMBER;
      hash = (53 * hash) + getDefaultNodeId().hashCode();
      hash = (37 * hash) + LISTEN_ADDR_FIELD_NUMBER;
      hash = (53 * hash) + getListenAddr().hashCode();
      hash = (37 * hash) + NETWORK_FIELD_NUMBER;
      hash = (53 * hash) + getNetwork().hashCode();
      hash = (37 * hash) + VERSION_FIELD_NUMBER;
      hash = (53 * hash) + getVersion().hashCode();
      hash = (37 * hash) + CHANNELS_FIELD_NUMBER;
      hash = (53 * hash) + getChannels().hashCode();
      hash = (37 * hash) + MONIKER_FIELD_NUMBER;
      hash = (53 * hash) + getMoniker().hashCode();
      if (hasOther()) {
        hash = (37 * hash) + OTHER_FIELD_NUMBER;
        hash = (53 * hash) + getOther().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return tendermint.p2p.Types.internal_static_tendermint_p2p_DefaultNodeInfo_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                tendermint.p2p.Types.DefaultNodeInfo.class, tendermint.p2p.Types.DefaultNodeInfo.Builder.class);
      }

      // Construct using tendermint.p2p.Types.DefaultNodeInfo.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        if (protocolVersionBuilder_ == null) {
          protocolVersion_ = null;
        } else {
          protocolVersion_ = null;
          protocolVersionBuilder_ = null;
        }
        defaultNodeId_ = "";

        listenAddr_ = "";

        network_ = "";

        version_ = "";

        channels_ = com.google.protobuf.ByteString.EMPTY;

        moniker_ = "";

        if (otherBuilder_ == null) {
          other_ = null;
        } else {
          other_ = null;
          otherBuilder_ = null;
        }
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return tendermint.p2p.Types.internal_static_tendermint_p2p_DefaultNodeInfo_descriptor;
      }

      @java.lang.Override
      public tendermint.p2p.Types.DefaultNodeInfo getDefaultInstanceForType() {
        return tendermint.p2p.Types.DefaultNodeInfo.getDefaultInstance();
      }

      @java.lang.Override
      public tendermint.p2p.Types.DefaultNodeInfo build() {
        tendermint.p2p.Types.DefaultNodeInfo result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public tendermint.p2p.Types.DefaultNodeInfo buildPartial() {
        tendermint.p2p.Types.DefaultNodeInfo result = new tendermint.p2p.Types.DefaultNodeInfo(this);
        if (protocolVersionBuilder_ == null) {
          result.protocolVersion_ = protocolVersion_;
        } else {
          result.protocolVersion_ = protocolVersionBuilder_.build();
        }
        result.defaultNodeId_ = defaultNodeId_;
        result.listenAddr_ = listenAddr_;
        result.network_ = network_;
        result.version_ = version_;
        result.channels_ = channels_;
        result.moniker_ = moniker_;
        if (otherBuilder_ == null) {
          result.other_ = other_;
        } else {
          result.other_ = otherBuilder_.build();
        }
        onBuilt();
        return result;
      }

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

      public Builder mergeFrom(tendermint.p2p.Types.DefaultNodeInfo other) {
        if (other == tendermint.p2p.Types.DefaultNodeInfo.getDefaultInstance()) return this;
        if (other.hasProtocolVersion()) {
          mergeProtocolVersion(other.getProtocolVersion());
        }
        if (!other.getDefaultNodeId().isEmpty()) {
          defaultNodeId_ = other.defaultNodeId_;
          onChanged();
        }
        if (!other.getListenAddr().isEmpty()) {
          listenAddr_ = other.listenAddr_;
          onChanged();
        }
        if (!other.getNetwork().isEmpty()) {
          network_ = other.network_;
          onChanged();
        }
        if (!other.getVersion().isEmpty()) {
          version_ = other.version_;
          onChanged();
        }
        if (other.getChannels() != com.google.protobuf.ByteString.EMPTY) {
          setChannels(other.getChannels());
        }
        if (!other.getMoniker().isEmpty()) {
          moniker_ = other.moniker_;
          onChanged();
        }
        if (other.hasOther()) {
          mergeOther(other.getOther());
        }
        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 {
        tendermint.p2p.Types.DefaultNodeInfo parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (tendermint.p2p.Types.DefaultNodeInfo) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private tendermint.p2p.Types.ProtocolVersion protocolVersion_ = null;
      private com.google.protobuf.SingleFieldBuilderV3<
          tendermint.p2p.Types.ProtocolVersion, tendermint.p2p.Types.ProtocolVersion.Builder, tendermint.p2p.Types.ProtocolVersionOrBuilder> protocolVersionBuilder_;
      /**
       * .tendermint.p2p.ProtocolVersion protocol_version = 1 [(.gogoproto.nullable) = false];
       */
      public boolean hasProtocolVersion() {
        return protocolVersionBuilder_ != null || protocolVersion_ != null;
      }
      /**
       * .tendermint.p2p.ProtocolVersion protocol_version = 1 [(.gogoproto.nullable) = false];
       */
      public tendermint.p2p.Types.ProtocolVersion getProtocolVersion() {
        if (protocolVersionBuilder_ == null) {
          return protocolVersion_ == null ? tendermint.p2p.Types.ProtocolVersion.getDefaultInstance() : protocolVersion_;
        } else {
          return protocolVersionBuilder_.getMessage();
        }
      }
      /**
       * .tendermint.p2p.ProtocolVersion protocol_version = 1 [(.gogoproto.nullable) = false];
       */
      public Builder setProtocolVersion(tendermint.p2p.Types.ProtocolVersion value) {
        if (protocolVersionBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          protocolVersion_ = value;
          onChanged();
        } else {
          protocolVersionBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * .tendermint.p2p.ProtocolVersion protocol_version = 1 [(.gogoproto.nullable) = false];
       */
      public Builder setProtocolVersion(
          tendermint.p2p.Types.ProtocolVersion.Builder builderForValue) {
        if (protocolVersionBuilder_ == null) {
          protocolVersion_ = builderForValue.build();
          onChanged();
        } else {
          protocolVersionBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * .tendermint.p2p.ProtocolVersion protocol_version = 1 [(.gogoproto.nullable) = false];
       */
      public Builder mergeProtocolVersion(tendermint.p2p.Types.ProtocolVersion value) {
        if (protocolVersionBuilder_ == null) {
          if (protocolVersion_ != null) {
            protocolVersion_ =
              tendermint.p2p.Types.ProtocolVersion.newBuilder(protocolVersion_).mergeFrom(value).buildPartial();
          } else {
            protocolVersion_ = value;
          }
          onChanged();
        } else {
          protocolVersionBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * .tendermint.p2p.ProtocolVersion protocol_version = 1 [(.gogoproto.nullable) = false];
       */
      public Builder clearProtocolVersion() {
        if (protocolVersionBuilder_ == null) {
          protocolVersion_ = null;
          onChanged();
        } else {
          protocolVersion_ = null;
          protocolVersionBuilder_ = null;
        }

        return this;
      }
      /**
       * .tendermint.p2p.ProtocolVersion protocol_version = 1 [(.gogoproto.nullable) = false];
       */
      public tendermint.p2p.Types.ProtocolVersion.Builder getProtocolVersionBuilder() {
        
        onChanged();
        return getProtocolVersionFieldBuilder().getBuilder();
      }
      /**
       * .tendermint.p2p.ProtocolVersion protocol_version = 1 [(.gogoproto.nullable) = false];
       */
      public tendermint.p2p.Types.ProtocolVersionOrBuilder getProtocolVersionOrBuilder() {
        if (protocolVersionBuilder_ != null) {
          return protocolVersionBuilder_.getMessageOrBuilder();
        } else {
          return protocolVersion_ == null ?
              tendermint.p2p.Types.ProtocolVersion.getDefaultInstance() : protocolVersion_;
        }
      }
      /**
       * .tendermint.p2p.ProtocolVersion protocol_version = 1 [(.gogoproto.nullable) = false];
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          tendermint.p2p.Types.ProtocolVersion, tendermint.p2p.Types.ProtocolVersion.Builder, tendermint.p2p.Types.ProtocolVersionOrBuilder> 
          getProtocolVersionFieldBuilder() {
        if (protocolVersionBuilder_ == null) {
          protocolVersionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              tendermint.p2p.Types.ProtocolVersion, tendermint.p2p.Types.ProtocolVersion.Builder, tendermint.p2p.Types.ProtocolVersionOrBuilder>(
                  getProtocolVersion(),
                  getParentForChildren(),
                  isClean());
          protocolVersion_ = null;
        }
        return protocolVersionBuilder_;
      }

      private java.lang.Object defaultNodeId_ = "";
      /**
       * string default_node_id = 2 [(.gogoproto.customname) = "DefaultNodeID"];
       */
      public java.lang.String getDefaultNodeId() {
        java.lang.Object ref = defaultNodeId_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          defaultNodeId_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * string default_node_id = 2 [(.gogoproto.customname) = "DefaultNodeID"];
       */
      public com.google.protobuf.ByteString
          getDefaultNodeIdBytes() {
        java.lang.Object ref = defaultNodeId_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          defaultNodeId_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * string default_node_id = 2 [(.gogoproto.customname) = "DefaultNodeID"];
       */
      public Builder setDefaultNodeId(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        defaultNodeId_ = value;
        onChanged();
        return this;
      }
      /**
       * string default_node_id = 2 [(.gogoproto.customname) = "DefaultNodeID"];
       */
      public Builder clearDefaultNodeId() {
        
        defaultNodeId_ = getDefaultInstance().getDefaultNodeId();
        onChanged();
        return this;
      }
      /**
       * string default_node_id = 2 [(.gogoproto.customname) = "DefaultNodeID"];
       */
      public Builder setDefaultNodeIdBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        defaultNodeId_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object listenAddr_ = "";
      /**
       * string listen_addr = 3;
       */
      public java.lang.String getListenAddr() {
        java.lang.Object ref = listenAddr_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          listenAddr_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * string listen_addr = 3;
       */
      public com.google.protobuf.ByteString
          getListenAddrBytes() {
        java.lang.Object ref = listenAddr_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          listenAddr_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * string listen_addr = 3;
       */
      public Builder setListenAddr(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        listenAddr_ = value;
        onChanged();
        return this;
      }
      /**
       * string listen_addr = 3;
       */
      public Builder clearListenAddr() {
        
        listenAddr_ = getDefaultInstance().getListenAddr();
        onChanged();
        return this;
      }
      /**
       * string listen_addr = 3;
       */
      public Builder setListenAddrBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        listenAddr_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object network_ = "";
      /**
       * string network = 4;
       */
      public java.lang.String getNetwork() {
        java.lang.Object ref = network_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          network_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * string network = 4;
       */
      public com.google.protobuf.ByteString
          getNetworkBytes() {
        java.lang.Object ref = network_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          network_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * string network = 4;
       */
      public Builder setNetwork(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        network_ = value;
        onChanged();
        return this;
      }
      /**
       * string network = 4;
       */
      public Builder clearNetwork() {
        
        network_ = getDefaultInstance().getNetwork();
        onChanged();
        return this;
      }
      /**
       * string network = 4;
       */
      public Builder setNetworkBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        network_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object version_ = "";
      /**
       * string version = 5;
       */
      public java.lang.String getVersion() {
        java.lang.Object ref = version_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          version_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * string version = 5;
       */
      public com.google.protobuf.ByteString
          getVersionBytes() {
        java.lang.Object ref = version_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          version_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * string version = 5;
       */
      public Builder setVersion(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        version_ = value;
        onChanged();
        return this;
      }
      /**
       * string version = 5;
       */
      public Builder clearVersion() {
        
        version_ = getDefaultInstance().getVersion();
        onChanged();
        return this;
      }
      /**
       * string version = 5;
       */
      public Builder setVersionBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        version_ = value;
        onChanged();
        return this;
      }

      private com.google.protobuf.ByteString channels_ = com.google.protobuf.ByteString.EMPTY;
      /**
       * bytes channels = 6;
       */
      public com.google.protobuf.ByteString getChannels() {
        return channels_;
      }
      /**
       * bytes channels = 6;
       */
      public Builder setChannels(com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        channels_ = value;
        onChanged();
        return this;
      }
      /**
       * bytes channels = 6;
       */
      public Builder clearChannels() {
        
        channels_ = getDefaultInstance().getChannels();
        onChanged();
        return this;
      }

      private java.lang.Object moniker_ = "";
      /**
       * string moniker = 7;
       */
      public java.lang.String getMoniker() {
        java.lang.Object ref = moniker_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          moniker_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * string moniker = 7;
       */
      public com.google.protobuf.ByteString
          getMonikerBytes() {
        java.lang.Object ref = moniker_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          moniker_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * string moniker = 7;
       */
      public Builder setMoniker(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        moniker_ = value;
        onChanged();
        return this;
      }
      /**
       * string moniker = 7;
       */
      public Builder clearMoniker() {
        
        moniker_ = getDefaultInstance().getMoniker();
        onChanged();
        return this;
      }
      /**
       * string moniker = 7;
       */
      public Builder setMonikerBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        moniker_ = value;
        onChanged();
        return this;
      }

      private tendermint.p2p.Types.DefaultNodeInfoOther other_ = null;
      private com.google.protobuf.SingleFieldBuilderV3<
          tendermint.p2p.Types.DefaultNodeInfoOther, tendermint.p2p.Types.DefaultNodeInfoOther.Builder, tendermint.p2p.Types.DefaultNodeInfoOtherOrBuilder> otherBuilder_;
      /**
       * .tendermint.p2p.DefaultNodeInfoOther other = 8 [(.gogoproto.nullable) = false];
       */
      public boolean hasOther() {
        return otherBuilder_ != null || other_ != null;
      }
      /**
       * .tendermint.p2p.DefaultNodeInfoOther other = 8 [(.gogoproto.nullable) = false];
       */
      public tendermint.p2p.Types.DefaultNodeInfoOther getOther() {
        if (otherBuilder_ == null) {
          return other_ == null ? tendermint.p2p.Types.DefaultNodeInfoOther.getDefaultInstance() : other_;
        } else {
          return otherBuilder_.getMessage();
        }
      }
      /**
       * .tendermint.p2p.DefaultNodeInfoOther other = 8 [(.gogoproto.nullable) = false];
       */
      public Builder setOther(tendermint.p2p.Types.DefaultNodeInfoOther value) {
        if (otherBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          other_ = value;
          onChanged();
        } else {
          otherBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * .tendermint.p2p.DefaultNodeInfoOther other = 8 [(.gogoproto.nullable) = false];
       */
      public Builder setOther(
          tendermint.p2p.Types.DefaultNodeInfoOther.Builder builderForValue) {
        if (otherBuilder_ == null) {
          other_ = builderForValue.build();
          onChanged();
        } else {
          otherBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * .tendermint.p2p.DefaultNodeInfoOther other = 8 [(.gogoproto.nullable) = false];
       */
      public Builder mergeOther(tendermint.p2p.Types.DefaultNodeInfoOther value) {
        if (otherBuilder_ == null) {
          if (other_ != null) {
            other_ =
              tendermint.p2p.Types.DefaultNodeInfoOther.newBuilder(other_).mergeFrom(value).buildPartial();
          } else {
            other_ = value;
          }
          onChanged();
        } else {
          otherBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * .tendermint.p2p.DefaultNodeInfoOther other = 8 [(.gogoproto.nullable) = false];
       */
      public Builder clearOther() {
        if (otherBuilder_ == null) {
          other_ = null;
          onChanged();
        } else {
          other_ = null;
          otherBuilder_ = null;
        }

        return this;
      }
      /**
       * .tendermint.p2p.DefaultNodeInfoOther other = 8 [(.gogoproto.nullable) = false];
       */
      public tendermint.p2p.Types.DefaultNodeInfoOther.Builder getOtherBuilder() {
        
        onChanged();
        return getOtherFieldBuilder().getBuilder();
      }
      /**
       * .tendermint.p2p.DefaultNodeInfoOther other = 8 [(.gogoproto.nullable) = false];
       */
      public tendermint.p2p.Types.DefaultNodeInfoOtherOrBuilder getOtherOrBuilder() {
        if (otherBuilder_ != null) {
          return otherBuilder_.getMessageOrBuilder();
        } else {
          return other_ == null ?
              tendermint.p2p.Types.DefaultNodeInfoOther.getDefaultInstance() : other_;
        }
      }
      /**
       * .tendermint.p2p.DefaultNodeInfoOther other = 8 [(.gogoproto.nullable) = false];
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          tendermint.p2p.Types.DefaultNodeInfoOther, tendermint.p2p.Types.DefaultNodeInfoOther.Builder, tendermint.p2p.Types.DefaultNodeInfoOtherOrBuilder> 
          getOtherFieldBuilder() {
        if (otherBuilder_ == null) {
          otherBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              tendermint.p2p.Types.DefaultNodeInfoOther, tendermint.p2p.Types.DefaultNodeInfoOther.Builder, tendermint.p2p.Types.DefaultNodeInfoOtherOrBuilder>(
                  getOther(),
                  getParentForChildren(),
                  isClean());
          other_ = null;
        }
        return otherBuilder_;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFieldsProto3(unknownFields);
      }

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


      // @@protoc_insertion_point(builder_scope:tendermint.p2p.DefaultNodeInfo)
    }

    // @@protoc_insertion_point(class_scope:tendermint.p2p.DefaultNodeInfo)
    private static final tendermint.p2p.Types.DefaultNodeInfo DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new tendermint.p2p.Types.DefaultNodeInfo();
    }

    public static tendermint.p2p.Types.DefaultNodeInfo getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public tendermint.p2p.Types.DefaultNodeInfo getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface DefaultNodeInfoOtherOrBuilder extends
      // @@protoc_insertion_point(interface_extends:tendermint.p2p.DefaultNodeInfoOther)
      com.google.protobuf.MessageOrBuilder {

    /**
     * string tx_index = 1;
     */
    java.lang.String getTxIndex();
    /**
     * string tx_index = 1;
     */
    com.google.protobuf.ByteString
        getTxIndexBytes();

    /**
     * string rpc_address = 2 [(.gogoproto.customname) = "RPCAddress"];
     */
    java.lang.String getRpcAddress();
    /**
     * string rpc_address = 2 [(.gogoproto.customname) = "RPCAddress"];
     */
    com.google.protobuf.ByteString
        getRpcAddressBytes();
  }
  /**
   * Protobuf type {@code tendermint.p2p.DefaultNodeInfoOther}
   */
  public  static final class DefaultNodeInfoOther extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:tendermint.p2p.DefaultNodeInfoOther)
      DefaultNodeInfoOtherOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use DefaultNodeInfoOther.newBuilder() to construct.
    private DefaultNodeInfoOther(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private DefaultNodeInfoOther() {
      txIndex_ = "";
      rpcAddress_ = "";
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private DefaultNodeInfoOther(
        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: {
              java.lang.String s = input.readStringRequireUtf8();

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

              rpcAddress_ = s;
              break;
            }
            default: {
              if (!parseUnknownFieldProto3(
                  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 {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return tendermint.p2p.Types.internal_static_tendermint_p2p_DefaultNodeInfoOther_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return tendermint.p2p.Types.internal_static_tendermint_p2p_DefaultNodeInfoOther_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              tendermint.p2p.Types.DefaultNodeInfoOther.class, tendermint.p2p.Types.DefaultNodeInfoOther.Builder.class);
    }

    public static final int TX_INDEX_FIELD_NUMBER = 1;
    private volatile java.lang.Object txIndex_;
    /**
     * string tx_index = 1;
     */
    public java.lang.String getTxIndex() {
      java.lang.Object ref = txIndex_;
      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();
        txIndex_ = s;
        return s;
      }
    }
    /**
     * string tx_index = 1;
     */
    public com.google.protobuf.ByteString
        getTxIndexBytes() {
      java.lang.Object ref = txIndex_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        txIndex_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int RPC_ADDRESS_FIELD_NUMBER = 2;
    private volatile java.lang.Object rpcAddress_;
    /**
     * string rpc_address = 2 [(.gogoproto.customname) = "RPCAddress"];
     */
    public java.lang.String getRpcAddress() {
      java.lang.Object ref = rpcAddress_;
      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();
        rpcAddress_ = s;
        return s;
      }
    }
    /**
     * string rpc_address = 2 [(.gogoproto.customname) = "RPCAddress"];
     */
    public com.google.protobuf.ByteString
        getRpcAddressBytes() {
      java.lang.Object ref = rpcAddress_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        rpcAddress_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    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 {
      if (!getTxIndexBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, txIndex_);
      }
      if (!getRpcAddressBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, rpcAddress_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (!getTxIndexBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, txIndex_);
      }
      if (!getRpcAddressBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, rpcAddress_);
      }
      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 tendermint.p2p.Types.DefaultNodeInfoOther)) {
        return super.equals(obj);
      }
      tendermint.p2p.Types.DefaultNodeInfoOther other = (tendermint.p2p.Types.DefaultNodeInfoOther) obj;

      boolean result = true;
      result = result && getTxIndex()
          .equals(other.getTxIndex());
      result = result && getRpcAddress()
          .equals(other.getRpcAddress());
      result = result && unknownFields.equals(other.unknownFields);
      return result;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + TX_INDEX_FIELD_NUMBER;
      hash = (53 * hash) + getTxIndex().hashCode();
      hash = (37 * hash) + RPC_ADDRESS_FIELD_NUMBER;
      hash = (53 * hash) + getRpcAddress().hashCode();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return tendermint.p2p.Types.internal_static_tendermint_p2p_DefaultNodeInfoOther_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                tendermint.p2p.Types.DefaultNodeInfoOther.class, tendermint.p2p.Types.DefaultNodeInfoOther.Builder.class);
      }

      // Construct using tendermint.p2p.Types.DefaultNodeInfoOther.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        txIndex_ = "";

        rpcAddress_ = "";

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return tendermint.p2p.Types.internal_static_tendermint_p2p_DefaultNodeInfoOther_descriptor;
      }

      @java.lang.Override
      public tendermint.p2p.Types.DefaultNodeInfoOther getDefaultInstanceForType() {
        return tendermint.p2p.Types.DefaultNodeInfoOther.getDefaultInstance();
      }

      @java.lang.Override
      public tendermint.p2p.Types.DefaultNodeInfoOther build() {
        tendermint.p2p.Types.DefaultNodeInfoOther result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public tendermint.p2p.Types.DefaultNodeInfoOther buildPartial() {
        tendermint.p2p.Types.DefaultNodeInfoOther result = new tendermint.p2p.Types.DefaultNodeInfoOther(this);
        result.txIndex_ = txIndex_;
        result.rpcAddress_ = rpcAddress_;
        onBuilt();
        return result;
      }

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

      public Builder mergeFrom(tendermint.p2p.Types.DefaultNodeInfoOther other) {
        if (other == tendermint.p2p.Types.DefaultNodeInfoOther.getDefaultInstance()) return this;
        if (!other.getTxIndex().isEmpty()) {
          txIndex_ = other.txIndex_;
          onChanged();
        }
        if (!other.getRpcAddress().isEmpty()) {
          rpcAddress_ = other.rpcAddress_;
          onChanged();
        }
        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 {
        tendermint.p2p.Types.DefaultNodeInfoOther parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (tendermint.p2p.Types.DefaultNodeInfoOther) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private java.lang.Object txIndex_ = "";
      /**
       * string tx_index = 1;
       */
      public java.lang.String getTxIndex() {
        java.lang.Object ref = txIndex_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          txIndex_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * string tx_index = 1;
       */
      public com.google.protobuf.ByteString
          getTxIndexBytes() {
        java.lang.Object ref = txIndex_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          txIndex_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * string tx_index = 1;
       */
      public Builder setTxIndex(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        txIndex_ = value;
        onChanged();
        return this;
      }
      /**
       * string tx_index = 1;
       */
      public Builder clearTxIndex() {
        
        txIndex_ = getDefaultInstance().getTxIndex();
        onChanged();
        return this;
      }
      /**
       * string tx_index = 1;
       */
      public Builder setTxIndexBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        txIndex_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object rpcAddress_ = "";
      /**
       * string rpc_address = 2 [(.gogoproto.customname) = "RPCAddress"];
       */
      public java.lang.String getRpcAddress() {
        java.lang.Object ref = rpcAddress_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          rpcAddress_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * string rpc_address = 2 [(.gogoproto.customname) = "RPCAddress"];
       */
      public com.google.protobuf.ByteString
          getRpcAddressBytes() {
        java.lang.Object ref = rpcAddress_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          rpcAddress_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * string rpc_address = 2 [(.gogoproto.customname) = "RPCAddress"];
       */
      public Builder setRpcAddress(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        rpcAddress_ = value;
        onChanged();
        return this;
      }
      /**
       * string rpc_address = 2 [(.gogoproto.customname) = "RPCAddress"];
       */
      public Builder clearRpcAddress() {
        
        rpcAddress_ = getDefaultInstance().getRpcAddress();
        onChanged();
        return this;
      }
      /**
       * string rpc_address = 2 [(.gogoproto.customname) = "RPCAddress"];
       */
      public Builder setRpcAddressBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        rpcAddress_ = value;
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFieldsProto3(unknownFields);
      }

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


      // @@protoc_insertion_point(builder_scope:tendermint.p2p.DefaultNodeInfoOther)
    }

    // @@protoc_insertion_point(class_scope:tendermint.p2p.DefaultNodeInfoOther)
    private static final tendermint.p2p.Types.DefaultNodeInfoOther DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new tendermint.p2p.Types.DefaultNodeInfoOther();
    }

    public static tendermint.p2p.Types.DefaultNodeInfoOther getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public tendermint.p2p.Types.DefaultNodeInfoOther getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_tendermint_p2p_NetAddress_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_tendermint_p2p_NetAddress_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_tendermint_p2p_ProtocolVersion_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_tendermint_p2p_ProtocolVersion_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_tendermint_p2p_DefaultNodeInfo_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_tendermint_p2p_DefaultNodeInfo_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_tendermint_p2p_DefaultNodeInfoOther_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_tendermint_p2p_DefaultNodeInfoOther_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n\032tendermint/p2p/types.proto\022\016tendermint" +
      ".p2p\032\024gogoproto/gogo.proto\"B\n\nNetAddress" +
      "\022\022\n\002id\030\001 \001(\tB\006\342\336\037\002ID\022\022\n\002ip\030\002 \001(\tB\006\342\336\037\002IP" +
      "\022\014\n\004port\030\003 \001(\r\"C\n\017ProtocolVersion\022\024\n\003p2p" +
      "\030\001 \001(\004B\007\342\336\037\003P2P\022\r\n\005block\030\002 \001(\004\022\013\n\003app\030\003 " +
      "\001(\004\"\223\002\n\017DefaultNodeInfo\022?\n\020protocol_vers" +
      "ion\030\001 \001(\0132\037.tendermint.p2p.ProtocolVersi" +
      "onB\004\310\336\037\000\022*\n\017default_node_id\030\002 \001(\tB\021\342\336\037\rD" +
      "efaultNodeID\022\023\n\013listen_addr\030\003 \001(\t\022\017\n\007net" +
      "work\030\004 \001(\t\022\017\n\007version\030\005 \001(\t\022\020\n\010channels\030" +
      "\006 \001(\014\022\017\n\007moniker\030\007 \001(\t\0229\n\005other\030\010 \001(\0132$." +
      "tendermint.p2p.DefaultNodeInfoOtherB\004\310\336\037" +
      "\000\"M\n\024DefaultNodeInfoOther\022\020\n\010tx_index\030\001 " +
      "\001(\t\022#\n\013rpc_address\030\002 \001(\tB\016\342\336\037\nRPCAddress" +
      "B7Z5github.com/tendermint/tendermint/pro" +
      "to/tendermint/p2pb\006proto3"
    };
    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
        new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
          public com.google.protobuf.ExtensionRegistry assignDescriptors(
              com.google.protobuf.Descriptors.FileDescriptor root) {
            descriptor = root;
            return null;
          }
        };
    com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          com.google.protobuf.GoGoProtos.getDescriptor(),
        }, assigner);
    internal_static_tendermint_p2p_NetAddress_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_tendermint_p2p_NetAddress_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_tendermint_p2p_NetAddress_descriptor,
        new java.lang.String[] { "Id", "Ip", "Port", });
    internal_static_tendermint_p2p_ProtocolVersion_descriptor =
      getDescriptor().getMessageTypes().get(1);
    internal_static_tendermint_p2p_ProtocolVersion_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_tendermint_p2p_ProtocolVersion_descriptor,
        new java.lang.String[] { "P2P", "Block", "App", });
    internal_static_tendermint_p2p_DefaultNodeInfo_descriptor =
      getDescriptor().getMessageTypes().get(2);
    internal_static_tendermint_p2p_DefaultNodeInfo_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_tendermint_p2p_DefaultNodeInfo_descriptor,
        new java.lang.String[] { "ProtocolVersion", "DefaultNodeId", "ListenAddr", "Network", "Version", "Channels", "Moniker", "Other", });
    internal_static_tendermint_p2p_DefaultNodeInfoOther_descriptor =
      getDescriptor().getMessageTypes().get(3);
    internal_static_tendermint_p2p_DefaultNodeInfoOther_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_tendermint_p2p_DefaultNodeInfoOther_descriptor,
        new java.lang.String[] { "TxIndex", "RpcAddress", });
    com.google.protobuf.ExtensionRegistry registry =
        com.google.protobuf.ExtensionRegistry.newInstance();
    registry.add(com.google.protobuf.GoGoProtos.customname);
    registry.add(com.google.protobuf.GoGoProtos.nullable);
    com.google.protobuf.Descriptors.FileDescriptor
        .internalUpdateFileDescriptor(descriptor, registry);
    com.google.protobuf.GoGoProtos.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy