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

cz.proto.TaskSummary 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.TaskSummary}
 */
public final class TaskSummary extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:cz.proto.TaskSummary)
    TaskSummaryOrBuilder {
private static final long serialVersionUID = 0L;
  // Use TaskSummary.newBuilder() to construct.
  private TaskSummary(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private TaskSummary() {
    executor_ = "";
    diagnostic_ = "";
  }

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

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

            taskId_ = input.readUInt64();
            break;
          }
          case 16: {

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

            retryId_ = input.readUInt64();
            break;
          }
          case 32: {

            startTime_ = input.readInt64();
            break;
          }
          case 40: {

            endTime_ = input.readInt64();
            break;
          }
          case 48: {

            pendingTime_ = input.readInt64();
            break;
          }
          case 56: {

            runningTime_ = input.readInt64();
            break;
          }
          case 66: {
            java.lang.String s = input.readStringRequireUtf8();

            executor_ = s;
            break;
          }
          case 74: {
            java.lang.String s = input.readStringRequireUtf8();

            diagnostic_ = s;
            break;
          }
          case 82: {
            cz.proto.InputOutputStats.Builder subBuilder = null;
            if (inputOutputStats_ != null) {
              subBuilder = inputOutputStats_.toBuilder();
            }
            inputOutputStats_ = input.readMessage(cz.proto.InputOutputStats.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(inputOutputStats_);
              inputOutputStats_ = subBuilder.buildPartial();
            }

            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 {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return cz.proto.JobProto.internal_static_cz_proto_TaskSummary_descriptor;
  }

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

  public static final int TASK_ID_FIELD_NUMBER = 1;
  private long taskId_;
  /**
   * uint64 task_id = 1;
   * @return The taskId.
   */
  @java.lang.Override
  public long getTaskId() {
    return taskId_;
  }

  public static final int BACKUP_ID_FIELD_NUMBER = 2;
  private long backupId_;
  /**
   * uint64 backup_id = 2;
   * @return The backupId.
   */
  @java.lang.Override
  public long getBackupId() {
    return backupId_;
  }

  public static final int RETRY_ID_FIELD_NUMBER = 3;
  private long retryId_;
  /**
   * uint64 retry_id = 3;
   * @return The retryId.
   */
  @java.lang.Override
  public long getRetryId() {
    return retryId_;
  }

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

  public static final int END_TIME_FIELD_NUMBER = 5;
  private long endTime_;
  /**
   * int64 end_time = 5;
   * @return The endTime.
   */
  @java.lang.Override
  public long getEndTime() {
    return endTime_;
  }

  public static final int PENDING_TIME_FIELD_NUMBER = 6;
  private long pendingTime_;
  /**
   * int64 pending_time = 6;
   * @return The pendingTime.
   */
  @java.lang.Override
  public long getPendingTime() {
    return pendingTime_;
  }

  public static final int RUNNING_TIME_FIELD_NUMBER = 7;
  private long runningTime_;
  /**
   * int64 running_time = 7;
   * @return The runningTime.
   */
  @java.lang.Override
  public long getRunningTime() {
    return runningTime_;
  }

  public static final int EXECUTOR_FIELD_NUMBER = 8;
  private volatile java.lang.Object executor_;
  /**
   * string executor = 8;
   * @return The executor.
   */
  @java.lang.Override
  public java.lang.String getExecutor() {
    java.lang.Object ref = executor_;
    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();
      executor_ = s;
      return s;
    }
  }
  /**
   * string executor = 8;
   * @return The bytes for executor.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getExecutorBytes() {
    java.lang.Object ref = executor_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      executor_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DIAGNOSTIC_FIELD_NUMBER = 9;
  private volatile java.lang.Object diagnostic_;
  /**
   * string diagnostic = 9;
   * @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 = 9;
   * @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 INPUT_OUTPUT_STATS_FIELD_NUMBER = 10;
  private cz.proto.InputOutputStats inputOutputStats_;
  /**
   * .cz.proto.InputOutputStats input_output_stats = 10;
   * @return Whether the inputOutputStats field is set.
   */
  @java.lang.Override
  public boolean hasInputOutputStats() {
    return inputOutputStats_ != null;
  }
  /**
   * .cz.proto.InputOutputStats input_output_stats = 10;
   * @return The inputOutputStats.
   */
  @java.lang.Override
  public cz.proto.InputOutputStats getInputOutputStats() {
    return inputOutputStats_ == null ? cz.proto.InputOutputStats.getDefaultInstance() : inputOutputStats_;
  }
  /**
   * .cz.proto.InputOutputStats input_output_stats = 10;
   */
  @java.lang.Override
  public cz.proto.InputOutputStatsOrBuilder getInputOutputStatsOrBuilder() {
    return getInputOutputStats();
  }

  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 (taskId_ != 0L) {
      output.writeUInt64(1, taskId_);
    }
    if (backupId_ != 0L) {
      output.writeUInt64(2, backupId_);
    }
    if (retryId_ != 0L) {
      output.writeUInt64(3, retryId_);
    }
    if (startTime_ != 0L) {
      output.writeInt64(4, startTime_);
    }
    if (endTime_ != 0L) {
      output.writeInt64(5, endTime_);
    }
    if (pendingTime_ != 0L) {
      output.writeInt64(6, pendingTime_);
    }
    if (runningTime_ != 0L) {
      output.writeInt64(7, runningTime_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(executor_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, executor_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diagnostic_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 9, diagnostic_);
    }
    if (inputOutputStats_ != null) {
      output.writeMessage(10, getInputOutputStats());
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (taskId_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(1, taskId_);
    }
    if (backupId_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(2, backupId_);
    }
    if (retryId_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(3, retryId_);
    }
    if (startTime_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(4, startTime_);
    }
    if (endTime_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(5, endTime_);
    }
    if (pendingTime_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(6, pendingTime_);
    }
    if (runningTime_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(7, runningTime_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(executor_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, executor_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diagnostic_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, diagnostic_);
    }
    if (inputOutputStats_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(10, getInputOutputStats());
    }
    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.TaskSummary)) {
      return super.equals(obj);
    }
    cz.proto.TaskSummary other = (cz.proto.TaskSummary) obj;

    if (getTaskId()
        != other.getTaskId()) return false;
    if (getBackupId()
        != other.getBackupId()) return false;
    if (getRetryId()
        != other.getRetryId()) return false;
    if (getStartTime()
        != other.getStartTime()) return false;
    if (getEndTime()
        != other.getEndTime()) return false;
    if (getPendingTime()
        != other.getPendingTime()) return false;
    if (getRunningTime()
        != other.getRunningTime()) return false;
    if (!getExecutor()
        .equals(other.getExecutor())) return false;
    if (!getDiagnostic()
        .equals(other.getDiagnostic())) return false;
    if (hasInputOutputStats() != other.hasInputOutputStats()) return false;
    if (hasInputOutputStats()) {
      if (!getInputOutputStats()
          .equals(other.getInputOutputStats())) 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) + com.google.protobuf.Internal.hashLong(
        getTaskId());
    hash = (37 * hash) + BACKUP_ID_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getBackupId());
    hash = (37 * hash) + RETRY_ID_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getRetryId());
    hash = (37 * hash) + START_TIME_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getStartTime());
    hash = (37 * hash) + END_TIME_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getEndTime());
    hash = (37 * hash) + PENDING_TIME_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getPendingTime());
    hash = (37 * hash) + RUNNING_TIME_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getRunningTime());
    hash = (37 * hash) + EXECUTOR_FIELD_NUMBER;
    hash = (53 * hash) + getExecutor().hashCode();
    hash = (37 * hash) + DIAGNOSTIC_FIELD_NUMBER;
    hash = (53 * hash) + getDiagnostic().hashCode();
    if (hasInputOutputStats()) {
      hash = (37 * hash) + INPUT_OUTPUT_STATS_FIELD_NUMBER;
      hash = (53 * hash) + getInputOutputStats().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static cz.proto.TaskSummary parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static cz.proto.TaskSummary parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static cz.proto.TaskSummary parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static cz.proto.TaskSummary 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.TaskSummary parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static cz.proto.TaskSummary parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static cz.proto.TaskSummary parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static cz.proto.TaskSummary 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.TaskSummary parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static cz.proto.TaskSummary 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.TaskSummary parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static cz.proto.TaskSummary 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.TaskSummary 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.TaskSummary}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:cz.proto.TaskSummary)
      cz.proto.TaskSummaryOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return cz.proto.JobProto.internal_static_cz_proto_TaskSummary_descriptor;
    }

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

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

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

      backupId_ = 0L;

      retryId_ = 0L;

      startTime_ = 0L;

      endTime_ = 0L;

      pendingTime_ = 0L;

      runningTime_ = 0L;

      executor_ = "";

      diagnostic_ = "";

      if (inputOutputStatsBuilder_ == null) {
        inputOutputStats_ = null;
      } else {
        inputOutputStats_ = null;
        inputOutputStatsBuilder_ = null;
      }
      return this;
    }

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

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

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

    @java.lang.Override
    public cz.proto.TaskSummary buildPartial() {
      cz.proto.TaskSummary result = new cz.proto.TaskSummary(this);
      result.taskId_ = taskId_;
      result.backupId_ = backupId_;
      result.retryId_ = retryId_;
      result.startTime_ = startTime_;
      result.endTime_ = endTime_;
      result.pendingTime_ = pendingTime_;
      result.runningTime_ = runningTime_;
      result.executor_ = executor_;
      result.diagnostic_ = diagnostic_;
      if (inputOutputStatsBuilder_ == null) {
        result.inputOutputStats_ = inputOutputStats_;
      } else {
        result.inputOutputStats_ = inputOutputStatsBuilder_.build();
      }
      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.TaskSummary) {
        return mergeFrom((cz.proto.TaskSummary)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(cz.proto.TaskSummary other) {
      if (other == cz.proto.TaskSummary.getDefaultInstance()) return this;
      if (other.getTaskId() != 0L) {
        setTaskId(other.getTaskId());
      }
      if (other.getBackupId() != 0L) {
        setBackupId(other.getBackupId());
      }
      if (other.getRetryId() != 0L) {
        setRetryId(other.getRetryId());
      }
      if (other.getStartTime() != 0L) {
        setStartTime(other.getStartTime());
      }
      if (other.getEndTime() != 0L) {
        setEndTime(other.getEndTime());
      }
      if (other.getPendingTime() != 0L) {
        setPendingTime(other.getPendingTime());
      }
      if (other.getRunningTime() != 0L) {
        setRunningTime(other.getRunningTime());
      }
      if (!other.getExecutor().isEmpty()) {
        executor_ = other.executor_;
        onChanged();
      }
      if (!other.getDiagnostic().isEmpty()) {
        diagnostic_ = other.diagnostic_;
        onChanged();
      }
      if (other.hasInputOutputStats()) {
        mergeInputOutputStats(other.getInputOutputStats());
      }
      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.TaskSummary parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (cz.proto.TaskSummary) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private long taskId_ ;
    /**
     * uint64 task_id = 1;
     * @return The taskId.
     */
    @java.lang.Override
    public long getTaskId() {
      return taskId_;
    }
    /**
     * uint64 task_id = 1;
     * @param value The taskId to set.
     * @return This builder for chaining.
     */
    public Builder setTaskId(long value) {
      
      taskId_ = value;
      onChanged();
      return this;
    }
    /**
     * uint64 task_id = 1;
     * @return This builder for chaining.
     */
    public Builder clearTaskId() {
      
      taskId_ = 0L;
      onChanged();
      return this;
    }

    private long backupId_ ;
    /**
     * uint64 backup_id = 2;
     * @return The backupId.
     */
    @java.lang.Override
    public long getBackupId() {
      return backupId_;
    }
    /**
     * uint64 backup_id = 2;
     * @param value The backupId to set.
     * @return This builder for chaining.
     */
    public Builder setBackupId(long value) {
      
      backupId_ = value;
      onChanged();
      return this;
    }
    /**
     * uint64 backup_id = 2;
     * @return This builder for chaining.
     */
    public Builder clearBackupId() {
      
      backupId_ = 0L;
      onChanged();
      return this;
    }

    private long retryId_ ;
    /**
     * uint64 retry_id = 3;
     * @return The retryId.
     */
    @java.lang.Override
    public long getRetryId() {
      return retryId_;
    }
    /**
     * uint64 retry_id = 3;
     * @param value The retryId to set.
     * @return This builder for chaining.
     */
    public Builder setRetryId(long value) {
      
      retryId_ = value;
      onChanged();
      return this;
    }
    /**
     * uint64 retry_id = 3;
     * @return This builder for chaining.
     */
    public Builder clearRetryId() {
      
      retryId_ = 0L;
      onChanged();
      return this;
    }

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

    private long endTime_ ;
    /**
     * int64 end_time = 5;
     * @return The endTime.
     */
    @java.lang.Override
    public long getEndTime() {
      return endTime_;
    }
    /**
     * int64 end_time = 5;
     * @param value The endTime to set.
     * @return This builder for chaining.
     */
    public Builder setEndTime(long value) {
      
      endTime_ = value;
      onChanged();
      return this;
    }
    /**
     * int64 end_time = 5;
     * @return This builder for chaining.
     */
    public Builder clearEndTime() {
      
      endTime_ = 0L;
      onChanged();
      return this;
    }

    private long pendingTime_ ;
    /**
     * int64 pending_time = 6;
     * @return The pendingTime.
     */
    @java.lang.Override
    public long getPendingTime() {
      return pendingTime_;
    }
    /**
     * int64 pending_time = 6;
     * @param value The pendingTime to set.
     * @return This builder for chaining.
     */
    public Builder setPendingTime(long value) {
      
      pendingTime_ = value;
      onChanged();
      return this;
    }
    /**
     * int64 pending_time = 6;
     * @return This builder for chaining.
     */
    public Builder clearPendingTime() {
      
      pendingTime_ = 0L;
      onChanged();
      return this;
    }

    private long runningTime_ ;
    /**
     * int64 running_time = 7;
     * @return The runningTime.
     */
    @java.lang.Override
    public long getRunningTime() {
      return runningTime_;
    }
    /**
     * int64 running_time = 7;
     * @param value The runningTime to set.
     * @return This builder for chaining.
     */
    public Builder setRunningTime(long value) {
      
      runningTime_ = value;
      onChanged();
      return this;
    }
    /**
     * int64 running_time = 7;
     * @return This builder for chaining.
     */
    public Builder clearRunningTime() {
      
      runningTime_ = 0L;
      onChanged();
      return this;
    }

    private java.lang.Object executor_ = "";
    /**
     * string executor = 8;
     * @return The executor.
     */
    public java.lang.String getExecutor() {
      java.lang.Object ref = executor_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        executor_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string executor = 8;
     * @return The bytes for executor.
     */
    public com.google.protobuf.ByteString
        getExecutorBytes() {
      java.lang.Object ref = executor_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        executor_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string executor = 8;
     * @param value The executor to set.
     * @return This builder for chaining.
     */
    public Builder setExecutor(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      executor_ = value;
      onChanged();
      return this;
    }
    /**
     * string executor = 8;
     * @return This builder for chaining.
     */
    public Builder clearExecutor() {
      
      executor_ = getDefaultInstance().getExecutor();
      onChanged();
      return this;
    }
    /**
     * string executor = 8;
     * @param value The bytes for executor to set.
     * @return This builder for chaining.
     */
    public Builder setExecutorBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      executor_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object diagnostic_ = "";
    /**
     * string diagnostic = 9;
     * @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 = 9;
     * @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 = 9;
     * @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 = 9;
     * @return This builder for chaining.
     */
    public Builder clearDiagnostic() {
      
      diagnostic_ = getDefaultInstance().getDiagnostic();
      onChanged();
      return this;
    }
    /**
     * string diagnostic = 9;
     * @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 cz.proto.InputOutputStats inputOutputStats_;
    private com.google.protobuf.SingleFieldBuilderV3<
        cz.proto.InputOutputStats, cz.proto.InputOutputStats.Builder, cz.proto.InputOutputStatsOrBuilder> inputOutputStatsBuilder_;
    /**
     * .cz.proto.InputOutputStats input_output_stats = 10;
     * @return Whether the inputOutputStats field is set.
     */
    public boolean hasInputOutputStats() {
      return inputOutputStatsBuilder_ != null || inputOutputStats_ != null;
    }
    /**
     * .cz.proto.InputOutputStats input_output_stats = 10;
     * @return The inputOutputStats.
     */
    public cz.proto.InputOutputStats getInputOutputStats() {
      if (inputOutputStatsBuilder_ == null) {
        return inputOutputStats_ == null ? cz.proto.InputOutputStats.getDefaultInstance() : inputOutputStats_;
      } else {
        return inputOutputStatsBuilder_.getMessage();
      }
    }
    /**
     * .cz.proto.InputOutputStats input_output_stats = 10;
     */
    public Builder setInputOutputStats(cz.proto.InputOutputStats value) {
      if (inputOutputStatsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        inputOutputStats_ = value;
        onChanged();
      } else {
        inputOutputStatsBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * .cz.proto.InputOutputStats input_output_stats = 10;
     */
    public Builder setInputOutputStats(
        cz.proto.InputOutputStats.Builder builderForValue) {
      if (inputOutputStatsBuilder_ == null) {
        inputOutputStats_ = builderForValue.build();
        onChanged();
      } else {
        inputOutputStatsBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * .cz.proto.InputOutputStats input_output_stats = 10;
     */
    public Builder mergeInputOutputStats(cz.proto.InputOutputStats value) {
      if (inputOutputStatsBuilder_ == null) {
        if (inputOutputStats_ != null) {
          inputOutputStats_ =
            cz.proto.InputOutputStats.newBuilder(inputOutputStats_).mergeFrom(value).buildPartial();
        } else {
          inputOutputStats_ = value;
        }
        onChanged();
      } else {
        inputOutputStatsBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * .cz.proto.InputOutputStats input_output_stats = 10;
     */
    public Builder clearInputOutputStats() {
      if (inputOutputStatsBuilder_ == null) {
        inputOutputStats_ = null;
        onChanged();
      } else {
        inputOutputStats_ = null;
        inputOutputStatsBuilder_ = null;
      }

      return this;
    }
    /**
     * .cz.proto.InputOutputStats input_output_stats = 10;
     */
    public cz.proto.InputOutputStats.Builder getInputOutputStatsBuilder() {
      
      onChanged();
      return getInputOutputStatsFieldBuilder().getBuilder();
    }
    /**
     * .cz.proto.InputOutputStats input_output_stats = 10;
     */
    public cz.proto.InputOutputStatsOrBuilder getInputOutputStatsOrBuilder() {
      if (inputOutputStatsBuilder_ != null) {
        return inputOutputStatsBuilder_.getMessageOrBuilder();
      } else {
        return inputOutputStats_ == null ?
            cz.proto.InputOutputStats.getDefaultInstance() : inputOutputStats_;
      }
    }
    /**
     * .cz.proto.InputOutputStats input_output_stats = 10;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        cz.proto.InputOutputStats, cz.proto.InputOutputStats.Builder, cz.proto.InputOutputStatsOrBuilder> 
        getInputOutputStatsFieldBuilder() {
      if (inputOutputStatsBuilder_ == null) {
        inputOutputStatsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            cz.proto.InputOutputStats, cz.proto.InputOutputStats.Builder, cz.proto.InputOutputStatsOrBuilder>(
                getInputOutputStats(),
                getParentForChildren(),
                isClean());
        inputOutputStats_ = null;
      }
      return inputOutputStatsBuilder_;
    }
    @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.TaskSummary)
  }

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

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

  private static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public TaskSummary parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new TaskSummary(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.TaskSummary getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy