@Test public void testShouldBuildAskResponseWithRichInput_BasicCard() throws Exception { BasicCard basicCard = BasicCard.builder().title("my title").subtitle("my subtitle").formattedText("my formatted text").build(); RichInitialPromptItem richInitialPromptItem = RichInitialPromptItem.builder().basicCard(basicCard).build(); ResponseMetadata metadata = ResponseMetadata.builder().build(); RootResponse rootResponse = ResponseBuilder.askResponseWithRichInput(Collections.singletonList(richInitialPromptItem), metadata); assertEquals(true, rootResponse.expectUserResponse); assertNotNull(rootResponse.expectedInputs.get(0).inputPrompt.richInitialPrompt.items.get(0).basicCard.title); assertNotNull(rootResponse.expectedInputs.get(0).inputPrompt.richInitialPrompt.items.get(0).basicCard.subtitle); assertNotNull(rootResponse.expectedInputs.get(0).inputPrompt.richInitialPrompt.items.get(0).basicCard.formattedText); }
public static RootResponse askResponseWithRichInput(SpeechResponse message) { return askResponseWithRichInput(message, null, null, null, null); }
ResponseBuilder { public static RootResponse askResponseWithRichInput(SpeechResponse message) { return askResponseWithRichInput(message, null, null, null, null); } }
ResponseBuilder { public static RootResponse askResponseWithRichInput(SpeechResponse message) { return askResponseWithRichInput(message, null, null, null, null); }  }
ResponseBuilder { public static RootResponse askResponseWithRichInput(SpeechResponse message) { return askResponseWithRichInput(message, null, null, null, null); }  static RootResponse tellResponse(String message); static RootResponse tellResponse(SpeechResponse message); static RootResponse tellResponseWithRichInput(SpeechResponse message); static RootResponse tellResponseWithRichInput(SpeechResponse message, ResponseMetadata metadata); static RootResponse tellResponseWithRichInput(SpeechResponse message, String conversationToken, List<SuggestionResponse> suggestions); static RootResponse tellResponseWithRichInput(SpeechResponse message, String conversationToken, List<SuggestionResponse> suggestions, ResponseMetadata metadata); static RootResponse tellResponseWithRichInput(List<RichInitialPromptItem> richInitialPromptItems, ResponseMetadata metadata); static RootResponse tellResponseWithRichInput(List<RichInitialPromptItem> richInitialPromptItems, String conversationToken, List<SuggestionResponse> suggestions, ResponseMetadata metadata); static RootResponse askResponse(String message); static RootResponse askResponse(SpeechResponse message); static RootResponse askResponse(String message, String[] noInputPrompts); static RootResponse askResponseWithRichInput(SpeechResponse message); static RootResponse askResponseWithRichInput(SpeechResponse message, ResponseMetadata metadata); static RootResponse askResponseWithRichInput(SpeechResponse message, String conversationToken, List<SpeechResponse> noInputPrompts, List<SuggestionResponse> suggestions); static RootResponse askResponseWithRichInput(SpeechResponse message, String conversationToken, List<SpeechResponse> noInputPrompts, List<SuggestionResponse> suggestions, ResponseMetadata metadata ); static RootResponse askResponseWithRichInput(List<RichInitialPromptItem> richInitialPromptItems); static RootResponse askResponseWithRichInput(List<RichInitialPromptItem> richInitialPromptItems, ResponseMetadata metadata); static RootResponse askResponseWithRichInput(List<RichInitialPromptItem> richInitialPromptItems, String conversationToken, List<SpeechResponse> noInputPrompts, List<SuggestionResponse> suggestions, ResponseMetadata metadata); static RootResponse askResponse(SpeechResponse message, String conversationToken, List<SpeechResponse> noInputPrompts ); static RootResponse askResponse(String message, String conversationToken, String[] noInputPrompts); static RootResponse askForPermissionResponse(String permissionContext, SupportedPermissions... permissions); static RootResponse askForPermissionResponse(String permissionContext, String... permissions); static RootResponse askForPermissionResponse(String permissionContext, Collection<String> permissions); }
ResponseBuilder { public static RootResponse askResponseWithRichInput(SpeechResponse message) { return askResponseWithRichInput(message, null, null, null, null); }  static RootResponse tellResponse(String message); static RootResponse tellResponse(SpeechResponse message); static RootResponse tellResponseWithRichInput(SpeechResponse message); static RootResponse tellResponseWithRichInput(SpeechResponse message, ResponseMetadata metadata); static RootResponse tellResponseWithRichInput(SpeechResponse message, String conversationToken, List<SuggestionResponse> suggestions); static RootResponse tellResponseWithRichInput(SpeechResponse message, String conversationToken, List<SuggestionResponse> suggestions, ResponseMetadata metadata); static RootResponse tellResponseWithRichInput(List<RichInitialPromptItem> richInitialPromptItems, ResponseMetadata metadata); static RootResponse tellResponseWithRichInput(List<RichInitialPromptItem> richInitialPromptItems, String conversationToken, List<SuggestionResponse> suggestions, ResponseMetadata metadata); static RootResponse askResponse(String message); static RootResponse askResponse(SpeechResponse message); static RootResponse askResponse(String message, String[] noInputPrompts); static RootResponse askResponseWithRichInput(SpeechResponse message); static RootResponse askResponseWithRichInput(SpeechResponse message, ResponseMetadata metadata); static RootResponse askResponseWithRichInput(SpeechResponse message, String conversationToken, List<SpeechResponse> noInputPrompts, List<SuggestionResponse> suggestions); static RootResponse askResponseWithRichInput(SpeechResponse message, String conversationToken, List<SpeechResponse> noInputPrompts, List<SuggestionResponse> suggestions, ResponseMetadata metadata ); static RootResponse askResponseWithRichInput(List<RichInitialPromptItem> richInitialPromptItems); static RootResponse askResponseWithRichInput(List<RichInitialPromptItem> richInitialPromptItems, ResponseMetadata metadata); static RootResponse askResponseWithRichInput(List<RichInitialPromptItem> richInitialPromptItems, String conversationToken, List<SpeechResponse> noInputPrompts, List<SuggestionResponse> suggestions, ResponseMetadata metadata); static RootResponse askResponse(SpeechResponse message, String conversationToken, List<SpeechResponse> noInputPrompts ); static RootResponse askResponse(String message, String conversationToken, String[] noInputPrompts); static RootResponse askForPermissionResponse(String permissionContext, SupportedPermissions... permissions); static RootResponse askForPermissionResponse(String permissionContext, String... permissions); static RootResponse askForPermissionResponse(String permissionContext, Collection<String> permissions);  }