
com.google.javascript.jscomp.AutoValue_JsMessage Maven / Gradle / Ivy
package com.google.javascript.jscomp;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;
import javax.annotation.processing.Generated;
import org.jspecify.nullness.Nullable;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_JsMessage extends JsMessage {
private final @Nullable String getSourceName;
private final String getKey;
private final boolean isAnonymous;
private final boolean isExternal;
private final String getId;
private final ImmutableList getParts;
private final @Nullable String getAlternateId;
private final @Nullable String getDesc;
private final @Nullable String getMeaning;
private final boolean isHidden;
private final ImmutableMap getPlaceholderNameToExampleMap;
private final ImmutableMap getPlaceholderNameToOriginalCodeMap;
private final ImmutableSet jsPlaceholderNames;
AutoValue_JsMessage(
@Nullable String getSourceName,
String getKey,
boolean isAnonymous,
boolean isExternal,
String getId,
ImmutableList getParts,
@Nullable String getAlternateId,
@Nullable String getDesc,
@Nullable String getMeaning,
boolean isHidden,
ImmutableMap getPlaceholderNameToExampleMap,
ImmutableMap getPlaceholderNameToOriginalCodeMap,
ImmutableSet jsPlaceholderNames) {
this.getSourceName = getSourceName;
if (getKey == null) {
throw new NullPointerException("Null getKey");
}
this.getKey = getKey;
this.isAnonymous = isAnonymous;
this.isExternal = isExternal;
if (getId == null) {
throw new NullPointerException("Null getId");
}
this.getId = getId;
if (getParts == null) {
throw new NullPointerException("Null getParts");
}
this.getParts = getParts;
this.getAlternateId = getAlternateId;
this.getDesc = getDesc;
this.getMeaning = getMeaning;
this.isHidden = isHidden;
if (getPlaceholderNameToExampleMap == null) {
throw new NullPointerException("Null getPlaceholderNameToExampleMap");
}
this.getPlaceholderNameToExampleMap = getPlaceholderNameToExampleMap;
if (getPlaceholderNameToOriginalCodeMap == null) {
throw new NullPointerException("Null getPlaceholderNameToOriginalCodeMap");
}
this.getPlaceholderNameToOriginalCodeMap = getPlaceholderNameToOriginalCodeMap;
if (jsPlaceholderNames == null) {
throw new NullPointerException("Null jsPlaceholderNames");
}
this.jsPlaceholderNames = jsPlaceholderNames;
}
@Override
public @Nullable String getSourceName() {
return getSourceName;
}
@Override
public String getKey() {
return getKey;
}
@Override
public boolean isAnonymous() {
return isAnonymous;
}
@Override
public boolean isExternal() {
return isExternal;
}
@Override
public String getId() {
return getId;
}
@Override
public ImmutableList getParts() {
return getParts;
}
@Override
public @Nullable String getAlternateId() {
return getAlternateId;
}
@Override
public @Nullable String getDesc() {
return getDesc;
}
@Override
public @Nullable String getMeaning() {
return getMeaning;
}
@Override
public boolean isHidden() {
return isHidden;
}
@Override
public ImmutableMap getPlaceholderNameToExampleMap() {
return getPlaceholderNameToExampleMap;
}
@Override
public ImmutableMap getPlaceholderNameToOriginalCodeMap() {
return getPlaceholderNameToOriginalCodeMap;
}
@Override
public ImmutableSet jsPlaceholderNames() {
return jsPlaceholderNames;
}
@Override
public String toString() {
return "JsMessage{"
+ "getSourceName=" + getSourceName + ", "
+ "getKey=" + getKey + ", "
+ "isAnonymous=" + isAnonymous + ", "
+ "isExternal=" + isExternal + ", "
+ "getId=" + getId + ", "
+ "getParts=" + getParts + ", "
+ "getAlternateId=" + getAlternateId + ", "
+ "getDesc=" + getDesc + ", "
+ "getMeaning=" + getMeaning + ", "
+ "isHidden=" + isHidden + ", "
+ "getPlaceholderNameToExampleMap=" + getPlaceholderNameToExampleMap + ", "
+ "getPlaceholderNameToOriginalCodeMap=" + getPlaceholderNameToOriginalCodeMap + ", "
+ "jsPlaceholderNames=" + jsPlaceholderNames
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof JsMessage) {
JsMessage that = (JsMessage) o;
return ((this.getSourceName == null) ? (that.getSourceName() == null) : this.getSourceName.equals(that.getSourceName()))
&& (this.getKey.equals(that.getKey()))
&& (this.isAnonymous == that.isAnonymous())
&& (this.isExternal == that.isExternal())
&& (this.getId.equals(that.getId()))
&& (this.getParts.equals(that.getParts()))
&& ((this.getAlternateId == null) ? (that.getAlternateId() == null) : this.getAlternateId.equals(that.getAlternateId()))
&& ((this.getDesc == null) ? (that.getDesc() == null) : this.getDesc.equals(that.getDesc()))
&& ((this.getMeaning == null) ? (that.getMeaning() == null) : this.getMeaning.equals(that.getMeaning()))
&& (this.isHidden == that.isHidden())
&& (this.getPlaceholderNameToExampleMap.equals(that.getPlaceholderNameToExampleMap()))
&& (this.getPlaceholderNameToOriginalCodeMap.equals(that.getPlaceholderNameToOriginalCodeMap()))
&& (this.jsPlaceholderNames.equals(that.jsPlaceholderNames()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= (getSourceName == null) ? 0 : getSourceName.hashCode();
h$ *= 1000003;
h$ ^= getKey.hashCode();
h$ *= 1000003;
h$ ^= isAnonymous ? 1231 : 1237;
h$ *= 1000003;
h$ ^= isExternal ? 1231 : 1237;
h$ *= 1000003;
h$ ^= getId.hashCode();
h$ *= 1000003;
h$ ^= getParts.hashCode();
h$ *= 1000003;
h$ ^= (getAlternateId == null) ? 0 : getAlternateId.hashCode();
h$ *= 1000003;
h$ ^= (getDesc == null) ? 0 : getDesc.hashCode();
h$ *= 1000003;
h$ ^= (getMeaning == null) ? 0 : getMeaning.hashCode();
h$ *= 1000003;
h$ ^= isHidden ? 1231 : 1237;
h$ *= 1000003;
h$ ^= getPlaceholderNameToExampleMap.hashCode();
h$ *= 1000003;
h$ ^= getPlaceholderNameToOriginalCodeMap.hashCode();
h$ *= 1000003;
h$ ^= jsPlaceholderNames.hashCode();
return h$;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy