/**
* @copyright 2013 Computer Science Department, Recursive InterNetworking Architecture (RINA) laboratory, Boston University.
* All rights reserved. Permission to use, copy, modify, and distribute this software and its documentation
* for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all
* copies and that both the copyright notice and this permission notice appear in supporting documentation.
* The RINA laboratory of the Computer Science Department at Boston University makes no
* representations about the suitability of this software for any purpose.
* It is provided "as is" without express or implied warranty.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: neighbour.proto
package rina.object.gpb;
public final class Neighbour_t {
private Neighbour_t() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface neighbors_tOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// repeated .rina.messages.neighbor_t neighbor = 1;
java.util.List<rina.object.gpb.Neighbour_t.neighbor_t>
getNeighborList();
rina.object.gpb.Neighbour_t.neighbor_t getNeighbor(int index);
int getNeighborCount();
java.util.List<? extends rina.object.gpb.Neighbour_t.neighbor_tOrBuilder>
getNeighborOrBuilderList();
rina.object.gpb.Neighbour_t.neighbor_tOrBuilder getNeighborOrBuilder(
int index);
}
public static final class neighbors_t extends
com.google.protobuf.GeneratedMessage
implements neighbors_tOrBuilder {
// Use neighbors_t.newBuilder() to construct.
private neighbors_t(Builder builder) {
super(builder);
}
private neighbors_t(boolean noInit) {}
private static final neighbors_t defaultInstance;
public static neighbors_t getDefaultInstance() {
return defaultInstance;
}
public neighbors_t getDefaultInstanceForType() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return rina.object.gpb.Neighbour_t.internal_static_rina_messages_neighbors_t_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return rina.object.gpb.Neighbour_t.internal_static_rina_messages_neighbors_t_fieldAccessorTable;
}
// repeated .rina.messages.neighbor_t neighbor = 1;
public static final int NEIGHBOR_FIELD_NUMBER = 1;
private java.util.List<rina.object.gpb.Neighbour_t.neighbor_t> neighbor_;
public java.util.List<rina.object.gpb.Neighbour_t.neighbor_t> getNeighborList() {
return neighbor_;
}
public java.util.List<? extends rina.object.gpb.Neighbour_t.neighbor_tOrBuilder>
getNeighborOrBuilderList() {
return neighbor_;
}
public int getNeighborCount() {
return neighbor_.size();
}
public rina.object.gpb.Neighbour_t.neighbor_t getNeighbor(int index) {
return neighbor_.get(index);
}
public rina.object.gpb.Neighbour_t.neighbor_tOrBuilder getNeighborOrBuilder(
int index) {
return neighbor_.get(index);
}
private void initFields() {
neighbor_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < neighbor_.size(); i++) {
output.writeMessage(1, neighbor_.get(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < neighbor_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, neighbor_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static rina.object.gpb.Neighbour_t.neighbors_t parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static rina.object.gpb.Neighbour_t.neighbors_t parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static rina.object.gpb.Neighbour_t.neighbors_t parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static rina.object.gpb.Neighbour_t.neighbors_t parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static rina.object.gpb.Neighbour_t.neighbors_t parseFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static rina.object.gpb.Neighbour_t.neighbors_t parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static rina.object.gpb.Neighbour_t.neighbors_t parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input)) {
return builder.buildParsed();
} else {
return null;
}
}
public static rina.object.gpb.Neighbour_t.neighbors_t parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
return builder.buildParsed();
} else {
return null;
}
}
public static rina.object.gpb.Neighbour_t.neighbors_t parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static rina.object.gpb.Neighbour_t.neighbors_t parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(rina.object.gpb.Neighbour_t.neighbors_t prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements rina.object.gpb.Neighbour_t.neighbors_tOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return rina.object.gpb.Neighbour_t.internal_static_rina_messages_neighbors_t_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return rina.object.gpb.Neighbour_t.internal_static_rina_messages_neighbors_t_fieldAccessorTable;
}
// Construct using rina.messages.Neighbour.neighbors_t.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getNeighborFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (neighborBuilder_ == null) {
neighbor_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
neighborBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return rina.object.gpb.Neighbour_t.neighbors_t.getDescriptor();
}
public rina.object.gpb.Neighbour_t.neighbors_t getDefaultInstanceForType() {
return rina.object.gpb.Neighbour_t.neighbors_t.getDefaultInstance();
}
public rina.object.gpb.Neighbour_t.neighbors_t build() {
rina.object.gpb.Neighbour_t.neighbors_t result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
private rina.object.gpb.Neighbour_t.neighbors_t buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
rina.object.gpb.Neighbour_t.neighbors_t result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
}
return result;
}
public rina.object.gpb.Neighbour_t.neighbors_t buildPartial() {
rina.object.gpb.Neighbour_t.neighbors_t result = new rina.object.gpb.Neighbour_t.neighbors_t(this);
int from_bitField0_ = bitField0_;
if (neighborBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
neighbor_ = java.util.Collections.unmodifiableList(neighbor_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.neighbor_ = neighbor_;
} else {
result.neighbor_ = neighborBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof rina.object.gpb.Neighbour_t.neighbors_t) {
return mergeFrom((rina.object.gpb.Neighbour_t.neighbors_t)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(rina.object.gpb.Neighbour_t.neighbors_t other) {
if (other == rina.object.gpb.Neighbour_t.neighbors_t.getDefaultInstance()) return this;
if (neighborBuilder_ == null) {
if (!other.neighbor_.isEmpty()) {
if (neighbor_.isEmpty()) {
neighbor_ = other.neighbor_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureNeighborIsMutable();
neighbor_.addAll(other.neighbor_);
}
onChanged();
}
} else {
if (!other.neighbor_.isEmpty()) {
if (neighborBuilder_.isEmpty()) {
neighborBuilder_.dispose();
neighborBuilder_ = null;
neighbor_ = other.neighbor_;
bitField0_ = (bitField0_ & ~0x00000001);
neighborBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getNeighborFieldBuilder() : null;
} else {
neighborBuilder_.addAllMessages(other.neighbor_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder(
this.getUnknownFields());
while (true) {
int tag = input.readTag();
switch (tag) {
case 0:
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
}
break;
}
case 10: {
rina.object.gpb.Neighbour_t.neighbor_t.Builder subBuilder = rina.object.gpb.Neighbour_t.neighbor_t.newBuilder();
input.readMessage(subBuilder, extensionRegistry);
addNeighbor(subBuilder.buildPartial());
break;
}
}
}
}
private int bitField0_;
// repeated .rina.messages.neighbor_t neighbor = 1;
private java.util.List<rina.object.gpb.Neighbour_t.neighbor_t> neighbor_ =
java.util.Collections.emptyList();
private void ensureNeighborIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
neighbor_ = new java.util.ArrayList<rina.object.gpb.Neighbour_t.neighbor_t>(neighbor_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
rina.object.gpb.Neighbour_t.neighbor_t, rina.object.gpb.Neighbour_t.neighbor_t.Builder, rina.object.gpb.Neighbour_t.neighbor_tOrBuilder> neighborBuilder_;
public java.util.List<rina.object.gpb.Neighbour_t.neighbor_t> getNeighborList() {
if (neighborBuilder_ == null) {
return java.util.Collections.unmodifiableList(neighbor_);
} else {
return neighborBuilder_.getMessageList();
}
}
public int getNeighborCount() {
if (neighborBuilder_ == null) {
return neighbor_.size();
} else {
return neighborBuilder_.getCount();
}
}
public rina.object.gpb.Neighbour_t.neighbor_t getNeighbor(int index) {
if (neighborBuilder_ == null) {
return neighbor_.get(index);
} else {
return neighborBuilder_.getMessage(index);
}
}
public Builder setNeighbor(
int index, rina.object.gpb.Neighbour_t.neighbor_t value) {
if (neighborBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNeighborIsMutable();
neighbor_.set(index, value);
onChanged();
} else {
neighborBuilder_.setMessage(index, value);
}
return this;
}
public Builder setNeighbor(
int index, rina.object.gpb.Neighbour_t.neighbor_t.Builder builderForValue) {
if (neighborBuilder_ == null) {
ensureNeighborIsMutable();
neighbor_.set(index, builderForValue.build());
onChanged();
} else {
neighborBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
public Builder addNeighbor(rina.object.gpb.Neighbour_t.neighbor_t value) {
if (neighborBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNeighborIsMutable();
neighbor_.add(value);
onChanged();
} else {
neighborBuilder_.addMessage(value);
}
return this;
}
public Builder addNeighbor(
int index, rina.object.gpb.Neighbour_t.neighbor_t value) {
if (neighborBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNeighborIsMutable();
neighbor_.add(index, value);
onChanged();
} else {
neighborBuilder_.addMessage(index, value);
}
return this;
}
public Builder addNeighbor(
rina.object.gpb.Neighbour_t.neighbor_t.Builder builderForValue) {
if (neighborBuilder_ == null) {
ensureNeighborIsMutable();
neighbor_.add(builderForValue.build());
onChanged();
} else {
neighborBuilder_.addMessage(builderForValue.build());
}
return this;
}
public Builder addNeighbor(
int index, rina.object.gpb.Neighbour_t.neighbor_t.Builder builderForValue) {
if (neighborBuilder_ == null) {
ensureNeighborIsMutable();
neighbor_.add(index, builderForValue.build());
onChanged();
} else {
neighborBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
public Builder addAllNeighbor(
java.lang.Iterable<? extends rina.object.gpb.Neighbour_t.neighbor_t> values) {
if (neighborBuilder_ == null) {
ensureNeighborIsMutable();
super.addAll(values, neighbor_);
onChanged();
} else {
neighborBuilder_.addAllMessages(values);
}
return this;
}
public Builder clearNeighbor() {
if (neighborBuilder_ == null) {
neighbor_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
neighborBuilder_.clear();
}
return this;
}
public Builder removeNeighbor(int index) {
if (neighborBuilder_ == null) {
ensureNeighborIsMutable();
neighbor_.remove(index);
onChanged();
} else {
neighborBuilder_.remove(index);
}
return this;
}
public rina.object.gpb.Neighbour_t.neighbor_t.Builder getNeighborBuilder(
int index) {
return getNeighborFieldBuilder().getBuilder(index);
}
public rina.object.gpb.Neighbour_t.neighbor_tOrBuilder getNeighborOrBuilder(
int index) {
if (neighborBuilder_ == null) {
return neighbor_.get(index); } else {
return neighborBuilder_.getMessageOrBuilder(index);
}
}
public java.util.List<? extends rina.object.gpb.Neighbour_t.neighbor_tOrBuilder>
getNeighborOrBuilderList() {
if (neighborBuilder_ != null) {
return neighborBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(neighbor_);
}
}
public rina.object.gpb.Neighbour_t.neighbor_t.Builder addNeighborBuilder() {
return getNeighborFieldBuilder().addBuilder(
rina.object.gpb.Neighbour_t.neighbor_t.getDefaultInstance());
}
public rina.object.gpb.Neighbour_t.neighbor_t.Builder addNeighborBuilder(
int index) {
return getNeighborFieldBuilder().addBuilder(
index, rina.object.gpb.Neighbour_t.neighbor_t.getDefaultInstance());
}
public java.util.List<rina.object.gpb.Neighbour_t.neighbor_t.Builder>
getNeighborBuilderList() {
return getNeighborFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
rina.object.gpb.Neighbour_t.neighbor_t, rina.object.gpb.Neighbour_t.neighbor_t.Builder, rina.object.gpb.Neighbour_t.neighbor_tOrBuilder>
getNeighborFieldBuilder() {
if (neighborBuilder_ == null) {
neighborBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
rina.object.gpb.Neighbour_t.neighbor_t, rina.object.gpb.Neighbour_t.neighbor_t.Builder, rina.object.gpb.Neighbour_t.neighbor_tOrBuilder>(
neighbor_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
neighbor_ = null;
}
return neighborBuilder_;
}
// @@protoc_insertion_point(builder_scope:rina.messages.neighbors_t)
}
static {
defaultInstance = new neighbors_t(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:rina.messages.neighbors_t)
}
public interface neighbor_tOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional string applicationProcessName = 1;
boolean hasApplicationProcessName();
String getApplicationProcessName();
// optional string applicationProcessInstance = 2;
boolean hasApplicationProcessInstance();
String getApplicationProcessInstance();
// optional uint64 address = 3;
boolean hasAddress();
long getAddress();
}
public static final class neighbor_t extends
com.google.protobuf.GeneratedMessage
implements neighbor_tOrBuilder {
// Use neighbor_t.newBuilder() to construct.
private neighbor_t(Builder builder) {
super(builder);
}
private neighbor_t(boolean noInit) {}
private static final neighbor_t defaultInstance;
public static neighbor_t getDefaultInstance() {
return defaultInstance;
}
public neighbor_t getDefaultInstanceForType() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return rina.object.gpb.Neighbour_t.internal_static_rina_messages_neighbor_t_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return rina.object.gpb.Neighbour_t.internal_static_rina_messages_neighbor_t_fieldAccessorTable;
}
private int bitField0_;
// optional string applicationProcessName = 1;
public static final int APPLICATIONPROCESSNAME_FIELD_NUMBER = 1;
private java.lang.Object applicationProcessName_;
public boolean hasApplicationProcessName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
public String getApplicationProcessName() {
java.lang.Object ref = applicationProcessName_;
if (ref instanceof String) {
return (String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
if (com.google.protobuf.Internal.isValidUtf8(bs)) {
applicationProcessName_ = s;
}
return s;
}
}
private com.google.protobuf.ByteString getApplicationProcessNameBytes() {
java.lang.Object ref = applicationProcessName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((String) ref);
applicationProcessName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional string applicationProcessInstance = 2;
public static final int APPLICATIONPROCESSINSTANCE_FIELD_NUMBER = 2;
private java.lang.Object applicationProcessInstance_;
public boolean hasApplicationProcessInstance() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
public String getApplicationProcessInstance() {
java.lang.Object ref = applicationProcessInstance_;
if (ref instanceof String) {
return (String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
if (com.google.protobuf.Internal.isValidUtf8(bs)) {
applicationProcessInstance_ = s;
}
return s;
}
}
private com.google.protobuf.ByteString getApplicationProcessInstanceBytes() {
java.lang.Object ref = applicationProcessInstance_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((String) ref);
applicationProcessInstance_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional uint64 address = 3;
public static final int ADDRESS_FIELD_NUMBER = 3;
private long address_;
public boolean hasAddress() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
public long getAddress() {
return address_;
}
private void initFields() {
applicationProcessName_ = "";
applicationProcessInstance_ = "";
address_ = 0L;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getApplicationProcessNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getApplicationProcessInstanceBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeUInt64(3, address_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getApplicationProcessNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getApplicationProcessInstanceBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, address_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static rina.object.gpb.Neighbour_t.neighbor_t parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static rina.object.gpb.Neighbour_t.neighbor_t parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static rina.object.gpb.Neighbour_t.neighbor_t parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static rina.object.gpb.Neighbour_t.neighbor_t parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static rina.object.gpb.Neighbour_t.neighbor_t parseFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static rina.object.gpb.Neighbour_t.neighbor_t parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static rina.object.gpb.Neighbour_t.neighbor_t parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input)) {
return builder.buildParsed();
} else {
return null;
}
}
public static rina.object.gpb.Neighbour_t.neighbor_t parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
return builder.buildParsed();
} else {
return null;
}
}
public static rina.object.gpb.Neighbour_t.neighbor_t parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static rina.object.gpb.Neighbour_t.neighbor_t parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(rina.object.gpb.Neighbour_t.neighbor_t prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements rina.object.gpb.Neighbour_t.neighbor_tOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return rina.object.gpb.Neighbour_t.internal_static_rina_messages_neighbor_t_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return rina.object.gpb.Neighbour_t.internal_static_rina_messages_neighbor_t_fieldAccessorTable;
}
// Construct using rina.messages.Neighbour.neighbor_t.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
applicationProcessName_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
applicationProcessInstance_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
address_ = 0L;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return rina.object.gpb.Neighbour_t.neighbor_t.getDescriptor();
}
public rina.object.gpb.Neighbour_t.neighbor_t getDefaultInstanceForType() {
return rina.object.gpb.Neighbour_t.neighbor_t.getDefaultInstance();
}
public rina.object.gpb.Neighbour_t.neighbor_t build() {
rina.object.gpb.Neighbour_t.neighbor_t result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
private rina.object.gpb.Neighbour_t.neighbor_t buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
rina.object.gpb.Neighbour_t.neighbor_t result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
}
return result;
}
public rina.object.gpb.Neighbour_t.neighbor_t buildPartial() {
rina.object.gpb.Neighbour_t.neighbor_t result = new rina.object.gpb.Neighbour_t.neighbor_t(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.applicationProcessName_ = applicationProcessName_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.applicationProcessInstance_ = applicationProcessInstance_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.address_ = address_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof rina.object.gpb.Neighbour_t.neighbor_t) {
return mergeFrom((rina.object.gpb.Neighbour_t.neighbor_t)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(rina.object.gpb.Neighbour_t.neighbor_t other) {
if (other == rina.object.gpb.Neighbour_t.neighbor_t.getDefaultInstance()) return this;
if (other.hasApplicationProcessName()) {
setApplicationProcessName(other.getApplicationProcessName());
}
if (other.hasApplicationProcessInstance()) {
setApplicationProcessInstance(other.getApplicationProcessInstance());
}
if (other.hasAddress()) {
setAddress(other.getAddress());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder(
this.getUnknownFields());
while (true) {
int tag = input.readTag();
switch (tag) {
case 0:
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
applicationProcessName_ = input.readBytes();
break;
}
case 18: {
bitField0_ |= 0x00000002;
applicationProcessInstance_ = input.readBytes();
break;
}
case 24: {
bitField0_ |= 0x00000004;
address_ = input.readUInt64();
break;
}
}
}
}
private int bitField0_;
// optional string applicationProcessName = 1;
private java.lang.Object applicationProcessName_ = "";
public boolean hasApplicationProcessName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
public String getApplicationProcessName() {
java.lang.Object ref = applicationProcessName_;
if (!(ref instanceof String)) {
String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
applicationProcessName_ = s;
return s;
} else {
return (String) ref;
}
}
public Builder setApplicationProcessName(String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
applicationProcessName_ = value;
onChanged();
return this;
}
public Builder clearApplicationProcessName() {
bitField0_ = (bitField0_ & ~0x00000001);
applicationProcessName_ = getDefaultInstance().getApplicationProcessName();
onChanged();
return this;
}
void setApplicationProcessName(com.google.protobuf.ByteString value) {
bitField0_ |= 0x00000001;
applicationProcessName_ = value;
onChanged();
}
// optional string applicationProcessInstance = 2;
private java.lang.Object applicationProcessInstance_ = "";
public boolean hasApplicationProcessInstance() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
public String getApplicationProcessInstance() {
java.lang.Object ref = applicationProcessInstance_;
if (!(ref instanceof String)) {
String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
applicationProcessInstance_ = s;
return s;
} else {
return (String) ref;
}
}
public Builder setApplicationProcessInstance(String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
applicationProcessInstance_ = value;
onChanged();
return this;
}
public Builder clearApplicationProcessInstance() {
bitField0_ = (bitField0_ & ~0x00000002);
applicationProcessInstance_ = getDefaultInstance().getApplicationProcessInstance();
onChanged();
return this;
}
void setApplicationProcessInstance(com.google.protobuf.ByteString value) {
bitField0_ |= 0x00000002;
applicationProcessInstance_ = value;
onChanged();
}
// optional uint64 address = 3;
private long address_ ;
public boolean hasAddress() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
public long getAddress() {
return address_;
}
public Builder setAddress(long value) {
bitField0_ |= 0x00000004;
address_ = value;
onChanged();
return this;
}
public Builder clearAddress() {
bitField0_ = (bitField0_ & ~0x00000004);
address_ = 0L;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:rina.messages.neighbor_t)
}
static {
defaultInstance = new neighbor_t(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:rina.messages.neighbor_t)
}
private static com.google.protobuf.Descriptors.Descriptor
internal_static_rina_messages_neighbors_t_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_rina_messages_neighbors_t_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_rina_messages_neighbor_t_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_rina_messages_neighbor_t_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\017neighbour.proto\022\rrina.messages\":\n\013neig" +
"hbors_t\022+\n\010neighbor\030\001 \003(\0132\031.rina.message" +
"s.neighbor_t\"a\n\nneighbor_t\022\036\n\026applicatio" +
"nProcessName\030\001 \001(\t\022\"\n\032applicationProcess" +
"Instance\030\002 \001(\t\022\017\n\007address\030\003 \001(\004"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
internal_static_rina_messages_neighbors_t_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_rina_messages_neighbors_t_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_rina_messages_neighbors_t_descriptor,
new java.lang.String[] { "Neighbor", },
rina.object.gpb.Neighbour_t.neighbors_t.class,
rina.object.gpb.Neighbour_t.neighbors_t.Builder.class);
internal_static_rina_messages_neighbor_t_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_rina_messages_neighbor_t_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_rina_messages_neighbor_t_descriptor,
new java.lang.String[] { "ApplicationProcessName", "ApplicationProcessInstance", "Address", },
rina.object.gpb.Neighbour_t.neighbor_t.class,
rina.object.gpb.Neighbour_t.neighbor_t.Builder.class);
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
}, assigner);
}
// @@protoc_insertion_point(outer_class_scope)
}