com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: naming_protocol.proto
package com.microsoft.reef.io.network.proto;
public final class ReefNetworkNamingProtos {
private ReefNetworkNamingProtos() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface NamingLookupRequestPBufOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// repeated string ids = 1;
/**
* repeated string ids = 1;
*/
java.util.List
getIdsList();
/**
* repeated string ids = 1;
*/
int getIdsCount();
/**
* repeated string ids = 1;
*/
java.lang.String getIds(int index);
/**
* repeated string ids = 1;
*/
com.google.protobuf.ByteString
getIdsBytes(int index);
}
/**
* Protobuf type {@code NamingLookupRequestPBuf}
*/
public static final class NamingLookupRequestPBuf extends
com.google.protobuf.GeneratedMessage
implements NamingLookupRequestPBufOrBuilder {
// Use NamingLookupRequestPBuf.newBuilder() to construct.
private NamingLookupRequestPBuf(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private NamingLookupRequestPBuf(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final NamingLookupRequestPBuf defaultInstance;
public static NamingLookupRequestPBuf getDefaultInstance() {
return defaultInstance;
}
public NamingLookupRequestPBuf getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NamingLookupRequestPBuf(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
ids_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
ids_.add(input.readBytes());
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
ids_ = new com.google.protobuf.UnmodifiableLazyStringList(ids_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.internal_static_NamingLookupRequestPBuf_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.internal_static_NamingLookupRequestPBuf_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupRequestPBuf.class, com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupRequestPBuf.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public NamingLookupRequestPBuf parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new NamingLookupRequestPBuf(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
// repeated string ids = 1;
public static final int IDS_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList ids_;
/**
* repeated string ids = 1;
*/
public java.util.List
getIdsList() {
return ids_;
}
/**
* repeated string ids = 1;
*/
public int getIdsCount() {
return ids_.size();
}
/**
* repeated string ids = 1;
*/
public java.lang.String getIds(int index) {
return ids_.get(index);
}
/**
* repeated string ids = 1;
*/
public com.google.protobuf.ByteString
getIdsBytes(int index) {
return ids_.getByteString(index);
}
private void initFields() {
ids_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
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 < ids_.size(); i++) {
output.writeBytes(1, ids_.getByteString(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < ids_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(ids_.getByteString(i));
}
size += dataSize;
size += 1 * getIdsList().size();
}
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();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupRequestPBuf)) {
return super.equals(obj);
}
com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupRequestPBuf other = (com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupRequestPBuf) obj;
boolean result = true;
result = result && getIdsList()
.equals(other.getIdsList());
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (getIdsCount() > 0) {
hash = (37 * hash) + IDS_FIELD_NUMBER;
hash = (53 * hash) + getIdsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupRequestPBuf parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupRequestPBuf parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupRequestPBuf parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupRequestPBuf parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupRequestPBuf parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupRequestPBuf parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupRequestPBuf parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupRequestPBuf parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupRequestPBuf parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupRequestPBuf parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupRequestPBuf 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;
}
/**
* Protobuf type {@code NamingLookupRequestPBuf}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupRequestPBufOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.internal_static_NamingLookupRequestPBuf_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.internal_static_NamingLookupRequestPBuf_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupRequestPBuf.class, com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupRequestPBuf.Builder.class);
}
// Construct using com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupRequestPBuf.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.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();
ids_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.internal_static_NamingLookupRequestPBuf_descriptor;
}
public com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupRequestPBuf getDefaultInstanceForType() {
return com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupRequestPBuf.getDefaultInstance();
}
public com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupRequestPBuf build() {
com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupRequestPBuf result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupRequestPBuf buildPartial() {
com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupRequestPBuf result = new com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupRequestPBuf(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
ids_ = new com.google.protobuf.UnmodifiableLazyStringList(
ids_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.ids_ = ids_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupRequestPBuf) {
return mergeFrom((com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupRequestPBuf)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupRequestPBuf other) {
if (other == com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupRequestPBuf.getDefaultInstance()) return this;
if (!other.ids_.isEmpty()) {
if (ids_.isEmpty()) {
ids_ = other.ids_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureIdsIsMutable();
ids_.addAll(other.ids_);
}
onChanged();
}
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.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupRequestPBuf parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupRequestPBuf) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// repeated string ids = 1;
private com.google.protobuf.LazyStringList ids_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureIdsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
ids_ = new com.google.protobuf.LazyStringArrayList(ids_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string ids = 1;
*/
public java.util.List
getIdsList() {
return java.util.Collections.unmodifiableList(ids_);
}
/**
* repeated string ids = 1;
*/
public int getIdsCount() {
return ids_.size();
}
/**
* repeated string ids = 1;
*/
public java.lang.String getIds(int index) {
return ids_.get(index);
}
/**
* repeated string ids = 1;
*/
public com.google.protobuf.ByteString
getIdsBytes(int index) {
return ids_.getByteString(index);
}
/**
* repeated string ids = 1;
*/
public Builder setIds(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureIdsIsMutable();
ids_.set(index, value);
onChanged();
return this;
}
/**
* repeated string ids = 1;
*/
public Builder addIds(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureIdsIsMutable();
ids_.add(value);
onChanged();
return this;
}
/**
* repeated string ids = 1;
*/
public Builder addAllIds(
java.lang.Iterable values) {
ensureIdsIsMutable();
super.addAll(values, ids_);
onChanged();
return this;
}
/**
* repeated string ids = 1;
*/
public Builder clearIds() {
ids_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string ids = 1;
*/
public Builder addIdsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureIdsIsMutable();
ids_.add(value);
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:NamingLookupRequestPBuf)
}
static {
defaultInstance = new NamingLookupRequestPBuf(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:NamingLookupRequestPBuf)
}
public interface NamingLookupResponsePBufOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// repeated .NameAssignmentPBuf tuples = 1;
/**
* repeated .NameAssignmentPBuf tuples = 1;
*/
java.util.List
getTuplesList();
/**
* repeated .NameAssignmentPBuf tuples = 1;
*/
com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBuf getTuples(int index);
/**
* repeated .NameAssignmentPBuf tuples = 1;
*/
int getTuplesCount();
/**
* repeated .NameAssignmentPBuf tuples = 1;
*/
java.util.List extends com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBufOrBuilder>
getTuplesOrBuilderList();
/**
* repeated .NameAssignmentPBuf tuples = 1;
*/
com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBufOrBuilder getTuplesOrBuilder(
int index);
}
/**
* Protobuf type {@code NamingLookupResponsePBuf}
*/
public static final class NamingLookupResponsePBuf extends
com.google.protobuf.GeneratedMessage
implements NamingLookupResponsePBufOrBuilder {
// Use NamingLookupResponsePBuf.newBuilder() to construct.
private NamingLookupResponsePBuf(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private NamingLookupResponsePBuf(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final NamingLookupResponsePBuf defaultInstance;
public static NamingLookupResponsePBuf getDefaultInstance() {
return defaultInstance;
}
public NamingLookupResponsePBuf getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NamingLookupResponsePBuf(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
tuples_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
tuples_.add(input.readMessage(com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBuf.PARSER, extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
tuples_ = java.util.Collections.unmodifiableList(tuples_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.internal_static_NamingLookupResponsePBuf_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.internal_static_NamingLookupResponsePBuf_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupResponsePBuf.class, com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupResponsePBuf.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public NamingLookupResponsePBuf parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new NamingLookupResponsePBuf(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
// repeated .NameAssignmentPBuf tuples = 1;
public static final int TUPLES_FIELD_NUMBER = 1;
private java.util.List tuples_;
/**
* repeated .NameAssignmentPBuf tuples = 1;
*/
public java.util.List getTuplesList() {
return tuples_;
}
/**
* repeated .NameAssignmentPBuf tuples = 1;
*/
public java.util.List extends com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBufOrBuilder>
getTuplesOrBuilderList() {
return tuples_;
}
/**
* repeated .NameAssignmentPBuf tuples = 1;
*/
public int getTuplesCount() {
return tuples_.size();
}
/**
* repeated .NameAssignmentPBuf tuples = 1;
*/
public com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBuf getTuples(int index) {
return tuples_.get(index);
}
/**
* repeated .NameAssignmentPBuf tuples = 1;
*/
public com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBufOrBuilder getTuplesOrBuilder(
int index) {
return tuples_.get(index);
}
private void initFields() {
tuples_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
for (int i = 0; i < getTuplesCount(); i++) {
if (!getTuples(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < tuples_.size(); i++) {
output.writeMessage(1, tuples_.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 < tuples_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, tuples_.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();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupResponsePBuf)) {
return super.equals(obj);
}
com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupResponsePBuf other = (com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupResponsePBuf) obj;
boolean result = true;
result = result && getTuplesList()
.equals(other.getTuplesList());
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (getTuplesCount() > 0) {
hash = (37 * hash) + TUPLES_FIELD_NUMBER;
hash = (53 * hash) + getTuplesList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupResponsePBuf parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupResponsePBuf parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupResponsePBuf parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupResponsePBuf parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupResponsePBuf parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupResponsePBuf parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupResponsePBuf parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupResponsePBuf parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupResponsePBuf parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupResponsePBuf parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupResponsePBuf 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;
}
/**
* Protobuf type {@code NamingLookupResponsePBuf}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupResponsePBufOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.internal_static_NamingLookupResponsePBuf_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.internal_static_NamingLookupResponsePBuf_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupResponsePBuf.class, com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupResponsePBuf.Builder.class);
}
// Construct using com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupResponsePBuf.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getTuplesFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (tuplesBuilder_ == null) {
tuples_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
tuplesBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.internal_static_NamingLookupResponsePBuf_descriptor;
}
public com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupResponsePBuf getDefaultInstanceForType() {
return com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupResponsePBuf.getDefaultInstance();
}
public com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupResponsePBuf build() {
com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupResponsePBuf result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupResponsePBuf buildPartial() {
com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupResponsePBuf result = new com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupResponsePBuf(this);
int from_bitField0_ = bitField0_;
if (tuplesBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
tuples_ = java.util.Collections.unmodifiableList(tuples_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.tuples_ = tuples_;
} else {
result.tuples_ = tuplesBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupResponsePBuf) {
return mergeFrom((com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupResponsePBuf)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupResponsePBuf other) {
if (other == com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupResponsePBuf.getDefaultInstance()) return this;
if (tuplesBuilder_ == null) {
if (!other.tuples_.isEmpty()) {
if (tuples_.isEmpty()) {
tuples_ = other.tuples_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureTuplesIsMutable();
tuples_.addAll(other.tuples_);
}
onChanged();
}
} else {
if (!other.tuples_.isEmpty()) {
if (tuplesBuilder_.isEmpty()) {
tuplesBuilder_.dispose();
tuplesBuilder_ = null;
tuples_ = other.tuples_;
bitField0_ = (bitField0_ & ~0x00000001);
tuplesBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getTuplesFieldBuilder() : null;
} else {
tuplesBuilder_.addAllMessages(other.tuples_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getTuplesCount(); i++) {
if (!getTuples(i).isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupResponsePBuf parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingLookupResponsePBuf) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// repeated .NameAssignmentPBuf tuples = 1;
private java.util.List tuples_ =
java.util.Collections.emptyList();
private void ensureTuplesIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
tuples_ = new java.util.ArrayList(tuples_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBuf, com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBuf.Builder, com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBufOrBuilder> tuplesBuilder_;
/**
* repeated .NameAssignmentPBuf tuples = 1;
*/
public java.util.List getTuplesList() {
if (tuplesBuilder_ == null) {
return java.util.Collections.unmodifiableList(tuples_);
} else {
return tuplesBuilder_.getMessageList();
}
}
/**
* repeated .NameAssignmentPBuf tuples = 1;
*/
public int getTuplesCount() {
if (tuplesBuilder_ == null) {
return tuples_.size();
} else {
return tuplesBuilder_.getCount();
}
}
/**
* repeated .NameAssignmentPBuf tuples = 1;
*/
public com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBuf getTuples(int index) {
if (tuplesBuilder_ == null) {
return tuples_.get(index);
} else {
return tuplesBuilder_.getMessage(index);
}
}
/**
* repeated .NameAssignmentPBuf tuples = 1;
*/
public Builder setTuples(
int index, com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBuf value) {
if (tuplesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTuplesIsMutable();
tuples_.set(index, value);
onChanged();
} else {
tuplesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .NameAssignmentPBuf tuples = 1;
*/
public Builder setTuples(
int index, com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBuf.Builder builderForValue) {
if (tuplesBuilder_ == null) {
ensureTuplesIsMutable();
tuples_.set(index, builderForValue.build());
onChanged();
} else {
tuplesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .NameAssignmentPBuf tuples = 1;
*/
public Builder addTuples(com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBuf value) {
if (tuplesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTuplesIsMutable();
tuples_.add(value);
onChanged();
} else {
tuplesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .NameAssignmentPBuf tuples = 1;
*/
public Builder addTuples(
int index, com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBuf value) {
if (tuplesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTuplesIsMutable();
tuples_.add(index, value);
onChanged();
} else {
tuplesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .NameAssignmentPBuf tuples = 1;
*/
public Builder addTuples(
com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBuf.Builder builderForValue) {
if (tuplesBuilder_ == null) {
ensureTuplesIsMutable();
tuples_.add(builderForValue.build());
onChanged();
} else {
tuplesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .NameAssignmentPBuf tuples = 1;
*/
public Builder addTuples(
int index, com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBuf.Builder builderForValue) {
if (tuplesBuilder_ == null) {
ensureTuplesIsMutable();
tuples_.add(index, builderForValue.build());
onChanged();
} else {
tuplesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .NameAssignmentPBuf tuples = 1;
*/
public Builder addAllTuples(
java.lang.Iterable extends com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBuf> values) {
if (tuplesBuilder_ == null) {
ensureTuplesIsMutable();
super.addAll(values, tuples_);
onChanged();
} else {
tuplesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .NameAssignmentPBuf tuples = 1;
*/
public Builder clearTuples() {
if (tuplesBuilder_ == null) {
tuples_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
tuplesBuilder_.clear();
}
return this;
}
/**
* repeated .NameAssignmentPBuf tuples = 1;
*/
public Builder removeTuples(int index) {
if (tuplesBuilder_ == null) {
ensureTuplesIsMutable();
tuples_.remove(index);
onChanged();
} else {
tuplesBuilder_.remove(index);
}
return this;
}
/**
* repeated .NameAssignmentPBuf tuples = 1;
*/
public com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBuf.Builder getTuplesBuilder(
int index) {
return getTuplesFieldBuilder().getBuilder(index);
}
/**
* repeated .NameAssignmentPBuf tuples = 1;
*/
public com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBufOrBuilder getTuplesOrBuilder(
int index) {
if (tuplesBuilder_ == null) {
return tuples_.get(index); } else {
return tuplesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .NameAssignmentPBuf tuples = 1;
*/
public java.util.List extends com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBufOrBuilder>
getTuplesOrBuilderList() {
if (tuplesBuilder_ != null) {
return tuplesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(tuples_);
}
}
/**
* repeated .NameAssignmentPBuf tuples = 1;
*/
public com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBuf.Builder addTuplesBuilder() {
return getTuplesFieldBuilder().addBuilder(
com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBuf.getDefaultInstance());
}
/**
* repeated .NameAssignmentPBuf tuples = 1;
*/
public com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBuf.Builder addTuplesBuilder(
int index) {
return getTuplesFieldBuilder().addBuilder(
index, com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBuf.getDefaultInstance());
}
/**
* repeated .NameAssignmentPBuf tuples = 1;
*/
public java.util.List
getTuplesBuilderList() {
return getTuplesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBuf, com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBuf.Builder, com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBufOrBuilder>
getTuplesFieldBuilder() {
if (tuplesBuilder_ == null) {
tuplesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBuf, com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBuf.Builder, com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBufOrBuilder>(
tuples_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
tuples_ = null;
}
return tuplesBuilder_;
}
// @@protoc_insertion_point(builder_scope:NamingLookupResponsePBuf)
}
static {
defaultInstance = new NamingLookupResponsePBuf(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:NamingLookupResponsePBuf)
}
public interface NameAssignmentPBufOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required string id = 1;
/**
* required string id = 1;
*/
boolean hasId();
/**
* required string id = 1;
*/
java.lang.String getId();
/**
* required string id = 1;
*/
com.google.protobuf.ByteString
getIdBytes();
// required string host = 2;
/**
* required string host = 2;
*/
boolean hasHost();
/**
* required string host = 2;
*/
java.lang.String getHost();
/**
* required string host = 2;
*/
com.google.protobuf.ByteString
getHostBytes();
// required int32 port = 3;
/**
* required int32 port = 3;
*/
boolean hasPort();
/**
* required int32 port = 3;
*/
int getPort();
}
/**
* Protobuf type {@code NameAssignmentPBuf}
*/
public static final class NameAssignmentPBuf extends
com.google.protobuf.GeneratedMessage
implements NameAssignmentPBufOrBuilder {
// Use NameAssignmentPBuf.newBuilder() to construct.
private NameAssignmentPBuf(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private NameAssignmentPBuf(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final NameAssignmentPBuf defaultInstance;
public static NameAssignmentPBuf getDefaultInstance() {
return defaultInstance;
}
public NameAssignmentPBuf getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NameAssignmentPBuf(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
id_ = input.readBytes();
break;
}
case 18: {
bitField0_ |= 0x00000002;
host_ = input.readBytes();
break;
}
case 24: {
bitField0_ |= 0x00000004;
port_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.internal_static_NameAssignmentPBuf_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.internal_static_NameAssignmentPBuf_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBuf.class, com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBuf.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public NameAssignmentPBuf parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new NameAssignmentPBuf(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required string id = 1;
public static final int ID_FIELD_NUMBER = 1;
private java.lang.Object id_;
/**
* required string id = 1;
*/
public boolean hasId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string id = 1;
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
id_ = s;
}
return s;
}
}
/**
* required string id = 1;
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required string host = 2;
public static final int HOST_FIELD_NUMBER = 2;
private java.lang.Object host_;
/**
* required string host = 2;
*/
public boolean hasHost() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required string host = 2;
*/
public java.lang.String getHost() {
java.lang.Object ref = host_;
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();
if (bs.isValidUtf8()) {
host_ = s;
}
return s;
}
}
/**
* required string host = 2;
*/
public com.google.protobuf.ByteString
getHostBytes() {
java.lang.Object ref = host_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
host_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required int32 port = 3;
public static final int PORT_FIELD_NUMBER = 3;
private int port_;
/**
* required int32 port = 3;
*/
public boolean hasPort() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required int32 port = 3;
*/
public int getPort() {
return port_;
}
private void initFields() {
id_ = "";
host_ = "";
port_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasId()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasHost()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasPort()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getIdBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getHostBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt32(3, port_);
}
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, getIdBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getHostBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, port_);
}
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();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBuf)) {
return super.equals(obj);
}
com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBuf other = (com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBuf) obj;
boolean result = true;
result = result && (hasId() == other.hasId());
if (hasId()) {
result = result && getId()
.equals(other.getId());
}
result = result && (hasHost() == other.hasHost());
if (hasHost()) {
result = result && getHost()
.equals(other.getHost());
}
result = result && (hasPort() == other.hasPort());
if (hasPort()) {
result = result && (getPort()
== other.getPort());
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasId()) {
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
}
if (hasHost()) {
hash = (37 * hash) + HOST_FIELD_NUMBER;
hash = (53 * hash) + getHost().hashCode();
}
if (hasPort()) {
hash = (37 * hash) + PORT_FIELD_NUMBER;
hash = (53 * hash) + getPort();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBuf parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBuf parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBuf parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBuf parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBuf parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBuf parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBuf parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBuf parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBuf parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBuf parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBuf 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;
}
/**
* Protobuf type {@code NameAssignmentPBuf}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBufOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.internal_static_NameAssignmentPBuf_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.internal_static_NameAssignmentPBuf_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBuf.class, com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBuf.Builder.class);
}
// Construct using com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBuf.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.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();
id_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
host_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
port_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.internal_static_NameAssignmentPBuf_descriptor;
}
public com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBuf getDefaultInstanceForType() {
return com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBuf.getDefaultInstance();
}
public com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBuf build() {
com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBuf result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBuf buildPartial() {
com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBuf result = new com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBuf(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.id_ = id_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.host_ = host_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.port_ = port_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBuf) {
return mergeFrom((com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBuf)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBuf other) {
if (other == com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBuf.getDefaultInstance()) return this;
if (other.hasId()) {
bitField0_ |= 0x00000001;
id_ = other.id_;
onChanged();
}
if (other.hasHost()) {
bitField0_ |= 0x00000002;
host_ = other.host_;
onChanged();
}
if (other.hasPort()) {
setPort(other.getPort());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasId()) {
return false;
}
if (!hasHost()) {
return false;
}
if (!hasPort()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBuf parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NameAssignmentPBuf) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required string id = 1;
private java.lang.Object id_ = "";
/**
* required string id = 1;
*/
public boolean hasId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string id = 1;
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string id = 1;
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string id = 1;
*/
public Builder setId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
id_ = value;
onChanged();
return this;
}
/**
* required string id = 1;
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000001);
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
* required string id = 1;
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
id_ = value;
onChanged();
return this;
}
// required string host = 2;
private java.lang.Object host_ = "";
/**
* required string host = 2;
*/
public boolean hasHost() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required string host = 2;
*/
public java.lang.String getHost() {
java.lang.Object ref = host_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
host_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string host = 2;
*/
public com.google.protobuf.ByteString
getHostBytes() {
java.lang.Object ref = host_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
host_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string host = 2;
*/
public Builder setHost(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
host_ = value;
onChanged();
return this;
}
/**
* required string host = 2;
*/
public Builder clearHost() {
bitField0_ = (bitField0_ & ~0x00000002);
host_ = getDefaultInstance().getHost();
onChanged();
return this;
}
/**
* required string host = 2;
*/
public Builder setHostBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
host_ = value;
onChanged();
return this;
}
// required int32 port = 3;
private int port_ ;
/**
* required int32 port = 3;
*/
public boolean hasPort() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required int32 port = 3;
*/
public int getPort() {
return port_;
}
/**
* required int32 port = 3;
*/
public Builder setPort(int value) {
bitField0_ |= 0x00000004;
port_ = value;
onChanged();
return this;
}
/**
* required int32 port = 3;
*/
public Builder clearPort() {
bitField0_ = (bitField0_ & ~0x00000004);
port_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:NameAssignmentPBuf)
}
static {
defaultInstance = new NameAssignmentPBuf(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:NameAssignmentPBuf)
}
public interface NamingRegisterRequestPBufOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required string id = 1;
/**
* required string id = 1;
*/
boolean hasId();
/**
* required string id = 1;
*/
java.lang.String getId();
/**
* required string id = 1;
*/
com.google.protobuf.ByteString
getIdBytes();
// required string host = 2;
/**
* required string host = 2;
*/
boolean hasHost();
/**
* required string host = 2;
*/
java.lang.String getHost();
/**
* required string host = 2;
*/
com.google.protobuf.ByteString
getHostBytes();
// required int32 port = 3;
/**
* required int32 port = 3;
*/
boolean hasPort();
/**
* required int32 port = 3;
*/
int getPort();
}
/**
* Protobuf type {@code NamingRegisterRequestPBuf}
*/
public static final class NamingRegisterRequestPBuf extends
com.google.protobuf.GeneratedMessage
implements NamingRegisterRequestPBufOrBuilder {
// Use NamingRegisterRequestPBuf.newBuilder() to construct.
private NamingRegisterRequestPBuf(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private NamingRegisterRequestPBuf(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final NamingRegisterRequestPBuf defaultInstance;
public static NamingRegisterRequestPBuf getDefaultInstance() {
return defaultInstance;
}
public NamingRegisterRequestPBuf getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NamingRegisterRequestPBuf(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
id_ = input.readBytes();
break;
}
case 18: {
bitField0_ |= 0x00000002;
host_ = input.readBytes();
break;
}
case 24: {
bitField0_ |= 0x00000004;
port_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.internal_static_NamingRegisterRequestPBuf_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.internal_static_NamingRegisterRequestPBuf_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingRegisterRequestPBuf.class, com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingRegisterRequestPBuf.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public NamingRegisterRequestPBuf parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new NamingRegisterRequestPBuf(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required string id = 1;
public static final int ID_FIELD_NUMBER = 1;
private java.lang.Object id_;
/**
* required string id = 1;
*/
public boolean hasId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string id = 1;
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
id_ = s;
}
return s;
}
}
/**
* required string id = 1;
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required string host = 2;
public static final int HOST_FIELD_NUMBER = 2;
private java.lang.Object host_;
/**
* required string host = 2;
*/
public boolean hasHost() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required string host = 2;
*/
public java.lang.String getHost() {
java.lang.Object ref = host_;
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();
if (bs.isValidUtf8()) {
host_ = s;
}
return s;
}
}
/**
* required string host = 2;
*/
public com.google.protobuf.ByteString
getHostBytes() {
java.lang.Object ref = host_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
host_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required int32 port = 3;
public static final int PORT_FIELD_NUMBER = 3;
private int port_;
/**
* required int32 port = 3;
*/
public boolean hasPort() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required int32 port = 3;
*/
public int getPort() {
return port_;
}
private void initFields() {
id_ = "";
host_ = "";
port_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasId()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasHost()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasPort()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getIdBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getHostBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt32(3, port_);
}
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, getIdBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getHostBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, port_);
}
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();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingRegisterRequestPBuf)) {
return super.equals(obj);
}
com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingRegisterRequestPBuf other = (com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingRegisterRequestPBuf) obj;
boolean result = true;
result = result && (hasId() == other.hasId());
if (hasId()) {
result = result && getId()
.equals(other.getId());
}
result = result && (hasHost() == other.hasHost());
if (hasHost()) {
result = result && getHost()
.equals(other.getHost());
}
result = result && (hasPort() == other.hasPort());
if (hasPort()) {
result = result && (getPort()
== other.getPort());
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasId()) {
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
}
if (hasHost()) {
hash = (37 * hash) + HOST_FIELD_NUMBER;
hash = (53 * hash) + getHost().hashCode();
}
if (hasPort()) {
hash = (37 * hash) + PORT_FIELD_NUMBER;
hash = (53 * hash) + getPort();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingRegisterRequestPBuf parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingRegisterRequestPBuf parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingRegisterRequestPBuf parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingRegisterRequestPBuf parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingRegisterRequestPBuf parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingRegisterRequestPBuf parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingRegisterRequestPBuf parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingRegisterRequestPBuf parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingRegisterRequestPBuf parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingRegisterRequestPBuf parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingRegisterRequestPBuf 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;
}
/**
* Protobuf type {@code NamingRegisterRequestPBuf}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingRegisterRequestPBufOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.internal_static_NamingRegisterRequestPBuf_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.internal_static_NamingRegisterRequestPBuf_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingRegisterRequestPBuf.class, com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingRegisterRequestPBuf.Builder.class);
}
// Construct using com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingRegisterRequestPBuf.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.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();
id_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
host_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
port_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.internal_static_NamingRegisterRequestPBuf_descriptor;
}
public com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingRegisterRequestPBuf getDefaultInstanceForType() {
return com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingRegisterRequestPBuf.getDefaultInstance();
}
public com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingRegisterRequestPBuf build() {
com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingRegisterRequestPBuf result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingRegisterRequestPBuf buildPartial() {
com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingRegisterRequestPBuf result = new com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingRegisterRequestPBuf(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.id_ = id_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.host_ = host_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.port_ = port_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingRegisterRequestPBuf) {
return mergeFrom((com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingRegisterRequestPBuf)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingRegisterRequestPBuf other) {
if (other == com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingRegisterRequestPBuf.getDefaultInstance()) return this;
if (other.hasId()) {
bitField0_ |= 0x00000001;
id_ = other.id_;
onChanged();
}
if (other.hasHost()) {
bitField0_ |= 0x00000002;
host_ = other.host_;
onChanged();
}
if (other.hasPort()) {
setPort(other.getPort());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasId()) {
return false;
}
if (!hasHost()) {
return false;
}
if (!hasPort()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingRegisterRequestPBuf parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingRegisterRequestPBuf) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required string id = 1;
private java.lang.Object id_ = "";
/**
* required string id = 1;
*/
public boolean hasId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string id = 1;
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string id = 1;
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string id = 1;
*/
public Builder setId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
id_ = value;
onChanged();
return this;
}
/**
* required string id = 1;
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000001);
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
* required string id = 1;
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
id_ = value;
onChanged();
return this;
}
// required string host = 2;
private java.lang.Object host_ = "";
/**
* required string host = 2;
*/
public boolean hasHost() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required string host = 2;
*/
public java.lang.String getHost() {
java.lang.Object ref = host_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
host_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string host = 2;
*/
public com.google.protobuf.ByteString
getHostBytes() {
java.lang.Object ref = host_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
host_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string host = 2;
*/
public Builder setHost(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
host_ = value;
onChanged();
return this;
}
/**
* required string host = 2;
*/
public Builder clearHost() {
bitField0_ = (bitField0_ & ~0x00000002);
host_ = getDefaultInstance().getHost();
onChanged();
return this;
}
/**
* required string host = 2;
*/
public Builder setHostBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
host_ = value;
onChanged();
return this;
}
// required int32 port = 3;
private int port_ ;
/**
* required int32 port = 3;
*/
public boolean hasPort() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required int32 port = 3;
*/
public int getPort() {
return port_;
}
/**
* required int32 port = 3;
*/
public Builder setPort(int value) {
bitField0_ |= 0x00000004;
port_ = value;
onChanged();
return this;
}
/**
* required int32 port = 3;
*/
public Builder clearPort() {
bitField0_ = (bitField0_ & ~0x00000004);
port_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:NamingRegisterRequestPBuf)
}
static {
defaultInstance = new NamingRegisterRequestPBuf(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:NamingRegisterRequestPBuf)
}
public interface NamingUnregisterRequestPBufOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required string id = 1;
/**
* required string id = 1;
*/
boolean hasId();
/**
* required string id = 1;
*/
java.lang.String getId();
/**
* required string id = 1;
*/
com.google.protobuf.ByteString
getIdBytes();
}
/**
* Protobuf type {@code NamingUnregisterRequestPBuf}
*/
public static final class NamingUnregisterRequestPBuf extends
com.google.protobuf.GeneratedMessage
implements NamingUnregisterRequestPBufOrBuilder {
// Use NamingUnregisterRequestPBuf.newBuilder() to construct.
private NamingUnregisterRequestPBuf(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private NamingUnregisterRequestPBuf(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final NamingUnregisterRequestPBuf defaultInstance;
public static NamingUnregisterRequestPBuf getDefaultInstance() {
return defaultInstance;
}
public NamingUnregisterRequestPBuf getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NamingUnregisterRequestPBuf(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
id_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.internal_static_NamingUnregisterRequestPBuf_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.internal_static_NamingUnregisterRequestPBuf_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingUnregisterRequestPBuf.class, com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingUnregisterRequestPBuf.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public NamingUnregisterRequestPBuf parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new NamingUnregisterRequestPBuf(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required string id = 1;
public static final int ID_FIELD_NUMBER = 1;
private java.lang.Object id_;
/**
* required string id = 1;
*/
public boolean hasId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string id = 1;
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
id_ = s;
}
return s;
}
}
/**
* required string id = 1;
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
id_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasId()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getIdBytes());
}
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, getIdBytes());
}
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();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingUnregisterRequestPBuf)) {
return super.equals(obj);
}
com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingUnregisterRequestPBuf other = (com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingUnregisterRequestPBuf) obj;
boolean result = true;
result = result && (hasId() == other.hasId());
if (hasId()) {
result = result && getId()
.equals(other.getId());
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasId()) {
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingUnregisterRequestPBuf parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingUnregisterRequestPBuf parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingUnregisterRequestPBuf parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingUnregisterRequestPBuf parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingUnregisterRequestPBuf parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingUnregisterRequestPBuf parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingUnregisterRequestPBuf parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingUnregisterRequestPBuf parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingUnregisterRequestPBuf parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingUnregisterRequestPBuf parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingUnregisterRequestPBuf 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;
}
/**
* Protobuf type {@code NamingUnregisterRequestPBuf}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingUnregisterRequestPBufOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.internal_static_NamingUnregisterRequestPBuf_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.internal_static_NamingUnregisterRequestPBuf_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingUnregisterRequestPBuf.class, com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingUnregisterRequestPBuf.Builder.class);
}
// Construct using com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingUnregisterRequestPBuf.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.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();
id_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.internal_static_NamingUnregisterRequestPBuf_descriptor;
}
public com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingUnregisterRequestPBuf getDefaultInstanceForType() {
return com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingUnregisterRequestPBuf.getDefaultInstance();
}
public com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingUnregisterRequestPBuf build() {
com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingUnregisterRequestPBuf result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingUnregisterRequestPBuf buildPartial() {
com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingUnregisterRequestPBuf result = new com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingUnregisterRequestPBuf(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.id_ = id_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingUnregisterRequestPBuf) {
return mergeFrom((com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingUnregisterRequestPBuf)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingUnregisterRequestPBuf other) {
if (other == com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingUnregisterRequestPBuf.getDefaultInstance()) return this;
if (other.hasId()) {
bitField0_ |= 0x00000001;
id_ = other.id_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasId()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingUnregisterRequestPBuf parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.microsoft.reef.io.network.proto.ReefNetworkNamingProtos.NamingUnregisterRequestPBuf) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required string id = 1;
private java.lang.Object id_ = "";
/**
* required string id = 1;
*/
public boolean hasId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string id = 1;
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string id = 1;
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string id = 1;
*/
public Builder setId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
id_ = value;
onChanged();
return this;
}
/**
* required string id = 1;
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000001);
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
* required string id = 1;
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
id_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:NamingUnregisterRequestPBuf)
}
static {
defaultInstance = new NamingUnregisterRequestPBuf(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:NamingUnregisterRequestPBuf)
}
private static com.google.protobuf.Descriptors.Descriptor
internal_static_NamingLookupRequestPBuf_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_NamingLookupRequestPBuf_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_NamingLookupResponsePBuf_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_NamingLookupResponsePBuf_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_NameAssignmentPBuf_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_NameAssignmentPBuf_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_NamingRegisterRequestPBuf_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_NamingRegisterRequestPBuf_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_NamingUnregisterRequestPBuf_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_NamingUnregisterRequestPBuf_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\025naming_protocol.proto\"&\n\027NamingLookupR" +
"equestPBuf\022\013\n\003ids\030\001 \003(\t\"?\n\030NamingLookupR" +
"esponsePBuf\022#\n\006tuples\030\001 \003(\0132\023.NameAssign" +
"mentPBuf\"<\n\022NameAssignmentPBuf\022\n\n\002id\030\001 \002" +
"(\t\022\014\n\004host\030\002 \002(\t\022\014\n\004port\030\003 \002(\005\"C\n\031Naming" +
"RegisterRequestPBuf\022\n\n\002id\030\001 \002(\t\022\014\n\004host\030" +
"\002 \002(\t\022\014\n\004port\030\003 \002(\005\")\n\033NamingUnregisterR" +
"equestPBuf\022\n\n\002id\030\001 \002(\tBD\n#com.microsoft." +
"reef.io.network.protoB\027ReefNetworkNaming" +
"Protos\210\001\001\240\001\001"
};
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_NamingLookupRequestPBuf_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_NamingLookupRequestPBuf_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_NamingLookupRequestPBuf_descriptor,
new java.lang.String[] { "Ids", });
internal_static_NamingLookupResponsePBuf_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_NamingLookupResponsePBuf_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_NamingLookupResponsePBuf_descriptor,
new java.lang.String[] { "Tuples", });
internal_static_NameAssignmentPBuf_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_NameAssignmentPBuf_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_NameAssignmentPBuf_descriptor,
new java.lang.String[] { "Id", "Host", "Port", });
internal_static_NamingRegisterRequestPBuf_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_NamingRegisterRequestPBuf_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_NamingRegisterRequestPBuf_descriptor,
new java.lang.String[] { "Id", "Host", "Port", });
internal_static_NamingUnregisterRequestPBuf_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_NamingUnregisterRequestPBuf_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_NamingUnregisterRequestPBuf_descriptor,
new java.lang.String[] { "Id", });
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
}, assigner);
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy