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

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

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private DAGProgress(
      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 8: {
            int rawValue = input.readEnum();

            state_ = rawValue;
            break;
          }
          case 18: {
            java.lang.String s = input.readStringRequireUtf8();

            jobId_ = s;
            break;
          }
          case 24: {

            submitTime_ = input.readInt64();
            break;
          }
          case 32: {

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

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

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

            diagnostic_ = s;
            break;
          }
          case 66: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              stageProgress_ = com.google.protobuf.MapField.newMapField(
                  StageProgressDefaultEntryHolder.defaultEntry);
              mutable_bitField0_ |= 0x00000001;
            }
            com.google.protobuf.MapEntry
            stageProgress__ = input.readMessage(
                StageProgressDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
            stageProgress_.getMutableMap().put(
                stageProgress__.getKey(), stageProgress__.getValue());
            break;
          }
          case 74: {
            java.lang.String s = input.readStringRequireUtf8();

            runningMode_ = s;
            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_DAGProgress_descriptor;
  }

  @SuppressWarnings({"rawtypes"})
  @java.lang.Override
  protected com.google.protobuf.MapField internalGetMapField(
      int number) {
    switch (number) {
      case 8:
        return internalGetStageProgress();
      default:
        throw new RuntimeException(
            "Invalid map field number: " + number);
    }
  }
  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return cz.proto.JobProto.internal_static_cz_proto_DAGProgress_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            cz.proto.DAGProgress.class, cz.proto.DAGProgress.Builder.class);
  }

  public static final int STATE_FIELD_NUMBER = 1;
  private int state_;
  /**
   * .cz.proto.DetailState.State state = 1;
   * @return The enum numeric value on the wire for state.
   */
  @java.lang.Override public int getStateValue() {
    return state_;
  }
  /**
   * .cz.proto.DetailState.State state = 1;
   * @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 JOB_ID_FIELD_NUMBER = 2;
  private volatile java.lang.Object jobId_;
  /**
   * string job_id = 2;
   * @return The jobId.
   */
  @java.lang.Override
  public java.lang.String getJobId() {
    java.lang.Object ref = jobId_;
    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();
      jobId_ = s;
      return s;
    }
  }
  /**
   * string job_id = 2;
   * @return The bytes for jobId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getJobIdBytes() {
    java.lang.Object ref = jobId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      jobId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int SUBMIT_TIME_FIELD_NUMBER = 3;
  private long submitTime_;
  /**
   * int64 submit_time = 3;
   * @return The submitTime.
   */
  @java.lang.Override
  public long getSubmitTime() {
    return submitTime_;
  }

  public static final int INIT_TIME_FIELD_NUMBER = 4;
  private long initTime_;
  /**
   * int64 init_time = 4;
   * @return The initTime.
   */
  @java.lang.Override
  public long getInitTime() {
    return initTime_;
  }

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

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

  public static final int DIAGNOSTIC_FIELD_NUMBER = 7;
  private volatile java.lang.Object diagnostic_;
  /**
   * string diagnostic = 7;
   * @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 = 7;
   * @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 STAGE_PROGRESS_FIELD_NUMBER = 8;
  private static final class StageProgressDefaultEntryHolder {
    static final com.google.protobuf.MapEntry<
        java.lang.String, cz.proto.StageProgress> defaultEntry =
            com.google.protobuf.MapEntry
            .newDefaultInstance(
                cz.proto.JobProto.internal_static_cz_proto_DAGProgress_StageProgressEntry_descriptor, 
                com.google.protobuf.WireFormat.FieldType.STRING,
                "",
                com.google.protobuf.WireFormat.FieldType.MESSAGE,
                cz.proto.StageProgress.getDefaultInstance());
  }
  private com.google.protobuf.MapField<
      java.lang.String, cz.proto.StageProgress> stageProgress_;
  private com.google.protobuf.MapField
  internalGetStageProgress() {
    if (stageProgress_ == null) {
      return com.google.protobuf.MapField.emptyMapField(
          StageProgressDefaultEntryHolder.defaultEntry);
    }
    return stageProgress_;
  }

  public int getStageProgressCount() {
    return internalGetStageProgress().getMap().size();
  }
  /**
   * map<string, .cz.proto.StageProgress> stage_progress = 8;
   */

  @java.lang.Override
  public boolean containsStageProgress(
      java.lang.String key) {
    if (key == null) { throw new NullPointerException("map key"); }
    return internalGetStageProgress().getMap().containsKey(key);
  }
  /**
   * Use {@link #getStageProgressMap()} instead.
   */
  @java.lang.Override
  @java.lang.Deprecated
  public java.util.Map getStageProgress() {
    return getStageProgressMap();
  }
  /**
   * map<string, .cz.proto.StageProgress> stage_progress = 8;
   */
  @java.lang.Override

  public java.util.Map getStageProgressMap() {
    return internalGetStageProgress().getMap();
  }
  /**
   * map<string, .cz.proto.StageProgress> stage_progress = 8;
   */
  @java.lang.Override

  public cz.proto.StageProgress getStageProgressOrDefault(
      java.lang.String key,
      cz.proto.StageProgress defaultValue) {
    if (key == null) { throw new NullPointerException("map key"); }
    java.util.Map map =
        internalGetStageProgress().getMap();
    return map.containsKey(key) ? map.get(key) : defaultValue;
  }
  /**
   * map<string, .cz.proto.StageProgress> stage_progress = 8;
   */
  @java.lang.Override

  public cz.proto.StageProgress getStageProgressOrThrow(
      java.lang.String key) {
    if (key == null) { throw new NullPointerException("map key"); }
    java.util.Map map =
        internalGetStageProgress().getMap();
    if (!map.containsKey(key)) {
      throw new java.lang.IllegalArgumentException();
    }
    return map.get(key);
  }

  public static final int RUNNING_MODE_FIELD_NUMBER = 9;
  private volatile java.lang.Object runningMode_;
  /**
   * string running_mode = 9;
   * @return The runningMode.
   */
  @java.lang.Override
  public java.lang.String getRunningMode() {
    java.lang.Object ref = runningMode_;
    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();
      runningMode_ = s;
      return s;
    }
  }
  /**
   * string running_mode = 9;
   * @return The bytes for runningMode.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getRunningModeBytes() {
    java.lang.Object ref = runningMode_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      runningMode_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  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 (state_ != cz.proto.DetailState.State.NEW.getNumber()) {
      output.writeEnum(1, state_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, jobId_);
    }
    if (submitTime_ != 0L) {
      output.writeInt64(3, submitTime_);
    }
    if (initTime_ != 0L) {
      output.writeInt64(4, initTime_);
    }
    if (startTime_ != 0L) {
      output.writeInt64(5, startTime_);
    }
    if (finishTime_ != 0L) {
      output.writeInt64(6, finishTime_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diagnostic_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, diagnostic_);
    }
    com.google.protobuf.GeneratedMessageV3
      .serializeStringMapTo(
        output,
        internalGetStageProgress(),
        StageProgressDefaultEntryHolder.defaultEntry,
        8);
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(runningMode_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 9, runningMode_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (state_ != cz.proto.DetailState.State.NEW.getNumber()) {
      size += com.google.protobuf.CodedOutputStream
        .computeEnumSize(1, state_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, jobId_);
    }
    if (submitTime_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(3, submitTime_);
    }
    if (initTime_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(4, initTime_);
    }
    if (startTime_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(5, startTime_);
    }
    if (finishTime_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(6, finishTime_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diagnostic_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, diagnostic_);
    }
    for (java.util.Map.Entry entry
         : internalGetStageProgress().getMap().entrySet()) {
      com.google.protobuf.MapEntry
      stageProgress__ = StageProgressDefaultEntryHolder.defaultEntry.newBuilderForType()
          .setKey(entry.getKey())
          .setValue(entry.getValue())
          .build();
      size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(8, stageProgress__);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(runningMode_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, runningMode_);
    }
    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.DAGProgress)) {
      return super.equals(obj);
    }
    cz.proto.DAGProgress other = (cz.proto.DAGProgress) obj;

    if (state_ != other.state_) return false;
    if (!getJobId()
        .equals(other.getJobId())) return false;
    if (getSubmitTime()
        != other.getSubmitTime()) return false;
    if (getInitTime()
        != other.getInitTime()) return false;
    if (getStartTime()
        != other.getStartTime()) return false;
    if (getFinishTime()
        != other.getFinishTime()) return false;
    if (!getDiagnostic()
        .equals(other.getDiagnostic())) return false;
    if (!internalGetStageProgress().equals(
        other.internalGetStageProgress())) return false;
    if (!getRunningMode()
        .equals(other.getRunningMode())) 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) + STATE_FIELD_NUMBER;
    hash = (53 * hash) + state_;
    hash = (37 * hash) + JOB_ID_FIELD_NUMBER;
    hash = (53 * hash) + getJobId().hashCode();
    hash = (37 * hash) + SUBMIT_TIME_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getSubmitTime());
    hash = (37 * hash) + INIT_TIME_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getInitTime());
    hash = (37 * hash) + START_TIME_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getStartTime());
    hash = (37 * hash) + FINISH_TIME_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getFinishTime());
    hash = (37 * hash) + DIAGNOSTIC_FIELD_NUMBER;
    hash = (53 * hash) + getDiagnostic().hashCode();
    if (!internalGetStageProgress().getMap().isEmpty()) {
      hash = (37 * hash) + STAGE_PROGRESS_FIELD_NUMBER;
      hash = (53 * hash) + internalGetStageProgress().hashCode();
    }
    hash = (37 * hash) + RUNNING_MODE_FIELD_NUMBER;
    hash = (53 * hash) + getRunningMode().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMapField(
        int number) {
      switch (number) {
        case 8:
          return internalGetStageProgress();
        default:
          throw new RuntimeException(
              "Invalid map field number: " + number);
      }
    }
    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMutableMapField(
        int number) {
      switch (number) {
        case 8:
          return internalGetMutableStageProgress();
        default:
          throw new RuntimeException(
              "Invalid map field number: " + number);
      }
    }
    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return cz.proto.JobProto.internal_static_cz_proto_DAGProgress_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              cz.proto.DAGProgress.class, cz.proto.DAGProgress.Builder.class);
    }

    // Construct using cz.proto.DAGProgress.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();
      state_ = 0;

      jobId_ = "";

      submitTime_ = 0L;

      initTime_ = 0L;

      startTime_ = 0L;

      finishTime_ = 0L;

      diagnostic_ = "";

      internalGetMutableStageProgress().clear();
      runningMode_ = "";

      return this;
    }

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

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

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

    @java.lang.Override
    public cz.proto.DAGProgress buildPartial() {
      cz.proto.DAGProgress result = new cz.proto.DAGProgress(this);
      int from_bitField0_ = bitField0_;
      result.state_ = state_;
      result.jobId_ = jobId_;
      result.submitTime_ = submitTime_;
      result.initTime_ = initTime_;
      result.startTime_ = startTime_;
      result.finishTime_ = finishTime_;
      result.diagnostic_ = diagnostic_;
      result.stageProgress_ = internalGetStageProgress();
      result.stageProgress_.makeImmutable();
      result.runningMode_ = runningMode_;
      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.DAGProgress) {
        return mergeFrom((cz.proto.DAGProgress)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(cz.proto.DAGProgress other) {
      if (other == cz.proto.DAGProgress.getDefaultInstance()) return this;
      if (other.state_ != 0) {
        setStateValue(other.getStateValue());
      }
      if (!other.getJobId().isEmpty()) {
        jobId_ = other.jobId_;
        onChanged();
      }
      if (other.getSubmitTime() != 0L) {
        setSubmitTime(other.getSubmitTime());
      }
      if (other.getInitTime() != 0L) {
        setInitTime(other.getInitTime());
      }
      if (other.getStartTime() != 0L) {
        setStartTime(other.getStartTime());
      }
      if (other.getFinishTime() != 0L) {
        setFinishTime(other.getFinishTime());
      }
      if (!other.getDiagnostic().isEmpty()) {
        diagnostic_ = other.diagnostic_;
        onChanged();
      }
      internalGetMutableStageProgress().mergeFrom(
          other.internalGetStageProgress());
      if (!other.getRunningMode().isEmpty()) {
        runningMode_ = other.runningMode_;
        onChanged();
      }
      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.DAGProgress parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (cz.proto.DAGProgress) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private int state_ = 0;
    /**
     * .cz.proto.DetailState.State state = 1;
     * @return The enum numeric value on the wire for state.
     */
    @java.lang.Override public int getStateValue() {
      return state_;
    }
    /**
     * .cz.proto.DetailState.State state = 1;
     * @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 = 1;
     * @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 = 1;
     * @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 = 1;
     * @return This builder for chaining.
     */
    public Builder clearState() {
      
      state_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object jobId_ = "";
    /**
     * string job_id = 2;
     * @return The jobId.
     */
    public java.lang.String getJobId() {
      java.lang.Object ref = jobId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        jobId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string job_id = 2;
     * @return The bytes for jobId.
     */
    public com.google.protobuf.ByteString
        getJobIdBytes() {
      java.lang.Object ref = jobId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        jobId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string job_id = 2;
     * @param value The jobId to set.
     * @return This builder for chaining.
     */
    public Builder setJobId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      jobId_ = value;
      onChanged();
      return this;
    }
    /**
     * string job_id = 2;
     * @return This builder for chaining.
     */
    public Builder clearJobId() {
      
      jobId_ = getDefaultInstance().getJobId();
      onChanged();
      return this;
    }
    /**
     * string job_id = 2;
     * @param value The bytes for jobId to set.
     * @return This builder for chaining.
     */
    public Builder setJobIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      jobId_ = value;
      onChanged();
      return this;
    }

    private long submitTime_ ;
    /**
     * int64 submit_time = 3;
     * @return The submitTime.
     */
    @java.lang.Override
    public long getSubmitTime() {
      return submitTime_;
    }
    /**
     * int64 submit_time = 3;
     * @param value The submitTime to set.
     * @return This builder for chaining.
     */
    public Builder setSubmitTime(long value) {
      
      submitTime_ = value;
      onChanged();
      return this;
    }
    /**
     * int64 submit_time = 3;
     * @return This builder for chaining.
     */
    public Builder clearSubmitTime() {
      
      submitTime_ = 0L;
      onChanged();
      return this;
    }

    private long initTime_ ;
    /**
     * int64 init_time = 4;
     * @return The initTime.
     */
    @java.lang.Override
    public long getInitTime() {
      return initTime_;
    }
    /**
     * int64 init_time = 4;
     * @param value The initTime to set.
     * @return This builder for chaining.
     */
    public Builder setInitTime(long value) {
      
      initTime_ = value;
      onChanged();
      return this;
    }
    /**
     * int64 init_time = 4;
     * @return This builder for chaining.
     */
    public Builder clearInitTime() {
      
      initTime_ = 0L;
      onChanged();
      return this;
    }

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

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

    private java.lang.Object diagnostic_ = "";
    /**
     * string diagnostic = 7;
     * @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 = 7;
     * @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 = 7;
     * @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 = 7;
     * @return This builder for chaining.
     */
    public Builder clearDiagnostic() {
      
      diagnostic_ = getDefaultInstance().getDiagnostic();
      onChanged();
      return this;
    }
    /**
     * string diagnostic = 7;
     * @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 com.google.protobuf.MapField<
        java.lang.String, cz.proto.StageProgress> stageProgress_;
    private com.google.protobuf.MapField
    internalGetStageProgress() {
      if (stageProgress_ == null) {
        return com.google.protobuf.MapField.emptyMapField(
            StageProgressDefaultEntryHolder.defaultEntry);
      }
      return stageProgress_;
    }
    private com.google.protobuf.MapField
    internalGetMutableStageProgress() {
      onChanged();;
      if (stageProgress_ == null) {
        stageProgress_ = com.google.protobuf.MapField.newMapField(
            StageProgressDefaultEntryHolder.defaultEntry);
      }
      if (!stageProgress_.isMutable()) {
        stageProgress_ = stageProgress_.copy();
      }
      return stageProgress_;
    }

    public int getStageProgressCount() {
      return internalGetStageProgress().getMap().size();
    }
    /**
     * map<string, .cz.proto.StageProgress> stage_progress = 8;
     */

    @java.lang.Override
    public boolean containsStageProgress(
        java.lang.String key) {
      if (key == null) { throw new NullPointerException("map key"); }
      return internalGetStageProgress().getMap().containsKey(key);
    }
    /**
     * Use {@link #getStageProgressMap()} instead.
     */
    @java.lang.Override
    @java.lang.Deprecated
    public java.util.Map getStageProgress() {
      return getStageProgressMap();
    }
    /**
     * map<string, .cz.proto.StageProgress> stage_progress = 8;
     */
    @java.lang.Override

    public java.util.Map getStageProgressMap() {
      return internalGetStageProgress().getMap();
    }
    /**
     * map<string, .cz.proto.StageProgress> stage_progress = 8;
     */
    @java.lang.Override

    public cz.proto.StageProgress getStageProgressOrDefault(
        java.lang.String key,
        cz.proto.StageProgress defaultValue) {
      if (key == null) { throw new NullPointerException("map key"); }
      java.util.Map map =
          internalGetStageProgress().getMap();
      return map.containsKey(key) ? map.get(key) : defaultValue;
    }
    /**
     * map<string, .cz.proto.StageProgress> stage_progress = 8;
     */
    @java.lang.Override

    public cz.proto.StageProgress getStageProgressOrThrow(
        java.lang.String key) {
      if (key == null) { throw new NullPointerException("map key"); }
      java.util.Map map =
          internalGetStageProgress().getMap();
      if (!map.containsKey(key)) {
        throw new java.lang.IllegalArgumentException();
      }
      return map.get(key);
    }

    public Builder clearStageProgress() {
      internalGetMutableStageProgress().getMutableMap()
          .clear();
      return this;
    }
    /**
     * map<string, .cz.proto.StageProgress> stage_progress = 8;
     */

    public Builder removeStageProgress(
        java.lang.String key) {
      if (key == null) { throw new NullPointerException("map key"); }
      internalGetMutableStageProgress().getMutableMap()
          .remove(key);
      return this;
    }
    /**
     * Use alternate mutation accessors instead.
     */
    @java.lang.Deprecated
    public java.util.Map
    getMutableStageProgress() {
      return internalGetMutableStageProgress().getMutableMap();
    }
    /**
     * map<string, .cz.proto.StageProgress> stage_progress = 8;
     */
    public Builder putStageProgress(
        java.lang.String key,
        cz.proto.StageProgress value) {
      if (key == null) { throw new NullPointerException("map key"); }
      if (value == null) {
  throw new NullPointerException("map value");
}

      internalGetMutableStageProgress().getMutableMap()
          .put(key, value);
      return this;
    }
    /**
     * map<string, .cz.proto.StageProgress> stage_progress = 8;
     */

    public Builder putAllStageProgress(
        java.util.Map values) {
      internalGetMutableStageProgress().getMutableMap()
          .putAll(values);
      return this;
    }

    private java.lang.Object runningMode_ = "";
    /**
     * string running_mode = 9;
     * @return The runningMode.
     */
    public java.lang.String getRunningMode() {
      java.lang.Object ref = runningMode_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        runningMode_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string running_mode = 9;
     * @return The bytes for runningMode.
     */
    public com.google.protobuf.ByteString
        getRunningModeBytes() {
      java.lang.Object ref = runningMode_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        runningMode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string running_mode = 9;
     * @param value The runningMode to set.
     * @return This builder for chaining.
     */
    public Builder setRunningMode(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      runningMode_ = value;
      onChanged();
      return this;
    }
    /**
     * string running_mode = 9;
     * @return This builder for chaining.
     */
    public Builder clearRunningMode() {
      
      runningMode_ = getDefaultInstance().getRunningMode();
      onChanged();
      return this;
    }
    /**
     * string running_mode = 9;
     * @param value The bytes for runningMode to set.
     * @return This builder for chaining.
     */
    public Builder setRunningModeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      runningMode_ = value;
      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.DAGProgress)
  }

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

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

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

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy