InAppMessage implements Parcelable, ScheduleData { @NonNull public static Builder newBuilder() { return new Builder(); } private  InAppMessage(@NonNull Builder builder); @DisplayType @NonNull String getType(); @SuppressWarnings("unchecked") @Nullable T getDisplayContent(); @Nullable String getName(); @NonNull JsonMap getExtras(); @NonNull Map<String, JsonValue> getActions(); @RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) @Source @NonNull String getSource(); @DisplayBehavior @NonNull String getDisplayBehavior(); boolean isReportingEnabled(); @NonNull @Override JsonValue toJsonValue(); @NonNull @RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) static InAppMessage fromJson(@NonNull JsonValue jsonValue, @Nullable @Source String defaultSource); @NonNull static InAppMessage fromJson(@NonNull JsonValue jsonValue); @NonNull static Builder newBuilder(); @NonNull static Builder newBuilder(@NonNull InAppMessage message); @Override void writeToParcel(@NonNull Parcel dest, int flags); @Override int describeContents(); @NonNull @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); static final int MAX_NAME_LENGTH; @RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
    @NonNull
    static final String SOURCE_LEGACY_PUSH; @RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
    @NonNull
    static final String SOURCE_REMOTE_DATA; @RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
    @NonNull
    static final String SOURCE_APP_DEFINED; @NonNull
    static final String TYPE_BANNER; @NonNull
    static final String TYPE_CUSTOM; @NonNull
    static final String TYPE_FULLSCREEN; @NonNull
    static final String TYPE_MODAL; @NonNull
    static final String TYPE_HTML; @NonNull
    static final String DISPLAY_BEHAVIOR_DEFAULT; @NonNull
    static final String DISPLAY_BEHAVIOR_IMMEDIATE; @NonNull
    static final Creator<InAppMessage> CREATOR; }
@Test(expected = IllegalArgumentException.class) public void testInvalidName() { InAppMessage.newBuilder() .setName(UAStringUtil.repeat("a", 1025, "")) .setDisplayContent(customDisplayContent) .build(); }
@Test(expected = IllegalArgumentException.class) public void testMissingDisplayContent() { InAppMessage.newBuilder() .build(); }