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

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

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private StageSummary(
      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();

            stageId_ = s;
            break;
          }
          case 16: {

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

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

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

            runningTime_ = input.readInt64();
            break;
          }
          case 50: {
            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;
          }
          case 58: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              taskSummary_ = com.google.protobuf.MapField.newMapField(
                  TaskSummaryDefaultEntryHolder.defaultEntry);
              mutable_bitField0_ |= 0x00000001;
            }
            com.google.protobuf.MapEntry
            taskSummary__ = input.readMessage(
                TaskSummaryDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
            taskSummary_.getMutableMap().put(
                taskSummary__.getKey(), taskSummary__.getValue());
            break;
          }
          case 66: {
            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
              operatorSummary_ = com.google.protobuf.MapField.newMapField(
                  OperatorSummaryDefaultEntryHolder.defaultEntry);
              mutable_bitField0_ |= 0x00000002;
            }
            com.google.protobuf.MapEntry
            operatorSummary__ = input.readMessage(
                OperatorSummaryDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
            operatorSummary_.getMutableMap().put(
                operatorSummary__.getKey(), operatorSummary__.getValue());
            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_StageSummary_descriptor;
  }

  @SuppressWarnings({"rawtypes"})
  @java.lang.Override
  protected com.google.protobuf.MapField internalGetMapField(
      int number) {
    switch (number) {
      case 7:
        return internalGetTaskSummary();
      case 8:
        return internalGetOperatorSummary();
      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_StageSummary_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            cz.proto.StageSummary.class, cz.proto.StageSummary.Builder.class);
  }

  public static final int STAGE_ID_FIELD_NUMBER = 1;
  private volatile java.lang.Object stageId_;
  /**
   * string stage_id = 1;
   * @return The stageId.
   */
  @java.lang.Override
  public java.lang.String getStageId() {
    java.lang.Object ref = stageId_;
    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();
      stageId_ = s;
      return s;
    }
  }
  /**
   * string stage_id = 1;
   * @return The bytes for stageId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getStageIdBytes() {
    java.lang.Object ref = stageId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      stageId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

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

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

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

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

  public static final int INPUT_OUTPUT_STATS_FIELD_NUMBER = 6;
  private cz.proto.InputOutputStats inputOutputStats_;
  /**
   * .cz.proto.InputOutputStats input_output_stats = 6;
   * @return Whether the inputOutputStats field is set.
   */
  @java.lang.Override
  public boolean hasInputOutputStats() {
    return inputOutputStats_ != null;
  }
  /**
   * .cz.proto.InputOutputStats input_output_stats = 6;
   * @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 = 6;
   */
  @java.lang.Override
  public cz.proto.InputOutputStatsOrBuilder getInputOutputStatsOrBuilder() {
    return getInputOutputStats();
  }

  public static final int TASK_SUMMARY_FIELD_NUMBER = 7;
  private static final class TaskSummaryDefaultEntryHolder {
    static final com.google.protobuf.MapEntry<
        java.lang.Long, cz.proto.TaskSummary> defaultEntry =
            com.google.protobuf.MapEntry
            .newDefaultInstance(
                cz.proto.JobProto.internal_static_cz_proto_StageSummary_TaskSummaryEntry_descriptor, 
                com.google.protobuf.WireFormat.FieldType.UINT64,
                0L,
                com.google.protobuf.WireFormat.FieldType.MESSAGE,
                cz.proto.TaskSummary.getDefaultInstance());
  }
  private com.google.protobuf.MapField<
      java.lang.Long, cz.proto.TaskSummary> taskSummary_;
  private com.google.protobuf.MapField
  internalGetTaskSummary() {
    if (taskSummary_ == null) {
      return com.google.protobuf.MapField.emptyMapField(
          TaskSummaryDefaultEntryHolder.defaultEntry);
    }
    return taskSummary_;
  }

  public int getTaskSummaryCount() {
    return internalGetTaskSummary().getMap().size();
  }
  /**
   * map<uint64, .cz.proto.TaskSummary> task_summary = 7;
   */

  @java.lang.Override
  public boolean containsTaskSummary(
      long key) {
    
    return internalGetTaskSummary().getMap().containsKey(key);
  }
  /**
   * Use {@link #getTaskSummaryMap()} instead.
   */
  @java.lang.Override
  @java.lang.Deprecated
  public java.util.Map getTaskSummary() {
    return getTaskSummaryMap();
  }
  /**
   * map<uint64, .cz.proto.TaskSummary> task_summary = 7;
   */
  @java.lang.Override

  public java.util.Map getTaskSummaryMap() {
    return internalGetTaskSummary().getMap();
  }
  /**
   * map<uint64, .cz.proto.TaskSummary> task_summary = 7;
   */
  @java.lang.Override

  public cz.proto.TaskSummary getTaskSummaryOrDefault(
      long key,
      cz.proto.TaskSummary defaultValue) {
    
    java.util.Map map =
        internalGetTaskSummary().getMap();
    return map.containsKey(key) ? map.get(key) : defaultValue;
  }
  /**
   * map<uint64, .cz.proto.TaskSummary> task_summary = 7;
   */
  @java.lang.Override

  public cz.proto.TaskSummary getTaskSummaryOrThrow(
      long key) {
    
    java.util.Map map =
        internalGetTaskSummary().getMap();
    if (!map.containsKey(key)) {
      throw new java.lang.IllegalArgumentException();
    }
    return map.get(key);
  }

  public static final int OPERATOR_SUMMARY_FIELD_NUMBER = 8;
  private static final class OperatorSummaryDefaultEntryHolder {
    static final com.google.protobuf.MapEntry<
        java.lang.String, cz.proto.OperatorSummary> defaultEntry =
            com.google.protobuf.MapEntry
            .newDefaultInstance(
                cz.proto.JobProto.internal_static_cz_proto_StageSummary_OperatorSummaryEntry_descriptor, 
                com.google.protobuf.WireFormat.FieldType.STRING,
                "",
                com.google.protobuf.WireFormat.FieldType.MESSAGE,
                cz.proto.OperatorSummary.getDefaultInstance());
  }
  private com.google.protobuf.MapField<
      java.lang.String, cz.proto.OperatorSummary> operatorSummary_;
  private com.google.protobuf.MapField
  internalGetOperatorSummary() {
    if (operatorSummary_ == null) {
      return com.google.protobuf.MapField.emptyMapField(
          OperatorSummaryDefaultEntryHolder.defaultEntry);
    }
    return operatorSummary_;
  }

  public int getOperatorSummaryCount() {
    return internalGetOperatorSummary().getMap().size();
  }
  /**
   * map<string, .cz.proto.OperatorSummary> operator_summary = 8;
   */

  @java.lang.Override
  public boolean containsOperatorSummary(
      java.lang.String key) {
    if (key == null) { throw new NullPointerException("map key"); }
    return internalGetOperatorSummary().getMap().containsKey(key);
  }
  /**
   * Use {@link #getOperatorSummaryMap()} instead.
   */
  @java.lang.Override
  @java.lang.Deprecated
  public java.util.Map getOperatorSummary() {
    return getOperatorSummaryMap();
  }
  /**
   * map<string, .cz.proto.OperatorSummary> operator_summary = 8;
   */
  @java.lang.Override

  public java.util.Map getOperatorSummaryMap() {
    return internalGetOperatorSummary().getMap();
  }
  /**
   * map<string, .cz.proto.OperatorSummary> operator_summary = 8;
   */
  @java.lang.Override

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

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

  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(stageId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, stageId_);
    }
    if (startTime_ != 0L) {
      output.writeInt64(2, startTime_);
    }
    if (endTime_ != 0L) {
      output.writeInt64(3, endTime_);
    }
    if (pendingTime_ != 0L) {
      output.writeInt64(4, pendingTime_);
    }
    if (runningTime_ != 0L) {
      output.writeInt64(5, runningTime_);
    }
    if (inputOutputStats_ != null) {
      output.writeMessage(6, getInputOutputStats());
    }
    com.google.protobuf.GeneratedMessageV3
      .serializeLongMapTo(
        output,
        internalGetTaskSummary(),
        TaskSummaryDefaultEntryHolder.defaultEntry,
        7);
    com.google.protobuf.GeneratedMessageV3
      .serializeStringMapTo(
        output,
        internalGetOperatorSummary(),
        OperatorSummaryDefaultEntryHolder.defaultEntry,
        8);
    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(stageId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, stageId_);
    }
    if (startTime_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(2, startTime_);
    }
    if (endTime_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(3, endTime_);
    }
    if (pendingTime_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(4, pendingTime_);
    }
    if (runningTime_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(5, runningTime_);
    }
    if (inputOutputStats_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(6, getInputOutputStats());
    }
    for (java.util.Map.Entry entry
         : internalGetTaskSummary().getMap().entrySet()) {
      com.google.protobuf.MapEntry
      taskSummary__ = TaskSummaryDefaultEntryHolder.defaultEntry.newBuilderForType()
          .setKey(entry.getKey())
          .setValue(entry.getValue())
          .build();
      size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(7, taskSummary__);
    }
    for (java.util.Map.Entry entry
         : internalGetOperatorSummary().getMap().entrySet()) {
      com.google.protobuf.MapEntry
      operatorSummary__ = OperatorSummaryDefaultEntryHolder.defaultEntry.newBuilderForType()
          .setKey(entry.getKey())
          .setValue(entry.getValue())
          .build();
      size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(8, operatorSummary__);
    }
    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.StageSummary)) {
      return super.equals(obj);
    }
    cz.proto.StageSummary other = (cz.proto.StageSummary) obj;

    if (!getStageId()
        .equals(other.getStageId())) 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 (hasInputOutputStats() != other.hasInputOutputStats()) return false;
    if (hasInputOutputStats()) {
      if (!getInputOutputStats()
          .equals(other.getInputOutputStats())) return false;
    }
    if (!internalGetTaskSummary().equals(
        other.internalGetTaskSummary())) return false;
    if (!internalGetOperatorSummary().equals(
        other.internalGetOperatorSummary())) 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) + STAGE_ID_FIELD_NUMBER;
    hash = (53 * hash) + getStageId().hashCode();
    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());
    if (hasInputOutputStats()) {
      hash = (37 * hash) + INPUT_OUTPUT_STATS_FIELD_NUMBER;
      hash = (53 * hash) + getInputOutputStats().hashCode();
    }
    if (!internalGetTaskSummary().getMap().isEmpty()) {
      hash = (37 * hash) + TASK_SUMMARY_FIELD_NUMBER;
      hash = (53 * hash) + internalGetTaskSummary().hashCode();
    }
    if (!internalGetOperatorSummary().getMap().isEmpty()) {
      hash = (37 * hash) + OPERATOR_SUMMARY_FIELD_NUMBER;
      hash = (53 * hash) + internalGetOperatorSummary().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMapField(
        int number) {
      switch (number) {
        case 7:
          return internalGetTaskSummary();
        case 8:
          return internalGetOperatorSummary();
        default:
          throw new RuntimeException(
              "Invalid map field number: " + number);
      }
    }
    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMutableMapField(
        int number) {
      switch (number) {
        case 7:
          return internalGetMutableTaskSummary();
        case 8:
          return internalGetMutableOperatorSummary();
        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_StageSummary_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              cz.proto.StageSummary.class, cz.proto.StageSummary.Builder.class);
    }

    // Construct using cz.proto.StageSummary.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();
      stageId_ = "";

      startTime_ = 0L;

      endTime_ = 0L;

      pendingTime_ = 0L;

      runningTime_ = 0L;

      if (inputOutputStatsBuilder_ == null) {
        inputOutputStats_ = null;
      } else {
        inputOutputStats_ = null;
        inputOutputStatsBuilder_ = null;
      }
      internalGetMutableTaskSummary().clear();
      internalGetMutableOperatorSummary().clear();
      return this;
    }

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

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

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

    @java.lang.Override
    public cz.proto.StageSummary buildPartial() {
      cz.proto.StageSummary result = new cz.proto.StageSummary(this);
      int from_bitField0_ = bitField0_;
      result.stageId_ = stageId_;
      result.startTime_ = startTime_;
      result.endTime_ = endTime_;
      result.pendingTime_ = pendingTime_;
      result.runningTime_ = runningTime_;
      if (inputOutputStatsBuilder_ == null) {
        result.inputOutputStats_ = inputOutputStats_;
      } else {
        result.inputOutputStats_ = inputOutputStatsBuilder_.build();
      }
      result.taskSummary_ = internalGetTaskSummary();
      result.taskSummary_.makeImmutable();
      result.operatorSummary_ = internalGetOperatorSummary();
      result.operatorSummary_.makeImmutable();
      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.StageSummary) {
        return mergeFrom((cz.proto.StageSummary)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(cz.proto.StageSummary other) {
      if (other == cz.proto.StageSummary.getDefaultInstance()) return this;
      if (!other.getStageId().isEmpty()) {
        stageId_ = other.stageId_;
        onChanged();
      }
      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.hasInputOutputStats()) {
        mergeInputOutputStats(other.getInputOutputStats());
      }
      internalGetMutableTaskSummary().mergeFrom(
          other.internalGetTaskSummary());
      internalGetMutableOperatorSummary().mergeFrom(
          other.internalGetOperatorSummary());
      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.StageSummary parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (cz.proto.StageSummary) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private java.lang.Object stageId_ = "";
    /**
     * string stage_id = 1;
     * @return The stageId.
     */
    public java.lang.String getStageId() {
      java.lang.Object ref = stageId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        stageId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string stage_id = 1;
     * @return The bytes for stageId.
     */
    public com.google.protobuf.ByteString
        getStageIdBytes() {
      java.lang.Object ref = stageId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        stageId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string stage_id = 1;
     * @param value The stageId to set.
     * @return This builder for chaining.
     */
    public Builder setStageId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      stageId_ = value;
      onChanged();
      return this;
    }
    /**
     * string stage_id = 1;
     * @return This builder for chaining.
     */
    public Builder clearStageId() {
      
      stageId_ = getDefaultInstance().getStageId();
      onChanged();
      return this;
    }
    /**
     * string stage_id = 1;
     * @param value The bytes for stageId to set.
     * @return This builder for chaining.
     */
    public Builder setStageIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      stageId_ = value;
      onChanged();
      return this;
    }

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

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

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

    private long runningTime_ ;
    /**
     * int64 running_time = 5;
     * @return The runningTime.
     */
    @java.lang.Override
    public long getRunningTime() {
      return runningTime_;
    }
    /**
     * int64 running_time = 5;
     * @param value The runningTime to set.
     * @return This builder for chaining.
     */
    public Builder setRunningTime(long value) {
      
      runningTime_ = value;
      onChanged();
      return this;
    }
    /**
     * int64 running_time = 5;
     * @return This builder for chaining.
     */
    public Builder clearRunningTime() {
      
      runningTime_ = 0L;
      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 = 6;
     * @return Whether the inputOutputStats field is set.
     */
    public boolean hasInputOutputStats() {
      return inputOutputStatsBuilder_ != null || inputOutputStats_ != null;
    }
    /**
     * .cz.proto.InputOutputStats input_output_stats = 6;
     * @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 = 6;
     */
    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 = 6;
     */
    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 = 6;
     */
    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 = 6;
     */
    public Builder clearInputOutputStats() {
      if (inputOutputStatsBuilder_ == null) {
        inputOutputStats_ = null;
        onChanged();
      } else {
        inputOutputStats_ = null;
        inputOutputStatsBuilder_ = null;
      }

      return this;
    }
    /**
     * .cz.proto.InputOutputStats input_output_stats = 6;
     */
    public cz.proto.InputOutputStats.Builder getInputOutputStatsBuilder() {
      
      onChanged();
      return getInputOutputStatsFieldBuilder().getBuilder();
    }
    /**
     * .cz.proto.InputOutputStats input_output_stats = 6;
     */
    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 = 6;
     */
    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_;
    }

    private com.google.protobuf.MapField<
        java.lang.Long, cz.proto.TaskSummary> taskSummary_;
    private com.google.protobuf.MapField
    internalGetTaskSummary() {
      if (taskSummary_ == null) {
        return com.google.protobuf.MapField.emptyMapField(
            TaskSummaryDefaultEntryHolder.defaultEntry);
      }
      return taskSummary_;
    }
    private com.google.protobuf.MapField
    internalGetMutableTaskSummary() {
      onChanged();;
      if (taskSummary_ == null) {
        taskSummary_ = com.google.protobuf.MapField.newMapField(
            TaskSummaryDefaultEntryHolder.defaultEntry);
      }
      if (!taskSummary_.isMutable()) {
        taskSummary_ = taskSummary_.copy();
      }
      return taskSummary_;
    }

    public int getTaskSummaryCount() {
      return internalGetTaskSummary().getMap().size();
    }
    /**
     * map<uint64, .cz.proto.TaskSummary> task_summary = 7;
     */

    @java.lang.Override
    public boolean containsTaskSummary(
        long key) {
      
      return internalGetTaskSummary().getMap().containsKey(key);
    }
    /**
     * Use {@link #getTaskSummaryMap()} instead.
     */
    @java.lang.Override
    @java.lang.Deprecated
    public java.util.Map getTaskSummary() {
      return getTaskSummaryMap();
    }
    /**
     * map<uint64, .cz.proto.TaskSummary> task_summary = 7;
     */
    @java.lang.Override

    public java.util.Map getTaskSummaryMap() {
      return internalGetTaskSummary().getMap();
    }
    /**
     * map<uint64, .cz.proto.TaskSummary> task_summary = 7;
     */
    @java.lang.Override

    public cz.proto.TaskSummary getTaskSummaryOrDefault(
        long key,
        cz.proto.TaskSummary defaultValue) {
      
      java.util.Map map =
          internalGetTaskSummary().getMap();
      return map.containsKey(key) ? map.get(key) : defaultValue;
    }
    /**
     * map<uint64, .cz.proto.TaskSummary> task_summary = 7;
     */
    @java.lang.Override

    public cz.proto.TaskSummary getTaskSummaryOrThrow(
        long key) {
      
      java.util.Map map =
          internalGetTaskSummary().getMap();
      if (!map.containsKey(key)) {
        throw new java.lang.IllegalArgumentException();
      }
      return map.get(key);
    }

    public Builder clearTaskSummary() {
      internalGetMutableTaskSummary().getMutableMap()
          .clear();
      return this;
    }
    /**
     * map<uint64, .cz.proto.TaskSummary> task_summary = 7;
     */

    public Builder removeTaskSummary(
        long key) {
      
      internalGetMutableTaskSummary().getMutableMap()
          .remove(key);
      return this;
    }
    /**
     * Use alternate mutation accessors instead.
     */
    @java.lang.Deprecated
    public java.util.Map
    getMutableTaskSummary() {
      return internalGetMutableTaskSummary().getMutableMap();
    }
    /**
     * map<uint64, .cz.proto.TaskSummary> task_summary = 7;
     */
    public Builder putTaskSummary(
        long key,
        cz.proto.TaskSummary value) {
      
      if (value == null) {
  throw new NullPointerException("map value");
}

      internalGetMutableTaskSummary().getMutableMap()
          .put(key, value);
      return this;
    }
    /**
     * map<uint64, .cz.proto.TaskSummary> task_summary = 7;
     */

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

    private com.google.protobuf.MapField<
        java.lang.String, cz.proto.OperatorSummary> operatorSummary_;
    private com.google.protobuf.MapField
    internalGetOperatorSummary() {
      if (operatorSummary_ == null) {
        return com.google.protobuf.MapField.emptyMapField(
            OperatorSummaryDefaultEntryHolder.defaultEntry);
      }
      return operatorSummary_;
    }
    private com.google.protobuf.MapField
    internalGetMutableOperatorSummary() {
      onChanged();;
      if (operatorSummary_ == null) {
        operatorSummary_ = com.google.protobuf.MapField.newMapField(
            OperatorSummaryDefaultEntryHolder.defaultEntry);
      }
      if (!operatorSummary_.isMutable()) {
        operatorSummary_ = operatorSummary_.copy();
      }
      return operatorSummary_;
    }

    public int getOperatorSummaryCount() {
      return internalGetOperatorSummary().getMap().size();
    }
    /**
     * map<string, .cz.proto.OperatorSummary> operator_summary = 8;
     */

    @java.lang.Override
    public boolean containsOperatorSummary(
        java.lang.String key) {
      if (key == null) { throw new NullPointerException("map key"); }
      return internalGetOperatorSummary().getMap().containsKey(key);
    }
    /**
     * Use {@link #getOperatorSummaryMap()} instead.
     */
    @java.lang.Override
    @java.lang.Deprecated
    public java.util.Map getOperatorSummary() {
      return getOperatorSummaryMap();
    }
    /**
     * map<string, .cz.proto.OperatorSummary> operator_summary = 8;
     */
    @java.lang.Override

    public java.util.Map getOperatorSummaryMap() {
      return internalGetOperatorSummary().getMap();
    }
    /**
     * map<string, .cz.proto.OperatorSummary> operator_summary = 8;
     */
    @java.lang.Override

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

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

    public Builder clearOperatorSummary() {
      internalGetMutableOperatorSummary().getMutableMap()
          .clear();
      return this;
    }
    /**
     * map<string, .cz.proto.OperatorSummary> operator_summary = 8;
     */

    public Builder removeOperatorSummary(
        java.lang.String key) {
      if (key == null) { throw new NullPointerException("map key"); }
      internalGetMutableOperatorSummary().getMutableMap()
          .remove(key);
      return this;
    }
    /**
     * Use alternate mutation accessors instead.
     */
    @java.lang.Deprecated
    public java.util.Map
    getMutableOperatorSummary() {
      return internalGetMutableOperatorSummary().getMutableMap();
    }
    /**
     * map<string, .cz.proto.OperatorSummary> operator_summary = 8;
     */
    public Builder putOperatorSummary(
        java.lang.String key,
        cz.proto.OperatorSummary value) {
      if (key == null) { throw new NullPointerException("map key"); }
      if (value == null) {
  throw new NullPointerException("map value");
}

      internalGetMutableOperatorSummary().getMutableMap()
          .put(key, value);
      return this;
    }
    /**
     * map<string, .cz.proto.OperatorSummary> operator_summary = 8;
     */

    public Builder putAllOperatorSummary(
        java.util.Map values) {
      internalGetMutableOperatorSummary().getMutableMap()
          .putAll(values);
      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.StageSummary)
  }

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

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

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

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy