types.Polarrpc Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: polarrpc.proto
package types;
public final class Polarrpc {
private Polarrpc() {}
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 PaginationsOrBuilder extends
// @@protoc_insertion_point(interface_extends:types.Paginations)
com.google.protobuf.MessageOrBuilder {
/**
* bytes ref = 1;
* @return The ref.
*/
com.google.protobuf.ByteString getRef();
/**
* uint32 size = 3;
* @return The size.
*/
int getSize();
}
/**
* Protobuf type {@code types.Paginations}
*/
public static final class Paginations extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:types.Paginations)
PaginationsOrBuilder {
private static final long serialVersionUID = 0L;
// Use Paginations.newBuilder() to construct.
private Paginations(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Paginations() {
ref_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Paginations();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Paginations(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
ref_ = input.readBytes();
break;
}
case 24: {
size_ = input.readUInt32();
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return types.Polarrpc.internal_static_types_Paginations_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return types.Polarrpc.internal_static_types_Paginations_fieldAccessorTable
.ensureFieldAccessorsInitialized(
types.Polarrpc.Paginations.class, types.Polarrpc.Paginations.Builder.class);
}
public static final int REF_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString ref_;
/**
* bytes ref = 1;
* @return The ref.
*/
@java.lang.Override
public com.google.protobuf.ByteString getRef() {
return ref_;
}
public static final int SIZE_FIELD_NUMBER = 3;
private int size_;
/**
* uint32 size = 3;
* @return The size.
*/
@java.lang.Override
public int getSize() {
return size_;
}
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 (!ref_.isEmpty()) {
output.writeBytes(1, ref_);
}
if (size_ != 0) {
output.writeUInt32(3, size_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!ref_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, ref_);
}
if (size_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, 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.Polarrpc.Paginations)) {
return super.equals(obj);
}
types.Polarrpc.Paginations other = (types.Polarrpc.Paginations) obj;
if (!getRef()
.equals(other.getRef())) return false;
if (getSize()
!= other.getSize()) 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) + REF_FIELD_NUMBER;
hash = (53 * hash) + getRef().hashCode();
hash = (37 * hash) + SIZE_FIELD_NUMBER;
hash = (53 * hash) + getSize();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static types.Polarrpc.Paginations parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static types.Polarrpc.Paginations parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static types.Polarrpc.Paginations parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static types.Polarrpc.Paginations parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static types.Polarrpc.Paginations parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static types.Polarrpc.Paginations parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static types.Polarrpc.Paginations parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static types.Polarrpc.Paginations 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.Polarrpc.Paginations parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static types.Polarrpc.Paginations 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.Polarrpc.Paginations parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static types.Polarrpc.Paginations 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.Polarrpc.Paginations 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.Paginations}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:types.Paginations)
types.Polarrpc.PaginationsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return types.Polarrpc.internal_static_types_Paginations_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return types.Polarrpc.internal_static_types_Paginations_fieldAccessorTable
.ensureFieldAccessorsInitialized(
types.Polarrpc.Paginations.class, types.Polarrpc.Paginations.Builder.class);
}
// Construct using types.Polarrpc.Paginations.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();
ref_ = com.google.protobuf.ByteString.EMPTY;
size_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return types.Polarrpc.internal_static_types_Paginations_descriptor;
}
@java.lang.Override
public types.Polarrpc.Paginations getDefaultInstanceForType() {
return types.Polarrpc.Paginations.getDefaultInstance();
}
@java.lang.Override
public types.Polarrpc.Paginations build() {
types.Polarrpc.Paginations result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public types.Polarrpc.Paginations buildPartial() {
types.Polarrpc.Paginations result = new types.Polarrpc.Paginations(this);
result.ref_ = ref_;
result.size_ = size_;
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.Polarrpc.Paginations) {
return mergeFrom((types.Polarrpc.Paginations)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(types.Polarrpc.Paginations other) {
if (other == types.Polarrpc.Paginations.getDefaultInstance()) return this;
if (other.getRef() != com.google.protobuf.ByteString.EMPTY) {
setRef(other.getRef());
}
if (other.getSize() != 0) {
setSize(other.getSize());
}
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.Polarrpc.Paginations parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (types.Polarrpc.Paginations) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString ref_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes ref = 1;
* @return The ref.
*/
@java.lang.Override
public com.google.protobuf.ByteString getRef() {
return ref_;
}
/**
* bytes ref = 1;
* @param value The ref to set.
* @return This builder for chaining.
*/
public Builder setRef(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ref_ = value;
onChanged();
return this;
}
/**
* bytes ref = 1;
* @return This builder for chaining.
*/
public Builder clearRef() {
ref_ = getDefaultInstance().getRef();
onChanged();
return this;
}
private int size_ ;
/**
* uint32 size = 3;
* @return The size.
*/
@java.lang.Override
public int getSize() {
return size_;
}
/**
* uint32 size = 3;
* @param value The size to set.
* @return This builder for chaining.
*/
public Builder setSize(int value) {
size_ = value;
onChanged();
return this;
}
/**
* uint32 size = 3;
* @return This builder for chaining.
*/
public Builder clearSize() {
size_ = 0;
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.Paginations)
}
// @@protoc_insertion_point(class_scope:types.Paginations)
private static final types.Polarrpc.Paginations DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new types.Polarrpc.Paginations();
}
public static types.Polarrpc.Paginations getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Paginations parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Paginations(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.Polarrpc.Paginations getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PolarisPeerListOrBuilder extends
// @@protoc_insertion_point(interface_extends:types.PolarisPeerList)
com.google.protobuf.MessageOrBuilder {
/**
* uint32 total = 1;
* @return The total.
*/
int getTotal();
/**
* bool hasNext = 2;
* @return The hasNext.
*/
boolean getHasNext();
/**
* repeated .types.PolarisPeer peers = 3;
*/
java.util.List
getPeersList();
/**
* repeated .types.PolarisPeer peers = 3;
*/
types.Polarrpc.PolarisPeer getPeers(int index);
/**
* repeated .types.PolarisPeer peers = 3;
*/
int getPeersCount();
/**
* repeated .types.PolarisPeer peers = 3;
*/
java.util.List extends types.Polarrpc.PolarisPeerOrBuilder>
getPeersOrBuilderList();
/**
* repeated .types.PolarisPeer peers = 3;
*/
types.Polarrpc.PolarisPeerOrBuilder getPeersOrBuilder(
int index);
}
/**
* Protobuf type {@code types.PolarisPeerList}
*/
public static final class PolarisPeerList extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:types.PolarisPeerList)
PolarisPeerListOrBuilder {
private static final long serialVersionUID = 0L;
// Use PolarisPeerList.newBuilder() to construct.
private PolarisPeerList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PolarisPeerList() {
peers_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PolarisPeerList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PolarisPeerList(
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: {
total_ = input.readUInt32();
break;
}
case 16: {
hasNext_ = input.readBool();
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
peers_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
peers_.add(
input.readMessage(types.Polarrpc.PolarisPeer.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
peers_ = java.util.Collections.unmodifiableList(peers_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return types.Polarrpc.internal_static_types_PolarisPeerList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return types.Polarrpc.internal_static_types_PolarisPeerList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
types.Polarrpc.PolarisPeerList.class, types.Polarrpc.PolarisPeerList.Builder.class);
}
public static final int TOTAL_FIELD_NUMBER = 1;
private int total_;
/**
* uint32 total = 1;
* @return The total.
*/
@java.lang.Override
public int getTotal() {
return total_;
}
public static final int HASNEXT_FIELD_NUMBER = 2;
private boolean hasNext_;
/**
* bool hasNext = 2;
* @return The hasNext.
*/
@java.lang.Override
public boolean getHasNext() {
return hasNext_;
}
public static final int PEERS_FIELD_NUMBER = 3;
private java.util.List peers_;
/**
* repeated .types.PolarisPeer peers = 3;
*/
@java.lang.Override
public java.util.List getPeersList() {
return peers_;
}
/**
* repeated .types.PolarisPeer peers = 3;
*/
@java.lang.Override
public java.util.List extends types.Polarrpc.PolarisPeerOrBuilder>
getPeersOrBuilderList() {
return peers_;
}
/**
* repeated .types.PolarisPeer peers = 3;
*/
@java.lang.Override
public int getPeersCount() {
return peers_.size();
}
/**
* repeated .types.PolarisPeer peers = 3;
*/
@java.lang.Override
public types.Polarrpc.PolarisPeer getPeers(int index) {
return peers_.get(index);
}
/**
* repeated .types.PolarisPeer peers = 3;
*/
@java.lang.Override
public types.Polarrpc.PolarisPeerOrBuilder getPeersOrBuilder(
int index) {
return peers_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (total_ != 0) {
output.writeUInt32(1, total_);
}
if (hasNext_ != false) {
output.writeBool(2, hasNext_);
}
for (int i = 0; i < peers_.size(); i++) {
output.writeMessage(3, peers_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (total_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, total_);
}
if (hasNext_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, hasNext_);
}
for (int i = 0; i < peers_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, peers_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof types.Polarrpc.PolarisPeerList)) {
return super.equals(obj);
}
types.Polarrpc.PolarisPeerList other = (types.Polarrpc.PolarisPeerList) obj;
if (getTotal()
!= other.getTotal()) return false;
if (getHasNext()
!= other.getHasNext()) return false;
if (!getPeersList()
.equals(other.getPeersList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + TOTAL_FIELD_NUMBER;
hash = (53 * hash) + getTotal();
hash = (37 * hash) + HASNEXT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getHasNext());
if (getPeersCount() > 0) {
hash = (37 * hash) + PEERS_FIELD_NUMBER;
hash = (53 * hash) + getPeersList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static types.Polarrpc.PolarisPeerList parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static types.Polarrpc.PolarisPeerList parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static types.Polarrpc.PolarisPeerList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static types.Polarrpc.PolarisPeerList parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static types.Polarrpc.PolarisPeerList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static types.Polarrpc.PolarisPeerList parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static types.Polarrpc.PolarisPeerList parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static types.Polarrpc.PolarisPeerList 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.Polarrpc.PolarisPeerList parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static types.Polarrpc.PolarisPeerList 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.Polarrpc.PolarisPeerList parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static types.Polarrpc.PolarisPeerList 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.Polarrpc.PolarisPeerList 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.PolarisPeerList}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:types.PolarisPeerList)
types.Polarrpc.PolarisPeerListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return types.Polarrpc.internal_static_types_PolarisPeerList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return types.Polarrpc.internal_static_types_PolarisPeerList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
types.Polarrpc.PolarisPeerList.class, types.Polarrpc.PolarisPeerList.Builder.class);
}
// Construct using types.Polarrpc.PolarisPeerList.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getPeersFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
total_ = 0;
hasNext_ = false;
if (peersBuilder_ == null) {
peers_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
peersBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return types.Polarrpc.internal_static_types_PolarisPeerList_descriptor;
}
@java.lang.Override
public types.Polarrpc.PolarisPeerList getDefaultInstanceForType() {
return types.Polarrpc.PolarisPeerList.getDefaultInstance();
}
@java.lang.Override
public types.Polarrpc.PolarisPeerList build() {
types.Polarrpc.PolarisPeerList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public types.Polarrpc.PolarisPeerList buildPartial() {
types.Polarrpc.PolarisPeerList result = new types.Polarrpc.PolarisPeerList(this);
int from_bitField0_ = bitField0_;
result.total_ = total_;
result.hasNext_ = hasNext_;
if (peersBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
peers_ = java.util.Collections.unmodifiableList(peers_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.peers_ = peers_;
} else {
result.peers_ = peersBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof types.Polarrpc.PolarisPeerList) {
return mergeFrom((types.Polarrpc.PolarisPeerList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(types.Polarrpc.PolarisPeerList other) {
if (other == types.Polarrpc.PolarisPeerList.getDefaultInstance()) return this;
if (other.getTotal() != 0) {
setTotal(other.getTotal());
}
if (other.getHasNext() != false) {
setHasNext(other.getHasNext());
}
if (peersBuilder_ == null) {
if (!other.peers_.isEmpty()) {
if (peers_.isEmpty()) {
peers_ = other.peers_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensurePeersIsMutable();
peers_.addAll(other.peers_);
}
onChanged();
}
} else {
if (!other.peers_.isEmpty()) {
if (peersBuilder_.isEmpty()) {
peersBuilder_.dispose();
peersBuilder_ = null;
peers_ = other.peers_;
bitField0_ = (bitField0_ & ~0x00000001);
peersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getPeersFieldBuilder() : null;
} else {
peersBuilder_.addAllMessages(other.peers_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
types.Polarrpc.PolarisPeerList parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (types.Polarrpc.PolarisPeerList) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int total_ ;
/**
* uint32 total = 1;
* @return The total.
*/
@java.lang.Override
public int getTotal() {
return total_;
}
/**
* uint32 total = 1;
* @param value The total to set.
* @return This builder for chaining.
*/
public Builder setTotal(int value) {
total_ = value;
onChanged();
return this;
}
/**
* uint32 total = 1;
* @return This builder for chaining.
*/
public Builder clearTotal() {
total_ = 0;
onChanged();
return this;
}
private boolean hasNext_ ;
/**
* bool hasNext = 2;
* @return The hasNext.
*/
@java.lang.Override
public boolean getHasNext() {
return hasNext_;
}
/**
* bool hasNext = 2;
* @param value The hasNext to set.
* @return This builder for chaining.
*/
public Builder setHasNext(boolean value) {
hasNext_ = value;
onChanged();
return this;
}
/**
* bool hasNext = 2;
* @return This builder for chaining.
*/
public Builder clearHasNext() {
hasNext_ = false;
onChanged();
return this;
}
private java.util.List peers_ =
java.util.Collections.emptyList();
private void ensurePeersIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
peers_ = new java.util.ArrayList(peers_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
types.Polarrpc.PolarisPeer, types.Polarrpc.PolarisPeer.Builder, types.Polarrpc.PolarisPeerOrBuilder> peersBuilder_;
/**
* repeated .types.PolarisPeer peers = 3;
*/
public java.util.List getPeersList() {
if (peersBuilder_ == null) {
return java.util.Collections.unmodifiableList(peers_);
} else {
return peersBuilder_.getMessageList();
}
}
/**
* repeated .types.PolarisPeer peers = 3;
*/
public int getPeersCount() {
if (peersBuilder_ == null) {
return peers_.size();
} else {
return peersBuilder_.getCount();
}
}
/**
* repeated .types.PolarisPeer peers = 3;
*/
public types.Polarrpc.PolarisPeer getPeers(int index) {
if (peersBuilder_ == null) {
return peers_.get(index);
} else {
return peersBuilder_.getMessage(index);
}
}
/**
* repeated .types.PolarisPeer peers = 3;
*/
public Builder setPeers(
int index, types.Polarrpc.PolarisPeer value) {
if (peersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePeersIsMutable();
peers_.set(index, value);
onChanged();
} else {
peersBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .types.PolarisPeer peers = 3;
*/
public Builder setPeers(
int index, types.Polarrpc.PolarisPeer.Builder builderForValue) {
if (peersBuilder_ == null) {
ensurePeersIsMutable();
peers_.set(index, builderForValue.build());
onChanged();
} else {
peersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .types.PolarisPeer peers = 3;
*/
public Builder addPeers(types.Polarrpc.PolarisPeer value) {
if (peersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePeersIsMutable();
peers_.add(value);
onChanged();
} else {
peersBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .types.PolarisPeer peers = 3;
*/
public Builder addPeers(
int index, types.Polarrpc.PolarisPeer value) {
if (peersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePeersIsMutable();
peers_.add(index, value);
onChanged();
} else {
peersBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .types.PolarisPeer peers = 3;
*/
public Builder addPeers(
types.Polarrpc.PolarisPeer.Builder builderForValue) {
if (peersBuilder_ == null) {
ensurePeersIsMutable();
peers_.add(builderForValue.build());
onChanged();
} else {
peersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .types.PolarisPeer peers = 3;
*/
public Builder addPeers(
int index, types.Polarrpc.PolarisPeer.Builder builderForValue) {
if (peersBuilder_ == null) {
ensurePeersIsMutable();
peers_.add(index, builderForValue.build());
onChanged();
} else {
peersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .types.PolarisPeer peers = 3;
*/
public Builder addAllPeers(
java.lang.Iterable extends types.Polarrpc.PolarisPeer> values) {
if (peersBuilder_ == null) {
ensurePeersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, peers_);
onChanged();
} else {
peersBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .types.PolarisPeer peers = 3;
*/
public Builder clearPeers() {
if (peersBuilder_ == null) {
peers_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
peersBuilder_.clear();
}
return this;
}
/**
* repeated .types.PolarisPeer peers = 3;
*/
public Builder removePeers(int index) {
if (peersBuilder_ == null) {
ensurePeersIsMutable();
peers_.remove(index);
onChanged();
} else {
peersBuilder_.remove(index);
}
return this;
}
/**
* repeated .types.PolarisPeer peers = 3;
*/
public types.Polarrpc.PolarisPeer.Builder getPeersBuilder(
int index) {
return getPeersFieldBuilder().getBuilder(index);
}
/**
* repeated .types.PolarisPeer peers = 3;
*/
public types.Polarrpc.PolarisPeerOrBuilder getPeersOrBuilder(
int index) {
if (peersBuilder_ == null) {
return peers_.get(index); } else {
return peersBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .types.PolarisPeer peers = 3;
*/
public java.util.List extends types.Polarrpc.PolarisPeerOrBuilder>
getPeersOrBuilderList() {
if (peersBuilder_ != null) {
return peersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(peers_);
}
}
/**
* repeated .types.PolarisPeer peers = 3;
*/
public types.Polarrpc.PolarisPeer.Builder addPeersBuilder() {
return getPeersFieldBuilder().addBuilder(
types.Polarrpc.PolarisPeer.getDefaultInstance());
}
/**
* repeated .types.PolarisPeer peers = 3;
*/
public types.Polarrpc.PolarisPeer.Builder addPeersBuilder(
int index) {
return getPeersFieldBuilder().addBuilder(
index, types.Polarrpc.PolarisPeer.getDefaultInstance());
}
/**
* repeated .types.PolarisPeer peers = 3;
*/
public java.util.List
getPeersBuilderList() {
return getPeersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
types.Polarrpc.PolarisPeer, types.Polarrpc.PolarisPeer.Builder, types.Polarrpc.PolarisPeerOrBuilder>
getPeersFieldBuilder() {
if (peersBuilder_ == null) {
peersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
types.Polarrpc.PolarisPeer, types.Polarrpc.PolarisPeer.Builder, types.Polarrpc.PolarisPeerOrBuilder>(
peers_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
peers_ = null;
}
return peersBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:types.PolarisPeerList)
}
// @@protoc_insertion_point(class_scope:types.PolarisPeerList)
private static final types.Polarrpc.PolarisPeerList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new types.Polarrpc.PolarisPeerList();
}
public static types.Polarrpc.PolarisPeerList getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PolarisPeerList parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PolarisPeerList(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.Polarrpc.PolarisPeerList getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PolarisPeerOrBuilder extends
// @@protoc_insertion_point(interface_extends:types.PolarisPeer)
com.google.protobuf.MessageOrBuilder {
/**
* .types.PeerAddress address = 1;
* @return Whether the address field is set.
*/
boolean hasAddress();
/**
* .types.PeerAddress address = 1;
* @return The address.
*/
types.Node.PeerAddress getAddress();
/**
* .types.PeerAddress address = 1;
*/
types.Node.PeerAddressOrBuilder getAddressOrBuilder();
/**
* int64 connected = 2;
* @return The connected.
*/
long getConnected();
/**
*
* lastCheck contains unix timestamp with nanoseconds precision
*
*
* int64 lastCheck = 3;
* @return The lastCheck.
*/
long getLastCheck();
/**
* string verion = 4;
* @return The verion.
*/
java.lang.String getVerion();
/**
* string verion = 4;
* @return The bytes for verion.
*/
com.google.protobuf.ByteString
getVerionBytes();
}
/**
* Protobuf type {@code types.PolarisPeer}
*/
public static final class PolarisPeer extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:types.PolarisPeer)
PolarisPeerOrBuilder {
private static final long serialVersionUID = 0L;
// Use PolarisPeer.newBuilder() to construct.
private PolarisPeer(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PolarisPeer() {
verion_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PolarisPeer();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PolarisPeer(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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.Node.PeerAddress.Builder subBuilder = null;
if (address_ != null) {
subBuilder = address_.toBuilder();
}
address_ = input.readMessage(types.Node.PeerAddress.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(address_);
address_ = subBuilder.buildPartial();
}
break;
}
case 16: {
connected_ = input.readInt64();
break;
}
case 24: {
lastCheck_ = input.readInt64();
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
verion_ = 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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return types.Polarrpc.internal_static_types_PolarisPeer_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return types.Polarrpc.internal_static_types_PolarisPeer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
types.Polarrpc.PolarisPeer.class, types.Polarrpc.PolarisPeer.Builder.class);
}
public static final int ADDRESS_FIELD_NUMBER = 1;
private types.Node.PeerAddress address_;
/**
* .types.PeerAddress address = 1;
* @return Whether the address field is set.
*/
@java.lang.Override
public boolean hasAddress() {
return address_ != null;
}
/**
* .types.PeerAddress address = 1;
* @return The address.
*/
@java.lang.Override
public types.Node.PeerAddress getAddress() {
return address_ == null ? types.Node.PeerAddress.getDefaultInstance() : address_;
}
/**
* .types.PeerAddress address = 1;
*/
@java.lang.Override
public types.Node.PeerAddressOrBuilder getAddressOrBuilder() {
return getAddress();
}
public static final int CONNECTED_FIELD_NUMBER = 2;
private long connected_;
/**
* int64 connected = 2;
* @return The connected.
*/
@java.lang.Override
public long getConnected() {
return connected_;
}
public static final int LASTCHECK_FIELD_NUMBER = 3;
private long lastCheck_;
/**
*
* lastCheck contains unix timestamp with nanoseconds precision
*
*
* int64 lastCheck = 3;
* @return The lastCheck.
*/
@java.lang.Override
public long getLastCheck() {
return lastCheck_;
}
public static final int VERION_FIELD_NUMBER = 4;
private volatile java.lang.Object verion_;
/**
* string verion = 4;
* @return The verion.
*/
@java.lang.Override
public java.lang.String getVerion() {
java.lang.Object ref = verion_;
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();
verion_ = s;
return s;
}
}
/**
* string verion = 4;
* @return The bytes for verion.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getVerionBytes() {
java.lang.Object ref = verion_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
verion_ = 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 (address_ != null) {
output.writeMessage(1, getAddress());
}
if (connected_ != 0L) {
output.writeInt64(2, connected_);
}
if (lastCheck_ != 0L) {
output.writeInt64(3, lastCheck_);
}
if (!getVerionBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, verion_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (address_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getAddress());
}
if (connected_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, connected_);
}
if (lastCheck_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, lastCheck_);
}
if (!getVerionBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, verion_);
}
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.Polarrpc.PolarisPeer)) {
return super.equals(obj);
}
types.Polarrpc.PolarisPeer other = (types.Polarrpc.PolarisPeer) obj;
if (hasAddress() != other.hasAddress()) return false;
if (hasAddress()) {
if (!getAddress()
.equals(other.getAddress())) return false;
}
if (getConnected()
!= other.getConnected()) return false;
if (getLastCheck()
!= other.getLastCheck()) return false;
if (!getVerion()
.equals(other.getVerion())) 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 (hasAddress()) {
hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getAddress().hashCode();
}
hash = (37 * hash) + CONNECTED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getConnected());
hash = (37 * hash) + LASTCHECK_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLastCheck());
hash = (37 * hash) + VERION_FIELD_NUMBER;
hash = (53 * hash) + getVerion().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static types.Polarrpc.PolarisPeer parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static types.Polarrpc.PolarisPeer parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static types.Polarrpc.PolarisPeer parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static types.Polarrpc.PolarisPeer parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static types.Polarrpc.PolarisPeer parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static types.Polarrpc.PolarisPeer parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static types.Polarrpc.PolarisPeer parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static types.Polarrpc.PolarisPeer 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.Polarrpc.PolarisPeer parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static types.Polarrpc.PolarisPeer 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.Polarrpc.PolarisPeer parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static types.Polarrpc.PolarisPeer 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.Polarrpc.PolarisPeer 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.PolarisPeer}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:types.PolarisPeer)
types.Polarrpc.PolarisPeerOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return types.Polarrpc.internal_static_types_PolarisPeer_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return types.Polarrpc.internal_static_types_PolarisPeer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
types.Polarrpc.PolarisPeer.class, types.Polarrpc.PolarisPeer.Builder.class);
}
// Construct using types.Polarrpc.PolarisPeer.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 (addressBuilder_ == null) {
address_ = null;
} else {
address_ = null;
addressBuilder_ = null;
}
connected_ = 0L;
lastCheck_ = 0L;
verion_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return types.Polarrpc.internal_static_types_PolarisPeer_descriptor;
}
@java.lang.Override
public types.Polarrpc.PolarisPeer getDefaultInstanceForType() {
return types.Polarrpc.PolarisPeer.getDefaultInstance();
}
@java.lang.Override
public types.Polarrpc.PolarisPeer build() {
types.Polarrpc.PolarisPeer result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public types.Polarrpc.PolarisPeer buildPartial() {
types.Polarrpc.PolarisPeer result = new types.Polarrpc.PolarisPeer(this);
if (addressBuilder_ == null) {
result.address_ = address_;
} else {
result.address_ = addressBuilder_.build();
}
result.connected_ = connected_;
result.lastCheck_ = lastCheck_;
result.verion_ = verion_;
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.Polarrpc.PolarisPeer) {
return mergeFrom((types.Polarrpc.PolarisPeer)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(types.Polarrpc.PolarisPeer other) {
if (other == types.Polarrpc.PolarisPeer.getDefaultInstance()) return this;
if (other.hasAddress()) {
mergeAddress(other.getAddress());
}
if (other.getConnected() != 0L) {
setConnected(other.getConnected());
}
if (other.getLastCheck() != 0L) {
setLastCheck(other.getLastCheck());
}
if (!other.getVerion().isEmpty()) {
verion_ = other.verion_;
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.Polarrpc.PolarisPeer parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (types.Polarrpc.PolarisPeer) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private types.Node.PeerAddress address_;
private com.google.protobuf.SingleFieldBuilderV3<
types.Node.PeerAddress, types.Node.PeerAddress.Builder, types.Node.PeerAddressOrBuilder> addressBuilder_;
/**
* .types.PeerAddress address = 1;
* @return Whether the address field is set.
*/
public boolean hasAddress() {
return addressBuilder_ != null || address_ != null;
}
/**
* .types.PeerAddress address = 1;
* @return The address.
*/
public types.Node.PeerAddress getAddress() {
if (addressBuilder_ == null) {
return address_ == null ? types.Node.PeerAddress.getDefaultInstance() : address_;
} else {
return addressBuilder_.getMessage();
}
}
/**
* .types.PeerAddress address = 1;
*/
public Builder setAddress(types.Node.PeerAddress value) {
if (addressBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
address_ = value;
onChanged();
} else {
addressBuilder_.setMessage(value);
}
return this;
}
/**
* .types.PeerAddress address = 1;
*/
public Builder setAddress(
types.Node.PeerAddress.Builder builderForValue) {
if (addressBuilder_ == null) {
address_ = builderForValue.build();
onChanged();
} else {
addressBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .types.PeerAddress address = 1;
*/
public Builder mergeAddress(types.Node.PeerAddress value) {
if (addressBuilder_ == null) {
if (address_ != null) {
address_ =
types.Node.PeerAddress.newBuilder(address_).mergeFrom(value).buildPartial();
} else {
address_ = value;
}
onChanged();
} else {
addressBuilder_.mergeFrom(value);
}
return this;
}
/**
* .types.PeerAddress address = 1;
*/
public Builder clearAddress() {
if (addressBuilder_ == null) {
address_ = null;
onChanged();
} else {
address_ = null;
addressBuilder_ = null;
}
return this;
}
/**
* .types.PeerAddress address = 1;
*/
public types.Node.PeerAddress.Builder getAddressBuilder() {
onChanged();
return getAddressFieldBuilder().getBuilder();
}
/**
* .types.PeerAddress address = 1;
*/
public types.Node.PeerAddressOrBuilder getAddressOrBuilder() {
if (addressBuilder_ != null) {
return addressBuilder_.getMessageOrBuilder();
} else {
return address_ == null ?
types.Node.PeerAddress.getDefaultInstance() : address_;
}
}
/**
* .types.PeerAddress address = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
types.Node.PeerAddress, types.Node.PeerAddress.Builder, types.Node.PeerAddressOrBuilder>
getAddressFieldBuilder() {
if (addressBuilder_ == null) {
addressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
types.Node.PeerAddress, types.Node.PeerAddress.Builder, types.Node.PeerAddressOrBuilder>(
getAddress(),
getParentForChildren(),
isClean());
address_ = null;
}
return addressBuilder_;
}
private long connected_ ;
/**
* int64 connected = 2;
* @return The connected.
*/
@java.lang.Override
public long getConnected() {
return connected_;
}
/**
* int64 connected = 2;
* @param value The connected to set.
* @return This builder for chaining.
*/
public Builder setConnected(long value) {
connected_ = value;
onChanged();
return this;
}
/**
* int64 connected = 2;
* @return This builder for chaining.
*/
public Builder clearConnected() {
connected_ = 0L;
onChanged();
return this;
}
private long lastCheck_ ;
/**
*
* lastCheck contains unix timestamp with nanoseconds precision
*
*
* int64 lastCheck = 3;
* @return The lastCheck.
*/
@java.lang.Override
public long getLastCheck() {
return lastCheck_;
}
/**
*
* lastCheck contains unix timestamp with nanoseconds precision
*
*
* int64 lastCheck = 3;
* @param value The lastCheck to set.
* @return This builder for chaining.
*/
public Builder setLastCheck(long value) {
lastCheck_ = value;
onChanged();
return this;
}
/**
*
* lastCheck contains unix timestamp with nanoseconds precision
*
*
* int64 lastCheck = 3;
* @return This builder for chaining.
*/
public Builder clearLastCheck() {
lastCheck_ = 0L;
onChanged();
return this;
}
private java.lang.Object verion_ = "";
/**
* string verion = 4;
* @return The verion.
*/
public java.lang.String getVerion() {
java.lang.Object ref = verion_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
verion_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string verion = 4;
* @return The bytes for verion.
*/
public com.google.protobuf.ByteString
getVerionBytes() {
java.lang.Object ref = verion_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
verion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string verion = 4;
* @param value The verion to set.
* @return This builder for chaining.
*/
public Builder setVerion(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
verion_ = value;
onChanged();
return this;
}
/**
* string verion = 4;
* @return This builder for chaining.
*/
public Builder clearVerion() {
verion_ = getDefaultInstance().getVerion();
onChanged();
return this;
}
/**
* string verion = 4;
* @param value The bytes for verion to set.
* @return This builder for chaining.
*/
public Builder setVerionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
verion_ = 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.PolarisPeer)
}
// @@protoc_insertion_point(class_scope:types.PolarisPeer)
private static final types.Polarrpc.PolarisPeer DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new types.Polarrpc.PolarisPeer();
}
public static types.Polarrpc.PolarisPeer getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PolarisPeer parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PolarisPeer(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.Polarrpc.PolarisPeer getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BLConfEntriesOrBuilder extends
// @@protoc_insertion_point(interface_extends:types.BLConfEntries)
com.google.protobuf.MessageOrBuilder {
/**
* bool enabled = 1;
* @return The enabled.
*/
boolean getEnabled();
/**
* repeated string entries = 2;
* @return A list containing the entries.
*/
java.util.List
getEntriesList();
/**
* repeated string entries = 2;
* @return The count of entries.
*/
int getEntriesCount();
/**
* repeated string entries = 2;
* @param index The index of the element to return.
* @return The entries at the given index.
*/
java.lang.String getEntries(int index);
/**
* repeated string entries = 2;
* @param index The index of the value to return.
* @return The bytes of the entries at the given index.
*/
com.google.protobuf.ByteString
getEntriesBytes(int index);
}
/**
* Protobuf type {@code types.BLConfEntries}
*/
public static final class BLConfEntries extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:types.BLConfEntries)
BLConfEntriesOrBuilder {
private static final long serialVersionUID = 0L;
// Use BLConfEntries.newBuilder() to construct.
private BLConfEntries(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BLConfEntries() {
entries_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BLConfEntries();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private BLConfEntries(
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: {
enabled_ = input.readBool();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
entries_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
entries_.add(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)) {
entries_ = entries_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return types.Polarrpc.internal_static_types_BLConfEntries_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return types.Polarrpc.internal_static_types_BLConfEntries_fieldAccessorTable
.ensureFieldAccessorsInitialized(
types.Polarrpc.BLConfEntries.class, types.Polarrpc.BLConfEntries.Builder.class);
}
public static final int ENABLED_FIELD_NUMBER = 1;
private boolean enabled_;
/**
* bool enabled = 1;
* @return The enabled.
*/
@java.lang.Override
public boolean getEnabled() {
return enabled_;
}
public static final int ENTRIES_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList entries_;
/**
* repeated string entries = 2;
* @return A list containing the entries.
*/
public com.google.protobuf.ProtocolStringList
getEntriesList() {
return entries_;
}
/**
* repeated string entries = 2;
* @return The count of entries.
*/
public int getEntriesCount() {
return entries_.size();
}
/**
* repeated string entries = 2;
* @param index The index of the element to return.
* @return The entries at the given index.
*/
public java.lang.String getEntries(int index) {
return entries_.get(index);
}
/**
* repeated string entries = 2;
* @param index The index of the value to return.
* @return The bytes of the entries at the given index.
*/
public com.google.protobuf.ByteString
getEntriesBytes(int index) {
return entries_.getByteString(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 (enabled_ != false) {
output.writeBool(1, enabled_);
}
for (int i = 0; i < entries_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, entries_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (enabled_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, enabled_);
}
{
int dataSize = 0;
for (int i = 0; i < entries_.size(); i++) {
dataSize += computeStringSizeNoTag(entries_.getRaw(i));
}
size += dataSize;
size += 1 * getEntriesList().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.Polarrpc.BLConfEntries)) {
return super.equals(obj);
}
types.Polarrpc.BLConfEntries other = (types.Polarrpc.BLConfEntries) obj;
if (getEnabled()
!= other.getEnabled()) return false;
if (!getEntriesList()
.equals(other.getEntriesList())) 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) + ENABLED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getEnabled());
if (getEntriesCount() > 0) {
hash = (37 * hash) + ENTRIES_FIELD_NUMBER;
hash = (53 * hash) + getEntriesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static types.Polarrpc.BLConfEntries parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static types.Polarrpc.BLConfEntries parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static types.Polarrpc.BLConfEntries parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static types.Polarrpc.BLConfEntries parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static types.Polarrpc.BLConfEntries parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static types.Polarrpc.BLConfEntries parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static types.Polarrpc.BLConfEntries parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static types.Polarrpc.BLConfEntries 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.Polarrpc.BLConfEntries parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static types.Polarrpc.BLConfEntries 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.Polarrpc.BLConfEntries parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static types.Polarrpc.BLConfEntries 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.Polarrpc.BLConfEntries 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.BLConfEntries}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:types.BLConfEntries)
types.Polarrpc.BLConfEntriesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return types.Polarrpc.internal_static_types_BLConfEntries_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return types.Polarrpc.internal_static_types_BLConfEntries_fieldAccessorTable
.ensureFieldAccessorsInitialized(
types.Polarrpc.BLConfEntries.class, types.Polarrpc.BLConfEntries.Builder.class);
}
// Construct using types.Polarrpc.BLConfEntries.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();
enabled_ = false;
entries_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return types.Polarrpc.internal_static_types_BLConfEntries_descriptor;
}
@java.lang.Override
public types.Polarrpc.BLConfEntries getDefaultInstanceForType() {
return types.Polarrpc.BLConfEntries.getDefaultInstance();
}
@java.lang.Override
public types.Polarrpc.BLConfEntries build() {
types.Polarrpc.BLConfEntries result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public types.Polarrpc.BLConfEntries buildPartial() {
types.Polarrpc.BLConfEntries result = new types.Polarrpc.BLConfEntries(this);
int from_bitField0_ = bitField0_;
result.enabled_ = enabled_;
if (((bitField0_ & 0x00000001) != 0)) {
entries_ = entries_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.entries_ = entries_;
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.Polarrpc.BLConfEntries) {
return mergeFrom((types.Polarrpc.BLConfEntries)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(types.Polarrpc.BLConfEntries other) {
if (other == types.Polarrpc.BLConfEntries.getDefaultInstance()) return this;
if (other.getEnabled() != false) {
setEnabled(other.getEnabled());
}
if (!other.entries_.isEmpty()) {
if (entries_.isEmpty()) {
entries_ = other.entries_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureEntriesIsMutable();
entries_.addAll(other.entries_);
}
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.Polarrpc.BLConfEntries parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (types.Polarrpc.BLConfEntries) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private boolean enabled_ ;
/**
* bool enabled = 1;
* @return The enabled.
*/
@java.lang.Override
public boolean getEnabled() {
return enabled_;
}
/**
* bool enabled = 1;
* @param value The enabled to set.
* @return This builder for chaining.
*/
public Builder setEnabled(boolean value) {
enabled_ = value;
onChanged();
return this;
}
/**
* bool enabled = 1;
* @return This builder for chaining.
*/
public Builder clearEnabled() {
enabled_ = false;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList entries_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureEntriesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
entries_ = new com.google.protobuf.LazyStringArrayList(entries_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string entries = 2;
* @return A list containing the entries.
*/
public com.google.protobuf.ProtocolStringList
getEntriesList() {
return entries_.getUnmodifiableView();
}
/**
* repeated string entries = 2;
* @return The count of entries.
*/
public int getEntriesCount() {
return entries_.size();
}
/**
* repeated string entries = 2;
* @param index The index of the element to return.
* @return The entries at the given index.
*/
public java.lang.String getEntries(int index) {
return entries_.get(index);
}
/**
* repeated string entries = 2;
* @param index The index of the value to return.
* @return The bytes of the entries at the given index.
*/
public com.google.protobuf.ByteString
getEntriesBytes(int index) {
return entries_.getByteString(index);
}
/**
* repeated string entries = 2;
* @param index The index to set the value at.
* @param value The entries to set.
* @return This builder for chaining.
*/
public Builder setEntries(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureEntriesIsMutable();
entries_.set(index, value);
onChanged();
return this;
}
/**
* repeated string entries = 2;
* @param value The entries to add.
* @return This builder for chaining.
*/
public Builder addEntries(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureEntriesIsMutable();
entries_.add(value);
onChanged();
return this;
}
/**
* repeated string entries = 2;
* @param values The entries to add.
* @return This builder for chaining.
*/
public Builder addAllEntries(
java.lang.Iterable values) {
ensureEntriesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, entries_);
onChanged();
return this;
}
/**
* repeated string entries = 2;
* @return This builder for chaining.
*/
public Builder clearEntries() {
entries_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string entries = 2;
* @param value The bytes of the entries to add.
* @return This builder for chaining.
*/
public Builder addEntriesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureEntriesIsMutable();
entries_.add(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.BLConfEntries)
}
// @@protoc_insertion_point(class_scope:types.BLConfEntries)
private static final types.Polarrpc.BLConfEntries DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new types.Polarrpc.BLConfEntries();
}
public static types.Polarrpc.BLConfEntries getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BLConfEntries parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BLConfEntries(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.Polarrpc.BLConfEntries getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AddEntryParamsOrBuilder extends
// @@protoc_insertion_point(interface_extends:types.AddEntryParams)
com.google.protobuf.MessageOrBuilder {
/**
* string peerID = 1;
* @return The peerID.
*/
java.lang.String getPeerID();
/**
* string peerID = 1;
* @return The bytes for peerID.
*/
com.google.protobuf.ByteString
getPeerIDBytes();
/**
* string address = 2;
* @return The address.
*/
java.lang.String getAddress();
/**
* string address = 2;
* @return The bytes for address.
*/
com.google.protobuf.ByteString
getAddressBytes();
/**
* string cidr = 3;
* @return The cidr.
*/
java.lang.String getCidr();
/**
* string cidr = 3;
* @return The bytes for cidr.
*/
com.google.protobuf.ByteString
getCidrBytes();
}
/**
* Protobuf type {@code types.AddEntryParams}
*/
public static final class AddEntryParams extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:types.AddEntryParams)
AddEntryParamsOrBuilder {
private static final long serialVersionUID = 0L;
// Use AddEntryParams.newBuilder() to construct.
private AddEntryParams(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AddEntryParams() {
peerID_ = "";
address_ = "";
cidr_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AddEntryParams();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AddEntryParams(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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();
peerID_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
address_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
cidr_ = 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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return types.Polarrpc.internal_static_types_AddEntryParams_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return types.Polarrpc.internal_static_types_AddEntryParams_fieldAccessorTable
.ensureFieldAccessorsInitialized(
types.Polarrpc.AddEntryParams.class, types.Polarrpc.AddEntryParams.Builder.class);
}
public static final int PEERID_FIELD_NUMBER = 1;
private volatile java.lang.Object peerID_;
/**
* string peerID = 1;
* @return The peerID.
*/
@java.lang.Override
public java.lang.String getPeerID() {
java.lang.Object ref = peerID_;
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();
peerID_ = s;
return s;
}
}
/**
* string peerID = 1;
* @return The bytes for peerID.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPeerIDBytes() {
java.lang.Object ref = peerID_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
peerID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ADDRESS_FIELD_NUMBER = 2;
private volatile java.lang.Object address_;
/**
* string address = 2;
* @return The address.
*/
@java.lang.Override
public java.lang.String getAddress() {
java.lang.Object ref = address_;
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();
address_ = s;
return s;
}
}
/**
* string address = 2;
* @return The bytes for address.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAddressBytes() {
java.lang.Object ref = address_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CIDR_FIELD_NUMBER = 3;
private volatile java.lang.Object cidr_;
/**
* string cidr = 3;
* @return The cidr.
*/
@java.lang.Override
public java.lang.String getCidr() {
java.lang.Object ref = cidr_;
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();
cidr_ = s;
return s;
}
}
/**
* string cidr = 3;
* @return The bytes for cidr.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCidrBytes() {
java.lang.Object ref = cidr_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
cidr_ = 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 (!getPeerIDBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, peerID_);
}
if (!getAddressBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, address_);
}
if (!getCidrBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, cidr_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getPeerIDBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, peerID_);
}
if (!getAddressBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, address_);
}
if (!getCidrBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, cidr_);
}
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.Polarrpc.AddEntryParams)) {
return super.equals(obj);
}
types.Polarrpc.AddEntryParams other = (types.Polarrpc.AddEntryParams) obj;
if (!getPeerID()
.equals(other.getPeerID())) return false;
if (!getAddress()
.equals(other.getAddress())) return false;
if (!getCidr()
.equals(other.getCidr())) 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) + PEERID_FIELD_NUMBER;
hash = (53 * hash) + getPeerID().hashCode();
hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getAddress().hashCode();
hash = (37 * hash) + CIDR_FIELD_NUMBER;
hash = (53 * hash) + getCidr().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static types.Polarrpc.AddEntryParams parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static types.Polarrpc.AddEntryParams parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static types.Polarrpc.AddEntryParams parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static types.Polarrpc.AddEntryParams parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static types.Polarrpc.AddEntryParams parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static types.Polarrpc.AddEntryParams parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static types.Polarrpc.AddEntryParams parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static types.Polarrpc.AddEntryParams 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.Polarrpc.AddEntryParams parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static types.Polarrpc.AddEntryParams 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.Polarrpc.AddEntryParams parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static types.Polarrpc.AddEntryParams 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.Polarrpc.AddEntryParams 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.AddEntryParams}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:types.AddEntryParams)
types.Polarrpc.AddEntryParamsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return types.Polarrpc.internal_static_types_AddEntryParams_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return types.Polarrpc.internal_static_types_AddEntryParams_fieldAccessorTable
.ensureFieldAccessorsInitialized(
types.Polarrpc.AddEntryParams.class, types.Polarrpc.AddEntryParams.Builder.class);
}
// Construct using types.Polarrpc.AddEntryParams.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();
peerID_ = "";
address_ = "";
cidr_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return types.Polarrpc.internal_static_types_AddEntryParams_descriptor;
}
@java.lang.Override
public types.Polarrpc.AddEntryParams getDefaultInstanceForType() {
return types.Polarrpc.AddEntryParams.getDefaultInstance();
}
@java.lang.Override
public types.Polarrpc.AddEntryParams build() {
types.Polarrpc.AddEntryParams result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public types.Polarrpc.AddEntryParams buildPartial() {
types.Polarrpc.AddEntryParams result = new types.Polarrpc.AddEntryParams(this);
result.peerID_ = peerID_;
result.address_ = address_;
result.cidr_ = cidr_;
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.Polarrpc.AddEntryParams) {
return mergeFrom((types.Polarrpc.AddEntryParams)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(types.Polarrpc.AddEntryParams other) {
if (other == types.Polarrpc.AddEntryParams.getDefaultInstance()) return this;
if (!other.getPeerID().isEmpty()) {
peerID_ = other.peerID_;
onChanged();
}
if (!other.getAddress().isEmpty()) {
address_ = other.address_;
onChanged();
}
if (!other.getCidr().isEmpty()) {
cidr_ = other.cidr_;
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.Polarrpc.AddEntryParams parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (types.Polarrpc.AddEntryParams) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object peerID_ = "";
/**
* string peerID = 1;
* @return The peerID.
*/
public java.lang.String getPeerID() {
java.lang.Object ref = peerID_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
peerID_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string peerID = 1;
* @return The bytes for peerID.
*/
public com.google.protobuf.ByteString
getPeerIDBytes() {
java.lang.Object ref = peerID_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
peerID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string peerID = 1;
* @param value The peerID to set.
* @return This builder for chaining.
*/
public Builder setPeerID(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
peerID_ = value;
onChanged();
return this;
}
/**
* string peerID = 1;
* @return This builder for chaining.
*/
public Builder clearPeerID() {
peerID_ = getDefaultInstance().getPeerID();
onChanged();
return this;
}
/**
* string peerID = 1;
* @param value The bytes for peerID to set.
* @return This builder for chaining.
*/
public Builder setPeerIDBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
peerID_ = value;
onChanged();
return this;
}
private java.lang.Object address_ = "";
/**
* string address = 2;
* @return The address.
*/
public java.lang.String getAddress() {
java.lang.Object ref = address_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
address_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string address = 2;
* @return The bytes for address.
*/
public com.google.protobuf.ByteString
getAddressBytes() {
java.lang.Object ref = address_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string address = 2;
* @param value The address to set.
* @return This builder for chaining.
*/
public Builder setAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
address_ = value;
onChanged();
return this;
}
/**
* string address = 2;
* @return This builder for chaining.
*/
public Builder clearAddress() {
address_ = getDefaultInstance().getAddress();
onChanged();
return this;
}
/**
* string address = 2;
* @param value The bytes for address to set.
* @return This builder for chaining.
*/
public Builder setAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
address_ = value;
onChanged();
return this;
}
private java.lang.Object cidr_ = "";
/**
* string cidr = 3;
* @return The cidr.
*/
public java.lang.String getCidr() {
java.lang.Object ref = cidr_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
cidr_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string cidr = 3;
* @return The bytes for cidr.
*/
public com.google.protobuf.ByteString
getCidrBytes() {
java.lang.Object ref = cidr_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
cidr_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string cidr = 3;
* @param value The cidr to set.
* @return This builder for chaining.
*/
public Builder setCidr(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
cidr_ = value;
onChanged();
return this;
}
/**
* string cidr = 3;
* @return This builder for chaining.
*/
public Builder clearCidr() {
cidr_ = getDefaultInstance().getCidr();
onChanged();
return this;
}
/**
* string cidr = 3;
* @param value The bytes for cidr to set.
* @return This builder for chaining.
*/
public Builder setCidrBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
cidr_ = 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.AddEntryParams)
}
// @@protoc_insertion_point(class_scope:types.AddEntryParams)
private static final types.Polarrpc.AddEntryParams DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new types.Polarrpc.AddEntryParams();
}
public static types.Polarrpc.AddEntryParams getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AddEntryParams parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AddEntryParams(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.Polarrpc.AddEntryParams getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RmEntryParamsOrBuilder extends
// @@protoc_insertion_point(interface_extends:types.RmEntryParams)
com.google.protobuf.MessageOrBuilder {
/**
* uint32 index = 1;
* @return The index.
*/
int getIndex();
}
/**
* Protobuf type {@code types.RmEntryParams}
*/
public static final class RmEntryParams extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:types.RmEntryParams)
RmEntryParamsOrBuilder {
private static final long serialVersionUID = 0L;
// Use RmEntryParams.newBuilder() to construct.
private RmEntryParams(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RmEntryParams() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RmEntryParams();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RmEntryParams(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
index_ = input.readUInt32();
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return types.Polarrpc.internal_static_types_RmEntryParams_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return types.Polarrpc.internal_static_types_RmEntryParams_fieldAccessorTable
.ensureFieldAccessorsInitialized(
types.Polarrpc.RmEntryParams.class, types.Polarrpc.RmEntryParams.Builder.class);
}
public static final int INDEX_FIELD_NUMBER = 1;
private int index_;
/**
* uint32 index = 1;
* @return The index.
*/
@java.lang.Override
public int getIndex() {
return 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 (index_ != 0) {
output.writeUInt32(1, index_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (index_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, index_);
}
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.Polarrpc.RmEntryParams)) {
return super.equals(obj);
}
types.Polarrpc.RmEntryParams other = (types.Polarrpc.RmEntryParams) obj;
if (getIndex()
!= other.getIndex()) 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) + INDEX_FIELD_NUMBER;
hash = (53 * hash) + getIndex();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static types.Polarrpc.RmEntryParams parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static types.Polarrpc.RmEntryParams parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static types.Polarrpc.RmEntryParams parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static types.Polarrpc.RmEntryParams parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static types.Polarrpc.RmEntryParams parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static types.Polarrpc.RmEntryParams parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static types.Polarrpc.RmEntryParams parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static types.Polarrpc.RmEntryParams 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.Polarrpc.RmEntryParams parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static types.Polarrpc.RmEntryParams 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.Polarrpc.RmEntryParams parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static types.Polarrpc.RmEntryParams 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.Polarrpc.RmEntryParams 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.RmEntryParams}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:types.RmEntryParams)
types.Polarrpc.RmEntryParamsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return types.Polarrpc.internal_static_types_RmEntryParams_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return types.Polarrpc.internal_static_types_RmEntryParams_fieldAccessorTable
.ensureFieldAccessorsInitialized(
types.Polarrpc.RmEntryParams.class, types.Polarrpc.RmEntryParams.Builder.class);
}
// Construct using types.Polarrpc.RmEntryParams.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();
index_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return types.Polarrpc.internal_static_types_RmEntryParams_descriptor;
}
@java.lang.Override
public types.Polarrpc.RmEntryParams getDefaultInstanceForType() {
return types.Polarrpc.RmEntryParams.getDefaultInstance();
}
@java.lang.Override
public types.Polarrpc.RmEntryParams build() {
types.Polarrpc.RmEntryParams result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public types.Polarrpc.RmEntryParams buildPartial() {
types.Polarrpc.RmEntryParams result = new types.Polarrpc.RmEntryParams(this);
result.index_ = index_;
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.Polarrpc.RmEntryParams) {
return mergeFrom((types.Polarrpc.RmEntryParams)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(types.Polarrpc.RmEntryParams other) {
if (other == types.Polarrpc.RmEntryParams.getDefaultInstance()) return this;
if (other.getIndex() != 0) {
setIndex(other.getIndex());
}
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.Polarrpc.RmEntryParams parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (types.Polarrpc.RmEntryParams) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int index_ ;
/**
* uint32 index = 1;
* @return The index.
*/
@java.lang.Override
public int getIndex() {
return index_;
}
/**
* uint32 index = 1;
* @param value The index to set.
* @return This builder for chaining.
*/
public Builder setIndex(int value) {
index_ = value;
onChanged();
return this;
}
/**
* uint32 index = 1;
* @return This builder for chaining.
*/
public Builder clearIndex() {
index_ = 0;
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.RmEntryParams)
}
// @@protoc_insertion_point(class_scope:types.RmEntryParams)
private static final types.Polarrpc.RmEntryParams DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new types.Polarrpc.RmEntryParams();
}
public static types.Polarrpc.RmEntryParams getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RmEntryParams parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RmEntryParams(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.Polarrpc.RmEntryParams getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_types_Paginations_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_types_Paginations_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_types_PolarisPeerList_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_types_PolarisPeerList_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_types_PolarisPeer_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_types_PolarisPeer_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_types_BLConfEntries_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_types_BLConfEntries_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_types_AddEntryParams_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_types_AddEntryParams_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_types_RmEntryParams_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_types_RmEntryParams_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\016polarrpc.proto\022\005types\032\nnode.proto\032\trpc" +
".proto\032\014metric.proto\"(\n\013Paginations\022\013\n\003r" +
"ef\030\001 \001(\014\022\014\n\004size\030\003 \001(\r\"T\n\017PolarisPeerLis" +
"t\022\r\n\005total\030\001 \001(\r\022\017\n\007hasNext\030\002 \001(\010\022!\n\005pee" +
"rs\030\003 \003(\0132\022.types.PolarisPeer\"h\n\013PolarisP" +
"eer\022#\n\007address\030\001 \001(\0132\022.types.PeerAddress" +
"\022\021\n\tconnected\030\002 \001(\003\022\021\n\tlastCheck\030\003 \001(\003\022\016" +
"\n\006verion\030\004 \001(\t\"1\n\rBLConfEntries\022\017\n\007enabl" +
"ed\030\001 \001(\010\022\017\n\007entries\030\002 \003(\t\"?\n\016AddEntryPar" +
"ams\022\016\n\006peerID\030\001 \001(\t\022\017\n\007address\030\002 \001(\t\022\014\n\004" +
"cidr\030\003 \001(\t\"\036\n\rRmEntryParams\022\r\n\005index\030\001 \001" +
"(\r2\335\003\n\021PolarisRPCService\0221\n\tNodeState\022\016." +
"types.NodeReq\032\022.types.SingleBytes\"\000\0221\n\006M" +
"etric\022\025.types.MetricsRequest\032\016.types.Met" +
"rics\"\000\022;\n\013CurrentList\022\022.types.Pagination" +
"s\032\026.types.PolarisPeerList\"\000\0229\n\tWhiteList" +
"\022\022.types.Paginations\032\026.types.PolarisPeer" +
"List\"\000\0229\n\tBlackList\022\022.types.Paginations\032" +
"\026.types.PolarisPeerList\"\000\0225\n\rListBLEntri" +
"es\022\014.types.Empty\032\024.types.BLConfEntries\"\000" +
"\022:\n\nAddBLEntry\022\025.types.AddEntryParams\032\023." +
"types.SingleString\"\000\022<\n\rRemoveBLEntry\022\024." +
"types.RmEntryParams\032\023.types.SingleString" +
"\"\000b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
types.Node.getDescriptor(),
types.Rpc.getDescriptor(),
types.Metric.getDescriptor(),
});
internal_static_types_Paginations_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_types_Paginations_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_types_Paginations_descriptor,
new java.lang.String[] { "Ref", "Size", });
internal_static_types_PolarisPeerList_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_types_PolarisPeerList_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_types_PolarisPeerList_descriptor,
new java.lang.String[] { "Total", "HasNext", "Peers", });
internal_static_types_PolarisPeer_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_types_PolarisPeer_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_types_PolarisPeer_descriptor,
new java.lang.String[] { "Address", "Connected", "LastCheck", "Verion", });
internal_static_types_BLConfEntries_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_types_BLConfEntries_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_types_BLConfEntries_descriptor,
new java.lang.String[] { "Enabled", "Entries", });
internal_static_types_AddEntryParams_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_types_AddEntryParams_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_types_AddEntryParams_descriptor,
new java.lang.String[] { "PeerID", "Address", "Cidr", });
internal_static_types_RmEntryParams_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_types_RmEntryParams_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_types_RmEntryParams_descriptor,
new java.lang.String[] { "Index", });
types.Node.getDescriptor();
types.Rpc.getDescriptor();
types.Metric.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}