edu.stanford.protege.webprotege.projectsettings.AutoValue_ProjectSettings Maven / Gradle / Ivy
The newest version!
package edu.stanford.protege.webprotege.projectsettings;
import com.fasterxml.jackson.annotation.JsonProperty;
import edu.stanford.protege.webprotege.common.DictionaryLanguage;
import edu.stanford.protege.webprotege.common.ProjectId;
import edu.stanford.protege.webprotege.lang.DisplayNameSettings;
import javax.annotation.Nonnull;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ProjectSettings extends ProjectSettings {
private final ProjectId projectId;
private final String projectDisplayName;
private final String projectDescription;
private final DictionaryLanguage defaultLanguage;
private final DisplayNameSettings defaultDisplayNameSettings;
private final SlackIntegrationSettings slackIntegrationSettings;
private final WebhookSettings webhookSettings;
private final EntityDeprecationSettings entityDeprecationSettings;
AutoValue_ProjectSettings(
ProjectId projectId,
String projectDisplayName,
String projectDescription,
DictionaryLanguage defaultLanguage,
DisplayNameSettings defaultDisplayNameSettings,
SlackIntegrationSettings slackIntegrationSettings,
WebhookSettings webhookSettings,
EntityDeprecationSettings entityDeprecationSettings) {
if (projectId == null) {
throw new NullPointerException("Null projectId");
}
this.projectId = projectId;
if (projectDisplayName == null) {
throw new NullPointerException("Null projectDisplayName");
}
this.projectDisplayName = projectDisplayName;
if (projectDescription == null) {
throw new NullPointerException("Null projectDescription");
}
this.projectDescription = projectDescription;
if (defaultLanguage == null) {
throw new NullPointerException("Null defaultLanguage");
}
this.defaultLanguage = defaultLanguage;
if (defaultDisplayNameSettings == null) {
throw new NullPointerException("Null defaultDisplayNameSettings");
}
this.defaultDisplayNameSettings = defaultDisplayNameSettings;
if (slackIntegrationSettings == null) {
throw new NullPointerException("Null slackIntegrationSettings");
}
this.slackIntegrationSettings = slackIntegrationSettings;
if (webhookSettings == null) {
throw new NullPointerException("Null webhookSettings");
}
this.webhookSettings = webhookSettings;
if (entityDeprecationSettings == null) {
throw new NullPointerException("Null entityDeprecationSettings");
}
this.entityDeprecationSettings = entityDeprecationSettings;
}
@JsonProperty("projectId")
@Nonnull
@Override
public ProjectId getProjectId() {
return projectId;
}
@Nonnull
@JsonProperty("displayName")
@Override
public String getProjectDisplayName() {
return projectDisplayName;
}
@Nonnull
@JsonProperty("description")
@Override
public String getProjectDescription() {
return projectDescription;
}
@Nonnull
@JsonProperty("defaultLanguage")
@Override
public DictionaryLanguage getDefaultLanguage() {
return defaultLanguage;
}
@Nonnull
@JsonProperty("defaultDisplayNameSettings")
@Override
public DisplayNameSettings getDefaultDisplayNameSettings() {
return defaultDisplayNameSettings;
}
@Nonnull
@JsonProperty("slackIntegrationSettings")
@Override
public SlackIntegrationSettings getSlackIntegrationSettings() {
return slackIntegrationSettings;
}
@Nonnull
@JsonProperty("webhookSettings")
@Override
public WebhookSettings getWebhookSettings() {
return webhookSettings;
}
@Nonnull
@JsonProperty("entityDeprecationSettings")
@Override
public EntityDeprecationSettings getEntityDeprecationSettings() {
return entityDeprecationSettings;
}
@Override
public String toString() {
return "ProjectSettings{"
+ "projectId=" + projectId + ", "
+ "projectDisplayName=" + projectDisplayName + ", "
+ "projectDescription=" + projectDescription + ", "
+ "defaultLanguage=" + defaultLanguage + ", "
+ "defaultDisplayNameSettings=" + defaultDisplayNameSettings + ", "
+ "slackIntegrationSettings=" + slackIntegrationSettings + ", "
+ "webhookSettings=" + webhookSettings + ", "
+ "entityDeprecationSettings=" + entityDeprecationSettings
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ProjectSettings) {
ProjectSettings that = (ProjectSettings) o;
return this.projectId.equals(that.getProjectId())
&& this.projectDisplayName.equals(that.getProjectDisplayName())
&& this.projectDescription.equals(that.getProjectDescription())
&& this.defaultLanguage.equals(that.getDefaultLanguage())
&& this.defaultDisplayNameSettings.equals(that.getDefaultDisplayNameSettings())
&& this.slackIntegrationSettings.equals(that.getSlackIntegrationSettings())
&& this.webhookSettings.equals(that.getWebhookSettings())
&& this.entityDeprecationSettings.equals(that.getEntityDeprecationSettings());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= projectId.hashCode();
h$ *= 1000003;
h$ ^= projectDisplayName.hashCode();
h$ *= 1000003;
h$ ^= projectDescription.hashCode();
h$ *= 1000003;
h$ ^= defaultLanguage.hashCode();
h$ *= 1000003;
h$ ^= defaultDisplayNameSettings.hashCode();
h$ *= 1000003;
h$ ^= slackIntegrationSettings.hashCode();
h$ *= 1000003;
h$ ^= webhookSettings.hashCode();
h$ *= 1000003;
h$ ^= entityDeprecationSettings.hashCode();
return h$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy