@Test @SmallTest public void packageNameIsRequired() { ReceivedKeyedAppStateBuilder builder = ReceivedKeyedAppState.builder() .setTimestamp(TIMESTAMP) .setKey(KEY) .setSeverity(SEVERITY) .setMessage(MESSAGE) .setData(DATA); try { builder.build(); fail(); } catch (IllegalStateException expected) { } }
@NonNull public static ReceivedKeyedAppStateBuilder builder() { return new AutoValue_ReceivedKeyedAppState.Builder(); }
ReceivedKeyedAppState { @NonNull public static ReceivedKeyedAppStateBuilder builder() { return new AutoValue_ReceivedKeyedAppState.Builder(); } }
ReceivedKeyedAppState { @NonNull public static ReceivedKeyedAppStateBuilder builder() { return new AutoValue_ReceivedKeyedAppState.Builder(); } ReceivedKeyedAppState(); }
ReceivedKeyedAppState { @NonNull public static ReceivedKeyedAppStateBuilder builder() { return new AutoValue_ReceivedKeyedAppState.Builder(); } ReceivedKeyedAppState(); @NonNull static ReceivedKeyedAppStateBuilder builder(); @NonNull abstract String getPackageName(); abstract long getTimestamp(); @NonNull abstract String getKey(); abstract int getSeverity(); @Nullable abstract String getMessage(); @Nullable abstract String getData(); }
ReceivedKeyedAppState { @NonNull public static ReceivedKeyedAppStateBuilder builder() { return new AutoValue_ReceivedKeyedAppState.Builder(); } ReceivedKeyedAppState(); @NonNull static ReceivedKeyedAppStateBuilder builder(); @NonNull abstract String getPackageName(); abstract long getTimestamp(); @NonNull abstract String getKey(); abstract int getSeverity(); @Nullable abstract String getMessage(); @Nullable abstract String getData();  }