com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: group_comm_protocol.proto
package com.microsoft.reef.io.network.proto;
public final class ReefNetworkGroupCommProtos {
private ReefNetworkGroupCommProtos() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface GroupCommMessageOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required .GroupCommMessage.Type type = 1;
/**
* required .GroupCommMessage.Type type = 1;
*
*
* identifies which field is filled in
*
*/
boolean hasType();
/**
* required .GroupCommMessage.Type type = 1;
*
*
* identifies which field is filled in
*
*/
com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupCommMessage.Type getType();
// required string srcid = 2;
/**
* required string srcid = 2;
*/
boolean hasSrcid();
/**
* required string srcid = 2;
*/
java.lang.String getSrcid();
/**
* required string srcid = 2;
*/
com.google.protobuf.ByteString
getSrcidBytes();
// required string destid = 3;
/**
* required string destid = 3;
*/
boolean hasDestid();
/**
* required string destid = 3;
*/
java.lang.String getDestid();
/**
* required string destid = 3;
*/
com.google.protobuf.ByteString
getDestidBytes();
// repeated .GroupMessageBody msgs = 4;
/**
* repeated .GroupMessageBody msgs = 4;
*/
java.util.List
getMsgsList();
/**
* repeated .GroupMessageBody msgs = 4;
*/
com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBody getMsgs(int index);
/**
* repeated .GroupMessageBody msgs = 4;
*/
int getMsgsCount();
/**
* repeated .GroupMessageBody msgs = 4;
*/
java.util.List extends com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBodyOrBuilder>
getMsgsOrBuilderList();
/**
* repeated .GroupMessageBody msgs = 4;
*/
com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBodyOrBuilder getMsgsOrBuilder(
int index);
}
/**
* Protobuf type {@code GroupCommMessage}
*/
public static final class GroupCommMessage extends
com.google.protobuf.GeneratedMessage
implements GroupCommMessageOrBuilder {
// Use GroupCommMessage.newBuilder() to construct.
private GroupCommMessage(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private GroupCommMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final GroupCommMessage defaultInstance;
public static GroupCommMessage getDefaultInstance() {
return defaultInstance;
}
public GroupCommMessage getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GroupCommMessage(
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 8: {
int rawValue = input.readEnum();
com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupCommMessage.Type value = com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupCommMessage.Type.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
type_ = value;
}
break;
}
case 18: {
bitField0_ |= 0x00000002;
srcid_ = input.readBytes();
break;
}
case 26: {
bitField0_ |= 0x00000004;
destid_ = input.readBytes();
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
msgs_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
msgs_.add(input.readMessage(com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBody.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_ & 0x00000008) == 0x00000008)) {
msgs_ = java.util.Collections.unmodifiableList(msgs_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.internal_static_GroupCommMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.internal_static_GroupCommMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupCommMessage.class, com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupCommMessage.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public GroupCommMessage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GroupCommMessage(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
/**
* Protobuf enum {@code GroupCommMessage.Type}
*/
public enum Type
implements com.google.protobuf.ProtocolMessageEnum {
/**
* Scatter = 1;
*/
Scatter(0, 1),
/**
* Gather = 2;
*/
Gather(1, 2),
/**
* Broadcast = 3;
*/
Broadcast(2, 3),
/**
* Reduce = 4;
*/
Reduce(3, 4),
/**
* AllGather = 5;
*/
AllGather(4, 5),
/**
* AllReduce = 6;
*/
AllReduce(5, 6),
/**
* ReduceScatter = 7;
*/
ReduceScatter(6, 7),
/**
* SourceDead = 8;
*/
SourceDead(7, 8),
/**
* SourceAdd = 9;
*/
SourceAdd(8, 9),
;
/**
* Scatter = 1;
*/
public static final int Scatter_VALUE = 1;
/**
* Gather = 2;
*/
public static final int Gather_VALUE = 2;
/**
* Broadcast = 3;
*/
public static final int Broadcast_VALUE = 3;
/**
* Reduce = 4;
*/
public static final int Reduce_VALUE = 4;
/**
* AllGather = 5;
*/
public static final int AllGather_VALUE = 5;
/**
* AllReduce = 6;
*/
public static final int AllReduce_VALUE = 6;
/**
* ReduceScatter = 7;
*/
public static final int ReduceScatter_VALUE = 7;
/**
* SourceDead = 8;
*/
public static final int SourceDead_VALUE = 8;
/**
* SourceAdd = 9;
*/
public static final int SourceAdd_VALUE = 9;
public final int getNumber() { return value; }
public static Type valueOf(int value) {
switch (value) {
case 1: return Scatter;
case 2: return Gather;
case 3: return Broadcast;
case 4: return Reduce;
case 5: return AllGather;
case 6: return AllReduce;
case 7: return ReduceScatter;
case 8: return SourceDead;
case 9: return SourceAdd;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Type findValueByNumber(int number) {
return Type.valueOf(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupCommMessage.getDescriptor().getEnumTypes().get(0);
}
private static final Type[] VALUES = values();
public static Type valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int index;
private final int value;
private Type(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:GroupCommMessage.Type)
}
private int bitField0_;
// required .GroupCommMessage.Type type = 1;
public static final int TYPE_FIELD_NUMBER = 1;
private com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupCommMessage.Type type_;
/**
* required .GroupCommMessage.Type type = 1;
*
*
* identifies which field is filled in
*
*/
public boolean hasType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .GroupCommMessage.Type type = 1;
*
*
* identifies which field is filled in
*
*/
public com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupCommMessage.Type getType() {
return type_;
}
// required string srcid = 2;
public static final int SRCID_FIELD_NUMBER = 2;
private java.lang.Object srcid_;
/**
* required string srcid = 2;
*/
public boolean hasSrcid() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required string srcid = 2;
*/
public java.lang.String getSrcid() {
java.lang.Object ref = srcid_;
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()) {
srcid_ = s;
}
return s;
}
}
/**
* required string srcid = 2;
*/
public com.google.protobuf.ByteString
getSrcidBytes() {
java.lang.Object ref = srcid_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
srcid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required string destid = 3;
public static final int DESTID_FIELD_NUMBER = 3;
private java.lang.Object destid_;
/**
* required string destid = 3;
*/
public boolean hasDestid() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required string destid = 3;
*/
public java.lang.String getDestid() {
java.lang.Object ref = destid_;
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()) {
destid_ = s;
}
return s;
}
}
/**
* required string destid = 3;
*/
public com.google.protobuf.ByteString
getDestidBytes() {
java.lang.Object ref = destid_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
destid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// repeated .GroupMessageBody msgs = 4;
public static final int MSGS_FIELD_NUMBER = 4;
private java.util.List msgs_;
/**
* repeated .GroupMessageBody msgs = 4;
*/
public java.util.List getMsgsList() {
return msgs_;
}
/**
* repeated .GroupMessageBody msgs = 4;
*/
public java.util.List extends com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBodyOrBuilder>
getMsgsOrBuilderList() {
return msgs_;
}
/**
* repeated .GroupMessageBody msgs = 4;
*/
public int getMsgsCount() {
return msgs_.size();
}
/**
* repeated .GroupMessageBody msgs = 4;
*/
public com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBody getMsgs(int index) {
return msgs_.get(index);
}
/**
* repeated .GroupMessageBody msgs = 4;
*/
public com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBodyOrBuilder getMsgsOrBuilder(
int index) {
return msgs_.get(index);
}
private void initFields() {
type_ = com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupCommMessage.Type.Scatter;
srcid_ = "";
destid_ = "";
msgs_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasType()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasSrcid()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasDestid()) {
memoizedIsInitialized = 0;
return false;
}
for (int i = 0; i < getMsgsCount(); i++) {
if (!getMsgs(i).isInitialized()) {
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.writeEnum(1, type_.getNumber());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getSrcidBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(3, getDestidBytes());
}
for (int i = 0; i < msgs_.size(); i++) {
output.writeMessage(4, msgs_.get(i));
}
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
.computeEnumSize(1, type_.getNumber());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getSrcidBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, getDestidBytes());
}
for (int i = 0; i < msgs_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, msgs_.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.ReefNetworkGroupCommProtos.GroupCommMessage)) {
return super.equals(obj);
}
com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupCommMessage other = (com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupCommMessage) obj;
boolean result = true;
result = result && (hasType() == other.hasType());
if (hasType()) {
result = result &&
(getType() == other.getType());
}
result = result && (hasSrcid() == other.hasSrcid());
if (hasSrcid()) {
result = result && getSrcid()
.equals(other.getSrcid());
}
result = result && (hasDestid() == other.hasDestid());
if (hasDestid()) {
result = result && getDestid()
.equals(other.getDestid());
}
result = result && getMsgsList()
.equals(other.getMsgsList());
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 (hasType()) {
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + hashEnum(getType());
}
if (hasSrcid()) {
hash = (37 * hash) + SRCID_FIELD_NUMBER;
hash = (53 * hash) + getSrcid().hashCode();
}
if (hasDestid()) {
hash = (37 * hash) + DESTID_FIELD_NUMBER;
hash = (53 * hash) + getDestid().hashCode();
}
if (getMsgsCount() > 0) {
hash = (37 * hash) + MSGS_FIELD_NUMBER;
hash = (53 * hash) + getMsgsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupCommMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupCommMessage 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.ReefNetworkGroupCommProtos.GroupCommMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupCommMessage 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.ReefNetworkGroupCommProtos.GroupCommMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupCommMessage 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.ReefNetworkGroupCommProtos.GroupCommMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupCommMessage 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.ReefNetworkGroupCommProtos.GroupCommMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupCommMessage 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.ReefNetworkGroupCommProtos.GroupCommMessage 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 GroupCommMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupCommMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.internal_static_GroupCommMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.internal_static_GroupCommMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupCommMessage.class, com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupCommMessage.Builder.class);
}
// Construct using com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupCommMessage.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getMsgsFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
type_ = com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupCommMessage.Type.Scatter;
bitField0_ = (bitField0_ & ~0x00000001);
srcid_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
destid_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
if (msgsBuilder_ == null) {
msgs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
msgsBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.internal_static_GroupCommMessage_descriptor;
}
public com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupCommMessage getDefaultInstanceForType() {
return com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupCommMessage.getDefaultInstance();
}
public com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupCommMessage build() {
com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupCommMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupCommMessage buildPartial() {
com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupCommMessage result = new com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupCommMessage(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.type_ = type_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.srcid_ = srcid_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.destid_ = destid_;
if (msgsBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008)) {
msgs_ = java.util.Collections.unmodifiableList(msgs_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.msgs_ = msgs_;
} else {
result.msgs_ = msgsBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupCommMessage) {
return mergeFrom((com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupCommMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupCommMessage other) {
if (other == com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupCommMessage.getDefaultInstance()) return this;
if (other.hasType()) {
setType(other.getType());
}
if (other.hasSrcid()) {
bitField0_ |= 0x00000002;
srcid_ = other.srcid_;
onChanged();
}
if (other.hasDestid()) {
bitField0_ |= 0x00000004;
destid_ = other.destid_;
onChanged();
}
if (msgsBuilder_ == null) {
if (!other.msgs_.isEmpty()) {
if (msgs_.isEmpty()) {
msgs_ = other.msgs_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureMsgsIsMutable();
msgs_.addAll(other.msgs_);
}
onChanged();
}
} else {
if (!other.msgs_.isEmpty()) {
if (msgsBuilder_.isEmpty()) {
msgsBuilder_.dispose();
msgsBuilder_ = null;
msgs_ = other.msgs_;
bitField0_ = (bitField0_ & ~0x00000008);
msgsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getMsgsFieldBuilder() : null;
} else {
msgsBuilder_.addAllMessages(other.msgs_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasType()) {
return false;
}
if (!hasSrcid()) {
return false;
}
if (!hasDestid()) {
return false;
}
for (int i = 0; i < getMsgsCount(); i++) {
if (!getMsgs(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.ReefNetworkGroupCommProtos.GroupCommMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupCommMessage) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required .GroupCommMessage.Type type = 1;
private com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupCommMessage.Type type_ = com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupCommMessage.Type.Scatter;
/**
* required .GroupCommMessage.Type type = 1;
*
*
* identifies which field is filled in
*
*/
public boolean hasType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .GroupCommMessage.Type type = 1;
*
*
* identifies which field is filled in
*
*/
public com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupCommMessage.Type getType() {
return type_;
}
/**
* required .GroupCommMessage.Type type = 1;
*
*
* identifies which field is filled in
*
*/
public Builder setType(com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupCommMessage.Type value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
type_ = value;
onChanged();
return this;
}
/**
* required .GroupCommMessage.Type type = 1;
*
*
* identifies which field is filled in
*
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000001);
type_ = com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupCommMessage.Type.Scatter;
onChanged();
return this;
}
// required string srcid = 2;
private java.lang.Object srcid_ = "";
/**
* required string srcid = 2;
*/
public boolean hasSrcid() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required string srcid = 2;
*/
public java.lang.String getSrcid() {
java.lang.Object ref = srcid_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
srcid_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string srcid = 2;
*/
public com.google.protobuf.ByteString
getSrcidBytes() {
java.lang.Object ref = srcid_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
srcid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string srcid = 2;
*/
public Builder setSrcid(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
srcid_ = value;
onChanged();
return this;
}
/**
* required string srcid = 2;
*/
public Builder clearSrcid() {
bitField0_ = (bitField0_ & ~0x00000002);
srcid_ = getDefaultInstance().getSrcid();
onChanged();
return this;
}
/**
* required string srcid = 2;
*/
public Builder setSrcidBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
srcid_ = value;
onChanged();
return this;
}
// required string destid = 3;
private java.lang.Object destid_ = "";
/**
* required string destid = 3;
*/
public boolean hasDestid() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required string destid = 3;
*/
public java.lang.String getDestid() {
java.lang.Object ref = destid_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
destid_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string destid = 3;
*/
public com.google.protobuf.ByteString
getDestidBytes() {
java.lang.Object ref = destid_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
destid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string destid = 3;
*/
public Builder setDestid(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
destid_ = value;
onChanged();
return this;
}
/**
* required string destid = 3;
*/
public Builder clearDestid() {
bitField0_ = (bitField0_ & ~0x00000004);
destid_ = getDefaultInstance().getDestid();
onChanged();
return this;
}
/**
* required string destid = 3;
*/
public Builder setDestidBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
destid_ = value;
onChanged();
return this;
}
// repeated .GroupMessageBody msgs = 4;
private java.util.List msgs_ =
java.util.Collections.emptyList();
private void ensureMsgsIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
msgs_ = new java.util.ArrayList(msgs_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBody, com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBody.Builder, com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBodyOrBuilder> msgsBuilder_;
/**
* repeated .GroupMessageBody msgs = 4;
*/
public java.util.List getMsgsList() {
if (msgsBuilder_ == null) {
return java.util.Collections.unmodifiableList(msgs_);
} else {
return msgsBuilder_.getMessageList();
}
}
/**
* repeated .GroupMessageBody msgs = 4;
*/
public int getMsgsCount() {
if (msgsBuilder_ == null) {
return msgs_.size();
} else {
return msgsBuilder_.getCount();
}
}
/**
* repeated .GroupMessageBody msgs = 4;
*/
public com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBody getMsgs(int index) {
if (msgsBuilder_ == null) {
return msgs_.get(index);
} else {
return msgsBuilder_.getMessage(index);
}
}
/**
* repeated .GroupMessageBody msgs = 4;
*/
public Builder setMsgs(
int index, com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBody value) {
if (msgsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMsgsIsMutable();
msgs_.set(index, value);
onChanged();
} else {
msgsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .GroupMessageBody msgs = 4;
*/
public Builder setMsgs(
int index, com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBody.Builder builderForValue) {
if (msgsBuilder_ == null) {
ensureMsgsIsMutable();
msgs_.set(index, builderForValue.build());
onChanged();
} else {
msgsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .GroupMessageBody msgs = 4;
*/
public Builder addMsgs(com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBody value) {
if (msgsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMsgsIsMutable();
msgs_.add(value);
onChanged();
} else {
msgsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .GroupMessageBody msgs = 4;
*/
public Builder addMsgs(
int index, com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBody value) {
if (msgsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMsgsIsMutable();
msgs_.add(index, value);
onChanged();
} else {
msgsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .GroupMessageBody msgs = 4;
*/
public Builder addMsgs(
com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBody.Builder builderForValue) {
if (msgsBuilder_ == null) {
ensureMsgsIsMutable();
msgs_.add(builderForValue.build());
onChanged();
} else {
msgsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .GroupMessageBody msgs = 4;
*/
public Builder addMsgs(
int index, com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBody.Builder builderForValue) {
if (msgsBuilder_ == null) {
ensureMsgsIsMutable();
msgs_.add(index, builderForValue.build());
onChanged();
} else {
msgsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .GroupMessageBody msgs = 4;
*/
public Builder addAllMsgs(
java.lang.Iterable extends com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBody> values) {
if (msgsBuilder_ == null) {
ensureMsgsIsMutable();
super.addAll(values, msgs_);
onChanged();
} else {
msgsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .GroupMessageBody msgs = 4;
*/
public Builder clearMsgs() {
if (msgsBuilder_ == null) {
msgs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
msgsBuilder_.clear();
}
return this;
}
/**
* repeated .GroupMessageBody msgs = 4;
*/
public Builder removeMsgs(int index) {
if (msgsBuilder_ == null) {
ensureMsgsIsMutable();
msgs_.remove(index);
onChanged();
} else {
msgsBuilder_.remove(index);
}
return this;
}
/**
* repeated .GroupMessageBody msgs = 4;
*/
public com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBody.Builder getMsgsBuilder(
int index) {
return getMsgsFieldBuilder().getBuilder(index);
}
/**
* repeated .GroupMessageBody msgs = 4;
*/
public com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBodyOrBuilder getMsgsOrBuilder(
int index) {
if (msgsBuilder_ == null) {
return msgs_.get(index); } else {
return msgsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .GroupMessageBody msgs = 4;
*/
public java.util.List extends com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBodyOrBuilder>
getMsgsOrBuilderList() {
if (msgsBuilder_ != null) {
return msgsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(msgs_);
}
}
/**
* repeated .GroupMessageBody msgs = 4;
*/
public com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBody.Builder addMsgsBuilder() {
return getMsgsFieldBuilder().addBuilder(
com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBody.getDefaultInstance());
}
/**
* repeated .GroupMessageBody msgs = 4;
*/
public com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBody.Builder addMsgsBuilder(
int index) {
return getMsgsFieldBuilder().addBuilder(
index, com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBody.getDefaultInstance());
}
/**
* repeated .GroupMessageBody msgs = 4;
*/
public java.util.List
getMsgsBuilderList() {
return getMsgsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBody, com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBody.Builder, com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBodyOrBuilder>
getMsgsFieldBuilder() {
if (msgsBuilder_ == null) {
msgsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBody, com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBody.Builder, com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBodyOrBuilder>(
msgs_,
((bitField0_ & 0x00000008) == 0x00000008),
getParentForChildren(),
isClean());
msgs_ = null;
}
return msgsBuilder_;
}
// @@protoc_insertion_point(builder_scope:GroupCommMessage)
}
static {
defaultInstance = new GroupCommMessage(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:GroupCommMessage)
}
public interface GroupMessageBodyOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required bytes data = 1;
/**
* required bytes data = 1;
*/
boolean hasData();
/**
* required bytes data = 1;
*/
com.google.protobuf.ByteString getData();
}
/**
* Protobuf type {@code GroupMessageBody}
*/
public static final class GroupMessageBody extends
com.google.protobuf.GeneratedMessage
implements GroupMessageBodyOrBuilder {
// Use GroupMessageBody.newBuilder() to construct.
private GroupMessageBody(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private GroupMessageBody(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final GroupMessageBody defaultInstance;
public static GroupMessageBody getDefaultInstance() {
return defaultInstance;
}
public GroupMessageBody getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GroupMessageBody(
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;
data_ = 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.ReefNetworkGroupCommProtos.internal_static_GroupMessageBody_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.internal_static_GroupMessageBody_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBody.class, com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBody.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public GroupMessageBody parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GroupMessageBody(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required bytes data = 1;
public static final int DATA_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString data_;
/**
* required bytes data = 1;
*/
public boolean hasData() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required bytes data = 1;
*/
public com.google.protobuf.ByteString getData() {
return data_;
}
private void initFields() {
data_ = com.google.protobuf.ByteString.EMPTY;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasData()) {
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, data_);
}
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, data_);
}
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.ReefNetworkGroupCommProtos.GroupMessageBody)) {
return super.equals(obj);
}
com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBody other = (com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBody) obj;
boolean result = true;
result = result && (hasData() == other.hasData());
if (hasData()) {
result = result && getData()
.equals(other.getData());
}
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 (hasData()) {
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBody parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBody 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.ReefNetworkGroupCommProtos.GroupMessageBody parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBody 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.ReefNetworkGroupCommProtos.GroupMessageBody parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBody 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.ReefNetworkGroupCommProtos.GroupMessageBody parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBody 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.ReefNetworkGroupCommProtos.GroupMessageBody parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBody 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.ReefNetworkGroupCommProtos.GroupMessageBody 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 GroupMessageBody}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBodyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.internal_static_GroupMessageBody_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.internal_static_GroupMessageBody_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBody.class, com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBody.Builder.class);
}
// Construct using com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBody.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();
data_ = com.google.protobuf.ByteString.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.ReefNetworkGroupCommProtos.internal_static_GroupMessageBody_descriptor;
}
public com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBody getDefaultInstanceForType() {
return com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBody.getDefaultInstance();
}
public com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBody build() {
com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBody result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBody buildPartial() {
com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBody result = new com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBody(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.data_ = data_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBody) {
return mergeFrom((com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBody)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBody other) {
if (other == com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBody.getDefaultInstance()) return this;
if (other.hasData()) {
setData(other.getData());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasData()) {
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.ReefNetworkGroupCommProtos.GroupMessageBody parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.microsoft.reef.io.network.proto.ReefNetworkGroupCommProtos.GroupMessageBody) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required bytes data = 1;
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
* required bytes data = 1;
*/
public boolean hasData() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required bytes data = 1;
*/
public com.google.protobuf.ByteString getData() {
return data_;
}
/**
* required bytes data = 1;
*/
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
data_ = value;
onChanged();
return this;
}
/**
* required bytes data = 1;
*/
public Builder clearData() {
bitField0_ = (bitField0_ & ~0x00000001);
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:GroupMessageBody)
}
static {
defaultInstance = new GroupMessageBody(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:GroupMessageBody)
}
private static com.google.protobuf.Descriptors.Descriptor
internal_static_GroupCommMessage_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_GroupCommMessage_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_GroupMessageBody_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_GroupMessageBody_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\031group_comm_protocol.proto\"\205\002\n\020GroupCom" +
"mMessage\022$\n\004type\030\001 \002(\0162\026.GroupCommMessag" +
"e.Type\022\r\n\005srcid\030\002 \002(\t\022\016\n\006destid\030\003 \002(\t\022\037\n" +
"\004msgs\030\004 \003(\0132\021.GroupMessageBody\"\212\001\n\004Type\022" +
"\013\n\007Scatter\020\001\022\n\n\006Gather\020\002\022\r\n\tBroadcast\020\003\022" +
"\n\n\006Reduce\020\004\022\r\n\tAllGather\020\005\022\r\n\tAllReduce\020" +
"\006\022\021\n\rReduceScatter\020\007\022\016\n\nSourceDead\020\010\022\r\n\t" +
"SourceAdd\020\t\" \n\020GroupMessageBody\022\014\n\004data\030" +
"\001 \002(\014BG\n#com.microsoft.reef.io.network.p" +
"rotoB\032ReefNetworkGroupCommProtos\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_GroupCommMessage_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_GroupCommMessage_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_GroupCommMessage_descriptor,
new java.lang.String[] { "Type", "Srcid", "Destid", "Msgs", });
internal_static_GroupMessageBody_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_GroupMessageBody_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_GroupMessageBody_descriptor,
new java.lang.String[] { "Data", });
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