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