001// Generated by the protocol buffer compiler.  DO NOT EDIT!
002// source: evaluator_runtime.proto
003
004package org.apache.reef.proto;
005
006public final class EvaluatorRuntimeProtocol {
007  private EvaluatorRuntimeProtocol() {}
008  public static void registerAllExtensions(
009      com.google.protobuf.ExtensionRegistry registry) {
010  }
011  public interface DoneEvaluatorProtoOrBuilder
012      extends com.google.protobuf.MessageOrBuilder {
013  }
014  /**
015   * Protobuf type {@code DoneEvaluatorProto}
016   *
017   * <pre>
018   * ACK the done message from the evaluator
019   * </pre>
020   */
021  public static final class DoneEvaluatorProto extends
022      com.google.protobuf.GeneratedMessage
023      implements DoneEvaluatorProtoOrBuilder {
024    // Use DoneEvaluatorProto.newBuilder() to construct.
025    private DoneEvaluatorProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
026      super(builder);
027      this.unknownFields = builder.getUnknownFields();
028    }
029    private DoneEvaluatorProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
030
031    private static final DoneEvaluatorProto defaultInstance;
032    public static DoneEvaluatorProto getDefaultInstance() {
033      return defaultInstance;
034    }
035
036    public DoneEvaluatorProto getDefaultInstanceForType() {
037      return defaultInstance;
038    }
039
040    private final com.google.protobuf.UnknownFieldSet unknownFields;
041    @java.lang.Override
042    public final com.google.protobuf.UnknownFieldSet
043        getUnknownFields() {
044      return this.unknownFields;
045    }
046    private DoneEvaluatorProto(
047        com.google.protobuf.CodedInputStream input,
048        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
049        throws com.google.protobuf.InvalidProtocolBufferException {
050      initFields();
051      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
052          com.google.protobuf.UnknownFieldSet.newBuilder();
053      try {
054        boolean done = false;
055        while (!done) {
056          int tag = input.readTag();
057          switch (tag) {
058            case 0:
059              done = true;
060              break;
061            default: {
062              if (!parseUnknownField(input, unknownFields,
063                                     extensionRegistry, tag)) {
064                done = true;
065              }
066              break;
067            }
068          }
069        }
070      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
071        throw e.setUnfinishedMessage(this);
072      } catch (java.io.IOException e) {
073        throw new com.google.protobuf.InvalidProtocolBufferException(
074            e.getMessage()).setUnfinishedMessage(this);
075      } finally {
076        this.unknownFields = unknownFields.build();
077        makeExtensionsImmutable();
078      }
079    }
080    public static final com.google.protobuf.Descriptors.Descriptor
081        getDescriptor() {
082      return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_DoneEvaluatorProto_descriptor;
083    }
084
085    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
086        internalGetFieldAccessorTable() {
087      return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_DoneEvaluatorProto_fieldAccessorTable
088          .ensureFieldAccessorsInitialized(
089              org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto.class, org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto.Builder.class);
090    }
091
092    public static com.google.protobuf.Parser<DoneEvaluatorProto> PARSER =
093        new com.google.protobuf.AbstractParser<DoneEvaluatorProto>() {
094      public DoneEvaluatorProto parsePartialFrom(
095          com.google.protobuf.CodedInputStream input,
096          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
097          throws com.google.protobuf.InvalidProtocolBufferException {
098        return new DoneEvaluatorProto(input, extensionRegistry);
099      }
100    };
101
102    @java.lang.Override
103    public com.google.protobuf.Parser<DoneEvaluatorProto> getParserForType() {
104      return PARSER;
105    }
106
107    private void initFields() {
108    }
109    private byte memoizedIsInitialized = -1;
110    public final boolean isInitialized() {
111      byte isInitialized = memoizedIsInitialized;
112      if (isInitialized != -1) return isInitialized == 1;
113
114      memoizedIsInitialized = 1;
115      return true;
116    }
117
118    public void writeTo(com.google.protobuf.CodedOutputStream output)
119                        throws java.io.IOException {
120      getSerializedSize();
121      getUnknownFields().writeTo(output);
122    }
123
124    private int memoizedSerializedSize = -1;
125    public int getSerializedSize() {
126      int size = memoizedSerializedSize;
127      if (size != -1) return size;
128
129      size = 0;
130      size += getUnknownFields().getSerializedSize();
131      memoizedSerializedSize = size;
132      return size;
133    }
134
135    private static final long serialVersionUID = 0L;
136    @java.lang.Override
137    protected java.lang.Object writeReplace()
138        throws java.io.ObjectStreamException {
139      return super.writeReplace();
140    }
141
142    @java.lang.Override
143    public boolean equals(final java.lang.Object obj) {
144      if (obj == this) {
145       return true;
146      }
147      if (!(obj instanceof org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto)) {
148        return super.equals(obj);
149      }
150      org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto other = (org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto) obj;
151
152      boolean result = true;
153      result = result &&
154          getUnknownFields().equals(other.getUnknownFields());
155      return result;
156    }
157
158    private int memoizedHashCode = 0;
159    @java.lang.Override
160    public int hashCode() {
161      if (memoizedHashCode != 0) {
162        return memoizedHashCode;
163      }
164      int hash = 41;
165      hash = (19 * hash) + getDescriptorForType().hashCode();
166      hash = (29 * hash) + getUnknownFields().hashCode();
167      memoizedHashCode = hash;
168      return hash;
169    }
170
171    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto parseFrom(
172        com.google.protobuf.ByteString data)
173        throws com.google.protobuf.InvalidProtocolBufferException {
174      return PARSER.parseFrom(data);
175    }
176    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto parseFrom(
177        com.google.protobuf.ByteString data,
178        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
179        throws com.google.protobuf.InvalidProtocolBufferException {
180      return PARSER.parseFrom(data, extensionRegistry);
181    }
182    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto parseFrom(byte[] data)
183        throws com.google.protobuf.InvalidProtocolBufferException {
184      return PARSER.parseFrom(data);
185    }
186    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto parseFrom(
187        byte[] data,
188        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
189        throws com.google.protobuf.InvalidProtocolBufferException {
190      return PARSER.parseFrom(data, extensionRegistry);
191    }
192    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto parseFrom(java.io.InputStream input)
193        throws java.io.IOException {
194      return PARSER.parseFrom(input);
195    }
196    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto parseFrom(
197        java.io.InputStream input,
198        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
199        throws java.io.IOException {
200      return PARSER.parseFrom(input, extensionRegistry);
201    }
202    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto parseDelimitedFrom(java.io.InputStream input)
203        throws java.io.IOException {
204      return PARSER.parseDelimitedFrom(input);
205    }
206    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto parseDelimitedFrom(
207        java.io.InputStream input,
208        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
209        throws java.io.IOException {
210      return PARSER.parseDelimitedFrom(input, extensionRegistry);
211    }
212    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto parseFrom(
213        com.google.protobuf.CodedInputStream input)
214        throws java.io.IOException {
215      return PARSER.parseFrom(input);
216    }
217    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto parseFrom(
218        com.google.protobuf.CodedInputStream input,
219        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
220        throws java.io.IOException {
221      return PARSER.parseFrom(input, extensionRegistry);
222    }
223
224    public static Builder newBuilder() { return Builder.create(); }
225    public Builder newBuilderForType() { return newBuilder(); }
226    public static Builder newBuilder(org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto prototype) {
227      return newBuilder().mergeFrom(prototype);
228    }
229    public Builder toBuilder() { return newBuilder(this); }
230
231    @java.lang.Override
232    protected Builder newBuilderForType(
233        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
234      Builder builder = new Builder(parent);
235      return builder;
236    }
237    /**
238     * Protobuf type {@code DoneEvaluatorProto}
239     *
240     * <pre>
241     * ACK the done message from the evaluator
242     * </pre>
243     */
244    public static final class Builder extends
245        com.google.protobuf.GeneratedMessage.Builder<Builder>
246       implements org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProtoOrBuilder {
247      public static final com.google.protobuf.Descriptors.Descriptor
248          getDescriptor() {
249        return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_DoneEvaluatorProto_descriptor;
250      }
251
252      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
253          internalGetFieldAccessorTable() {
254        return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_DoneEvaluatorProto_fieldAccessorTable
255            .ensureFieldAccessorsInitialized(
256                org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto.class, org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto.Builder.class);
257      }
258
259      // Construct using org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto.newBuilder()
260      private Builder() {
261        maybeForceBuilderInitialization();
262      }
263
264      private Builder(
265          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
266        super(parent);
267        maybeForceBuilderInitialization();
268      }
269      private void maybeForceBuilderInitialization() {
270        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
271        }
272      }
273      private static Builder create() {
274        return new Builder();
275      }
276
277      public Builder clear() {
278        super.clear();
279        return this;
280      }
281
282      public Builder clone() {
283        return create().mergeFrom(buildPartial());
284      }
285
286      public com.google.protobuf.Descriptors.Descriptor
287          getDescriptorForType() {
288        return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_DoneEvaluatorProto_descriptor;
289      }
290
291      public org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto getDefaultInstanceForType() {
292        return org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto.getDefaultInstance();
293      }
294
295      public org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto build() {
296        org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto result = buildPartial();
297        if (!result.isInitialized()) {
298          throw newUninitializedMessageException(result);
299        }
300        return result;
301      }
302
303      public org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto buildPartial() {
304        org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto result = new org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto(this);
305        onBuilt();
306        return result;
307      }
308
309      public Builder mergeFrom(com.google.protobuf.Message other) {
310        if (other instanceof org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto) {
311          return mergeFrom((org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto)other);
312        } else {
313          super.mergeFrom(other);
314          return this;
315        }
316      }
317
318      public Builder mergeFrom(org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto other) {
319        if (other == org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto.getDefaultInstance()) return this;
320        this.mergeUnknownFields(other.getUnknownFields());
321        return this;
322      }
323
324      public final boolean isInitialized() {
325        return true;
326      }
327
328      public Builder mergeFrom(
329          com.google.protobuf.CodedInputStream input,
330          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
331          throws java.io.IOException {
332        org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto parsedMessage = null;
333        try {
334          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
335        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
336          parsedMessage = (org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto) e.getUnfinishedMessage();
337          throw e;
338        } finally {
339          if (parsedMessage != null) {
340            mergeFrom(parsedMessage);
341          }
342        }
343        return this;
344      }
345
346      // @@protoc_insertion_point(builder_scope:DoneEvaluatorProto)
347    }
348
349    static {
350      defaultInstance = new DoneEvaluatorProto(true);
351      defaultInstance.initFields();
352    }
353
354    // @@protoc_insertion_point(class_scope:DoneEvaluatorProto)
355  }
356
357  public interface StopEvaluatorProtoOrBuilder
358      extends com.google.protobuf.MessageOrBuilder {
359  }
360  /**
361   * Protobuf type {@code StopEvaluatorProto}
362   *
363   * <pre>
364   * Stop the evaluator
365   * </pre>
366   */
367  public static final class StopEvaluatorProto extends
368      com.google.protobuf.GeneratedMessage
369      implements StopEvaluatorProtoOrBuilder {
370    // Use StopEvaluatorProto.newBuilder() to construct.
371    private StopEvaluatorProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
372      super(builder);
373      this.unknownFields = builder.getUnknownFields();
374    }
375    private StopEvaluatorProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
376
377    private static final StopEvaluatorProto defaultInstance;
378    public static StopEvaluatorProto getDefaultInstance() {
379      return defaultInstance;
380    }
381
382    public StopEvaluatorProto getDefaultInstanceForType() {
383      return defaultInstance;
384    }
385
386    private final com.google.protobuf.UnknownFieldSet unknownFields;
387    @java.lang.Override
388    public final com.google.protobuf.UnknownFieldSet
389        getUnknownFields() {
390      return this.unknownFields;
391    }
392    private StopEvaluatorProto(
393        com.google.protobuf.CodedInputStream input,
394        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
395        throws com.google.protobuf.InvalidProtocolBufferException {
396      initFields();
397      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
398          com.google.protobuf.UnknownFieldSet.newBuilder();
399      try {
400        boolean done = false;
401        while (!done) {
402          int tag = input.readTag();
403          switch (tag) {
404            case 0:
405              done = true;
406              break;
407            default: {
408              if (!parseUnknownField(input, unknownFields,
409                                     extensionRegistry, tag)) {
410                done = true;
411              }
412              break;
413            }
414          }
415        }
416      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
417        throw e.setUnfinishedMessage(this);
418      } catch (java.io.IOException e) {
419        throw new com.google.protobuf.InvalidProtocolBufferException(
420            e.getMessage()).setUnfinishedMessage(this);
421      } finally {
422        this.unknownFields = unknownFields.build();
423        makeExtensionsImmutable();
424      }
425    }
426    public static final com.google.protobuf.Descriptors.Descriptor
427        getDescriptor() {
428      return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_StopEvaluatorProto_descriptor;
429    }
430
431    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
432        internalGetFieldAccessorTable() {
433      return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_StopEvaluatorProto_fieldAccessorTable
434          .ensureFieldAccessorsInitialized(
435              org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto.class, org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto.Builder.class);
436    }
437
438    public static com.google.protobuf.Parser<StopEvaluatorProto> PARSER =
439        new com.google.protobuf.AbstractParser<StopEvaluatorProto>() {
440      public StopEvaluatorProto parsePartialFrom(
441          com.google.protobuf.CodedInputStream input,
442          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
443          throws com.google.protobuf.InvalidProtocolBufferException {
444        return new StopEvaluatorProto(input, extensionRegistry);
445      }
446    };
447
448    @java.lang.Override
449    public com.google.protobuf.Parser<StopEvaluatorProto> getParserForType() {
450      return PARSER;
451    }
452
453    private void initFields() {
454    }
455    private byte memoizedIsInitialized = -1;
456    public final boolean isInitialized() {
457      byte isInitialized = memoizedIsInitialized;
458      if (isInitialized != -1) return isInitialized == 1;
459
460      memoizedIsInitialized = 1;
461      return true;
462    }
463
464    public void writeTo(com.google.protobuf.CodedOutputStream output)
465                        throws java.io.IOException {
466      getSerializedSize();
467      getUnknownFields().writeTo(output);
468    }
469
470    private int memoizedSerializedSize = -1;
471    public int getSerializedSize() {
472      int size = memoizedSerializedSize;
473      if (size != -1) return size;
474
475      size = 0;
476      size += getUnknownFields().getSerializedSize();
477      memoizedSerializedSize = size;
478      return size;
479    }
480
481    private static final long serialVersionUID = 0L;
482    @java.lang.Override
483    protected java.lang.Object writeReplace()
484        throws java.io.ObjectStreamException {
485      return super.writeReplace();
486    }
487
488    @java.lang.Override
489    public boolean equals(final java.lang.Object obj) {
490      if (obj == this) {
491       return true;
492      }
493      if (!(obj instanceof org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto)) {
494        return super.equals(obj);
495      }
496      org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto other = (org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto) obj;
497
498      boolean result = true;
499      result = result &&
500          getUnknownFields().equals(other.getUnknownFields());
501      return result;
502    }
503
504    private int memoizedHashCode = 0;
505    @java.lang.Override
506    public int hashCode() {
507      if (memoizedHashCode != 0) {
508        return memoizedHashCode;
509      }
510      int hash = 41;
511      hash = (19 * hash) + getDescriptorForType().hashCode();
512      hash = (29 * hash) + getUnknownFields().hashCode();
513      memoizedHashCode = hash;
514      return hash;
515    }
516
517    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto parseFrom(
518        com.google.protobuf.ByteString data)
519        throws com.google.protobuf.InvalidProtocolBufferException {
520      return PARSER.parseFrom(data);
521    }
522    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto parseFrom(
523        com.google.protobuf.ByteString data,
524        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
525        throws com.google.protobuf.InvalidProtocolBufferException {
526      return PARSER.parseFrom(data, extensionRegistry);
527    }
528    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto parseFrom(byte[] data)
529        throws com.google.protobuf.InvalidProtocolBufferException {
530      return PARSER.parseFrom(data);
531    }
532    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto parseFrom(
533        byte[] data,
534        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
535        throws com.google.protobuf.InvalidProtocolBufferException {
536      return PARSER.parseFrom(data, extensionRegistry);
537    }
538    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto parseFrom(java.io.InputStream input)
539        throws java.io.IOException {
540      return PARSER.parseFrom(input);
541    }
542    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto parseFrom(
543        java.io.InputStream input,
544        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
545        throws java.io.IOException {
546      return PARSER.parseFrom(input, extensionRegistry);
547    }
548    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto parseDelimitedFrom(java.io.InputStream input)
549        throws java.io.IOException {
550      return PARSER.parseDelimitedFrom(input);
551    }
552    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto parseDelimitedFrom(
553        java.io.InputStream input,
554        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
555        throws java.io.IOException {
556      return PARSER.parseDelimitedFrom(input, extensionRegistry);
557    }
558    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto parseFrom(
559        com.google.protobuf.CodedInputStream input)
560        throws java.io.IOException {
561      return PARSER.parseFrom(input);
562    }
563    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto parseFrom(
564        com.google.protobuf.CodedInputStream input,
565        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
566        throws java.io.IOException {
567      return PARSER.parseFrom(input, extensionRegistry);
568    }
569
570    public static Builder newBuilder() { return Builder.create(); }
571    public Builder newBuilderForType() { return newBuilder(); }
572    public static Builder newBuilder(org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto prototype) {
573      return newBuilder().mergeFrom(prototype);
574    }
575    public Builder toBuilder() { return newBuilder(this); }
576
577    @java.lang.Override
578    protected Builder newBuilderForType(
579        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
580      Builder builder = new Builder(parent);
581      return builder;
582    }
583    /**
584     * Protobuf type {@code StopEvaluatorProto}
585     *
586     * <pre>
587     * Stop the evaluator
588     * </pre>
589     */
590    public static final class Builder extends
591        com.google.protobuf.GeneratedMessage.Builder<Builder>
592       implements org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProtoOrBuilder {
593      public static final com.google.protobuf.Descriptors.Descriptor
594          getDescriptor() {
595        return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_StopEvaluatorProto_descriptor;
596      }
597
598      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
599          internalGetFieldAccessorTable() {
600        return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_StopEvaluatorProto_fieldAccessorTable
601            .ensureFieldAccessorsInitialized(
602                org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto.class, org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto.Builder.class);
603      }
604
605      // Construct using org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto.newBuilder()
606      private Builder() {
607        maybeForceBuilderInitialization();
608      }
609
610      private Builder(
611          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
612        super(parent);
613        maybeForceBuilderInitialization();
614      }
615      private void maybeForceBuilderInitialization() {
616        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
617        }
618      }
619      private static Builder create() {
620        return new Builder();
621      }
622
623      public Builder clear() {
624        super.clear();
625        return this;
626      }
627
628      public Builder clone() {
629        return create().mergeFrom(buildPartial());
630      }
631
632      public com.google.protobuf.Descriptors.Descriptor
633          getDescriptorForType() {
634        return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_StopEvaluatorProto_descriptor;
635      }
636
637      public org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto getDefaultInstanceForType() {
638        return org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto.getDefaultInstance();
639      }
640
641      public org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto build() {
642        org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto result = buildPartial();
643        if (!result.isInitialized()) {
644          throw newUninitializedMessageException(result);
645        }
646        return result;
647      }
648
649      public org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto buildPartial() {
650        org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto result = new org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto(this);
651        onBuilt();
652        return result;
653      }
654
655      public Builder mergeFrom(com.google.protobuf.Message other) {
656        if (other instanceof org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto) {
657          return mergeFrom((org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto)other);
658        } else {
659          super.mergeFrom(other);
660          return this;
661        }
662      }
663
664      public Builder mergeFrom(org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto other) {
665        if (other == org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto.getDefaultInstance()) return this;
666        this.mergeUnknownFields(other.getUnknownFields());
667        return this;
668      }
669
670      public final boolean isInitialized() {
671        return true;
672      }
673
674      public Builder mergeFrom(
675          com.google.protobuf.CodedInputStream input,
676          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
677          throws java.io.IOException {
678        org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto parsedMessage = null;
679        try {
680          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
681        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
682          parsedMessage = (org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto) e.getUnfinishedMessage();
683          throw e;
684        } finally {
685          if (parsedMessage != null) {
686            mergeFrom(parsedMessage);
687          }
688        }
689        return this;
690      }
691
692      // @@protoc_insertion_point(builder_scope:StopEvaluatorProto)
693    }
694
695    static {
696      defaultInstance = new StopEvaluatorProto(true);
697      defaultInstance.initFields();
698    }
699
700    // @@protoc_insertion_point(class_scope:StopEvaluatorProto)
701  }
702
703  public interface KillEvaluatorProtoOrBuilder
704      extends com.google.protobuf.MessageOrBuilder {
705  }
706  /**
707   * Protobuf type {@code KillEvaluatorProto}
708   *
709   * <pre>
710   * Kill the evaluator
711   * </pre>
712   */
713  public static final class KillEvaluatorProto extends
714      com.google.protobuf.GeneratedMessage
715      implements KillEvaluatorProtoOrBuilder {
716    // Use KillEvaluatorProto.newBuilder() to construct.
717    private KillEvaluatorProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
718      super(builder);
719      this.unknownFields = builder.getUnknownFields();
720    }
721    private KillEvaluatorProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
722
723    private static final KillEvaluatorProto defaultInstance;
724    public static KillEvaluatorProto getDefaultInstance() {
725      return defaultInstance;
726    }
727
728    public KillEvaluatorProto getDefaultInstanceForType() {
729      return defaultInstance;
730    }
731
732    private final com.google.protobuf.UnknownFieldSet unknownFields;
733    @java.lang.Override
734    public final com.google.protobuf.UnknownFieldSet
735        getUnknownFields() {
736      return this.unknownFields;
737    }
738    private KillEvaluatorProto(
739        com.google.protobuf.CodedInputStream input,
740        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
741        throws com.google.protobuf.InvalidProtocolBufferException {
742      initFields();
743      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
744          com.google.protobuf.UnknownFieldSet.newBuilder();
745      try {
746        boolean done = false;
747        while (!done) {
748          int tag = input.readTag();
749          switch (tag) {
750            case 0:
751              done = true;
752              break;
753            default: {
754              if (!parseUnknownField(input, unknownFields,
755                                     extensionRegistry, tag)) {
756                done = true;
757              }
758              break;
759            }
760          }
761        }
762      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
763        throw e.setUnfinishedMessage(this);
764      } catch (java.io.IOException e) {
765        throw new com.google.protobuf.InvalidProtocolBufferException(
766            e.getMessage()).setUnfinishedMessage(this);
767      } finally {
768        this.unknownFields = unknownFields.build();
769        makeExtensionsImmutable();
770      }
771    }
772    public static final com.google.protobuf.Descriptors.Descriptor
773        getDescriptor() {
774      return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_KillEvaluatorProto_descriptor;
775    }
776
777    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
778        internalGetFieldAccessorTable() {
779      return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_KillEvaluatorProto_fieldAccessorTable
780          .ensureFieldAccessorsInitialized(
781              org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto.class, org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto.Builder.class);
782    }
783
784    public static com.google.protobuf.Parser<KillEvaluatorProto> PARSER =
785        new com.google.protobuf.AbstractParser<KillEvaluatorProto>() {
786      public KillEvaluatorProto parsePartialFrom(
787          com.google.protobuf.CodedInputStream input,
788          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
789          throws com.google.protobuf.InvalidProtocolBufferException {
790        return new KillEvaluatorProto(input, extensionRegistry);
791      }
792    };
793
794    @java.lang.Override
795    public com.google.protobuf.Parser<KillEvaluatorProto> getParserForType() {
796      return PARSER;
797    }
798
799    private void initFields() {
800    }
801    private byte memoizedIsInitialized = -1;
802    public final boolean isInitialized() {
803      byte isInitialized = memoizedIsInitialized;
804      if (isInitialized != -1) return isInitialized == 1;
805
806      memoizedIsInitialized = 1;
807      return true;
808    }
809
810    public void writeTo(com.google.protobuf.CodedOutputStream output)
811                        throws java.io.IOException {
812      getSerializedSize();
813      getUnknownFields().writeTo(output);
814    }
815
816    private int memoizedSerializedSize = -1;
817    public int getSerializedSize() {
818      int size = memoizedSerializedSize;
819      if (size != -1) return size;
820
821      size = 0;
822      size += getUnknownFields().getSerializedSize();
823      memoizedSerializedSize = size;
824      return size;
825    }
826
827    private static final long serialVersionUID = 0L;
828    @java.lang.Override
829    protected java.lang.Object writeReplace()
830        throws java.io.ObjectStreamException {
831      return super.writeReplace();
832    }
833
834    @java.lang.Override
835    public boolean equals(final java.lang.Object obj) {
836      if (obj == this) {
837       return true;
838      }
839      if (!(obj instanceof org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto)) {
840        return super.equals(obj);
841      }
842      org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto other = (org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto) obj;
843
844      boolean result = true;
845      result = result &&
846          getUnknownFields().equals(other.getUnknownFields());
847      return result;
848    }
849
850    private int memoizedHashCode = 0;
851    @java.lang.Override
852    public int hashCode() {
853      if (memoizedHashCode != 0) {
854        return memoizedHashCode;
855      }
856      int hash = 41;
857      hash = (19 * hash) + getDescriptorForType().hashCode();
858      hash = (29 * hash) + getUnknownFields().hashCode();
859      memoizedHashCode = hash;
860      return hash;
861    }
862
863    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto parseFrom(
864        com.google.protobuf.ByteString data)
865        throws com.google.protobuf.InvalidProtocolBufferException {
866      return PARSER.parseFrom(data);
867    }
868    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto parseFrom(
869        com.google.protobuf.ByteString data,
870        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
871        throws com.google.protobuf.InvalidProtocolBufferException {
872      return PARSER.parseFrom(data, extensionRegistry);
873    }
874    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto parseFrom(byte[] data)
875        throws com.google.protobuf.InvalidProtocolBufferException {
876      return PARSER.parseFrom(data);
877    }
878    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto parseFrom(
879        byte[] data,
880        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
881        throws com.google.protobuf.InvalidProtocolBufferException {
882      return PARSER.parseFrom(data, extensionRegistry);
883    }
884    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto parseFrom(java.io.InputStream input)
885        throws java.io.IOException {
886      return PARSER.parseFrom(input);
887    }
888    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto parseFrom(
889        java.io.InputStream input,
890        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
891        throws java.io.IOException {
892      return PARSER.parseFrom(input, extensionRegistry);
893    }
894    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto parseDelimitedFrom(java.io.InputStream input)
895        throws java.io.IOException {
896      return PARSER.parseDelimitedFrom(input);
897    }
898    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto parseDelimitedFrom(
899        java.io.InputStream input,
900        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
901        throws java.io.IOException {
902      return PARSER.parseDelimitedFrom(input, extensionRegistry);
903    }
904    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto parseFrom(
905        com.google.protobuf.CodedInputStream input)
906        throws java.io.IOException {
907      return PARSER.parseFrom(input);
908    }
909    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto parseFrom(
910        com.google.protobuf.CodedInputStream input,
911        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
912        throws java.io.IOException {
913      return PARSER.parseFrom(input, extensionRegistry);
914    }
915
916    public static Builder newBuilder() { return Builder.create(); }
917    public Builder newBuilderForType() { return newBuilder(); }
918    public static Builder newBuilder(org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto prototype) {
919      return newBuilder().mergeFrom(prototype);
920    }
921    public Builder toBuilder() { return newBuilder(this); }
922
923    @java.lang.Override
924    protected Builder newBuilderForType(
925        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
926      Builder builder = new Builder(parent);
927      return builder;
928    }
929    /**
930     * Protobuf type {@code KillEvaluatorProto}
931     *
932     * <pre>
933     * Kill the evaluator
934     * </pre>
935     */
936    public static final class Builder extends
937        com.google.protobuf.GeneratedMessage.Builder<Builder>
938       implements org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProtoOrBuilder {
939      public static final com.google.protobuf.Descriptors.Descriptor
940          getDescriptor() {
941        return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_KillEvaluatorProto_descriptor;
942      }
943
944      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
945          internalGetFieldAccessorTable() {
946        return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_KillEvaluatorProto_fieldAccessorTable
947            .ensureFieldAccessorsInitialized(
948                org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto.class, org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto.Builder.class);
949      }
950
951      // Construct using org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto.newBuilder()
952      private Builder() {
953        maybeForceBuilderInitialization();
954      }
955
956      private Builder(
957          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
958        super(parent);
959        maybeForceBuilderInitialization();
960      }
961      private void maybeForceBuilderInitialization() {
962        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
963        }
964      }
965      private static Builder create() {
966        return new Builder();
967      }
968
969      public Builder clear() {
970        super.clear();
971        return this;
972      }
973
974      public Builder clone() {
975        return create().mergeFrom(buildPartial());
976      }
977
978      public com.google.protobuf.Descriptors.Descriptor
979          getDescriptorForType() {
980        return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_KillEvaluatorProto_descriptor;
981      }
982
983      public org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto getDefaultInstanceForType() {
984        return org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto.getDefaultInstance();
985      }
986
987      public org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto build() {
988        org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto result = buildPartial();
989        if (!result.isInitialized()) {
990          throw newUninitializedMessageException(result);
991        }
992        return result;
993      }
994
995      public org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto buildPartial() {
996        org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto result = new org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto(this);
997        onBuilt();
998        return result;
999      }
1000
1001      public Builder mergeFrom(com.google.protobuf.Message other) {
1002        if (other instanceof org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto) {
1003          return mergeFrom((org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto)other);
1004        } else {
1005          super.mergeFrom(other);
1006          return this;
1007        }
1008      }
1009
1010      public Builder mergeFrom(org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto other) {
1011        if (other == org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto.getDefaultInstance()) return this;
1012        this.mergeUnknownFields(other.getUnknownFields());
1013        return this;
1014      }
1015
1016      public final boolean isInitialized() {
1017        return true;
1018      }
1019
1020      public Builder mergeFrom(
1021          com.google.protobuf.CodedInputStream input,
1022          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1023          throws java.io.IOException {
1024        org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto parsedMessage = null;
1025        try {
1026          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
1027        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1028          parsedMessage = (org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto) e.getUnfinishedMessage();
1029          throw e;
1030        } finally {
1031          if (parsedMessage != null) {
1032            mergeFrom(parsedMessage);
1033          }
1034        }
1035        return this;
1036      }
1037
1038      // @@protoc_insertion_point(builder_scope:KillEvaluatorProto)
1039    }
1040
1041    static {
1042      defaultInstance = new KillEvaluatorProto(true);
1043      defaultInstance.initFields();
1044    }
1045
1046    // @@protoc_insertion_point(class_scope:KillEvaluatorProto)
1047  }
1048
1049  public interface StartTaskProtoOrBuilder
1050      extends com.google.protobuf.MessageOrBuilder {
1051
1052    // required string context_id = 1;
1053    /**
1054     * <code>required string context_id = 1;</code>
1055     */
1056    boolean hasContextId();
1057    /**
1058     * <code>required string context_id = 1;</code>
1059     */
1060    java.lang.String getContextId();
1061    /**
1062     * <code>required string context_id = 1;</code>
1063     */
1064    com.google.protobuf.ByteString
1065        getContextIdBytes();
1066
1067    // required string configuration = 2;
1068    /**
1069     * <code>required string configuration = 2;</code>
1070     */
1071    boolean hasConfiguration();
1072    /**
1073     * <code>required string configuration = 2;</code>
1074     */
1075    java.lang.String getConfiguration();
1076    /**
1077     * <code>required string configuration = 2;</code>
1078     */
1079    com.google.protobuf.ByteString
1080        getConfigurationBytes();
1081  }
1082  /**
1083   * Protobuf type {@code StartTaskProto}
1084   *
1085   * <pre>
1086   * Start a task
1087   * </pre>
1088   */
1089  public static final class StartTaskProto extends
1090      com.google.protobuf.GeneratedMessage
1091      implements StartTaskProtoOrBuilder {
1092    // Use StartTaskProto.newBuilder() to construct.
1093    private StartTaskProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
1094      super(builder);
1095      this.unknownFields = builder.getUnknownFields();
1096    }
1097    private StartTaskProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
1098
1099    private static final StartTaskProto defaultInstance;
1100    public static StartTaskProto getDefaultInstance() {
1101      return defaultInstance;
1102    }
1103
1104    public StartTaskProto getDefaultInstanceForType() {
1105      return defaultInstance;
1106    }
1107
1108    private final com.google.protobuf.UnknownFieldSet unknownFields;
1109    @java.lang.Override
1110    public final com.google.protobuf.UnknownFieldSet
1111        getUnknownFields() {
1112      return this.unknownFields;
1113    }
1114    private StartTaskProto(
1115        com.google.protobuf.CodedInputStream input,
1116        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1117        throws com.google.protobuf.InvalidProtocolBufferException {
1118      initFields();
1119      int mutable_bitField0_ = 0;
1120      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
1121          com.google.protobuf.UnknownFieldSet.newBuilder();
1122      try {
1123        boolean done = false;
1124        while (!done) {
1125          int tag = input.readTag();
1126          switch (tag) {
1127            case 0:
1128              done = true;
1129              break;
1130            default: {
1131              if (!parseUnknownField(input, unknownFields,
1132                                     extensionRegistry, tag)) {
1133                done = true;
1134              }
1135              break;
1136            }
1137            case 10: {
1138              bitField0_ |= 0x00000001;
1139              contextId_ = input.readBytes();
1140              break;
1141            }
1142            case 18: {
1143              bitField0_ |= 0x00000002;
1144              configuration_ = input.readBytes();
1145              break;
1146            }
1147          }
1148        }
1149      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1150        throw e.setUnfinishedMessage(this);
1151      } catch (java.io.IOException e) {
1152        throw new com.google.protobuf.InvalidProtocolBufferException(
1153            e.getMessage()).setUnfinishedMessage(this);
1154      } finally {
1155        this.unknownFields = unknownFields.build();
1156        makeExtensionsImmutable();
1157      }
1158    }
1159    public static final com.google.protobuf.Descriptors.Descriptor
1160        getDescriptor() {
1161      return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_StartTaskProto_descriptor;
1162    }
1163
1164    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1165        internalGetFieldAccessorTable() {
1166      return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_StartTaskProto_fieldAccessorTable
1167          .ensureFieldAccessorsInitialized(
1168              org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto.class, org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto.Builder.class);
1169    }
1170
1171    public static com.google.protobuf.Parser<StartTaskProto> PARSER =
1172        new com.google.protobuf.AbstractParser<StartTaskProto>() {
1173      public StartTaskProto parsePartialFrom(
1174          com.google.protobuf.CodedInputStream input,
1175          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1176          throws com.google.protobuf.InvalidProtocolBufferException {
1177        return new StartTaskProto(input, extensionRegistry);
1178      }
1179    };
1180
1181    @java.lang.Override
1182    public com.google.protobuf.Parser<StartTaskProto> getParserForType() {
1183      return PARSER;
1184    }
1185
1186    private int bitField0_;
1187    // required string context_id = 1;
1188    public static final int CONTEXT_ID_FIELD_NUMBER = 1;
1189    private java.lang.Object contextId_;
1190    /**
1191     * <code>required string context_id = 1;</code>
1192     */
1193    public boolean hasContextId() {
1194      return ((bitField0_ & 0x00000001) == 0x00000001);
1195    }
1196    /**
1197     * <code>required string context_id = 1;</code>
1198     */
1199    public java.lang.String getContextId() {
1200      java.lang.Object ref = contextId_;
1201      if (ref instanceof java.lang.String) {
1202        return (java.lang.String) ref;
1203      } else {
1204        com.google.protobuf.ByteString bs = 
1205            (com.google.protobuf.ByteString) ref;
1206        java.lang.String s = bs.toStringUtf8();
1207        if (bs.isValidUtf8()) {
1208          contextId_ = s;
1209        }
1210        return s;
1211      }
1212    }
1213    /**
1214     * <code>required string context_id = 1;</code>
1215     */
1216    public com.google.protobuf.ByteString
1217        getContextIdBytes() {
1218      java.lang.Object ref = contextId_;
1219      if (ref instanceof java.lang.String) {
1220        com.google.protobuf.ByteString b = 
1221            com.google.protobuf.ByteString.copyFromUtf8(
1222                (java.lang.String) ref);
1223        contextId_ = b;
1224        return b;
1225      } else {
1226        return (com.google.protobuf.ByteString) ref;
1227      }
1228    }
1229
1230    // required string configuration = 2;
1231    public static final int CONFIGURATION_FIELD_NUMBER = 2;
1232    private java.lang.Object configuration_;
1233    /**
1234     * <code>required string configuration = 2;</code>
1235     */
1236    public boolean hasConfiguration() {
1237      return ((bitField0_ & 0x00000002) == 0x00000002);
1238    }
1239    /**
1240     * <code>required string configuration = 2;</code>
1241     */
1242    public java.lang.String getConfiguration() {
1243      java.lang.Object ref = configuration_;
1244      if (ref instanceof java.lang.String) {
1245        return (java.lang.String) ref;
1246      } else {
1247        com.google.protobuf.ByteString bs = 
1248            (com.google.protobuf.ByteString) ref;
1249        java.lang.String s = bs.toStringUtf8();
1250        if (bs.isValidUtf8()) {
1251          configuration_ = s;
1252        }
1253        return s;
1254      }
1255    }
1256    /**
1257     * <code>required string configuration = 2;</code>
1258     */
1259    public com.google.protobuf.ByteString
1260        getConfigurationBytes() {
1261      java.lang.Object ref = configuration_;
1262      if (ref instanceof java.lang.String) {
1263        com.google.protobuf.ByteString b = 
1264            com.google.protobuf.ByteString.copyFromUtf8(
1265                (java.lang.String) ref);
1266        configuration_ = b;
1267        return b;
1268      } else {
1269        return (com.google.protobuf.ByteString) ref;
1270      }
1271    }
1272
1273    private void initFields() {
1274      contextId_ = "";
1275      configuration_ = "";
1276    }
1277    private byte memoizedIsInitialized = -1;
1278    public final boolean isInitialized() {
1279      byte isInitialized = memoizedIsInitialized;
1280      if (isInitialized != -1) return isInitialized == 1;
1281
1282      if (!hasContextId()) {
1283        memoizedIsInitialized = 0;
1284        return false;
1285      }
1286      if (!hasConfiguration()) {
1287        memoizedIsInitialized = 0;
1288        return false;
1289      }
1290      memoizedIsInitialized = 1;
1291      return true;
1292    }
1293
1294    public void writeTo(com.google.protobuf.CodedOutputStream output)
1295                        throws java.io.IOException {
1296      getSerializedSize();
1297      if (((bitField0_ & 0x00000001) == 0x00000001)) {
1298        output.writeBytes(1, getContextIdBytes());
1299      }
1300      if (((bitField0_ & 0x00000002) == 0x00000002)) {
1301        output.writeBytes(2, getConfigurationBytes());
1302      }
1303      getUnknownFields().writeTo(output);
1304    }
1305
1306    private int memoizedSerializedSize = -1;
1307    public int getSerializedSize() {
1308      int size = memoizedSerializedSize;
1309      if (size != -1) return size;
1310
1311      size = 0;
1312      if (((bitField0_ & 0x00000001) == 0x00000001)) {
1313        size += com.google.protobuf.CodedOutputStream
1314          .computeBytesSize(1, getContextIdBytes());
1315      }
1316      if (((bitField0_ & 0x00000002) == 0x00000002)) {
1317        size += com.google.protobuf.CodedOutputStream
1318          .computeBytesSize(2, getConfigurationBytes());
1319      }
1320      size += getUnknownFields().getSerializedSize();
1321      memoizedSerializedSize = size;
1322      return size;
1323    }
1324
1325    private static final long serialVersionUID = 0L;
1326    @java.lang.Override
1327    protected java.lang.Object writeReplace()
1328        throws java.io.ObjectStreamException {
1329      return super.writeReplace();
1330    }
1331
1332    @java.lang.Override
1333    public boolean equals(final java.lang.Object obj) {
1334      if (obj == this) {
1335       return true;
1336      }
1337      if (!(obj instanceof org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto)) {
1338        return super.equals(obj);
1339      }
1340      org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto other = (org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto) obj;
1341
1342      boolean result = true;
1343      result = result && (hasContextId() == other.hasContextId());
1344      if (hasContextId()) {
1345        result = result && getContextId()
1346            .equals(other.getContextId());
1347      }
1348      result = result && (hasConfiguration() == other.hasConfiguration());
1349      if (hasConfiguration()) {
1350        result = result && getConfiguration()
1351            .equals(other.getConfiguration());
1352      }
1353      result = result &&
1354          getUnknownFields().equals(other.getUnknownFields());
1355      return result;
1356    }
1357
1358    private int memoizedHashCode = 0;
1359    @java.lang.Override
1360    public int hashCode() {
1361      if (memoizedHashCode != 0) {
1362        return memoizedHashCode;
1363      }
1364      int hash = 41;
1365      hash = (19 * hash) + getDescriptorForType().hashCode();
1366      if (hasContextId()) {
1367        hash = (37 * hash) + CONTEXT_ID_FIELD_NUMBER;
1368        hash = (53 * hash) + getContextId().hashCode();
1369      }
1370      if (hasConfiguration()) {
1371        hash = (37 * hash) + CONFIGURATION_FIELD_NUMBER;
1372        hash = (53 * hash) + getConfiguration().hashCode();
1373      }
1374      hash = (29 * hash) + getUnknownFields().hashCode();
1375      memoizedHashCode = hash;
1376      return hash;
1377    }
1378
1379    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto parseFrom(
1380        com.google.protobuf.ByteString data)
1381        throws com.google.protobuf.InvalidProtocolBufferException {
1382      return PARSER.parseFrom(data);
1383    }
1384    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto parseFrom(
1385        com.google.protobuf.ByteString data,
1386        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1387        throws com.google.protobuf.InvalidProtocolBufferException {
1388      return PARSER.parseFrom(data, extensionRegistry);
1389    }
1390    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto parseFrom(byte[] data)
1391        throws com.google.protobuf.InvalidProtocolBufferException {
1392      return PARSER.parseFrom(data);
1393    }
1394    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto parseFrom(
1395        byte[] data,
1396        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1397        throws com.google.protobuf.InvalidProtocolBufferException {
1398      return PARSER.parseFrom(data, extensionRegistry);
1399    }
1400    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto parseFrom(java.io.InputStream input)
1401        throws java.io.IOException {
1402      return PARSER.parseFrom(input);
1403    }
1404    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto parseFrom(
1405        java.io.InputStream input,
1406        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1407        throws java.io.IOException {
1408      return PARSER.parseFrom(input, extensionRegistry);
1409    }
1410    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto parseDelimitedFrom(java.io.InputStream input)
1411        throws java.io.IOException {
1412      return PARSER.parseDelimitedFrom(input);
1413    }
1414    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto parseDelimitedFrom(
1415        java.io.InputStream input,
1416        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1417        throws java.io.IOException {
1418      return PARSER.parseDelimitedFrom(input, extensionRegistry);
1419    }
1420    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto parseFrom(
1421        com.google.protobuf.CodedInputStream input)
1422        throws java.io.IOException {
1423      return PARSER.parseFrom(input);
1424    }
1425    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto parseFrom(
1426        com.google.protobuf.CodedInputStream input,
1427        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1428        throws java.io.IOException {
1429      return PARSER.parseFrom(input, extensionRegistry);
1430    }
1431
1432    public static Builder newBuilder() { return Builder.create(); }
1433    public Builder newBuilderForType() { return newBuilder(); }
1434    public static Builder newBuilder(org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto prototype) {
1435      return newBuilder().mergeFrom(prototype);
1436    }
1437    public Builder toBuilder() { return newBuilder(this); }
1438
1439    @java.lang.Override
1440    protected Builder newBuilderForType(
1441        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1442      Builder builder = new Builder(parent);
1443      return builder;
1444    }
1445    /**
1446     * Protobuf type {@code StartTaskProto}
1447     *
1448     * <pre>
1449     * Start a task
1450     * </pre>
1451     */
1452    public static final class Builder extends
1453        com.google.protobuf.GeneratedMessage.Builder<Builder>
1454       implements org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProtoOrBuilder {
1455      public static final com.google.protobuf.Descriptors.Descriptor
1456          getDescriptor() {
1457        return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_StartTaskProto_descriptor;
1458      }
1459
1460      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1461          internalGetFieldAccessorTable() {
1462        return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_StartTaskProto_fieldAccessorTable
1463            .ensureFieldAccessorsInitialized(
1464                org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto.class, org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto.Builder.class);
1465      }
1466
1467      // Construct using org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto.newBuilder()
1468      private Builder() {
1469        maybeForceBuilderInitialization();
1470      }
1471
1472      private Builder(
1473          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1474        super(parent);
1475        maybeForceBuilderInitialization();
1476      }
1477      private void maybeForceBuilderInitialization() {
1478        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
1479        }
1480      }
1481      private static Builder create() {
1482        return new Builder();
1483      }
1484
1485      public Builder clear() {
1486        super.clear();
1487        contextId_ = "";
1488        bitField0_ = (bitField0_ & ~0x00000001);
1489        configuration_ = "";
1490        bitField0_ = (bitField0_ & ~0x00000002);
1491        return this;
1492      }
1493
1494      public Builder clone() {
1495        return create().mergeFrom(buildPartial());
1496      }
1497
1498      public com.google.protobuf.Descriptors.Descriptor
1499          getDescriptorForType() {
1500        return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_StartTaskProto_descriptor;
1501      }
1502
1503      public org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto getDefaultInstanceForType() {
1504        return org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto.getDefaultInstance();
1505      }
1506
1507      public org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto build() {
1508        org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto result = buildPartial();
1509        if (!result.isInitialized()) {
1510          throw newUninitializedMessageException(result);
1511        }
1512        return result;
1513      }
1514
1515      public org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto buildPartial() {
1516        org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto result = new org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto(this);
1517        int from_bitField0_ = bitField0_;
1518        int to_bitField0_ = 0;
1519        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
1520          to_bitField0_ |= 0x00000001;
1521        }
1522        result.contextId_ = contextId_;
1523        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
1524          to_bitField0_ |= 0x00000002;
1525        }
1526        result.configuration_ = configuration_;
1527        result.bitField0_ = to_bitField0_;
1528        onBuilt();
1529        return result;
1530      }
1531
1532      public Builder mergeFrom(com.google.protobuf.Message other) {
1533        if (other instanceof org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto) {
1534          return mergeFrom((org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto)other);
1535        } else {
1536          super.mergeFrom(other);
1537          return this;
1538        }
1539      }
1540
1541      public Builder mergeFrom(org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto other) {
1542        if (other == org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto.getDefaultInstance()) return this;
1543        if (other.hasContextId()) {
1544          bitField0_ |= 0x00000001;
1545          contextId_ = other.contextId_;
1546          onChanged();
1547        }
1548        if (other.hasConfiguration()) {
1549          bitField0_ |= 0x00000002;
1550          configuration_ = other.configuration_;
1551          onChanged();
1552        }
1553        this.mergeUnknownFields(other.getUnknownFields());
1554        return this;
1555      }
1556
1557      public final boolean isInitialized() {
1558        if (!hasContextId()) {
1559          
1560          return false;
1561        }
1562        if (!hasConfiguration()) {
1563          
1564          return false;
1565        }
1566        return true;
1567      }
1568
1569      public Builder mergeFrom(
1570          com.google.protobuf.CodedInputStream input,
1571          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1572          throws java.io.IOException {
1573        org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto parsedMessage = null;
1574        try {
1575          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
1576        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1577          parsedMessage = (org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto) e.getUnfinishedMessage();
1578          throw e;
1579        } finally {
1580          if (parsedMessage != null) {
1581            mergeFrom(parsedMessage);
1582          }
1583        }
1584        return this;
1585      }
1586      private int bitField0_;
1587
1588      // required string context_id = 1;
1589      private java.lang.Object contextId_ = "";
1590      /**
1591       * <code>required string context_id = 1;</code>
1592       */
1593      public boolean hasContextId() {
1594        return ((bitField0_ & 0x00000001) == 0x00000001);
1595      }
1596      /**
1597       * <code>required string context_id = 1;</code>
1598       */
1599      public java.lang.String getContextId() {
1600        java.lang.Object ref = contextId_;
1601        if (!(ref instanceof java.lang.String)) {
1602          java.lang.String s = ((com.google.protobuf.ByteString) ref)
1603              .toStringUtf8();
1604          contextId_ = s;
1605          return s;
1606        } else {
1607          return (java.lang.String) ref;
1608        }
1609      }
1610      /**
1611       * <code>required string context_id = 1;</code>
1612       */
1613      public com.google.protobuf.ByteString
1614          getContextIdBytes() {
1615        java.lang.Object ref = contextId_;
1616        if (ref instanceof String) {
1617          com.google.protobuf.ByteString b = 
1618              com.google.protobuf.ByteString.copyFromUtf8(
1619                  (java.lang.String) ref);
1620          contextId_ = b;
1621          return b;
1622        } else {
1623          return (com.google.protobuf.ByteString) ref;
1624        }
1625      }
1626      /**
1627       * <code>required string context_id = 1;</code>
1628       */
1629      public Builder setContextId(
1630          java.lang.String value) {
1631        if (value == null) {
1632    throw new NullPointerException();
1633  }
1634  bitField0_ |= 0x00000001;
1635        contextId_ = value;
1636        onChanged();
1637        return this;
1638      }
1639      /**
1640       * <code>required string context_id = 1;</code>
1641       */
1642      public Builder clearContextId() {
1643        bitField0_ = (bitField0_ & ~0x00000001);
1644        contextId_ = getDefaultInstance().getContextId();
1645        onChanged();
1646        return this;
1647      }
1648      /**
1649       * <code>required string context_id = 1;</code>
1650       */
1651      public Builder setContextIdBytes(
1652          com.google.protobuf.ByteString value) {
1653        if (value == null) {
1654    throw new NullPointerException();
1655  }
1656  bitField0_ |= 0x00000001;
1657        contextId_ = value;
1658        onChanged();
1659        return this;
1660      }
1661
1662      // required string configuration = 2;
1663      private java.lang.Object configuration_ = "";
1664      /**
1665       * <code>required string configuration = 2;</code>
1666       */
1667      public boolean hasConfiguration() {
1668        return ((bitField0_ & 0x00000002) == 0x00000002);
1669      }
1670      /**
1671       * <code>required string configuration = 2;</code>
1672       */
1673      public java.lang.String getConfiguration() {
1674        java.lang.Object ref = configuration_;
1675        if (!(ref instanceof java.lang.String)) {
1676          java.lang.String s = ((com.google.protobuf.ByteString) ref)
1677              .toStringUtf8();
1678          configuration_ = s;
1679          return s;
1680        } else {
1681          return (java.lang.String) ref;
1682        }
1683      }
1684      /**
1685       * <code>required string configuration = 2;</code>
1686       */
1687      public com.google.protobuf.ByteString
1688          getConfigurationBytes() {
1689        java.lang.Object ref = configuration_;
1690        if (ref instanceof String) {
1691          com.google.protobuf.ByteString b = 
1692              com.google.protobuf.ByteString.copyFromUtf8(
1693                  (java.lang.String) ref);
1694          configuration_ = b;
1695          return b;
1696        } else {
1697          return (com.google.protobuf.ByteString) ref;
1698        }
1699      }
1700      /**
1701       * <code>required string configuration = 2;</code>
1702       */
1703      public Builder setConfiguration(
1704          java.lang.String value) {
1705        if (value == null) {
1706    throw new NullPointerException();
1707  }
1708  bitField0_ |= 0x00000002;
1709        configuration_ = value;
1710        onChanged();
1711        return this;
1712      }
1713      /**
1714       * <code>required string configuration = 2;</code>
1715       */
1716      public Builder clearConfiguration() {
1717        bitField0_ = (bitField0_ & ~0x00000002);
1718        configuration_ = getDefaultInstance().getConfiguration();
1719        onChanged();
1720        return this;
1721      }
1722      /**
1723       * <code>required string configuration = 2;</code>
1724       */
1725      public Builder setConfigurationBytes(
1726          com.google.protobuf.ByteString value) {
1727        if (value == null) {
1728    throw new NullPointerException();
1729  }
1730  bitField0_ |= 0x00000002;
1731        configuration_ = value;
1732        onChanged();
1733        return this;
1734      }
1735
1736      // @@protoc_insertion_point(builder_scope:StartTaskProto)
1737    }
1738
1739    static {
1740      defaultInstance = new StartTaskProto(true);
1741      defaultInstance.initFields();
1742    }
1743
1744    // @@protoc_insertion_point(class_scope:StartTaskProto)
1745  }
1746
1747  public interface AddContextProtoOrBuilder
1748      extends com.google.protobuf.MessageOrBuilder {
1749
1750    // required string parent_context_id = 1;
1751    /**
1752     * <code>required string parent_context_id = 1;</code>
1753     */
1754    boolean hasParentContextId();
1755    /**
1756     * <code>required string parent_context_id = 1;</code>
1757     */
1758    java.lang.String getParentContextId();
1759    /**
1760     * <code>required string parent_context_id = 1;</code>
1761     */
1762    com.google.protobuf.ByteString
1763        getParentContextIdBytes();
1764
1765    // required string context_configuration = 2;
1766    /**
1767     * <code>required string context_configuration = 2;</code>
1768     */
1769    boolean hasContextConfiguration();
1770    /**
1771     * <code>required string context_configuration = 2;</code>
1772     */
1773    java.lang.String getContextConfiguration();
1774    /**
1775     * <code>required string context_configuration = 2;</code>
1776     */
1777    com.google.protobuf.ByteString
1778        getContextConfigurationBytes();
1779
1780    // optional string service_configuration = 3;
1781    /**
1782     * <code>optional string service_configuration = 3;</code>
1783     */
1784    boolean hasServiceConfiguration();
1785    /**
1786     * <code>optional string service_configuration = 3;</code>
1787     */
1788    java.lang.String getServiceConfiguration();
1789    /**
1790     * <code>optional string service_configuration = 3;</code>
1791     */
1792    com.google.protobuf.ByteString
1793        getServiceConfigurationBytes();
1794  }
1795  /**
1796   * Protobuf type {@code AddContextProto}
1797   */
1798  public static final class AddContextProto extends
1799      com.google.protobuf.GeneratedMessage
1800      implements AddContextProtoOrBuilder {
1801    // Use AddContextProto.newBuilder() to construct.
1802    private AddContextProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
1803      super(builder);
1804      this.unknownFields = builder.getUnknownFields();
1805    }
1806    private AddContextProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
1807
1808    private static final AddContextProto defaultInstance;
1809    public static AddContextProto getDefaultInstance() {
1810      return defaultInstance;
1811    }
1812
1813    public AddContextProto getDefaultInstanceForType() {
1814      return defaultInstance;
1815    }
1816
1817    private final com.google.protobuf.UnknownFieldSet unknownFields;
1818    @java.lang.Override
1819    public final com.google.protobuf.UnknownFieldSet
1820        getUnknownFields() {
1821      return this.unknownFields;
1822    }
1823    private AddContextProto(
1824        com.google.protobuf.CodedInputStream input,
1825        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1826        throws com.google.protobuf.InvalidProtocolBufferException {
1827      initFields();
1828      int mutable_bitField0_ = 0;
1829      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
1830          com.google.protobuf.UnknownFieldSet.newBuilder();
1831      try {
1832        boolean done = false;
1833        while (!done) {
1834          int tag = input.readTag();
1835          switch (tag) {
1836            case 0:
1837              done = true;
1838              break;
1839            default: {
1840              if (!parseUnknownField(input, unknownFields,
1841                                     extensionRegistry, tag)) {
1842                done = true;
1843              }
1844              break;
1845            }
1846            case 10: {
1847              bitField0_ |= 0x00000001;
1848              parentContextId_ = input.readBytes();
1849              break;
1850            }
1851            case 18: {
1852              bitField0_ |= 0x00000002;
1853              contextConfiguration_ = input.readBytes();
1854              break;
1855            }
1856            case 26: {
1857              bitField0_ |= 0x00000004;
1858              serviceConfiguration_ = input.readBytes();
1859              break;
1860            }
1861          }
1862        }
1863      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1864        throw e.setUnfinishedMessage(this);
1865      } catch (java.io.IOException e) {
1866        throw new com.google.protobuf.InvalidProtocolBufferException(
1867            e.getMessage()).setUnfinishedMessage(this);
1868      } finally {
1869        this.unknownFields = unknownFields.build();
1870        makeExtensionsImmutable();
1871      }
1872    }
1873    public static final com.google.protobuf.Descriptors.Descriptor
1874        getDescriptor() {
1875      return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_AddContextProto_descriptor;
1876    }
1877
1878    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1879        internalGetFieldAccessorTable() {
1880      return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_AddContextProto_fieldAccessorTable
1881          .ensureFieldAccessorsInitialized(
1882              org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto.class, org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto.Builder.class);
1883    }
1884
1885    public static com.google.protobuf.Parser<AddContextProto> PARSER =
1886        new com.google.protobuf.AbstractParser<AddContextProto>() {
1887      public AddContextProto parsePartialFrom(
1888          com.google.protobuf.CodedInputStream input,
1889          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1890          throws com.google.protobuf.InvalidProtocolBufferException {
1891        return new AddContextProto(input, extensionRegistry);
1892      }
1893    };
1894
1895    @java.lang.Override
1896    public com.google.protobuf.Parser<AddContextProto> getParserForType() {
1897      return PARSER;
1898    }
1899
1900    private int bitField0_;
1901    // required string parent_context_id = 1;
1902    public static final int PARENT_CONTEXT_ID_FIELD_NUMBER = 1;
1903    private java.lang.Object parentContextId_;
1904    /**
1905     * <code>required string parent_context_id = 1;</code>
1906     */
1907    public boolean hasParentContextId() {
1908      return ((bitField0_ & 0x00000001) == 0x00000001);
1909    }
1910    /**
1911     * <code>required string parent_context_id = 1;</code>
1912     */
1913    public java.lang.String getParentContextId() {
1914      java.lang.Object ref = parentContextId_;
1915      if (ref instanceof java.lang.String) {
1916        return (java.lang.String) ref;
1917      } else {
1918        com.google.protobuf.ByteString bs = 
1919            (com.google.protobuf.ByteString) ref;
1920        java.lang.String s = bs.toStringUtf8();
1921        if (bs.isValidUtf8()) {
1922          parentContextId_ = s;
1923        }
1924        return s;
1925      }
1926    }
1927    /**
1928     * <code>required string parent_context_id = 1;</code>
1929     */
1930    public com.google.protobuf.ByteString
1931        getParentContextIdBytes() {
1932      java.lang.Object ref = parentContextId_;
1933      if (ref instanceof java.lang.String) {
1934        com.google.protobuf.ByteString b = 
1935            com.google.protobuf.ByteString.copyFromUtf8(
1936                (java.lang.String) ref);
1937        parentContextId_ = b;
1938        return b;
1939      } else {
1940        return (com.google.protobuf.ByteString) ref;
1941      }
1942    }
1943
1944    // required string context_configuration = 2;
1945    public static final int CONTEXT_CONFIGURATION_FIELD_NUMBER = 2;
1946    private java.lang.Object contextConfiguration_;
1947    /**
1948     * <code>required string context_configuration = 2;</code>
1949     */
1950    public boolean hasContextConfiguration() {
1951      return ((bitField0_ & 0x00000002) == 0x00000002);
1952    }
1953    /**
1954     * <code>required string context_configuration = 2;</code>
1955     */
1956    public java.lang.String getContextConfiguration() {
1957      java.lang.Object ref = contextConfiguration_;
1958      if (ref instanceof java.lang.String) {
1959        return (java.lang.String) ref;
1960      } else {
1961        com.google.protobuf.ByteString bs = 
1962            (com.google.protobuf.ByteString) ref;
1963        java.lang.String s = bs.toStringUtf8();
1964        if (bs.isValidUtf8()) {
1965          contextConfiguration_ = s;
1966        }
1967        return s;
1968      }
1969    }
1970    /**
1971     * <code>required string context_configuration = 2;</code>
1972     */
1973    public com.google.protobuf.ByteString
1974        getContextConfigurationBytes() {
1975      java.lang.Object ref = contextConfiguration_;
1976      if (ref instanceof java.lang.String) {
1977        com.google.protobuf.ByteString b = 
1978            com.google.protobuf.ByteString.copyFromUtf8(
1979                (java.lang.String) ref);
1980        contextConfiguration_ = b;
1981        return b;
1982      } else {
1983        return (com.google.protobuf.ByteString) ref;
1984      }
1985    }
1986
1987    // optional string service_configuration = 3;
1988    public static final int SERVICE_CONFIGURATION_FIELD_NUMBER = 3;
1989    private java.lang.Object serviceConfiguration_;
1990    /**
1991     * <code>optional string service_configuration = 3;</code>
1992     */
1993    public boolean hasServiceConfiguration() {
1994      return ((bitField0_ & 0x00000004) == 0x00000004);
1995    }
1996    /**
1997     * <code>optional string service_configuration = 3;</code>
1998     */
1999    public java.lang.String getServiceConfiguration() {
2000      java.lang.Object ref = serviceConfiguration_;
2001      if (ref instanceof java.lang.String) {
2002        return (java.lang.String) ref;
2003      } else {
2004        com.google.protobuf.ByteString bs = 
2005            (com.google.protobuf.ByteString) ref;
2006        java.lang.String s = bs.toStringUtf8();
2007        if (bs.isValidUtf8()) {
2008          serviceConfiguration_ = s;
2009        }
2010        return s;
2011      }
2012    }
2013    /**
2014     * <code>optional string service_configuration = 3;</code>
2015     */
2016    public com.google.protobuf.ByteString
2017        getServiceConfigurationBytes() {
2018      java.lang.Object ref = serviceConfiguration_;
2019      if (ref instanceof java.lang.String) {
2020        com.google.protobuf.ByteString b = 
2021            com.google.protobuf.ByteString.copyFromUtf8(
2022                (java.lang.String) ref);
2023        serviceConfiguration_ = b;
2024        return b;
2025      } else {
2026        return (com.google.protobuf.ByteString) ref;
2027      }
2028    }
2029
2030    private void initFields() {
2031      parentContextId_ = "";
2032      contextConfiguration_ = "";
2033      serviceConfiguration_ = "";
2034    }
2035    private byte memoizedIsInitialized = -1;
2036    public final boolean isInitialized() {
2037      byte isInitialized = memoizedIsInitialized;
2038      if (isInitialized != -1) return isInitialized == 1;
2039
2040      if (!hasParentContextId()) {
2041        memoizedIsInitialized = 0;
2042        return false;
2043      }
2044      if (!hasContextConfiguration()) {
2045        memoizedIsInitialized = 0;
2046        return false;
2047      }
2048      memoizedIsInitialized = 1;
2049      return true;
2050    }
2051
2052    public void writeTo(com.google.protobuf.CodedOutputStream output)
2053                        throws java.io.IOException {
2054      getSerializedSize();
2055      if (((bitField0_ & 0x00000001) == 0x00000001)) {
2056        output.writeBytes(1, getParentContextIdBytes());
2057      }
2058      if (((bitField0_ & 0x00000002) == 0x00000002)) {
2059        output.writeBytes(2, getContextConfigurationBytes());
2060      }
2061      if (((bitField0_ & 0x00000004) == 0x00000004)) {
2062        output.writeBytes(3, getServiceConfigurationBytes());
2063      }
2064      getUnknownFields().writeTo(output);
2065    }
2066
2067    private int memoizedSerializedSize = -1;
2068    public int getSerializedSize() {
2069      int size = memoizedSerializedSize;
2070      if (size != -1) return size;
2071
2072      size = 0;
2073      if (((bitField0_ & 0x00000001) == 0x00000001)) {
2074        size += com.google.protobuf.CodedOutputStream
2075          .computeBytesSize(1, getParentContextIdBytes());
2076      }
2077      if (((bitField0_ & 0x00000002) == 0x00000002)) {
2078        size += com.google.protobuf.CodedOutputStream
2079          .computeBytesSize(2, getContextConfigurationBytes());
2080      }
2081      if (((bitField0_ & 0x00000004) == 0x00000004)) {
2082        size += com.google.protobuf.CodedOutputStream
2083          .computeBytesSize(3, getServiceConfigurationBytes());
2084      }
2085      size += getUnknownFields().getSerializedSize();
2086      memoizedSerializedSize = size;
2087      return size;
2088    }
2089
2090    private static final long serialVersionUID = 0L;
2091    @java.lang.Override
2092    protected java.lang.Object writeReplace()
2093        throws java.io.ObjectStreamException {
2094      return super.writeReplace();
2095    }
2096
2097    @java.lang.Override
2098    public boolean equals(final java.lang.Object obj) {
2099      if (obj == this) {
2100       return true;
2101      }
2102      if (!(obj instanceof org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto)) {
2103        return super.equals(obj);
2104      }
2105      org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto other = (org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto) obj;
2106
2107      boolean result = true;
2108      result = result && (hasParentContextId() == other.hasParentContextId());
2109      if (hasParentContextId()) {
2110        result = result && getParentContextId()
2111            .equals(other.getParentContextId());
2112      }
2113      result = result && (hasContextConfiguration() == other.hasContextConfiguration());
2114      if (hasContextConfiguration()) {
2115        result = result && getContextConfiguration()
2116            .equals(other.getContextConfiguration());
2117      }
2118      result = result && (hasServiceConfiguration() == other.hasServiceConfiguration());
2119      if (hasServiceConfiguration()) {
2120        result = result && getServiceConfiguration()
2121            .equals(other.getServiceConfiguration());
2122      }
2123      result = result &&
2124          getUnknownFields().equals(other.getUnknownFields());
2125      return result;
2126    }
2127
2128    private int memoizedHashCode = 0;
2129    @java.lang.Override
2130    public int hashCode() {
2131      if (memoizedHashCode != 0) {
2132        return memoizedHashCode;
2133      }
2134      int hash = 41;
2135      hash = (19 * hash) + getDescriptorForType().hashCode();
2136      if (hasParentContextId()) {
2137        hash = (37 * hash) + PARENT_CONTEXT_ID_FIELD_NUMBER;
2138        hash = (53 * hash) + getParentContextId().hashCode();
2139      }
2140      if (hasContextConfiguration()) {
2141        hash = (37 * hash) + CONTEXT_CONFIGURATION_FIELD_NUMBER;
2142        hash = (53 * hash) + getContextConfiguration().hashCode();
2143      }
2144      if (hasServiceConfiguration()) {
2145        hash = (37 * hash) + SERVICE_CONFIGURATION_FIELD_NUMBER;
2146        hash = (53 * hash) + getServiceConfiguration().hashCode();
2147      }
2148      hash = (29 * hash) + getUnknownFields().hashCode();
2149      memoizedHashCode = hash;
2150      return hash;
2151    }
2152
2153    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto parseFrom(
2154        com.google.protobuf.ByteString data)
2155        throws com.google.protobuf.InvalidProtocolBufferException {
2156      return PARSER.parseFrom(data);
2157    }
2158    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto parseFrom(
2159        com.google.protobuf.ByteString data,
2160        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2161        throws com.google.protobuf.InvalidProtocolBufferException {
2162      return PARSER.parseFrom(data, extensionRegistry);
2163    }
2164    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto parseFrom(byte[] data)
2165        throws com.google.protobuf.InvalidProtocolBufferException {
2166      return PARSER.parseFrom(data);
2167    }
2168    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto parseFrom(
2169        byte[] data,
2170        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2171        throws com.google.protobuf.InvalidProtocolBufferException {
2172      return PARSER.parseFrom(data, extensionRegistry);
2173    }
2174    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto parseFrom(java.io.InputStream input)
2175        throws java.io.IOException {
2176      return PARSER.parseFrom(input);
2177    }
2178    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto parseFrom(
2179        java.io.InputStream input,
2180        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2181        throws java.io.IOException {
2182      return PARSER.parseFrom(input, extensionRegistry);
2183    }
2184    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto parseDelimitedFrom(java.io.InputStream input)
2185        throws java.io.IOException {
2186      return PARSER.parseDelimitedFrom(input);
2187    }
2188    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto parseDelimitedFrom(
2189        java.io.InputStream input,
2190        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2191        throws java.io.IOException {
2192      return PARSER.parseDelimitedFrom(input, extensionRegistry);
2193    }
2194    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto parseFrom(
2195        com.google.protobuf.CodedInputStream input)
2196        throws java.io.IOException {
2197      return PARSER.parseFrom(input);
2198    }
2199    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto parseFrom(
2200        com.google.protobuf.CodedInputStream input,
2201        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2202        throws java.io.IOException {
2203      return PARSER.parseFrom(input, extensionRegistry);
2204    }
2205
2206    public static Builder newBuilder() { return Builder.create(); }
2207    public Builder newBuilderForType() { return newBuilder(); }
2208    public static Builder newBuilder(org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto prototype) {
2209      return newBuilder().mergeFrom(prototype);
2210    }
2211    public Builder toBuilder() { return newBuilder(this); }
2212
2213    @java.lang.Override
2214    protected Builder newBuilderForType(
2215        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
2216      Builder builder = new Builder(parent);
2217      return builder;
2218    }
2219    /**
2220     * Protobuf type {@code AddContextProto}
2221     */
2222    public static final class Builder extends
2223        com.google.protobuf.GeneratedMessage.Builder<Builder>
2224       implements org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProtoOrBuilder {
2225      public static final com.google.protobuf.Descriptors.Descriptor
2226          getDescriptor() {
2227        return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_AddContextProto_descriptor;
2228      }
2229
2230      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
2231          internalGetFieldAccessorTable() {
2232        return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_AddContextProto_fieldAccessorTable
2233            .ensureFieldAccessorsInitialized(
2234                org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto.class, org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto.Builder.class);
2235      }
2236
2237      // Construct using org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto.newBuilder()
2238      private Builder() {
2239        maybeForceBuilderInitialization();
2240      }
2241
2242      private Builder(
2243          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
2244        super(parent);
2245        maybeForceBuilderInitialization();
2246      }
2247      private void maybeForceBuilderInitialization() {
2248        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
2249        }
2250      }
2251      private static Builder create() {
2252        return new Builder();
2253      }
2254
2255      public Builder clear() {
2256        super.clear();
2257        parentContextId_ = "";
2258        bitField0_ = (bitField0_ & ~0x00000001);
2259        contextConfiguration_ = "";
2260        bitField0_ = (bitField0_ & ~0x00000002);
2261        serviceConfiguration_ = "";
2262        bitField0_ = (bitField0_ & ~0x00000004);
2263        return this;
2264      }
2265
2266      public Builder clone() {
2267        return create().mergeFrom(buildPartial());
2268      }
2269
2270      public com.google.protobuf.Descriptors.Descriptor
2271          getDescriptorForType() {
2272        return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_AddContextProto_descriptor;
2273      }
2274
2275      public org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto getDefaultInstanceForType() {
2276        return org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto.getDefaultInstance();
2277      }
2278
2279      public org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto build() {
2280        org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto result = buildPartial();
2281        if (!result.isInitialized()) {
2282          throw newUninitializedMessageException(result);
2283        }
2284        return result;
2285      }
2286
2287      public org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto buildPartial() {
2288        org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto result = new org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto(this);
2289        int from_bitField0_ = bitField0_;
2290        int to_bitField0_ = 0;
2291        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
2292          to_bitField0_ |= 0x00000001;
2293        }
2294        result.parentContextId_ = parentContextId_;
2295        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
2296          to_bitField0_ |= 0x00000002;
2297        }
2298        result.contextConfiguration_ = contextConfiguration_;
2299        if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
2300          to_bitField0_ |= 0x00000004;
2301        }
2302        result.serviceConfiguration_ = serviceConfiguration_;
2303        result.bitField0_ = to_bitField0_;
2304        onBuilt();
2305        return result;
2306      }
2307
2308      public Builder mergeFrom(com.google.protobuf.Message other) {
2309        if (other instanceof org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto) {
2310          return mergeFrom((org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto)other);
2311        } else {
2312          super.mergeFrom(other);
2313          return this;
2314        }
2315      }
2316
2317      public Builder mergeFrom(org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto other) {
2318        if (other == org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto.getDefaultInstance()) return this;
2319        if (other.hasParentContextId()) {
2320          bitField0_ |= 0x00000001;
2321          parentContextId_ = other.parentContextId_;
2322          onChanged();
2323        }
2324        if (other.hasContextConfiguration()) {
2325          bitField0_ |= 0x00000002;
2326          contextConfiguration_ = other.contextConfiguration_;
2327          onChanged();
2328        }
2329        if (other.hasServiceConfiguration()) {
2330          bitField0_ |= 0x00000004;
2331          serviceConfiguration_ = other.serviceConfiguration_;
2332          onChanged();
2333        }
2334        this.mergeUnknownFields(other.getUnknownFields());
2335        return this;
2336      }
2337
2338      public final boolean isInitialized() {
2339        if (!hasParentContextId()) {
2340          
2341          return false;
2342        }
2343        if (!hasContextConfiguration()) {
2344          
2345          return false;
2346        }
2347        return true;
2348      }
2349
2350      public Builder mergeFrom(
2351          com.google.protobuf.CodedInputStream input,
2352          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2353          throws java.io.IOException {
2354        org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto parsedMessage = null;
2355        try {
2356          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
2357        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2358          parsedMessage = (org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto) e.getUnfinishedMessage();
2359          throw e;
2360        } finally {
2361          if (parsedMessage != null) {
2362            mergeFrom(parsedMessage);
2363          }
2364        }
2365        return this;
2366      }
2367      private int bitField0_;
2368
2369      // required string parent_context_id = 1;
2370      private java.lang.Object parentContextId_ = "";
2371      /**
2372       * <code>required string parent_context_id = 1;</code>
2373       */
2374      public boolean hasParentContextId() {
2375        return ((bitField0_ & 0x00000001) == 0x00000001);
2376      }
2377      /**
2378       * <code>required string parent_context_id = 1;</code>
2379       */
2380      public java.lang.String getParentContextId() {
2381        java.lang.Object ref = parentContextId_;
2382        if (!(ref instanceof java.lang.String)) {
2383          java.lang.String s = ((com.google.protobuf.ByteString) ref)
2384              .toStringUtf8();
2385          parentContextId_ = s;
2386          return s;
2387        } else {
2388          return (java.lang.String) ref;
2389        }
2390      }
2391      /**
2392       * <code>required string parent_context_id = 1;</code>
2393       */
2394      public com.google.protobuf.ByteString
2395          getParentContextIdBytes() {
2396        java.lang.Object ref = parentContextId_;
2397        if (ref instanceof String) {
2398          com.google.protobuf.ByteString b = 
2399              com.google.protobuf.ByteString.copyFromUtf8(
2400                  (java.lang.String) ref);
2401          parentContextId_ = b;
2402          return b;
2403        } else {
2404          return (com.google.protobuf.ByteString) ref;
2405        }
2406      }
2407      /**
2408       * <code>required string parent_context_id = 1;</code>
2409       */
2410      public Builder setParentContextId(
2411          java.lang.String value) {
2412        if (value == null) {
2413    throw new NullPointerException();
2414  }
2415  bitField0_ |= 0x00000001;
2416        parentContextId_ = value;
2417        onChanged();
2418        return this;
2419      }
2420      /**
2421       * <code>required string parent_context_id = 1;</code>
2422       */
2423      public Builder clearParentContextId() {
2424        bitField0_ = (bitField0_ & ~0x00000001);
2425        parentContextId_ = getDefaultInstance().getParentContextId();
2426        onChanged();
2427        return this;
2428      }
2429      /**
2430       * <code>required string parent_context_id = 1;</code>
2431       */
2432      public Builder setParentContextIdBytes(
2433          com.google.protobuf.ByteString value) {
2434        if (value == null) {
2435    throw new NullPointerException();
2436  }
2437  bitField0_ |= 0x00000001;
2438        parentContextId_ = value;
2439        onChanged();
2440        return this;
2441      }
2442
2443      // required string context_configuration = 2;
2444      private java.lang.Object contextConfiguration_ = "";
2445      /**
2446       * <code>required string context_configuration = 2;</code>
2447       */
2448      public boolean hasContextConfiguration() {
2449        return ((bitField0_ & 0x00000002) == 0x00000002);
2450      }
2451      /**
2452       * <code>required string context_configuration = 2;</code>
2453       */
2454      public java.lang.String getContextConfiguration() {
2455        java.lang.Object ref = contextConfiguration_;
2456        if (!(ref instanceof java.lang.String)) {
2457          java.lang.String s = ((com.google.protobuf.ByteString) ref)
2458              .toStringUtf8();
2459          contextConfiguration_ = s;
2460          return s;
2461        } else {
2462          return (java.lang.String) ref;
2463        }
2464      }
2465      /**
2466       * <code>required string context_configuration = 2;</code>
2467       */
2468      public com.google.protobuf.ByteString
2469          getContextConfigurationBytes() {
2470        java.lang.Object ref = contextConfiguration_;
2471        if (ref instanceof String) {
2472          com.google.protobuf.ByteString b = 
2473              com.google.protobuf.ByteString.copyFromUtf8(
2474                  (java.lang.String) ref);
2475          contextConfiguration_ = b;
2476          return b;
2477        } else {
2478          return (com.google.protobuf.ByteString) ref;
2479        }
2480      }
2481      /**
2482       * <code>required string context_configuration = 2;</code>
2483       */
2484      public Builder setContextConfiguration(
2485          java.lang.String value) {
2486        if (value == null) {
2487    throw new NullPointerException();
2488  }
2489  bitField0_ |= 0x00000002;
2490        contextConfiguration_ = value;
2491        onChanged();
2492        return this;
2493      }
2494      /**
2495       * <code>required string context_configuration = 2;</code>
2496       */
2497      public Builder clearContextConfiguration() {
2498        bitField0_ = (bitField0_ & ~0x00000002);
2499        contextConfiguration_ = getDefaultInstance().getContextConfiguration();
2500        onChanged();
2501        return this;
2502      }
2503      /**
2504       * <code>required string context_configuration = 2;</code>
2505       */
2506      public Builder setContextConfigurationBytes(
2507          com.google.protobuf.ByteString value) {
2508        if (value == null) {
2509    throw new NullPointerException();
2510  }
2511  bitField0_ |= 0x00000002;
2512        contextConfiguration_ = value;
2513        onChanged();
2514        return this;
2515      }
2516
2517      // optional string service_configuration = 3;
2518      private java.lang.Object serviceConfiguration_ = "";
2519      /**
2520       * <code>optional string service_configuration = 3;</code>
2521       */
2522      public boolean hasServiceConfiguration() {
2523        return ((bitField0_ & 0x00000004) == 0x00000004);
2524      }
2525      /**
2526       * <code>optional string service_configuration = 3;</code>
2527       */
2528      public java.lang.String getServiceConfiguration() {
2529        java.lang.Object ref = serviceConfiguration_;
2530        if (!(ref instanceof java.lang.String)) {
2531          java.lang.String s = ((com.google.protobuf.ByteString) ref)
2532              .toStringUtf8();
2533          serviceConfiguration_ = s;
2534          return s;
2535        } else {
2536          return (java.lang.String) ref;
2537        }
2538      }
2539      /**
2540       * <code>optional string service_configuration = 3;</code>
2541       */
2542      public com.google.protobuf.ByteString
2543          getServiceConfigurationBytes() {
2544        java.lang.Object ref = serviceConfiguration_;
2545        if (ref instanceof String) {
2546          com.google.protobuf.ByteString b = 
2547              com.google.protobuf.ByteString.copyFromUtf8(
2548                  (java.lang.String) ref);
2549          serviceConfiguration_ = b;
2550          return b;
2551        } else {
2552          return (com.google.protobuf.ByteString) ref;
2553        }
2554      }
2555      /**
2556       * <code>optional string service_configuration = 3;</code>
2557       */
2558      public Builder setServiceConfiguration(
2559          java.lang.String value) {
2560        if (value == null) {
2561    throw new NullPointerException();
2562  }
2563  bitField0_ |= 0x00000004;
2564        serviceConfiguration_ = value;
2565        onChanged();
2566        return this;
2567      }
2568      /**
2569       * <code>optional string service_configuration = 3;</code>
2570       */
2571      public Builder clearServiceConfiguration() {
2572        bitField0_ = (bitField0_ & ~0x00000004);
2573        serviceConfiguration_ = getDefaultInstance().getServiceConfiguration();
2574        onChanged();
2575        return this;
2576      }
2577      /**
2578       * <code>optional string service_configuration = 3;</code>
2579       */
2580      public Builder setServiceConfigurationBytes(
2581          com.google.protobuf.ByteString value) {
2582        if (value == null) {
2583    throw new NullPointerException();
2584  }
2585  bitField0_ |= 0x00000004;
2586        serviceConfiguration_ = value;
2587        onChanged();
2588        return this;
2589      }
2590
2591      // @@protoc_insertion_point(builder_scope:AddContextProto)
2592    }
2593
2594    static {
2595      defaultInstance = new AddContextProto(true);
2596      defaultInstance.initFields();
2597    }
2598
2599    // @@protoc_insertion_point(class_scope:AddContextProto)
2600  }
2601
2602  public interface RemoveContextProtoOrBuilder
2603      extends com.google.protobuf.MessageOrBuilder {
2604
2605    // required string context_id = 1;
2606    /**
2607     * <code>required string context_id = 1;</code>
2608     */
2609    boolean hasContextId();
2610    /**
2611     * <code>required string context_id = 1;</code>
2612     */
2613    java.lang.String getContextId();
2614    /**
2615     * <code>required string context_id = 1;</code>
2616     */
2617    com.google.protobuf.ByteString
2618        getContextIdBytes();
2619  }
2620  /**
2621   * Protobuf type {@code RemoveContextProto}
2622   */
2623  public static final class RemoveContextProto extends
2624      com.google.protobuf.GeneratedMessage
2625      implements RemoveContextProtoOrBuilder {
2626    // Use RemoveContextProto.newBuilder() to construct.
2627    private RemoveContextProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
2628      super(builder);
2629      this.unknownFields = builder.getUnknownFields();
2630    }
2631    private RemoveContextProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
2632
2633    private static final RemoveContextProto defaultInstance;
2634    public static RemoveContextProto getDefaultInstance() {
2635      return defaultInstance;
2636    }
2637
2638    public RemoveContextProto getDefaultInstanceForType() {
2639      return defaultInstance;
2640    }
2641
2642    private final com.google.protobuf.UnknownFieldSet unknownFields;
2643    @java.lang.Override
2644    public final com.google.protobuf.UnknownFieldSet
2645        getUnknownFields() {
2646      return this.unknownFields;
2647    }
2648    private RemoveContextProto(
2649        com.google.protobuf.CodedInputStream input,
2650        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2651        throws com.google.protobuf.InvalidProtocolBufferException {
2652      initFields();
2653      int mutable_bitField0_ = 0;
2654      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
2655          com.google.protobuf.UnknownFieldSet.newBuilder();
2656      try {
2657        boolean done = false;
2658        while (!done) {
2659          int tag = input.readTag();
2660          switch (tag) {
2661            case 0:
2662              done = true;
2663              break;
2664            default: {
2665              if (!parseUnknownField(input, unknownFields,
2666                                     extensionRegistry, tag)) {
2667                done = true;
2668              }
2669              break;
2670            }
2671            case 10: {
2672              bitField0_ |= 0x00000001;
2673              contextId_ = input.readBytes();
2674              break;
2675            }
2676          }
2677        }
2678      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2679        throw e.setUnfinishedMessage(this);
2680      } catch (java.io.IOException e) {
2681        throw new com.google.protobuf.InvalidProtocolBufferException(
2682            e.getMessage()).setUnfinishedMessage(this);
2683      } finally {
2684        this.unknownFields = unknownFields.build();
2685        makeExtensionsImmutable();
2686      }
2687    }
2688    public static final com.google.protobuf.Descriptors.Descriptor
2689        getDescriptor() {
2690      return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_RemoveContextProto_descriptor;
2691    }
2692
2693    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
2694        internalGetFieldAccessorTable() {
2695      return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_RemoveContextProto_fieldAccessorTable
2696          .ensureFieldAccessorsInitialized(
2697              org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto.class, org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto.Builder.class);
2698    }
2699
2700    public static com.google.protobuf.Parser<RemoveContextProto> PARSER =
2701        new com.google.protobuf.AbstractParser<RemoveContextProto>() {
2702      public RemoveContextProto parsePartialFrom(
2703          com.google.protobuf.CodedInputStream input,
2704          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2705          throws com.google.protobuf.InvalidProtocolBufferException {
2706        return new RemoveContextProto(input, extensionRegistry);
2707      }
2708    };
2709
2710    @java.lang.Override
2711    public com.google.protobuf.Parser<RemoveContextProto> getParserForType() {
2712      return PARSER;
2713    }
2714
2715    private int bitField0_;
2716    // required string context_id = 1;
2717    public static final int CONTEXT_ID_FIELD_NUMBER = 1;
2718    private java.lang.Object contextId_;
2719    /**
2720     * <code>required string context_id = 1;</code>
2721     */
2722    public boolean hasContextId() {
2723      return ((bitField0_ & 0x00000001) == 0x00000001);
2724    }
2725    /**
2726     * <code>required string context_id = 1;</code>
2727     */
2728    public java.lang.String getContextId() {
2729      java.lang.Object ref = contextId_;
2730      if (ref instanceof java.lang.String) {
2731        return (java.lang.String) ref;
2732      } else {
2733        com.google.protobuf.ByteString bs = 
2734            (com.google.protobuf.ByteString) ref;
2735        java.lang.String s = bs.toStringUtf8();
2736        if (bs.isValidUtf8()) {
2737          contextId_ = s;
2738        }
2739        return s;
2740      }
2741    }
2742    /**
2743     * <code>required string context_id = 1;</code>
2744     */
2745    public com.google.protobuf.ByteString
2746        getContextIdBytes() {
2747      java.lang.Object ref = contextId_;
2748      if (ref instanceof java.lang.String) {
2749        com.google.protobuf.ByteString b = 
2750            com.google.protobuf.ByteString.copyFromUtf8(
2751                (java.lang.String) ref);
2752        contextId_ = b;
2753        return b;
2754      } else {
2755        return (com.google.protobuf.ByteString) ref;
2756      }
2757    }
2758
2759    private void initFields() {
2760      contextId_ = "";
2761    }
2762    private byte memoizedIsInitialized = -1;
2763    public final boolean isInitialized() {
2764      byte isInitialized = memoizedIsInitialized;
2765      if (isInitialized != -1) return isInitialized == 1;
2766
2767      if (!hasContextId()) {
2768        memoizedIsInitialized = 0;
2769        return false;
2770      }
2771      memoizedIsInitialized = 1;
2772      return true;
2773    }
2774
2775    public void writeTo(com.google.protobuf.CodedOutputStream output)
2776                        throws java.io.IOException {
2777      getSerializedSize();
2778      if (((bitField0_ & 0x00000001) == 0x00000001)) {
2779        output.writeBytes(1, getContextIdBytes());
2780      }
2781      getUnknownFields().writeTo(output);
2782    }
2783
2784    private int memoizedSerializedSize = -1;
2785    public int getSerializedSize() {
2786      int size = memoizedSerializedSize;
2787      if (size != -1) return size;
2788
2789      size = 0;
2790      if (((bitField0_ & 0x00000001) == 0x00000001)) {
2791        size += com.google.protobuf.CodedOutputStream
2792          .computeBytesSize(1, getContextIdBytes());
2793      }
2794      size += getUnknownFields().getSerializedSize();
2795      memoizedSerializedSize = size;
2796      return size;
2797    }
2798
2799    private static final long serialVersionUID = 0L;
2800    @java.lang.Override
2801    protected java.lang.Object writeReplace()
2802        throws java.io.ObjectStreamException {
2803      return super.writeReplace();
2804    }
2805
2806    @java.lang.Override
2807    public boolean equals(final java.lang.Object obj) {
2808      if (obj == this) {
2809       return true;
2810      }
2811      if (!(obj instanceof org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto)) {
2812        return super.equals(obj);
2813      }
2814      org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto other = (org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto) obj;
2815
2816      boolean result = true;
2817      result = result && (hasContextId() == other.hasContextId());
2818      if (hasContextId()) {
2819        result = result && getContextId()
2820            .equals(other.getContextId());
2821      }
2822      result = result &&
2823          getUnknownFields().equals(other.getUnknownFields());
2824      return result;
2825    }
2826
2827    private int memoizedHashCode = 0;
2828    @java.lang.Override
2829    public int hashCode() {
2830      if (memoizedHashCode != 0) {
2831        return memoizedHashCode;
2832      }
2833      int hash = 41;
2834      hash = (19 * hash) + getDescriptorForType().hashCode();
2835      if (hasContextId()) {
2836        hash = (37 * hash) + CONTEXT_ID_FIELD_NUMBER;
2837        hash = (53 * hash) + getContextId().hashCode();
2838      }
2839      hash = (29 * hash) + getUnknownFields().hashCode();
2840      memoizedHashCode = hash;
2841      return hash;
2842    }
2843
2844    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto parseFrom(
2845        com.google.protobuf.ByteString data)
2846        throws com.google.protobuf.InvalidProtocolBufferException {
2847      return PARSER.parseFrom(data);
2848    }
2849    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto parseFrom(
2850        com.google.protobuf.ByteString data,
2851        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2852        throws com.google.protobuf.InvalidProtocolBufferException {
2853      return PARSER.parseFrom(data, extensionRegistry);
2854    }
2855    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto parseFrom(byte[] data)
2856        throws com.google.protobuf.InvalidProtocolBufferException {
2857      return PARSER.parseFrom(data);
2858    }
2859    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto parseFrom(
2860        byte[] data,
2861        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2862        throws com.google.protobuf.InvalidProtocolBufferException {
2863      return PARSER.parseFrom(data, extensionRegistry);
2864    }
2865    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto parseFrom(java.io.InputStream input)
2866        throws java.io.IOException {
2867      return PARSER.parseFrom(input);
2868    }
2869    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto parseFrom(
2870        java.io.InputStream input,
2871        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2872        throws java.io.IOException {
2873      return PARSER.parseFrom(input, extensionRegistry);
2874    }
2875    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto parseDelimitedFrom(java.io.InputStream input)
2876        throws java.io.IOException {
2877      return PARSER.parseDelimitedFrom(input);
2878    }
2879    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto parseDelimitedFrom(
2880        java.io.InputStream input,
2881        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2882        throws java.io.IOException {
2883      return PARSER.parseDelimitedFrom(input, extensionRegistry);
2884    }
2885    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto parseFrom(
2886        com.google.protobuf.CodedInputStream input)
2887        throws java.io.IOException {
2888      return PARSER.parseFrom(input);
2889    }
2890    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto parseFrom(
2891        com.google.protobuf.CodedInputStream input,
2892        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2893        throws java.io.IOException {
2894      return PARSER.parseFrom(input, extensionRegistry);
2895    }
2896
2897    public static Builder newBuilder() { return Builder.create(); }
2898    public Builder newBuilderForType() { return newBuilder(); }
2899    public static Builder newBuilder(org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto prototype) {
2900      return newBuilder().mergeFrom(prototype);
2901    }
2902    public Builder toBuilder() { return newBuilder(this); }
2903
2904    @java.lang.Override
2905    protected Builder newBuilderForType(
2906        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
2907      Builder builder = new Builder(parent);
2908      return builder;
2909    }
2910    /**
2911     * Protobuf type {@code RemoveContextProto}
2912     */
2913    public static final class Builder extends
2914        com.google.protobuf.GeneratedMessage.Builder<Builder>
2915       implements org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProtoOrBuilder {
2916      public static final com.google.protobuf.Descriptors.Descriptor
2917          getDescriptor() {
2918        return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_RemoveContextProto_descriptor;
2919      }
2920
2921      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
2922          internalGetFieldAccessorTable() {
2923        return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_RemoveContextProto_fieldAccessorTable
2924            .ensureFieldAccessorsInitialized(
2925                org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto.class, org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto.Builder.class);
2926      }
2927
2928      // Construct using org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto.newBuilder()
2929      private Builder() {
2930        maybeForceBuilderInitialization();
2931      }
2932
2933      private Builder(
2934          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
2935        super(parent);
2936        maybeForceBuilderInitialization();
2937      }
2938      private void maybeForceBuilderInitialization() {
2939        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
2940        }
2941      }
2942      private static Builder create() {
2943        return new Builder();
2944      }
2945
2946      public Builder clear() {
2947        super.clear();
2948        contextId_ = "";
2949        bitField0_ = (bitField0_ & ~0x00000001);
2950        return this;
2951      }
2952
2953      public Builder clone() {
2954        return create().mergeFrom(buildPartial());
2955      }
2956
2957      public com.google.protobuf.Descriptors.Descriptor
2958          getDescriptorForType() {
2959        return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_RemoveContextProto_descriptor;
2960      }
2961
2962      public org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto getDefaultInstanceForType() {
2963        return org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto.getDefaultInstance();
2964      }
2965
2966      public org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto build() {
2967        org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto result = buildPartial();
2968        if (!result.isInitialized()) {
2969          throw newUninitializedMessageException(result);
2970        }
2971        return result;
2972      }
2973
2974      public org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto buildPartial() {
2975        org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto result = new org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto(this);
2976        int from_bitField0_ = bitField0_;
2977        int to_bitField0_ = 0;
2978        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
2979          to_bitField0_ |= 0x00000001;
2980        }
2981        result.contextId_ = contextId_;
2982        result.bitField0_ = to_bitField0_;
2983        onBuilt();
2984        return result;
2985      }
2986
2987      public Builder mergeFrom(com.google.protobuf.Message other) {
2988        if (other instanceof org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto) {
2989          return mergeFrom((org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto)other);
2990        } else {
2991          super.mergeFrom(other);
2992          return this;
2993        }
2994      }
2995
2996      public Builder mergeFrom(org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto other) {
2997        if (other == org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto.getDefaultInstance()) return this;
2998        if (other.hasContextId()) {
2999          bitField0_ |= 0x00000001;
3000          contextId_ = other.contextId_;
3001          onChanged();
3002        }
3003        this.mergeUnknownFields(other.getUnknownFields());
3004        return this;
3005      }
3006
3007      public final boolean isInitialized() {
3008        if (!hasContextId()) {
3009          
3010          return false;
3011        }
3012        return true;
3013      }
3014
3015      public Builder mergeFrom(
3016          com.google.protobuf.CodedInputStream input,
3017          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3018          throws java.io.IOException {
3019        org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto parsedMessage = null;
3020        try {
3021          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
3022        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
3023          parsedMessage = (org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto) e.getUnfinishedMessage();
3024          throw e;
3025        } finally {
3026          if (parsedMessage != null) {
3027            mergeFrom(parsedMessage);
3028          }
3029        }
3030        return this;
3031      }
3032      private int bitField0_;
3033
3034      // required string context_id = 1;
3035      private java.lang.Object contextId_ = "";
3036      /**
3037       * <code>required string context_id = 1;</code>
3038       */
3039      public boolean hasContextId() {
3040        return ((bitField0_ & 0x00000001) == 0x00000001);
3041      }
3042      /**
3043       * <code>required string context_id = 1;</code>
3044       */
3045      public java.lang.String getContextId() {
3046        java.lang.Object ref = contextId_;
3047        if (!(ref instanceof java.lang.String)) {
3048          java.lang.String s = ((com.google.protobuf.ByteString) ref)
3049              .toStringUtf8();
3050          contextId_ = s;
3051          return s;
3052        } else {
3053          return (java.lang.String) ref;
3054        }
3055      }
3056      /**
3057       * <code>required string context_id = 1;</code>
3058       */
3059      public com.google.protobuf.ByteString
3060          getContextIdBytes() {
3061        java.lang.Object ref = contextId_;
3062        if (ref instanceof String) {
3063          com.google.protobuf.ByteString b = 
3064              com.google.protobuf.ByteString.copyFromUtf8(
3065                  (java.lang.String) ref);
3066          contextId_ = b;
3067          return b;
3068        } else {
3069          return (com.google.protobuf.ByteString) ref;
3070        }
3071      }
3072      /**
3073       * <code>required string context_id = 1;</code>
3074       */
3075      public Builder setContextId(
3076          java.lang.String value) {
3077        if (value == null) {
3078    throw new NullPointerException();
3079  }
3080  bitField0_ |= 0x00000001;
3081        contextId_ = value;
3082        onChanged();
3083        return this;
3084      }
3085      /**
3086       * <code>required string context_id = 1;</code>
3087       */
3088      public Builder clearContextId() {
3089        bitField0_ = (bitField0_ & ~0x00000001);
3090        contextId_ = getDefaultInstance().getContextId();
3091        onChanged();
3092        return this;
3093      }
3094      /**
3095       * <code>required string context_id = 1;</code>
3096       */
3097      public Builder setContextIdBytes(
3098          com.google.protobuf.ByteString value) {
3099        if (value == null) {
3100    throw new NullPointerException();
3101  }
3102  bitField0_ |= 0x00000001;
3103        contextId_ = value;
3104        onChanged();
3105        return this;
3106      }
3107
3108      // @@protoc_insertion_point(builder_scope:RemoveContextProto)
3109    }
3110
3111    static {
3112      defaultInstance = new RemoveContextProto(true);
3113      defaultInstance.initFields();
3114    }
3115
3116    // @@protoc_insertion_point(class_scope:RemoveContextProto)
3117  }
3118
3119  public interface StopTaskProtoOrBuilder
3120      extends com.google.protobuf.MessageOrBuilder {
3121  }
3122  /**
3123   * Protobuf type {@code StopTaskProto}
3124   *
3125   * <pre>
3126   * Stop the task
3127   * </pre>
3128   */
3129  public static final class StopTaskProto extends
3130      com.google.protobuf.GeneratedMessage
3131      implements StopTaskProtoOrBuilder {
3132    // Use StopTaskProto.newBuilder() to construct.
3133    private StopTaskProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
3134      super(builder);
3135      this.unknownFields = builder.getUnknownFields();
3136    }
3137    private StopTaskProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
3138
3139    private static final StopTaskProto defaultInstance;
3140    public static StopTaskProto getDefaultInstance() {
3141      return defaultInstance;
3142    }
3143
3144    public StopTaskProto getDefaultInstanceForType() {
3145      return defaultInstance;
3146    }
3147
3148    private final com.google.protobuf.UnknownFieldSet unknownFields;
3149    @java.lang.Override
3150    public final com.google.protobuf.UnknownFieldSet
3151        getUnknownFields() {
3152      return this.unknownFields;
3153    }
3154    private StopTaskProto(
3155        com.google.protobuf.CodedInputStream input,
3156        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3157        throws com.google.protobuf.InvalidProtocolBufferException {
3158      initFields();
3159      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
3160          com.google.protobuf.UnknownFieldSet.newBuilder();
3161      try {
3162        boolean done = false;
3163        while (!done) {
3164          int tag = input.readTag();
3165          switch (tag) {
3166            case 0:
3167              done = true;
3168              break;
3169            default: {
3170              if (!parseUnknownField(input, unknownFields,
3171                                     extensionRegistry, tag)) {
3172                done = true;
3173              }
3174              break;
3175            }
3176          }
3177        }
3178      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
3179        throw e.setUnfinishedMessage(this);
3180      } catch (java.io.IOException e) {
3181        throw new com.google.protobuf.InvalidProtocolBufferException(
3182            e.getMessage()).setUnfinishedMessage(this);
3183      } finally {
3184        this.unknownFields = unknownFields.build();
3185        makeExtensionsImmutable();
3186      }
3187    }
3188    public static final com.google.protobuf.Descriptors.Descriptor
3189        getDescriptor() {
3190      return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_StopTaskProto_descriptor;
3191    }
3192
3193    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
3194        internalGetFieldAccessorTable() {
3195      return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_StopTaskProto_fieldAccessorTable
3196          .ensureFieldAccessorsInitialized(
3197              org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto.class, org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto.Builder.class);
3198    }
3199
3200    public static com.google.protobuf.Parser<StopTaskProto> PARSER =
3201        new com.google.protobuf.AbstractParser<StopTaskProto>() {
3202      public StopTaskProto parsePartialFrom(
3203          com.google.protobuf.CodedInputStream input,
3204          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3205          throws com.google.protobuf.InvalidProtocolBufferException {
3206        return new StopTaskProto(input, extensionRegistry);
3207      }
3208    };
3209
3210    @java.lang.Override
3211    public com.google.protobuf.Parser<StopTaskProto> getParserForType() {
3212      return PARSER;
3213    }
3214
3215    private void initFields() {
3216    }
3217    private byte memoizedIsInitialized = -1;
3218    public final boolean isInitialized() {
3219      byte isInitialized = memoizedIsInitialized;
3220      if (isInitialized != -1) return isInitialized == 1;
3221
3222      memoizedIsInitialized = 1;
3223      return true;
3224    }
3225
3226    public void writeTo(com.google.protobuf.CodedOutputStream output)
3227                        throws java.io.IOException {
3228      getSerializedSize();
3229      getUnknownFields().writeTo(output);
3230    }
3231
3232    private int memoizedSerializedSize = -1;
3233    public int getSerializedSize() {
3234      int size = memoizedSerializedSize;
3235      if (size != -1) return size;
3236
3237      size = 0;
3238      size += getUnknownFields().getSerializedSize();
3239      memoizedSerializedSize = size;
3240      return size;
3241    }
3242
3243    private static final long serialVersionUID = 0L;
3244    @java.lang.Override
3245    protected java.lang.Object writeReplace()
3246        throws java.io.ObjectStreamException {
3247      return super.writeReplace();
3248    }
3249
3250    @java.lang.Override
3251    public boolean equals(final java.lang.Object obj) {
3252      if (obj == this) {
3253       return true;
3254      }
3255      if (!(obj instanceof org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto)) {
3256        return super.equals(obj);
3257      }
3258      org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto other = (org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto) obj;
3259
3260      boolean result = true;
3261      result = result &&
3262          getUnknownFields().equals(other.getUnknownFields());
3263      return result;
3264    }
3265
3266    private int memoizedHashCode = 0;
3267    @java.lang.Override
3268    public int hashCode() {
3269      if (memoizedHashCode != 0) {
3270        return memoizedHashCode;
3271      }
3272      int hash = 41;
3273      hash = (19 * hash) + getDescriptorForType().hashCode();
3274      hash = (29 * hash) + getUnknownFields().hashCode();
3275      memoizedHashCode = hash;
3276      return hash;
3277    }
3278
3279    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto parseFrom(
3280        com.google.protobuf.ByteString data)
3281        throws com.google.protobuf.InvalidProtocolBufferException {
3282      return PARSER.parseFrom(data);
3283    }
3284    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto parseFrom(
3285        com.google.protobuf.ByteString data,
3286        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3287        throws com.google.protobuf.InvalidProtocolBufferException {
3288      return PARSER.parseFrom(data, extensionRegistry);
3289    }
3290    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto parseFrom(byte[] data)
3291        throws com.google.protobuf.InvalidProtocolBufferException {
3292      return PARSER.parseFrom(data);
3293    }
3294    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto parseFrom(
3295        byte[] data,
3296        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3297        throws com.google.protobuf.InvalidProtocolBufferException {
3298      return PARSER.parseFrom(data, extensionRegistry);
3299    }
3300    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto parseFrom(java.io.InputStream input)
3301        throws java.io.IOException {
3302      return PARSER.parseFrom(input);
3303    }
3304    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto parseFrom(
3305        java.io.InputStream input,
3306        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3307        throws java.io.IOException {
3308      return PARSER.parseFrom(input, extensionRegistry);
3309    }
3310    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto parseDelimitedFrom(java.io.InputStream input)
3311        throws java.io.IOException {
3312      return PARSER.parseDelimitedFrom(input);
3313    }
3314    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto parseDelimitedFrom(
3315        java.io.InputStream input,
3316        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3317        throws java.io.IOException {
3318      return PARSER.parseDelimitedFrom(input, extensionRegistry);
3319    }
3320    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto parseFrom(
3321        com.google.protobuf.CodedInputStream input)
3322        throws java.io.IOException {
3323      return PARSER.parseFrom(input);
3324    }
3325    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto parseFrom(
3326        com.google.protobuf.CodedInputStream input,
3327        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3328        throws java.io.IOException {
3329      return PARSER.parseFrom(input, extensionRegistry);
3330    }
3331
3332    public static Builder newBuilder() { return Builder.create(); }
3333    public Builder newBuilderForType() { return newBuilder(); }
3334    public static Builder newBuilder(org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto prototype) {
3335      return newBuilder().mergeFrom(prototype);
3336    }
3337    public Builder toBuilder() { return newBuilder(this); }
3338
3339    @java.lang.Override
3340    protected Builder newBuilderForType(
3341        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
3342      Builder builder = new Builder(parent);
3343      return builder;
3344    }
3345    /**
3346     * Protobuf type {@code StopTaskProto}
3347     *
3348     * <pre>
3349     * Stop the task
3350     * </pre>
3351     */
3352    public static final class Builder extends
3353        com.google.protobuf.GeneratedMessage.Builder<Builder>
3354       implements org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProtoOrBuilder {
3355      public static final com.google.protobuf.Descriptors.Descriptor
3356          getDescriptor() {
3357        return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_StopTaskProto_descriptor;
3358      }
3359
3360      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
3361          internalGetFieldAccessorTable() {
3362        return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_StopTaskProto_fieldAccessorTable
3363            .ensureFieldAccessorsInitialized(
3364                org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto.class, org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto.Builder.class);
3365      }
3366
3367      // Construct using org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto.newBuilder()
3368      private Builder() {
3369        maybeForceBuilderInitialization();
3370      }
3371
3372      private Builder(
3373          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
3374        super(parent);
3375        maybeForceBuilderInitialization();
3376      }
3377      private void maybeForceBuilderInitialization() {
3378        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
3379        }
3380      }
3381      private static Builder create() {
3382        return new Builder();
3383      }
3384
3385      public Builder clear() {
3386        super.clear();
3387        return this;
3388      }
3389
3390      public Builder clone() {
3391        return create().mergeFrom(buildPartial());
3392      }
3393
3394      public com.google.protobuf.Descriptors.Descriptor
3395          getDescriptorForType() {
3396        return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_StopTaskProto_descriptor;
3397      }
3398
3399      public org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto getDefaultInstanceForType() {
3400        return org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto.getDefaultInstance();
3401      }
3402
3403      public org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto build() {
3404        org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto result = buildPartial();
3405        if (!result.isInitialized()) {
3406          throw newUninitializedMessageException(result);
3407        }
3408        return result;
3409      }
3410
3411      public org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto buildPartial() {
3412        org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto result = new org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto(this);
3413        onBuilt();
3414        return result;
3415      }
3416
3417      public Builder mergeFrom(com.google.protobuf.Message other) {
3418        if (other instanceof org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto) {
3419          return mergeFrom((org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto)other);
3420        } else {
3421          super.mergeFrom(other);
3422          return this;
3423        }
3424      }
3425
3426      public Builder mergeFrom(org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto other) {
3427        if (other == org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto.getDefaultInstance()) return this;
3428        this.mergeUnknownFields(other.getUnknownFields());
3429        return this;
3430      }
3431
3432      public final boolean isInitialized() {
3433        return true;
3434      }
3435
3436      public Builder mergeFrom(
3437          com.google.protobuf.CodedInputStream input,
3438          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3439          throws java.io.IOException {
3440        org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto parsedMessage = null;
3441        try {
3442          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
3443        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
3444          parsedMessage = (org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto) e.getUnfinishedMessage();
3445          throw e;
3446        } finally {
3447          if (parsedMessage != null) {
3448            mergeFrom(parsedMessage);
3449          }
3450        }
3451        return this;
3452      }
3453
3454      // @@protoc_insertion_point(builder_scope:StopTaskProto)
3455    }
3456
3457    static {
3458      defaultInstance = new StopTaskProto(true);
3459      defaultInstance.initFields();
3460    }
3461
3462    // @@protoc_insertion_point(class_scope:StopTaskProto)
3463  }
3464
3465  public interface SuspendTaskProtoOrBuilder
3466      extends com.google.protobuf.MessageOrBuilder {
3467  }
3468  /**
3469   * Protobuf type {@code SuspendTaskProto}
3470   *
3471   * <pre>
3472   * Suspend the task
3473   * </pre>
3474   */
3475  public static final class SuspendTaskProto extends
3476      com.google.protobuf.GeneratedMessage
3477      implements SuspendTaskProtoOrBuilder {
3478    // Use SuspendTaskProto.newBuilder() to construct.
3479    private SuspendTaskProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
3480      super(builder);
3481      this.unknownFields = builder.getUnknownFields();
3482    }
3483    private SuspendTaskProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
3484
3485    private static final SuspendTaskProto defaultInstance;
3486    public static SuspendTaskProto getDefaultInstance() {
3487      return defaultInstance;
3488    }
3489
3490    public SuspendTaskProto getDefaultInstanceForType() {
3491      return defaultInstance;
3492    }
3493
3494    private final com.google.protobuf.UnknownFieldSet unknownFields;
3495    @java.lang.Override
3496    public final com.google.protobuf.UnknownFieldSet
3497        getUnknownFields() {
3498      return this.unknownFields;
3499    }
3500    private SuspendTaskProto(
3501        com.google.protobuf.CodedInputStream input,
3502        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3503        throws com.google.protobuf.InvalidProtocolBufferException {
3504      initFields();
3505      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
3506          com.google.protobuf.UnknownFieldSet.newBuilder();
3507      try {
3508        boolean done = false;
3509        while (!done) {
3510          int tag = input.readTag();
3511          switch (tag) {
3512            case 0:
3513              done = true;
3514              break;
3515            default: {
3516              if (!parseUnknownField(input, unknownFields,
3517                                     extensionRegistry, tag)) {
3518                done = true;
3519              }
3520              break;
3521            }
3522          }
3523        }
3524      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
3525        throw e.setUnfinishedMessage(this);
3526      } catch (java.io.IOException e) {
3527        throw new com.google.protobuf.InvalidProtocolBufferException(
3528            e.getMessage()).setUnfinishedMessage(this);
3529      } finally {
3530        this.unknownFields = unknownFields.build();
3531        makeExtensionsImmutable();
3532      }
3533    }
3534    public static final com.google.protobuf.Descriptors.Descriptor
3535        getDescriptor() {
3536      return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_SuspendTaskProto_descriptor;
3537    }
3538
3539    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
3540        internalGetFieldAccessorTable() {
3541      return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_SuspendTaskProto_fieldAccessorTable
3542          .ensureFieldAccessorsInitialized(
3543              org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto.class, org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto.Builder.class);
3544    }
3545
3546    public static com.google.protobuf.Parser<SuspendTaskProto> PARSER =
3547        new com.google.protobuf.AbstractParser<SuspendTaskProto>() {
3548      public SuspendTaskProto parsePartialFrom(
3549          com.google.protobuf.CodedInputStream input,
3550          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3551          throws com.google.protobuf.InvalidProtocolBufferException {
3552        return new SuspendTaskProto(input, extensionRegistry);
3553      }
3554    };
3555
3556    @java.lang.Override
3557    public com.google.protobuf.Parser<SuspendTaskProto> getParserForType() {
3558      return PARSER;
3559    }
3560
3561    private void initFields() {
3562    }
3563    private byte memoizedIsInitialized = -1;
3564    public final boolean isInitialized() {
3565      byte isInitialized = memoizedIsInitialized;
3566      if (isInitialized != -1) return isInitialized == 1;
3567
3568      memoizedIsInitialized = 1;
3569      return true;
3570    }
3571
3572    public void writeTo(com.google.protobuf.CodedOutputStream output)
3573                        throws java.io.IOException {
3574      getSerializedSize();
3575      getUnknownFields().writeTo(output);
3576    }
3577
3578    private int memoizedSerializedSize = -1;
3579    public int getSerializedSize() {
3580      int size = memoizedSerializedSize;
3581      if (size != -1) return size;
3582
3583      size = 0;
3584      size += getUnknownFields().getSerializedSize();
3585      memoizedSerializedSize = size;
3586      return size;
3587    }
3588
3589    private static final long serialVersionUID = 0L;
3590    @java.lang.Override
3591    protected java.lang.Object writeReplace()
3592        throws java.io.ObjectStreamException {
3593      return super.writeReplace();
3594    }
3595
3596    @java.lang.Override
3597    public boolean equals(final java.lang.Object obj) {
3598      if (obj == this) {
3599       return true;
3600      }
3601      if (!(obj instanceof org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto)) {
3602        return super.equals(obj);
3603      }
3604      org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto other = (org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto) obj;
3605
3606      boolean result = true;
3607      result = result &&
3608          getUnknownFields().equals(other.getUnknownFields());
3609      return result;
3610    }
3611
3612    private int memoizedHashCode = 0;
3613    @java.lang.Override
3614    public int hashCode() {
3615      if (memoizedHashCode != 0) {
3616        return memoizedHashCode;
3617      }
3618      int hash = 41;
3619      hash = (19 * hash) + getDescriptorForType().hashCode();
3620      hash = (29 * hash) + getUnknownFields().hashCode();
3621      memoizedHashCode = hash;
3622      return hash;
3623    }
3624
3625    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto parseFrom(
3626        com.google.protobuf.ByteString data)
3627        throws com.google.protobuf.InvalidProtocolBufferException {
3628      return PARSER.parseFrom(data);
3629    }
3630    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto parseFrom(
3631        com.google.protobuf.ByteString data,
3632        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3633        throws com.google.protobuf.InvalidProtocolBufferException {
3634      return PARSER.parseFrom(data, extensionRegistry);
3635    }
3636    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto parseFrom(byte[] data)
3637        throws com.google.protobuf.InvalidProtocolBufferException {
3638      return PARSER.parseFrom(data);
3639    }
3640    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto parseFrom(
3641        byte[] data,
3642        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3643        throws com.google.protobuf.InvalidProtocolBufferException {
3644      return PARSER.parseFrom(data, extensionRegistry);
3645    }
3646    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto parseFrom(java.io.InputStream input)
3647        throws java.io.IOException {
3648      return PARSER.parseFrom(input);
3649    }
3650    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto parseFrom(
3651        java.io.InputStream input,
3652        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3653        throws java.io.IOException {
3654      return PARSER.parseFrom(input, extensionRegistry);
3655    }
3656    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto parseDelimitedFrom(java.io.InputStream input)
3657        throws java.io.IOException {
3658      return PARSER.parseDelimitedFrom(input);
3659    }
3660    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto parseDelimitedFrom(
3661        java.io.InputStream input,
3662        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3663        throws java.io.IOException {
3664      return PARSER.parseDelimitedFrom(input, extensionRegistry);
3665    }
3666    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto parseFrom(
3667        com.google.protobuf.CodedInputStream input)
3668        throws java.io.IOException {
3669      return PARSER.parseFrom(input);
3670    }
3671    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto parseFrom(
3672        com.google.protobuf.CodedInputStream input,
3673        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3674        throws java.io.IOException {
3675      return PARSER.parseFrom(input, extensionRegistry);
3676    }
3677
3678    public static Builder newBuilder() { return Builder.create(); }
3679    public Builder newBuilderForType() { return newBuilder(); }
3680    public static Builder newBuilder(org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto prototype) {
3681      return newBuilder().mergeFrom(prototype);
3682    }
3683    public Builder toBuilder() { return newBuilder(this); }
3684
3685    @java.lang.Override
3686    protected Builder newBuilderForType(
3687        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
3688      Builder builder = new Builder(parent);
3689      return builder;
3690    }
3691    /**
3692     * Protobuf type {@code SuspendTaskProto}
3693     *
3694     * <pre>
3695     * Suspend the task
3696     * </pre>
3697     */
3698    public static final class Builder extends
3699        com.google.protobuf.GeneratedMessage.Builder<Builder>
3700       implements org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProtoOrBuilder {
3701      public static final com.google.protobuf.Descriptors.Descriptor
3702          getDescriptor() {
3703        return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_SuspendTaskProto_descriptor;
3704      }
3705
3706      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
3707          internalGetFieldAccessorTable() {
3708        return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_SuspendTaskProto_fieldAccessorTable
3709            .ensureFieldAccessorsInitialized(
3710                org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto.class, org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto.Builder.class);
3711      }
3712
3713      // Construct using org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto.newBuilder()
3714      private Builder() {
3715        maybeForceBuilderInitialization();
3716      }
3717
3718      private Builder(
3719          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
3720        super(parent);
3721        maybeForceBuilderInitialization();
3722      }
3723      private void maybeForceBuilderInitialization() {
3724        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
3725        }
3726      }
3727      private static Builder create() {
3728        return new Builder();
3729      }
3730
3731      public Builder clear() {
3732        super.clear();
3733        return this;
3734      }
3735
3736      public Builder clone() {
3737        return create().mergeFrom(buildPartial());
3738      }
3739
3740      public com.google.protobuf.Descriptors.Descriptor
3741          getDescriptorForType() {
3742        return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_SuspendTaskProto_descriptor;
3743      }
3744
3745      public org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto getDefaultInstanceForType() {
3746        return org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto.getDefaultInstance();
3747      }
3748
3749      public org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto build() {
3750        org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto result = buildPartial();
3751        if (!result.isInitialized()) {
3752          throw newUninitializedMessageException(result);
3753        }
3754        return result;
3755      }
3756
3757      public org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto buildPartial() {
3758        org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto result = new org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto(this);
3759        onBuilt();
3760        return result;
3761      }
3762
3763      public Builder mergeFrom(com.google.protobuf.Message other) {
3764        if (other instanceof org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto) {
3765          return mergeFrom((org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto)other);
3766        } else {
3767          super.mergeFrom(other);
3768          return this;
3769        }
3770      }
3771
3772      public Builder mergeFrom(org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto other) {
3773        if (other == org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto.getDefaultInstance()) return this;
3774        this.mergeUnknownFields(other.getUnknownFields());
3775        return this;
3776      }
3777
3778      public final boolean isInitialized() {
3779        return true;
3780      }
3781
3782      public Builder mergeFrom(
3783          com.google.protobuf.CodedInputStream input,
3784          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3785          throws java.io.IOException {
3786        org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto parsedMessage = null;
3787        try {
3788          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
3789        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
3790          parsedMessage = (org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto) e.getUnfinishedMessage();
3791          throw e;
3792        } finally {
3793          if (parsedMessage != null) {
3794            mergeFrom(parsedMessage);
3795          }
3796        }
3797        return this;
3798      }
3799
3800      // @@protoc_insertion_point(builder_scope:SuspendTaskProto)
3801    }
3802
3803    static {
3804      defaultInstance = new SuspendTaskProto(true);
3805      defaultInstance.initFields();
3806    }
3807
3808    // @@protoc_insertion_point(class_scope:SuspendTaskProto)
3809  }
3810
3811  public interface ContextMessageProtoOrBuilder
3812      extends com.google.protobuf.MessageOrBuilder {
3813
3814    // required string context_id = 1;
3815    /**
3816     * <code>required string context_id = 1;</code>
3817     */
3818    boolean hasContextId();
3819    /**
3820     * <code>required string context_id = 1;</code>
3821     */
3822    java.lang.String getContextId();
3823    /**
3824     * <code>required string context_id = 1;</code>
3825     */
3826    com.google.protobuf.ByteString
3827        getContextIdBytes();
3828
3829    // required bytes message = 2;
3830    /**
3831     * <code>required bytes message = 2;</code>
3832     */
3833    boolean hasMessage();
3834    /**
3835     * <code>required bytes message = 2;</code>
3836     */
3837    com.google.protobuf.ByteString getMessage();
3838  }
3839  /**
3840   * Protobuf type {@code ContextMessageProto}
3841   */
3842  public static final class ContextMessageProto extends
3843      com.google.protobuf.GeneratedMessage
3844      implements ContextMessageProtoOrBuilder {
3845    // Use ContextMessageProto.newBuilder() to construct.
3846    private ContextMessageProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
3847      super(builder);
3848      this.unknownFields = builder.getUnknownFields();
3849    }
3850    private ContextMessageProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
3851
3852    private static final ContextMessageProto defaultInstance;
3853    public static ContextMessageProto getDefaultInstance() {
3854      return defaultInstance;
3855    }
3856
3857    public ContextMessageProto getDefaultInstanceForType() {
3858      return defaultInstance;
3859    }
3860
3861    private final com.google.protobuf.UnknownFieldSet unknownFields;
3862    @java.lang.Override
3863    public final com.google.protobuf.UnknownFieldSet
3864        getUnknownFields() {
3865      return this.unknownFields;
3866    }
3867    private ContextMessageProto(
3868        com.google.protobuf.CodedInputStream input,
3869        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3870        throws com.google.protobuf.InvalidProtocolBufferException {
3871      initFields();
3872      int mutable_bitField0_ = 0;
3873      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
3874          com.google.protobuf.UnknownFieldSet.newBuilder();
3875      try {
3876        boolean done = false;
3877        while (!done) {
3878          int tag = input.readTag();
3879          switch (tag) {
3880            case 0:
3881              done = true;
3882              break;
3883            default: {
3884              if (!parseUnknownField(input, unknownFields,
3885                                     extensionRegistry, tag)) {
3886                done = true;
3887              }
3888              break;
3889            }
3890            case 10: {
3891              bitField0_ |= 0x00000001;
3892              contextId_ = input.readBytes();
3893              break;
3894            }
3895            case 18: {
3896              bitField0_ |= 0x00000002;
3897              message_ = input.readBytes();
3898              break;
3899            }
3900          }
3901        }
3902      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
3903        throw e.setUnfinishedMessage(this);
3904      } catch (java.io.IOException e) {
3905        throw new com.google.protobuf.InvalidProtocolBufferException(
3906            e.getMessage()).setUnfinishedMessage(this);
3907      } finally {
3908        this.unknownFields = unknownFields.build();
3909        makeExtensionsImmutable();
3910      }
3911    }
3912    public static final com.google.protobuf.Descriptors.Descriptor
3913        getDescriptor() {
3914      return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_ContextMessageProto_descriptor;
3915    }
3916
3917    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
3918        internalGetFieldAccessorTable() {
3919      return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_ContextMessageProto_fieldAccessorTable
3920          .ensureFieldAccessorsInitialized(
3921              org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto.class, org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto.Builder.class);
3922    }
3923
3924    public static com.google.protobuf.Parser<ContextMessageProto> PARSER =
3925        new com.google.protobuf.AbstractParser<ContextMessageProto>() {
3926      public ContextMessageProto parsePartialFrom(
3927          com.google.protobuf.CodedInputStream input,
3928          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3929          throws com.google.protobuf.InvalidProtocolBufferException {
3930        return new ContextMessageProto(input, extensionRegistry);
3931      }
3932    };
3933
3934    @java.lang.Override
3935    public com.google.protobuf.Parser<ContextMessageProto> getParserForType() {
3936      return PARSER;
3937    }
3938
3939    private int bitField0_;
3940    // required string context_id = 1;
3941    public static final int CONTEXT_ID_FIELD_NUMBER = 1;
3942    private java.lang.Object contextId_;
3943    /**
3944     * <code>required string context_id = 1;</code>
3945     */
3946    public boolean hasContextId() {
3947      return ((bitField0_ & 0x00000001) == 0x00000001);
3948    }
3949    /**
3950     * <code>required string context_id = 1;</code>
3951     */
3952    public java.lang.String getContextId() {
3953      java.lang.Object ref = contextId_;
3954      if (ref instanceof java.lang.String) {
3955        return (java.lang.String) ref;
3956      } else {
3957        com.google.protobuf.ByteString bs = 
3958            (com.google.protobuf.ByteString) ref;
3959        java.lang.String s = bs.toStringUtf8();
3960        if (bs.isValidUtf8()) {
3961          contextId_ = s;
3962        }
3963        return s;
3964      }
3965    }
3966    /**
3967     * <code>required string context_id = 1;</code>
3968     */
3969    public com.google.protobuf.ByteString
3970        getContextIdBytes() {
3971      java.lang.Object ref = contextId_;
3972      if (ref instanceof java.lang.String) {
3973        com.google.protobuf.ByteString b = 
3974            com.google.protobuf.ByteString.copyFromUtf8(
3975                (java.lang.String) ref);
3976        contextId_ = b;
3977        return b;
3978      } else {
3979        return (com.google.protobuf.ByteString) ref;
3980      }
3981    }
3982
3983    // required bytes message = 2;
3984    public static final int MESSAGE_FIELD_NUMBER = 2;
3985    private com.google.protobuf.ByteString message_;
3986    /**
3987     * <code>required bytes message = 2;</code>
3988     */
3989    public boolean hasMessage() {
3990      return ((bitField0_ & 0x00000002) == 0x00000002);
3991    }
3992    /**
3993     * <code>required bytes message = 2;</code>
3994     */
3995    public com.google.protobuf.ByteString getMessage() {
3996      return message_;
3997    }
3998
3999    private void initFields() {
4000      contextId_ = "";
4001      message_ = com.google.protobuf.ByteString.EMPTY;
4002    }
4003    private byte memoizedIsInitialized = -1;
4004    public final boolean isInitialized() {
4005      byte isInitialized = memoizedIsInitialized;
4006      if (isInitialized != -1) return isInitialized == 1;
4007
4008      if (!hasContextId()) {
4009        memoizedIsInitialized = 0;
4010        return false;
4011      }
4012      if (!hasMessage()) {
4013        memoizedIsInitialized = 0;
4014        return false;
4015      }
4016      memoizedIsInitialized = 1;
4017      return true;
4018    }
4019
4020    public void writeTo(com.google.protobuf.CodedOutputStream output)
4021                        throws java.io.IOException {
4022      getSerializedSize();
4023      if (((bitField0_ & 0x00000001) == 0x00000001)) {
4024        output.writeBytes(1, getContextIdBytes());
4025      }
4026      if (((bitField0_ & 0x00000002) == 0x00000002)) {
4027        output.writeBytes(2, message_);
4028      }
4029      getUnknownFields().writeTo(output);
4030    }
4031
4032    private int memoizedSerializedSize = -1;
4033    public int getSerializedSize() {
4034      int size = memoizedSerializedSize;
4035      if (size != -1) return size;
4036
4037      size = 0;
4038      if (((bitField0_ & 0x00000001) == 0x00000001)) {
4039        size += com.google.protobuf.CodedOutputStream
4040          .computeBytesSize(1, getContextIdBytes());
4041      }
4042      if (((bitField0_ & 0x00000002) == 0x00000002)) {
4043        size += com.google.protobuf.CodedOutputStream
4044          .computeBytesSize(2, message_);
4045      }
4046      size += getUnknownFields().getSerializedSize();
4047      memoizedSerializedSize = size;
4048      return size;
4049    }
4050
4051    private static final long serialVersionUID = 0L;
4052    @java.lang.Override
4053    protected java.lang.Object writeReplace()
4054        throws java.io.ObjectStreamException {
4055      return super.writeReplace();
4056    }
4057
4058    @java.lang.Override
4059    public boolean equals(final java.lang.Object obj) {
4060      if (obj == this) {
4061       return true;
4062      }
4063      if (!(obj instanceof org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto)) {
4064        return super.equals(obj);
4065      }
4066      org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto other = (org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto) obj;
4067
4068      boolean result = true;
4069      result = result && (hasContextId() == other.hasContextId());
4070      if (hasContextId()) {
4071        result = result && getContextId()
4072            .equals(other.getContextId());
4073      }
4074      result = result && (hasMessage() == other.hasMessage());
4075      if (hasMessage()) {
4076        result = result && getMessage()
4077            .equals(other.getMessage());
4078      }
4079      result = result &&
4080          getUnknownFields().equals(other.getUnknownFields());
4081      return result;
4082    }
4083
4084    private int memoizedHashCode = 0;
4085    @java.lang.Override
4086    public int hashCode() {
4087      if (memoizedHashCode != 0) {
4088        return memoizedHashCode;
4089      }
4090      int hash = 41;
4091      hash = (19 * hash) + getDescriptorForType().hashCode();
4092      if (hasContextId()) {
4093        hash = (37 * hash) + CONTEXT_ID_FIELD_NUMBER;
4094        hash = (53 * hash) + getContextId().hashCode();
4095      }
4096      if (hasMessage()) {
4097        hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
4098        hash = (53 * hash) + getMessage().hashCode();
4099      }
4100      hash = (29 * hash) + getUnknownFields().hashCode();
4101      memoizedHashCode = hash;
4102      return hash;
4103    }
4104
4105    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto parseFrom(
4106        com.google.protobuf.ByteString data)
4107        throws com.google.protobuf.InvalidProtocolBufferException {
4108      return PARSER.parseFrom(data);
4109    }
4110    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto parseFrom(
4111        com.google.protobuf.ByteString data,
4112        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4113        throws com.google.protobuf.InvalidProtocolBufferException {
4114      return PARSER.parseFrom(data, extensionRegistry);
4115    }
4116    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto parseFrom(byte[] data)
4117        throws com.google.protobuf.InvalidProtocolBufferException {
4118      return PARSER.parseFrom(data);
4119    }
4120    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto parseFrom(
4121        byte[] data,
4122        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4123        throws com.google.protobuf.InvalidProtocolBufferException {
4124      return PARSER.parseFrom(data, extensionRegistry);
4125    }
4126    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto parseFrom(java.io.InputStream input)
4127        throws java.io.IOException {
4128      return PARSER.parseFrom(input);
4129    }
4130    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto parseFrom(
4131        java.io.InputStream input,
4132        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4133        throws java.io.IOException {
4134      return PARSER.parseFrom(input, extensionRegistry);
4135    }
4136    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto parseDelimitedFrom(java.io.InputStream input)
4137        throws java.io.IOException {
4138      return PARSER.parseDelimitedFrom(input);
4139    }
4140    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto parseDelimitedFrom(
4141        java.io.InputStream input,
4142        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4143        throws java.io.IOException {
4144      return PARSER.parseDelimitedFrom(input, extensionRegistry);
4145    }
4146    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto parseFrom(
4147        com.google.protobuf.CodedInputStream input)
4148        throws java.io.IOException {
4149      return PARSER.parseFrom(input);
4150    }
4151    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto parseFrom(
4152        com.google.protobuf.CodedInputStream input,
4153        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4154        throws java.io.IOException {
4155      return PARSER.parseFrom(input, extensionRegistry);
4156    }
4157
4158    public static Builder newBuilder() { return Builder.create(); }
4159    public Builder newBuilderForType() { return newBuilder(); }
4160    public static Builder newBuilder(org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto prototype) {
4161      return newBuilder().mergeFrom(prototype);
4162    }
4163    public Builder toBuilder() { return newBuilder(this); }
4164
4165    @java.lang.Override
4166    protected Builder newBuilderForType(
4167        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
4168      Builder builder = new Builder(parent);
4169      return builder;
4170    }
4171    /**
4172     * Protobuf type {@code ContextMessageProto}
4173     */
4174    public static final class Builder extends
4175        com.google.protobuf.GeneratedMessage.Builder<Builder>
4176       implements org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProtoOrBuilder {
4177      public static final com.google.protobuf.Descriptors.Descriptor
4178          getDescriptor() {
4179        return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_ContextMessageProto_descriptor;
4180      }
4181
4182      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
4183          internalGetFieldAccessorTable() {
4184        return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_ContextMessageProto_fieldAccessorTable
4185            .ensureFieldAccessorsInitialized(
4186                org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto.class, org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto.Builder.class);
4187      }
4188
4189      // Construct using org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto.newBuilder()
4190      private Builder() {
4191        maybeForceBuilderInitialization();
4192      }
4193
4194      private Builder(
4195          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
4196        super(parent);
4197        maybeForceBuilderInitialization();
4198      }
4199      private void maybeForceBuilderInitialization() {
4200        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
4201        }
4202      }
4203      private static Builder create() {
4204        return new Builder();
4205      }
4206
4207      public Builder clear() {
4208        super.clear();
4209        contextId_ = "";
4210        bitField0_ = (bitField0_ & ~0x00000001);
4211        message_ = com.google.protobuf.ByteString.EMPTY;
4212        bitField0_ = (bitField0_ & ~0x00000002);
4213        return this;
4214      }
4215
4216      public Builder clone() {
4217        return create().mergeFrom(buildPartial());
4218      }
4219
4220      public com.google.protobuf.Descriptors.Descriptor
4221          getDescriptorForType() {
4222        return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_ContextMessageProto_descriptor;
4223      }
4224
4225      public org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto getDefaultInstanceForType() {
4226        return org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto.getDefaultInstance();
4227      }
4228
4229      public org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto build() {
4230        org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto result = buildPartial();
4231        if (!result.isInitialized()) {
4232          throw newUninitializedMessageException(result);
4233        }
4234        return result;
4235      }
4236
4237      public org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto buildPartial() {
4238        org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto result = new org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto(this);
4239        int from_bitField0_ = bitField0_;
4240        int to_bitField0_ = 0;
4241        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
4242          to_bitField0_ |= 0x00000001;
4243        }
4244        result.contextId_ = contextId_;
4245        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
4246          to_bitField0_ |= 0x00000002;
4247        }
4248        result.message_ = message_;
4249        result.bitField0_ = to_bitField0_;
4250        onBuilt();
4251        return result;
4252      }
4253
4254      public Builder mergeFrom(com.google.protobuf.Message other) {
4255        if (other instanceof org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto) {
4256          return mergeFrom((org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto)other);
4257        } else {
4258          super.mergeFrom(other);
4259          return this;
4260        }
4261      }
4262
4263      public Builder mergeFrom(org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto other) {
4264        if (other == org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto.getDefaultInstance()) return this;
4265        if (other.hasContextId()) {
4266          bitField0_ |= 0x00000001;
4267          contextId_ = other.contextId_;
4268          onChanged();
4269        }
4270        if (other.hasMessage()) {
4271          setMessage(other.getMessage());
4272        }
4273        this.mergeUnknownFields(other.getUnknownFields());
4274        return this;
4275      }
4276
4277      public final boolean isInitialized() {
4278        if (!hasContextId()) {
4279          
4280          return false;
4281        }
4282        if (!hasMessage()) {
4283          
4284          return false;
4285        }
4286        return true;
4287      }
4288
4289      public Builder mergeFrom(
4290          com.google.protobuf.CodedInputStream input,
4291          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4292          throws java.io.IOException {
4293        org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto parsedMessage = null;
4294        try {
4295          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
4296        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
4297          parsedMessage = (org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto) e.getUnfinishedMessage();
4298          throw e;
4299        } finally {
4300          if (parsedMessage != null) {
4301            mergeFrom(parsedMessage);
4302          }
4303        }
4304        return this;
4305      }
4306      private int bitField0_;
4307
4308      // required string context_id = 1;
4309      private java.lang.Object contextId_ = "";
4310      /**
4311       * <code>required string context_id = 1;</code>
4312       */
4313      public boolean hasContextId() {
4314        return ((bitField0_ & 0x00000001) == 0x00000001);
4315      }
4316      /**
4317       * <code>required string context_id = 1;</code>
4318       */
4319      public java.lang.String getContextId() {
4320        java.lang.Object ref = contextId_;
4321        if (!(ref instanceof java.lang.String)) {
4322          java.lang.String s = ((com.google.protobuf.ByteString) ref)
4323              .toStringUtf8();
4324          contextId_ = s;
4325          return s;
4326        } else {
4327          return (java.lang.String) ref;
4328        }
4329      }
4330      /**
4331       * <code>required string context_id = 1;</code>
4332       */
4333      public com.google.protobuf.ByteString
4334          getContextIdBytes() {
4335        java.lang.Object ref = contextId_;
4336        if (ref instanceof String) {
4337          com.google.protobuf.ByteString b = 
4338              com.google.protobuf.ByteString.copyFromUtf8(
4339                  (java.lang.String) ref);
4340          contextId_ = b;
4341          return b;
4342        } else {
4343          return (com.google.protobuf.ByteString) ref;
4344        }
4345      }
4346      /**
4347       * <code>required string context_id = 1;</code>
4348       */
4349      public Builder setContextId(
4350          java.lang.String value) {
4351        if (value == null) {
4352    throw new NullPointerException();
4353  }
4354  bitField0_ |= 0x00000001;
4355        contextId_ = value;
4356        onChanged();
4357        return this;
4358      }
4359      /**
4360       * <code>required string context_id = 1;</code>
4361       */
4362      public Builder clearContextId() {
4363        bitField0_ = (bitField0_ & ~0x00000001);
4364        contextId_ = getDefaultInstance().getContextId();
4365        onChanged();
4366        return this;
4367      }
4368      /**
4369       * <code>required string context_id = 1;</code>
4370       */
4371      public Builder setContextIdBytes(
4372          com.google.protobuf.ByteString value) {
4373        if (value == null) {
4374    throw new NullPointerException();
4375  }
4376  bitField0_ |= 0x00000001;
4377        contextId_ = value;
4378        onChanged();
4379        return this;
4380      }
4381
4382      // required bytes message = 2;
4383      private com.google.protobuf.ByteString message_ = com.google.protobuf.ByteString.EMPTY;
4384      /**
4385       * <code>required bytes message = 2;</code>
4386       */
4387      public boolean hasMessage() {
4388        return ((bitField0_ & 0x00000002) == 0x00000002);
4389      }
4390      /**
4391       * <code>required bytes message = 2;</code>
4392       */
4393      public com.google.protobuf.ByteString getMessage() {
4394        return message_;
4395      }
4396      /**
4397       * <code>required bytes message = 2;</code>
4398       */
4399      public Builder setMessage(com.google.protobuf.ByteString value) {
4400        if (value == null) {
4401    throw new NullPointerException();
4402  }
4403  bitField0_ |= 0x00000002;
4404        message_ = value;
4405        onChanged();
4406        return this;
4407      }
4408      /**
4409       * <code>required bytes message = 2;</code>
4410       */
4411      public Builder clearMessage() {
4412        bitField0_ = (bitField0_ & ~0x00000002);
4413        message_ = getDefaultInstance().getMessage();
4414        onChanged();
4415        return this;
4416      }
4417
4418      // @@protoc_insertion_point(builder_scope:ContextMessageProto)
4419    }
4420
4421    static {
4422      defaultInstance = new ContextMessageProto(true);
4423      defaultInstance.initFields();
4424    }
4425
4426    // @@protoc_insertion_point(class_scope:ContextMessageProto)
4427  }
4428
4429  public interface ContextControlProtoOrBuilder
4430      extends com.google.protobuf.MessageOrBuilder {
4431
4432    // optional bytes task_message = 1;
4433    /**
4434     * <code>optional bytes task_message = 1;</code>
4435     */
4436    boolean hasTaskMessage();
4437    /**
4438     * <code>optional bytes task_message = 1;</code>
4439     */
4440    com.google.protobuf.ByteString getTaskMessage();
4441
4442    // optional .ContextMessageProto context_message = 2;
4443    /**
4444     * <code>optional .ContextMessageProto context_message = 2;</code>
4445     */
4446    boolean hasContextMessage();
4447    /**
4448     * <code>optional .ContextMessageProto context_message = 2;</code>
4449     */
4450    org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto getContextMessage();
4451    /**
4452     * <code>optional .ContextMessageProto context_message = 2;</code>
4453     */
4454    org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProtoOrBuilder getContextMessageOrBuilder();
4455
4456    // optional .AddContextProto add_context = 5;
4457    /**
4458     * <code>optional .AddContextProto add_context = 5;</code>
4459     */
4460    boolean hasAddContext();
4461    /**
4462     * <code>optional .AddContextProto add_context = 5;</code>
4463     */
4464    org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto getAddContext();
4465    /**
4466     * <code>optional .AddContextProto add_context = 5;</code>
4467     */
4468    org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProtoOrBuilder getAddContextOrBuilder();
4469
4470    // optional .RemoveContextProto remove_context = 6;
4471    /**
4472     * <code>optional .RemoveContextProto remove_context = 6;</code>
4473     */
4474    boolean hasRemoveContext();
4475    /**
4476     * <code>optional .RemoveContextProto remove_context = 6;</code>
4477     */
4478    org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto getRemoveContext();
4479    /**
4480     * <code>optional .RemoveContextProto remove_context = 6;</code>
4481     */
4482    org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProtoOrBuilder getRemoveContextOrBuilder();
4483
4484    // optional .StartTaskProto start_task = 7;
4485    /**
4486     * <code>optional .StartTaskProto start_task = 7;</code>
4487     */
4488    boolean hasStartTask();
4489    /**
4490     * <code>optional .StartTaskProto start_task = 7;</code>
4491     */
4492    org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto getStartTask();
4493    /**
4494     * <code>optional .StartTaskProto start_task = 7;</code>
4495     */
4496    org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProtoOrBuilder getStartTaskOrBuilder();
4497
4498    // optional .StopTaskProto stop_task = 8;
4499    /**
4500     * <code>optional .StopTaskProto stop_task = 8;</code>
4501     */
4502    boolean hasStopTask();
4503    /**
4504     * <code>optional .StopTaskProto stop_task = 8;</code>
4505     */
4506    org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto getStopTask();
4507    /**
4508     * <code>optional .StopTaskProto stop_task = 8;</code>
4509     */
4510    org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProtoOrBuilder getStopTaskOrBuilder();
4511
4512    // optional .SuspendTaskProto suspend_task = 9;
4513    /**
4514     * <code>optional .SuspendTaskProto suspend_task = 9;</code>
4515     */
4516    boolean hasSuspendTask();
4517    /**
4518     * <code>optional .SuspendTaskProto suspend_task = 9;</code>
4519     */
4520    org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto getSuspendTask();
4521    /**
4522     * <code>optional .SuspendTaskProto suspend_task = 9;</code>
4523     */
4524    org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProtoOrBuilder getSuspendTaskOrBuilder();
4525  }
4526  /**
4527   * Protobuf type {@code ContextControlProto}
4528   */
4529  public static final class ContextControlProto extends
4530      com.google.protobuf.GeneratedMessage
4531      implements ContextControlProtoOrBuilder {
4532    // Use ContextControlProto.newBuilder() to construct.
4533    private ContextControlProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
4534      super(builder);
4535      this.unknownFields = builder.getUnknownFields();
4536    }
4537    private ContextControlProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
4538
4539    private static final ContextControlProto defaultInstance;
4540    public static ContextControlProto getDefaultInstance() {
4541      return defaultInstance;
4542    }
4543
4544    public ContextControlProto getDefaultInstanceForType() {
4545      return defaultInstance;
4546    }
4547
4548    private final com.google.protobuf.UnknownFieldSet unknownFields;
4549    @java.lang.Override
4550    public final com.google.protobuf.UnknownFieldSet
4551        getUnknownFields() {
4552      return this.unknownFields;
4553    }
4554    private ContextControlProto(
4555        com.google.protobuf.CodedInputStream input,
4556        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4557        throws com.google.protobuf.InvalidProtocolBufferException {
4558      initFields();
4559      int mutable_bitField0_ = 0;
4560      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
4561          com.google.protobuf.UnknownFieldSet.newBuilder();
4562      try {
4563        boolean done = false;
4564        while (!done) {
4565          int tag = input.readTag();
4566          switch (tag) {
4567            case 0:
4568              done = true;
4569              break;
4570            default: {
4571              if (!parseUnknownField(input, unknownFields,
4572                                     extensionRegistry, tag)) {
4573                done = true;
4574              }
4575              break;
4576            }
4577            case 10: {
4578              bitField0_ |= 0x00000001;
4579              taskMessage_ = input.readBytes();
4580              break;
4581            }
4582            case 18: {
4583              org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto.Builder subBuilder = null;
4584              if (((bitField0_ & 0x00000002) == 0x00000002)) {
4585                subBuilder = contextMessage_.toBuilder();
4586              }
4587              contextMessage_ = input.readMessage(org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto.PARSER, extensionRegistry);
4588              if (subBuilder != null) {
4589                subBuilder.mergeFrom(contextMessage_);
4590                contextMessage_ = subBuilder.buildPartial();
4591              }
4592              bitField0_ |= 0x00000002;
4593              break;
4594            }
4595            case 42: {
4596              org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto.Builder subBuilder = null;
4597              if (((bitField0_ & 0x00000004) == 0x00000004)) {
4598                subBuilder = addContext_.toBuilder();
4599              }
4600              addContext_ = input.readMessage(org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto.PARSER, extensionRegistry);
4601              if (subBuilder != null) {
4602                subBuilder.mergeFrom(addContext_);
4603                addContext_ = subBuilder.buildPartial();
4604              }
4605              bitField0_ |= 0x00000004;
4606              break;
4607            }
4608            case 50: {
4609              org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto.Builder subBuilder = null;
4610              if (((bitField0_ & 0x00000008) == 0x00000008)) {
4611                subBuilder = removeContext_.toBuilder();
4612              }
4613              removeContext_ = input.readMessage(org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto.PARSER, extensionRegistry);
4614              if (subBuilder != null) {
4615                subBuilder.mergeFrom(removeContext_);
4616                removeContext_ = subBuilder.buildPartial();
4617              }
4618              bitField0_ |= 0x00000008;
4619              break;
4620            }
4621            case 58: {
4622              org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto.Builder subBuilder = null;
4623              if (((bitField0_ & 0x00000010) == 0x00000010)) {
4624                subBuilder = startTask_.toBuilder();
4625              }
4626              startTask_ = input.readMessage(org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto.PARSER, extensionRegistry);
4627              if (subBuilder != null) {
4628                subBuilder.mergeFrom(startTask_);
4629                startTask_ = subBuilder.buildPartial();
4630              }
4631              bitField0_ |= 0x00000010;
4632              break;
4633            }
4634            case 66: {
4635              org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto.Builder subBuilder = null;
4636              if (((bitField0_ & 0x00000020) == 0x00000020)) {
4637                subBuilder = stopTask_.toBuilder();
4638              }
4639              stopTask_ = input.readMessage(org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto.PARSER, extensionRegistry);
4640              if (subBuilder != null) {
4641                subBuilder.mergeFrom(stopTask_);
4642                stopTask_ = subBuilder.buildPartial();
4643              }
4644              bitField0_ |= 0x00000020;
4645              break;
4646            }
4647            case 74: {
4648              org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto.Builder subBuilder = null;
4649              if (((bitField0_ & 0x00000040) == 0x00000040)) {
4650                subBuilder = suspendTask_.toBuilder();
4651              }
4652              suspendTask_ = input.readMessage(org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto.PARSER, extensionRegistry);
4653              if (subBuilder != null) {
4654                subBuilder.mergeFrom(suspendTask_);
4655                suspendTask_ = subBuilder.buildPartial();
4656              }
4657              bitField0_ |= 0x00000040;
4658              break;
4659            }
4660          }
4661        }
4662      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
4663        throw e.setUnfinishedMessage(this);
4664      } catch (java.io.IOException e) {
4665        throw new com.google.protobuf.InvalidProtocolBufferException(
4666            e.getMessage()).setUnfinishedMessage(this);
4667      } finally {
4668        this.unknownFields = unknownFields.build();
4669        makeExtensionsImmutable();
4670      }
4671    }
4672    public static final com.google.protobuf.Descriptors.Descriptor
4673        getDescriptor() {
4674      return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_ContextControlProto_descriptor;
4675    }
4676
4677    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
4678        internalGetFieldAccessorTable() {
4679      return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_ContextControlProto_fieldAccessorTable
4680          .ensureFieldAccessorsInitialized(
4681              org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto.class, org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto.Builder.class);
4682    }
4683
4684    public static com.google.protobuf.Parser<ContextControlProto> PARSER =
4685        new com.google.protobuf.AbstractParser<ContextControlProto>() {
4686      public ContextControlProto parsePartialFrom(
4687          com.google.protobuf.CodedInputStream input,
4688          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4689          throws com.google.protobuf.InvalidProtocolBufferException {
4690        return new ContextControlProto(input, extensionRegistry);
4691      }
4692    };
4693
4694    @java.lang.Override
4695    public com.google.protobuf.Parser<ContextControlProto> getParserForType() {
4696      return PARSER;
4697    }
4698
4699    private int bitField0_;
4700    // optional bytes task_message = 1;
4701    public static final int TASK_MESSAGE_FIELD_NUMBER = 1;
4702    private com.google.protobuf.ByteString taskMessage_;
4703    /**
4704     * <code>optional bytes task_message = 1;</code>
4705     */
4706    public boolean hasTaskMessage() {
4707      return ((bitField0_ & 0x00000001) == 0x00000001);
4708    }
4709    /**
4710     * <code>optional bytes task_message = 1;</code>
4711     */
4712    public com.google.protobuf.ByteString getTaskMessage() {
4713      return taskMessage_;
4714    }
4715
4716    // optional .ContextMessageProto context_message = 2;
4717    public static final int CONTEXT_MESSAGE_FIELD_NUMBER = 2;
4718    private org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto contextMessage_;
4719    /**
4720     * <code>optional .ContextMessageProto context_message = 2;</code>
4721     */
4722    public boolean hasContextMessage() {
4723      return ((bitField0_ & 0x00000002) == 0x00000002);
4724    }
4725    /**
4726     * <code>optional .ContextMessageProto context_message = 2;</code>
4727     */
4728    public org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto getContextMessage() {
4729      return contextMessage_;
4730    }
4731    /**
4732     * <code>optional .ContextMessageProto context_message = 2;</code>
4733     */
4734    public org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProtoOrBuilder getContextMessageOrBuilder() {
4735      return contextMessage_;
4736    }
4737
4738    // optional .AddContextProto add_context = 5;
4739    public static final int ADD_CONTEXT_FIELD_NUMBER = 5;
4740    private org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto addContext_;
4741    /**
4742     * <code>optional .AddContextProto add_context = 5;</code>
4743     */
4744    public boolean hasAddContext() {
4745      return ((bitField0_ & 0x00000004) == 0x00000004);
4746    }
4747    /**
4748     * <code>optional .AddContextProto add_context = 5;</code>
4749     */
4750    public org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto getAddContext() {
4751      return addContext_;
4752    }
4753    /**
4754     * <code>optional .AddContextProto add_context = 5;</code>
4755     */
4756    public org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProtoOrBuilder getAddContextOrBuilder() {
4757      return addContext_;
4758    }
4759
4760    // optional .RemoveContextProto remove_context = 6;
4761    public static final int REMOVE_CONTEXT_FIELD_NUMBER = 6;
4762    private org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto removeContext_;
4763    /**
4764     * <code>optional .RemoveContextProto remove_context = 6;</code>
4765     */
4766    public boolean hasRemoveContext() {
4767      return ((bitField0_ & 0x00000008) == 0x00000008);
4768    }
4769    /**
4770     * <code>optional .RemoveContextProto remove_context = 6;</code>
4771     */
4772    public org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto getRemoveContext() {
4773      return removeContext_;
4774    }
4775    /**
4776     * <code>optional .RemoveContextProto remove_context = 6;</code>
4777     */
4778    public org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProtoOrBuilder getRemoveContextOrBuilder() {
4779      return removeContext_;
4780    }
4781
4782    // optional .StartTaskProto start_task = 7;
4783    public static final int START_TASK_FIELD_NUMBER = 7;
4784    private org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto startTask_;
4785    /**
4786     * <code>optional .StartTaskProto start_task = 7;</code>
4787     */
4788    public boolean hasStartTask() {
4789      return ((bitField0_ & 0x00000010) == 0x00000010);
4790    }
4791    /**
4792     * <code>optional .StartTaskProto start_task = 7;</code>
4793     */
4794    public org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto getStartTask() {
4795      return startTask_;
4796    }
4797    /**
4798     * <code>optional .StartTaskProto start_task = 7;</code>
4799     */
4800    public org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProtoOrBuilder getStartTaskOrBuilder() {
4801      return startTask_;
4802    }
4803
4804    // optional .StopTaskProto stop_task = 8;
4805    public static final int STOP_TASK_FIELD_NUMBER = 8;
4806    private org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto stopTask_;
4807    /**
4808     * <code>optional .StopTaskProto stop_task = 8;</code>
4809     */
4810    public boolean hasStopTask() {
4811      return ((bitField0_ & 0x00000020) == 0x00000020);
4812    }
4813    /**
4814     * <code>optional .StopTaskProto stop_task = 8;</code>
4815     */
4816    public org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto getStopTask() {
4817      return stopTask_;
4818    }
4819    /**
4820     * <code>optional .StopTaskProto stop_task = 8;</code>
4821     */
4822    public org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProtoOrBuilder getStopTaskOrBuilder() {
4823      return stopTask_;
4824    }
4825
4826    // optional .SuspendTaskProto suspend_task = 9;
4827    public static final int SUSPEND_TASK_FIELD_NUMBER = 9;
4828    private org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto suspendTask_;
4829    /**
4830     * <code>optional .SuspendTaskProto suspend_task = 9;</code>
4831     */
4832    public boolean hasSuspendTask() {
4833      return ((bitField0_ & 0x00000040) == 0x00000040);
4834    }
4835    /**
4836     * <code>optional .SuspendTaskProto suspend_task = 9;</code>
4837     */
4838    public org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto getSuspendTask() {
4839      return suspendTask_;
4840    }
4841    /**
4842     * <code>optional .SuspendTaskProto suspend_task = 9;</code>
4843     */
4844    public org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProtoOrBuilder getSuspendTaskOrBuilder() {
4845      return suspendTask_;
4846    }
4847
4848    private void initFields() {
4849      taskMessage_ = com.google.protobuf.ByteString.EMPTY;
4850      contextMessage_ = org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto.getDefaultInstance();
4851      addContext_ = org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto.getDefaultInstance();
4852      removeContext_ = org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto.getDefaultInstance();
4853      startTask_ = org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto.getDefaultInstance();
4854      stopTask_ = org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto.getDefaultInstance();
4855      suspendTask_ = org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto.getDefaultInstance();
4856    }
4857    private byte memoizedIsInitialized = -1;
4858    public final boolean isInitialized() {
4859      byte isInitialized = memoizedIsInitialized;
4860      if (isInitialized != -1) return isInitialized == 1;
4861
4862      if (hasContextMessage()) {
4863        if (!getContextMessage().isInitialized()) {
4864          memoizedIsInitialized = 0;
4865          return false;
4866        }
4867      }
4868      if (hasAddContext()) {
4869        if (!getAddContext().isInitialized()) {
4870          memoizedIsInitialized = 0;
4871          return false;
4872        }
4873      }
4874      if (hasRemoveContext()) {
4875        if (!getRemoveContext().isInitialized()) {
4876          memoizedIsInitialized = 0;
4877          return false;
4878        }
4879      }
4880      if (hasStartTask()) {
4881        if (!getStartTask().isInitialized()) {
4882          memoizedIsInitialized = 0;
4883          return false;
4884        }
4885      }
4886      memoizedIsInitialized = 1;
4887      return true;
4888    }
4889
4890    public void writeTo(com.google.protobuf.CodedOutputStream output)
4891                        throws java.io.IOException {
4892      getSerializedSize();
4893      if (((bitField0_ & 0x00000001) == 0x00000001)) {
4894        output.writeBytes(1, taskMessage_);
4895      }
4896      if (((bitField0_ & 0x00000002) == 0x00000002)) {
4897        output.writeMessage(2, contextMessage_);
4898      }
4899      if (((bitField0_ & 0x00000004) == 0x00000004)) {
4900        output.writeMessage(5, addContext_);
4901      }
4902      if (((bitField0_ & 0x00000008) == 0x00000008)) {
4903        output.writeMessage(6, removeContext_);
4904      }
4905      if (((bitField0_ & 0x00000010) == 0x00000010)) {
4906        output.writeMessage(7, startTask_);
4907      }
4908      if (((bitField0_ & 0x00000020) == 0x00000020)) {
4909        output.writeMessage(8, stopTask_);
4910      }
4911      if (((bitField0_ & 0x00000040) == 0x00000040)) {
4912        output.writeMessage(9, suspendTask_);
4913      }
4914      getUnknownFields().writeTo(output);
4915    }
4916
4917    private int memoizedSerializedSize = -1;
4918    public int getSerializedSize() {
4919      int size = memoizedSerializedSize;
4920      if (size != -1) return size;
4921
4922      size = 0;
4923      if (((bitField0_ & 0x00000001) == 0x00000001)) {
4924        size += com.google.protobuf.CodedOutputStream
4925          .computeBytesSize(1, taskMessage_);
4926      }
4927      if (((bitField0_ & 0x00000002) == 0x00000002)) {
4928        size += com.google.protobuf.CodedOutputStream
4929          .computeMessageSize(2, contextMessage_);
4930      }
4931      if (((bitField0_ & 0x00000004) == 0x00000004)) {
4932        size += com.google.protobuf.CodedOutputStream
4933          .computeMessageSize(5, addContext_);
4934      }
4935      if (((bitField0_ & 0x00000008) == 0x00000008)) {
4936        size += com.google.protobuf.CodedOutputStream
4937          .computeMessageSize(6, removeContext_);
4938      }
4939      if (((bitField0_ & 0x00000010) == 0x00000010)) {
4940        size += com.google.protobuf.CodedOutputStream
4941          .computeMessageSize(7, startTask_);
4942      }
4943      if (((bitField0_ & 0x00000020) == 0x00000020)) {
4944        size += com.google.protobuf.CodedOutputStream
4945          .computeMessageSize(8, stopTask_);
4946      }
4947      if (((bitField0_ & 0x00000040) == 0x00000040)) {
4948        size += com.google.protobuf.CodedOutputStream
4949          .computeMessageSize(9, suspendTask_);
4950      }
4951      size += getUnknownFields().getSerializedSize();
4952      memoizedSerializedSize = size;
4953      return size;
4954    }
4955
4956    private static final long serialVersionUID = 0L;
4957    @java.lang.Override
4958    protected java.lang.Object writeReplace()
4959        throws java.io.ObjectStreamException {
4960      return super.writeReplace();
4961    }
4962
4963    @java.lang.Override
4964    public boolean equals(final java.lang.Object obj) {
4965      if (obj == this) {
4966       return true;
4967      }
4968      if (!(obj instanceof org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto)) {
4969        return super.equals(obj);
4970      }
4971      org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto other = (org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto) obj;
4972
4973      boolean result = true;
4974      result = result && (hasTaskMessage() == other.hasTaskMessage());
4975      if (hasTaskMessage()) {
4976        result = result && getTaskMessage()
4977            .equals(other.getTaskMessage());
4978      }
4979      result = result && (hasContextMessage() == other.hasContextMessage());
4980      if (hasContextMessage()) {
4981        result = result && getContextMessage()
4982            .equals(other.getContextMessage());
4983      }
4984      result = result && (hasAddContext() == other.hasAddContext());
4985      if (hasAddContext()) {
4986        result = result && getAddContext()
4987            .equals(other.getAddContext());
4988      }
4989      result = result && (hasRemoveContext() == other.hasRemoveContext());
4990      if (hasRemoveContext()) {
4991        result = result && getRemoveContext()
4992            .equals(other.getRemoveContext());
4993      }
4994      result = result && (hasStartTask() == other.hasStartTask());
4995      if (hasStartTask()) {
4996        result = result && getStartTask()
4997            .equals(other.getStartTask());
4998      }
4999      result = result && (hasStopTask() == other.hasStopTask());
5000      if (hasStopTask()) {
5001        result = result && getStopTask()
5002            .equals(other.getStopTask());
5003      }
5004      result = result && (hasSuspendTask() == other.hasSuspendTask());
5005      if (hasSuspendTask()) {
5006        result = result && getSuspendTask()
5007            .equals(other.getSuspendTask());
5008      }
5009      result = result &&
5010          getUnknownFields().equals(other.getUnknownFields());
5011      return result;
5012    }
5013
5014    private int memoizedHashCode = 0;
5015    @java.lang.Override
5016    public int hashCode() {
5017      if (memoizedHashCode != 0) {
5018        return memoizedHashCode;
5019      }
5020      int hash = 41;
5021      hash = (19 * hash) + getDescriptorForType().hashCode();
5022      if (hasTaskMessage()) {
5023        hash = (37 * hash) + TASK_MESSAGE_FIELD_NUMBER;
5024        hash = (53 * hash) + getTaskMessage().hashCode();
5025      }
5026      if (hasContextMessage()) {
5027        hash = (37 * hash) + CONTEXT_MESSAGE_FIELD_NUMBER;
5028        hash = (53 * hash) + getContextMessage().hashCode();
5029      }
5030      if (hasAddContext()) {
5031        hash = (37 * hash) + ADD_CONTEXT_FIELD_NUMBER;
5032        hash = (53 * hash) + getAddContext().hashCode();
5033      }
5034      if (hasRemoveContext()) {
5035        hash = (37 * hash) + REMOVE_CONTEXT_FIELD_NUMBER;
5036        hash = (53 * hash) + getRemoveContext().hashCode();
5037      }
5038      if (hasStartTask()) {
5039        hash = (37 * hash) + START_TASK_FIELD_NUMBER;
5040        hash = (53 * hash) + getStartTask().hashCode();
5041      }
5042      if (hasStopTask()) {
5043        hash = (37 * hash) + STOP_TASK_FIELD_NUMBER;
5044        hash = (53 * hash) + getStopTask().hashCode();
5045      }
5046      if (hasSuspendTask()) {
5047        hash = (37 * hash) + SUSPEND_TASK_FIELD_NUMBER;
5048        hash = (53 * hash) + getSuspendTask().hashCode();
5049      }
5050      hash = (29 * hash) + getUnknownFields().hashCode();
5051      memoizedHashCode = hash;
5052      return hash;
5053    }
5054
5055    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto parseFrom(
5056        com.google.protobuf.ByteString data)
5057        throws com.google.protobuf.InvalidProtocolBufferException {
5058      return PARSER.parseFrom(data);
5059    }
5060    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto parseFrom(
5061        com.google.protobuf.ByteString data,
5062        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5063        throws com.google.protobuf.InvalidProtocolBufferException {
5064      return PARSER.parseFrom(data, extensionRegistry);
5065    }
5066    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto parseFrom(byte[] data)
5067        throws com.google.protobuf.InvalidProtocolBufferException {
5068      return PARSER.parseFrom(data);
5069    }
5070    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto parseFrom(
5071        byte[] data,
5072        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5073        throws com.google.protobuf.InvalidProtocolBufferException {
5074      return PARSER.parseFrom(data, extensionRegistry);
5075    }
5076    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto parseFrom(java.io.InputStream input)
5077        throws java.io.IOException {
5078      return PARSER.parseFrom(input);
5079    }
5080    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto parseFrom(
5081        java.io.InputStream input,
5082        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5083        throws java.io.IOException {
5084      return PARSER.parseFrom(input, extensionRegistry);
5085    }
5086    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto parseDelimitedFrom(java.io.InputStream input)
5087        throws java.io.IOException {
5088      return PARSER.parseDelimitedFrom(input);
5089    }
5090    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto parseDelimitedFrom(
5091        java.io.InputStream input,
5092        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5093        throws java.io.IOException {
5094      return PARSER.parseDelimitedFrom(input, extensionRegistry);
5095    }
5096    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto parseFrom(
5097        com.google.protobuf.CodedInputStream input)
5098        throws java.io.IOException {
5099      return PARSER.parseFrom(input);
5100    }
5101    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto parseFrom(
5102        com.google.protobuf.CodedInputStream input,
5103        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5104        throws java.io.IOException {
5105      return PARSER.parseFrom(input, extensionRegistry);
5106    }
5107
5108    public static Builder newBuilder() { return Builder.create(); }
5109    public Builder newBuilderForType() { return newBuilder(); }
5110    public static Builder newBuilder(org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto prototype) {
5111      return newBuilder().mergeFrom(prototype);
5112    }
5113    public Builder toBuilder() { return newBuilder(this); }
5114
5115    @java.lang.Override
5116    protected Builder newBuilderForType(
5117        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
5118      Builder builder = new Builder(parent);
5119      return builder;
5120    }
5121    /**
5122     * Protobuf type {@code ContextControlProto}
5123     */
5124    public static final class Builder extends
5125        com.google.protobuf.GeneratedMessage.Builder<Builder>
5126       implements org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProtoOrBuilder {
5127      public static final com.google.protobuf.Descriptors.Descriptor
5128          getDescriptor() {
5129        return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_ContextControlProto_descriptor;
5130      }
5131
5132      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
5133          internalGetFieldAccessorTable() {
5134        return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_ContextControlProto_fieldAccessorTable
5135            .ensureFieldAccessorsInitialized(
5136                org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto.class, org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto.Builder.class);
5137      }
5138
5139      // Construct using org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto.newBuilder()
5140      private Builder() {
5141        maybeForceBuilderInitialization();
5142      }
5143
5144      private Builder(
5145          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
5146        super(parent);
5147        maybeForceBuilderInitialization();
5148      }
5149      private void maybeForceBuilderInitialization() {
5150        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
5151          getContextMessageFieldBuilder();
5152          getAddContextFieldBuilder();
5153          getRemoveContextFieldBuilder();
5154          getStartTaskFieldBuilder();
5155          getStopTaskFieldBuilder();
5156          getSuspendTaskFieldBuilder();
5157        }
5158      }
5159      private static Builder create() {
5160        return new Builder();
5161      }
5162
5163      public Builder clear() {
5164        super.clear();
5165        taskMessage_ = com.google.protobuf.ByteString.EMPTY;
5166        bitField0_ = (bitField0_ & ~0x00000001);
5167        if (contextMessageBuilder_ == null) {
5168          contextMessage_ = org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto.getDefaultInstance();
5169        } else {
5170          contextMessageBuilder_.clear();
5171        }
5172        bitField0_ = (bitField0_ & ~0x00000002);
5173        if (addContextBuilder_ == null) {
5174          addContext_ = org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto.getDefaultInstance();
5175        } else {
5176          addContextBuilder_.clear();
5177        }
5178        bitField0_ = (bitField0_ & ~0x00000004);
5179        if (removeContextBuilder_ == null) {
5180          removeContext_ = org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto.getDefaultInstance();
5181        } else {
5182          removeContextBuilder_.clear();
5183        }
5184        bitField0_ = (bitField0_ & ~0x00000008);
5185        if (startTaskBuilder_ == null) {
5186          startTask_ = org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto.getDefaultInstance();
5187        } else {
5188          startTaskBuilder_.clear();
5189        }
5190        bitField0_ = (bitField0_ & ~0x00000010);
5191        if (stopTaskBuilder_ == null) {
5192          stopTask_ = org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto.getDefaultInstance();
5193        } else {
5194          stopTaskBuilder_.clear();
5195        }
5196        bitField0_ = (bitField0_ & ~0x00000020);
5197        if (suspendTaskBuilder_ == null) {
5198          suspendTask_ = org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto.getDefaultInstance();
5199        } else {
5200          suspendTaskBuilder_.clear();
5201        }
5202        bitField0_ = (bitField0_ & ~0x00000040);
5203        return this;
5204      }
5205
5206      public Builder clone() {
5207        return create().mergeFrom(buildPartial());
5208      }
5209
5210      public com.google.protobuf.Descriptors.Descriptor
5211          getDescriptorForType() {
5212        return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_ContextControlProto_descriptor;
5213      }
5214
5215      public org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto getDefaultInstanceForType() {
5216        return org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto.getDefaultInstance();
5217      }
5218
5219      public org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto build() {
5220        org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto result = buildPartial();
5221        if (!result.isInitialized()) {
5222          throw newUninitializedMessageException(result);
5223        }
5224        return result;
5225      }
5226
5227      public org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto buildPartial() {
5228        org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto result = new org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto(this);
5229        int from_bitField0_ = bitField0_;
5230        int to_bitField0_ = 0;
5231        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
5232          to_bitField0_ |= 0x00000001;
5233        }
5234        result.taskMessage_ = taskMessage_;
5235        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
5236          to_bitField0_ |= 0x00000002;
5237        }
5238        if (contextMessageBuilder_ == null) {
5239          result.contextMessage_ = contextMessage_;
5240        } else {
5241          result.contextMessage_ = contextMessageBuilder_.build();
5242        }
5243        if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
5244          to_bitField0_ |= 0x00000004;
5245        }
5246        if (addContextBuilder_ == null) {
5247          result.addContext_ = addContext_;
5248        } else {
5249          result.addContext_ = addContextBuilder_.build();
5250        }
5251        if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
5252          to_bitField0_ |= 0x00000008;
5253        }
5254        if (removeContextBuilder_ == null) {
5255          result.removeContext_ = removeContext_;
5256        } else {
5257          result.removeContext_ = removeContextBuilder_.build();
5258        }
5259        if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
5260          to_bitField0_ |= 0x00000010;
5261        }
5262        if (startTaskBuilder_ == null) {
5263          result.startTask_ = startTask_;
5264        } else {
5265          result.startTask_ = startTaskBuilder_.build();
5266        }
5267        if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
5268          to_bitField0_ |= 0x00000020;
5269        }
5270        if (stopTaskBuilder_ == null) {
5271          result.stopTask_ = stopTask_;
5272        } else {
5273          result.stopTask_ = stopTaskBuilder_.build();
5274        }
5275        if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
5276          to_bitField0_ |= 0x00000040;
5277        }
5278        if (suspendTaskBuilder_ == null) {
5279          result.suspendTask_ = suspendTask_;
5280        } else {
5281          result.suspendTask_ = suspendTaskBuilder_.build();
5282        }
5283        result.bitField0_ = to_bitField0_;
5284        onBuilt();
5285        return result;
5286      }
5287
5288      public Builder mergeFrom(com.google.protobuf.Message other) {
5289        if (other instanceof org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto) {
5290          return mergeFrom((org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto)other);
5291        } else {
5292          super.mergeFrom(other);
5293          return this;
5294        }
5295      }
5296
5297      public Builder mergeFrom(org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto other) {
5298        if (other == org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto.getDefaultInstance()) return this;
5299        if (other.hasTaskMessage()) {
5300          setTaskMessage(other.getTaskMessage());
5301        }
5302        if (other.hasContextMessage()) {
5303          mergeContextMessage(other.getContextMessage());
5304        }
5305        if (other.hasAddContext()) {
5306          mergeAddContext(other.getAddContext());
5307        }
5308        if (other.hasRemoveContext()) {
5309          mergeRemoveContext(other.getRemoveContext());
5310        }
5311        if (other.hasStartTask()) {
5312          mergeStartTask(other.getStartTask());
5313        }
5314        if (other.hasStopTask()) {
5315          mergeStopTask(other.getStopTask());
5316        }
5317        if (other.hasSuspendTask()) {
5318          mergeSuspendTask(other.getSuspendTask());
5319        }
5320        this.mergeUnknownFields(other.getUnknownFields());
5321        return this;
5322      }
5323
5324      public final boolean isInitialized() {
5325        if (hasContextMessage()) {
5326          if (!getContextMessage().isInitialized()) {
5327            
5328            return false;
5329          }
5330        }
5331        if (hasAddContext()) {
5332          if (!getAddContext().isInitialized()) {
5333            
5334            return false;
5335          }
5336        }
5337        if (hasRemoveContext()) {
5338          if (!getRemoveContext().isInitialized()) {
5339            
5340            return false;
5341          }
5342        }
5343        if (hasStartTask()) {
5344          if (!getStartTask().isInitialized()) {
5345            
5346            return false;
5347          }
5348        }
5349        return true;
5350      }
5351
5352      public Builder mergeFrom(
5353          com.google.protobuf.CodedInputStream input,
5354          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5355          throws java.io.IOException {
5356        org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto parsedMessage = null;
5357        try {
5358          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
5359        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
5360          parsedMessage = (org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto) e.getUnfinishedMessage();
5361          throw e;
5362        } finally {
5363          if (parsedMessage != null) {
5364            mergeFrom(parsedMessage);
5365          }
5366        }
5367        return this;
5368      }
5369      private int bitField0_;
5370
5371      // optional bytes task_message = 1;
5372      private com.google.protobuf.ByteString taskMessage_ = com.google.protobuf.ByteString.EMPTY;
5373      /**
5374       * <code>optional bytes task_message = 1;</code>
5375       */
5376      public boolean hasTaskMessage() {
5377        return ((bitField0_ & 0x00000001) == 0x00000001);
5378      }
5379      /**
5380       * <code>optional bytes task_message = 1;</code>
5381       */
5382      public com.google.protobuf.ByteString getTaskMessage() {
5383        return taskMessage_;
5384      }
5385      /**
5386       * <code>optional bytes task_message = 1;</code>
5387       */
5388      public Builder setTaskMessage(com.google.protobuf.ByteString value) {
5389        if (value == null) {
5390    throw new NullPointerException();
5391  }
5392  bitField0_ |= 0x00000001;
5393        taskMessage_ = value;
5394        onChanged();
5395        return this;
5396      }
5397      /**
5398       * <code>optional bytes task_message = 1;</code>
5399       */
5400      public Builder clearTaskMessage() {
5401        bitField0_ = (bitField0_ & ~0x00000001);
5402        taskMessage_ = getDefaultInstance().getTaskMessage();
5403        onChanged();
5404        return this;
5405      }
5406
5407      // optional .ContextMessageProto context_message = 2;
5408      private org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto contextMessage_ = org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto.getDefaultInstance();
5409      private com.google.protobuf.SingleFieldBuilder<
5410          org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto, org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto.Builder, org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProtoOrBuilder> contextMessageBuilder_;
5411      /**
5412       * <code>optional .ContextMessageProto context_message = 2;</code>
5413       */
5414      public boolean hasContextMessage() {
5415        return ((bitField0_ & 0x00000002) == 0x00000002);
5416      }
5417      /**
5418       * <code>optional .ContextMessageProto context_message = 2;</code>
5419       */
5420      public org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto getContextMessage() {
5421        if (contextMessageBuilder_ == null) {
5422          return contextMessage_;
5423        } else {
5424          return contextMessageBuilder_.getMessage();
5425        }
5426      }
5427      /**
5428       * <code>optional .ContextMessageProto context_message = 2;</code>
5429       */
5430      public Builder setContextMessage(org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto value) {
5431        if (contextMessageBuilder_ == null) {
5432          if (value == null) {
5433            throw new NullPointerException();
5434          }
5435          contextMessage_ = value;
5436          onChanged();
5437        } else {
5438          contextMessageBuilder_.setMessage(value);
5439        }
5440        bitField0_ |= 0x00000002;
5441        return this;
5442      }
5443      /**
5444       * <code>optional .ContextMessageProto context_message = 2;</code>
5445       */
5446      public Builder setContextMessage(
5447          org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto.Builder builderForValue) {
5448        if (contextMessageBuilder_ == null) {
5449          contextMessage_ = builderForValue.build();
5450          onChanged();
5451        } else {
5452          contextMessageBuilder_.setMessage(builderForValue.build());
5453        }
5454        bitField0_ |= 0x00000002;
5455        return this;
5456      }
5457      /**
5458       * <code>optional .ContextMessageProto context_message = 2;</code>
5459       */
5460      public Builder mergeContextMessage(org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto value) {
5461        if (contextMessageBuilder_ == null) {
5462          if (((bitField0_ & 0x00000002) == 0x00000002) &&
5463              contextMessage_ != org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto.getDefaultInstance()) {
5464            contextMessage_ =
5465              org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto.newBuilder(contextMessage_).mergeFrom(value).buildPartial();
5466          } else {
5467            contextMessage_ = value;
5468          }
5469          onChanged();
5470        } else {
5471          contextMessageBuilder_.mergeFrom(value);
5472        }
5473        bitField0_ |= 0x00000002;
5474        return this;
5475      }
5476      /**
5477       * <code>optional .ContextMessageProto context_message = 2;</code>
5478       */
5479      public Builder clearContextMessage() {
5480        if (contextMessageBuilder_ == null) {
5481          contextMessage_ = org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto.getDefaultInstance();
5482          onChanged();
5483        } else {
5484          contextMessageBuilder_.clear();
5485        }
5486        bitField0_ = (bitField0_ & ~0x00000002);
5487        return this;
5488      }
5489      /**
5490       * <code>optional .ContextMessageProto context_message = 2;</code>
5491       */
5492      public org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto.Builder getContextMessageBuilder() {
5493        bitField0_ |= 0x00000002;
5494        onChanged();
5495        return getContextMessageFieldBuilder().getBuilder();
5496      }
5497      /**
5498       * <code>optional .ContextMessageProto context_message = 2;</code>
5499       */
5500      public org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProtoOrBuilder getContextMessageOrBuilder() {
5501        if (contextMessageBuilder_ != null) {
5502          return contextMessageBuilder_.getMessageOrBuilder();
5503        } else {
5504          return contextMessage_;
5505        }
5506      }
5507      /**
5508       * <code>optional .ContextMessageProto context_message = 2;</code>
5509       */
5510      private com.google.protobuf.SingleFieldBuilder<
5511          org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto, org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto.Builder, org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProtoOrBuilder> 
5512          getContextMessageFieldBuilder() {
5513        if (contextMessageBuilder_ == null) {
5514          contextMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder<
5515              org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto, org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto.Builder, org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProtoOrBuilder>(
5516                  contextMessage_,
5517                  getParentForChildren(),
5518                  isClean());
5519          contextMessage_ = null;
5520        }
5521        return contextMessageBuilder_;
5522      }
5523
5524      // optional .AddContextProto add_context = 5;
5525      private org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto addContext_ = org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto.getDefaultInstance();
5526      private com.google.protobuf.SingleFieldBuilder<
5527          org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto, org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto.Builder, org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProtoOrBuilder> addContextBuilder_;
5528      /**
5529       * <code>optional .AddContextProto add_context = 5;</code>
5530       */
5531      public boolean hasAddContext() {
5532        return ((bitField0_ & 0x00000004) == 0x00000004);
5533      }
5534      /**
5535       * <code>optional .AddContextProto add_context = 5;</code>
5536       */
5537      public org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto getAddContext() {
5538        if (addContextBuilder_ == null) {
5539          return addContext_;
5540        } else {
5541          return addContextBuilder_.getMessage();
5542        }
5543      }
5544      /**
5545       * <code>optional .AddContextProto add_context = 5;</code>
5546       */
5547      public Builder setAddContext(org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto value) {
5548        if (addContextBuilder_ == null) {
5549          if (value == null) {
5550            throw new NullPointerException();
5551          }
5552          addContext_ = value;
5553          onChanged();
5554        } else {
5555          addContextBuilder_.setMessage(value);
5556        }
5557        bitField0_ |= 0x00000004;
5558        return this;
5559      }
5560      /**
5561       * <code>optional .AddContextProto add_context = 5;</code>
5562       */
5563      public Builder setAddContext(
5564          org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto.Builder builderForValue) {
5565        if (addContextBuilder_ == null) {
5566          addContext_ = builderForValue.build();
5567          onChanged();
5568        } else {
5569          addContextBuilder_.setMessage(builderForValue.build());
5570        }
5571        bitField0_ |= 0x00000004;
5572        return this;
5573      }
5574      /**
5575       * <code>optional .AddContextProto add_context = 5;</code>
5576       */
5577      public Builder mergeAddContext(org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto value) {
5578        if (addContextBuilder_ == null) {
5579          if (((bitField0_ & 0x00000004) == 0x00000004) &&
5580              addContext_ != org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto.getDefaultInstance()) {
5581            addContext_ =
5582              org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto.newBuilder(addContext_).mergeFrom(value).buildPartial();
5583          } else {
5584            addContext_ = value;
5585          }
5586          onChanged();
5587        } else {
5588          addContextBuilder_.mergeFrom(value);
5589        }
5590        bitField0_ |= 0x00000004;
5591        return this;
5592      }
5593      /**
5594       * <code>optional .AddContextProto add_context = 5;</code>
5595       */
5596      public Builder clearAddContext() {
5597        if (addContextBuilder_ == null) {
5598          addContext_ = org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto.getDefaultInstance();
5599          onChanged();
5600        } else {
5601          addContextBuilder_.clear();
5602        }
5603        bitField0_ = (bitField0_ & ~0x00000004);
5604        return this;
5605      }
5606      /**
5607       * <code>optional .AddContextProto add_context = 5;</code>
5608       */
5609      public org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto.Builder getAddContextBuilder() {
5610        bitField0_ |= 0x00000004;
5611        onChanged();
5612        return getAddContextFieldBuilder().getBuilder();
5613      }
5614      /**
5615       * <code>optional .AddContextProto add_context = 5;</code>
5616       */
5617      public org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProtoOrBuilder getAddContextOrBuilder() {
5618        if (addContextBuilder_ != null) {
5619          return addContextBuilder_.getMessageOrBuilder();
5620        } else {
5621          return addContext_;
5622        }
5623      }
5624      /**
5625       * <code>optional .AddContextProto add_context = 5;</code>
5626       */
5627      private com.google.protobuf.SingleFieldBuilder<
5628          org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto, org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto.Builder, org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProtoOrBuilder> 
5629          getAddContextFieldBuilder() {
5630        if (addContextBuilder_ == null) {
5631          addContextBuilder_ = new com.google.protobuf.SingleFieldBuilder<
5632              org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto, org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProto.Builder, org.apache.reef.proto.EvaluatorRuntimeProtocol.AddContextProtoOrBuilder>(
5633                  addContext_,
5634                  getParentForChildren(),
5635                  isClean());
5636          addContext_ = null;
5637        }
5638        return addContextBuilder_;
5639      }
5640
5641      // optional .RemoveContextProto remove_context = 6;
5642      private org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto removeContext_ = org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto.getDefaultInstance();
5643      private com.google.protobuf.SingleFieldBuilder<
5644          org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto, org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto.Builder, org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProtoOrBuilder> removeContextBuilder_;
5645      /**
5646       * <code>optional .RemoveContextProto remove_context = 6;</code>
5647       */
5648      public boolean hasRemoveContext() {
5649        return ((bitField0_ & 0x00000008) == 0x00000008);
5650      }
5651      /**
5652       * <code>optional .RemoveContextProto remove_context = 6;</code>
5653       */
5654      public org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto getRemoveContext() {
5655        if (removeContextBuilder_ == null) {
5656          return removeContext_;
5657        } else {
5658          return removeContextBuilder_.getMessage();
5659        }
5660      }
5661      /**
5662       * <code>optional .RemoveContextProto remove_context = 6;</code>
5663       */
5664      public Builder setRemoveContext(org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto value) {
5665        if (removeContextBuilder_ == null) {
5666          if (value == null) {
5667            throw new NullPointerException();
5668          }
5669          removeContext_ = value;
5670          onChanged();
5671        } else {
5672          removeContextBuilder_.setMessage(value);
5673        }
5674        bitField0_ |= 0x00000008;
5675        return this;
5676      }
5677      /**
5678       * <code>optional .RemoveContextProto remove_context = 6;</code>
5679       */
5680      public Builder setRemoveContext(
5681          org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto.Builder builderForValue) {
5682        if (removeContextBuilder_ == null) {
5683          removeContext_ = builderForValue.build();
5684          onChanged();
5685        } else {
5686          removeContextBuilder_.setMessage(builderForValue.build());
5687        }
5688        bitField0_ |= 0x00000008;
5689        return this;
5690      }
5691      /**
5692       * <code>optional .RemoveContextProto remove_context = 6;</code>
5693       */
5694      public Builder mergeRemoveContext(org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto value) {
5695        if (removeContextBuilder_ == null) {
5696          if (((bitField0_ & 0x00000008) == 0x00000008) &&
5697              removeContext_ != org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto.getDefaultInstance()) {
5698            removeContext_ =
5699              org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto.newBuilder(removeContext_).mergeFrom(value).buildPartial();
5700          } else {
5701            removeContext_ = value;
5702          }
5703          onChanged();
5704        } else {
5705          removeContextBuilder_.mergeFrom(value);
5706        }
5707        bitField0_ |= 0x00000008;
5708        return this;
5709      }
5710      /**
5711       * <code>optional .RemoveContextProto remove_context = 6;</code>
5712       */
5713      public Builder clearRemoveContext() {
5714        if (removeContextBuilder_ == null) {
5715          removeContext_ = org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto.getDefaultInstance();
5716          onChanged();
5717        } else {
5718          removeContextBuilder_.clear();
5719        }
5720        bitField0_ = (bitField0_ & ~0x00000008);
5721        return this;
5722      }
5723      /**
5724       * <code>optional .RemoveContextProto remove_context = 6;</code>
5725       */
5726      public org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto.Builder getRemoveContextBuilder() {
5727        bitField0_ |= 0x00000008;
5728        onChanged();
5729        return getRemoveContextFieldBuilder().getBuilder();
5730      }
5731      /**
5732       * <code>optional .RemoveContextProto remove_context = 6;</code>
5733       */
5734      public org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProtoOrBuilder getRemoveContextOrBuilder() {
5735        if (removeContextBuilder_ != null) {
5736          return removeContextBuilder_.getMessageOrBuilder();
5737        } else {
5738          return removeContext_;
5739        }
5740      }
5741      /**
5742       * <code>optional .RemoveContextProto remove_context = 6;</code>
5743       */
5744      private com.google.protobuf.SingleFieldBuilder<
5745          org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto, org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto.Builder, org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProtoOrBuilder> 
5746          getRemoveContextFieldBuilder() {
5747        if (removeContextBuilder_ == null) {
5748          removeContextBuilder_ = new com.google.protobuf.SingleFieldBuilder<
5749              org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto, org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto.Builder, org.apache.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProtoOrBuilder>(
5750                  removeContext_,
5751                  getParentForChildren(),
5752                  isClean());
5753          removeContext_ = null;
5754        }
5755        return removeContextBuilder_;
5756      }
5757
5758      // optional .StartTaskProto start_task = 7;
5759      private org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto startTask_ = org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto.getDefaultInstance();
5760      private com.google.protobuf.SingleFieldBuilder<
5761          org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto, org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto.Builder, org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProtoOrBuilder> startTaskBuilder_;
5762      /**
5763       * <code>optional .StartTaskProto start_task = 7;</code>
5764       */
5765      public boolean hasStartTask() {
5766        return ((bitField0_ & 0x00000010) == 0x00000010);
5767      }
5768      /**
5769       * <code>optional .StartTaskProto start_task = 7;</code>
5770       */
5771      public org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto getStartTask() {
5772        if (startTaskBuilder_ == null) {
5773          return startTask_;
5774        } else {
5775          return startTaskBuilder_.getMessage();
5776        }
5777      }
5778      /**
5779       * <code>optional .StartTaskProto start_task = 7;</code>
5780       */
5781      public Builder setStartTask(org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto value) {
5782        if (startTaskBuilder_ == null) {
5783          if (value == null) {
5784            throw new NullPointerException();
5785          }
5786          startTask_ = value;
5787          onChanged();
5788        } else {
5789          startTaskBuilder_.setMessage(value);
5790        }
5791        bitField0_ |= 0x00000010;
5792        return this;
5793      }
5794      /**
5795       * <code>optional .StartTaskProto start_task = 7;</code>
5796       */
5797      public Builder setStartTask(
5798          org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto.Builder builderForValue) {
5799        if (startTaskBuilder_ == null) {
5800          startTask_ = builderForValue.build();
5801          onChanged();
5802        } else {
5803          startTaskBuilder_.setMessage(builderForValue.build());
5804        }
5805        bitField0_ |= 0x00000010;
5806        return this;
5807      }
5808      /**
5809       * <code>optional .StartTaskProto start_task = 7;</code>
5810       */
5811      public Builder mergeStartTask(org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto value) {
5812        if (startTaskBuilder_ == null) {
5813          if (((bitField0_ & 0x00000010) == 0x00000010) &&
5814              startTask_ != org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto.getDefaultInstance()) {
5815            startTask_ =
5816              org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto.newBuilder(startTask_).mergeFrom(value).buildPartial();
5817          } else {
5818            startTask_ = value;
5819          }
5820          onChanged();
5821        } else {
5822          startTaskBuilder_.mergeFrom(value);
5823        }
5824        bitField0_ |= 0x00000010;
5825        return this;
5826      }
5827      /**
5828       * <code>optional .StartTaskProto start_task = 7;</code>
5829       */
5830      public Builder clearStartTask() {
5831        if (startTaskBuilder_ == null) {
5832          startTask_ = org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto.getDefaultInstance();
5833          onChanged();
5834        } else {
5835          startTaskBuilder_.clear();
5836        }
5837        bitField0_ = (bitField0_ & ~0x00000010);
5838        return this;
5839      }
5840      /**
5841       * <code>optional .StartTaskProto start_task = 7;</code>
5842       */
5843      public org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto.Builder getStartTaskBuilder() {
5844        bitField0_ |= 0x00000010;
5845        onChanged();
5846        return getStartTaskFieldBuilder().getBuilder();
5847      }
5848      /**
5849       * <code>optional .StartTaskProto start_task = 7;</code>
5850       */
5851      public org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProtoOrBuilder getStartTaskOrBuilder() {
5852        if (startTaskBuilder_ != null) {
5853          return startTaskBuilder_.getMessageOrBuilder();
5854        } else {
5855          return startTask_;
5856        }
5857      }
5858      /**
5859       * <code>optional .StartTaskProto start_task = 7;</code>
5860       */
5861      private com.google.protobuf.SingleFieldBuilder<
5862          org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto, org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto.Builder, org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProtoOrBuilder> 
5863          getStartTaskFieldBuilder() {
5864        if (startTaskBuilder_ == null) {
5865          startTaskBuilder_ = new com.google.protobuf.SingleFieldBuilder<
5866              org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto, org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto.Builder, org.apache.reef.proto.EvaluatorRuntimeProtocol.StartTaskProtoOrBuilder>(
5867                  startTask_,
5868                  getParentForChildren(),
5869                  isClean());
5870          startTask_ = null;
5871        }
5872        return startTaskBuilder_;
5873      }
5874
5875      // optional .StopTaskProto stop_task = 8;
5876      private org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto stopTask_ = org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto.getDefaultInstance();
5877      private com.google.protobuf.SingleFieldBuilder<
5878          org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto, org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto.Builder, org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProtoOrBuilder> stopTaskBuilder_;
5879      /**
5880       * <code>optional .StopTaskProto stop_task = 8;</code>
5881       */
5882      public boolean hasStopTask() {
5883        return ((bitField0_ & 0x00000020) == 0x00000020);
5884      }
5885      /**
5886       * <code>optional .StopTaskProto stop_task = 8;</code>
5887       */
5888      public org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto getStopTask() {
5889        if (stopTaskBuilder_ == null) {
5890          return stopTask_;
5891        } else {
5892          return stopTaskBuilder_.getMessage();
5893        }
5894      }
5895      /**
5896       * <code>optional .StopTaskProto stop_task = 8;</code>
5897       */
5898      public Builder setStopTask(org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto value) {
5899        if (stopTaskBuilder_ == null) {
5900          if (value == null) {
5901            throw new NullPointerException();
5902          }
5903          stopTask_ = value;
5904          onChanged();
5905        } else {
5906          stopTaskBuilder_.setMessage(value);
5907        }
5908        bitField0_ |= 0x00000020;
5909        return this;
5910      }
5911      /**
5912       * <code>optional .StopTaskProto stop_task = 8;</code>
5913       */
5914      public Builder setStopTask(
5915          org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto.Builder builderForValue) {
5916        if (stopTaskBuilder_ == null) {
5917          stopTask_ = builderForValue.build();
5918          onChanged();
5919        } else {
5920          stopTaskBuilder_.setMessage(builderForValue.build());
5921        }
5922        bitField0_ |= 0x00000020;
5923        return this;
5924      }
5925      /**
5926       * <code>optional .StopTaskProto stop_task = 8;</code>
5927       */
5928      public Builder mergeStopTask(org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto value) {
5929        if (stopTaskBuilder_ == null) {
5930          if (((bitField0_ & 0x00000020) == 0x00000020) &&
5931              stopTask_ != org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto.getDefaultInstance()) {
5932            stopTask_ =
5933              org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto.newBuilder(stopTask_).mergeFrom(value).buildPartial();
5934          } else {
5935            stopTask_ = value;
5936          }
5937          onChanged();
5938        } else {
5939          stopTaskBuilder_.mergeFrom(value);
5940        }
5941        bitField0_ |= 0x00000020;
5942        return this;
5943      }
5944      /**
5945       * <code>optional .StopTaskProto stop_task = 8;</code>
5946       */
5947      public Builder clearStopTask() {
5948        if (stopTaskBuilder_ == null) {
5949          stopTask_ = org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto.getDefaultInstance();
5950          onChanged();
5951        } else {
5952          stopTaskBuilder_.clear();
5953        }
5954        bitField0_ = (bitField0_ & ~0x00000020);
5955        return this;
5956      }
5957      /**
5958       * <code>optional .StopTaskProto stop_task = 8;</code>
5959       */
5960      public org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto.Builder getStopTaskBuilder() {
5961        bitField0_ |= 0x00000020;
5962        onChanged();
5963        return getStopTaskFieldBuilder().getBuilder();
5964      }
5965      /**
5966       * <code>optional .StopTaskProto stop_task = 8;</code>
5967       */
5968      public org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProtoOrBuilder getStopTaskOrBuilder() {
5969        if (stopTaskBuilder_ != null) {
5970          return stopTaskBuilder_.getMessageOrBuilder();
5971        } else {
5972          return stopTask_;
5973        }
5974      }
5975      /**
5976       * <code>optional .StopTaskProto stop_task = 8;</code>
5977       */
5978      private com.google.protobuf.SingleFieldBuilder<
5979          org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto, org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto.Builder, org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProtoOrBuilder> 
5980          getStopTaskFieldBuilder() {
5981        if (stopTaskBuilder_ == null) {
5982          stopTaskBuilder_ = new com.google.protobuf.SingleFieldBuilder<
5983              org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto, org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto.Builder, org.apache.reef.proto.EvaluatorRuntimeProtocol.StopTaskProtoOrBuilder>(
5984                  stopTask_,
5985                  getParentForChildren(),
5986                  isClean());
5987          stopTask_ = null;
5988        }
5989        return stopTaskBuilder_;
5990      }
5991
5992      // optional .SuspendTaskProto suspend_task = 9;
5993      private org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto suspendTask_ = org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto.getDefaultInstance();
5994      private com.google.protobuf.SingleFieldBuilder<
5995          org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto, org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto.Builder, org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProtoOrBuilder> suspendTaskBuilder_;
5996      /**
5997       * <code>optional .SuspendTaskProto suspend_task = 9;</code>
5998       */
5999      public boolean hasSuspendTask() {
6000        return ((bitField0_ & 0x00000040) == 0x00000040);
6001      }
6002      /**
6003       * <code>optional .SuspendTaskProto suspend_task = 9;</code>
6004       */
6005      public org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto getSuspendTask() {
6006        if (suspendTaskBuilder_ == null) {
6007          return suspendTask_;
6008        } else {
6009          return suspendTaskBuilder_.getMessage();
6010        }
6011      }
6012      /**
6013       * <code>optional .SuspendTaskProto suspend_task = 9;</code>
6014       */
6015      public Builder setSuspendTask(org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto value) {
6016        if (suspendTaskBuilder_ == null) {
6017          if (value == null) {
6018            throw new NullPointerException();
6019          }
6020          suspendTask_ = value;
6021          onChanged();
6022        } else {
6023          suspendTaskBuilder_.setMessage(value);
6024        }
6025        bitField0_ |= 0x00000040;
6026        return this;
6027      }
6028      /**
6029       * <code>optional .SuspendTaskProto suspend_task = 9;</code>
6030       */
6031      public Builder setSuspendTask(
6032          org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto.Builder builderForValue) {
6033        if (suspendTaskBuilder_ == null) {
6034          suspendTask_ = builderForValue.build();
6035          onChanged();
6036        } else {
6037          suspendTaskBuilder_.setMessage(builderForValue.build());
6038        }
6039        bitField0_ |= 0x00000040;
6040        return this;
6041      }
6042      /**
6043       * <code>optional .SuspendTaskProto suspend_task = 9;</code>
6044       */
6045      public Builder mergeSuspendTask(org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto value) {
6046        if (suspendTaskBuilder_ == null) {
6047          if (((bitField0_ & 0x00000040) == 0x00000040) &&
6048              suspendTask_ != org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto.getDefaultInstance()) {
6049            suspendTask_ =
6050              org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto.newBuilder(suspendTask_).mergeFrom(value).buildPartial();
6051          } else {
6052            suspendTask_ = value;
6053          }
6054          onChanged();
6055        } else {
6056          suspendTaskBuilder_.mergeFrom(value);
6057        }
6058        bitField0_ |= 0x00000040;
6059        return this;
6060      }
6061      /**
6062       * <code>optional .SuspendTaskProto suspend_task = 9;</code>
6063       */
6064      public Builder clearSuspendTask() {
6065        if (suspendTaskBuilder_ == null) {
6066          suspendTask_ = org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto.getDefaultInstance();
6067          onChanged();
6068        } else {
6069          suspendTaskBuilder_.clear();
6070        }
6071        bitField0_ = (bitField0_ & ~0x00000040);
6072        return this;
6073      }
6074      /**
6075       * <code>optional .SuspendTaskProto suspend_task = 9;</code>
6076       */
6077      public org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto.Builder getSuspendTaskBuilder() {
6078        bitField0_ |= 0x00000040;
6079        onChanged();
6080        return getSuspendTaskFieldBuilder().getBuilder();
6081      }
6082      /**
6083       * <code>optional .SuspendTaskProto suspend_task = 9;</code>
6084       */
6085      public org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProtoOrBuilder getSuspendTaskOrBuilder() {
6086        if (suspendTaskBuilder_ != null) {
6087          return suspendTaskBuilder_.getMessageOrBuilder();
6088        } else {
6089          return suspendTask_;
6090        }
6091      }
6092      /**
6093       * <code>optional .SuspendTaskProto suspend_task = 9;</code>
6094       */
6095      private com.google.protobuf.SingleFieldBuilder<
6096          org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto, org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto.Builder, org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProtoOrBuilder> 
6097          getSuspendTaskFieldBuilder() {
6098        if (suspendTaskBuilder_ == null) {
6099          suspendTaskBuilder_ = new com.google.protobuf.SingleFieldBuilder<
6100              org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto, org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto.Builder, org.apache.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProtoOrBuilder>(
6101                  suspendTask_,
6102                  getParentForChildren(),
6103                  isClean());
6104          suspendTask_ = null;
6105        }
6106        return suspendTaskBuilder_;
6107      }
6108
6109      // @@protoc_insertion_point(builder_scope:ContextControlProto)
6110    }
6111
6112    static {
6113      defaultInstance = new ContextControlProto(true);
6114      defaultInstance.initFields();
6115    }
6116
6117    // @@protoc_insertion_point(class_scope:ContextControlProto)
6118  }
6119
6120  public interface EvaluatorHeartbeatProtoOrBuilder
6121      extends com.google.protobuf.MessageOrBuilder {
6122
6123    // required int64 timestamp = 1;
6124    /**
6125     * <code>required int64 timestamp = 1;</code>
6126     */
6127    boolean hasTimestamp();
6128    /**
6129     * <code>required int64 timestamp = 1;</code>
6130     */
6131    long getTimestamp();
6132
6133    // required .EvaluatorStatusProto evaluator_status = 2;
6134    /**
6135     * <code>required .EvaluatorStatusProto evaluator_status = 2;</code>
6136     */
6137    boolean hasEvaluatorStatus();
6138    /**
6139     * <code>required .EvaluatorStatusProto evaluator_status = 2;</code>
6140     */
6141    org.apache.reef.proto.ReefServiceProtos.EvaluatorStatusProto getEvaluatorStatus();
6142    /**
6143     * <code>required .EvaluatorStatusProto evaluator_status = 2;</code>
6144     */
6145    org.apache.reef.proto.ReefServiceProtos.EvaluatorStatusProtoOrBuilder getEvaluatorStatusOrBuilder();
6146
6147    // repeated .ContextStatusProto context_status = 3;
6148    /**
6149     * <code>repeated .ContextStatusProto context_status = 3;</code>
6150     */
6151    java.util.List<org.apache.reef.proto.ReefServiceProtos.ContextStatusProto> 
6152        getContextStatusList();
6153    /**
6154     * <code>repeated .ContextStatusProto context_status = 3;</code>
6155     */
6156    org.apache.reef.proto.ReefServiceProtos.ContextStatusProto getContextStatus(int index);
6157    /**
6158     * <code>repeated .ContextStatusProto context_status = 3;</code>
6159     */
6160    int getContextStatusCount();
6161    /**
6162     * <code>repeated .ContextStatusProto context_status = 3;</code>
6163     */
6164    java.util.List<? extends org.apache.reef.proto.ReefServiceProtos.ContextStatusProtoOrBuilder> 
6165        getContextStatusOrBuilderList();
6166    /**
6167     * <code>repeated .ContextStatusProto context_status = 3;</code>
6168     */
6169    org.apache.reef.proto.ReefServiceProtos.ContextStatusProtoOrBuilder getContextStatusOrBuilder(
6170        int index);
6171
6172    // optional .TaskStatusProto task_status = 4;
6173    /**
6174     * <code>optional .TaskStatusProto task_status = 4;</code>
6175     */
6176    boolean hasTaskStatus();
6177    /**
6178     * <code>optional .TaskStatusProto task_status = 4;</code>
6179     */
6180    org.apache.reef.proto.ReefServiceProtos.TaskStatusProto getTaskStatus();
6181    /**
6182     * <code>optional .TaskStatusProto task_status = 4;</code>
6183     */
6184    org.apache.reef.proto.ReefServiceProtos.TaskStatusProtoOrBuilder getTaskStatusOrBuilder();
6185
6186    // optional bool recovery = 5;
6187    /**
6188     * <code>optional bool recovery = 5;</code>
6189     */
6190    boolean hasRecovery();
6191    /**
6192     * <code>optional bool recovery = 5;</code>
6193     */
6194    boolean getRecovery();
6195  }
6196  /**
6197   * Protobuf type {@code EvaluatorHeartbeatProto}
6198   */
6199  public static final class EvaluatorHeartbeatProto extends
6200      com.google.protobuf.GeneratedMessage
6201      implements EvaluatorHeartbeatProtoOrBuilder {
6202    // Use EvaluatorHeartbeatProto.newBuilder() to construct.
6203    private EvaluatorHeartbeatProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
6204      super(builder);
6205      this.unknownFields = builder.getUnknownFields();
6206    }
6207    private EvaluatorHeartbeatProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
6208
6209    private static final EvaluatorHeartbeatProto defaultInstance;
6210    public static EvaluatorHeartbeatProto getDefaultInstance() {
6211      return defaultInstance;
6212    }
6213
6214    public EvaluatorHeartbeatProto getDefaultInstanceForType() {
6215      return defaultInstance;
6216    }
6217
6218    private final com.google.protobuf.UnknownFieldSet unknownFields;
6219    @java.lang.Override
6220    public final com.google.protobuf.UnknownFieldSet
6221        getUnknownFields() {
6222      return this.unknownFields;
6223    }
6224    private EvaluatorHeartbeatProto(
6225        com.google.protobuf.CodedInputStream input,
6226        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6227        throws com.google.protobuf.InvalidProtocolBufferException {
6228      initFields();
6229      int mutable_bitField0_ = 0;
6230      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
6231          com.google.protobuf.UnknownFieldSet.newBuilder();
6232      try {
6233        boolean done = false;
6234        while (!done) {
6235          int tag = input.readTag();
6236          switch (tag) {
6237            case 0:
6238              done = true;
6239              break;
6240            default: {
6241              if (!parseUnknownField(input, unknownFields,
6242                                     extensionRegistry, tag)) {
6243                done = true;
6244              }
6245              break;
6246            }
6247            case 8: {
6248              bitField0_ |= 0x00000001;
6249              timestamp_ = input.readInt64();
6250              break;
6251            }
6252            case 18: {
6253              org.apache.reef.proto.ReefServiceProtos.EvaluatorStatusProto.Builder subBuilder = null;
6254              if (((bitField0_ & 0x00000002) == 0x00000002)) {
6255                subBuilder = evaluatorStatus_.toBuilder();
6256              }
6257              evaluatorStatus_ = input.readMessage(org.apache.reef.proto.ReefServiceProtos.EvaluatorStatusProto.PARSER, extensionRegistry);
6258              if (subBuilder != null) {
6259                subBuilder.mergeFrom(evaluatorStatus_);
6260                evaluatorStatus_ = subBuilder.buildPartial();
6261              }
6262              bitField0_ |= 0x00000002;
6263              break;
6264            }
6265            case 26: {
6266              if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
6267                contextStatus_ = new java.util.ArrayList<org.apache.reef.proto.ReefServiceProtos.ContextStatusProto>();
6268                mutable_bitField0_ |= 0x00000004;
6269              }
6270              contextStatus_.add(input.readMessage(org.apache.reef.proto.ReefServiceProtos.ContextStatusProto.PARSER, extensionRegistry));
6271              break;
6272            }
6273            case 34: {
6274              org.apache.reef.proto.ReefServiceProtos.TaskStatusProto.Builder subBuilder = null;
6275              if (((bitField0_ & 0x00000004) == 0x00000004)) {
6276                subBuilder = taskStatus_.toBuilder();
6277              }
6278              taskStatus_ = input.readMessage(org.apache.reef.proto.ReefServiceProtos.TaskStatusProto.PARSER, extensionRegistry);
6279              if (subBuilder != null) {
6280                subBuilder.mergeFrom(taskStatus_);
6281                taskStatus_ = subBuilder.buildPartial();
6282              }
6283              bitField0_ |= 0x00000004;
6284              break;
6285            }
6286            case 40: {
6287              bitField0_ |= 0x00000008;
6288              recovery_ = input.readBool();
6289              break;
6290            }
6291          }
6292        }
6293      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
6294        throw e.setUnfinishedMessage(this);
6295      } catch (java.io.IOException e) {
6296        throw new com.google.protobuf.InvalidProtocolBufferException(
6297            e.getMessage()).setUnfinishedMessage(this);
6298      } finally {
6299        if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
6300          contextStatus_ = java.util.Collections.unmodifiableList(contextStatus_);
6301        }
6302        this.unknownFields = unknownFields.build();
6303        makeExtensionsImmutable();
6304      }
6305    }
6306    public static final com.google.protobuf.Descriptors.Descriptor
6307        getDescriptor() {
6308      return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_EvaluatorHeartbeatProto_descriptor;
6309    }
6310
6311    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
6312        internalGetFieldAccessorTable() {
6313      return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_EvaluatorHeartbeatProto_fieldAccessorTable
6314          .ensureFieldAccessorsInitialized(
6315              org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorHeartbeatProto.class, org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorHeartbeatProto.Builder.class);
6316    }
6317
6318    public static com.google.protobuf.Parser<EvaluatorHeartbeatProto> PARSER =
6319        new com.google.protobuf.AbstractParser<EvaluatorHeartbeatProto>() {
6320      public EvaluatorHeartbeatProto parsePartialFrom(
6321          com.google.protobuf.CodedInputStream input,
6322          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6323          throws com.google.protobuf.InvalidProtocolBufferException {
6324        return new EvaluatorHeartbeatProto(input, extensionRegistry);
6325      }
6326    };
6327
6328    @java.lang.Override
6329    public com.google.protobuf.Parser<EvaluatorHeartbeatProto> getParserForType() {
6330      return PARSER;
6331    }
6332
6333    private int bitField0_;
6334    // required int64 timestamp = 1;
6335    public static final int TIMESTAMP_FIELD_NUMBER = 1;
6336    private long timestamp_;
6337    /**
6338     * <code>required int64 timestamp = 1;</code>
6339     */
6340    public boolean hasTimestamp() {
6341      return ((bitField0_ & 0x00000001) == 0x00000001);
6342    }
6343    /**
6344     * <code>required int64 timestamp = 1;</code>
6345     */
6346    public long getTimestamp() {
6347      return timestamp_;
6348    }
6349
6350    // required .EvaluatorStatusProto evaluator_status = 2;
6351    public static final int EVALUATOR_STATUS_FIELD_NUMBER = 2;
6352    private org.apache.reef.proto.ReefServiceProtos.EvaluatorStatusProto evaluatorStatus_;
6353    /**
6354     * <code>required .EvaluatorStatusProto evaluator_status = 2;</code>
6355     */
6356    public boolean hasEvaluatorStatus() {
6357      return ((bitField0_ & 0x00000002) == 0x00000002);
6358    }
6359    /**
6360     * <code>required .EvaluatorStatusProto evaluator_status = 2;</code>
6361     */
6362    public org.apache.reef.proto.ReefServiceProtos.EvaluatorStatusProto getEvaluatorStatus() {
6363      return evaluatorStatus_;
6364    }
6365    /**
6366     * <code>required .EvaluatorStatusProto evaluator_status = 2;</code>
6367     */
6368    public org.apache.reef.proto.ReefServiceProtos.EvaluatorStatusProtoOrBuilder getEvaluatorStatusOrBuilder() {
6369      return evaluatorStatus_;
6370    }
6371
6372    // repeated .ContextStatusProto context_status = 3;
6373    public static final int CONTEXT_STATUS_FIELD_NUMBER = 3;
6374    private java.util.List<org.apache.reef.proto.ReefServiceProtos.ContextStatusProto> contextStatus_;
6375    /**
6376     * <code>repeated .ContextStatusProto context_status = 3;</code>
6377     */
6378    public java.util.List<org.apache.reef.proto.ReefServiceProtos.ContextStatusProto> getContextStatusList() {
6379      return contextStatus_;
6380    }
6381    /**
6382     * <code>repeated .ContextStatusProto context_status = 3;</code>
6383     */
6384    public java.util.List<? extends org.apache.reef.proto.ReefServiceProtos.ContextStatusProtoOrBuilder> 
6385        getContextStatusOrBuilderList() {
6386      return contextStatus_;
6387    }
6388    /**
6389     * <code>repeated .ContextStatusProto context_status = 3;</code>
6390     */
6391    public int getContextStatusCount() {
6392      return contextStatus_.size();
6393    }
6394    /**
6395     * <code>repeated .ContextStatusProto context_status = 3;</code>
6396     */
6397    public org.apache.reef.proto.ReefServiceProtos.ContextStatusProto getContextStatus(int index) {
6398      return contextStatus_.get(index);
6399    }
6400    /**
6401     * <code>repeated .ContextStatusProto context_status = 3;</code>
6402     */
6403    public org.apache.reef.proto.ReefServiceProtos.ContextStatusProtoOrBuilder getContextStatusOrBuilder(
6404        int index) {
6405      return contextStatus_.get(index);
6406    }
6407
6408    // optional .TaskStatusProto task_status = 4;
6409    public static final int TASK_STATUS_FIELD_NUMBER = 4;
6410    private org.apache.reef.proto.ReefServiceProtos.TaskStatusProto taskStatus_;
6411    /**
6412     * <code>optional .TaskStatusProto task_status = 4;</code>
6413     */
6414    public boolean hasTaskStatus() {
6415      return ((bitField0_ & 0x00000004) == 0x00000004);
6416    }
6417    /**
6418     * <code>optional .TaskStatusProto task_status = 4;</code>
6419     */
6420    public org.apache.reef.proto.ReefServiceProtos.TaskStatusProto getTaskStatus() {
6421      return taskStatus_;
6422    }
6423    /**
6424     * <code>optional .TaskStatusProto task_status = 4;</code>
6425     */
6426    public org.apache.reef.proto.ReefServiceProtos.TaskStatusProtoOrBuilder getTaskStatusOrBuilder() {
6427      return taskStatus_;
6428    }
6429
6430    // optional bool recovery = 5;
6431    public static final int RECOVERY_FIELD_NUMBER = 5;
6432    private boolean recovery_;
6433    /**
6434     * <code>optional bool recovery = 5;</code>
6435     */
6436    public boolean hasRecovery() {
6437      return ((bitField0_ & 0x00000008) == 0x00000008);
6438    }
6439    /**
6440     * <code>optional bool recovery = 5;</code>
6441     */
6442    public boolean getRecovery() {
6443      return recovery_;
6444    }
6445
6446    private void initFields() {
6447      timestamp_ = 0L;
6448      evaluatorStatus_ = org.apache.reef.proto.ReefServiceProtos.EvaluatorStatusProto.getDefaultInstance();
6449      contextStatus_ = java.util.Collections.emptyList();
6450      taskStatus_ = org.apache.reef.proto.ReefServiceProtos.TaskStatusProto.getDefaultInstance();
6451      recovery_ = false;
6452    }
6453    private byte memoizedIsInitialized = -1;
6454    public final boolean isInitialized() {
6455      byte isInitialized = memoizedIsInitialized;
6456      if (isInitialized != -1) return isInitialized == 1;
6457
6458      if (!hasTimestamp()) {
6459        memoizedIsInitialized = 0;
6460        return false;
6461      }
6462      if (!hasEvaluatorStatus()) {
6463        memoizedIsInitialized = 0;
6464        return false;
6465      }
6466      if (!getEvaluatorStatus().isInitialized()) {
6467        memoizedIsInitialized = 0;
6468        return false;
6469      }
6470      for (int i = 0; i < getContextStatusCount(); i++) {
6471        if (!getContextStatus(i).isInitialized()) {
6472          memoizedIsInitialized = 0;
6473          return false;
6474        }
6475      }
6476      if (hasTaskStatus()) {
6477        if (!getTaskStatus().isInitialized()) {
6478          memoizedIsInitialized = 0;
6479          return false;
6480        }
6481      }
6482      memoizedIsInitialized = 1;
6483      return true;
6484    }
6485
6486    public void writeTo(com.google.protobuf.CodedOutputStream output)
6487                        throws java.io.IOException {
6488      getSerializedSize();
6489      if (((bitField0_ & 0x00000001) == 0x00000001)) {
6490        output.writeInt64(1, timestamp_);
6491      }
6492      if (((bitField0_ & 0x00000002) == 0x00000002)) {
6493        output.writeMessage(2, evaluatorStatus_);
6494      }
6495      for (int i = 0; i < contextStatus_.size(); i++) {
6496        output.writeMessage(3, contextStatus_.get(i));
6497      }
6498      if (((bitField0_ & 0x00000004) == 0x00000004)) {
6499        output.writeMessage(4, taskStatus_);
6500      }
6501      if (((bitField0_ & 0x00000008) == 0x00000008)) {
6502        output.writeBool(5, recovery_);
6503      }
6504      getUnknownFields().writeTo(output);
6505    }
6506
6507    private int memoizedSerializedSize = -1;
6508    public int getSerializedSize() {
6509      int size = memoizedSerializedSize;
6510      if (size != -1) return size;
6511
6512      size = 0;
6513      if (((bitField0_ & 0x00000001) == 0x00000001)) {
6514        size += com.google.protobuf.CodedOutputStream
6515          .computeInt64Size(1, timestamp_);
6516      }
6517      if (((bitField0_ & 0x00000002) == 0x00000002)) {
6518        size += com.google.protobuf.CodedOutputStream
6519          .computeMessageSize(2, evaluatorStatus_);
6520      }
6521      for (int i = 0; i < contextStatus_.size(); i++) {
6522        size += com.google.protobuf.CodedOutputStream
6523          .computeMessageSize(3, contextStatus_.get(i));
6524      }
6525      if (((bitField0_ & 0x00000004) == 0x00000004)) {
6526        size += com.google.protobuf.CodedOutputStream
6527          .computeMessageSize(4, taskStatus_);
6528      }
6529      if (((bitField0_ & 0x00000008) == 0x00000008)) {
6530        size += com.google.protobuf.CodedOutputStream
6531          .computeBoolSize(5, recovery_);
6532      }
6533      size += getUnknownFields().getSerializedSize();
6534      memoizedSerializedSize = size;
6535      return size;
6536    }
6537
6538    private static final long serialVersionUID = 0L;
6539    @java.lang.Override
6540    protected java.lang.Object writeReplace()
6541        throws java.io.ObjectStreamException {
6542      return super.writeReplace();
6543    }
6544
6545    @java.lang.Override
6546    public boolean equals(final java.lang.Object obj) {
6547      if (obj == this) {
6548       return true;
6549      }
6550      if (!(obj instanceof org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorHeartbeatProto)) {
6551        return super.equals(obj);
6552      }
6553      org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorHeartbeatProto other = (org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorHeartbeatProto) obj;
6554
6555      boolean result = true;
6556      result = result && (hasTimestamp() == other.hasTimestamp());
6557      if (hasTimestamp()) {
6558        result = result && (getTimestamp()
6559            == other.getTimestamp());
6560      }
6561      result = result && (hasEvaluatorStatus() == other.hasEvaluatorStatus());
6562      if (hasEvaluatorStatus()) {
6563        result = result && getEvaluatorStatus()
6564            .equals(other.getEvaluatorStatus());
6565      }
6566      result = result && getContextStatusList()
6567          .equals(other.getContextStatusList());
6568      result = result && (hasTaskStatus() == other.hasTaskStatus());
6569      if (hasTaskStatus()) {
6570        result = result && getTaskStatus()
6571            .equals(other.getTaskStatus());
6572      }
6573      result = result && (hasRecovery() == other.hasRecovery());
6574      if (hasRecovery()) {
6575        result = result && (getRecovery()
6576            == other.getRecovery());
6577      }
6578      result = result &&
6579          getUnknownFields().equals(other.getUnknownFields());
6580      return result;
6581    }
6582
6583    private int memoizedHashCode = 0;
6584    @java.lang.Override
6585    public int hashCode() {
6586      if (memoizedHashCode != 0) {
6587        return memoizedHashCode;
6588      }
6589      int hash = 41;
6590      hash = (19 * hash) + getDescriptorForType().hashCode();
6591      if (hasTimestamp()) {
6592        hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
6593        hash = (53 * hash) + hashLong(getTimestamp());
6594      }
6595      if (hasEvaluatorStatus()) {
6596        hash = (37 * hash) + EVALUATOR_STATUS_FIELD_NUMBER;
6597        hash = (53 * hash) + getEvaluatorStatus().hashCode();
6598      }
6599      if (getContextStatusCount() > 0) {
6600        hash = (37 * hash) + CONTEXT_STATUS_FIELD_NUMBER;
6601        hash = (53 * hash) + getContextStatusList().hashCode();
6602      }
6603      if (hasTaskStatus()) {
6604        hash = (37 * hash) + TASK_STATUS_FIELD_NUMBER;
6605        hash = (53 * hash) + getTaskStatus().hashCode();
6606      }
6607      if (hasRecovery()) {
6608        hash = (37 * hash) + RECOVERY_FIELD_NUMBER;
6609        hash = (53 * hash) + hashBoolean(getRecovery());
6610      }
6611      hash = (29 * hash) + getUnknownFields().hashCode();
6612      memoizedHashCode = hash;
6613      return hash;
6614    }
6615
6616    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorHeartbeatProto parseFrom(
6617        com.google.protobuf.ByteString data)
6618        throws com.google.protobuf.InvalidProtocolBufferException {
6619      return PARSER.parseFrom(data);
6620    }
6621    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorHeartbeatProto parseFrom(
6622        com.google.protobuf.ByteString data,
6623        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6624        throws com.google.protobuf.InvalidProtocolBufferException {
6625      return PARSER.parseFrom(data, extensionRegistry);
6626    }
6627    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorHeartbeatProto parseFrom(byte[] data)
6628        throws com.google.protobuf.InvalidProtocolBufferException {
6629      return PARSER.parseFrom(data);
6630    }
6631    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorHeartbeatProto parseFrom(
6632        byte[] data,
6633        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6634        throws com.google.protobuf.InvalidProtocolBufferException {
6635      return PARSER.parseFrom(data, extensionRegistry);
6636    }
6637    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorHeartbeatProto parseFrom(java.io.InputStream input)
6638        throws java.io.IOException {
6639      return PARSER.parseFrom(input);
6640    }
6641    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorHeartbeatProto parseFrom(
6642        java.io.InputStream input,
6643        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6644        throws java.io.IOException {
6645      return PARSER.parseFrom(input, extensionRegistry);
6646    }
6647    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorHeartbeatProto parseDelimitedFrom(java.io.InputStream input)
6648        throws java.io.IOException {
6649      return PARSER.parseDelimitedFrom(input);
6650    }
6651    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorHeartbeatProto parseDelimitedFrom(
6652        java.io.InputStream input,
6653        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6654        throws java.io.IOException {
6655      return PARSER.parseDelimitedFrom(input, extensionRegistry);
6656    }
6657    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorHeartbeatProto parseFrom(
6658        com.google.protobuf.CodedInputStream input)
6659        throws java.io.IOException {
6660      return PARSER.parseFrom(input);
6661    }
6662    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorHeartbeatProto parseFrom(
6663        com.google.protobuf.CodedInputStream input,
6664        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6665        throws java.io.IOException {
6666      return PARSER.parseFrom(input, extensionRegistry);
6667    }
6668
6669    public static Builder newBuilder() { return Builder.create(); }
6670    public Builder newBuilderForType() { return newBuilder(); }
6671    public static Builder newBuilder(org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorHeartbeatProto prototype) {
6672      return newBuilder().mergeFrom(prototype);
6673    }
6674    public Builder toBuilder() { return newBuilder(this); }
6675
6676    @java.lang.Override
6677    protected Builder newBuilderForType(
6678        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
6679      Builder builder = new Builder(parent);
6680      return builder;
6681    }
6682    /**
6683     * Protobuf type {@code EvaluatorHeartbeatProto}
6684     */
6685    public static final class Builder extends
6686        com.google.protobuf.GeneratedMessage.Builder<Builder>
6687       implements org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorHeartbeatProtoOrBuilder {
6688      public static final com.google.protobuf.Descriptors.Descriptor
6689          getDescriptor() {
6690        return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_EvaluatorHeartbeatProto_descriptor;
6691      }
6692
6693      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
6694          internalGetFieldAccessorTable() {
6695        return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_EvaluatorHeartbeatProto_fieldAccessorTable
6696            .ensureFieldAccessorsInitialized(
6697                org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorHeartbeatProto.class, org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorHeartbeatProto.Builder.class);
6698      }
6699
6700      // Construct using org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorHeartbeatProto.newBuilder()
6701      private Builder() {
6702        maybeForceBuilderInitialization();
6703      }
6704
6705      private Builder(
6706          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
6707        super(parent);
6708        maybeForceBuilderInitialization();
6709      }
6710      private void maybeForceBuilderInitialization() {
6711        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
6712          getEvaluatorStatusFieldBuilder();
6713          getContextStatusFieldBuilder();
6714          getTaskStatusFieldBuilder();
6715        }
6716      }
6717      private static Builder create() {
6718        return new Builder();
6719      }
6720
6721      public Builder clear() {
6722        super.clear();
6723        timestamp_ = 0L;
6724        bitField0_ = (bitField0_ & ~0x00000001);
6725        if (evaluatorStatusBuilder_ == null) {
6726          evaluatorStatus_ = org.apache.reef.proto.ReefServiceProtos.EvaluatorStatusProto.getDefaultInstance();
6727        } else {
6728          evaluatorStatusBuilder_.clear();
6729        }
6730        bitField0_ = (bitField0_ & ~0x00000002);
6731        if (contextStatusBuilder_ == null) {
6732          contextStatus_ = java.util.Collections.emptyList();
6733          bitField0_ = (bitField0_ & ~0x00000004);
6734        } else {
6735          contextStatusBuilder_.clear();
6736        }
6737        if (taskStatusBuilder_ == null) {
6738          taskStatus_ = org.apache.reef.proto.ReefServiceProtos.TaskStatusProto.getDefaultInstance();
6739        } else {
6740          taskStatusBuilder_.clear();
6741        }
6742        bitField0_ = (bitField0_ & ~0x00000008);
6743        recovery_ = false;
6744        bitField0_ = (bitField0_ & ~0x00000010);
6745        return this;
6746      }
6747
6748      public Builder clone() {
6749        return create().mergeFrom(buildPartial());
6750      }
6751
6752      public com.google.protobuf.Descriptors.Descriptor
6753          getDescriptorForType() {
6754        return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_EvaluatorHeartbeatProto_descriptor;
6755      }
6756
6757      public org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorHeartbeatProto getDefaultInstanceForType() {
6758        return org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorHeartbeatProto.getDefaultInstance();
6759      }
6760
6761      public org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorHeartbeatProto build() {
6762        org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorHeartbeatProto result = buildPartial();
6763        if (!result.isInitialized()) {
6764          throw newUninitializedMessageException(result);
6765        }
6766        return result;
6767      }
6768
6769      public org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorHeartbeatProto buildPartial() {
6770        org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorHeartbeatProto result = new org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorHeartbeatProto(this);
6771        int from_bitField0_ = bitField0_;
6772        int to_bitField0_ = 0;
6773        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
6774          to_bitField0_ |= 0x00000001;
6775        }
6776        result.timestamp_ = timestamp_;
6777        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
6778          to_bitField0_ |= 0x00000002;
6779        }
6780        if (evaluatorStatusBuilder_ == null) {
6781          result.evaluatorStatus_ = evaluatorStatus_;
6782        } else {
6783          result.evaluatorStatus_ = evaluatorStatusBuilder_.build();
6784        }
6785        if (contextStatusBuilder_ == null) {
6786          if (((bitField0_ & 0x00000004) == 0x00000004)) {
6787            contextStatus_ = java.util.Collections.unmodifiableList(contextStatus_);
6788            bitField0_ = (bitField0_ & ~0x00000004);
6789          }
6790          result.contextStatus_ = contextStatus_;
6791        } else {
6792          result.contextStatus_ = contextStatusBuilder_.build();
6793        }
6794        if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
6795          to_bitField0_ |= 0x00000004;
6796        }
6797        if (taskStatusBuilder_ == null) {
6798          result.taskStatus_ = taskStatus_;
6799        } else {
6800          result.taskStatus_ = taskStatusBuilder_.build();
6801        }
6802        if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
6803          to_bitField0_ |= 0x00000008;
6804        }
6805        result.recovery_ = recovery_;
6806        result.bitField0_ = to_bitField0_;
6807        onBuilt();
6808        return result;
6809      }
6810
6811      public Builder mergeFrom(com.google.protobuf.Message other) {
6812        if (other instanceof org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorHeartbeatProto) {
6813          return mergeFrom((org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorHeartbeatProto)other);
6814        } else {
6815          super.mergeFrom(other);
6816          return this;
6817        }
6818      }
6819
6820      public Builder mergeFrom(org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorHeartbeatProto other) {
6821        if (other == org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorHeartbeatProto.getDefaultInstance()) return this;
6822        if (other.hasTimestamp()) {
6823          setTimestamp(other.getTimestamp());
6824        }
6825        if (other.hasEvaluatorStatus()) {
6826          mergeEvaluatorStatus(other.getEvaluatorStatus());
6827        }
6828        if (contextStatusBuilder_ == null) {
6829          if (!other.contextStatus_.isEmpty()) {
6830            if (contextStatus_.isEmpty()) {
6831              contextStatus_ = other.contextStatus_;
6832              bitField0_ = (bitField0_ & ~0x00000004);
6833            } else {
6834              ensureContextStatusIsMutable();
6835              contextStatus_.addAll(other.contextStatus_);
6836            }
6837            onChanged();
6838          }
6839        } else {
6840          if (!other.contextStatus_.isEmpty()) {
6841            if (contextStatusBuilder_.isEmpty()) {
6842              contextStatusBuilder_.dispose();
6843              contextStatusBuilder_ = null;
6844              contextStatus_ = other.contextStatus_;
6845              bitField0_ = (bitField0_ & ~0x00000004);
6846              contextStatusBuilder_ = 
6847                com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
6848                   getContextStatusFieldBuilder() : null;
6849            } else {
6850              contextStatusBuilder_.addAllMessages(other.contextStatus_);
6851            }
6852          }
6853        }
6854        if (other.hasTaskStatus()) {
6855          mergeTaskStatus(other.getTaskStatus());
6856        }
6857        if (other.hasRecovery()) {
6858          setRecovery(other.getRecovery());
6859        }
6860        this.mergeUnknownFields(other.getUnknownFields());
6861        return this;
6862      }
6863
6864      public final boolean isInitialized() {
6865        if (!hasTimestamp()) {
6866          
6867          return false;
6868        }
6869        if (!hasEvaluatorStatus()) {
6870          
6871          return false;
6872        }
6873        if (!getEvaluatorStatus().isInitialized()) {
6874          
6875          return false;
6876        }
6877        for (int i = 0; i < getContextStatusCount(); i++) {
6878          if (!getContextStatus(i).isInitialized()) {
6879            
6880            return false;
6881          }
6882        }
6883        if (hasTaskStatus()) {
6884          if (!getTaskStatus().isInitialized()) {
6885            
6886            return false;
6887          }
6888        }
6889        return true;
6890      }
6891
6892      public Builder mergeFrom(
6893          com.google.protobuf.CodedInputStream input,
6894          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6895          throws java.io.IOException {
6896        org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorHeartbeatProto parsedMessage = null;
6897        try {
6898          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
6899        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
6900          parsedMessage = (org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorHeartbeatProto) e.getUnfinishedMessage();
6901          throw e;
6902        } finally {
6903          if (parsedMessage != null) {
6904            mergeFrom(parsedMessage);
6905          }
6906        }
6907        return this;
6908      }
6909      private int bitField0_;
6910
6911      // required int64 timestamp = 1;
6912      private long timestamp_ ;
6913      /**
6914       * <code>required int64 timestamp = 1;</code>
6915       */
6916      public boolean hasTimestamp() {
6917        return ((bitField0_ & 0x00000001) == 0x00000001);
6918      }
6919      /**
6920       * <code>required int64 timestamp = 1;</code>
6921       */
6922      public long getTimestamp() {
6923        return timestamp_;
6924      }
6925      /**
6926       * <code>required int64 timestamp = 1;</code>
6927       */
6928      public Builder setTimestamp(long value) {
6929        bitField0_ |= 0x00000001;
6930        timestamp_ = value;
6931        onChanged();
6932        return this;
6933      }
6934      /**
6935       * <code>required int64 timestamp = 1;</code>
6936       */
6937      public Builder clearTimestamp() {
6938        bitField0_ = (bitField0_ & ~0x00000001);
6939        timestamp_ = 0L;
6940        onChanged();
6941        return this;
6942      }
6943
6944      // required .EvaluatorStatusProto evaluator_status = 2;
6945      private org.apache.reef.proto.ReefServiceProtos.EvaluatorStatusProto evaluatorStatus_ = org.apache.reef.proto.ReefServiceProtos.EvaluatorStatusProto.getDefaultInstance();
6946      private com.google.protobuf.SingleFieldBuilder<
6947          org.apache.reef.proto.ReefServiceProtos.EvaluatorStatusProto, org.apache.reef.proto.ReefServiceProtos.EvaluatorStatusProto.Builder, org.apache.reef.proto.ReefServiceProtos.EvaluatorStatusProtoOrBuilder> evaluatorStatusBuilder_;
6948      /**
6949       * <code>required .EvaluatorStatusProto evaluator_status = 2;</code>
6950       */
6951      public boolean hasEvaluatorStatus() {
6952        return ((bitField0_ & 0x00000002) == 0x00000002);
6953      }
6954      /**
6955       * <code>required .EvaluatorStatusProto evaluator_status = 2;</code>
6956       */
6957      public org.apache.reef.proto.ReefServiceProtos.EvaluatorStatusProto getEvaluatorStatus() {
6958        if (evaluatorStatusBuilder_ == null) {
6959          return evaluatorStatus_;
6960        } else {
6961          return evaluatorStatusBuilder_.getMessage();
6962        }
6963      }
6964      /**
6965       * <code>required .EvaluatorStatusProto evaluator_status = 2;</code>
6966       */
6967      public Builder setEvaluatorStatus(org.apache.reef.proto.ReefServiceProtos.EvaluatorStatusProto value) {
6968        if (evaluatorStatusBuilder_ == null) {
6969          if (value == null) {
6970            throw new NullPointerException();
6971          }
6972          evaluatorStatus_ = value;
6973          onChanged();
6974        } else {
6975          evaluatorStatusBuilder_.setMessage(value);
6976        }
6977        bitField0_ |= 0x00000002;
6978        return this;
6979      }
6980      /**
6981       * <code>required .EvaluatorStatusProto evaluator_status = 2;</code>
6982       */
6983      public Builder setEvaluatorStatus(
6984          org.apache.reef.proto.ReefServiceProtos.EvaluatorStatusProto.Builder builderForValue) {
6985        if (evaluatorStatusBuilder_ == null) {
6986          evaluatorStatus_ = builderForValue.build();
6987          onChanged();
6988        } else {
6989          evaluatorStatusBuilder_.setMessage(builderForValue.build());
6990        }
6991        bitField0_ |= 0x00000002;
6992        return this;
6993      }
6994      /**
6995       * <code>required .EvaluatorStatusProto evaluator_status = 2;</code>
6996       */
6997      public Builder mergeEvaluatorStatus(org.apache.reef.proto.ReefServiceProtos.EvaluatorStatusProto value) {
6998        if (evaluatorStatusBuilder_ == null) {
6999          if (((bitField0_ & 0x00000002) == 0x00000002) &&
7000              evaluatorStatus_ != org.apache.reef.proto.ReefServiceProtos.EvaluatorStatusProto.getDefaultInstance()) {
7001            evaluatorStatus_ =
7002              org.apache.reef.proto.ReefServiceProtos.EvaluatorStatusProto.newBuilder(evaluatorStatus_).mergeFrom(value).buildPartial();
7003          } else {
7004            evaluatorStatus_ = value;
7005          }
7006          onChanged();
7007        } else {
7008          evaluatorStatusBuilder_.mergeFrom(value);
7009        }
7010        bitField0_ |= 0x00000002;
7011        return this;
7012      }
7013      /**
7014       * <code>required .EvaluatorStatusProto evaluator_status = 2;</code>
7015       */
7016      public Builder clearEvaluatorStatus() {
7017        if (evaluatorStatusBuilder_ == null) {
7018          evaluatorStatus_ = org.apache.reef.proto.ReefServiceProtos.EvaluatorStatusProto.getDefaultInstance();
7019          onChanged();
7020        } else {
7021          evaluatorStatusBuilder_.clear();
7022        }
7023        bitField0_ = (bitField0_ & ~0x00000002);
7024        return this;
7025      }
7026      /**
7027       * <code>required .EvaluatorStatusProto evaluator_status = 2;</code>
7028       */
7029      public org.apache.reef.proto.ReefServiceProtos.EvaluatorStatusProto.Builder getEvaluatorStatusBuilder() {
7030        bitField0_ |= 0x00000002;
7031        onChanged();
7032        return getEvaluatorStatusFieldBuilder().getBuilder();
7033      }
7034      /**
7035       * <code>required .EvaluatorStatusProto evaluator_status = 2;</code>
7036       */
7037      public org.apache.reef.proto.ReefServiceProtos.EvaluatorStatusProtoOrBuilder getEvaluatorStatusOrBuilder() {
7038        if (evaluatorStatusBuilder_ != null) {
7039          return evaluatorStatusBuilder_.getMessageOrBuilder();
7040        } else {
7041          return evaluatorStatus_;
7042        }
7043      }
7044      /**
7045       * <code>required .EvaluatorStatusProto evaluator_status = 2;</code>
7046       */
7047      private com.google.protobuf.SingleFieldBuilder<
7048          org.apache.reef.proto.ReefServiceProtos.EvaluatorStatusProto, org.apache.reef.proto.ReefServiceProtos.EvaluatorStatusProto.Builder, org.apache.reef.proto.ReefServiceProtos.EvaluatorStatusProtoOrBuilder> 
7049          getEvaluatorStatusFieldBuilder() {
7050        if (evaluatorStatusBuilder_ == null) {
7051          evaluatorStatusBuilder_ = new com.google.protobuf.SingleFieldBuilder<
7052              org.apache.reef.proto.ReefServiceProtos.EvaluatorStatusProto, org.apache.reef.proto.ReefServiceProtos.EvaluatorStatusProto.Builder, org.apache.reef.proto.ReefServiceProtos.EvaluatorStatusProtoOrBuilder>(
7053                  evaluatorStatus_,
7054                  getParentForChildren(),
7055                  isClean());
7056          evaluatorStatus_ = null;
7057        }
7058        return evaluatorStatusBuilder_;
7059      }
7060
7061      // repeated .ContextStatusProto context_status = 3;
7062      private java.util.List<org.apache.reef.proto.ReefServiceProtos.ContextStatusProto> contextStatus_ =
7063        java.util.Collections.emptyList();
7064      private void ensureContextStatusIsMutable() {
7065        if (!((bitField0_ & 0x00000004) == 0x00000004)) {
7066          contextStatus_ = new java.util.ArrayList<org.apache.reef.proto.ReefServiceProtos.ContextStatusProto>(contextStatus_);
7067          bitField0_ |= 0x00000004;
7068         }
7069      }
7070
7071      private com.google.protobuf.RepeatedFieldBuilder<
7072          org.apache.reef.proto.ReefServiceProtos.ContextStatusProto, org.apache.reef.proto.ReefServiceProtos.ContextStatusProto.Builder, org.apache.reef.proto.ReefServiceProtos.ContextStatusProtoOrBuilder> contextStatusBuilder_;
7073
7074      /**
7075       * <code>repeated .ContextStatusProto context_status = 3;</code>
7076       */
7077      public java.util.List<org.apache.reef.proto.ReefServiceProtos.ContextStatusProto> getContextStatusList() {
7078        if (contextStatusBuilder_ == null) {
7079          return java.util.Collections.unmodifiableList(contextStatus_);
7080        } else {
7081          return contextStatusBuilder_.getMessageList();
7082        }
7083      }
7084      /**
7085       * <code>repeated .ContextStatusProto context_status = 3;</code>
7086       */
7087      public int getContextStatusCount() {
7088        if (contextStatusBuilder_ == null) {
7089          return contextStatus_.size();
7090        } else {
7091          return contextStatusBuilder_.getCount();
7092        }
7093      }
7094      /**
7095       * <code>repeated .ContextStatusProto context_status = 3;</code>
7096       */
7097      public org.apache.reef.proto.ReefServiceProtos.ContextStatusProto getContextStatus(int index) {
7098        if (contextStatusBuilder_ == null) {
7099          return contextStatus_.get(index);
7100        } else {
7101          return contextStatusBuilder_.getMessage(index);
7102        }
7103      }
7104      /**
7105       * <code>repeated .ContextStatusProto context_status = 3;</code>
7106       */
7107      public Builder setContextStatus(
7108          int index, org.apache.reef.proto.ReefServiceProtos.ContextStatusProto value) {
7109        if (contextStatusBuilder_ == null) {
7110          if (value == null) {
7111            throw new NullPointerException();
7112          }
7113          ensureContextStatusIsMutable();
7114          contextStatus_.set(index, value);
7115          onChanged();
7116        } else {
7117          contextStatusBuilder_.setMessage(index, value);
7118        }
7119        return this;
7120      }
7121      /**
7122       * <code>repeated .ContextStatusProto context_status = 3;</code>
7123       */
7124      public Builder setContextStatus(
7125          int index, org.apache.reef.proto.ReefServiceProtos.ContextStatusProto.Builder builderForValue) {
7126        if (contextStatusBuilder_ == null) {
7127          ensureContextStatusIsMutable();
7128          contextStatus_.set(index, builderForValue.build());
7129          onChanged();
7130        } else {
7131          contextStatusBuilder_.setMessage(index, builderForValue.build());
7132        }
7133        return this;
7134      }
7135      /**
7136       * <code>repeated .ContextStatusProto context_status = 3;</code>
7137       */
7138      public Builder addContextStatus(org.apache.reef.proto.ReefServiceProtos.ContextStatusProto value) {
7139        if (contextStatusBuilder_ == null) {
7140          if (value == null) {
7141            throw new NullPointerException();
7142          }
7143          ensureContextStatusIsMutable();
7144          contextStatus_.add(value);
7145          onChanged();
7146        } else {
7147          contextStatusBuilder_.addMessage(value);
7148        }
7149        return this;
7150      }
7151      /**
7152       * <code>repeated .ContextStatusProto context_status = 3;</code>
7153       */
7154      public Builder addContextStatus(
7155          int index, org.apache.reef.proto.ReefServiceProtos.ContextStatusProto value) {
7156        if (contextStatusBuilder_ == null) {
7157          if (value == null) {
7158            throw new NullPointerException();
7159          }
7160          ensureContextStatusIsMutable();
7161          contextStatus_.add(index, value);
7162          onChanged();
7163        } else {
7164          contextStatusBuilder_.addMessage(index, value);
7165        }
7166        return this;
7167      }
7168      /**
7169       * <code>repeated .ContextStatusProto context_status = 3;</code>
7170       */
7171      public Builder addContextStatus(
7172          org.apache.reef.proto.ReefServiceProtos.ContextStatusProto.Builder builderForValue) {
7173        if (contextStatusBuilder_ == null) {
7174          ensureContextStatusIsMutable();
7175          contextStatus_.add(builderForValue.build());
7176          onChanged();
7177        } else {
7178          contextStatusBuilder_.addMessage(builderForValue.build());
7179        }
7180        return this;
7181      }
7182      /**
7183       * <code>repeated .ContextStatusProto context_status = 3;</code>
7184       */
7185      public Builder addContextStatus(
7186          int index, org.apache.reef.proto.ReefServiceProtos.ContextStatusProto.Builder builderForValue) {
7187        if (contextStatusBuilder_ == null) {
7188          ensureContextStatusIsMutable();
7189          contextStatus_.add(index, builderForValue.build());
7190          onChanged();
7191        } else {
7192          contextStatusBuilder_.addMessage(index, builderForValue.build());
7193        }
7194        return this;
7195      }
7196      /**
7197       * <code>repeated .ContextStatusProto context_status = 3;</code>
7198       */
7199      public Builder addAllContextStatus(
7200          java.lang.Iterable<? extends org.apache.reef.proto.ReefServiceProtos.ContextStatusProto> values) {
7201        if (contextStatusBuilder_ == null) {
7202          ensureContextStatusIsMutable();
7203          super.addAll(values, contextStatus_);
7204          onChanged();
7205        } else {
7206          contextStatusBuilder_.addAllMessages(values);
7207        }
7208        return this;
7209      }
7210      /**
7211       * <code>repeated .ContextStatusProto context_status = 3;</code>
7212       */
7213      public Builder clearContextStatus() {
7214        if (contextStatusBuilder_ == null) {
7215          contextStatus_ = java.util.Collections.emptyList();
7216          bitField0_ = (bitField0_ & ~0x00000004);
7217          onChanged();
7218        } else {
7219          contextStatusBuilder_.clear();
7220        }
7221        return this;
7222      }
7223      /**
7224       * <code>repeated .ContextStatusProto context_status = 3;</code>
7225       */
7226      public Builder removeContextStatus(int index) {
7227        if (contextStatusBuilder_ == null) {
7228          ensureContextStatusIsMutable();
7229          contextStatus_.remove(index);
7230          onChanged();
7231        } else {
7232          contextStatusBuilder_.remove(index);
7233        }
7234        return this;
7235      }
7236      /**
7237       * <code>repeated .ContextStatusProto context_status = 3;</code>
7238       */
7239      public org.apache.reef.proto.ReefServiceProtos.ContextStatusProto.Builder getContextStatusBuilder(
7240          int index) {
7241        return getContextStatusFieldBuilder().getBuilder(index);
7242      }
7243      /**
7244       * <code>repeated .ContextStatusProto context_status = 3;</code>
7245       */
7246      public org.apache.reef.proto.ReefServiceProtos.ContextStatusProtoOrBuilder getContextStatusOrBuilder(
7247          int index) {
7248        if (contextStatusBuilder_ == null) {
7249          return contextStatus_.get(index);  } else {
7250          return contextStatusBuilder_.getMessageOrBuilder(index);
7251        }
7252      }
7253      /**
7254       * <code>repeated .ContextStatusProto context_status = 3;</code>
7255       */
7256      public java.util.List<? extends org.apache.reef.proto.ReefServiceProtos.ContextStatusProtoOrBuilder> 
7257           getContextStatusOrBuilderList() {
7258        if (contextStatusBuilder_ != null) {
7259          return contextStatusBuilder_.getMessageOrBuilderList();
7260        } else {
7261          return java.util.Collections.unmodifiableList(contextStatus_);
7262        }
7263      }
7264      /**
7265       * <code>repeated .ContextStatusProto context_status = 3;</code>
7266       */
7267      public org.apache.reef.proto.ReefServiceProtos.ContextStatusProto.Builder addContextStatusBuilder() {
7268        return getContextStatusFieldBuilder().addBuilder(
7269            org.apache.reef.proto.ReefServiceProtos.ContextStatusProto.getDefaultInstance());
7270      }
7271      /**
7272       * <code>repeated .ContextStatusProto context_status = 3;</code>
7273       */
7274      public org.apache.reef.proto.ReefServiceProtos.ContextStatusProto.Builder addContextStatusBuilder(
7275          int index) {
7276        return getContextStatusFieldBuilder().addBuilder(
7277            index, org.apache.reef.proto.ReefServiceProtos.ContextStatusProto.getDefaultInstance());
7278      }
7279      /**
7280       * <code>repeated .ContextStatusProto context_status = 3;</code>
7281       */
7282      public java.util.List<org.apache.reef.proto.ReefServiceProtos.ContextStatusProto.Builder> 
7283           getContextStatusBuilderList() {
7284        return getContextStatusFieldBuilder().getBuilderList();
7285      }
7286      private com.google.protobuf.RepeatedFieldBuilder<
7287          org.apache.reef.proto.ReefServiceProtos.ContextStatusProto, org.apache.reef.proto.ReefServiceProtos.ContextStatusProto.Builder, org.apache.reef.proto.ReefServiceProtos.ContextStatusProtoOrBuilder> 
7288          getContextStatusFieldBuilder() {
7289        if (contextStatusBuilder_ == null) {
7290          contextStatusBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
7291              org.apache.reef.proto.ReefServiceProtos.ContextStatusProto, org.apache.reef.proto.ReefServiceProtos.ContextStatusProto.Builder, org.apache.reef.proto.ReefServiceProtos.ContextStatusProtoOrBuilder>(
7292                  contextStatus_,
7293                  ((bitField0_ & 0x00000004) == 0x00000004),
7294                  getParentForChildren(),
7295                  isClean());
7296          contextStatus_ = null;
7297        }
7298        return contextStatusBuilder_;
7299      }
7300
7301      // optional .TaskStatusProto task_status = 4;
7302      private org.apache.reef.proto.ReefServiceProtos.TaskStatusProto taskStatus_ = org.apache.reef.proto.ReefServiceProtos.TaskStatusProto.getDefaultInstance();
7303      private com.google.protobuf.SingleFieldBuilder<
7304          org.apache.reef.proto.ReefServiceProtos.TaskStatusProto, org.apache.reef.proto.ReefServiceProtos.TaskStatusProto.Builder, org.apache.reef.proto.ReefServiceProtos.TaskStatusProtoOrBuilder> taskStatusBuilder_;
7305      /**
7306       * <code>optional .TaskStatusProto task_status = 4;</code>
7307       */
7308      public boolean hasTaskStatus() {
7309        return ((bitField0_ & 0x00000008) == 0x00000008);
7310      }
7311      /**
7312       * <code>optional .TaskStatusProto task_status = 4;</code>
7313       */
7314      public org.apache.reef.proto.ReefServiceProtos.TaskStatusProto getTaskStatus() {
7315        if (taskStatusBuilder_ == null) {
7316          return taskStatus_;
7317        } else {
7318          return taskStatusBuilder_.getMessage();
7319        }
7320      }
7321      /**
7322       * <code>optional .TaskStatusProto task_status = 4;</code>
7323       */
7324      public Builder setTaskStatus(org.apache.reef.proto.ReefServiceProtos.TaskStatusProto value) {
7325        if (taskStatusBuilder_ == null) {
7326          if (value == null) {
7327            throw new NullPointerException();
7328          }
7329          taskStatus_ = value;
7330          onChanged();
7331        } else {
7332          taskStatusBuilder_.setMessage(value);
7333        }
7334        bitField0_ |= 0x00000008;
7335        return this;
7336      }
7337      /**
7338       * <code>optional .TaskStatusProto task_status = 4;</code>
7339       */
7340      public Builder setTaskStatus(
7341          org.apache.reef.proto.ReefServiceProtos.TaskStatusProto.Builder builderForValue) {
7342        if (taskStatusBuilder_ == null) {
7343          taskStatus_ = builderForValue.build();
7344          onChanged();
7345        } else {
7346          taskStatusBuilder_.setMessage(builderForValue.build());
7347        }
7348        bitField0_ |= 0x00000008;
7349        return this;
7350      }
7351      /**
7352       * <code>optional .TaskStatusProto task_status = 4;</code>
7353       */
7354      public Builder mergeTaskStatus(org.apache.reef.proto.ReefServiceProtos.TaskStatusProto value) {
7355        if (taskStatusBuilder_ == null) {
7356          if (((bitField0_ & 0x00000008) == 0x00000008) &&
7357              taskStatus_ != org.apache.reef.proto.ReefServiceProtos.TaskStatusProto.getDefaultInstance()) {
7358            taskStatus_ =
7359              org.apache.reef.proto.ReefServiceProtos.TaskStatusProto.newBuilder(taskStatus_).mergeFrom(value).buildPartial();
7360          } else {
7361            taskStatus_ = value;
7362          }
7363          onChanged();
7364        } else {
7365          taskStatusBuilder_.mergeFrom(value);
7366        }
7367        bitField0_ |= 0x00000008;
7368        return this;
7369      }
7370      /**
7371       * <code>optional .TaskStatusProto task_status = 4;</code>
7372       */
7373      public Builder clearTaskStatus() {
7374        if (taskStatusBuilder_ == null) {
7375          taskStatus_ = org.apache.reef.proto.ReefServiceProtos.TaskStatusProto.getDefaultInstance();
7376          onChanged();
7377        } else {
7378          taskStatusBuilder_.clear();
7379        }
7380        bitField0_ = (bitField0_ & ~0x00000008);
7381        return this;
7382      }
7383      /**
7384       * <code>optional .TaskStatusProto task_status = 4;</code>
7385       */
7386      public org.apache.reef.proto.ReefServiceProtos.TaskStatusProto.Builder getTaskStatusBuilder() {
7387        bitField0_ |= 0x00000008;
7388        onChanged();
7389        return getTaskStatusFieldBuilder().getBuilder();
7390      }
7391      /**
7392       * <code>optional .TaskStatusProto task_status = 4;</code>
7393       */
7394      public org.apache.reef.proto.ReefServiceProtos.TaskStatusProtoOrBuilder getTaskStatusOrBuilder() {
7395        if (taskStatusBuilder_ != null) {
7396          return taskStatusBuilder_.getMessageOrBuilder();
7397        } else {
7398          return taskStatus_;
7399        }
7400      }
7401      /**
7402       * <code>optional .TaskStatusProto task_status = 4;</code>
7403       */
7404      private com.google.protobuf.SingleFieldBuilder<
7405          org.apache.reef.proto.ReefServiceProtos.TaskStatusProto, org.apache.reef.proto.ReefServiceProtos.TaskStatusProto.Builder, org.apache.reef.proto.ReefServiceProtos.TaskStatusProtoOrBuilder> 
7406          getTaskStatusFieldBuilder() {
7407        if (taskStatusBuilder_ == null) {
7408          taskStatusBuilder_ = new com.google.protobuf.SingleFieldBuilder<
7409              org.apache.reef.proto.ReefServiceProtos.TaskStatusProto, org.apache.reef.proto.ReefServiceProtos.TaskStatusProto.Builder, org.apache.reef.proto.ReefServiceProtos.TaskStatusProtoOrBuilder>(
7410                  taskStatus_,
7411                  getParentForChildren(),
7412                  isClean());
7413          taskStatus_ = null;
7414        }
7415        return taskStatusBuilder_;
7416      }
7417
7418      // optional bool recovery = 5;
7419      private boolean recovery_ ;
7420      /**
7421       * <code>optional bool recovery = 5;</code>
7422       */
7423      public boolean hasRecovery() {
7424        return ((bitField0_ & 0x00000010) == 0x00000010);
7425      }
7426      /**
7427       * <code>optional bool recovery = 5;</code>
7428       */
7429      public boolean getRecovery() {
7430        return recovery_;
7431      }
7432      /**
7433       * <code>optional bool recovery = 5;</code>
7434       */
7435      public Builder setRecovery(boolean value) {
7436        bitField0_ |= 0x00000010;
7437        recovery_ = value;
7438        onChanged();
7439        return this;
7440      }
7441      /**
7442       * <code>optional bool recovery = 5;</code>
7443       */
7444      public Builder clearRecovery() {
7445        bitField0_ = (bitField0_ & ~0x00000010);
7446        recovery_ = false;
7447        onChanged();
7448        return this;
7449      }
7450
7451      // @@protoc_insertion_point(builder_scope:EvaluatorHeartbeatProto)
7452    }
7453
7454    static {
7455      defaultInstance = new EvaluatorHeartbeatProto(true);
7456      defaultInstance.initFields();
7457    }
7458
7459    // @@protoc_insertion_point(class_scope:EvaluatorHeartbeatProto)
7460  }
7461
7462  public interface EvaluatorControlProtoOrBuilder
7463      extends com.google.protobuf.MessageOrBuilder {
7464
7465    // required int64 timestamp = 1;
7466    /**
7467     * <code>required int64 timestamp = 1;</code>
7468     */
7469    boolean hasTimestamp();
7470    /**
7471     * <code>required int64 timestamp = 1;</code>
7472     */
7473    long getTimestamp();
7474
7475    // required string identifier = 2;
7476    /**
7477     * <code>required string identifier = 2;</code>
7478     */
7479    boolean hasIdentifier();
7480    /**
7481     * <code>required string identifier = 2;</code>
7482     */
7483    java.lang.String getIdentifier();
7484    /**
7485     * <code>required string identifier = 2;</code>
7486     */
7487    com.google.protobuf.ByteString
7488        getIdentifierBytes();
7489
7490    // optional .ContextControlProto context_control = 3;
7491    /**
7492     * <code>optional .ContextControlProto context_control = 3;</code>
7493     */
7494    boolean hasContextControl();
7495    /**
7496     * <code>optional .ContextControlProto context_control = 3;</code>
7497     */
7498    org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto getContextControl();
7499    /**
7500     * <code>optional .ContextControlProto context_control = 3;</code>
7501     */
7502    org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProtoOrBuilder getContextControlOrBuilder();
7503
7504    // optional .KillEvaluatorProto kill_evaluator = 4;
7505    /**
7506     * <code>optional .KillEvaluatorProto kill_evaluator = 4;</code>
7507     */
7508    boolean hasKillEvaluator();
7509    /**
7510     * <code>optional .KillEvaluatorProto kill_evaluator = 4;</code>
7511     */
7512    org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto getKillEvaluator();
7513    /**
7514     * <code>optional .KillEvaluatorProto kill_evaluator = 4;</code>
7515     */
7516    org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProtoOrBuilder getKillEvaluatorOrBuilder();
7517
7518    // optional .StopEvaluatorProto stop_evaluator = 5;
7519    /**
7520     * <code>optional .StopEvaluatorProto stop_evaluator = 5;</code>
7521     */
7522    boolean hasStopEvaluator();
7523    /**
7524     * <code>optional .StopEvaluatorProto stop_evaluator = 5;</code>
7525     */
7526    org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto getStopEvaluator();
7527    /**
7528     * <code>optional .StopEvaluatorProto stop_evaluator = 5;</code>
7529     */
7530    org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProtoOrBuilder getStopEvaluatorOrBuilder();
7531
7532    // optional .DoneEvaluatorProto done_evaluator = 6;
7533    /**
7534     * <code>optional .DoneEvaluatorProto done_evaluator = 6;</code>
7535     */
7536    boolean hasDoneEvaluator();
7537    /**
7538     * <code>optional .DoneEvaluatorProto done_evaluator = 6;</code>
7539     */
7540    org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto getDoneEvaluator();
7541    /**
7542     * <code>optional .DoneEvaluatorProto done_evaluator = 6;</code>
7543     */
7544    org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProtoOrBuilder getDoneEvaluatorOrBuilder();
7545  }
7546  /**
7547   * Protobuf type {@code EvaluatorControlProto}
7548   */
7549  public static final class EvaluatorControlProto extends
7550      com.google.protobuf.GeneratedMessage
7551      implements EvaluatorControlProtoOrBuilder {
7552    // Use EvaluatorControlProto.newBuilder() to construct.
7553    private EvaluatorControlProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
7554      super(builder);
7555      this.unknownFields = builder.getUnknownFields();
7556    }
7557    private EvaluatorControlProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
7558
7559    private static final EvaluatorControlProto defaultInstance;
7560    public static EvaluatorControlProto getDefaultInstance() {
7561      return defaultInstance;
7562    }
7563
7564    public EvaluatorControlProto getDefaultInstanceForType() {
7565      return defaultInstance;
7566    }
7567
7568    private final com.google.protobuf.UnknownFieldSet unknownFields;
7569    @java.lang.Override
7570    public final com.google.protobuf.UnknownFieldSet
7571        getUnknownFields() {
7572      return this.unknownFields;
7573    }
7574    private EvaluatorControlProto(
7575        com.google.protobuf.CodedInputStream input,
7576        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7577        throws com.google.protobuf.InvalidProtocolBufferException {
7578      initFields();
7579      int mutable_bitField0_ = 0;
7580      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
7581          com.google.protobuf.UnknownFieldSet.newBuilder();
7582      try {
7583        boolean done = false;
7584        while (!done) {
7585          int tag = input.readTag();
7586          switch (tag) {
7587            case 0:
7588              done = true;
7589              break;
7590            default: {
7591              if (!parseUnknownField(input, unknownFields,
7592                                     extensionRegistry, tag)) {
7593                done = true;
7594              }
7595              break;
7596            }
7597            case 8: {
7598              bitField0_ |= 0x00000001;
7599              timestamp_ = input.readInt64();
7600              break;
7601            }
7602            case 18: {
7603              bitField0_ |= 0x00000002;
7604              identifier_ = input.readBytes();
7605              break;
7606            }
7607            case 26: {
7608              org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto.Builder subBuilder = null;
7609              if (((bitField0_ & 0x00000004) == 0x00000004)) {
7610                subBuilder = contextControl_.toBuilder();
7611              }
7612              contextControl_ = input.readMessage(org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto.PARSER, extensionRegistry);
7613              if (subBuilder != null) {
7614                subBuilder.mergeFrom(contextControl_);
7615                contextControl_ = subBuilder.buildPartial();
7616              }
7617              bitField0_ |= 0x00000004;
7618              break;
7619            }
7620            case 34: {
7621              org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto.Builder subBuilder = null;
7622              if (((bitField0_ & 0x00000008) == 0x00000008)) {
7623                subBuilder = killEvaluator_.toBuilder();
7624              }
7625              killEvaluator_ = input.readMessage(org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto.PARSER, extensionRegistry);
7626              if (subBuilder != null) {
7627                subBuilder.mergeFrom(killEvaluator_);
7628                killEvaluator_ = subBuilder.buildPartial();
7629              }
7630              bitField0_ |= 0x00000008;
7631              break;
7632            }
7633            case 42: {
7634              org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto.Builder subBuilder = null;
7635              if (((bitField0_ & 0x00000010) == 0x00000010)) {
7636                subBuilder = stopEvaluator_.toBuilder();
7637              }
7638              stopEvaluator_ = input.readMessage(org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto.PARSER, extensionRegistry);
7639              if (subBuilder != null) {
7640                subBuilder.mergeFrom(stopEvaluator_);
7641                stopEvaluator_ = subBuilder.buildPartial();
7642              }
7643              bitField0_ |= 0x00000010;
7644              break;
7645            }
7646            case 50: {
7647              org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto.Builder subBuilder = null;
7648              if (((bitField0_ & 0x00000020) == 0x00000020)) {
7649                subBuilder = doneEvaluator_.toBuilder();
7650              }
7651              doneEvaluator_ = input.readMessage(org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto.PARSER, extensionRegistry);
7652              if (subBuilder != null) {
7653                subBuilder.mergeFrom(doneEvaluator_);
7654                doneEvaluator_ = subBuilder.buildPartial();
7655              }
7656              bitField0_ |= 0x00000020;
7657              break;
7658            }
7659          }
7660        }
7661      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
7662        throw e.setUnfinishedMessage(this);
7663      } catch (java.io.IOException e) {
7664        throw new com.google.protobuf.InvalidProtocolBufferException(
7665            e.getMessage()).setUnfinishedMessage(this);
7666      } finally {
7667        this.unknownFields = unknownFields.build();
7668        makeExtensionsImmutable();
7669      }
7670    }
7671    public static final com.google.protobuf.Descriptors.Descriptor
7672        getDescriptor() {
7673      return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_EvaluatorControlProto_descriptor;
7674    }
7675
7676    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
7677        internalGetFieldAccessorTable() {
7678      return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_EvaluatorControlProto_fieldAccessorTable
7679          .ensureFieldAccessorsInitialized(
7680              org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorControlProto.class, org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorControlProto.Builder.class);
7681    }
7682
7683    public static com.google.protobuf.Parser<EvaluatorControlProto> PARSER =
7684        new com.google.protobuf.AbstractParser<EvaluatorControlProto>() {
7685      public EvaluatorControlProto parsePartialFrom(
7686          com.google.protobuf.CodedInputStream input,
7687          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7688          throws com.google.protobuf.InvalidProtocolBufferException {
7689        return new EvaluatorControlProto(input, extensionRegistry);
7690      }
7691    };
7692
7693    @java.lang.Override
7694    public com.google.protobuf.Parser<EvaluatorControlProto> getParserForType() {
7695      return PARSER;
7696    }
7697
7698    private int bitField0_;
7699    // required int64 timestamp = 1;
7700    public static final int TIMESTAMP_FIELD_NUMBER = 1;
7701    private long timestamp_;
7702    /**
7703     * <code>required int64 timestamp = 1;</code>
7704     */
7705    public boolean hasTimestamp() {
7706      return ((bitField0_ & 0x00000001) == 0x00000001);
7707    }
7708    /**
7709     * <code>required int64 timestamp = 1;</code>
7710     */
7711    public long getTimestamp() {
7712      return timestamp_;
7713    }
7714
7715    // required string identifier = 2;
7716    public static final int IDENTIFIER_FIELD_NUMBER = 2;
7717    private java.lang.Object identifier_;
7718    /**
7719     * <code>required string identifier = 2;</code>
7720     */
7721    public boolean hasIdentifier() {
7722      return ((bitField0_ & 0x00000002) == 0x00000002);
7723    }
7724    /**
7725     * <code>required string identifier = 2;</code>
7726     */
7727    public java.lang.String getIdentifier() {
7728      java.lang.Object ref = identifier_;
7729      if (ref instanceof java.lang.String) {
7730        return (java.lang.String) ref;
7731      } else {
7732        com.google.protobuf.ByteString bs = 
7733            (com.google.protobuf.ByteString) ref;
7734        java.lang.String s = bs.toStringUtf8();
7735        if (bs.isValidUtf8()) {
7736          identifier_ = s;
7737        }
7738        return s;
7739      }
7740    }
7741    /**
7742     * <code>required string identifier = 2;</code>
7743     */
7744    public com.google.protobuf.ByteString
7745        getIdentifierBytes() {
7746      java.lang.Object ref = identifier_;
7747      if (ref instanceof java.lang.String) {
7748        com.google.protobuf.ByteString b = 
7749            com.google.protobuf.ByteString.copyFromUtf8(
7750                (java.lang.String) ref);
7751        identifier_ = b;
7752        return b;
7753      } else {
7754        return (com.google.protobuf.ByteString) ref;
7755      }
7756    }
7757
7758    // optional .ContextControlProto context_control = 3;
7759    public static final int CONTEXT_CONTROL_FIELD_NUMBER = 3;
7760    private org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto contextControl_;
7761    /**
7762     * <code>optional .ContextControlProto context_control = 3;</code>
7763     */
7764    public boolean hasContextControl() {
7765      return ((bitField0_ & 0x00000004) == 0x00000004);
7766    }
7767    /**
7768     * <code>optional .ContextControlProto context_control = 3;</code>
7769     */
7770    public org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto getContextControl() {
7771      return contextControl_;
7772    }
7773    /**
7774     * <code>optional .ContextControlProto context_control = 3;</code>
7775     */
7776    public org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProtoOrBuilder getContextControlOrBuilder() {
7777      return contextControl_;
7778    }
7779
7780    // optional .KillEvaluatorProto kill_evaluator = 4;
7781    public static final int KILL_EVALUATOR_FIELD_NUMBER = 4;
7782    private org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto killEvaluator_;
7783    /**
7784     * <code>optional .KillEvaluatorProto kill_evaluator = 4;</code>
7785     */
7786    public boolean hasKillEvaluator() {
7787      return ((bitField0_ & 0x00000008) == 0x00000008);
7788    }
7789    /**
7790     * <code>optional .KillEvaluatorProto kill_evaluator = 4;</code>
7791     */
7792    public org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto getKillEvaluator() {
7793      return killEvaluator_;
7794    }
7795    /**
7796     * <code>optional .KillEvaluatorProto kill_evaluator = 4;</code>
7797     */
7798    public org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProtoOrBuilder getKillEvaluatorOrBuilder() {
7799      return killEvaluator_;
7800    }
7801
7802    // optional .StopEvaluatorProto stop_evaluator = 5;
7803    public static final int STOP_EVALUATOR_FIELD_NUMBER = 5;
7804    private org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto stopEvaluator_;
7805    /**
7806     * <code>optional .StopEvaluatorProto stop_evaluator = 5;</code>
7807     */
7808    public boolean hasStopEvaluator() {
7809      return ((bitField0_ & 0x00000010) == 0x00000010);
7810    }
7811    /**
7812     * <code>optional .StopEvaluatorProto stop_evaluator = 5;</code>
7813     */
7814    public org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto getStopEvaluator() {
7815      return stopEvaluator_;
7816    }
7817    /**
7818     * <code>optional .StopEvaluatorProto stop_evaluator = 5;</code>
7819     */
7820    public org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProtoOrBuilder getStopEvaluatorOrBuilder() {
7821      return stopEvaluator_;
7822    }
7823
7824    // optional .DoneEvaluatorProto done_evaluator = 6;
7825    public static final int DONE_EVALUATOR_FIELD_NUMBER = 6;
7826    private org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto doneEvaluator_;
7827    /**
7828     * <code>optional .DoneEvaluatorProto done_evaluator = 6;</code>
7829     */
7830    public boolean hasDoneEvaluator() {
7831      return ((bitField0_ & 0x00000020) == 0x00000020);
7832    }
7833    /**
7834     * <code>optional .DoneEvaluatorProto done_evaluator = 6;</code>
7835     */
7836    public org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto getDoneEvaluator() {
7837      return doneEvaluator_;
7838    }
7839    /**
7840     * <code>optional .DoneEvaluatorProto done_evaluator = 6;</code>
7841     */
7842    public org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProtoOrBuilder getDoneEvaluatorOrBuilder() {
7843      return doneEvaluator_;
7844    }
7845
7846    private void initFields() {
7847      timestamp_ = 0L;
7848      identifier_ = "";
7849      contextControl_ = org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto.getDefaultInstance();
7850      killEvaluator_ = org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto.getDefaultInstance();
7851      stopEvaluator_ = org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto.getDefaultInstance();
7852      doneEvaluator_ = org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto.getDefaultInstance();
7853    }
7854    private byte memoizedIsInitialized = -1;
7855    public final boolean isInitialized() {
7856      byte isInitialized = memoizedIsInitialized;
7857      if (isInitialized != -1) return isInitialized == 1;
7858
7859      if (!hasTimestamp()) {
7860        memoizedIsInitialized = 0;
7861        return false;
7862      }
7863      if (!hasIdentifier()) {
7864        memoizedIsInitialized = 0;
7865        return false;
7866      }
7867      if (hasContextControl()) {
7868        if (!getContextControl().isInitialized()) {
7869          memoizedIsInitialized = 0;
7870          return false;
7871        }
7872      }
7873      memoizedIsInitialized = 1;
7874      return true;
7875    }
7876
7877    public void writeTo(com.google.protobuf.CodedOutputStream output)
7878                        throws java.io.IOException {
7879      getSerializedSize();
7880      if (((bitField0_ & 0x00000001) == 0x00000001)) {
7881        output.writeInt64(1, timestamp_);
7882      }
7883      if (((bitField0_ & 0x00000002) == 0x00000002)) {
7884        output.writeBytes(2, getIdentifierBytes());
7885      }
7886      if (((bitField0_ & 0x00000004) == 0x00000004)) {
7887        output.writeMessage(3, contextControl_);
7888      }
7889      if (((bitField0_ & 0x00000008) == 0x00000008)) {
7890        output.writeMessage(4, killEvaluator_);
7891      }
7892      if (((bitField0_ & 0x00000010) == 0x00000010)) {
7893        output.writeMessage(5, stopEvaluator_);
7894      }
7895      if (((bitField0_ & 0x00000020) == 0x00000020)) {
7896        output.writeMessage(6, doneEvaluator_);
7897      }
7898      getUnknownFields().writeTo(output);
7899    }
7900
7901    private int memoizedSerializedSize = -1;
7902    public int getSerializedSize() {
7903      int size = memoizedSerializedSize;
7904      if (size != -1) return size;
7905
7906      size = 0;
7907      if (((bitField0_ & 0x00000001) == 0x00000001)) {
7908        size += com.google.protobuf.CodedOutputStream
7909          .computeInt64Size(1, timestamp_);
7910      }
7911      if (((bitField0_ & 0x00000002) == 0x00000002)) {
7912        size += com.google.protobuf.CodedOutputStream
7913          .computeBytesSize(2, getIdentifierBytes());
7914      }
7915      if (((bitField0_ & 0x00000004) == 0x00000004)) {
7916        size += com.google.protobuf.CodedOutputStream
7917          .computeMessageSize(3, contextControl_);
7918      }
7919      if (((bitField0_ & 0x00000008) == 0x00000008)) {
7920        size += com.google.protobuf.CodedOutputStream
7921          .computeMessageSize(4, killEvaluator_);
7922      }
7923      if (((bitField0_ & 0x00000010) == 0x00000010)) {
7924        size += com.google.protobuf.CodedOutputStream
7925          .computeMessageSize(5, stopEvaluator_);
7926      }
7927      if (((bitField0_ & 0x00000020) == 0x00000020)) {
7928        size += com.google.protobuf.CodedOutputStream
7929          .computeMessageSize(6, doneEvaluator_);
7930      }
7931      size += getUnknownFields().getSerializedSize();
7932      memoizedSerializedSize = size;
7933      return size;
7934    }
7935
7936    private static final long serialVersionUID = 0L;
7937    @java.lang.Override
7938    protected java.lang.Object writeReplace()
7939        throws java.io.ObjectStreamException {
7940      return super.writeReplace();
7941    }
7942
7943    @java.lang.Override
7944    public boolean equals(final java.lang.Object obj) {
7945      if (obj == this) {
7946       return true;
7947      }
7948      if (!(obj instanceof org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorControlProto)) {
7949        return super.equals(obj);
7950      }
7951      org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorControlProto other = (org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorControlProto) obj;
7952
7953      boolean result = true;
7954      result = result && (hasTimestamp() == other.hasTimestamp());
7955      if (hasTimestamp()) {
7956        result = result && (getTimestamp()
7957            == other.getTimestamp());
7958      }
7959      result = result && (hasIdentifier() == other.hasIdentifier());
7960      if (hasIdentifier()) {
7961        result = result && getIdentifier()
7962            .equals(other.getIdentifier());
7963      }
7964      result = result && (hasContextControl() == other.hasContextControl());
7965      if (hasContextControl()) {
7966        result = result && getContextControl()
7967            .equals(other.getContextControl());
7968      }
7969      result = result && (hasKillEvaluator() == other.hasKillEvaluator());
7970      if (hasKillEvaluator()) {
7971        result = result && getKillEvaluator()
7972            .equals(other.getKillEvaluator());
7973      }
7974      result = result && (hasStopEvaluator() == other.hasStopEvaluator());
7975      if (hasStopEvaluator()) {
7976        result = result && getStopEvaluator()
7977            .equals(other.getStopEvaluator());
7978      }
7979      result = result && (hasDoneEvaluator() == other.hasDoneEvaluator());
7980      if (hasDoneEvaluator()) {
7981        result = result && getDoneEvaluator()
7982            .equals(other.getDoneEvaluator());
7983      }
7984      result = result &&
7985          getUnknownFields().equals(other.getUnknownFields());
7986      return result;
7987    }
7988
7989    private int memoizedHashCode = 0;
7990    @java.lang.Override
7991    public int hashCode() {
7992      if (memoizedHashCode != 0) {
7993        return memoizedHashCode;
7994      }
7995      int hash = 41;
7996      hash = (19 * hash) + getDescriptorForType().hashCode();
7997      if (hasTimestamp()) {
7998        hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
7999        hash = (53 * hash) + hashLong(getTimestamp());
8000      }
8001      if (hasIdentifier()) {
8002        hash = (37 * hash) + IDENTIFIER_FIELD_NUMBER;
8003        hash = (53 * hash) + getIdentifier().hashCode();
8004      }
8005      if (hasContextControl()) {
8006        hash = (37 * hash) + CONTEXT_CONTROL_FIELD_NUMBER;
8007        hash = (53 * hash) + getContextControl().hashCode();
8008      }
8009      if (hasKillEvaluator()) {
8010        hash = (37 * hash) + KILL_EVALUATOR_FIELD_NUMBER;
8011        hash = (53 * hash) + getKillEvaluator().hashCode();
8012      }
8013      if (hasStopEvaluator()) {
8014        hash = (37 * hash) + STOP_EVALUATOR_FIELD_NUMBER;
8015        hash = (53 * hash) + getStopEvaluator().hashCode();
8016      }
8017      if (hasDoneEvaluator()) {
8018        hash = (37 * hash) + DONE_EVALUATOR_FIELD_NUMBER;
8019        hash = (53 * hash) + getDoneEvaluator().hashCode();
8020      }
8021      hash = (29 * hash) + getUnknownFields().hashCode();
8022      memoizedHashCode = hash;
8023      return hash;
8024    }
8025
8026    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorControlProto parseFrom(
8027        com.google.protobuf.ByteString data)
8028        throws com.google.protobuf.InvalidProtocolBufferException {
8029      return PARSER.parseFrom(data);
8030    }
8031    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorControlProto parseFrom(
8032        com.google.protobuf.ByteString data,
8033        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8034        throws com.google.protobuf.InvalidProtocolBufferException {
8035      return PARSER.parseFrom(data, extensionRegistry);
8036    }
8037    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorControlProto parseFrom(byte[] data)
8038        throws com.google.protobuf.InvalidProtocolBufferException {
8039      return PARSER.parseFrom(data);
8040    }
8041    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorControlProto parseFrom(
8042        byte[] data,
8043        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8044        throws com.google.protobuf.InvalidProtocolBufferException {
8045      return PARSER.parseFrom(data, extensionRegistry);
8046    }
8047    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorControlProto parseFrom(java.io.InputStream input)
8048        throws java.io.IOException {
8049      return PARSER.parseFrom(input);
8050    }
8051    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorControlProto parseFrom(
8052        java.io.InputStream input,
8053        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8054        throws java.io.IOException {
8055      return PARSER.parseFrom(input, extensionRegistry);
8056    }
8057    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorControlProto parseDelimitedFrom(java.io.InputStream input)
8058        throws java.io.IOException {
8059      return PARSER.parseDelimitedFrom(input);
8060    }
8061    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorControlProto parseDelimitedFrom(
8062        java.io.InputStream input,
8063        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8064        throws java.io.IOException {
8065      return PARSER.parseDelimitedFrom(input, extensionRegistry);
8066    }
8067    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorControlProto parseFrom(
8068        com.google.protobuf.CodedInputStream input)
8069        throws java.io.IOException {
8070      return PARSER.parseFrom(input);
8071    }
8072    public static org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorControlProto parseFrom(
8073        com.google.protobuf.CodedInputStream input,
8074        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8075        throws java.io.IOException {
8076      return PARSER.parseFrom(input, extensionRegistry);
8077    }
8078
8079    public static Builder newBuilder() { return Builder.create(); }
8080    public Builder newBuilderForType() { return newBuilder(); }
8081    public static Builder newBuilder(org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorControlProto prototype) {
8082      return newBuilder().mergeFrom(prototype);
8083    }
8084    public Builder toBuilder() { return newBuilder(this); }
8085
8086    @java.lang.Override
8087    protected Builder newBuilderForType(
8088        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
8089      Builder builder = new Builder(parent);
8090      return builder;
8091    }
8092    /**
8093     * Protobuf type {@code EvaluatorControlProto}
8094     */
8095    public static final class Builder extends
8096        com.google.protobuf.GeneratedMessage.Builder<Builder>
8097       implements org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorControlProtoOrBuilder {
8098      public static final com.google.protobuf.Descriptors.Descriptor
8099          getDescriptor() {
8100        return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_EvaluatorControlProto_descriptor;
8101      }
8102
8103      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
8104          internalGetFieldAccessorTable() {
8105        return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_EvaluatorControlProto_fieldAccessorTable
8106            .ensureFieldAccessorsInitialized(
8107                org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorControlProto.class, org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorControlProto.Builder.class);
8108      }
8109
8110      // Construct using org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorControlProto.newBuilder()
8111      private Builder() {
8112        maybeForceBuilderInitialization();
8113      }
8114
8115      private Builder(
8116          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
8117        super(parent);
8118        maybeForceBuilderInitialization();
8119      }
8120      private void maybeForceBuilderInitialization() {
8121        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
8122          getContextControlFieldBuilder();
8123          getKillEvaluatorFieldBuilder();
8124          getStopEvaluatorFieldBuilder();
8125          getDoneEvaluatorFieldBuilder();
8126        }
8127      }
8128      private static Builder create() {
8129        return new Builder();
8130      }
8131
8132      public Builder clear() {
8133        super.clear();
8134        timestamp_ = 0L;
8135        bitField0_ = (bitField0_ & ~0x00000001);
8136        identifier_ = "";
8137        bitField0_ = (bitField0_ & ~0x00000002);
8138        if (contextControlBuilder_ == null) {
8139          contextControl_ = org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto.getDefaultInstance();
8140        } else {
8141          contextControlBuilder_.clear();
8142        }
8143        bitField0_ = (bitField0_ & ~0x00000004);
8144        if (killEvaluatorBuilder_ == null) {
8145          killEvaluator_ = org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto.getDefaultInstance();
8146        } else {
8147          killEvaluatorBuilder_.clear();
8148        }
8149        bitField0_ = (bitField0_ & ~0x00000008);
8150        if (stopEvaluatorBuilder_ == null) {
8151          stopEvaluator_ = org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto.getDefaultInstance();
8152        } else {
8153          stopEvaluatorBuilder_.clear();
8154        }
8155        bitField0_ = (bitField0_ & ~0x00000010);
8156        if (doneEvaluatorBuilder_ == null) {
8157          doneEvaluator_ = org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto.getDefaultInstance();
8158        } else {
8159          doneEvaluatorBuilder_.clear();
8160        }
8161        bitField0_ = (bitField0_ & ~0x00000020);
8162        return this;
8163      }
8164
8165      public Builder clone() {
8166        return create().mergeFrom(buildPartial());
8167      }
8168
8169      public com.google.protobuf.Descriptors.Descriptor
8170          getDescriptorForType() {
8171        return org.apache.reef.proto.EvaluatorRuntimeProtocol.internal_static_EvaluatorControlProto_descriptor;
8172      }
8173
8174      public org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorControlProto getDefaultInstanceForType() {
8175        return org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorControlProto.getDefaultInstance();
8176      }
8177
8178      public org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorControlProto build() {
8179        org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorControlProto result = buildPartial();
8180        if (!result.isInitialized()) {
8181          throw newUninitializedMessageException(result);
8182        }
8183        return result;
8184      }
8185
8186      public org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorControlProto buildPartial() {
8187        org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorControlProto result = new org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorControlProto(this);
8188        int from_bitField0_ = bitField0_;
8189        int to_bitField0_ = 0;
8190        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
8191          to_bitField0_ |= 0x00000001;
8192        }
8193        result.timestamp_ = timestamp_;
8194        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
8195          to_bitField0_ |= 0x00000002;
8196        }
8197        result.identifier_ = identifier_;
8198        if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
8199          to_bitField0_ |= 0x00000004;
8200        }
8201        if (contextControlBuilder_ == null) {
8202          result.contextControl_ = contextControl_;
8203        } else {
8204          result.contextControl_ = contextControlBuilder_.build();
8205        }
8206        if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
8207          to_bitField0_ |= 0x00000008;
8208        }
8209        if (killEvaluatorBuilder_ == null) {
8210          result.killEvaluator_ = killEvaluator_;
8211        } else {
8212          result.killEvaluator_ = killEvaluatorBuilder_.build();
8213        }
8214        if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
8215          to_bitField0_ |= 0x00000010;
8216        }
8217        if (stopEvaluatorBuilder_ == null) {
8218          result.stopEvaluator_ = stopEvaluator_;
8219        } else {
8220          result.stopEvaluator_ = stopEvaluatorBuilder_.build();
8221        }
8222        if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
8223          to_bitField0_ |= 0x00000020;
8224        }
8225        if (doneEvaluatorBuilder_ == null) {
8226          result.doneEvaluator_ = doneEvaluator_;
8227        } else {
8228          result.doneEvaluator_ = doneEvaluatorBuilder_.build();
8229        }
8230        result.bitField0_ = to_bitField0_;
8231        onBuilt();
8232        return result;
8233      }
8234
8235      public Builder mergeFrom(com.google.protobuf.Message other) {
8236        if (other instanceof org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorControlProto) {
8237          return mergeFrom((org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorControlProto)other);
8238        } else {
8239          super.mergeFrom(other);
8240          return this;
8241        }
8242      }
8243
8244      public Builder mergeFrom(org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorControlProto other) {
8245        if (other == org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorControlProto.getDefaultInstance()) return this;
8246        if (other.hasTimestamp()) {
8247          setTimestamp(other.getTimestamp());
8248        }
8249        if (other.hasIdentifier()) {
8250          bitField0_ |= 0x00000002;
8251          identifier_ = other.identifier_;
8252          onChanged();
8253        }
8254        if (other.hasContextControl()) {
8255          mergeContextControl(other.getContextControl());
8256        }
8257        if (other.hasKillEvaluator()) {
8258          mergeKillEvaluator(other.getKillEvaluator());
8259        }
8260        if (other.hasStopEvaluator()) {
8261          mergeStopEvaluator(other.getStopEvaluator());
8262        }
8263        if (other.hasDoneEvaluator()) {
8264          mergeDoneEvaluator(other.getDoneEvaluator());
8265        }
8266        this.mergeUnknownFields(other.getUnknownFields());
8267        return this;
8268      }
8269
8270      public final boolean isInitialized() {
8271        if (!hasTimestamp()) {
8272          
8273          return false;
8274        }
8275        if (!hasIdentifier()) {
8276          
8277          return false;
8278        }
8279        if (hasContextControl()) {
8280          if (!getContextControl().isInitialized()) {
8281            
8282            return false;
8283          }
8284        }
8285        return true;
8286      }
8287
8288      public Builder mergeFrom(
8289          com.google.protobuf.CodedInputStream input,
8290          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8291          throws java.io.IOException {
8292        org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorControlProto parsedMessage = null;
8293        try {
8294          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
8295        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
8296          parsedMessage = (org.apache.reef.proto.EvaluatorRuntimeProtocol.EvaluatorControlProto) e.getUnfinishedMessage();
8297          throw e;
8298        } finally {
8299          if (parsedMessage != null) {
8300            mergeFrom(parsedMessage);
8301          }
8302        }
8303        return this;
8304      }
8305      private int bitField0_;
8306
8307      // required int64 timestamp = 1;
8308      private long timestamp_ ;
8309      /**
8310       * <code>required int64 timestamp = 1;</code>
8311       */
8312      public boolean hasTimestamp() {
8313        return ((bitField0_ & 0x00000001) == 0x00000001);
8314      }
8315      /**
8316       * <code>required int64 timestamp = 1;</code>
8317       */
8318      public long getTimestamp() {
8319        return timestamp_;
8320      }
8321      /**
8322       * <code>required int64 timestamp = 1;</code>
8323       */
8324      public Builder setTimestamp(long value) {
8325        bitField0_ |= 0x00000001;
8326        timestamp_ = value;
8327        onChanged();
8328        return this;
8329      }
8330      /**
8331       * <code>required int64 timestamp = 1;</code>
8332       */
8333      public Builder clearTimestamp() {
8334        bitField0_ = (bitField0_ & ~0x00000001);
8335        timestamp_ = 0L;
8336        onChanged();
8337        return this;
8338      }
8339
8340      // required string identifier = 2;
8341      private java.lang.Object identifier_ = "";
8342      /**
8343       * <code>required string identifier = 2;</code>
8344       */
8345      public boolean hasIdentifier() {
8346        return ((bitField0_ & 0x00000002) == 0x00000002);
8347      }
8348      /**
8349       * <code>required string identifier = 2;</code>
8350       */
8351      public java.lang.String getIdentifier() {
8352        java.lang.Object ref = identifier_;
8353        if (!(ref instanceof java.lang.String)) {
8354          java.lang.String s = ((com.google.protobuf.ByteString) ref)
8355              .toStringUtf8();
8356          identifier_ = s;
8357          return s;
8358        } else {
8359          return (java.lang.String) ref;
8360        }
8361      }
8362      /**
8363       * <code>required string identifier = 2;</code>
8364       */
8365      public com.google.protobuf.ByteString
8366          getIdentifierBytes() {
8367        java.lang.Object ref = identifier_;
8368        if (ref instanceof String) {
8369          com.google.protobuf.ByteString b = 
8370              com.google.protobuf.ByteString.copyFromUtf8(
8371                  (java.lang.String) ref);
8372          identifier_ = b;
8373          return b;
8374        } else {
8375          return (com.google.protobuf.ByteString) ref;
8376        }
8377      }
8378      /**
8379       * <code>required string identifier = 2;</code>
8380       */
8381      public Builder setIdentifier(
8382          java.lang.String value) {
8383        if (value == null) {
8384    throw new NullPointerException();
8385  }
8386  bitField0_ |= 0x00000002;
8387        identifier_ = value;
8388        onChanged();
8389        return this;
8390      }
8391      /**
8392       * <code>required string identifier = 2;</code>
8393       */
8394      public Builder clearIdentifier() {
8395        bitField0_ = (bitField0_ & ~0x00000002);
8396        identifier_ = getDefaultInstance().getIdentifier();
8397        onChanged();
8398        return this;
8399      }
8400      /**
8401       * <code>required string identifier = 2;</code>
8402       */
8403      public Builder setIdentifierBytes(
8404          com.google.protobuf.ByteString value) {
8405        if (value == null) {
8406    throw new NullPointerException();
8407  }
8408  bitField0_ |= 0x00000002;
8409        identifier_ = value;
8410        onChanged();
8411        return this;
8412      }
8413
8414      // optional .ContextControlProto context_control = 3;
8415      private org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto contextControl_ = org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto.getDefaultInstance();
8416      private com.google.protobuf.SingleFieldBuilder<
8417          org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto, org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto.Builder, org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProtoOrBuilder> contextControlBuilder_;
8418      /**
8419       * <code>optional .ContextControlProto context_control = 3;</code>
8420       */
8421      public boolean hasContextControl() {
8422        return ((bitField0_ & 0x00000004) == 0x00000004);
8423      }
8424      /**
8425       * <code>optional .ContextControlProto context_control = 3;</code>
8426       */
8427      public org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto getContextControl() {
8428        if (contextControlBuilder_ == null) {
8429          return contextControl_;
8430        } else {
8431          return contextControlBuilder_.getMessage();
8432        }
8433      }
8434      /**
8435       * <code>optional .ContextControlProto context_control = 3;</code>
8436       */
8437      public Builder setContextControl(org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto value) {
8438        if (contextControlBuilder_ == null) {
8439          if (value == null) {
8440            throw new NullPointerException();
8441          }
8442          contextControl_ = value;
8443          onChanged();
8444        } else {
8445          contextControlBuilder_.setMessage(value);
8446        }
8447        bitField0_ |= 0x00000004;
8448        return this;
8449      }
8450      /**
8451       * <code>optional .ContextControlProto context_control = 3;</code>
8452       */
8453      public Builder setContextControl(
8454          org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto.Builder builderForValue) {
8455        if (contextControlBuilder_ == null) {
8456          contextControl_ = builderForValue.build();
8457          onChanged();
8458        } else {
8459          contextControlBuilder_.setMessage(builderForValue.build());
8460        }
8461        bitField0_ |= 0x00000004;
8462        return this;
8463      }
8464      /**
8465       * <code>optional .ContextControlProto context_control = 3;</code>
8466       */
8467      public Builder mergeContextControl(org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto value) {
8468        if (contextControlBuilder_ == null) {
8469          if (((bitField0_ & 0x00000004) == 0x00000004) &&
8470              contextControl_ != org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto.getDefaultInstance()) {
8471            contextControl_ =
8472              org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto.newBuilder(contextControl_).mergeFrom(value).buildPartial();
8473          } else {
8474            contextControl_ = value;
8475          }
8476          onChanged();
8477        } else {
8478          contextControlBuilder_.mergeFrom(value);
8479        }
8480        bitField0_ |= 0x00000004;
8481        return this;
8482      }
8483      /**
8484       * <code>optional .ContextControlProto context_control = 3;</code>
8485       */
8486      public Builder clearContextControl() {
8487        if (contextControlBuilder_ == null) {
8488          contextControl_ = org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto.getDefaultInstance();
8489          onChanged();
8490        } else {
8491          contextControlBuilder_.clear();
8492        }
8493        bitField0_ = (bitField0_ & ~0x00000004);
8494        return this;
8495      }
8496      /**
8497       * <code>optional .ContextControlProto context_control = 3;</code>
8498       */
8499      public org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto.Builder getContextControlBuilder() {
8500        bitField0_ |= 0x00000004;
8501        onChanged();
8502        return getContextControlFieldBuilder().getBuilder();
8503      }
8504      /**
8505       * <code>optional .ContextControlProto context_control = 3;</code>
8506       */
8507      public org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProtoOrBuilder getContextControlOrBuilder() {
8508        if (contextControlBuilder_ != null) {
8509          return contextControlBuilder_.getMessageOrBuilder();
8510        } else {
8511          return contextControl_;
8512        }
8513      }
8514      /**
8515       * <code>optional .ContextControlProto context_control = 3;</code>
8516       */
8517      private com.google.protobuf.SingleFieldBuilder<
8518          org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto, org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto.Builder, org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProtoOrBuilder> 
8519          getContextControlFieldBuilder() {
8520        if (contextControlBuilder_ == null) {
8521          contextControlBuilder_ = new com.google.protobuf.SingleFieldBuilder<
8522              org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto, org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto.Builder, org.apache.reef.proto.EvaluatorRuntimeProtocol.ContextControlProtoOrBuilder>(
8523                  contextControl_,
8524                  getParentForChildren(),
8525                  isClean());
8526          contextControl_ = null;
8527        }
8528        return contextControlBuilder_;
8529      }
8530
8531      // optional .KillEvaluatorProto kill_evaluator = 4;
8532      private org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto killEvaluator_ = org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto.getDefaultInstance();
8533      private com.google.protobuf.SingleFieldBuilder<
8534          org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto, org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto.Builder, org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProtoOrBuilder> killEvaluatorBuilder_;
8535      /**
8536       * <code>optional .KillEvaluatorProto kill_evaluator = 4;</code>
8537       */
8538      public boolean hasKillEvaluator() {
8539        return ((bitField0_ & 0x00000008) == 0x00000008);
8540      }
8541      /**
8542       * <code>optional .KillEvaluatorProto kill_evaluator = 4;</code>
8543       */
8544      public org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto getKillEvaluator() {
8545        if (killEvaluatorBuilder_ == null) {
8546          return killEvaluator_;
8547        } else {
8548          return killEvaluatorBuilder_.getMessage();
8549        }
8550      }
8551      /**
8552       * <code>optional .KillEvaluatorProto kill_evaluator = 4;</code>
8553       */
8554      public Builder setKillEvaluator(org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto value) {
8555        if (killEvaluatorBuilder_ == null) {
8556          if (value == null) {
8557            throw new NullPointerException();
8558          }
8559          killEvaluator_ = value;
8560          onChanged();
8561        } else {
8562          killEvaluatorBuilder_.setMessage(value);
8563        }
8564        bitField0_ |= 0x00000008;
8565        return this;
8566      }
8567      /**
8568       * <code>optional .KillEvaluatorProto kill_evaluator = 4;</code>
8569       */
8570      public Builder setKillEvaluator(
8571          org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto.Builder builderForValue) {
8572        if (killEvaluatorBuilder_ == null) {
8573          killEvaluator_ = builderForValue.build();
8574          onChanged();
8575        } else {
8576          killEvaluatorBuilder_.setMessage(builderForValue.build());
8577        }
8578        bitField0_ |= 0x00000008;
8579        return this;
8580      }
8581      /**
8582       * <code>optional .KillEvaluatorProto kill_evaluator = 4;</code>
8583       */
8584      public Builder mergeKillEvaluator(org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto value) {
8585        if (killEvaluatorBuilder_ == null) {
8586          if (((bitField0_ & 0x00000008) == 0x00000008) &&
8587              killEvaluator_ != org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto.getDefaultInstance()) {
8588            killEvaluator_ =
8589              org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto.newBuilder(killEvaluator_).mergeFrom(value).buildPartial();
8590          } else {
8591            killEvaluator_ = value;
8592          }
8593          onChanged();
8594        } else {
8595          killEvaluatorBuilder_.mergeFrom(value);
8596        }
8597        bitField0_ |= 0x00000008;
8598        return this;
8599      }
8600      /**
8601       * <code>optional .KillEvaluatorProto kill_evaluator = 4;</code>
8602       */
8603      public Builder clearKillEvaluator() {
8604        if (killEvaluatorBuilder_ == null) {
8605          killEvaluator_ = org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto.getDefaultInstance();
8606          onChanged();
8607        } else {
8608          killEvaluatorBuilder_.clear();
8609        }
8610        bitField0_ = (bitField0_ & ~0x00000008);
8611        return this;
8612      }
8613      /**
8614       * <code>optional .KillEvaluatorProto kill_evaluator = 4;</code>
8615       */
8616      public org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto.Builder getKillEvaluatorBuilder() {
8617        bitField0_ |= 0x00000008;
8618        onChanged();
8619        return getKillEvaluatorFieldBuilder().getBuilder();
8620      }
8621      /**
8622       * <code>optional .KillEvaluatorProto kill_evaluator = 4;</code>
8623       */
8624      public org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProtoOrBuilder getKillEvaluatorOrBuilder() {
8625        if (killEvaluatorBuilder_ != null) {
8626          return killEvaluatorBuilder_.getMessageOrBuilder();
8627        } else {
8628          return killEvaluator_;
8629        }
8630      }
8631      /**
8632       * <code>optional .KillEvaluatorProto kill_evaluator = 4;</code>
8633       */
8634      private com.google.protobuf.SingleFieldBuilder<
8635          org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto, org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto.Builder, org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProtoOrBuilder> 
8636          getKillEvaluatorFieldBuilder() {
8637        if (killEvaluatorBuilder_ == null) {
8638          killEvaluatorBuilder_ = new com.google.protobuf.SingleFieldBuilder<
8639              org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto, org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProto.Builder, org.apache.reef.proto.EvaluatorRuntimeProtocol.KillEvaluatorProtoOrBuilder>(
8640                  killEvaluator_,
8641                  getParentForChildren(),
8642                  isClean());
8643          killEvaluator_ = null;
8644        }
8645        return killEvaluatorBuilder_;
8646      }
8647
8648      // optional .StopEvaluatorProto stop_evaluator = 5;
8649      private org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto stopEvaluator_ = org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto.getDefaultInstance();
8650      private com.google.protobuf.SingleFieldBuilder<
8651          org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto, org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto.Builder, org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProtoOrBuilder> stopEvaluatorBuilder_;
8652      /**
8653       * <code>optional .StopEvaluatorProto stop_evaluator = 5;</code>
8654       */
8655      public boolean hasStopEvaluator() {
8656        return ((bitField0_ & 0x00000010) == 0x00000010);
8657      }
8658      /**
8659       * <code>optional .StopEvaluatorProto stop_evaluator = 5;</code>
8660       */
8661      public org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto getStopEvaluator() {
8662        if (stopEvaluatorBuilder_ == null) {
8663          return stopEvaluator_;
8664        } else {
8665          return stopEvaluatorBuilder_.getMessage();
8666        }
8667      }
8668      /**
8669       * <code>optional .StopEvaluatorProto stop_evaluator = 5;</code>
8670       */
8671      public Builder setStopEvaluator(org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto value) {
8672        if (stopEvaluatorBuilder_ == null) {
8673          if (value == null) {
8674            throw new NullPointerException();
8675          }
8676          stopEvaluator_ = value;
8677          onChanged();
8678        } else {
8679          stopEvaluatorBuilder_.setMessage(value);
8680        }
8681        bitField0_ |= 0x00000010;
8682        return this;
8683      }
8684      /**
8685       * <code>optional .StopEvaluatorProto stop_evaluator = 5;</code>
8686       */
8687      public Builder setStopEvaluator(
8688          org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto.Builder builderForValue) {
8689        if (stopEvaluatorBuilder_ == null) {
8690          stopEvaluator_ = builderForValue.build();
8691          onChanged();
8692        } else {
8693          stopEvaluatorBuilder_.setMessage(builderForValue.build());
8694        }
8695        bitField0_ |= 0x00000010;
8696        return this;
8697      }
8698      /**
8699       * <code>optional .StopEvaluatorProto stop_evaluator = 5;</code>
8700       */
8701      public Builder mergeStopEvaluator(org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto value) {
8702        if (stopEvaluatorBuilder_ == null) {
8703          if (((bitField0_ & 0x00000010) == 0x00000010) &&
8704              stopEvaluator_ != org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto.getDefaultInstance()) {
8705            stopEvaluator_ =
8706              org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto.newBuilder(stopEvaluator_).mergeFrom(value).buildPartial();
8707          } else {
8708            stopEvaluator_ = value;
8709          }
8710          onChanged();
8711        } else {
8712          stopEvaluatorBuilder_.mergeFrom(value);
8713        }
8714        bitField0_ |= 0x00000010;
8715        return this;
8716      }
8717      /**
8718       * <code>optional .StopEvaluatorProto stop_evaluator = 5;</code>
8719       */
8720      public Builder clearStopEvaluator() {
8721        if (stopEvaluatorBuilder_ == null) {
8722          stopEvaluator_ = org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto.getDefaultInstance();
8723          onChanged();
8724        } else {
8725          stopEvaluatorBuilder_.clear();
8726        }
8727        bitField0_ = (bitField0_ & ~0x00000010);
8728        return this;
8729      }
8730      /**
8731       * <code>optional .StopEvaluatorProto stop_evaluator = 5;</code>
8732       */
8733      public org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto.Builder getStopEvaluatorBuilder() {
8734        bitField0_ |= 0x00000010;
8735        onChanged();
8736        return getStopEvaluatorFieldBuilder().getBuilder();
8737      }
8738      /**
8739       * <code>optional .StopEvaluatorProto stop_evaluator = 5;</code>
8740       */
8741      public org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProtoOrBuilder getStopEvaluatorOrBuilder() {
8742        if (stopEvaluatorBuilder_ != null) {
8743          return stopEvaluatorBuilder_.getMessageOrBuilder();
8744        } else {
8745          return stopEvaluator_;
8746        }
8747      }
8748      /**
8749       * <code>optional .StopEvaluatorProto stop_evaluator = 5;</code>
8750       */
8751      private com.google.protobuf.SingleFieldBuilder<
8752          org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto, org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto.Builder, org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProtoOrBuilder> 
8753          getStopEvaluatorFieldBuilder() {
8754        if (stopEvaluatorBuilder_ == null) {
8755          stopEvaluatorBuilder_ = new com.google.protobuf.SingleFieldBuilder<
8756              org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto, org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProto.Builder, org.apache.reef.proto.EvaluatorRuntimeProtocol.StopEvaluatorProtoOrBuilder>(
8757                  stopEvaluator_,
8758                  getParentForChildren(),
8759                  isClean());
8760          stopEvaluator_ = null;
8761        }
8762        return stopEvaluatorBuilder_;
8763      }
8764
8765      // optional .DoneEvaluatorProto done_evaluator = 6;
8766      private org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto doneEvaluator_ = org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto.getDefaultInstance();
8767      private com.google.protobuf.SingleFieldBuilder<
8768          org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto, org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto.Builder, org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProtoOrBuilder> doneEvaluatorBuilder_;
8769      /**
8770       * <code>optional .DoneEvaluatorProto done_evaluator = 6;</code>
8771       */
8772      public boolean hasDoneEvaluator() {
8773        return ((bitField0_ & 0x00000020) == 0x00000020);
8774      }
8775      /**
8776       * <code>optional .DoneEvaluatorProto done_evaluator = 6;</code>
8777       */
8778      public org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto getDoneEvaluator() {
8779        if (doneEvaluatorBuilder_ == null) {
8780          return doneEvaluator_;
8781        } else {
8782          return doneEvaluatorBuilder_.getMessage();
8783        }
8784      }
8785      /**
8786       * <code>optional .DoneEvaluatorProto done_evaluator = 6;</code>
8787       */
8788      public Builder setDoneEvaluator(org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto value) {
8789        if (doneEvaluatorBuilder_ == null) {
8790          if (value == null) {
8791            throw new NullPointerException();
8792          }
8793          doneEvaluator_ = value;
8794          onChanged();
8795        } else {
8796          doneEvaluatorBuilder_.setMessage(value);
8797        }
8798        bitField0_ |= 0x00000020;
8799        return this;
8800      }
8801      /**
8802       * <code>optional .DoneEvaluatorProto done_evaluator = 6;</code>
8803       */
8804      public Builder setDoneEvaluator(
8805          org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto.Builder builderForValue) {
8806        if (doneEvaluatorBuilder_ == null) {
8807          doneEvaluator_ = builderForValue.build();
8808          onChanged();
8809        } else {
8810          doneEvaluatorBuilder_.setMessage(builderForValue.build());
8811        }
8812        bitField0_ |= 0x00000020;
8813        return this;
8814      }
8815      /**
8816       * <code>optional .DoneEvaluatorProto done_evaluator = 6;</code>
8817       */
8818      public Builder mergeDoneEvaluator(org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto value) {
8819        if (doneEvaluatorBuilder_ == null) {
8820          if (((bitField0_ & 0x00000020) == 0x00000020) &&
8821              doneEvaluator_ != org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto.getDefaultInstance()) {
8822            doneEvaluator_ =
8823              org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto.newBuilder(doneEvaluator_).mergeFrom(value).buildPartial();
8824          } else {
8825            doneEvaluator_ = value;
8826          }
8827          onChanged();
8828        } else {
8829          doneEvaluatorBuilder_.mergeFrom(value);
8830        }
8831        bitField0_ |= 0x00000020;
8832        return this;
8833      }
8834      /**
8835       * <code>optional .DoneEvaluatorProto done_evaluator = 6;</code>
8836       */
8837      public Builder clearDoneEvaluator() {
8838        if (doneEvaluatorBuilder_ == null) {
8839          doneEvaluator_ = org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto.getDefaultInstance();
8840          onChanged();
8841        } else {
8842          doneEvaluatorBuilder_.clear();
8843        }
8844        bitField0_ = (bitField0_ & ~0x00000020);
8845        return this;
8846      }
8847      /**
8848       * <code>optional .DoneEvaluatorProto done_evaluator = 6;</code>
8849       */
8850      public org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto.Builder getDoneEvaluatorBuilder() {
8851        bitField0_ |= 0x00000020;
8852        onChanged();
8853        return getDoneEvaluatorFieldBuilder().getBuilder();
8854      }
8855      /**
8856       * <code>optional .DoneEvaluatorProto done_evaluator = 6;</code>
8857       */
8858      public org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProtoOrBuilder getDoneEvaluatorOrBuilder() {
8859        if (doneEvaluatorBuilder_ != null) {
8860          return doneEvaluatorBuilder_.getMessageOrBuilder();
8861        } else {
8862          return doneEvaluator_;
8863        }
8864      }
8865      /**
8866       * <code>optional .DoneEvaluatorProto done_evaluator = 6;</code>
8867       */
8868      private com.google.protobuf.SingleFieldBuilder<
8869          org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto, org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto.Builder, org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProtoOrBuilder> 
8870          getDoneEvaluatorFieldBuilder() {
8871        if (doneEvaluatorBuilder_ == null) {
8872          doneEvaluatorBuilder_ = new com.google.protobuf.SingleFieldBuilder<
8873              org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto, org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProto.Builder, org.apache.reef.proto.EvaluatorRuntimeProtocol.DoneEvaluatorProtoOrBuilder>(
8874                  doneEvaluator_,
8875                  getParentForChildren(),
8876                  isClean());
8877          doneEvaluator_ = null;
8878        }
8879        return doneEvaluatorBuilder_;
8880      }
8881
8882      // @@protoc_insertion_point(builder_scope:EvaluatorControlProto)
8883    }
8884
8885    static {
8886      defaultInstance = new EvaluatorControlProto(true);
8887      defaultInstance.initFields();
8888    }
8889
8890    // @@protoc_insertion_point(class_scope:EvaluatorControlProto)
8891  }
8892
8893  private static com.google.protobuf.Descriptors.Descriptor
8894    internal_static_DoneEvaluatorProto_descriptor;
8895  private static
8896    com.google.protobuf.GeneratedMessage.FieldAccessorTable
8897      internal_static_DoneEvaluatorProto_fieldAccessorTable;
8898  private static com.google.protobuf.Descriptors.Descriptor
8899    internal_static_StopEvaluatorProto_descriptor;
8900  private static
8901    com.google.protobuf.GeneratedMessage.FieldAccessorTable
8902      internal_static_StopEvaluatorProto_fieldAccessorTable;
8903  private static com.google.protobuf.Descriptors.Descriptor
8904    internal_static_KillEvaluatorProto_descriptor;
8905  private static
8906    com.google.protobuf.GeneratedMessage.FieldAccessorTable
8907      internal_static_KillEvaluatorProto_fieldAccessorTable;
8908  private static com.google.protobuf.Descriptors.Descriptor
8909    internal_static_StartTaskProto_descriptor;
8910  private static
8911    com.google.protobuf.GeneratedMessage.FieldAccessorTable
8912      internal_static_StartTaskProto_fieldAccessorTable;
8913  private static com.google.protobuf.Descriptors.Descriptor
8914    internal_static_AddContextProto_descriptor;
8915  private static
8916    com.google.protobuf.GeneratedMessage.FieldAccessorTable
8917      internal_static_AddContextProto_fieldAccessorTable;
8918  private static com.google.protobuf.Descriptors.Descriptor
8919    internal_static_RemoveContextProto_descriptor;
8920  private static
8921    com.google.protobuf.GeneratedMessage.FieldAccessorTable
8922      internal_static_RemoveContextProto_fieldAccessorTable;
8923  private static com.google.protobuf.Descriptors.Descriptor
8924    internal_static_StopTaskProto_descriptor;
8925  private static
8926    com.google.protobuf.GeneratedMessage.FieldAccessorTable
8927      internal_static_StopTaskProto_fieldAccessorTable;
8928  private static com.google.protobuf.Descriptors.Descriptor
8929    internal_static_SuspendTaskProto_descriptor;
8930  private static
8931    com.google.protobuf.GeneratedMessage.FieldAccessorTable
8932      internal_static_SuspendTaskProto_fieldAccessorTable;
8933  private static com.google.protobuf.Descriptors.Descriptor
8934    internal_static_ContextMessageProto_descriptor;
8935  private static
8936    com.google.protobuf.GeneratedMessage.FieldAccessorTable
8937      internal_static_ContextMessageProto_fieldAccessorTable;
8938  private static com.google.protobuf.Descriptors.Descriptor
8939    internal_static_ContextControlProto_descriptor;
8940  private static
8941    com.google.protobuf.GeneratedMessage.FieldAccessorTable
8942      internal_static_ContextControlProto_fieldAccessorTable;
8943  private static com.google.protobuf.Descriptors.Descriptor
8944    internal_static_EvaluatorHeartbeatProto_descriptor;
8945  private static
8946    com.google.protobuf.GeneratedMessage.FieldAccessorTable
8947      internal_static_EvaluatorHeartbeatProto_fieldAccessorTable;
8948  private static com.google.protobuf.Descriptors.Descriptor
8949    internal_static_EvaluatorControlProto_descriptor;
8950  private static
8951    com.google.protobuf.GeneratedMessage.FieldAccessorTable
8952      internal_static_EvaluatorControlProto_fieldAccessorTable;
8953
8954  public static com.google.protobuf.Descriptors.FileDescriptor
8955      getDescriptor() {
8956    return descriptor;
8957  }
8958  private static com.google.protobuf.Descriptors.FileDescriptor
8959      descriptor;
8960  static {
8961    java.lang.String[] descriptorData = {
8962      "\n\027evaluator_runtime.proto\032\031reef_service_" +
8963      "protos.proto\"\024\n\022DoneEvaluatorProto\"\024\n\022St" +
8964      "opEvaluatorProto\"\024\n\022KillEvaluatorProto\";" +
8965      "\n\016StartTaskProto\022\022\n\ncontext_id\030\001 \002(\t\022\025\n\r" +
8966      "configuration\030\002 \002(\t\"j\n\017AddContextProto\022\031" +
8967      "\n\021parent_context_id\030\001 \002(\t\022\035\n\025context_con" +
8968      "figuration\030\002 \002(\t\022\035\n\025service_configuratio" +
8969      "n\030\003 \001(\t\"(\n\022RemoveContextProto\022\022\n\ncontext" +
8970      "_id\030\001 \002(\t\"\017\n\rStopTaskProto\"\022\n\020SuspendTas" +
8971      "kProto\":\n\023ContextMessageProto\022\022\n\ncontext",
8972      "_id\030\001 \002(\t\022\017\n\007message\030\002 \002(\014\"\237\002\n\023ContextCo" +
8973      "ntrolProto\022\024\n\014task_message\030\001 \001(\014\022-\n\017cont" +
8974      "ext_message\030\002 \001(\0132\024.ContextMessageProto\022" +
8975      "%\n\013add_context\030\005 \001(\0132\020.AddContextProto\022+" +
8976      "\n\016remove_context\030\006 \001(\0132\023.RemoveContextPr" +
8977      "oto\022#\n\nstart_task\030\007 \001(\0132\017.StartTaskProto" +
8978      "\022!\n\tstop_task\030\010 \001(\0132\016.StopTaskProto\022\'\n\014s" +
8979      "uspend_task\030\t \001(\0132\021.SuspendTaskProto\"\303\001\n" +
8980      "\027EvaluatorHeartbeatProto\022\021\n\ttimestamp\030\001 " +
8981      "\002(\003\022/\n\020evaluator_status\030\002 \002(\0132\025.Evaluato",
8982      "rStatusProto\022+\n\016context_status\030\003 \003(\0132\023.C" +
8983      "ontextStatusProto\022%\n\013task_status\030\004 \001(\0132\020" +
8984      ".TaskStatusProto\022\020\n\010recovery\030\005 \001(\010\"\364\001\n\025E" +
8985      "valuatorControlProto\022\021\n\ttimestamp\030\001 \002(\003\022" +
8986      "\022\n\nidentifier\030\002 \002(\t\022-\n\017context_control\030\003" +
8987      " \001(\0132\024.ContextControlProto\022+\n\016kill_evalu" +
8988      "ator\030\004 \001(\0132\023.KillEvaluatorProto\022+\n\016stop_" +
8989      "evaluator\030\005 \001(\0132\023.StopEvaluatorProto\022+\n\016" +
8990      "done_evaluator\030\006 \001(\0132\023.DoneEvaluatorProt" +
8991      "oB7\n\025org.apache.reef.protoB\030EvaluatorRun",
8992      "timeProtocol\210\001\001\240\001\001"
8993    };
8994    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
8995      new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
8996        public com.google.protobuf.ExtensionRegistry assignDescriptors(
8997            com.google.protobuf.Descriptors.FileDescriptor root) {
8998          descriptor = root;
8999          internal_static_DoneEvaluatorProto_descriptor =
9000            getDescriptor().getMessageTypes().get(0);
9001          internal_static_DoneEvaluatorProto_fieldAccessorTable = new
9002            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
9003              internal_static_DoneEvaluatorProto_descriptor,
9004              new java.lang.String[] { });
9005          internal_static_StopEvaluatorProto_descriptor =
9006            getDescriptor().getMessageTypes().get(1);
9007          internal_static_StopEvaluatorProto_fieldAccessorTable = new
9008            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
9009              internal_static_StopEvaluatorProto_descriptor,
9010              new java.lang.String[] { });
9011          internal_static_KillEvaluatorProto_descriptor =
9012            getDescriptor().getMessageTypes().get(2);
9013          internal_static_KillEvaluatorProto_fieldAccessorTable = new
9014            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
9015              internal_static_KillEvaluatorProto_descriptor,
9016              new java.lang.String[] { });
9017          internal_static_StartTaskProto_descriptor =
9018            getDescriptor().getMessageTypes().get(3);
9019          internal_static_StartTaskProto_fieldAccessorTable = new
9020            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
9021              internal_static_StartTaskProto_descriptor,
9022              new java.lang.String[] { "ContextId", "Configuration", });
9023          internal_static_AddContextProto_descriptor =
9024            getDescriptor().getMessageTypes().get(4);
9025          internal_static_AddContextProto_fieldAccessorTable = new
9026            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
9027              internal_static_AddContextProto_descriptor,
9028              new java.lang.String[] { "ParentContextId", "ContextConfiguration", "ServiceConfiguration", });
9029          internal_static_RemoveContextProto_descriptor =
9030            getDescriptor().getMessageTypes().get(5);
9031          internal_static_RemoveContextProto_fieldAccessorTable = new
9032            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
9033              internal_static_RemoveContextProto_descriptor,
9034              new java.lang.String[] { "ContextId", });
9035          internal_static_StopTaskProto_descriptor =
9036            getDescriptor().getMessageTypes().get(6);
9037          internal_static_StopTaskProto_fieldAccessorTable = new
9038            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
9039              internal_static_StopTaskProto_descriptor,
9040              new java.lang.String[] { });
9041          internal_static_SuspendTaskProto_descriptor =
9042            getDescriptor().getMessageTypes().get(7);
9043          internal_static_SuspendTaskProto_fieldAccessorTable = new
9044            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
9045              internal_static_SuspendTaskProto_descriptor,
9046              new java.lang.String[] { });
9047          internal_static_ContextMessageProto_descriptor =
9048            getDescriptor().getMessageTypes().get(8);
9049          internal_static_ContextMessageProto_fieldAccessorTable = new
9050            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
9051              internal_static_ContextMessageProto_descriptor,
9052              new java.lang.String[] { "ContextId", "Message", });
9053          internal_static_ContextControlProto_descriptor =
9054            getDescriptor().getMessageTypes().get(9);
9055          internal_static_ContextControlProto_fieldAccessorTable = new
9056            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
9057              internal_static_ContextControlProto_descriptor,
9058              new java.lang.String[] { "TaskMessage", "ContextMessage", "AddContext", "RemoveContext", "StartTask", "StopTask", "SuspendTask", });
9059          internal_static_EvaluatorHeartbeatProto_descriptor =
9060            getDescriptor().getMessageTypes().get(10);
9061          internal_static_EvaluatorHeartbeatProto_fieldAccessorTable = new
9062            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
9063              internal_static_EvaluatorHeartbeatProto_descriptor,
9064              new java.lang.String[] { "Timestamp", "EvaluatorStatus", "ContextStatus", "TaskStatus", "Recovery", });
9065          internal_static_EvaluatorControlProto_descriptor =
9066            getDescriptor().getMessageTypes().get(11);
9067          internal_static_EvaluatorControlProto_fieldAccessorTable = new
9068            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
9069              internal_static_EvaluatorControlProto_descriptor,
9070              new java.lang.String[] { "Timestamp", "Identifier", "ContextControl", "KillEvaluator", "StopEvaluator", "DoneEvaluator", });
9071          return null;
9072        }
9073      };
9074    com.google.protobuf.Descriptors.FileDescriptor
9075      .internalBuildGeneratedFileFrom(descriptorData,
9076        new com.google.protobuf.Descriptors.FileDescriptor[] {
9077          org.apache.reef.proto.ReefServiceProtos.getDescriptor(),
9078        }, assigner);
9079  }
9080
9081  // @@protoc_insertion_point(outer_class_scope)
9082}