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