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

types.Pmap Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: pmap.proto

package types;

public final class Pmap {
  private Pmap() {}
  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 MapQueryOrBuilder extends
      // @@protoc_insertion_point(interface_extends:types.MapQuery)
      com.google.protobuf.MessageOrBuilder {

    /**
     * .types.Status status = 1;
     * @return Whether the status field is set.
     */
    boolean hasStatus();
    /**
     * .types.Status status = 1;
     * @return The status.
     */
    types.P2P.Status getStatus();
    /**
     * .types.Status status = 1;
     */
    types.P2P.StatusOrBuilder getStatusOrBuilder();

    /**
     * bool addMe = 2;
     * @return The addMe.
     */
    boolean getAddMe();

    /**
     * int32 size = 3;
     * @return The size.
     */
    int getSize();

    /**
     * repeated bytes excludes = 4;
     * @return A list containing the excludes.
     */
    java.util.List getExcludesList();
    /**
     * repeated bytes excludes = 4;
     * @return The count of excludes.
     */
    int getExcludesCount();
    /**
     * repeated bytes excludes = 4;
     * @param index The index of the element to return.
     * @return The excludes at the given index.
     */
    com.google.protobuf.ByteString getExcludes(int index);
  }
  /**
   * 
   * query to polaris
   * 
* * Protobuf type {@code types.MapQuery} */ public static final class MapQuery extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:types.MapQuery) MapQueryOrBuilder { private static final long serialVersionUID = 0L; // Use MapQuery.newBuilder() to construct. private MapQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MapQuery() { excludes_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MapQuery(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MapQuery( 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: { types.P2P.Status.Builder subBuilder = null; if (status_ != null) { subBuilder = status_.toBuilder(); } status_ = input.readMessage(types.P2P.Status.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(status_); status_ = subBuilder.buildPartial(); } break; } case 16: { addMe_ = input.readBool(); break; } case 24: { size_ = input.readInt32(); break; } case 34: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { excludes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } excludes_.add(input.readBytes()); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { excludes_ = java.util.Collections.unmodifiableList(excludes_); // C } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Pmap.internal_static_types_MapQuery_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Pmap.internal_static_types_MapQuery_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Pmap.MapQuery.class, types.Pmap.MapQuery.Builder.class); } public static final int STATUS_FIELD_NUMBER = 1; private types.P2P.Status status_; /** * .types.Status status = 1; * @return Whether the status field is set. */ @java.lang.Override public boolean hasStatus() { return status_ != null; } /** * .types.Status status = 1; * @return The status. */ @java.lang.Override public types.P2P.Status getStatus() { return status_ == null ? types.P2P.Status.getDefaultInstance() : status_; } /** * .types.Status status = 1; */ @java.lang.Override public types.P2P.StatusOrBuilder getStatusOrBuilder() { return getStatus(); } public static final int ADDME_FIELD_NUMBER = 2; private boolean addMe_; /** * bool addMe = 2; * @return The addMe. */ @java.lang.Override public boolean getAddMe() { return addMe_; } public static final int SIZE_FIELD_NUMBER = 3; private int size_; /** * int32 size = 3; * @return The size. */ @java.lang.Override public int getSize() { return size_; } public static final int EXCLUDES_FIELD_NUMBER = 4; private java.util.List excludes_; /** * repeated bytes excludes = 4; * @return A list containing the excludes. */ @java.lang.Override public java.util.List getExcludesList() { return excludes_; } /** * repeated bytes excludes = 4; * @return The count of excludes. */ public int getExcludesCount() { return excludes_.size(); } /** * repeated bytes excludes = 4; * @param index The index of the element to return. * @return The excludes at the given index. */ public com.google.protobuf.ByteString getExcludes(int index) { return excludes_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (status_ != null) { output.writeMessage(1, getStatus()); } if (addMe_ != false) { output.writeBool(2, addMe_); } if (size_ != 0) { output.writeInt32(3, size_); } for (int i = 0; i < excludes_.size(); i++) { output.writeBytes(4, excludes_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (status_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getStatus()); } if (addMe_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, addMe_); } if (size_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, size_); } { int dataSize = 0; for (int i = 0; i < excludes_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(excludes_.get(i)); } size += dataSize; size += 1 * getExcludesList().size(); } 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 types.Pmap.MapQuery)) { return super.equals(obj); } types.Pmap.MapQuery other = (types.Pmap.MapQuery) obj; if (hasStatus() != other.hasStatus()) return false; if (hasStatus()) { if (!getStatus() .equals(other.getStatus())) return false; } if (getAddMe() != other.getAddMe()) return false; if (getSize() != other.getSize()) return false; if (!getExcludesList() .equals(other.getExcludesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasStatus()) { hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + getStatus().hashCode(); } hash = (37 * hash) + ADDME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getAddMe()); hash = (37 * hash) + SIZE_FIELD_NUMBER; hash = (53 * hash) + getSize(); if (getExcludesCount() > 0) { hash = (37 * hash) + EXCLUDES_FIELD_NUMBER; hash = (53 * hash) + getExcludesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static types.Pmap.MapQuery parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Pmap.MapQuery parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Pmap.MapQuery parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Pmap.MapQuery parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Pmap.MapQuery parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Pmap.MapQuery parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Pmap.MapQuery parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Pmap.MapQuery 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 types.Pmap.MapQuery parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static types.Pmap.MapQuery 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 types.Pmap.MapQuery parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Pmap.MapQuery 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(types.Pmap.MapQuery 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; } /** *
     * query to polaris
     * 
* * Protobuf type {@code types.MapQuery} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:types.MapQuery) types.Pmap.MapQueryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Pmap.internal_static_types_MapQuery_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Pmap.internal_static_types_MapQuery_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Pmap.MapQuery.class, types.Pmap.MapQuery.Builder.class); } // Construct using types.Pmap.MapQuery.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 (statusBuilder_ == null) { status_ = null; } else { status_ = null; statusBuilder_ = null; } addMe_ = false; size_ = 0; excludes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return types.Pmap.internal_static_types_MapQuery_descriptor; } @java.lang.Override public types.Pmap.MapQuery getDefaultInstanceForType() { return types.Pmap.MapQuery.getDefaultInstance(); } @java.lang.Override public types.Pmap.MapQuery build() { types.Pmap.MapQuery result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public types.Pmap.MapQuery buildPartial() { types.Pmap.MapQuery result = new types.Pmap.MapQuery(this); int from_bitField0_ = bitField0_; if (statusBuilder_ == null) { result.status_ = status_; } else { result.status_ = statusBuilder_.build(); } result.addMe_ = addMe_; result.size_ = size_; if (((bitField0_ & 0x00000001) != 0)) { excludes_ = java.util.Collections.unmodifiableList(excludes_); bitField0_ = (bitField0_ & ~0x00000001); } result.excludes_ = excludes_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof types.Pmap.MapQuery) { return mergeFrom((types.Pmap.MapQuery)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(types.Pmap.MapQuery other) { if (other == types.Pmap.MapQuery.getDefaultInstance()) return this; if (other.hasStatus()) { mergeStatus(other.getStatus()); } if (other.getAddMe() != false) { setAddMe(other.getAddMe()); } if (other.getSize() != 0) { setSize(other.getSize()); } if (!other.excludes_.isEmpty()) { if (excludes_.isEmpty()) { excludes_ = other.excludes_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureExcludesIsMutable(); excludes_.addAll(other.excludes_); } 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 { types.Pmap.MapQuery parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (types.Pmap.MapQuery) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private types.P2P.Status status_; private com.google.protobuf.SingleFieldBuilderV3< types.P2P.Status, types.P2P.Status.Builder, types.P2P.StatusOrBuilder> statusBuilder_; /** * .types.Status status = 1; * @return Whether the status field is set. */ public boolean hasStatus() { return statusBuilder_ != null || status_ != null; } /** * .types.Status status = 1; * @return The status. */ public types.P2P.Status getStatus() { if (statusBuilder_ == null) { return status_ == null ? types.P2P.Status.getDefaultInstance() : status_; } else { return statusBuilder_.getMessage(); } } /** * .types.Status status = 1; */ public Builder setStatus(types.P2P.Status value) { if (statusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } status_ = value; onChanged(); } else { statusBuilder_.setMessage(value); } return this; } /** * .types.Status status = 1; */ public Builder setStatus( types.P2P.Status.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); onChanged(); } else { statusBuilder_.setMessage(builderForValue.build()); } return this; } /** * .types.Status status = 1; */ public Builder mergeStatus(types.P2P.Status value) { if (statusBuilder_ == null) { if (status_ != null) { status_ = types.P2P.Status.newBuilder(status_).mergeFrom(value).buildPartial(); } else { status_ = value; } onChanged(); } else { statusBuilder_.mergeFrom(value); } return this; } /** * .types.Status status = 1; */ public Builder clearStatus() { if (statusBuilder_ == null) { status_ = null; onChanged(); } else { status_ = null; statusBuilder_ = null; } return this; } /** * .types.Status status = 1; */ public types.P2P.Status.Builder getStatusBuilder() { onChanged(); return getStatusFieldBuilder().getBuilder(); } /** * .types.Status status = 1; */ public types.P2P.StatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { return status_ == null ? types.P2P.Status.getDefaultInstance() : status_; } } /** * .types.Status status = 1; */ private com.google.protobuf.SingleFieldBuilderV3< types.P2P.Status, types.P2P.Status.Builder, types.P2P.StatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< types.P2P.Status, types.P2P.Status.Builder, types.P2P.StatusOrBuilder>( getStatus(), getParentForChildren(), isClean()); status_ = null; } return statusBuilder_; } private boolean addMe_ ; /** * bool addMe = 2; * @return The addMe. */ @java.lang.Override public boolean getAddMe() { return addMe_; } /** * bool addMe = 2; * @param value The addMe to set. * @return This builder for chaining. */ public Builder setAddMe(boolean value) { addMe_ = value; onChanged(); return this; } /** * bool addMe = 2; * @return This builder for chaining. */ public Builder clearAddMe() { addMe_ = false; onChanged(); return this; } private int size_ ; /** * int32 size = 3; * @return The size. */ @java.lang.Override public int getSize() { return size_; } /** * int32 size = 3; * @param value The size to set. * @return This builder for chaining. */ public Builder setSize(int value) { size_ = value; onChanged(); return this; } /** * int32 size = 3; * @return This builder for chaining. */ public Builder clearSize() { size_ = 0; onChanged(); return this; } private java.util.List excludes_ = java.util.Collections.emptyList(); private void ensureExcludesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { excludes_ = new java.util.ArrayList(excludes_); bitField0_ |= 0x00000001; } } /** * repeated bytes excludes = 4; * @return A list containing the excludes. */ public java.util.List getExcludesList() { return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(excludes_) : excludes_; } /** * repeated bytes excludes = 4; * @return The count of excludes. */ public int getExcludesCount() { return excludes_.size(); } /** * repeated bytes excludes = 4; * @param index The index of the element to return. * @return The excludes at the given index. */ public com.google.protobuf.ByteString getExcludes(int index) { return excludes_.get(index); } /** * repeated bytes excludes = 4; * @param index The index to set the value at. * @param value The excludes to set. * @return This builder for chaining. */ public Builder setExcludes( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureExcludesIsMutable(); excludes_.set(index, value); onChanged(); return this; } /** * repeated bytes excludes = 4; * @param value The excludes to add. * @return This builder for chaining. */ public Builder addExcludes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureExcludesIsMutable(); excludes_.add(value); onChanged(); return this; } /** * repeated bytes excludes = 4; * @param values The excludes to add. * @return This builder for chaining. */ public Builder addAllExcludes( java.lang.Iterable values) { ensureExcludesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, excludes_); onChanged(); return this; } /** * repeated bytes excludes = 4; * @return This builder for chaining. */ public Builder clearExcludes() { excludes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:types.MapQuery) } // @@protoc_insertion_point(class_scope:types.MapQuery) private static final types.Pmap.MapQuery DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new types.Pmap.MapQuery(); } public static types.Pmap.MapQuery getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MapQuery parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MapQuery(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 types.Pmap.MapQuery getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MapResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:types.MapResponse) com.google.protobuf.MessageOrBuilder { /** * .types.ResultStatus status = 1; * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** * .types.ResultStatus status = 1; * @return The status. */ types.P2P.ResultStatus getStatus(); /** * repeated .types.PeerAddress addresses = 2; */ java.util.List getAddressesList(); /** * repeated .types.PeerAddress addresses = 2; */ types.Node.PeerAddress getAddresses(int index); /** * repeated .types.PeerAddress addresses = 2; */ int getAddressesCount(); /** * repeated .types.PeerAddress addresses = 2; */ java.util.List getAddressesOrBuilderList(); /** * repeated .types.PeerAddress addresses = 2; */ types.Node.PeerAddressOrBuilder getAddressesOrBuilder( int index); /** * string message = 3; * @return The message. */ java.lang.String getMessage(); /** * string message = 3; * @return The bytes for message. */ com.google.protobuf.ByteString getMessageBytes(); } /** * Protobuf type {@code types.MapResponse} */ public static final class MapResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:types.MapResponse) MapResponseOrBuilder { private static final long serialVersionUID = 0L; // Use MapResponse.newBuilder() to construct. private MapResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MapResponse() { status_ = 0; addresses_ = java.util.Collections.emptyList(); message_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MapResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MapResponse( 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: { int rawValue = input.readEnum(); status_ = rawValue; break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { addresses_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } addresses_.add( input.readMessage(types.Node.PeerAddress.parser(), extensionRegistry)); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); message_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { addresses_ = java.util.Collections.unmodifiableList(addresses_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Pmap.internal_static_types_MapResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Pmap.internal_static_types_MapResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Pmap.MapResponse.class, types.Pmap.MapResponse.Builder.class); } public static final int STATUS_FIELD_NUMBER = 1; private int status_; /** * .types.ResultStatus status = 1; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** * .types.ResultStatus status = 1; * @return The status. */ @java.lang.Override public types.P2P.ResultStatus getStatus() { @SuppressWarnings("deprecation") types.P2P.ResultStatus result = types.P2P.ResultStatus.valueOf(status_); return result == null ? types.P2P.ResultStatus.UNRECOGNIZED : result; } public static final int ADDRESSES_FIELD_NUMBER = 2; private java.util.List addresses_; /** * repeated .types.PeerAddress addresses = 2; */ @java.lang.Override public java.util.List getAddressesList() { return addresses_; } /** * repeated .types.PeerAddress addresses = 2; */ @java.lang.Override public java.util.List getAddressesOrBuilderList() { return addresses_; } /** * repeated .types.PeerAddress addresses = 2; */ @java.lang.Override public int getAddressesCount() { return addresses_.size(); } /** * repeated .types.PeerAddress addresses = 2; */ @java.lang.Override public types.Node.PeerAddress getAddresses(int index) { return addresses_.get(index); } /** * repeated .types.PeerAddress addresses = 2; */ @java.lang.Override public types.Node.PeerAddressOrBuilder getAddressesOrBuilder( int index) { return addresses_.get(index); } public static final int MESSAGE_FIELD_NUMBER = 3; private volatile java.lang.Object message_; /** * string message = 3; * @return The message. */ @java.lang.Override public java.lang.String getMessage() { java.lang.Object ref = message_; 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(); message_ = s; return s; } } /** * string message = 3; * @return The bytes for message. */ @java.lang.Override public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); message_ = 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 (status_ != types.P2P.ResultStatus.OK.getNumber()) { output.writeEnum(1, status_); } for (int i = 0; i < addresses_.size(); i++) { output.writeMessage(2, addresses_.get(i)); } if (!getMessageBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, message_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (status_ != types.P2P.ResultStatus.OK.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, status_); } for (int i = 0; i < addresses_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, addresses_.get(i)); } if (!getMessageBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, message_); } 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 types.Pmap.MapResponse)) { return super.equals(obj); } types.Pmap.MapResponse other = (types.Pmap.MapResponse) obj; if (status_ != other.status_) return false; if (!getAddressesList() .equals(other.getAddressesList())) return false; if (!getMessage() .equals(other.getMessage())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; if (getAddressesCount() > 0) { hash = (37 * hash) + ADDRESSES_FIELD_NUMBER; hash = (53 * hash) + getAddressesList().hashCode(); } hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static types.Pmap.MapResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Pmap.MapResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Pmap.MapResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Pmap.MapResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Pmap.MapResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Pmap.MapResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Pmap.MapResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Pmap.MapResponse 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 types.Pmap.MapResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static types.Pmap.MapResponse 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 types.Pmap.MapResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Pmap.MapResponse 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(types.Pmap.MapResponse 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 types.MapResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:types.MapResponse) types.Pmap.MapResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Pmap.internal_static_types_MapResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Pmap.internal_static_types_MapResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Pmap.MapResponse.class, types.Pmap.MapResponse.Builder.class); } // Construct using types.Pmap.MapResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getAddressesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); status_ = 0; if (addressesBuilder_ == null) { addresses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { addressesBuilder_.clear(); } message_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return types.Pmap.internal_static_types_MapResponse_descriptor; } @java.lang.Override public types.Pmap.MapResponse getDefaultInstanceForType() { return types.Pmap.MapResponse.getDefaultInstance(); } @java.lang.Override public types.Pmap.MapResponse build() { types.Pmap.MapResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public types.Pmap.MapResponse buildPartial() { types.Pmap.MapResponse result = new types.Pmap.MapResponse(this); int from_bitField0_ = bitField0_; result.status_ = status_; if (addressesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { addresses_ = java.util.Collections.unmodifiableList(addresses_); bitField0_ = (bitField0_ & ~0x00000001); } result.addresses_ = addresses_; } else { result.addresses_ = addressesBuilder_.build(); } result.message_ = message_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof types.Pmap.MapResponse) { return mergeFrom((types.Pmap.MapResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(types.Pmap.MapResponse other) { if (other == types.Pmap.MapResponse.getDefaultInstance()) return this; if (other.status_ != 0) { setStatusValue(other.getStatusValue()); } if (addressesBuilder_ == null) { if (!other.addresses_.isEmpty()) { if (addresses_.isEmpty()) { addresses_ = other.addresses_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureAddressesIsMutable(); addresses_.addAll(other.addresses_); } onChanged(); } } else { if (!other.addresses_.isEmpty()) { if (addressesBuilder_.isEmpty()) { addressesBuilder_.dispose(); addressesBuilder_ = null; addresses_ = other.addresses_; bitField0_ = (bitField0_ & ~0x00000001); addressesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAddressesFieldBuilder() : null; } else { addressesBuilder_.addAllMessages(other.addresses_); } } } if (!other.getMessage().isEmpty()) { message_ = other.message_; 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 { types.Pmap.MapResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (types.Pmap.MapResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int status_ = 0; /** * .types.ResultStatus status = 1; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** * .types.ResultStatus status = 1; * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. */ public Builder setStatusValue(int value) { status_ = value; onChanged(); return this; } /** * .types.ResultStatus status = 1; * @return The status. */ @java.lang.Override public types.P2P.ResultStatus getStatus() { @SuppressWarnings("deprecation") types.P2P.ResultStatus result = types.P2P.ResultStatus.valueOf(status_); return result == null ? types.P2P.ResultStatus.UNRECOGNIZED : result; } /** * .types.ResultStatus status = 1; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus(types.P2P.ResultStatus value) { if (value == null) { throw new NullPointerException(); } status_ = value.getNumber(); onChanged(); return this; } /** * .types.ResultStatus status = 1; * @return This builder for chaining. */ public Builder clearStatus() { status_ = 0; onChanged(); return this; } private java.util.List addresses_ = java.util.Collections.emptyList(); private void ensureAddressesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { addresses_ = new java.util.ArrayList(addresses_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< types.Node.PeerAddress, types.Node.PeerAddress.Builder, types.Node.PeerAddressOrBuilder> addressesBuilder_; /** * repeated .types.PeerAddress addresses = 2; */ public java.util.List getAddressesList() { if (addressesBuilder_ == null) { return java.util.Collections.unmodifiableList(addresses_); } else { return addressesBuilder_.getMessageList(); } } /** * repeated .types.PeerAddress addresses = 2; */ public int getAddressesCount() { if (addressesBuilder_ == null) { return addresses_.size(); } else { return addressesBuilder_.getCount(); } } /** * repeated .types.PeerAddress addresses = 2; */ public types.Node.PeerAddress getAddresses(int index) { if (addressesBuilder_ == null) { return addresses_.get(index); } else { return addressesBuilder_.getMessage(index); } } /** * repeated .types.PeerAddress addresses = 2; */ public Builder setAddresses( int index, types.Node.PeerAddress value) { if (addressesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAddressesIsMutable(); addresses_.set(index, value); onChanged(); } else { addressesBuilder_.setMessage(index, value); } return this; } /** * repeated .types.PeerAddress addresses = 2; */ public Builder setAddresses( int index, types.Node.PeerAddress.Builder builderForValue) { if (addressesBuilder_ == null) { ensureAddressesIsMutable(); addresses_.set(index, builderForValue.build()); onChanged(); } else { addressesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .types.PeerAddress addresses = 2; */ public Builder addAddresses(types.Node.PeerAddress value) { if (addressesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAddressesIsMutable(); addresses_.add(value); onChanged(); } else { addressesBuilder_.addMessage(value); } return this; } /** * repeated .types.PeerAddress addresses = 2; */ public Builder addAddresses( int index, types.Node.PeerAddress value) { if (addressesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAddressesIsMutable(); addresses_.add(index, value); onChanged(); } else { addressesBuilder_.addMessage(index, value); } return this; } /** * repeated .types.PeerAddress addresses = 2; */ public Builder addAddresses( types.Node.PeerAddress.Builder builderForValue) { if (addressesBuilder_ == null) { ensureAddressesIsMutable(); addresses_.add(builderForValue.build()); onChanged(); } else { addressesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .types.PeerAddress addresses = 2; */ public Builder addAddresses( int index, types.Node.PeerAddress.Builder builderForValue) { if (addressesBuilder_ == null) { ensureAddressesIsMutable(); addresses_.add(index, builderForValue.build()); onChanged(); } else { addressesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .types.PeerAddress addresses = 2; */ public Builder addAllAddresses( java.lang.Iterable values) { if (addressesBuilder_ == null) { ensureAddressesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, addresses_); onChanged(); } else { addressesBuilder_.addAllMessages(values); } return this; } /** * repeated .types.PeerAddress addresses = 2; */ public Builder clearAddresses() { if (addressesBuilder_ == null) { addresses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { addressesBuilder_.clear(); } return this; } /** * repeated .types.PeerAddress addresses = 2; */ public Builder removeAddresses(int index) { if (addressesBuilder_ == null) { ensureAddressesIsMutable(); addresses_.remove(index); onChanged(); } else { addressesBuilder_.remove(index); } return this; } /** * repeated .types.PeerAddress addresses = 2; */ public types.Node.PeerAddress.Builder getAddressesBuilder( int index) { return getAddressesFieldBuilder().getBuilder(index); } /** * repeated .types.PeerAddress addresses = 2; */ public types.Node.PeerAddressOrBuilder getAddressesOrBuilder( int index) { if (addressesBuilder_ == null) { return addresses_.get(index); } else { return addressesBuilder_.getMessageOrBuilder(index); } } /** * repeated .types.PeerAddress addresses = 2; */ public java.util.List getAddressesOrBuilderList() { if (addressesBuilder_ != null) { return addressesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(addresses_); } } /** * repeated .types.PeerAddress addresses = 2; */ public types.Node.PeerAddress.Builder addAddressesBuilder() { return getAddressesFieldBuilder().addBuilder( types.Node.PeerAddress.getDefaultInstance()); } /** * repeated .types.PeerAddress addresses = 2; */ public types.Node.PeerAddress.Builder addAddressesBuilder( int index) { return getAddressesFieldBuilder().addBuilder( index, types.Node.PeerAddress.getDefaultInstance()); } /** * repeated .types.PeerAddress addresses = 2; */ public java.util.List getAddressesBuilderList() { return getAddressesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< types.Node.PeerAddress, types.Node.PeerAddress.Builder, types.Node.PeerAddressOrBuilder> getAddressesFieldBuilder() { if (addressesBuilder_ == null) { addressesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< types.Node.PeerAddress, types.Node.PeerAddress.Builder, types.Node.PeerAddressOrBuilder>( addresses_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); addresses_ = null; } return addressesBuilder_; } private java.lang.Object message_ = ""; /** * string message = 3; * @return The message. */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } else { return (java.lang.String) ref; } } /** * string message = 3; * @return The bytes for message. */ public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string message = 3; * @param value The message to set. * @return This builder for chaining. */ public Builder setMessage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } message_ = value; onChanged(); return this; } /** * string message = 3; * @return This builder for chaining. */ public Builder clearMessage() { message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** * string message = 3; * @param value The bytes for message to set. * @return This builder for chaining. */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); message_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:types.MapResponse) } // @@protoc_insertion_point(class_scope:types.MapResponse) private static final types.Pmap.MapResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new types.Pmap.MapResponse(); } public static types.Pmap.MapResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MapResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MapResponse(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 types.Pmap.MapResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_MapQuery_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_MapQuery_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_MapResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_MapResponse_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\npmap.proto\022\005types\032\nnode.proto\032\tp2p.pro" + "to\"X\n\010MapQuery\022\035\n\006status\030\001 \001(\0132\r.types.S" + "tatus\022\r\n\005addMe\030\002 \001(\010\022\014\n\004size\030\003 \001(\005\022\020\n\010ex" + "cludes\030\004 \003(\014\"j\n\013MapResponse\022#\n\006status\030\001 " + "\001(\0162\023.types.ResultStatus\022%\n\taddresses\030\002 " + "\003(\0132\022.types.PeerAddress\022\017\n\007message\030\003 \001(\t" + "b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { types.Node.getDescriptor(), types.P2P.getDescriptor(), }); internal_static_types_MapQuery_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_types_MapQuery_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_types_MapQuery_descriptor, new java.lang.String[] { "Status", "AddMe", "Size", "Excludes", }); internal_static_types_MapResponse_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_types_MapResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_types_MapResponse_descriptor, new java.lang.String[] { "Status", "Addresses", "Message", }); types.Node.getDescriptor(); types.P2P.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy