package com.google.android.gnd.model;

import com.google.auto.value.AutoValue;

/** Represents a single application user. */
@AutoValue
public abstract class User {

  // TODO: Replace this workaround with Optional<User> or UNKNOWN.
  public static final User ANONYMOUS =
      User.builder().setId("").setEmail("").setDisplayName("").build();

  public abstract String getId();

  public abstract String getEmail();

  public abstract String getDisplayName();

  // Auto-generated by Android Studio AutoValue plugin.

  public static Builder builder() {
    return new AutoValue_User.Builder();
  }

  @AutoValue.Builder
  public abstract static class Builder {

    public abstract Builder setId(String newId);

    public abstract Builder setEmail(String newEmail);

    public abstract Builder setDisplayName(String newDisplayName);

    public abstract User build();
  }
}

@@ -163,187 +163,8 @@
  %7B%0A%0A
-  // TODO: Replace this workaround with Optional%3CUser%3E or UNKNOWN.%0A  public static final User ANONYMOUS =%0A      User.builder().setId(%22%22).setEmail(%22%22).setDisplayName(%22%22).build();%0A%0A
   pu

Eliminate ANONYMOUS user constant