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

com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos Maven / Gradle / Ivy

There is a newer version: 0.9
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: ns_protocol.proto

package com.microsoft.reef.io.network.proto;

public final class ReefNetworkServiceProtos {
  private ReefNetworkServiceProtos() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
  }
  public interface NSMessagePBufOrBuilder
      extends com.google.protobuf.MessageOrBuilder {

    // 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 .NSRecordPBuf msgs = 4;
    /**
     * repeated .NSRecordPBuf msgs = 4;
     */
    java.util.List 
        getMsgsList();
    /**
     * repeated .NSRecordPBuf msgs = 4;
     */
    com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSRecordPBuf getMsgs(int index);
    /**
     * repeated .NSRecordPBuf msgs = 4;
     */
    int getMsgsCount();
    /**
     * repeated .NSRecordPBuf msgs = 4;
     */
    java.util.List 
        getMsgsOrBuilderList();
    /**
     * repeated .NSRecordPBuf msgs = 4;
     */
    com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSRecordPBufOrBuilder getMsgsOrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code NSMessagePBuf}
   */
  public static final class NSMessagePBuf extends
      com.google.protobuf.GeneratedMessage
      implements NSMessagePBufOrBuilder {
    // Use NSMessagePBuf.newBuilder() to construct.
    private NSMessagePBuf(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private NSMessagePBuf(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

    private static final NSMessagePBuf defaultInstance;
    public static NSMessagePBuf getDefaultInstance() {
      return defaultInstance;
    }

    public NSMessagePBuf getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private NSMessagePBuf(
        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 18: {
              bitField0_ |= 0x00000001;
              srcid_ = input.readBytes();
              break;
            }
            case 26: {
              bitField0_ |= 0x00000002;
              destid_ = input.readBytes();
              break;
            }
            case 34: {
              if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
                msgs_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000004;
              }
              msgs_.add(input.readMessage(com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSRecordPBuf.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_ & 0x00000004) == 0x00000004)) {
          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.ReefNetworkServiceProtos.internal_static_NSMessagePBuf_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.internal_static_NSMessagePBuf_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSMessagePBuf.class, com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSMessagePBuf.Builder.class);
    }

    public static com.google.protobuf.Parser PARSER =
        new com.google.protobuf.AbstractParser() {
      public NSMessagePBuf parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new NSMessagePBuf(input, extensionRegistry);
      }
    };

    @java.lang.Override
    public com.google.protobuf.Parser getParserForType() {
      return PARSER;
    }

    private int bitField0_;
    // 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_ & 0x00000001) == 0x00000001);
    }
    /**
     * 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_ & 0x00000002) == 0x00000002);
    }
    /**
     * 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 .NSRecordPBuf msgs = 4;
    public static final int MSGS_FIELD_NUMBER = 4;
    private java.util.List msgs_;
    /**
     * repeated .NSRecordPBuf msgs = 4;
     */
    public java.util.List getMsgsList() {
      return msgs_;
    }
    /**
     * repeated .NSRecordPBuf msgs = 4;
     */
    public java.util.List 
        getMsgsOrBuilderList() {
      return msgs_;
    }
    /**
     * repeated .NSRecordPBuf msgs = 4;
     */
    public int getMsgsCount() {
      return msgs_.size();
    }
    /**
     * repeated .NSRecordPBuf msgs = 4;
     */
    public com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSRecordPBuf getMsgs(int index) {
      return msgs_.get(index);
    }
    /**
     * repeated .NSRecordPBuf msgs = 4;
     */
    public com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSRecordPBufOrBuilder getMsgsOrBuilder(
        int index) {
      return msgs_.get(index);
    }

    private void initFields() {
      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 (!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.writeBytes(2, getSrcidBytes());
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        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
          .computeBytesSize(2, getSrcidBytes());
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        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.ReefNetworkServiceProtos.NSMessagePBuf)) {
        return super.equals(obj);
      }
      com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSMessagePBuf other = (com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSMessagePBuf) obj;

      boolean result = true;
      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 (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.ReefNetworkServiceProtos.NSMessagePBuf parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSMessagePBuf 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.ReefNetworkServiceProtos.NSMessagePBuf parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSMessagePBuf 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.ReefNetworkServiceProtos.NSMessagePBuf parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSMessagePBuf 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.ReefNetworkServiceProtos.NSMessagePBuf parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSMessagePBuf 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.ReefNetworkServiceProtos.NSMessagePBuf parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSMessagePBuf 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.ReefNetworkServiceProtos.NSMessagePBuf 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 NSMessagePBuf}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder
       implements com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSMessagePBufOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.internal_static_NSMessagePBuf_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.internal_static_NSMessagePBuf_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSMessagePBuf.class, com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSMessagePBuf.Builder.class);
      }

      // Construct using com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSMessagePBuf.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();
        srcid_ = "";
        bitField0_ = (bitField0_ & ~0x00000001);
        destid_ = "";
        bitField0_ = (bitField0_ & ~0x00000002);
        if (msgsBuilder_ == null) {
          msgs_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000004);
        } 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.ReefNetworkServiceProtos.internal_static_NSMessagePBuf_descriptor;
      }

      public com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSMessagePBuf getDefaultInstanceForType() {
        return com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSMessagePBuf.getDefaultInstance();
      }

      public com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSMessagePBuf build() {
        com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSMessagePBuf result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSMessagePBuf buildPartial() {
        com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSMessagePBuf result = new com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSMessagePBuf(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        result.srcid_ = srcid_;
        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
          to_bitField0_ |= 0x00000002;
        }
        result.destid_ = destid_;
        if (msgsBuilder_ == null) {
          if (((bitField0_ & 0x00000004) == 0x00000004)) {
            msgs_ = java.util.Collections.unmodifiableList(msgs_);
            bitField0_ = (bitField0_ & ~0x00000004);
          }
          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.ReefNetworkServiceProtos.NSMessagePBuf) {
          return mergeFrom((com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSMessagePBuf)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSMessagePBuf other) {
        if (other == com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSMessagePBuf.getDefaultInstance()) return this;
        if (other.hasSrcid()) {
          bitField0_ |= 0x00000001;
          srcid_ = other.srcid_;
          onChanged();
        }
        if (other.hasDestid()) {
          bitField0_ |= 0x00000002;
          destid_ = other.destid_;
          onChanged();
        }
        if (msgsBuilder_ == null) {
          if (!other.msgs_.isEmpty()) {
            if (msgs_.isEmpty()) {
              msgs_ = other.msgs_;
              bitField0_ = (bitField0_ & ~0x00000004);
            } else {
              ensureMsgsIsMutable();
              msgs_.addAll(other.msgs_);
            }
            onChanged();
          }
        } else {
          if (!other.msgs_.isEmpty()) {
            if (msgsBuilder_.isEmpty()) {
              msgsBuilder_.dispose();
              msgsBuilder_ = null;
              msgs_ = other.msgs_;
              bitField0_ = (bitField0_ & ~0x00000004);
              msgsBuilder_ = 
                com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
                   getMsgsFieldBuilder() : null;
            } else {
              msgsBuilder_.addAllMessages(other.msgs_);
            }
          }
        }
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }

      public final boolean isInitialized() {
        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.ReefNetworkServiceProtos.NSMessagePBuf parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSMessagePBuf) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // required string srcid = 2;
      private java.lang.Object srcid_ = "";
      /**
       * required string srcid = 2;
       */
      public boolean hasSrcid() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * 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_ |= 0x00000001;
        srcid_ = value;
        onChanged();
        return this;
      }
      /**
       * required string srcid = 2;
       */
      public Builder clearSrcid() {
        bitField0_ = (bitField0_ & ~0x00000001);
        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_ |= 0x00000001;
        srcid_ = value;
        onChanged();
        return this;
      }

      // required string destid = 3;
      private java.lang.Object destid_ = "";
      /**
       * required string destid = 3;
       */
      public boolean hasDestid() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      /**
       * 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_ |= 0x00000002;
        destid_ = value;
        onChanged();
        return this;
      }
      /**
       * required string destid = 3;
       */
      public Builder clearDestid() {
        bitField0_ = (bitField0_ & ~0x00000002);
        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_ |= 0x00000002;
        destid_ = value;
        onChanged();
        return this;
      }

      // repeated .NSRecordPBuf msgs = 4;
      private java.util.List msgs_ =
        java.util.Collections.emptyList();
      private void ensureMsgsIsMutable() {
        if (!((bitField0_ & 0x00000004) == 0x00000004)) {
          msgs_ = new java.util.ArrayList(msgs_);
          bitField0_ |= 0x00000004;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilder<
          com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSRecordPBuf, com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSRecordPBuf.Builder, com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSRecordPBufOrBuilder> msgsBuilder_;

      /**
       * repeated .NSRecordPBuf msgs = 4;
       */
      public java.util.List getMsgsList() {
        if (msgsBuilder_ == null) {
          return java.util.Collections.unmodifiableList(msgs_);
        } else {
          return msgsBuilder_.getMessageList();
        }
      }
      /**
       * repeated .NSRecordPBuf msgs = 4;
       */
      public int getMsgsCount() {
        if (msgsBuilder_ == null) {
          return msgs_.size();
        } else {
          return msgsBuilder_.getCount();
        }
      }
      /**
       * repeated .NSRecordPBuf msgs = 4;
       */
      public com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSRecordPBuf getMsgs(int index) {
        if (msgsBuilder_ == null) {
          return msgs_.get(index);
        } else {
          return msgsBuilder_.getMessage(index);
        }
      }
      /**
       * repeated .NSRecordPBuf msgs = 4;
       */
      public Builder setMsgs(
          int index, com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSRecordPBuf value) {
        if (msgsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureMsgsIsMutable();
          msgs_.set(index, value);
          onChanged();
        } else {
          msgsBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .NSRecordPBuf msgs = 4;
       */
      public Builder setMsgs(
          int index, com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSRecordPBuf.Builder builderForValue) {
        if (msgsBuilder_ == null) {
          ensureMsgsIsMutable();
          msgs_.set(index, builderForValue.build());
          onChanged();
        } else {
          msgsBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .NSRecordPBuf msgs = 4;
       */
      public Builder addMsgs(com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSRecordPBuf value) {
        if (msgsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureMsgsIsMutable();
          msgs_.add(value);
          onChanged();
        } else {
          msgsBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * repeated .NSRecordPBuf msgs = 4;
       */
      public Builder addMsgs(
          int index, com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSRecordPBuf value) {
        if (msgsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureMsgsIsMutable();
          msgs_.add(index, value);
          onChanged();
        } else {
          msgsBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .NSRecordPBuf msgs = 4;
       */
      public Builder addMsgs(
          com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSRecordPBuf.Builder builderForValue) {
        if (msgsBuilder_ == null) {
          ensureMsgsIsMutable();
          msgs_.add(builderForValue.build());
          onChanged();
        } else {
          msgsBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .NSRecordPBuf msgs = 4;
       */
      public Builder addMsgs(
          int index, com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSRecordPBuf.Builder builderForValue) {
        if (msgsBuilder_ == null) {
          ensureMsgsIsMutable();
          msgs_.add(index, builderForValue.build());
          onChanged();
        } else {
          msgsBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .NSRecordPBuf msgs = 4;
       */
      public Builder addAllMsgs(
          java.lang.Iterable values) {
        if (msgsBuilder_ == null) {
          ensureMsgsIsMutable();
          super.addAll(values, msgs_);
          onChanged();
        } else {
          msgsBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * repeated .NSRecordPBuf msgs = 4;
       */
      public Builder clearMsgs() {
        if (msgsBuilder_ == null) {
          msgs_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000004);
          onChanged();
        } else {
          msgsBuilder_.clear();
        }
        return this;
      }
      /**
       * repeated .NSRecordPBuf msgs = 4;
       */
      public Builder removeMsgs(int index) {
        if (msgsBuilder_ == null) {
          ensureMsgsIsMutable();
          msgs_.remove(index);
          onChanged();
        } else {
          msgsBuilder_.remove(index);
        }
        return this;
      }
      /**
       * repeated .NSRecordPBuf msgs = 4;
       */
      public com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSRecordPBuf.Builder getMsgsBuilder(
          int index) {
        return getMsgsFieldBuilder().getBuilder(index);
      }
      /**
       * repeated .NSRecordPBuf msgs = 4;
       */
      public com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSRecordPBufOrBuilder getMsgsOrBuilder(
          int index) {
        if (msgsBuilder_ == null) {
          return msgs_.get(index);  } else {
          return msgsBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * repeated .NSRecordPBuf msgs = 4;
       */
      public java.util.List 
           getMsgsOrBuilderList() {
        if (msgsBuilder_ != null) {
          return msgsBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(msgs_);
        }
      }
      /**
       * repeated .NSRecordPBuf msgs = 4;
       */
      public com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSRecordPBuf.Builder addMsgsBuilder() {
        return getMsgsFieldBuilder().addBuilder(
            com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSRecordPBuf.getDefaultInstance());
      }
      /**
       * repeated .NSRecordPBuf msgs = 4;
       */
      public com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSRecordPBuf.Builder addMsgsBuilder(
          int index) {
        return getMsgsFieldBuilder().addBuilder(
            index, com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSRecordPBuf.getDefaultInstance());
      }
      /**
       * repeated .NSRecordPBuf msgs = 4;
       */
      public java.util.List 
           getMsgsBuilderList() {
        return getMsgsFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilder<
          com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSRecordPBuf, com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSRecordPBuf.Builder, com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSRecordPBufOrBuilder> 
          getMsgsFieldBuilder() {
        if (msgsBuilder_ == null) {
          msgsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
              com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSRecordPBuf, com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSRecordPBuf.Builder, com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSRecordPBufOrBuilder>(
                  msgs_,
                  ((bitField0_ & 0x00000004) == 0x00000004),
                  getParentForChildren(),
                  isClean());
          msgs_ = null;
        }
        return msgsBuilder_;
      }

      // @@protoc_insertion_point(builder_scope:NSMessagePBuf)
    }

    static {
      defaultInstance = new NSMessagePBuf(true);
      defaultInstance.initFields();
    }

    // @@protoc_insertion_point(class_scope:NSMessagePBuf)
  }

  public interface NSRecordPBufOrBuilder
      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 NSRecordPBuf}
   */
  public static final class NSRecordPBuf extends
      com.google.protobuf.GeneratedMessage
      implements NSRecordPBufOrBuilder {
    // Use NSRecordPBuf.newBuilder() to construct.
    private NSRecordPBuf(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private NSRecordPBuf(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

    private static final NSRecordPBuf defaultInstance;
    public static NSRecordPBuf getDefaultInstance() {
      return defaultInstance;
    }

    public NSRecordPBuf getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private NSRecordPBuf(
        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.ReefNetworkServiceProtos.internal_static_NSRecordPBuf_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.internal_static_NSRecordPBuf_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSRecordPBuf.class, com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSRecordPBuf.Builder.class);
    }

    public static com.google.protobuf.Parser PARSER =
        new com.google.protobuf.AbstractParser() {
      public NSRecordPBuf parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new NSRecordPBuf(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.ReefNetworkServiceProtos.NSRecordPBuf)) {
        return super.equals(obj);
      }
      com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSRecordPBuf other = (com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSRecordPBuf) 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.ReefNetworkServiceProtos.NSRecordPBuf parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSRecordPBuf 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.ReefNetworkServiceProtos.NSRecordPBuf parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSRecordPBuf 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.ReefNetworkServiceProtos.NSRecordPBuf parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSRecordPBuf 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.ReefNetworkServiceProtos.NSRecordPBuf parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSRecordPBuf 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.ReefNetworkServiceProtos.NSRecordPBuf parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSRecordPBuf 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.ReefNetworkServiceProtos.NSRecordPBuf 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 NSRecordPBuf}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder
       implements com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSRecordPBufOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.internal_static_NSRecordPBuf_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.internal_static_NSRecordPBuf_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSRecordPBuf.class, com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSRecordPBuf.Builder.class);
      }

      // Construct using com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSRecordPBuf.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.ReefNetworkServiceProtos.internal_static_NSRecordPBuf_descriptor;
      }

      public com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSRecordPBuf getDefaultInstanceForType() {
        return com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSRecordPBuf.getDefaultInstance();
      }

      public com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSRecordPBuf build() {
        com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSRecordPBuf result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSRecordPBuf buildPartial() {
        com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSRecordPBuf result = new com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSRecordPBuf(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.ReefNetworkServiceProtos.NSRecordPBuf) {
          return mergeFrom((com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSRecordPBuf)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSRecordPBuf other) {
        if (other == com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSRecordPBuf.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.ReefNetworkServiceProtos.NSRecordPBuf parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.microsoft.reef.io.network.proto.ReefNetworkServiceProtos.NSRecordPBuf) 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:NSRecordPBuf)
    }

    static {
      defaultInstance = new NSRecordPBuf(true);
      defaultInstance.initFields();
    }

    // @@protoc_insertion_point(class_scope:NSRecordPBuf)
  }

  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_NSMessagePBuf_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_NSMessagePBuf_fieldAccessorTable;
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_NSRecordPBuf_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_NSRecordPBuf_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\021ns_protocol.proto\"K\n\rNSMessagePBuf\022\r\n\005" +
      "srcid\030\002 \002(\t\022\016\n\006destid\030\003 \002(\t\022\033\n\004msgs\030\004 \003(" +
      "\0132\r.NSRecordPBuf\"\034\n\014NSRecordPBuf\022\014\n\004data" +
      "\030\001 \002(\014BE\n#com.microsoft.reef.io.network." +
      "protoB\030ReefNetworkServiceProtos\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_NSMessagePBuf_descriptor =
            getDescriptor().getMessageTypes().get(0);
          internal_static_NSMessagePBuf_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_NSMessagePBuf_descriptor,
              new java.lang.String[] { "Srcid", "Destid", "Msgs", });
          internal_static_NSRecordPBuf_descriptor =
            getDescriptor().getMessageTypes().get(1);
          internal_static_NSRecordPBuf_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_NSRecordPBuf_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