// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: journal/job.proto

package alluxio.proto.journal;

public final class Job {
  private Job() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
  }
  /**
   * Protobuf enum {@code alluxio.proto.journal.Status}
   *
   * <pre>
   * next available id: 6
   * </pre>
   */
  public enum Status
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * <code>CREATED = 1;</code>
     */
    CREATED(0, 1),
    /**
     * <code>CANCELED = 2;</code>
     */
    CANCELED(1, 2),
    /**
     * <code>FAILED = 3;</code>
     */
    FAILED(2, 3),
    /**
     * <code>RUNNING = 4;</code>
     */
    RUNNING(3, 4),
    /**
     * <code>COMPLETED = 5;</code>
     */
    COMPLETED(4, 5),
    ;

    /**
     * <code>CREATED = 1;</code>
     */
    public static final int CREATED_VALUE = 1;
    /**
     * <code>CANCELED = 2;</code>
     */
    public static final int CANCELED_VALUE = 2;
    /**
     * <code>FAILED = 3;</code>
     */
    public static final int FAILED_VALUE = 3;
    /**
     * <code>RUNNING = 4;</code>
     */
    public static final int RUNNING_VALUE = 4;
    /**
     * <code>COMPLETED = 5;</code>
     */
    public static final int COMPLETED_VALUE = 5;


    public final int getNumber() { return value; }

    public static Status valueOf(int value) {
      switch (value) {
        case 1: return CREATED;
        case 2: return CANCELED;
        case 3: return FAILED;
        case 4: return RUNNING;
        case 5: return COMPLETED;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<Status>
        internalGetValueMap() {
      return internalValueMap;
    }
    private static com.google.protobuf.Internal.EnumLiteMap<Status>
        internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap<Status>() {
            public Status findValueByNumber(int number) {
              return Status.valueOf(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      return getDescriptor().getValues().get(index);
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return alluxio.proto.journal.Job.getDescriptor().getEnumTypes().get(0);
    }

    private static final Status[] VALUES = values();

    public static Status valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      return VALUES[desc.getIndex()];
    }

    private final int index;
    private final int value;

    private Status(int index, int value) {
      this.index = index;
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:alluxio.proto.journal.Status)
  }

  public interface FinishJobEntryOrBuilder
      extends com.google.protobuf.MessageOrBuilder {

    // optional int64 job_id = 1;
    /**
     * <code>optional int64 job_id = 1;</code>
     */
    boolean hasJobId();
    /**
     * <code>optional int64 job_id = 1;</code>
     */
    long getJobId();

    // repeated .alluxio.proto.journal.TaskInfo task_info = 2;
    /**
     * <code>repeated .alluxio.proto.journal.TaskInfo task_info = 2;</code>
     */
    java.util.List<alluxio.proto.journal.Job.TaskInfo> 
        getTaskInfoList();
    /**
     * <code>repeated .alluxio.proto.journal.TaskInfo task_info = 2;</code>
     */
    alluxio.proto.journal.Job.TaskInfo getTaskInfo(int index);
    /**
     * <code>repeated .alluxio.proto.journal.TaskInfo task_info = 2;</code>
     */
    int getTaskInfoCount();
    /**
     * <code>repeated .alluxio.proto.journal.TaskInfo task_info = 2;</code>
     */
    java.util.List<? extends alluxio.proto.journal.Job.TaskInfoOrBuilder> 
        getTaskInfoOrBuilderList();
    /**
     * <code>repeated .alluxio.proto.journal.TaskInfo task_info = 2;</code>
     */
    alluxio.proto.journal.Job.TaskInfoOrBuilder getTaskInfoOrBuilder(
        int index);

    // optional .alluxio.proto.journal.Status status = 3;
    /**
     * <code>optional .alluxio.proto.journal.Status status = 3;</code>
     */
    boolean hasStatus();
    /**
     * <code>optional .alluxio.proto.journal.Status status = 3;</code>
     */
    alluxio.proto.journal.Job.Status getStatus();

    // optional string error_message = 4;
    /**
     * <code>optional string error_message = 4;</code>
     */
    boolean hasErrorMessage();
    /**
     * <code>optional string error_message = 4;</code>
     */
    java.lang.String getErrorMessage();
    /**
     * <code>optional string error_message = 4;</code>
     */
    com.google.protobuf.ByteString
        getErrorMessageBytes();

    // optional string result = 5;
    /**
     * <code>optional string result = 5;</code>
     */
    boolean hasResult();
    /**
     * <code>optional string result = 5;</code>
     */
    java.lang.String getResult();
    /**
     * <code>optional string result = 5;</code>
     */
    com.google.protobuf.ByteString
        getResultBytes();
  }
  /**
   * Protobuf type {@code alluxio.proto.journal.FinishJobEntry}
   *
   * <pre>
   * next available id: 6
   * </pre>
   */
  public static final class FinishJobEntry extends
      com.google.protobuf.GeneratedMessage
      implements FinishJobEntryOrBuilder {
    // Use FinishJobEntry.newBuilder() to construct.
    private FinishJobEntry(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private FinishJobEntry(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

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

    public FinishJobEntry getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private FinishJobEntry(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      initFields();
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            default: {
              if (!parseUnknownField(input, unknownFields,
                                     extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
            case 8: {
              bitField0_ |= 0x00000001;
              jobId_ = input.readInt64();
              break;
            }
            case 18: {
              if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
                taskInfo_ = new java.util.ArrayList<alluxio.proto.journal.Job.TaskInfo>();
                mutable_bitField0_ |= 0x00000002;
              }
              taskInfo_.add(input.readMessage(alluxio.proto.journal.Job.TaskInfo.PARSER, extensionRegistry));
              break;
            }
            case 24: {
              int rawValue = input.readEnum();
              alluxio.proto.journal.Job.Status value = alluxio.proto.journal.Job.Status.valueOf(rawValue);
              if (value == null) {
                unknownFields.mergeVarintField(3, rawValue);
              } else {
                bitField0_ |= 0x00000002;
                status_ = value;
              }
              break;
            }
            case 34: {
              bitField0_ |= 0x00000004;
              errorMessage_ = input.readBytes();
              break;
            }
            case 42: {
              bitField0_ |= 0x00000008;
              result_ = input.readBytes();
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e.getMessage()).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
          taskInfo_ = java.util.Collections.unmodifiableList(taskInfo_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return alluxio.proto.journal.Job.internal_static_alluxio_proto_journal_FinishJobEntry_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return alluxio.proto.journal.Job.internal_static_alluxio_proto_journal_FinishJobEntry_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              alluxio.proto.journal.Job.FinishJobEntry.class, alluxio.proto.journal.Job.FinishJobEntry.Builder.class);
    }

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

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

    private int bitField0_;
    // optional int64 job_id = 1;
    public static final int JOB_ID_FIELD_NUMBER = 1;
    private long jobId_;
    /**
     * <code>optional int64 job_id = 1;</code>
     */
    public boolean hasJobId() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * <code>optional int64 job_id = 1;</code>
     */
    public long getJobId() {
      return jobId_;
    }

    // repeated .alluxio.proto.journal.TaskInfo task_info = 2;
    public static final int TASK_INFO_FIELD_NUMBER = 2;
    private java.util.List<alluxio.proto.journal.Job.TaskInfo> taskInfo_;
    /**
     * <code>repeated .alluxio.proto.journal.TaskInfo task_info = 2;</code>
     */
    public java.util.List<alluxio.proto.journal.Job.TaskInfo> getTaskInfoList() {
      return taskInfo_;
    }
    /**
     * <code>repeated .alluxio.proto.journal.TaskInfo task_info = 2;</code>
     */
    public java.util.List<? extends alluxio.proto.journal.Job.TaskInfoOrBuilder> 
        getTaskInfoOrBuilderList() {
      return taskInfo_;
    }
    /**
     * <code>repeated .alluxio.proto.journal.TaskInfo task_info = 2;</code>
     */
    public int getTaskInfoCount() {
      return taskInfo_.size();
    }
    /**
     * <code>repeated .alluxio.proto.journal.TaskInfo task_info = 2;</code>
     */
    public alluxio.proto.journal.Job.TaskInfo getTaskInfo(int index) {
      return taskInfo_.get(index);
    }
    /**
     * <code>repeated .alluxio.proto.journal.TaskInfo task_info = 2;</code>
     */
    public alluxio.proto.journal.Job.TaskInfoOrBuilder getTaskInfoOrBuilder(
        int index) {
      return taskInfo_.get(index);
    }

    // optional .alluxio.proto.journal.Status status = 3;
    public static final int STATUS_FIELD_NUMBER = 3;
    private alluxio.proto.journal.Job.Status status_;
    /**
     * <code>optional .alluxio.proto.journal.Status status = 3;</code>
     */
    public boolean hasStatus() {
      return ((bitField0_ & 0x00000002) == 0x00000002);
    }
    /**
     * <code>optional .alluxio.proto.journal.Status status = 3;</code>
     */
    public alluxio.proto.journal.Job.Status getStatus() {
      return status_;
    }

    // optional string error_message = 4;
    public static final int ERROR_MESSAGE_FIELD_NUMBER = 4;
    private java.lang.Object errorMessage_;
    /**
     * <code>optional string error_message = 4;</code>
     */
    public boolean hasErrorMessage() {
      return ((bitField0_ & 0x00000004) == 0x00000004);
    }
    /**
     * <code>optional string error_message = 4;</code>
     */
    public java.lang.String getErrorMessage() {
      java.lang.Object ref = errorMessage_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (bs.isValidUtf8()) {
          errorMessage_ = s;
        }
        return s;
      }
    }
    /**
     * <code>optional string error_message = 4;</code>
     */
    public com.google.protobuf.ByteString
        getErrorMessageBytes() {
      java.lang.Object ref = errorMessage_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        errorMessage_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    // optional string result = 5;
    public static final int RESULT_FIELD_NUMBER = 5;
    private java.lang.Object result_;
    /**
     * <code>optional string result = 5;</code>
     */
    public boolean hasResult() {
      return ((bitField0_ & 0x00000008) == 0x00000008);
    }
    /**
     * <code>optional string result = 5;</code>
     */
    public java.lang.String getResult() {
      java.lang.Object ref = result_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (bs.isValidUtf8()) {
          result_ = s;
        }
        return s;
      }
    }
    /**
     * <code>optional string result = 5;</code>
     */
    public com.google.protobuf.ByteString
        getResultBytes() {
      java.lang.Object ref = result_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        result_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    private void initFields() {
      jobId_ = 0L;
      taskInfo_ = java.util.Collections.emptyList();
      status_ = alluxio.proto.journal.Job.Status.CREATED;
      errorMessage_ = "";
      result_ = "";
    }
    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized != -1) return isInitialized == 1;

      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        output.writeInt64(1, jobId_);
      }
      for (int i = 0; i < taskInfo_.size(); i++) {
        output.writeMessage(2, taskInfo_.get(i));
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeEnum(3, status_.getNumber());
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        output.writeBytes(4, getErrorMessageBytes());
      }
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        output.writeBytes(5, getResultBytes());
      }
      getUnknownFields().writeTo(output);
    }

    private int memoizedSerializedSize = -1;
    public int getSerializedSize() {
      int size = memoizedSerializedSize;
      if (size != -1) return size;

      size = 0;
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(1, jobId_);
      }
      for (int i = 0; i < taskInfo_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, taskInfo_.get(i));
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        size += com.google.protobuf.CodedOutputStream
          .computeEnumSize(3, status_.getNumber());
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(4, getErrorMessageBytes());
      }
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(5, getResultBytes());
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSerializedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    @java.lang.Override
    protected java.lang.Object writeReplace()
        throws java.io.ObjectStreamException {
      return super.writeReplace();
    }

    public static alluxio.proto.journal.Job.FinishJobEntry parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static alluxio.proto.journal.Job.FinishJobEntry parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static alluxio.proto.journal.Job.FinishJobEntry parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static alluxio.proto.journal.Job.FinishJobEntry parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static alluxio.proto.journal.Job.FinishJobEntry parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static alluxio.proto.journal.Job.FinishJobEntry parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static alluxio.proto.journal.Job.FinishJobEntry parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static alluxio.proto.journal.Job.FinishJobEntry parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static alluxio.proto.journal.Job.FinishJobEntry parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static alluxio.proto.journal.Job.FinishJobEntry parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }

    public static Builder newBuilder() { return Builder.create(); }
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder(alluxio.proto.journal.Job.FinishJobEntry prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code alluxio.proto.journal.FinishJobEntry}
     *
     * <pre>
     * next available id: 6
     * </pre>
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder<Builder>
       implements alluxio.proto.journal.Job.FinishJobEntryOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return alluxio.proto.journal.Job.internal_static_alluxio_proto_journal_FinishJobEntry_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return alluxio.proto.journal.Job.internal_static_alluxio_proto_journal_FinishJobEntry_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                alluxio.proto.journal.Job.FinishJobEntry.class, alluxio.proto.journal.Job.FinishJobEntry.Builder.class);
      }

      // Construct using alluxio.proto.journal.Job.FinishJobEntry.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
          getTaskInfoFieldBuilder();
        }
      }
      private static Builder create() {
        return new Builder();
      }

      public Builder clear() {
        super.clear();
        jobId_ = 0L;
        bitField0_ = (bitField0_ & ~0x00000001);
        if (taskInfoBuilder_ == null) {
          taskInfo_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000002);
        } else {
          taskInfoBuilder_.clear();
        }
        status_ = alluxio.proto.journal.Job.Status.CREATED;
        bitField0_ = (bitField0_ & ~0x00000004);
        errorMessage_ = "";
        bitField0_ = (bitField0_ & ~0x00000008);
        result_ = "";
        bitField0_ = (bitField0_ & ~0x00000010);
        return this;
      }

      public Builder clone() {
        return create().mergeFrom(buildPartial());
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return alluxio.proto.journal.Job.internal_static_alluxio_proto_journal_FinishJobEntry_descriptor;
      }

      public alluxio.proto.journal.Job.FinishJobEntry getDefaultInstanceForType() {
        return alluxio.proto.journal.Job.FinishJobEntry.getDefaultInstance();
      }

      public alluxio.proto.journal.Job.FinishJobEntry build() {
        alluxio.proto.journal.Job.FinishJobEntry result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public alluxio.proto.journal.Job.FinishJobEntry buildPartial() {
        alluxio.proto.journal.Job.FinishJobEntry result = new alluxio.proto.journal.Job.FinishJobEntry(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        result.jobId_ = jobId_;
        if (taskInfoBuilder_ == null) {
          if (((bitField0_ & 0x00000002) == 0x00000002)) {
            taskInfo_ = java.util.Collections.unmodifiableList(taskInfo_);
            bitField0_ = (bitField0_ & ~0x00000002);
          }
          result.taskInfo_ = taskInfo_;
        } else {
          result.taskInfo_ = taskInfoBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
          to_bitField0_ |= 0x00000002;
        }
        result.status_ = status_;
        if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
          to_bitField0_ |= 0x00000004;
        }
        result.errorMessage_ = errorMessage_;
        if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
          to_bitField0_ |= 0x00000008;
        }
        result.result_ = result_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof alluxio.proto.journal.Job.FinishJobEntry) {
          return mergeFrom((alluxio.proto.journal.Job.FinishJobEntry)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(alluxio.proto.journal.Job.FinishJobEntry other) {
        if (other == alluxio.proto.journal.Job.FinishJobEntry.getDefaultInstance()) return this;
        if (other.hasJobId()) {
          setJobId(other.getJobId());
        }
        if (taskInfoBuilder_ == null) {
          if (!other.taskInfo_.isEmpty()) {
            if (taskInfo_.isEmpty()) {
              taskInfo_ = other.taskInfo_;
              bitField0_ = (bitField0_ & ~0x00000002);
            } else {
              ensureTaskInfoIsMutable();
              taskInfo_.addAll(other.taskInfo_);
            }
            onChanged();
          }
        } else {
          if (!other.taskInfo_.isEmpty()) {
            if (taskInfoBuilder_.isEmpty()) {
              taskInfoBuilder_.dispose();
              taskInfoBuilder_ = null;
              taskInfo_ = other.taskInfo_;
              bitField0_ = (bitField0_ & ~0x00000002);
              taskInfoBuilder_ = 
                com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
                   getTaskInfoFieldBuilder() : null;
            } else {
              taskInfoBuilder_.addAllMessages(other.taskInfo_);
            }
          }
        }
        if (other.hasStatus()) {
          setStatus(other.getStatus());
        }
        if (other.hasErrorMessage()) {
          bitField0_ |= 0x00000008;
          errorMessage_ = other.errorMessage_;
          onChanged();
        }
        if (other.hasResult()) {
          bitField0_ |= 0x00000010;
          result_ = other.result_;
          onChanged();
        }
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }

      public final boolean isInitialized() {
        return true;
      }

      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        alluxio.proto.journal.Job.FinishJobEntry parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (alluxio.proto.journal.Job.FinishJobEntry) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // optional int64 job_id = 1;
      private long jobId_ ;
      /**
       * <code>optional int64 job_id = 1;</code>
       */
      public boolean hasJobId() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * <code>optional int64 job_id = 1;</code>
       */
      public long getJobId() {
        return jobId_;
      }
      /**
       * <code>optional int64 job_id = 1;</code>
       */
      public Builder setJobId(long value) {
        bitField0_ |= 0x00000001;
        jobId_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional int64 job_id = 1;</code>
       */
      public Builder clearJobId() {
        bitField0_ = (bitField0_ & ~0x00000001);
        jobId_ = 0L;
        onChanged();
        return this;
      }

      // repeated .alluxio.proto.journal.TaskInfo task_info = 2;
      private java.util.List<alluxio.proto.journal.Job.TaskInfo> taskInfo_ =
        java.util.Collections.emptyList();
      private void ensureTaskInfoIsMutable() {
        if (!((bitField0_ & 0x00000002) == 0x00000002)) {
          taskInfo_ = new java.util.ArrayList<alluxio.proto.journal.Job.TaskInfo>(taskInfo_);
          bitField0_ |= 0x00000002;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilder<
          alluxio.proto.journal.Job.TaskInfo, alluxio.proto.journal.Job.TaskInfo.Builder, alluxio.proto.journal.Job.TaskInfoOrBuilder> taskInfoBuilder_;

      /**
       * <code>repeated .alluxio.proto.journal.TaskInfo task_info = 2;</code>
       */
      public java.util.List<alluxio.proto.journal.Job.TaskInfo> getTaskInfoList() {
        if (taskInfoBuilder_ == null) {
          return java.util.Collections.unmodifiableList(taskInfo_);
        } else {
          return taskInfoBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .alluxio.proto.journal.TaskInfo task_info = 2;</code>
       */
      public int getTaskInfoCount() {
        if (taskInfoBuilder_ == null) {
          return taskInfo_.size();
        } else {
          return taskInfoBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .alluxio.proto.journal.TaskInfo task_info = 2;</code>
       */
      public alluxio.proto.journal.Job.TaskInfo getTaskInfo(int index) {
        if (taskInfoBuilder_ == null) {
          return taskInfo_.get(index);
        } else {
          return taskInfoBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .alluxio.proto.journal.TaskInfo task_info = 2;</code>
       */
      public Builder setTaskInfo(
          int index, alluxio.proto.journal.Job.TaskInfo value) {
        if (taskInfoBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureTaskInfoIsMutable();
          taskInfo_.set(index, value);
          onChanged();
        } else {
          taskInfoBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .alluxio.proto.journal.TaskInfo task_info = 2;</code>
       */
      public Builder setTaskInfo(
          int index, alluxio.proto.journal.Job.TaskInfo.Builder builderForValue) {
        if (taskInfoBuilder_ == null) {
          ensureTaskInfoIsMutable();
          taskInfo_.set(index, builderForValue.build());
          onChanged();
        } else {
          taskInfoBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .alluxio.proto.journal.TaskInfo task_info = 2;</code>
       */
      public Builder addTaskInfo(alluxio.proto.journal.Job.TaskInfo value) {
        if (taskInfoBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureTaskInfoIsMutable();
          taskInfo_.add(value);
          onChanged();
        } else {
          taskInfoBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .alluxio.proto.journal.TaskInfo task_info = 2;</code>
       */
      public Builder addTaskInfo(
          int index, alluxio.proto.journal.Job.TaskInfo value) {
        if (taskInfoBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureTaskInfoIsMutable();
          taskInfo_.add(index, value);
          onChanged();
        } else {
          taskInfoBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .alluxio.proto.journal.TaskInfo task_info = 2;</code>
       */
      public Builder addTaskInfo(
          alluxio.proto.journal.Job.TaskInfo.Builder builderForValue) {
        if (taskInfoBuilder_ == null) {
          ensureTaskInfoIsMutable();
          taskInfo_.add(builderForValue.build());
          onChanged();
        } else {
          taskInfoBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .alluxio.proto.journal.TaskInfo task_info = 2;</code>
       */
      public Builder addTaskInfo(
          int index, alluxio.proto.journal.Job.TaskInfo.Builder builderForValue) {
        if (taskInfoBuilder_ == null) {
          ensureTaskInfoIsMutable();
          taskInfo_.add(index, builderForValue.build());
          onChanged();
        } else {
          taskInfoBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .alluxio.proto.journal.TaskInfo task_info = 2;</code>
       */
      public Builder addAllTaskInfo(
          java.lang.Iterable<? extends alluxio.proto.journal.Job.TaskInfo> values) {
        if (taskInfoBuilder_ == null) {
          ensureTaskInfoIsMutable();
          super.addAll(values, taskInfo_);
          onChanged();
        } else {
          taskInfoBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .alluxio.proto.journal.TaskInfo task_info = 2;</code>
       */
      public Builder clearTaskInfo() {
        if (taskInfoBuilder_ == null) {
          taskInfo_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000002);
          onChanged();
        } else {
          taskInfoBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .alluxio.proto.journal.TaskInfo task_info = 2;</code>
       */
      public Builder removeTaskInfo(int index) {
        if (taskInfoBuilder_ == null) {
          ensureTaskInfoIsMutable();
          taskInfo_.remove(index);
          onChanged();
        } else {
          taskInfoBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .alluxio.proto.journal.TaskInfo task_info = 2;</code>
       */
      public alluxio.proto.journal.Job.TaskInfo.Builder getTaskInfoBuilder(
          int index) {
        return getTaskInfoFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .alluxio.proto.journal.TaskInfo task_info = 2;</code>
       */
      public alluxio.proto.journal.Job.TaskInfoOrBuilder getTaskInfoOrBuilder(
          int index) {
        if (taskInfoBuilder_ == null) {
          return taskInfo_.get(index);  } else {
          return taskInfoBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .alluxio.proto.journal.TaskInfo task_info = 2;</code>
       */
      public java.util.List<? extends alluxio.proto.journal.Job.TaskInfoOrBuilder> 
           getTaskInfoOrBuilderList() {
        if (taskInfoBuilder_ != null) {
          return taskInfoBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(taskInfo_);
        }
      }
      /**
       * <code>repeated .alluxio.proto.journal.TaskInfo task_info = 2;</code>
       */
      public alluxio.proto.journal.Job.TaskInfo.Builder addTaskInfoBuilder() {
        return getTaskInfoFieldBuilder().addBuilder(
            alluxio.proto.journal.Job.TaskInfo.getDefaultInstance());
      }
      /**
       * <code>repeated .alluxio.proto.journal.TaskInfo task_info = 2;</code>
       */
      public alluxio.proto.journal.Job.TaskInfo.Builder addTaskInfoBuilder(
          int index) {
        return getTaskInfoFieldBuilder().addBuilder(
            index, alluxio.proto.journal.Job.TaskInfo.getDefaultInstance());
      }
      /**
       * <code>repeated .alluxio.proto.journal.TaskInfo task_info = 2;</code>
       */
      public java.util.List<alluxio.proto.journal.Job.TaskInfo.Builder> 
           getTaskInfoBuilderList() {
        return getTaskInfoFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilder<
          alluxio.proto.journal.Job.TaskInfo, alluxio.proto.journal.Job.TaskInfo.Builder, alluxio.proto.journal.Job.TaskInfoOrBuilder> 
          getTaskInfoFieldBuilder() {
        if (taskInfoBuilder_ == null) {
          taskInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
              alluxio.proto.journal.Job.TaskInfo, alluxio.proto.journal.Job.TaskInfo.Builder, alluxio.proto.journal.Job.TaskInfoOrBuilder>(
                  taskInfo_,
                  ((bitField0_ & 0x00000002) == 0x00000002),
                  getParentForChildren(),
                  isClean());
          taskInfo_ = null;
        }
        return taskInfoBuilder_;
      }

      // optional .alluxio.proto.journal.Status status = 3;
      private alluxio.proto.journal.Job.Status status_ = alluxio.proto.journal.Job.Status.CREATED;
      /**
       * <code>optional .alluxio.proto.journal.Status status = 3;</code>
       */
      public boolean hasStatus() {
        return ((bitField0_ & 0x00000004) == 0x00000004);
      }
      /**
       * <code>optional .alluxio.proto.journal.Status status = 3;</code>
       */
      public alluxio.proto.journal.Job.Status getStatus() {
        return status_;
      }
      /**
       * <code>optional .alluxio.proto.journal.Status status = 3;</code>
       */
      public Builder setStatus(alluxio.proto.journal.Job.Status value) {
        if (value == null) {
          throw new NullPointerException();
        }
        bitField0_ |= 0x00000004;
        status_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional .alluxio.proto.journal.Status status = 3;</code>
       */
      public Builder clearStatus() {
        bitField0_ = (bitField0_ & ~0x00000004);
        status_ = alluxio.proto.journal.Job.Status.CREATED;
        onChanged();
        return this;
      }

      // optional string error_message = 4;
      private java.lang.Object errorMessage_ = "";
      /**
       * <code>optional string error_message = 4;</code>
       */
      public boolean hasErrorMessage() {
        return ((bitField0_ & 0x00000008) == 0x00000008);
      }
      /**
       * <code>optional string error_message = 4;</code>
       */
      public java.lang.String getErrorMessage() {
        java.lang.Object ref = errorMessage_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          errorMessage_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>optional string error_message = 4;</code>
       */
      public com.google.protobuf.ByteString
          getErrorMessageBytes() {
        java.lang.Object ref = errorMessage_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          errorMessage_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>optional string error_message = 4;</code>
       */
      public Builder setErrorMessage(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000008;
        errorMessage_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional string error_message = 4;</code>
       */
      public Builder clearErrorMessage() {
        bitField0_ = (bitField0_ & ~0x00000008);
        errorMessage_ = getDefaultInstance().getErrorMessage();
        onChanged();
        return this;
      }
      /**
       * <code>optional string error_message = 4;</code>
       */
      public Builder setErrorMessageBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000008;
        errorMessage_ = value;
        onChanged();
        return this;
      }

      // optional string result = 5;
      private java.lang.Object result_ = "";
      /**
       * <code>optional string result = 5;</code>
       */
      public boolean hasResult() {
        return ((bitField0_ & 0x00000010) == 0x00000010);
      }
      /**
       * <code>optional string result = 5;</code>
       */
      public java.lang.String getResult() {
        java.lang.Object ref = result_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          result_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>optional string result = 5;</code>
       */
      public com.google.protobuf.ByteString
          getResultBytes() {
        java.lang.Object ref = result_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          result_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>optional string result = 5;</code>
       */
      public Builder setResult(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000010;
        result_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional string result = 5;</code>
       */
      public Builder clearResult() {
        bitField0_ = (bitField0_ & ~0x00000010);
        result_ = getDefaultInstance().getResult();
        onChanged();
        return this;
      }
      /**
       * <code>optional string result = 5;</code>
       */
      public Builder setResultBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000010;
        result_ = value;
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:alluxio.proto.journal.FinishJobEntry)
    }

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

    // @@protoc_insertion_point(class_scope:alluxio.proto.journal.FinishJobEntry)
  }

  public interface StartJobEntryOrBuilder
      extends com.google.protobuf.MessageOrBuilder {

    // optional int64 job_id = 1;
    /**
     * <code>optional int64 job_id = 1;</code>
     */
    boolean hasJobId();
    /**
     * <code>optional int64 job_id = 1;</code>
     */
    long getJobId();

    // optional string name = 2;
    /**
     * <code>optional string name = 2;</code>
     */
    boolean hasName();
    /**
     * <code>optional string name = 2;</code>
     */
    java.lang.String getName();
    /**
     * <code>optional string name = 2;</code>
     */
    com.google.protobuf.ByteString
        getNameBytes();

    // optional bytes serialized_job_config = 3;
    /**
     * <code>optional bytes serialized_job_config = 3;</code>
     */
    boolean hasSerializedJobConfig();
    /**
     * <code>optional bytes serialized_job_config = 3;</code>
     */
    com.google.protobuf.ByteString getSerializedJobConfig();
  }
  /**
   * Protobuf type {@code alluxio.proto.journal.StartJobEntry}
   *
   * <pre>
   * next available id: 4
   * </pre>
   */
  public static final class StartJobEntry extends
      com.google.protobuf.GeneratedMessage
      implements StartJobEntryOrBuilder {
    // Use StartJobEntry.newBuilder() to construct.
    private StartJobEntry(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private StartJobEntry(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

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

    public StartJobEntry getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private StartJobEntry(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      initFields();
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            default: {
              if (!parseUnknownField(input, unknownFields,
                                     extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
            case 8: {
              bitField0_ |= 0x00000001;
              jobId_ = input.readInt64();
              break;
            }
            case 18: {
              bitField0_ |= 0x00000002;
              name_ = input.readBytes();
              break;
            }
            case 26: {
              bitField0_ |= 0x00000004;
              serializedJobConfig_ = input.readBytes();
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e.getMessage()).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return alluxio.proto.journal.Job.internal_static_alluxio_proto_journal_StartJobEntry_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return alluxio.proto.journal.Job.internal_static_alluxio_proto_journal_StartJobEntry_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              alluxio.proto.journal.Job.StartJobEntry.class, alluxio.proto.journal.Job.StartJobEntry.Builder.class);
    }

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

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

    private int bitField0_;
    // optional int64 job_id = 1;
    public static final int JOB_ID_FIELD_NUMBER = 1;
    private long jobId_;
    /**
     * <code>optional int64 job_id = 1;</code>
     */
    public boolean hasJobId() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * <code>optional int64 job_id = 1;</code>
     */
    public long getJobId() {
      return jobId_;
    }

    // optional string name = 2;
    public static final int NAME_FIELD_NUMBER = 2;
    private java.lang.Object name_;
    /**
     * <code>optional string name = 2;</code>
     */
    public boolean hasName() {
      return ((bitField0_ & 0x00000002) == 0x00000002);
    }
    /**
     * <code>optional string name = 2;</code>
     */
    public java.lang.String getName() {
      java.lang.Object ref = name_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (bs.isValidUtf8()) {
          name_ = s;
        }
        return s;
      }
    }
    /**
     * <code>optional string name = 2;</code>
     */
    public com.google.protobuf.ByteString
        getNameBytes() {
      java.lang.Object ref = name_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        name_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    // optional bytes serialized_job_config = 3;
    public static final int SERIALIZED_JOB_CONFIG_FIELD_NUMBER = 3;
    private com.google.protobuf.ByteString serializedJobConfig_;
    /**
     * <code>optional bytes serialized_job_config = 3;</code>
     */
    public boolean hasSerializedJobConfig() {
      return ((bitField0_ & 0x00000004) == 0x00000004);
    }
    /**
     * <code>optional bytes serialized_job_config = 3;</code>
     */
    public com.google.protobuf.ByteString getSerializedJobConfig() {
      return serializedJobConfig_;
    }

    private void initFields() {
      jobId_ = 0L;
      name_ = "";
      serializedJobConfig_ = com.google.protobuf.ByteString.EMPTY;
    }
    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized != -1) return isInitialized == 1;

      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        output.writeInt64(1, jobId_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeBytes(2, getNameBytes());
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        output.writeBytes(3, serializedJobConfig_);
      }
      getUnknownFields().writeTo(output);
    }

    private int memoizedSerializedSize = -1;
    public int getSerializedSize() {
      int size = memoizedSerializedSize;
      if (size != -1) return size;

      size = 0;
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(1, jobId_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(2, getNameBytes());
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(3, serializedJobConfig_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSerializedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    @java.lang.Override
    protected java.lang.Object writeReplace()
        throws java.io.ObjectStreamException {
      return super.writeReplace();
    }

    public static alluxio.proto.journal.Job.StartJobEntry parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static alluxio.proto.journal.Job.StartJobEntry parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static alluxio.proto.journal.Job.StartJobEntry parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static alluxio.proto.journal.Job.StartJobEntry parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static alluxio.proto.journal.Job.StartJobEntry parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static alluxio.proto.journal.Job.StartJobEntry parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static alluxio.proto.journal.Job.StartJobEntry parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static alluxio.proto.journal.Job.StartJobEntry parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static alluxio.proto.journal.Job.StartJobEntry parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static alluxio.proto.journal.Job.StartJobEntry parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }

    public static Builder newBuilder() { return Builder.create(); }
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder(alluxio.proto.journal.Job.StartJobEntry prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code alluxio.proto.journal.StartJobEntry}
     *
     * <pre>
     * next available id: 4
     * </pre>
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder<Builder>
       implements alluxio.proto.journal.Job.StartJobEntryOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return alluxio.proto.journal.Job.internal_static_alluxio_proto_journal_StartJobEntry_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return alluxio.proto.journal.Job.internal_static_alluxio_proto_journal_StartJobEntry_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                alluxio.proto.journal.Job.StartJobEntry.class, alluxio.proto.journal.Job.StartJobEntry.Builder.class);
      }

      // Construct using alluxio.proto.journal.Job.StartJobEntry.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
        }
      }
      private static Builder create() {
        return new Builder();
      }

      public Builder clear() {
        super.clear();
        jobId_ = 0L;
        bitField0_ = (bitField0_ & ~0x00000001);
        name_ = "";
        bitField0_ = (bitField0_ & ~0x00000002);
        serializedJobConfig_ = com.google.protobuf.ByteString.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000004);
        return this;
      }

      public Builder clone() {
        return create().mergeFrom(buildPartial());
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return alluxio.proto.journal.Job.internal_static_alluxio_proto_journal_StartJobEntry_descriptor;
      }

      public alluxio.proto.journal.Job.StartJobEntry getDefaultInstanceForType() {
        return alluxio.proto.journal.Job.StartJobEntry.getDefaultInstance();
      }

      public alluxio.proto.journal.Job.StartJobEntry build() {
        alluxio.proto.journal.Job.StartJobEntry result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public alluxio.proto.journal.Job.StartJobEntry buildPartial() {
        alluxio.proto.journal.Job.StartJobEntry result = new alluxio.proto.journal.Job.StartJobEntry(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        result.jobId_ = jobId_;
        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
          to_bitField0_ |= 0x00000002;
        }
        result.name_ = name_;
        if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
          to_bitField0_ |= 0x00000004;
        }
        result.serializedJobConfig_ = serializedJobConfig_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof alluxio.proto.journal.Job.StartJobEntry) {
          return mergeFrom((alluxio.proto.journal.Job.StartJobEntry)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(alluxio.proto.journal.Job.StartJobEntry other) {
        if (other == alluxio.proto.journal.Job.StartJobEntry.getDefaultInstance()) return this;
        if (other.hasJobId()) {
          setJobId(other.getJobId());
        }
        if (other.hasName()) {
          bitField0_ |= 0x00000002;
          name_ = other.name_;
          onChanged();
        }
        if (other.hasSerializedJobConfig()) {
          setSerializedJobConfig(other.getSerializedJobConfig());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }

      public final boolean isInitialized() {
        return true;
      }

      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        alluxio.proto.journal.Job.StartJobEntry parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (alluxio.proto.journal.Job.StartJobEntry) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // optional int64 job_id = 1;
      private long jobId_ ;
      /**
       * <code>optional int64 job_id = 1;</code>
       */
      public boolean hasJobId() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * <code>optional int64 job_id = 1;</code>
       */
      public long getJobId() {
        return jobId_;
      }
      /**
       * <code>optional int64 job_id = 1;</code>
       */
      public Builder setJobId(long value) {
        bitField0_ |= 0x00000001;
        jobId_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional int64 job_id = 1;</code>
       */
      public Builder clearJobId() {
        bitField0_ = (bitField0_ & ~0x00000001);
        jobId_ = 0L;
        onChanged();
        return this;
      }

      // optional string name = 2;
      private java.lang.Object name_ = "";
      /**
       * <code>optional string name = 2;</code>
       */
      public boolean hasName() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      /**
       * <code>optional string name = 2;</code>
       */
      public java.lang.String getName() {
        java.lang.Object ref = name_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          name_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>optional string name = 2;</code>
       */
      public com.google.protobuf.ByteString
          getNameBytes() {
        java.lang.Object ref = name_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          name_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>optional string name = 2;</code>
       */
      public Builder setName(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
        name_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional string name = 2;</code>
       */
      public Builder clearName() {
        bitField0_ = (bitField0_ & ~0x00000002);
        name_ = getDefaultInstance().getName();
        onChanged();
        return this;
      }
      /**
       * <code>optional string name = 2;</code>
       */
      public Builder setNameBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
        name_ = value;
        onChanged();
        return this;
      }

      // optional bytes serialized_job_config = 3;
      private com.google.protobuf.ByteString serializedJobConfig_ = com.google.protobuf.ByteString.EMPTY;
      /**
       * <code>optional bytes serialized_job_config = 3;</code>
       */
      public boolean hasSerializedJobConfig() {
        return ((bitField0_ & 0x00000004) == 0x00000004);
      }
      /**
       * <code>optional bytes serialized_job_config = 3;</code>
       */
      public com.google.protobuf.ByteString getSerializedJobConfig() {
        return serializedJobConfig_;
      }
      /**
       * <code>optional bytes serialized_job_config = 3;</code>
       */
      public Builder setSerializedJobConfig(com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000004;
        serializedJobConfig_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional bytes serialized_job_config = 3;</code>
       */
      public Builder clearSerializedJobConfig() {
        bitField0_ = (bitField0_ & ~0x00000004);
        serializedJobConfig_ = getDefaultInstance().getSerializedJobConfig();
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:alluxio.proto.journal.StartJobEntry)
    }

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

    // @@protoc_insertion_point(class_scope:alluxio.proto.journal.StartJobEntry)
  }

  public interface TaskInfoOrBuilder
      extends com.google.protobuf.MessageOrBuilder {

    // optional int64 job_id = 1;
    /**
     * <code>optional int64 job_id = 1;</code>
     */
    boolean hasJobId();
    /**
     * <code>optional int64 job_id = 1;</code>
     */
    long getJobId();

    // optional int32 task_id = 2;
    /**
     * <code>optional int32 task_id = 2;</code>
     */
    boolean hasTaskId();
    /**
     * <code>optional int32 task_id = 2;</code>
     */
    int getTaskId();

    // optional .alluxio.proto.journal.Status status = 3;
    /**
     * <code>optional .alluxio.proto.journal.Status status = 3;</code>
     */
    boolean hasStatus();
    /**
     * <code>optional .alluxio.proto.journal.Status status = 3;</code>
     */
    alluxio.proto.journal.Job.Status getStatus();

    // optional string error_message = 4;
    /**
     * <code>optional string error_message = 4;</code>
     */
    boolean hasErrorMessage();
    /**
     * <code>optional string error_message = 4;</code>
     */
    java.lang.String getErrorMessage();
    /**
     * <code>optional string error_message = 4;</code>
     */
    com.google.protobuf.ByteString
        getErrorMessageBytes();

    // optional bytes result = 5;
    /**
     * <code>optional bytes result = 5;</code>
     */
    boolean hasResult();
    /**
     * <code>optional bytes result = 5;</code>
     */
    com.google.protobuf.ByteString getResult();
  }
  /**
   * Protobuf type {@code alluxio.proto.journal.TaskInfo}
   *
   * <pre>
   * next available id: 6
   * </pre>
   */
  public static final class TaskInfo extends
      com.google.protobuf.GeneratedMessage
      implements TaskInfoOrBuilder {
    // Use TaskInfo.newBuilder() to construct.
    private TaskInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private TaskInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

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

    public TaskInfo getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private TaskInfo(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      initFields();
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            default: {
              if (!parseUnknownField(input, unknownFields,
                                     extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
            case 8: {
              bitField0_ |= 0x00000001;
              jobId_ = input.readInt64();
              break;
            }
            case 16: {
              bitField0_ |= 0x00000002;
              taskId_ = input.readInt32();
              break;
            }
            case 24: {
              int rawValue = input.readEnum();
              alluxio.proto.journal.Job.Status value = alluxio.proto.journal.Job.Status.valueOf(rawValue);
              if (value == null) {
                unknownFields.mergeVarintField(3, rawValue);
              } else {
                bitField0_ |= 0x00000004;
                status_ = value;
              }
              break;
            }
            case 34: {
              bitField0_ |= 0x00000008;
              errorMessage_ = input.readBytes();
              break;
            }
            case 42: {
              bitField0_ |= 0x00000010;
              result_ = input.readBytes();
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e.getMessage()).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return alluxio.proto.journal.Job.internal_static_alluxio_proto_journal_TaskInfo_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return alluxio.proto.journal.Job.internal_static_alluxio_proto_journal_TaskInfo_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              alluxio.proto.journal.Job.TaskInfo.class, alluxio.proto.journal.Job.TaskInfo.Builder.class);
    }

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

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

    private int bitField0_;
    // optional int64 job_id = 1;
    public static final int JOB_ID_FIELD_NUMBER = 1;
    private long jobId_;
    /**
     * <code>optional int64 job_id = 1;</code>
     */
    public boolean hasJobId() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * <code>optional int64 job_id = 1;</code>
     */
    public long getJobId() {
      return jobId_;
    }

    // optional int32 task_id = 2;
    public static final int TASK_ID_FIELD_NUMBER = 2;
    private int taskId_;
    /**
     * <code>optional int32 task_id = 2;</code>
     */
    public boolean hasTaskId() {
      return ((bitField0_ & 0x00000002) == 0x00000002);
    }
    /**
     * <code>optional int32 task_id = 2;</code>
     */
    public int getTaskId() {
      return taskId_;
    }

    // optional .alluxio.proto.journal.Status status = 3;
    public static final int STATUS_FIELD_NUMBER = 3;
    private alluxio.proto.journal.Job.Status status_;
    /**
     * <code>optional .alluxio.proto.journal.Status status = 3;</code>
     */
    public boolean hasStatus() {
      return ((bitField0_ & 0x00000004) == 0x00000004);
    }
    /**
     * <code>optional .alluxio.proto.journal.Status status = 3;</code>
     */
    public alluxio.proto.journal.Job.Status getStatus() {
      return status_;
    }

    // optional string error_message = 4;
    public static final int ERROR_MESSAGE_FIELD_NUMBER = 4;
    private java.lang.Object errorMessage_;
    /**
     * <code>optional string error_message = 4;</code>
     */
    public boolean hasErrorMessage() {
      return ((bitField0_ & 0x00000008) == 0x00000008);
    }
    /**
     * <code>optional string error_message = 4;</code>
     */
    public java.lang.String getErrorMessage() {
      java.lang.Object ref = errorMessage_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (bs.isValidUtf8()) {
          errorMessage_ = s;
        }
        return s;
      }
    }
    /**
     * <code>optional string error_message = 4;</code>
     */
    public com.google.protobuf.ByteString
        getErrorMessageBytes() {
      java.lang.Object ref = errorMessage_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        errorMessage_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    // optional bytes result = 5;
    public static final int RESULT_FIELD_NUMBER = 5;
    private com.google.protobuf.ByteString result_;
    /**
     * <code>optional bytes result = 5;</code>
     */
    public boolean hasResult() {
      return ((bitField0_ & 0x00000010) == 0x00000010);
    }
    /**
     * <code>optional bytes result = 5;</code>
     */
    public com.google.protobuf.ByteString getResult() {
      return result_;
    }

    private void initFields() {
      jobId_ = 0L;
      taskId_ = 0;
      status_ = alluxio.proto.journal.Job.Status.CREATED;
      errorMessage_ = "";
      result_ = com.google.protobuf.ByteString.EMPTY;
    }
    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized != -1) return isInitialized == 1;

      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        output.writeInt64(1, jobId_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeInt32(2, taskId_);
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        output.writeEnum(3, status_.getNumber());
      }
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        output.writeBytes(4, getErrorMessageBytes());
      }
      if (((bitField0_ & 0x00000010) == 0x00000010)) {
        output.writeBytes(5, result_);
      }
      getUnknownFields().writeTo(output);
    }

    private int memoizedSerializedSize = -1;
    public int getSerializedSize() {
      int size = memoizedSerializedSize;
      if (size != -1) return size;

      size = 0;
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(1, jobId_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(2, taskId_);
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        size += com.google.protobuf.CodedOutputStream
          .computeEnumSize(3, status_.getNumber());
      }
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(4, getErrorMessageBytes());
      }
      if (((bitField0_ & 0x00000010) == 0x00000010)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(5, result_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSerializedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    @java.lang.Override
    protected java.lang.Object writeReplace()
        throws java.io.ObjectStreamException {
      return super.writeReplace();
    }

    public static alluxio.proto.journal.Job.TaskInfo parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static alluxio.proto.journal.Job.TaskInfo parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static alluxio.proto.journal.Job.TaskInfo parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static alluxio.proto.journal.Job.TaskInfo parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static alluxio.proto.journal.Job.TaskInfo parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static alluxio.proto.journal.Job.TaskInfo parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static alluxio.proto.journal.Job.TaskInfo parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static alluxio.proto.journal.Job.TaskInfo parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static alluxio.proto.journal.Job.TaskInfo parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static alluxio.proto.journal.Job.TaskInfo parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }

    public static Builder newBuilder() { return Builder.create(); }
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder(alluxio.proto.journal.Job.TaskInfo prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code alluxio.proto.journal.TaskInfo}
     *
     * <pre>
     * next available id: 6
     * </pre>
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder<Builder>
       implements alluxio.proto.journal.Job.TaskInfoOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return alluxio.proto.journal.Job.internal_static_alluxio_proto_journal_TaskInfo_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return alluxio.proto.journal.Job.internal_static_alluxio_proto_journal_TaskInfo_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                alluxio.proto.journal.Job.TaskInfo.class, alluxio.proto.journal.Job.TaskInfo.Builder.class);
      }

      // Construct using alluxio.proto.journal.Job.TaskInfo.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
        }
      }
      private static Builder create() {
        return new Builder();
      }

      public Builder clear() {
        super.clear();
        jobId_ = 0L;
        bitField0_ = (bitField0_ & ~0x00000001);
        taskId_ = 0;
        bitField0_ = (bitField0_ & ~0x00000002);
        status_ = alluxio.proto.journal.Job.Status.CREATED;
        bitField0_ = (bitField0_ & ~0x00000004);
        errorMessage_ = "";
        bitField0_ = (bitField0_ & ~0x00000008);
        result_ = com.google.protobuf.ByteString.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000010);
        return this;
      }

      public Builder clone() {
        return create().mergeFrom(buildPartial());
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return alluxio.proto.journal.Job.internal_static_alluxio_proto_journal_TaskInfo_descriptor;
      }

      public alluxio.proto.journal.Job.TaskInfo getDefaultInstanceForType() {
        return alluxio.proto.journal.Job.TaskInfo.getDefaultInstance();
      }

      public alluxio.proto.journal.Job.TaskInfo build() {
        alluxio.proto.journal.Job.TaskInfo result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public alluxio.proto.journal.Job.TaskInfo buildPartial() {
        alluxio.proto.journal.Job.TaskInfo result = new alluxio.proto.journal.Job.TaskInfo(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        result.jobId_ = jobId_;
        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
          to_bitField0_ |= 0x00000002;
        }
        result.taskId_ = taskId_;
        if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
          to_bitField0_ |= 0x00000004;
        }
        result.status_ = status_;
        if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
          to_bitField0_ |= 0x00000008;
        }
        result.errorMessage_ = errorMessage_;
        if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
          to_bitField0_ |= 0x00000010;
        }
        result.result_ = result_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof alluxio.proto.journal.Job.TaskInfo) {
          return mergeFrom((alluxio.proto.journal.Job.TaskInfo)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(alluxio.proto.journal.Job.TaskInfo other) {
        if (other == alluxio.proto.journal.Job.TaskInfo.getDefaultInstance()) return this;
        if (other.hasJobId()) {
          setJobId(other.getJobId());
        }
        if (other.hasTaskId()) {
          setTaskId(other.getTaskId());
        }
        if (other.hasStatus()) {
          setStatus(other.getStatus());
        }
        if (other.hasErrorMessage()) {
          bitField0_ |= 0x00000008;
          errorMessage_ = other.errorMessage_;
          onChanged();
        }
        if (other.hasResult()) {
          setResult(other.getResult());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }

      public final boolean isInitialized() {
        return true;
      }

      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        alluxio.proto.journal.Job.TaskInfo parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (alluxio.proto.journal.Job.TaskInfo) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // optional int64 job_id = 1;
      private long jobId_ ;
      /**
       * <code>optional int64 job_id = 1;</code>
       */
      public boolean hasJobId() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * <code>optional int64 job_id = 1;</code>
       */
      public long getJobId() {
        return jobId_;
      }
      /**
       * <code>optional int64 job_id = 1;</code>
       */
      public Builder setJobId(long value) {
        bitField0_ |= 0x00000001;
        jobId_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional int64 job_id = 1;</code>
       */
      public Builder clearJobId() {
        bitField0_ = (bitField0_ & ~0x00000001);
        jobId_ = 0L;
        onChanged();
        return this;
      }

      // optional int32 task_id = 2;
      private int taskId_ ;
      /**
       * <code>optional int32 task_id = 2;</code>
       */
      public boolean hasTaskId() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      /**
       * <code>optional int32 task_id = 2;</code>
       */
      public int getTaskId() {
        return taskId_;
      }
      /**
       * <code>optional int32 task_id = 2;</code>
       */
      public Builder setTaskId(int value) {
        bitField0_ |= 0x00000002;
        taskId_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional int32 task_id = 2;</code>
       */
      public Builder clearTaskId() {
        bitField0_ = (bitField0_ & ~0x00000002);
        taskId_ = 0;
        onChanged();
        return this;
      }

      // optional .alluxio.proto.journal.Status status = 3;
      private alluxio.proto.journal.Job.Status status_ = alluxio.proto.journal.Job.Status.CREATED;
      /**
       * <code>optional .alluxio.proto.journal.Status status = 3;</code>
       */
      public boolean hasStatus() {
        return ((bitField0_ & 0x00000004) == 0x00000004);
      }
      /**
       * <code>optional .alluxio.proto.journal.Status status = 3;</code>
       */
      public alluxio.proto.journal.Job.Status getStatus() {
        return status_;
      }
      /**
       * <code>optional .alluxio.proto.journal.Status status = 3;</code>
       */
      public Builder setStatus(alluxio.proto.journal.Job.Status value) {
        if (value == null) {
          throw new NullPointerException();
        }
        bitField0_ |= 0x00000004;
        status_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional .alluxio.proto.journal.Status status = 3;</code>
       */
      public Builder clearStatus() {
        bitField0_ = (bitField0_ & ~0x00000004);
        status_ = alluxio.proto.journal.Job.Status.CREATED;
        onChanged();
        return this;
      }

      // optional string error_message = 4;
      private java.lang.Object errorMessage_ = "";
      /**
       * <code>optional string error_message = 4;</code>
       */
      public boolean hasErrorMessage() {
        return ((bitField0_ & 0x00000008) == 0x00000008);
      }
      /**
       * <code>optional string error_message = 4;</code>
       */
      public java.lang.String getErrorMessage() {
        java.lang.Object ref = errorMessage_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          errorMessage_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>optional string error_message = 4;</code>
       */
      public com.google.protobuf.ByteString
          getErrorMessageBytes() {
        java.lang.Object ref = errorMessage_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          errorMessage_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>optional string error_message = 4;</code>
       */
      public Builder setErrorMessage(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000008;
        errorMessage_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional string error_message = 4;</code>
       */
      public Builder clearErrorMessage() {
        bitField0_ = (bitField0_ & ~0x00000008);
        errorMessage_ = getDefaultInstance().getErrorMessage();
        onChanged();
        return this;
      }
      /**
       * <code>optional string error_message = 4;</code>
       */
      public Builder setErrorMessageBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000008;
        errorMessage_ = value;
        onChanged();
        return this;
      }

      // optional bytes result = 5;
      private com.google.protobuf.ByteString result_ = com.google.protobuf.ByteString.EMPTY;
      /**
       * <code>optional bytes result = 5;</code>
       */
      public boolean hasResult() {
        return ((bitField0_ & 0x00000010) == 0x00000010);
      }
      /**
       * <code>optional bytes result = 5;</code>
       */
      public com.google.protobuf.ByteString getResult() {
        return result_;
      }
      /**
       * <code>optional bytes result = 5;</code>
       */
      public Builder setResult(com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000010;
        result_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional bytes result = 5;</code>
       */
      public Builder clearResult() {
        bitField0_ = (bitField0_ & ~0x00000010);
        result_ = getDefaultInstance().getResult();
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:alluxio.proto.journal.TaskInfo)
    }

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

    // @@protoc_insertion_point(class_scope:alluxio.proto.journal.TaskInfo)
  }

  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_alluxio_proto_journal_FinishJobEntry_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_alluxio_proto_journal_FinishJobEntry_fieldAccessorTable;
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_alluxio_proto_journal_StartJobEntry_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_alluxio_proto_journal_StartJobEntry_fieldAccessorTable;
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_alluxio_proto_journal_TaskInfo_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_alluxio_proto_journal_TaskInfo_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n\021journal/job.proto\022\025alluxio.proto.journ" +
      "al\"\252\001\n\016FinishJobEntry\022\016\n\006job_id\030\001 \001(\003\0222\n" +
      "\ttask_info\030\002 \003(\0132\037.alluxio.proto.journal" +
      ".TaskInfo\022-\n\006status\030\003 \001(\0162\035.alluxio.prot" +
      "o.journal.Status\022\025\n\rerror_message\030\004 \001(\t\022" +
      "\016\n\006result\030\005 \001(\t\"L\n\rStartJobEntry\022\016\n\006job_" +
      "id\030\001 \001(\003\022\014\n\004name\030\002 \001(\t\022\035\n\025serialized_job" +
      "_config\030\003 \001(\014\"\201\001\n\010TaskInfo\022\016\n\006job_id\030\001 \001" +
      "(\003\022\017\n\007task_id\030\002 \001(\005\022-\n\006status\030\003 \001(\0162\035.al" +
      "luxio.proto.journal.Status\022\025\n\rerror_mess",
      "age\030\004 \001(\t\022\016\n\006result\030\005 \001(\014*K\n\006Status\022\013\n\007C" +
      "REATED\020\001\022\014\n\010CANCELED\020\002\022\n\n\006FAILED\020\003\022\013\n\007RU" +
      "NNING\020\004\022\r\n\tCOMPLETED\020\005"
    };
    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
      new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
        public com.google.protobuf.ExtensionRegistry assignDescriptors(
            com.google.protobuf.Descriptors.FileDescriptor root) {
          descriptor = root;
          internal_static_alluxio_proto_journal_FinishJobEntry_descriptor =
            getDescriptor().getMessageTypes().get(0);
          internal_static_alluxio_proto_journal_FinishJobEntry_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_alluxio_proto_journal_FinishJobEntry_descriptor,
              new java.lang.String[] { "JobId", "TaskInfo", "Status", "ErrorMessage", "Result", });
          internal_static_alluxio_proto_journal_StartJobEntry_descriptor =
            getDescriptor().getMessageTypes().get(1);
          internal_static_alluxio_proto_journal_StartJobEntry_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_alluxio_proto_journal_StartJobEntry_descriptor,
              new java.lang.String[] { "JobId", "Name", "SerializedJobConfig", });
          internal_static_alluxio_proto_journal_TaskInfo_descriptor =
            getDescriptor().getMessageTypes().get(2);
          internal_static_alluxio_proto_journal_TaskInfo_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_alluxio_proto_journal_TaskInfo_descriptor,
              new java.lang.String[] { "JobId", "TaskId", "Status", "ErrorMessage", "Result", });
          return null;
        }
      };
    com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
        }, assigner);
  }

  // @@protoc_insertion_point(outer_class_scope)
}
