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

com.google.gerrit.server.notedb.AutoValue_ChangeNotesState_ChangeColumns Maven / Gradle / Ivy

There is a newer version: 3.10.0-rc4
Show newest version


package com.google.gerrit.server.notedb;

import com.google.gerrit.common.Nullable;
import com.google.gerrit.reviewdb.client.Account;
import com.google.gerrit.reviewdb.client.Change;
import com.google.gerrit.reviewdb.client.PatchSet;
import java.sql.Timestamp;
import javax.annotation.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ChangeNotesState_ChangeColumns extends ChangeNotesState.ChangeColumns {

  private final Change.Key changeKey;

  private final Timestamp createdOn;

  private final Timestamp lastUpdatedOn;

  private final Account.Id owner;

  private final String branch;

  private final Change.Status status;

  private final PatchSet.Id currentPatchSetId;

  private final String subject;

  private final String topic;

  private final String originalSubject;

  private final String submissionId;

  private final Account.Id assignee;

  private final boolean isPrivate;

  private final boolean workInProgress;

  private final boolean reviewStarted;

  private final Change.Id revertOf;

  private AutoValue_ChangeNotesState_ChangeColumns(
      Change.Key changeKey,
      Timestamp createdOn,
      Timestamp lastUpdatedOn,
      Account.Id owner,
      String branch,
      @Nullable Change.Status status,
      @Nullable PatchSet.Id currentPatchSetId,
      String subject,
      @Nullable String topic,
      @Nullable String originalSubject,
      @Nullable String submissionId,
      @Nullable Account.Id assignee,
      boolean isPrivate,
      boolean workInProgress,
      boolean reviewStarted,
      @Nullable Change.Id revertOf) {
    this.changeKey = changeKey;
    this.createdOn = createdOn;
    this.lastUpdatedOn = lastUpdatedOn;
    this.owner = owner;
    this.branch = branch;
    this.status = status;
    this.currentPatchSetId = currentPatchSetId;
    this.subject = subject;
    this.topic = topic;
    this.originalSubject = originalSubject;
    this.submissionId = submissionId;
    this.assignee = assignee;
    this.isPrivate = isPrivate;
    this.workInProgress = workInProgress;
    this.reviewStarted = reviewStarted;
    this.revertOf = revertOf;
  }

  @Override
  Change.Key changeKey() {
    return changeKey;
  }

  @Override
  Timestamp createdOn() {
    return createdOn;
  }

  @Override
  Timestamp lastUpdatedOn() {
    return lastUpdatedOn;
  }

  @Override
  Account.Id owner() {
    return owner;
  }

  @Override
  String branch() {
    return branch;
  }

  @Nullable
  @Override
  Change.Status status() {
    return status;
  }

  @Nullable
  @Override
  PatchSet.Id currentPatchSetId() {
    return currentPatchSetId;
  }

  @Override
  String subject() {
    return subject;
  }

  @Nullable
  @Override
  String topic() {
    return topic;
  }

  @Nullable
  @Override
  String originalSubject() {
    return originalSubject;
  }

  @Nullable
  @Override
  String submissionId() {
    return submissionId;
  }

  @Nullable
  @Override
  Account.Id assignee() {
    return assignee;
  }

  @Override
  boolean isPrivate() {
    return isPrivate;
  }

  @Override
  boolean workInProgress() {
    return workInProgress;
  }

  @Override
  boolean reviewStarted() {
    return reviewStarted;
  }

  @Nullable
  @Override
  Change.Id revertOf() {
    return revertOf;
  }

  @Override
  public String toString() {
    return "ChangeColumns{"
         + "changeKey=" + changeKey + ", "
         + "createdOn=" + createdOn + ", "
         + "lastUpdatedOn=" + lastUpdatedOn + ", "
         + "owner=" + owner + ", "
         + "branch=" + branch + ", "
         + "status=" + status + ", "
         + "currentPatchSetId=" + currentPatchSetId + ", "
         + "subject=" + subject + ", "
         + "topic=" + topic + ", "
         + "originalSubject=" + originalSubject + ", "
         + "submissionId=" + submissionId + ", "
         + "assignee=" + assignee + ", "
         + "isPrivate=" + isPrivate + ", "
         + "workInProgress=" + workInProgress + ", "
         + "reviewStarted=" + reviewStarted + ", "
         + "revertOf=" + revertOf
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof ChangeNotesState.ChangeColumns) {
      ChangeNotesState.ChangeColumns that = (ChangeNotesState.ChangeColumns) o;
      return (this.changeKey.equals(that.changeKey()))
           && (this.createdOn.equals(that.createdOn()))
           && (this.lastUpdatedOn.equals(that.lastUpdatedOn()))
           && (this.owner.equals(that.owner()))
           && (this.branch.equals(that.branch()))
           && ((this.status == null) ? (that.status() == null) : this.status.equals(that.status()))
           && ((this.currentPatchSetId == null) ? (that.currentPatchSetId() == null) : this.currentPatchSetId.equals(that.currentPatchSetId()))
           && (this.subject.equals(that.subject()))
           && ((this.topic == null) ? (that.topic() == null) : this.topic.equals(that.topic()))
           && ((this.originalSubject == null) ? (that.originalSubject() == null) : this.originalSubject.equals(that.originalSubject()))
           && ((this.submissionId == null) ? (that.submissionId() == null) : this.submissionId.equals(that.submissionId()))
           && ((this.assignee == null) ? (that.assignee() == null) : this.assignee.equals(that.assignee()))
           && (this.isPrivate == that.isPrivate())
           && (this.workInProgress == that.workInProgress())
           && (this.reviewStarted == that.reviewStarted())
           && ((this.revertOf == null) ? (that.revertOf() == null) : this.revertOf.equals(that.revertOf()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= changeKey.hashCode();
    h$ *= 1000003;
    h$ ^= createdOn.hashCode();
    h$ *= 1000003;
    h$ ^= lastUpdatedOn.hashCode();
    h$ *= 1000003;
    h$ ^= owner.hashCode();
    h$ *= 1000003;
    h$ ^= branch.hashCode();
    h$ *= 1000003;
    h$ ^= (status == null) ? 0 : status.hashCode();
    h$ *= 1000003;
    h$ ^= (currentPatchSetId == null) ? 0 : currentPatchSetId.hashCode();
    h$ *= 1000003;
    h$ ^= subject.hashCode();
    h$ *= 1000003;
    h$ ^= (topic == null) ? 0 : topic.hashCode();
    h$ *= 1000003;
    h$ ^= (originalSubject == null) ? 0 : originalSubject.hashCode();
    h$ *= 1000003;
    h$ ^= (submissionId == null) ? 0 : submissionId.hashCode();
    h$ *= 1000003;
    h$ ^= (assignee == null) ? 0 : assignee.hashCode();
    h$ *= 1000003;
    h$ ^= isPrivate ? 1231 : 1237;
    h$ *= 1000003;
    h$ ^= workInProgress ? 1231 : 1237;
    h$ *= 1000003;
    h$ ^= reviewStarted ? 1231 : 1237;
    h$ *= 1000003;
    h$ ^= (revertOf == null) ? 0 : revertOf.hashCode();
    return h$;
  }

  @Override
  ChangeNotesState.ChangeColumns.Builder toBuilder() {
    return new Builder(this);
  }

  static final class Builder extends ChangeNotesState.ChangeColumns.Builder {
    private Change.Key changeKey;
    private Timestamp createdOn;
    private Timestamp lastUpdatedOn;
    private Account.Id owner;
    private String branch;
    private Change.Status status;
    private PatchSet.Id currentPatchSetId;
    private String subject;
    private String topic;
    private String originalSubject;
    private String submissionId;
    private Account.Id assignee;
    private Boolean isPrivate;
    private Boolean workInProgress;
    private Boolean reviewStarted;
    private Change.Id revertOf;
    Builder() {
    }
    private Builder(ChangeNotesState.ChangeColumns source) {
      this.changeKey = source.changeKey();
      this.createdOn = source.createdOn();
      this.lastUpdatedOn = source.lastUpdatedOn();
      this.owner = source.owner();
      this.branch = source.branch();
      this.status = source.status();
      this.currentPatchSetId = source.currentPatchSetId();
      this.subject = source.subject();
      this.topic = source.topic();
      this.originalSubject = source.originalSubject();
      this.submissionId = source.submissionId();
      this.assignee = source.assignee();
      this.isPrivate = source.isPrivate();
      this.workInProgress = source.workInProgress();
      this.reviewStarted = source.reviewStarted();
      this.revertOf = source.revertOf();
    }
    @Override
    ChangeNotesState.ChangeColumns.Builder changeKey(Change.Key changeKey) {
      if (changeKey == null) {
        throw new NullPointerException("Null changeKey");
      }
      this.changeKey = changeKey;
      return this;
    }
    @Override
    ChangeNotesState.ChangeColumns.Builder createdOn(Timestamp createdOn) {
      if (createdOn == null) {
        throw new NullPointerException("Null createdOn");
      }
      this.createdOn = createdOn;
      return this;
    }
    @Override
    ChangeNotesState.ChangeColumns.Builder lastUpdatedOn(Timestamp lastUpdatedOn) {
      if (lastUpdatedOn == null) {
        throw new NullPointerException("Null lastUpdatedOn");
      }
      this.lastUpdatedOn = lastUpdatedOn;
      return this;
    }
    @Override
    ChangeNotesState.ChangeColumns.Builder owner(Account.Id owner) {
      if (owner == null) {
        throw new NullPointerException("Null owner");
      }
      this.owner = owner;
      return this;
    }
    @Override
    ChangeNotesState.ChangeColumns.Builder branch(String branch) {
      if (branch == null) {
        throw new NullPointerException("Null branch");
      }
      this.branch = branch;
      return this;
    }
    @Override
    ChangeNotesState.ChangeColumns.Builder status(@Nullable Change.Status status) {
      this.status = status;
      return this;
    }
    @Override
    ChangeNotesState.ChangeColumns.Builder currentPatchSetId(@Nullable PatchSet.Id currentPatchSetId) {
      this.currentPatchSetId = currentPatchSetId;
      return this;
    }
    @Override
    ChangeNotesState.ChangeColumns.Builder subject(String subject) {
      if (subject == null) {
        throw new NullPointerException("Null subject");
      }
      this.subject = subject;
      return this;
    }
    @Override
    ChangeNotesState.ChangeColumns.Builder topic(@Nullable String topic) {
      this.topic = topic;
      return this;
    }
    @Override
    ChangeNotesState.ChangeColumns.Builder originalSubject(@Nullable String originalSubject) {
      this.originalSubject = originalSubject;
      return this;
    }
    @Override
    ChangeNotesState.ChangeColumns.Builder submissionId(@Nullable String submissionId) {
      this.submissionId = submissionId;
      return this;
    }
    @Override
    ChangeNotesState.ChangeColumns.Builder assignee(@Nullable Account.Id assignee) {
      this.assignee = assignee;
      return this;
    }
    @Override
    ChangeNotesState.ChangeColumns.Builder isPrivate(boolean isPrivate) {
      this.isPrivate = isPrivate;
      return this;
    }
    @Override
    ChangeNotesState.ChangeColumns.Builder workInProgress(boolean workInProgress) {
      this.workInProgress = workInProgress;
      return this;
    }
    @Override
    ChangeNotesState.ChangeColumns.Builder reviewStarted(boolean reviewStarted) {
      this.reviewStarted = reviewStarted;
      return this;
    }
    @Override
    ChangeNotesState.ChangeColumns.Builder revertOf(@Nullable Change.Id revertOf) {
      this.revertOf = revertOf;
      return this;
    }
    @Override
    ChangeNotesState.ChangeColumns build() {
      String missing = "";
      if (this.changeKey == null) {
        missing += " changeKey";
      }
      if (this.createdOn == null) {
        missing += " createdOn";
      }
      if (this.lastUpdatedOn == null) {
        missing += " lastUpdatedOn";
      }
      if (this.owner == null) {
        missing += " owner";
      }
      if (this.branch == null) {
        missing += " branch";
      }
      if (this.subject == null) {
        missing += " subject";
      }
      if (this.isPrivate == null) {
        missing += " isPrivate";
      }
      if (this.workInProgress == null) {
        missing += " workInProgress";
      }
      if (this.reviewStarted == null) {
        missing += " reviewStarted";
      }
      if (!missing.isEmpty()) {
        throw new IllegalStateException("Missing required properties:" + missing);
      }
      return new AutoValue_ChangeNotesState_ChangeColumns(
          this.changeKey,
          this.createdOn,
          this.lastUpdatedOn,
          this.owner,
          this.branch,
          this.status,
          this.currentPatchSetId,
          this.subject,
          this.topic,
          this.originalSubject,
          this.submissionId,
          this.assignee,
          this.isPrivate,
          this.workInProgress,
          this.reviewStarted,
          this.revertOf);
    }
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy