public class MockRequestBuilder
Builder to help create ActionRequest based on selected features. This is used to simulate an Assistant request in tests.
Modifier and Type | Class and Description |
---|---|
static class |
MockRequestBuilder.PreBuilt |
Modifier and Type | Field and Description |
---|---|
static MockRequestBuilder.PreBuilt |
PreBuilt |
Constructor and Description |
---|
MockRequestBuilder()
Builder to help create ActionRequest based on selected features. This is used
to simulate an Assistant request in tests.
|
Modifier and Type | Method and Description |
---|---|
ActionRequest |
build() |
MockRequestBuilder |
setArguments(java.util.List<com.google.api.services.actions_fulfillment.v2.model.Argument> args) |
MockRequestBuilder |
setConversationData(java.util.Map<java.lang.String,? extends java.lang.Object> data) |
MockRequestBuilder |
setConversationId(java.lang.String id) |
MockRequestBuilder |
setConversationType(java.lang.String type) |
MockRequestBuilder |
setDevice(com.google.api.services.actions_fulfillment.v2.model.Device device) |
MockRequestBuilder |
setInputType(java.lang.String type) |
MockRequestBuilder |
setIntent(java.lang.String text) |
MockRequestBuilder |
setMediaOutput(boolean flag) |
MockRequestBuilder |
setRawText(java.lang.String text) |
MockRequestBuilder |
setScreenOuput(boolean flag) |
MockRequestBuilder |
setUser(com.google.api.services.actions_fulfillment.v2.model.User aUser) |
MockRequestBuilder |
setUserProfile(com.google.api.services.actions_fulfillment.v2.model.UserProfile aProfile) |
MockRequestBuilder |
setUserStorage(java.util.Map<java.lang.String,? extends java.lang.Object> data) |
MockRequestBuilder |
setUsesDialogflow(boolean flag) |
public static MockRequestBuilder.PreBuilt PreBuilt
public MockRequestBuilder()
Builder to help create ActionRequest based on selected features. This is used to simulate an Assistant request in tests.
public MockRequestBuilder setIntent(java.lang.String text)
public MockRequestBuilder setUsesDialogflow(boolean flag)
public MockRequestBuilder setRawText(java.lang.String text)
public MockRequestBuilder setInputType(java.lang.String type)
public MockRequestBuilder setArguments(java.util.List<com.google.api.services.actions_fulfillment.v2.model.Argument> args)
public MockRequestBuilder setConversationId(java.lang.String id)
public MockRequestBuilder setConversationType(java.lang.String type)
public MockRequestBuilder setConversationData(java.util.Map<java.lang.String,? extends java.lang.Object> data)
public MockRequestBuilder setUserStorage(java.util.Map<java.lang.String,? extends java.lang.Object> data)
public MockRequestBuilder setUser(com.google.api.services.actions_fulfillment.v2.model.User aUser)
public MockRequestBuilder setUserProfile(com.google.api.services.actions_fulfillment.v2.model.UserProfile aProfile)
public MockRequestBuilder setScreenOuput(boolean flag)
public MockRequestBuilder setMediaOutput(boolean flag)
public MockRequestBuilder setDevice(com.google.api.services.actions_fulfillment.v2.model.Device device)
public ActionRequest build()