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

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

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private JobSummary(
      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: {
            cz.proto.JobStats.Builder subBuilder = null;
            if (stats_ != null) {
              subBuilder = stats_.toBuilder();
            }
            stats_ = input.readMessage(cz.proto.JobStats.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(stats_);
              stats_ = subBuilder.buildPartial();
            }

            break;
          }
          case 18: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              stageSummary_ = com.google.protobuf.MapField.newMapField(
                  StageSummaryDefaultEntryHolder.defaultEntry);
              mutable_bitField0_ |= 0x00000001;
            }
            com.google.protobuf.MapEntry
            stageSummary__ = input.readMessage(
                StageSummaryDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
            stageSummary_.getMutableMap().put(
                stageSummary__.getKey(), stageSummary__.getValue());
            break;
          }
          case 26: {
            cz.proto.meter.MeterOuterClass.Meter.Builder subBuilder = null;
            if (meter_ != null) {
              subBuilder = meter_.toBuilder();
            }
            meter_ = input.readMessage(cz.proto.meter.MeterOuterClass.Meter.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(meter_);
              meter_ = 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_JobSummary_descriptor;
  }

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

  public static final int STATS_FIELD_NUMBER = 1;
  private cz.proto.JobStats stats_;
  /**
   * .cz.proto.JobStats stats = 1;
   * @return Whether the stats field is set.
   */
  @java.lang.Override
  public boolean hasStats() {
    return stats_ != null;
  }
  /**
   * .cz.proto.JobStats stats = 1;
   * @return The stats.
   */
  @java.lang.Override
  public cz.proto.JobStats getStats() {
    return stats_ == null ? cz.proto.JobStats.getDefaultInstance() : stats_;
  }
  /**
   * .cz.proto.JobStats stats = 1;
   */
  @java.lang.Override
  public cz.proto.JobStatsOrBuilder getStatsOrBuilder() {
    return getStats();
  }

  public static final int STAGE_SUMMARY_FIELD_NUMBER = 2;
  private static final class StageSummaryDefaultEntryHolder {
    static final com.google.protobuf.MapEntry<
        java.lang.String, cz.proto.StageSummary> defaultEntry =
            com.google.protobuf.MapEntry
            .newDefaultInstance(
                cz.proto.JobProto.internal_static_cz_proto_JobSummary_StageSummaryEntry_descriptor, 
                com.google.protobuf.WireFormat.FieldType.STRING,
                "",
                com.google.protobuf.WireFormat.FieldType.MESSAGE,
                cz.proto.StageSummary.getDefaultInstance());
  }
  private com.google.protobuf.MapField<
      java.lang.String, cz.proto.StageSummary> stageSummary_;
  private com.google.protobuf.MapField
  internalGetStageSummary() {
    if (stageSummary_ == null) {
      return com.google.protobuf.MapField.emptyMapField(
          StageSummaryDefaultEntryHolder.defaultEntry);
    }
    return stageSummary_;
  }

  public int getStageSummaryCount() {
    return internalGetStageSummary().getMap().size();
  }
  /**
   * map<string, .cz.proto.StageSummary> stage_summary = 2;
   */

  @java.lang.Override
  public boolean containsStageSummary(
      java.lang.String key) {
    if (key == null) { throw new NullPointerException("map key"); }
    return internalGetStageSummary().getMap().containsKey(key);
  }
  /**
   * Use {@link #getStageSummaryMap()} instead.
   */
  @java.lang.Override
  @java.lang.Deprecated
  public java.util.Map getStageSummary() {
    return getStageSummaryMap();
  }
  /**
   * map<string, .cz.proto.StageSummary> stage_summary = 2;
   */
  @java.lang.Override

  public java.util.Map getStageSummaryMap() {
    return internalGetStageSummary().getMap();
  }
  /**
   * map<string, .cz.proto.StageSummary> stage_summary = 2;
   */
  @java.lang.Override

  public cz.proto.StageSummary getStageSummaryOrDefault(
      java.lang.String key,
      cz.proto.StageSummary defaultValue) {
    if (key == null) { throw new NullPointerException("map key"); }
    java.util.Map map =
        internalGetStageSummary().getMap();
    return map.containsKey(key) ? map.get(key) : defaultValue;
  }
  /**
   * map<string, .cz.proto.StageSummary> stage_summary = 2;
   */
  @java.lang.Override

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

  public static final int METER_FIELD_NUMBER = 3;
  private cz.proto.meter.MeterOuterClass.Meter meter_;
  /**
   * .cz.proto.meter.Meter meter = 3;
   * @return Whether the meter field is set.
   */
  @java.lang.Override
  public boolean hasMeter() {
    return meter_ != null;
  }
  /**
   * .cz.proto.meter.Meter meter = 3;
   * @return The meter.
   */
  @java.lang.Override
  public cz.proto.meter.MeterOuterClass.Meter getMeter() {
    return meter_ == null ? cz.proto.meter.MeterOuterClass.Meter.getDefaultInstance() : meter_;
  }
  /**
   * .cz.proto.meter.Meter meter = 3;
   */
  @java.lang.Override
  public cz.proto.meter.MeterOuterClass.MeterOrBuilder getMeterOrBuilder() {
    return getMeter();
  }

  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 (stats_ != null) {
      output.writeMessage(1, getStats());
    }
    com.google.protobuf.GeneratedMessageV3
      .serializeStringMapTo(
        output,
        internalGetStageSummary(),
        StageSummaryDefaultEntryHolder.defaultEntry,
        2);
    if (meter_ != null) {
      output.writeMessage(3, getMeter());
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (stats_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, getStats());
    }
    for (java.util.Map.Entry entry
         : internalGetStageSummary().getMap().entrySet()) {
      com.google.protobuf.MapEntry
      stageSummary__ = StageSummaryDefaultEntryHolder.defaultEntry.newBuilderForType()
          .setKey(entry.getKey())
          .setValue(entry.getValue())
          .build();
      size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, stageSummary__);
    }
    if (meter_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, getMeter());
    }
    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.JobSummary)) {
      return super.equals(obj);
    }
    cz.proto.JobSummary other = (cz.proto.JobSummary) obj;

    if (hasStats() != other.hasStats()) return false;
    if (hasStats()) {
      if (!getStats()
          .equals(other.getStats())) return false;
    }
    if (!internalGetStageSummary().equals(
        other.internalGetStageSummary())) return false;
    if (hasMeter() != other.hasMeter()) return false;
    if (hasMeter()) {
      if (!getMeter()
          .equals(other.getMeter())) 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();
    if (hasStats()) {
      hash = (37 * hash) + STATS_FIELD_NUMBER;
      hash = (53 * hash) + getStats().hashCode();
    }
    if (!internalGetStageSummary().getMap().isEmpty()) {
      hash = (37 * hash) + STAGE_SUMMARY_FIELD_NUMBER;
      hash = (53 * hash) + internalGetStageSummary().hashCode();
    }
    if (hasMeter()) {
      hash = (37 * hash) + METER_FIELD_NUMBER;
      hash = (53 * hash) + getMeter().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMapField(
        int number) {
      switch (number) {
        case 2:
          return internalGetStageSummary();
        default:
          throw new RuntimeException(
              "Invalid map field number: " + number);
      }
    }
    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMutableMapField(
        int number) {
      switch (number) {
        case 2:
          return internalGetMutableStageSummary();
        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_JobSummary_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              cz.proto.JobSummary.class, cz.proto.JobSummary.Builder.class);
    }

    // Construct using cz.proto.JobSummary.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();
      if (statsBuilder_ == null) {
        stats_ = null;
      } else {
        stats_ = null;
        statsBuilder_ = null;
      }
      internalGetMutableStageSummary().clear();
      if (meterBuilder_ == null) {
        meter_ = null;
      } else {
        meter_ = null;
        meterBuilder_ = null;
      }
      return this;
    }

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

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

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

    @java.lang.Override
    public cz.proto.JobSummary buildPartial() {
      cz.proto.JobSummary result = new cz.proto.JobSummary(this);
      int from_bitField0_ = bitField0_;
      if (statsBuilder_ == null) {
        result.stats_ = stats_;
      } else {
        result.stats_ = statsBuilder_.build();
      }
      result.stageSummary_ = internalGetStageSummary();
      result.stageSummary_.makeImmutable();
      if (meterBuilder_ == null) {
        result.meter_ = meter_;
      } else {
        result.meter_ = meterBuilder_.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.JobSummary) {
        return mergeFrom((cz.proto.JobSummary)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(cz.proto.JobSummary other) {
      if (other == cz.proto.JobSummary.getDefaultInstance()) return this;
      if (other.hasStats()) {
        mergeStats(other.getStats());
      }
      internalGetMutableStageSummary().mergeFrom(
          other.internalGetStageSummary());
      if (other.hasMeter()) {
        mergeMeter(other.getMeter());
      }
      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.JobSummary parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (cz.proto.JobSummary) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private cz.proto.JobStats stats_;
    private com.google.protobuf.SingleFieldBuilderV3<
        cz.proto.JobStats, cz.proto.JobStats.Builder, cz.proto.JobStatsOrBuilder> statsBuilder_;
    /**
     * .cz.proto.JobStats stats = 1;
     * @return Whether the stats field is set.
     */
    public boolean hasStats() {
      return statsBuilder_ != null || stats_ != null;
    }
    /**
     * .cz.proto.JobStats stats = 1;
     * @return The stats.
     */
    public cz.proto.JobStats getStats() {
      if (statsBuilder_ == null) {
        return stats_ == null ? cz.proto.JobStats.getDefaultInstance() : stats_;
      } else {
        return statsBuilder_.getMessage();
      }
    }
    /**
     * .cz.proto.JobStats stats = 1;
     */
    public Builder setStats(cz.proto.JobStats value) {
      if (statsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        stats_ = value;
        onChanged();
      } else {
        statsBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * .cz.proto.JobStats stats = 1;
     */
    public Builder setStats(
        cz.proto.JobStats.Builder builderForValue) {
      if (statsBuilder_ == null) {
        stats_ = builderForValue.build();
        onChanged();
      } else {
        statsBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * .cz.proto.JobStats stats = 1;
     */
    public Builder mergeStats(cz.proto.JobStats value) {
      if (statsBuilder_ == null) {
        if (stats_ != null) {
          stats_ =
            cz.proto.JobStats.newBuilder(stats_).mergeFrom(value).buildPartial();
        } else {
          stats_ = value;
        }
        onChanged();
      } else {
        statsBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * .cz.proto.JobStats stats = 1;
     */
    public Builder clearStats() {
      if (statsBuilder_ == null) {
        stats_ = null;
        onChanged();
      } else {
        stats_ = null;
        statsBuilder_ = null;
      }

      return this;
    }
    /**
     * .cz.proto.JobStats stats = 1;
     */
    public cz.proto.JobStats.Builder getStatsBuilder() {
      
      onChanged();
      return getStatsFieldBuilder().getBuilder();
    }
    /**
     * .cz.proto.JobStats stats = 1;
     */
    public cz.proto.JobStatsOrBuilder getStatsOrBuilder() {
      if (statsBuilder_ != null) {
        return statsBuilder_.getMessageOrBuilder();
      } else {
        return stats_ == null ?
            cz.proto.JobStats.getDefaultInstance() : stats_;
      }
    }
    /**
     * .cz.proto.JobStats stats = 1;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        cz.proto.JobStats, cz.proto.JobStats.Builder, cz.proto.JobStatsOrBuilder> 
        getStatsFieldBuilder() {
      if (statsBuilder_ == null) {
        statsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            cz.proto.JobStats, cz.proto.JobStats.Builder, cz.proto.JobStatsOrBuilder>(
                getStats(),
                getParentForChildren(),
                isClean());
        stats_ = null;
      }
      return statsBuilder_;
    }

    private com.google.protobuf.MapField<
        java.lang.String, cz.proto.StageSummary> stageSummary_;
    private com.google.protobuf.MapField
    internalGetStageSummary() {
      if (stageSummary_ == null) {
        return com.google.protobuf.MapField.emptyMapField(
            StageSummaryDefaultEntryHolder.defaultEntry);
      }
      return stageSummary_;
    }
    private com.google.protobuf.MapField
    internalGetMutableStageSummary() {
      onChanged();;
      if (stageSummary_ == null) {
        stageSummary_ = com.google.protobuf.MapField.newMapField(
            StageSummaryDefaultEntryHolder.defaultEntry);
      }
      if (!stageSummary_.isMutable()) {
        stageSummary_ = stageSummary_.copy();
      }
      return stageSummary_;
    }

    public int getStageSummaryCount() {
      return internalGetStageSummary().getMap().size();
    }
    /**
     * map<string, .cz.proto.StageSummary> stage_summary = 2;
     */

    @java.lang.Override
    public boolean containsStageSummary(
        java.lang.String key) {
      if (key == null) { throw new NullPointerException("map key"); }
      return internalGetStageSummary().getMap().containsKey(key);
    }
    /**
     * Use {@link #getStageSummaryMap()} instead.
     */
    @java.lang.Override
    @java.lang.Deprecated
    public java.util.Map getStageSummary() {
      return getStageSummaryMap();
    }
    /**
     * map<string, .cz.proto.StageSummary> stage_summary = 2;
     */
    @java.lang.Override

    public java.util.Map getStageSummaryMap() {
      return internalGetStageSummary().getMap();
    }
    /**
     * map<string, .cz.proto.StageSummary> stage_summary = 2;
     */
    @java.lang.Override

    public cz.proto.StageSummary getStageSummaryOrDefault(
        java.lang.String key,
        cz.proto.StageSummary defaultValue) {
      if (key == null) { throw new NullPointerException("map key"); }
      java.util.Map map =
          internalGetStageSummary().getMap();
      return map.containsKey(key) ? map.get(key) : defaultValue;
    }
    /**
     * map<string, .cz.proto.StageSummary> stage_summary = 2;
     */
    @java.lang.Override

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

    public Builder clearStageSummary() {
      internalGetMutableStageSummary().getMutableMap()
          .clear();
      return this;
    }
    /**
     * map<string, .cz.proto.StageSummary> stage_summary = 2;
     */

    public Builder removeStageSummary(
        java.lang.String key) {
      if (key == null) { throw new NullPointerException("map key"); }
      internalGetMutableStageSummary().getMutableMap()
          .remove(key);
      return this;
    }
    /**
     * Use alternate mutation accessors instead.
     */
    @java.lang.Deprecated
    public java.util.Map
    getMutableStageSummary() {
      return internalGetMutableStageSummary().getMutableMap();
    }
    /**
     * map<string, .cz.proto.StageSummary> stage_summary = 2;
     */
    public Builder putStageSummary(
        java.lang.String key,
        cz.proto.StageSummary value) {
      if (key == null) { throw new NullPointerException("map key"); }
      if (value == null) {
  throw new NullPointerException("map value");
}

      internalGetMutableStageSummary().getMutableMap()
          .put(key, value);
      return this;
    }
    /**
     * map<string, .cz.proto.StageSummary> stage_summary = 2;
     */

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

    private cz.proto.meter.MeterOuterClass.Meter meter_;
    private com.google.protobuf.SingleFieldBuilderV3<
        cz.proto.meter.MeterOuterClass.Meter, cz.proto.meter.MeterOuterClass.Meter.Builder, cz.proto.meter.MeterOuterClass.MeterOrBuilder> meterBuilder_;
    /**
     * .cz.proto.meter.Meter meter = 3;
     * @return Whether the meter field is set.
     */
    public boolean hasMeter() {
      return meterBuilder_ != null || meter_ != null;
    }
    /**
     * .cz.proto.meter.Meter meter = 3;
     * @return The meter.
     */
    public cz.proto.meter.MeterOuterClass.Meter getMeter() {
      if (meterBuilder_ == null) {
        return meter_ == null ? cz.proto.meter.MeterOuterClass.Meter.getDefaultInstance() : meter_;
      } else {
        return meterBuilder_.getMessage();
      }
    }
    /**
     * .cz.proto.meter.Meter meter = 3;
     */
    public Builder setMeter(cz.proto.meter.MeterOuterClass.Meter value) {
      if (meterBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        meter_ = value;
        onChanged();
      } else {
        meterBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * .cz.proto.meter.Meter meter = 3;
     */
    public Builder setMeter(
        cz.proto.meter.MeterOuterClass.Meter.Builder builderForValue) {
      if (meterBuilder_ == null) {
        meter_ = builderForValue.build();
        onChanged();
      } else {
        meterBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * .cz.proto.meter.Meter meter = 3;
     */
    public Builder mergeMeter(cz.proto.meter.MeterOuterClass.Meter value) {
      if (meterBuilder_ == null) {
        if (meter_ != null) {
          meter_ =
            cz.proto.meter.MeterOuterClass.Meter.newBuilder(meter_).mergeFrom(value).buildPartial();
        } else {
          meter_ = value;
        }
        onChanged();
      } else {
        meterBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * .cz.proto.meter.Meter meter = 3;
     */
    public Builder clearMeter() {
      if (meterBuilder_ == null) {
        meter_ = null;
        onChanged();
      } else {
        meter_ = null;
        meterBuilder_ = null;
      }

      return this;
    }
    /**
     * .cz.proto.meter.Meter meter = 3;
     */
    public cz.proto.meter.MeterOuterClass.Meter.Builder getMeterBuilder() {
      
      onChanged();
      return getMeterFieldBuilder().getBuilder();
    }
    /**
     * .cz.proto.meter.Meter meter = 3;
     */
    public cz.proto.meter.MeterOuterClass.MeterOrBuilder getMeterOrBuilder() {
      if (meterBuilder_ != null) {
        return meterBuilder_.getMessageOrBuilder();
      } else {
        return meter_ == null ?
            cz.proto.meter.MeterOuterClass.Meter.getDefaultInstance() : meter_;
      }
    }
    /**
     * .cz.proto.meter.Meter meter = 3;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        cz.proto.meter.MeterOuterClass.Meter, cz.proto.meter.MeterOuterClass.Meter.Builder, cz.proto.meter.MeterOuterClass.MeterOrBuilder> 
        getMeterFieldBuilder() {
      if (meterBuilder_ == null) {
        meterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            cz.proto.meter.MeterOuterClass.Meter, cz.proto.meter.MeterOuterClass.Meter.Builder, cz.proto.meter.MeterOuterClass.MeterOrBuilder>(
                getMeter(),
                getParentForChildren(),
                isClean());
        meter_ = null;
      }
      return meterBuilder_;
    }
    @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.JobSummary)
  }

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

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

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

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy