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

com.google.cloud.bigquery.AutoValue_TimelineSample Maven / Gradle / Ivy

There is a newer version: 2.44.0
Show newest version
package com.google.cloud.bigquery;

import javax.annotation.Generated;
import javax.annotation.Nullable;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_TimelineSample extends TimelineSample {

  @Nullable
  private final Long elapsedMs;

  @Nullable
  private final Long activeUnits;

  @Nullable
  private final Long completedUnits;

  @Nullable
  private final Long pendingUnits;

  @Nullable
  private final Long slotMillis;

  private AutoValue_TimelineSample(
      @Nullable Long elapsedMs,
      @Nullable Long activeUnits,
      @Nullable Long completedUnits,
      @Nullable Long pendingUnits,
      @Nullable Long slotMillis) {
    this.elapsedMs = elapsedMs;
    this.activeUnits = activeUnits;
    this.completedUnits = completedUnits;
    this.pendingUnits = pendingUnits;
    this.slotMillis = slotMillis;
  }

  @Nullable
  @Override
  public Long getElapsedMs() {
    return elapsedMs;
  }

  @Nullable
  @Override
  public Long getActiveUnits() {
    return activeUnits;
  }

  @Nullable
  @Override
  public Long getCompletedUnits() {
    return completedUnits;
  }

  @Nullable
  @Override
  public Long getPendingUnits() {
    return pendingUnits;
  }

  @Nullable
  @Override
  public Long getSlotMillis() {
    return slotMillis;
  }

  @Override
  public String toString() {
    return "TimelineSample{"
        + "elapsedMs=" + elapsedMs + ", "
        + "activeUnits=" + activeUnits + ", "
        + "completedUnits=" + completedUnits + ", "
        + "pendingUnits=" + pendingUnits + ", "
        + "slotMillis=" + slotMillis
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof TimelineSample) {
      TimelineSample that = (TimelineSample) o;
      return (this.elapsedMs == null ? that.getElapsedMs() == null : this.elapsedMs.equals(that.getElapsedMs()))
          && (this.activeUnits == null ? that.getActiveUnits() == null : this.activeUnits.equals(that.getActiveUnits()))
          && (this.completedUnits == null ? that.getCompletedUnits() == null : this.completedUnits.equals(that.getCompletedUnits()))
          && (this.pendingUnits == null ? that.getPendingUnits() == null : this.pendingUnits.equals(that.getPendingUnits()))
          && (this.slotMillis == null ? that.getSlotMillis() == null : this.slotMillis.equals(that.getSlotMillis()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= (elapsedMs == null) ? 0 : elapsedMs.hashCode();
    h$ *= 1000003;
    h$ ^= (activeUnits == null) ? 0 : activeUnits.hashCode();
    h$ *= 1000003;
    h$ ^= (completedUnits == null) ? 0 : completedUnits.hashCode();
    h$ *= 1000003;
    h$ ^= (pendingUnits == null) ? 0 : pendingUnits.hashCode();
    h$ *= 1000003;
    h$ ^= (slotMillis == null) ? 0 : slotMillis.hashCode();
    return h$;
  }

  @Override
  public TimelineSample.Builder toBuilder() {
    return new AutoValue_TimelineSample.Builder(this);
  }

  static final class Builder extends TimelineSample.Builder {
    private Long elapsedMs;
    private Long activeUnits;
    private Long completedUnits;
    private Long pendingUnits;
    private Long slotMillis;
    Builder() {
    }
    Builder(TimelineSample source) {
      this.elapsedMs = source.getElapsedMs();
      this.activeUnits = source.getActiveUnits();
      this.completedUnits = source.getCompletedUnits();
      this.pendingUnits = source.getPendingUnits();
      this.slotMillis = source.getSlotMillis();
    }
    @Override
    public TimelineSample.Builder setElapsedMs(Long elapsedMs) {
      this.elapsedMs = elapsedMs;
      return this;
    }
    @Override
    public TimelineSample.Builder setActiveUnits(Long activeUnits) {
      this.activeUnits = activeUnits;
      return this;
    }
    @Override
    public TimelineSample.Builder setCompletedUnits(Long completedUnits) {
      this.completedUnits = completedUnits;
      return this;
    }
    @Override
    public TimelineSample.Builder setPendingUnits(Long pendingUnits) {
      this.pendingUnits = pendingUnits;
      return this;
    }
    @Override
    public TimelineSample.Builder setSlotMillis(Long slotMillis) {
      this.slotMillis = slotMillis;
      return this;
    }
    @Override
    public TimelineSample build() {
      return new AutoValue_TimelineSample(
          this.elapsedMs,
          this.activeUnits,
          this.completedUnits,
          this.pendingUnits,
          this.slotMillis);
    }
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy