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



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 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 Change.Status status;

  private final Boolean isPrivate;

  private final Boolean isWorkInProgress;

  private final Boolean hasReviewStarted;

  private final Change.Id revertOf;

  AutoValue_ChangeNotesState_ChangeColumns(
      Change.Key changeKey,
      Timestamp createdOn,
      Timestamp lastUpdatedOn,
      Account.Id owner,
      String branch,
      @Nullable PatchSet.Id currentPatchSetId,
      String subject,
      @Nullable String topic,
      @Nullable String originalSubject,
      @Nullable String submissionId,
      @Nullable Account.Id assignee,
      @Nullable Change.Status status,
      @Nullable Boolean isPrivate,
      @Nullable Boolean isWorkInProgress,
      @Nullable Boolean hasReviewStarted,
      @Nullable Change.Id revertOf) {
    if (changeKey == null) {
      throw new NullPointerException("Null changeKey");
    }
    this.changeKey = changeKey;
    if (createdOn == null) {
      throw new NullPointerException("Null createdOn");
    }
    this.createdOn = createdOn;
    if (lastUpdatedOn == null) {
      throw new NullPointerException("Null lastUpdatedOn");
    }
    this.lastUpdatedOn = lastUpdatedOn;
    if (owner == null) {
      throw new NullPointerException("Null owner");
    }
    this.owner = owner;
    if (branch == null) {
      throw new NullPointerException("Null branch");
    }
    this.branch = branch;
    this.currentPatchSetId = currentPatchSetId;
    if (subject == null) {
      throw new NullPointerException("Null subject");
    }
    this.subject = subject;
    this.topic = topic;
    this.originalSubject = originalSubject;
    this.submissionId = submissionId;
    this.assignee = assignee;
    this.status = status;
    this.isPrivate = isPrivate;
    this.isWorkInProgress = isWorkInProgress;
    this.hasReviewStarted = hasReviewStarted;
    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
  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;
  }

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

  @Nullable
  @Override
  Boolean isPrivate() {
    return isPrivate;
  }

  @Nullable
  @Override
  Boolean isWorkInProgress() {
    return isWorkInProgress;
  }

  @Nullable
  @Override
  Boolean hasReviewStarted() {
    return hasReviewStarted;
  }

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

  @Override
  public String toString() {
    return "ChangeColumns{"
         + "changeKey=" + changeKey + ", "
         + "createdOn=" + createdOn + ", "
         + "lastUpdatedOn=" + lastUpdatedOn + ", "
         + "owner=" + owner + ", "
         + "branch=" + branch + ", "
         + "currentPatchSetId=" + currentPatchSetId + ", "
         + "subject=" + subject + ", "
         + "topic=" + topic + ", "
         + "originalSubject=" + originalSubject + ", "
         + "submissionId=" + submissionId + ", "
         + "assignee=" + assignee + ", "
         + "status=" + status + ", "
         + "isPrivate=" + isPrivate + ", "
         + "isWorkInProgress=" + isWorkInProgress + ", "
         + "hasReviewStarted=" + hasReviewStarted + ", "
         + "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.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.status == null) ? (that.status() == null) : this.status.equals(that.status()))
           && ((this.isPrivate == null) ? (that.isPrivate() == null) : this.isPrivate.equals(that.isPrivate()))
           && ((this.isWorkInProgress == null) ? (that.isWorkInProgress() == null) : this.isWorkInProgress.equals(that.isWorkInProgress()))
           && ((this.hasReviewStarted == null) ? (that.hasReviewStarted() == null) : this.hasReviewStarted.equals(that.hasReviewStarted()))
           && ((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$ ^= (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$ ^= (status == null) ? 0 : status.hashCode();
    h$ *= 1000003;
    h$ ^= (isPrivate == null) ? 0 : isPrivate.hashCode();
    h$ *= 1000003;
    h$ ^= (isWorkInProgress == null) ? 0 : isWorkInProgress.hashCode();
    h$ *= 1000003;
    h$ ^= (hasReviewStarted == null) ? 0 : hasReviewStarted.hashCode();
    h$ *= 1000003;
    h$ ^= (revertOf == null) ? 0 : revertOf.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy