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

cz.proto.TaskProgress Maven / Gradle / Ivy

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

package cz.proto;

/**
 * Protobuf type {@code cz.proto.TaskProgress}
 */
public final class TaskProgress extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:cz.proto.TaskProgress)
    TaskProgressOrBuilder {
private static final long serialVersionUID = 0L;
  // Use TaskProgress.newBuilder() to construct.
  private TaskProgress(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private TaskProgress() {
    taskId_ = "";
    diagnostic_ = "";
    attempts_ = java.util.Collections.emptyList();
    state_ = 0;
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new TaskProgress();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private TaskProgress(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    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;
          case 10: {
            java.lang.String s = input.readStringRequireUtf8();

            taskId_ = s;
            break;
          }
          case 16: {

            startTime_ = input.readUInt64();
            break;
          }
          case 24: {

            scheduleTime_ = input.readUInt64();
            break;
          }
          case 34: {
            java.lang.String s = input.readStringRequireUtf8();

            diagnostic_ = s;
            break;
          }
          case 42: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              attempts_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000001;
            }
            attempts_.add(
                input.readMessage(cz.proto.TaskAttemptProgress.parser(), extensionRegistry));
            break;
          }
          case 48: {
            int rawValue = input.readEnum();

            state_ = rawValue;
            break;
          }
          case 56: {

            finishTime_ = input.readUInt64();
            break;
          }
          case 64: {

            attemptCount_ = input.readUInt32();
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      if (((mutable_bitField0_ & 0x00000001) != 0)) {
        attempts_ = java.util.Collections.unmodifiableList(attempts_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return cz.proto.JobProto.internal_static_cz_proto_TaskProgress_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return cz.proto.JobProto.internal_static_cz_proto_TaskProgress_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            cz.proto.TaskProgress.class, cz.proto.TaskProgress.Builder.class);
  }

  public static final int TASK_ID_FIELD_NUMBER = 1;
  private volatile java.lang.Object taskId_;
  /**
   * string task_id = 1;
   * @return The taskId.
   */
  @java.lang.Override
  public java.lang.String getTaskId() {
    java.lang.Object ref = taskId_;
    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();
      taskId_ = s;
      return s;
    }
  }
  /**
   * string task_id = 1;
   * @return The bytes for taskId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getTaskIdBytes() {
    java.lang.Object ref = taskId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      taskId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int START_TIME_FIELD_NUMBER = 2;
  private long startTime_;
  /**
   * uint64 start_time = 2;
   * @return The startTime.
   */
  @java.lang.Override
  public long getStartTime() {
    return startTime_;
  }

  public static final int SCHEDULE_TIME_FIELD_NUMBER = 3;
  private long scheduleTime_;
  /**
   * uint64 schedule_time = 3;
   * @return The scheduleTime.
   */
  @java.lang.Override
  public long getScheduleTime() {
    return scheduleTime_;
  }

  public static final int DIAGNOSTIC_FIELD_NUMBER = 4;
  private volatile java.lang.Object diagnostic_;
  /**
   * string diagnostic = 4;
   * @return The diagnostic.
   */
  @java.lang.Override
  public java.lang.String getDiagnostic() {
    java.lang.Object ref = diagnostic_;
    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();
      diagnostic_ = s;
      return s;
    }
  }
  /**
   * string diagnostic = 4;
   * @return The bytes for diagnostic.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getDiagnosticBytes() {
    java.lang.Object ref = diagnostic_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      diagnostic_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ATTEMPTS_FIELD_NUMBER = 5;
  private java.util.List attempts_;
  /**
   * repeated .cz.proto.TaskAttemptProgress attempts = 5;
   */
  @java.lang.Override
  public java.util.List getAttemptsList() {
    return attempts_;
  }
  /**
   * repeated .cz.proto.TaskAttemptProgress attempts = 5;
   */
  @java.lang.Override
  public java.util.List 
      getAttemptsOrBuilderList() {
    return attempts_;
  }
  /**
   * repeated .cz.proto.TaskAttemptProgress attempts = 5;
   */
  @java.lang.Override
  public int getAttemptsCount() {
    return attempts_.size();
  }
  /**
   * repeated .cz.proto.TaskAttemptProgress attempts = 5;
   */
  @java.lang.Override
  public cz.proto.TaskAttemptProgress getAttempts(int index) {
    return attempts_.get(index);
  }
  /**
   * repeated .cz.proto.TaskAttemptProgress attempts = 5;
   */
  @java.lang.Override
  public cz.proto.TaskAttemptProgressOrBuilder getAttemptsOrBuilder(
      int index) {
    return attempts_.get(index);
  }

  public static final int STATE_FIELD_NUMBER = 6;
  private int state_;
  /**
   * .cz.proto.DetailState.State state = 6;
   * @return The enum numeric value on the wire for state.
   */
  @java.lang.Override public int getStateValue() {
    return state_;
  }
  /**
   * .cz.proto.DetailState.State state = 6;
   * @return The state.
   */
  @java.lang.Override public cz.proto.DetailState.State getState() {
    @SuppressWarnings("deprecation")
    cz.proto.DetailState.State result = cz.proto.DetailState.State.valueOf(state_);
    return result == null ? cz.proto.DetailState.State.UNRECOGNIZED : result;
  }

  public static final int FINISH_TIME_FIELD_NUMBER = 7;
  private long finishTime_;
  /**
   * uint64 finish_time = 7;
   * @return The finishTime.
   */
  @java.lang.Override
  public long getFinishTime() {
    return finishTime_;
  }

  public static final int ATTEMPT_COUNT_FIELD_NUMBER = 8;
  private int attemptCount_;
  /**
   * uint32 attempt_count = 8;
   * @return The attemptCount.
   */
  @java.lang.Override
  public int getAttemptCount() {
    return attemptCount_;
  }

  private byte memoizedIsInitialized = -1;
  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(taskId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, taskId_);
    }
    if (startTime_ != 0L) {
      output.writeUInt64(2, startTime_);
    }
    if (scheduleTime_ != 0L) {
      output.writeUInt64(3, scheduleTime_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diagnostic_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, diagnostic_);
    }
    for (int i = 0; i < attempts_.size(); i++) {
      output.writeMessage(5, attempts_.get(i));
    }
    if (state_ != cz.proto.DetailState.State.NEW.getNumber()) {
      output.writeEnum(6, state_);
    }
    if (finishTime_ != 0L) {
      output.writeUInt64(7, finishTime_);
    }
    if (attemptCount_ != 0) {
      output.writeUInt32(8, attemptCount_);
    }
    unknownFields.writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(taskId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, taskId_);
    }
    if (startTime_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(2, startTime_);
    }
    if (scheduleTime_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(3, scheduleTime_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diagnostic_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, diagnostic_);
    }
    for (int i = 0; i < attempts_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(5, attempts_.get(i));
    }
    if (state_ != cz.proto.DetailState.State.NEW.getNumber()) {
      size += com.google.protobuf.CodedOutputStream
        .computeEnumSize(6, state_);
    }
    if (finishTime_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(7, finishTime_);
    }
    if (attemptCount_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(8, attemptCount_);
    }
    size += unknownFields.getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof cz.proto.TaskProgress)) {
      return super.equals(obj);
    }
    cz.proto.TaskProgress other = (cz.proto.TaskProgress) obj;

    if (!getTaskId()
        .equals(other.getTaskId())) return false;
    if (getStartTime()
        != other.getStartTime()) return false;
    if (getScheduleTime()
        != other.getScheduleTime()) return false;
    if (!getDiagnostic()
        .equals(other.getDiagnostic())) return false;
    if (!getAttemptsList()
        .equals(other.getAttemptsList())) return false;
    if (state_ != other.state_) return false;
    if (getFinishTime()
        != other.getFinishTime()) return false;
    if (getAttemptCount()
        != other.getAttemptCount()) return false;
    if (!unknownFields.equals(other.unknownFields)) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + TASK_ID_FIELD_NUMBER;
    hash = (53 * hash) + getTaskId().hashCode();
    hash = (37 * hash) + START_TIME_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getStartTime());
    hash = (37 * hash) + SCHEDULE_TIME_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getScheduleTime());
    hash = (37 * hash) + DIAGNOSTIC_FIELD_NUMBER;
    hash = (53 * hash) + getDiagnostic().hashCode();
    if (getAttemptsCount() > 0) {
      hash = (37 * hash) + ATTEMPTS_FIELD_NUMBER;
      hash = (53 * hash) + getAttemptsList().hashCode();
    }
    hash = (37 * hash) + STATE_FIELD_NUMBER;
    hash = (53 * hash) + state_;
    hash = (37 * hash) + FINISH_TIME_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getFinishTime());
    hash = (37 * hash) + ATTEMPT_COUNT_FIELD_NUMBER;
    hash = (53 * hash) + getAttemptCount();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static cz.proto.TaskProgress parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static cz.proto.TaskProgress parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static cz.proto.TaskProgress parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static cz.proto.TaskProgress parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static cz.proto.TaskProgress parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static cz.proto.TaskProgress parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static cz.proto.TaskProgress parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static cz.proto.TaskProgress parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }
  public static cz.proto.TaskProgress parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static cz.proto.TaskProgress parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static cz.proto.TaskProgress parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static cz.proto.TaskProgress parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(cz.proto.TaskProgress prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * Protobuf type {@code cz.proto.TaskProgress}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:cz.proto.TaskProgress)
      cz.proto.TaskProgressOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return cz.proto.JobProto.internal_static_cz_proto_TaskProgress_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return cz.proto.JobProto.internal_static_cz_proto_TaskProgress_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              cz.proto.TaskProgress.class, cz.proto.TaskProgress.Builder.class);
    }

    // Construct using cz.proto.TaskProgress.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getAttemptsFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      taskId_ = "";

      startTime_ = 0L;

      scheduleTime_ = 0L;

      diagnostic_ = "";

      if (attemptsBuilder_ == null) {
        attempts_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
      } else {
        attemptsBuilder_.clear();
      }
      state_ = 0;

      finishTime_ = 0L;

      attemptCount_ = 0;

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return cz.proto.JobProto.internal_static_cz_proto_TaskProgress_descriptor;
    }

    @java.lang.Override
    public cz.proto.TaskProgress getDefaultInstanceForType() {
      return cz.proto.TaskProgress.getDefaultInstance();
    }

    @java.lang.Override
    public cz.proto.TaskProgress build() {
      cz.proto.TaskProgress result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public cz.proto.TaskProgress buildPartial() {
      cz.proto.TaskProgress result = new cz.proto.TaskProgress(this);
      int from_bitField0_ = bitField0_;
      result.taskId_ = taskId_;
      result.startTime_ = startTime_;
      result.scheduleTime_ = scheduleTime_;
      result.diagnostic_ = diagnostic_;
      if (attemptsBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          attempts_ = java.util.Collections.unmodifiableList(attempts_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.attempts_ = attempts_;
      } else {
        result.attempts_ = attemptsBuilder_.build();
      }
      result.state_ = state_;
      result.finishTime_ = finishTime_;
      result.attemptCount_ = attemptCount_;
      onBuilt();
      return result;
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }
    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.setField(field, value);
    }
    @java.lang.Override
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }
    @java.lang.Override
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }
    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }
    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }
    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof cz.proto.TaskProgress) {
        return mergeFrom((cz.proto.TaskProgress)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(cz.proto.TaskProgress other) {
      if (other == cz.proto.TaskProgress.getDefaultInstance()) return this;
      if (!other.getTaskId().isEmpty()) {
        taskId_ = other.taskId_;
        onChanged();
      }
      if (other.getStartTime() != 0L) {
        setStartTime(other.getStartTime());
      }
      if (other.getScheduleTime() != 0L) {
        setScheduleTime(other.getScheduleTime());
      }
      if (!other.getDiagnostic().isEmpty()) {
        diagnostic_ = other.diagnostic_;
        onChanged();
      }
      if (attemptsBuilder_ == null) {
        if (!other.attempts_.isEmpty()) {
          if (attempts_.isEmpty()) {
            attempts_ = other.attempts_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureAttemptsIsMutable();
            attempts_.addAll(other.attempts_);
          }
          onChanged();
        }
      } else {
        if (!other.attempts_.isEmpty()) {
          if (attemptsBuilder_.isEmpty()) {
            attemptsBuilder_.dispose();
            attemptsBuilder_ = null;
            attempts_ = other.attempts_;
            bitField0_ = (bitField0_ & ~0x00000001);
            attemptsBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getAttemptsFieldBuilder() : null;
          } else {
            attemptsBuilder_.addAllMessages(other.attempts_);
          }
        }
      }
      if (other.state_ != 0) {
        setStateValue(other.getStateValue());
      }
      if (other.getFinishTime() != 0L) {
        setFinishTime(other.getFinishTime());
      }
      if (other.getAttemptCount() != 0) {
        setAttemptCount(other.getAttemptCount());
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

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

    private java.lang.Object taskId_ = "";
    /**
     * string task_id = 1;
     * @return The taskId.
     */
    public java.lang.String getTaskId() {
      java.lang.Object ref = taskId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        taskId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string task_id = 1;
     * @return The bytes for taskId.
     */
    public com.google.protobuf.ByteString
        getTaskIdBytes() {
      java.lang.Object ref = taskId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        taskId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string task_id = 1;
     * @param value The taskId to set.
     * @return This builder for chaining.
     */
    public Builder setTaskId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      taskId_ = value;
      onChanged();
      return this;
    }
    /**
     * string task_id = 1;
     * @return This builder for chaining.
     */
    public Builder clearTaskId() {
      
      taskId_ = getDefaultInstance().getTaskId();
      onChanged();
      return this;
    }
    /**
     * string task_id = 1;
     * @param value The bytes for taskId to set.
     * @return This builder for chaining.
     */
    public Builder setTaskIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      taskId_ = value;
      onChanged();
      return this;
    }

    private long startTime_ ;
    /**
     * uint64 start_time = 2;
     * @return The startTime.
     */
    @java.lang.Override
    public long getStartTime() {
      return startTime_;
    }
    /**
     * uint64 start_time = 2;
     * @param value The startTime to set.
     * @return This builder for chaining.
     */
    public Builder setStartTime(long value) {
      
      startTime_ = value;
      onChanged();
      return this;
    }
    /**
     * uint64 start_time = 2;
     * @return This builder for chaining.
     */
    public Builder clearStartTime() {
      
      startTime_ = 0L;
      onChanged();
      return this;
    }

    private long scheduleTime_ ;
    /**
     * uint64 schedule_time = 3;
     * @return The scheduleTime.
     */
    @java.lang.Override
    public long getScheduleTime() {
      return scheduleTime_;
    }
    /**
     * uint64 schedule_time = 3;
     * @param value The scheduleTime to set.
     * @return This builder for chaining.
     */
    public Builder setScheduleTime(long value) {
      
      scheduleTime_ = value;
      onChanged();
      return this;
    }
    /**
     * uint64 schedule_time = 3;
     * @return This builder for chaining.
     */
    public Builder clearScheduleTime() {
      
      scheduleTime_ = 0L;
      onChanged();
      return this;
    }

    private java.lang.Object diagnostic_ = "";
    /**
     * string diagnostic = 4;
     * @return The diagnostic.
     */
    public java.lang.String getDiagnostic() {
      java.lang.Object ref = diagnostic_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        diagnostic_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string diagnostic = 4;
     * @return The bytes for diagnostic.
     */
    public com.google.protobuf.ByteString
        getDiagnosticBytes() {
      java.lang.Object ref = diagnostic_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        diagnostic_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string diagnostic = 4;
     * @param value The diagnostic to set.
     * @return This builder for chaining.
     */
    public Builder setDiagnostic(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      diagnostic_ = value;
      onChanged();
      return this;
    }
    /**
     * string diagnostic = 4;
     * @return This builder for chaining.
     */
    public Builder clearDiagnostic() {
      
      diagnostic_ = getDefaultInstance().getDiagnostic();
      onChanged();
      return this;
    }
    /**
     * string diagnostic = 4;
     * @param value The bytes for diagnostic to set.
     * @return This builder for chaining.
     */
    public Builder setDiagnosticBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      diagnostic_ = value;
      onChanged();
      return this;
    }

    private java.util.List attempts_ =
      java.util.Collections.emptyList();
    private void ensureAttemptsIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        attempts_ = new java.util.ArrayList(attempts_);
        bitField0_ |= 0x00000001;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        cz.proto.TaskAttemptProgress, cz.proto.TaskAttemptProgress.Builder, cz.proto.TaskAttemptProgressOrBuilder> attemptsBuilder_;

    /**
     * repeated .cz.proto.TaskAttemptProgress attempts = 5;
     */
    public java.util.List getAttemptsList() {
      if (attemptsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(attempts_);
      } else {
        return attemptsBuilder_.getMessageList();
      }
    }
    /**
     * repeated .cz.proto.TaskAttemptProgress attempts = 5;
     */
    public int getAttemptsCount() {
      if (attemptsBuilder_ == null) {
        return attempts_.size();
      } else {
        return attemptsBuilder_.getCount();
      }
    }
    /**
     * repeated .cz.proto.TaskAttemptProgress attempts = 5;
     */
    public cz.proto.TaskAttemptProgress getAttempts(int index) {
      if (attemptsBuilder_ == null) {
        return attempts_.get(index);
      } else {
        return attemptsBuilder_.getMessage(index);
      }
    }
    /**
     * repeated .cz.proto.TaskAttemptProgress attempts = 5;
     */
    public Builder setAttempts(
        int index, cz.proto.TaskAttemptProgress value) {
      if (attemptsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureAttemptsIsMutable();
        attempts_.set(index, value);
        onChanged();
      } else {
        attemptsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .cz.proto.TaskAttemptProgress attempts = 5;
     */
    public Builder setAttempts(
        int index, cz.proto.TaskAttemptProgress.Builder builderForValue) {
      if (attemptsBuilder_ == null) {
        ensureAttemptsIsMutable();
        attempts_.set(index, builderForValue.build());
        onChanged();
      } else {
        attemptsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .cz.proto.TaskAttemptProgress attempts = 5;
     */
    public Builder addAttempts(cz.proto.TaskAttemptProgress value) {
      if (attemptsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureAttemptsIsMutable();
        attempts_.add(value);
        onChanged();
      } else {
        attemptsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * repeated .cz.proto.TaskAttemptProgress attempts = 5;
     */
    public Builder addAttempts(
        int index, cz.proto.TaskAttemptProgress value) {
      if (attemptsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureAttemptsIsMutable();
        attempts_.add(index, value);
        onChanged();
      } else {
        attemptsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .cz.proto.TaskAttemptProgress attempts = 5;
     */
    public Builder addAttempts(
        cz.proto.TaskAttemptProgress.Builder builderForValue) {
      if (attemptsBuilder_ == null) {
        ensureAttemptsIsMutable();
        attempts_.add(builderForValue.build());
        onChanged();
      } else {
        attemptsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .cz.proto.TaskAttemptProgress attempts = 5;
     */
    public Builder addAttempts(
        int index, cz.proto.TaskAttemptProgress.Builder builderForValue) {
      if (attemptsBuilder_ == null) {
        ensureAttemptsIsMutable();
        attempts_.add(index, builderForValue.build());
        onChanged();
      } else {
        attemptsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .cz.proto.TaskAttemptProgress attempts = 5;
     */
    public Builder addAllAttempts(
        java.lang.Iterable values) {
      if (attemptsBuilder_ == null) {
        ensureAttemptsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, attempts_);
        onChanged();
      } else {
        attemptsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * repeated .cz.proto.TaskAttemptProgress attempts = 5;
     */
    public Builder clearAttempts() {
      if (attemptsBuilder_ == null) {
        attempts_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        attemptsBuilder_.clear();
      }
      return this;
    }
    /**
     * repeated .cz.proto.TaskAttemptProgress attempts = 5;
     */
    public Builder removeAttempts(int index) {
      if (attemptsBuilder_ == null) {
        ensureAttemptsIsMutable();
        attempts_.remove(index);
        onChanged();
      } else {
        attemptsBuilder_.remove(index);
      }
      return this;
    }
    /**
     * repeated .cz.proto.TaskAttemptProgress attempts = 5;
     */
    public cz.proto.TaskAttemptProgress.Builder getAttemptsBuilder(
        int index) {
      return getAttemptsFieldBuilder().getBuilder(index);
    }
    /**
     * repeated .cz.proto.TaskAttemptProgress attempts = 5;
     */
    public cz.proto.TaskAttemptProgressOrBuilder getAttemptsOrBuilder(
        int index) {
      if (attemptsBuilder_ == null) {
        return attempts_.get(index);  } else {
        return attemptsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * repeated .cz.proto.TaskAttemptProgress attempts = 5;
     */
    public java.util.List 
         getAttemptsOrBuilderList() {
      if (attemptsBuilder_ != null) {
        return attemptsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(attempts_);
      }
    }
    /**
     * repeated .cz.proto.TaskAttemptProgress attempts = 5;
     */
    public cz.proto.TaskAttemptProgress.Builder addAttemptsBuilder() {
      return getAttemptsFieldBuilder().addBuilder(
          cz.proto.TaskAttemptProgress.getDefaultInstance());
    }
    /**
     * repeated .cz.proto.TaskAttemptProgress attempts = 5;
     */
    public cz.proto.TaskAttemptProgress.Builder addAttemptsBuilder(
        int index) {
      return getAttemptsFieldBuilder().addBuilder(
          index, cz.proto.TaskAttemptProgress.getDefaultInstance());
    }
    /**
     * repeated .cz.proto.TaskAttemptProgress attempts = 5;
     */
    public java.util.List 
         getAttemptsBuilderList() {
      return getAttemptsFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        cz.proto.TaskAttemptProgress, cz.proto.TaskAttemptProgress.Builder, cz.proto.TaskAttemptProgressOrBuilder> 
        getAttemptsFieldBuilder() {
      if (attemptsBuilder_ == null) {
        attemptsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            cz.proto.TaskAttemptProgress, cz.proto.TaskAttemptProgress.Builder, cz.proto.TaskAttemptProgressOrBuilder>(
                attempts_,
                ((bitField0_ & 0x00000001) != 0),
                getParentForChildren(),
                isClean());
        attempts_ = null;
      }
      return attemptsBuilder_;
    }

    private int state_ = 0;
    /**
     * .cz.proto.DetailState.State state = 6;
     * @return The enum numeric value on the wire for state.
     */
    @java.lang.Override public int getStateValue() {
      return state_;
    }
    /**
     * .cz.proto.DetailState.State state = 6;
     * @param value The enum numeric value on the wire for state to set.
     * @return This builder for chaining.
     */
    public Builder setStateValue(int value) {
      
      state_ = value;
      onChanged();
      return this;
    }
    /**
     * .cz.proto.DetailState.State state = 6;
     * @return The state.
     */
    @java.lang.Override
    public cz.proto.DetailState.State getState() {
      @SuppressWarnings("deprecation")
      cz.proto.DetailState.State result = cz.proto.DetailState.State.valueOf(state_);
      return result == null ? cz.proto.DetailState.State.UNRECOGNIZED : result;
    }
    /**
     * .cz.proto.DetailState.State state = 6;
     * @param value The state to set.
     * @return This builder for chaining.
     */
    public Builder setState(cz.proto.DetailState.State value) {
      if (value == null) {
        throw new NullPointerException();
      }
      
      state_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * .cz.proto.DetailState.State state = 6;
     * @return This builder for chaining.
     */
    public Builder clearState() {
      
      state_ = 0;
      onChanged();
      return this;
    }

    private long finishTime_ ;
    /**
     * uint64 finish_time = 7;
     * @return The finishTime.
     */
    @java.lang.Override
    public long getFinishTime() {
      return finishTime_;
    }
    /**
     * uint64 finish_time = 7;
     * @param value The finishTime to set.
     * @return This builder for chaining.
     */
    public Builder setFinishTime(long value) {
      
      finishTime_ = value;
      onChanged();
      return this;
    }
    /**
     * uint64 finish_time = 7;
     * @return This builder for chaining.
     */
    public Builder clearFinishTime() {
      
      finishTime_ = 0L;
      onChanged();
      return this;
    }

    private int attemptCount_ ;
    /**
     * uint32 attempt_count = 8;
     * @return The attemptCount.
     */
    @java.lang.Override
    public int getAttemptCount() {
      return attemptCount_;
    }
    /**
     * uint32 attempt_count = 8;
     * @param value The attemptCount to set.
     * @return This builder for chaining.
     */
    public Builder setAttemptCount(int value) {
      
      attemptCount_ = value;
      onChanged();
      return this;
    }
    /**
     * uint32 attempt_count = 8;
     * @return This builder for chaining.
     */
    public Builder clearAttemptCount() {
      
      attemptCount_ = 0;
      onChanged();
      return this;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }


    // @@protoc_insertion_point(builder_scope:cz.proto.TaskProgress)
  }

  // @@protoc_insertion_point(class_scope:cz.proto.TaskProgress)
  private static final cz.proto.TaskProgress DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new cz.proto.TaskProgress();
  }

  public static cz.proto.TaskProgress getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public TaskProgress parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new TaskProgress(input, extensionRegistry);
    }
  };

  public static com.google.protobuf.Parser parser() {
    return PARSER;
  }

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

  @java.lang.Override
  public cz.proto.TaskProgress getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy