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

com.google.gerrit.server.account.AutoValue_Preferences_General Maven / Gradle / Ivy

There is a newer version: 3.10.0
Show newest version
package com.google.gerrit.server.account;

import com.google.common.collect.ImmutableList;
import com.google.gerrit.common.Nullable;
import com.google.gerrit.extensions.client.GeneralPreferencesInfo;
import com.google.gerrit.extensions.client.MenuItem;
import java.util.Optional;
import javax.annotation.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_Preferences_General extends Preferences.General {

  private final Optional changesPerPage;

  private final Optional downloadScheme;

  private final Optional downloadCommand;

  private final Optional dateFormat;

  private final Optional timeFormat;

  private final Optional expandInlineDiffs;

  private final Optional highlightAssigneeInChangeTable;

  private final Optional relativeDateInChangeTable;

  private final Optional diffView;

  private final Optional sizeBarInChangeTable;

  private final Optional legacycidInChangeTable;

  private final Optional muteCommonPathPrefixes;

  private final Optional signedOffBy;

  private final Optional emailStrategy;

  private final Optional emailFormat;

  private final Optional defaultBaseForMerges;

  private final Optional publishCommentsOnPush;

  private final Optional workInProgressByDefault;

  private final Optional> my;

  private final Optional> changeTable;

  private AutoValue_Preferences_General(
      Optional changesPerPage,
      Optional downloadScheme,
      Optional downloadCommand,
      Optional dateFormat,
      Optional timeFormat,
      Optional expandInlineDiffs,
      Optional highlightAssigneeInChangeTable,
      Optional relativeDateInChangeTable,
      Optional diffView,
      Optional sizeBarInChangeTable,
      Optional legacycidInChangeTable,
      Optional muteCommonPathPrefixes,
      Optional signedOffBy,
      Optional emailStrategy,
      Optional emailFormat,
      Optional defaultBaseForMerges,
      Optional publishCommentsOnPush,
      Optional workInProgressByDefault,
      Optional> my,
      Optional> changeTable) {
    this.changesPerPage = changesPerPage;
    this.downloadScheme = downloadScheme;
    this.downloadCommand = downloadCommand;
    this.dateFormat = dateFormat;
    this.timeFormat = timeFormat;
    this.expandInlineDiffs = expandInlineDiffs;
    this.highlightAssigneeInChangeTable = highlightAssigneeInChangeTable;
    this.relativeDateInChangeTable = relativeDateInChangeTable;
    this.diffView = diffView;
    this.sizeBarInChangeTable = sizeBarInChangeTable;
    this.legacycidInChangeTable = legacycidInChangeTable;
    this.muteCommonPathPrefixes = muteCommonPathPrefixes;
    this.signedOffBy = signedOffBy;
    this.emailStrategy = emailStrategy;
    this.emailFormat = emailFormat;
    this.defaultBaseForMerges = defaultBaseForMerges;
    this.publishCommentsOnPush = publishCommentsOnPush;
    this.workInProgressByDefault = workInProgressByDefault;
    this.my = my;
    this.changeTable = changeTable;
  }

  @Override
  public Optional changesPerPage() {
    return changesPerPage;
  }

  @Override
  public Optional downloadScheme() {
    return downloadScheme;
  }

  @Override
  public Optional downloadCommand() {
    return downloadCommand;
  }

  @Override
  public Optional dateFormat() {
    return dateFormat;
  }

  @Override
  public Optional timeFormat() {
    return timeFormat;
  }

  @Override
  public Optional expandInlineDiffs() {
    return expandInlineDiffs;
  }

  @Override
  public Optional highlightAssigneeInChangeTable() {
    return highlightAssigneeInChangeTable;
  }

  @Override
  public Optional relativeDateInChangeTable() {
    return relativeDateInChangeTable;
  }

  @Override
  public Optional diffView() {
    return diffView;
  }

  @Override
  public Optional sizeBarInChangeTable() {
    return sizeBarInChangeTable;
  }

  @Override
  public Optional legacycidInChangeTable() {
    return legacycidInChangeTable;
  }

  @Override
  public Optional muteCommonPathPrefixes() {
    return muteCommonPathPrefixes;
  }

  @Override
  public Optional signedOffBy() {
    return signedOffBy;
  }

  @Override
  public Optional emailStrategy() {
    return emailStrategy;
  }

  @Override
  public Optional emailFormat() {
    return emailFormat;
  }

  @Override
  public Optional defaultBaseForMerges() {
    return defaultBaseForMerges;
  }

  @Override
  public Optional publishCommentsOnPush() {
    return publishCommentsOnPush;
  }

  @Override
  public Optional workInProgressByDefault() {
    return workInProgressByDefault;
  }

  @Override
  public Optional> my() {
    return my;
  }

  @Override
  public Optional> changeTable() {
    return changeTable;
  }

  @Override
  public String toString() {
    return "General{"
         + "changesPerPage=" + changesPerPage + ", "
         + "downloadScheme=" + downloadScheme + ", "
         + "downloadCommand=" + downloadCommand + ", "
         + "dateFormat=" + dateFormat + ", "
         + "timeFormat=" + timeFormat + ", "
         + "expandInlineDiffs=" + expandInlineDiffs + ", "
         + "highlightAssigneeInChangeTable=" + highlightAssigneeInChangeTable + ", "
         + "relativeDateInChangeTable=" + relativeDateInChangeTable + ", "
         + "diffView=" + diffView + ", "
         + "sizeBarInChangeTable=" + sizeBarInChangeTable + ", "
         + "legacycidInChangeTable=" + legacycidInChangeTable + ", "
         + "muteCommonPathPrefixes=" + muteCommonPathPrefixes + ", "
         + "signedOffBy=" + signedOffBy + ", "
         + "emailStrategy=" + emailStrategy + ", "
         + "emailFormat=" + emailFormat + ", "
         + "defaultBaseForMerges=" + defaultBaseForMerges + ", "
         + "publishCommentsOnPush=" + publishCommentsOnPush + ", "
         + "workInProgressByDefault=" + workInProgressByDefault + ", "
         + "my=" + my + ", "
         + "changeTable=" + changeTable
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof Preferences.General) {
      Preferences.General that = (Preferences.General) o;
      return this.changesPerPage.equals(that.changesPerPage())
          && this.downloadScheme.equals(that.downloadScheme())
          && this.downloadCommand.equals(that.downloadCommand())
          && this.dateFormat.equals(that.dateFormat())
          && this.timeFormat.equals(that.timeFormat())
          && this.expandInlineDiffs.equals(that.expandInlineDiffs())
          && this.highlightAssigneeInChangeTable.equals(that.highlightAssigneeInChangeTable())
          && this.relativeDateInChangeTable.equals(that.relativeDateInChangeTable())
          && this.diffView.equals(that.diffView())
          && this.sizeBarInChangeTable.equals(that.sizeBarInChangeTable())
          && this.legacycidInChangeTable.equals(that.legacycidInChangeTable())
          && this.muteCommonPathPrefixes.equals(that.muteCommonPathPrefixes())
          && this.signedOffBy.equals(that.signedOffBy())
          && this.emailStrategy.equals(that.emailStrategy())
          && this.emailFormat.equals(that.emailFormat())
          && this.defaultBaseForMerges.equals(that.defaultBaseForMerges())
          && this.publishCommentsOnPush.equals(that.publishCommentsOnPush())
          && this.workInProgressByDefault.equals(that.workInProgressByDefault())
          && this.my.equals(that.my())
          && this.changeTable.equals(that.changeTable());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= changesPerPage.hashCode();
    h$ *= 1000003;
    h$ ^= downloadScheme.hashCode();
    h$ *= 1000003;
    h$ ^= downloadCommand.hashCode();
    h$ *= 1000003;
    h$ ^= dateFormat.hashCode();
    h$ *= 1000003;
    h$ ^= timeFormat.hashCode();
    h$ *= 1000003;
    h$ ^= expandInlineDiffs.hashCode();
    h$ *= 1000003;
    h$ ^= highlightAssigneeInChangeTable.hashCode();
    h$ *= 1000003;
    h$ ^= relativeDateInChangeTable.hashCode();
    h$ *= 1000003;
    h$ ^= diffView.hashCode();
    h$ *= 1000003;
    h$ ^= sizeBarInChangeTable.hashCode();
    h$ *= 1000003;
    h$ ^= legacycidInChangeTable.hashCode();
    h$ *= 1000003;
    h$ ^= muteCommonPathPrefixes.hashCode();
    h$ *= 1000003;
    h$ ^= signedOffBy.hashCode();
    h$ *= 1000003;
    h$ ^= emailStrategy.hashCode();
    h$ *= 1000003;
    h$ ^= emailFormat.hashCode();
    h$ *= 1000003;
    h$ ^= defaultBaseForMerges.hashCode();
    h$ *= 1000003;
    h$ ^= publishCommentsOnPush.hashCode();
    h$ *= 1000003;
    h$ ^= workInProgressByDefault.hashCode();
    h$ *= 1000003;
    h$ ^= my.hashCode();
    h$ *= 1000003;
    h$ ^= changeTable.hashCode();
    return h$;
  }

  static final class Builder extends Preferences.General.Builder {
    private Optional changesPerPage = Optional.empty();
    private Optional downloadScheme = Optional.empty();
    private Optional downloadCommand = Optional.empty();
    private Optional dateFormat = Optional.empty();
    private Optional timeFormat = Optional.empty();
    private Optional expandInlineDiffs = Optional.empty();
    private Optional highlightAssigneeInChangeTable = Optional.empty();
    private Optional relativeDateInChangeTable = Optional.empty();
    private Optional diffView = Optional.empty();
    private Optional sizeBarInChangeTable = Optional.empty();
    private Optional legacycidInChangeTable = Optional.empty();
    private Optional muteCommonPathPrefixes = Optional.empty();
    private Optional signedOffBy = Optional.empty();
    private Optional emailStrategy = Optional.empty();
    private Optional emailFormat = Optional.empty();
    private Optional defaultBaseForMerges = Optional.empty();
    private Optional publishCommentsOnPush = Optional.empty();
    private Optional workInProgressByDefault = Optional.empty();
    private Optional> my = Optional.empty();
    private Optional> changeTable = Optional.empty();
    Builder() {
    }
    @Override
    Preferences.General.Builder changesPerPage(@Nullable Integer changesPerPage) {
      this.changesPerPage = Optional.ofNullable(changesPerPage);
      return this;
    }
    @Override
    Preferences.General.Builder downloadScheme(@Nullable String downloadScheme) {
      this.downloadScheme = Optional.ofNullable(downloadScheme);
      return this;
    }
    @Override
    Preferences.General.Builder downloadCommand(@Nullable GeneralPreferencesInfo.DownloadCommand downloadCommand) {
      this.downloadCommand = Optional.ofNullable(downloadCommand);
      return this;
    }
    @Override
    Preferences.General.Builder dateFormat(@Nullable GeneralPreferencesInfo.DateFormat dateFormat) {
      this.dateFormat = Optional.ofNullable(dateFormat);
      return this;
    }
    @Override
    Preferences.General.Builder timeFormat(@Nullable GeneralPreferencesInfo.TimeFormat timeFormat) {
      this.timeFormat = Optional.ofNullable(timeFormat);
      return this;
    }
    @Override
    Preferences.General.Builder expandInlineDiffs(@Nullable Boolean expandInlineDiffs) {
      this.expandInlineDiffs = Optional.ofNullable(expandInlineDiffs);
      return this;
    }
    @Override
    Preferences.General.Builder highlightAssigneeInChangeTable(@Nullable Boolean highlightAssigneeInChangeTable) {
      this.highlightAssigneeInChangeTable = Optional.ofNullable(highlightAssigneeInChangeTable);
      return this;
    }
    @Override
    Preferences.General.Builder relativeDateInChangeTable(@Nullable Boolean relativeDateInChangeTable) {
      this.relativeDateInChangeTable = Optional.ofNullable(relativeDateInChangeTable);
      return this;
    }
    @Override
    Preferences.General.Builder diffView(@Nullable GeneralPreferencesInfo.DiffView diffView) {
      this.diffView = Optional.ofNullable(diffView);
      return this;
    }
    @Override
    Preferences.General.Builder sizeBarInChangeTable(@Nullable Boolean sizeBarInChangeTable) {
      this.sizeBarInChangeTable = Optional.ofNullable(sizeBarInChangeTable);
      return this;
    }
    @Override
    Preferences.General.Builder legacycidInChangeTable(@Nullable Boolean legacycidInChangeTable) {
      this.legacycidInChangeTable = Optional.ofNullable(legacycidInChangeTable);
      return this;
    }
    @Override
    Preferences.General.Builder muteCommonPathPrefixes(@Nullable Boolean muteCommonPathPrefixes) {
      this.muteCommonPathPrefixes = Optional.ofNullable(muteCommonPathPrefixes);
      return this;
    }
    @Override
    Preferences.General.Builder signedOffBy(@Nullable Boolean signedOffBy) {
      this.signedOffBy = Optional.ofNullable(signedOffBy);
      return this;
    }
    @Override
    Preferences.General.Builder emailStrategy(@Nullable GeneralPreferencesInfo.EmailStrategy emailStrategy) {
      this.emailStrategy = Optional.ofNullable(emailStrategy);
      return this;
    }
    @Override
    Preferences.General.Builder emailFormat(@Nullable GeneralPreferencesInfo.EmailFormat emailFormat) {
      this.emailFormat = Optional.ofNullable(emailFormat);
      return this;
    }
    @Override
    Preferences.General.Builder defaultBaseForMerges(@Nullable GeneralPreferencesInfo.DefaultBase defaultBaseForMerges) {
      this.defaultBaseForMerges = Optional.ofNullable(defaultBaseForMerges);
      return this;
    }
    @Override
    Preferences.General.Builder publishCommentsOnPush(@Nullable Boolean publishCommentsOnPush) {
      this.publishCommentsOnPush = Optional.ofNullable(publishCommentsOnPush);
      return this;
    }
    @Override
    Preferences.General.Builder workInProgressByDefault(@Nullable Boolean workInProgressByDefault) {
      this.workInProgressByDefault = Optional.ofNullable(workInProgressByDefault);
      return this;
    }
    @Override
    Preferences.General.Builder my(@Nullable ImmutableList my) {
      this.my = Optional.ofNullable(my);
      return this;
    }
    @Override
    Preferences.General.Builder changeTable(@Nullable ImmutableList changeTable) {
      this.changeTable = Optional.ofNullable(changeTable);
      return this;
    }
    @Override
    Preferences.General build() {
      return new AutoValue_Preferences_General(
          this.changesPerPage,
          this.downloadScheme,
          this.downloadCommand,
          this.dateFormat,
          this.timeFormat,
          this.expandInlineDiffs,
          this.highlightAssigneeInChangeTable,
          this.relativeDateInChangeTable,
          this.diffView,
          this.sizeBarInChangeTable,
          this.legacycidInChangeTable,
          this.muteCommonPathPrefixes,
          this.signedOffBy,
          this.emailStrategy,
          this.emailFormat,
          this.defaultBaseForMerges,
          this.publishCommentsOnPush,
          this.workInProgressByDefault,
          this.my,
          this.changeTable);
    }
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy