package com.google.sps.data;

import java.util.List;

import com.google.auto.value.AutoValue;

/**
 * Value class representing the data associated with a trip created on the My
 * Trips page.
 */
@AutoValue
public abstract class Trip {
  public abstract String title();

  public abstract List<Location> locations();

  // represented by Place ID strings
  public abstract List<String> hotels();

  // [1, 5], scale=0.5
  public abstract double rating();

  public abstract String description();

  public abstract String owner();

  public abstract boolean isPublic();

  public abstract long timestamp();

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

  @AutoValue.Builder
  public abstract static class Builder {
    public abstract Builder setTitle(String value);

    public abstract Builder setLocations(List<Location> value);

    public abstract Builder setHotels(List<String> value);

    public abstract Builder setRating(double value);

    public abstract Builder setDescription(String value);

    public abstract Builder setOwner(String value);

    public abstract Builder setIsPublic(boolean value);

    public abstract Builder setTimestamp(long value);

    public abstract Trip build();
  }
}

@@ -23,16 +23,44 @@
 .data;%0A%0A
+import java.util.ArrayList;%0A
 import j
@@ -74,16 +74,16 @@
 l.List;%0A
-
 %0Aimport 
@@ -257,16 +257,551 @@
  Trip %7B%0A
+%0A  public static final String ENTITY_PROPERTY_TITLE = %22title%22;%0A  public static final String ENTITY_PROPERTY_LOCATIONS = %22locations%22;%0A  public static final String ENTITY_PROPERTY_HOTELS = %22hotels%22;%0A  public static final String ENTITY_PROPERTY_RATING = %22rating%22;%0A  public static final String ENTITY_PROPERTY_DESCRIPTION = %22description%22;%0A  public static final String ENTITY_PROPERTY_OWNER = %22owner%22;%0A  public static final String ENTITY_PROPERTY_PUBLIC = %22is_public%22;%0A  public static final String ENTITY_PROPERTY_TIMESTAMP = %22timestamp%22;%0A%0A
   public
@@ -1208,42 +1208,253 @@
     
-return new AutoValue_Trip.Builder(
+// initialize fields not required at first creation%0A    return new AutoValue_Trip.Builder()%0A                .setHotels(new ArrayList%3CString%3E())%0A                .setRating(-1)%0A                .setDescription(%22%22)%0A                .setIsPublic(false
 );%0A 

Add Trip entity properties to fix build