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

com.google.javascript.jscomp.AutoValue_JsMessage Maven / Gradle / Ivy

Go to download

Closure Compiler is a JavaScript optimizing compiler. It parses your JavaScript, analyzes it, removes dead code and rewrites and minimizes what's left. It also checks syntax, variable references, and types, and warns about common JavaScript pitfalls. It is used in many of Google's JavaScript apps, including Gmail, Google Web Search, Google Maps, and Google Docs.

There is a newer version: v20240317
Show newest version


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 - 2024 Weber Informatics LLC | Privacy Policy