Interface WebhookResponseOrBuilder (4.7.2)

public interface WebhookResponseOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getFollowupEventInput()

public abstract EventInput getFollowupEventInput()

Optional. Invokes the supplied events. When this field is set, Dialogflow ignores the fulfillment_text, fulfillment_messages, and payload fields.

.google.cloud.dialogflow.v2.EventInput followup_event_input = 6;

Returns
TypeDescription
EventInput

The followupEventInput.

getFollowupEventInputOrBuilder()

public abstract EventInputOrBuilder getFollowupEventInputOrBuilder()

Optional. Invokes the supplied events. When this field is set, Dialogflow ignores the fulfillment_text, fulfillment_messages, and payload fields.

.google.cloud.dialogflow.v2.EventInput followup_event_input = 6;

Returns
TypeDescription
EventInputOrBuilder

getFulfillmentMessages(int index)

public abstract Intent.Message getFulfillmentMessages(int index)

Optional. The rich response messages intended for the end-user. When provided, Dialogflow uses this field to populate QueryResult.fulfillment_messages sent to the integration or API caller.

repeated .google.cloud.dialogflow.v2.Intent.Message fulfillment_messages = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
Intent.Message

getFulfillmentMessagesCount()

public abstract int getFulfillmentMessagesCount()

Optional. The rich response messages intended for the end-user. When provided, Dialogflow uses this field to populate QueryResult.fulfillment_messages sent to the integration or API caller.

repeated .google.cloud.dialogflow.v2.Intent.Message fulfillment_messages = 2;

Returns
TypeDescription
int

getFulfillmentMessagesList()

public abstract List<Intent.Message> getFulfillmentMessagesList()

Optional. The rich response messages intended for the end-user. When provided, Dialogflow uses this field to populate QueryResult.fulfillment_messages sent to the integration or API caller.

repeated .google.cloud.dialogflow.v2.Intent.Message fulfillment_messages = 2;

Returns
TypeDescription
List<Message>

getFulfillmentMessagesOrBuilder(int index)

public abstract Intent.MessageOrBuilder getFulfillmentMessagesOrBuilder(int index)

Optional. The rich response messages intended for the end-user. When provided, Dialogflow uses this field to populate QueryResult.fulfillment_messages sent to the integration or API caller.

repeated .google.cloud.dialogflow.v2.Intent.Message fulfillment_messages = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
Intent.MessageOrBuilder

getFulfillmentMessagesOrBuilderList()

public abstract List<? extends Intent.MessageOrBuilder> getFulfillmentMessagesOrBuilderList()

Optional. The rich response messages intended for the end-user. When provided, Dialogflow uses this field to populate QueryResult.fulfillment_messages sent to the integration or API caller.

repeated .google.cloud.dialogflow.v2.Intent.Message fulfillment_messages = 2;

Returns
TypeDescription
List<? extends com.google.cloud.dialogflow.v2.Intent.MessageOrBuilder>

getFulfillmentText()

public abstract String getFulfillmentText()

Optional. The text response message intended for the end-user. It is recommended to use fulfillment_messages.text.text[0] instead. When provided, Dialogflow uses this field to populate QueryResult.fulfillment_text sent to the integration or API caller.

string fulfillment_text = 1;

Returns
TypeDescription
String

The fulfillmentText.

getFulfillmentTextBytes()

public abstract ByteString getFulfillmentTextBytes()

Optional. The text response message intended for the end-user. It is recommended to use fulfillment_messages.text.text[0] instead. When provided, Dialogflow uses this field to populate QueryResult.fulfillment_text sent to the integration or API caller.

string fulfillment_text = 1;

Returns
TypeDescription
ByteString

The bytes for fulfillmentText.

getOutputContexts(int index)

public abstract Context getOutputContexts(int index)

Optional. The collection of output contexts that will overwrite currently active contexts for the session and reset their lifespans. When provided, Dialogflow uses this field to populate QueryResult.output_contexts sent to the integration or API caller.

repeated .google.cloud.dialogflow.v2.Context output_contexts = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
Context

getOutputContextsCount()

public abstract int getOutputContextsCount()

Optional. The collection of output contexts that will overwrite currently active contexts for the session and reset their lifespans. When provided, Dialogflow uses this field to populate QueryResult.output_contexts sent to the integration or API caller.

repeated .google.cloud.dialogflow.v2.Context output_contexts = 5;

Returns
TypeDescription
int

getOutputContextsList()

public abstract List<Context> getOutputContextsList()

Optional. The collection of output contexts that will overwrite currently active contexts for the session and reset their lifespans. When provided, Dialogflow uses this field to populate QueryResult.output_contexts sent to the integration or API caller.

repeated .google.cloud.dialogflow.v2.Context output_contexts = 5;

Returns
TypeDescription
List<Context>

getOutputContextsOrBuilder(int index)

public abstract ContextOrBuilder getOutputContextsOrBuilder(int index)

Optional. The collection of output contexts that will overwrite currently active contexts for the session and reset their lifespans. When provided, Dialogflow uses this field to populate QueryResult.output_contexts sent to the integration or API caller.

repeated .google.cloud.dialogflow.v2.Context output_contexts = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
ContextOrBuilder

getOutputContextsOrBuilderList()

public abstract List<? extends ContextOrBuilder> getOutputContextsOrBuilderList()

Optional. The collection of output contexts that will overwrite currently active contexts for the session and reset their lifespans. When provided, Dialogflow uses this field to populate QueryResult.output_contexts sent to the integration or API caller.

repeated .google.cloud.dialogflow.v2.Context output_contexts = 5;

Returns
TypeDescription
List<? extends com.google.cloud.dialogflow.v2.ContextOrBuilder>

getPayload()

public abstract Struct getPayload()

Optional. This field can be used to pass custom data from your webhook to the integration or API caller. Arbitrary JSON objects are supported. When provided, Dialogflow uses this field to populate QueryResult.webhook_payload sent to the integration or API caller. This field is also used by the Google Assistant integration for rich response messages. See the format definition at Google Assistant Dialogflow webhook format

.google.protobuf.Struct payload = 4;

Returns
TypeDescription
Struct

The payload.

getPayloadOrBuilder()

public abstract StructOrBuilder getPayloadOrBuilder()

Optional. This field can be used to pass custom data from your webhook to the integration or API caller. Arbitrary JSON objects are supported. When provided, Dialogflow uses this field to populate QueryResult.webhook_payload sent to the integration or API caller. This field is also used by the Google Assistant integration for rich response messages. See the format definition at Google Assistant Dialogflow webhook format

.google.protobuf.Struct payload = 4;

Returns
TypeDescription
StructOrBuilder

getSessionEntityTypes(int index)

public abstract SessionEntityType getSessionEntityTypes(int index)

Optional. Additional session entity types to replace or extend developer entity types with. The entity synonyms apply to all languages and persist for the session. Setting this data from a webhook overwrites the session entity types that have been set using detectIntent, streamingDetectIntent or SessionEntityType management methods.

repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10;

Parameter
NameDescription
indexint
Returns
TypeDescription
SessionEntityType

getSessionEntityTypesCount()

public abstract int getSessionEntityTypesCount()

Optional. Additional session entity types to replace or extend developer entity types with. The entity synonyms apply to all languages and persist for the session. Setting this data from a webhook overwrites the session entity types that have been set using detectIntent, streamingDetectIntent or SessionEntityType management methods.

repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10;

Returns
TypeDescription
int

getSessionEntityTypesList()

public abstract List<SessionEntityType> getSessionEntityTypesList()

Optional. Additional session entity types to replace or extend developer entity types with. The entity synonyms apply to all languages and persist for the session. Setting this data from a webhook overwrites the session entity types that have been set using detectIntent, streamingDetectIntent or SessionEntityType management methods.

repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10;

Returns
TypeDescription
List<SessionEntityType>

getSessionEntityTypesOrBuilder(int index)

public abstract SessionEntityTypeOrBuilder getSessionEntityTypesOrBuilder(int index)

Optional. Additional session entity types to replace or extend developer entity types with. The entity synonyms apply to all languages and persist for the session. Setting this data from a webhook overwrites the session entity types that have been set using detectIntent, streamingDetectIntent or SessionEntityType management methods.

repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10;

Parameter
NameDescription
indexint
Returns
TypeDescription
SessionEntityTypeOrBuilder

getSessionEntityTypesOrBuilderList()

public abstract List<? extends SessionEntityTypeOrBuilder> getSessionEntityTypesOrBuilderList()

Optional. Additional session entity types to replace or extend developer entity types with. The entity synonyms apply to all languages and persist for the session. Setting this data from a webhook overwrites the session entity types that have been set using detectIntent, streamingDetectIntent or SessionEntityType management methods.

repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10;

Returns
TypeDescription
List<? extends com.google.cloud.dialogflow.v2.SessionEntityTypeOrBuilder>

getSource()

public abstract String getSource()

Optional. A custom field used to identify the webhook source. Arbitrary strings are supported. When provided, Dialogflow uses this field to populate QueryResult.webhook_source sent to the integration or API caller.

string source = 3;

Returns
TypeDescription
String

The source.

getSourceBytes()

public abstract ByteString getSourceBytes()

Optional. A custom field used to identify the webhook source. Arbitrary strings are supported. When provided, Dialogflow uses this field to populate QueryResult.webhook_source sent to the integration or API caller.

string source = 3;

Returns
TypeDescription
ByteString

The bytes for source.

hasFollowupEventInput()

public abstract boolean hasFollowupEventInput()

Optional. Invokes the supplied events. When this field is set, Dialogflow ignores the fulfillment_text, fulfillment_messages, and payload fields.

.google.cloud.dialogflow.v2.EventInput followup_event_input = 6;

Returns
TypeDescription
boolean

Whether the followupEventInput field is set.

hasPayload()

public abstract boolean hasPayload()

Optional. This field can be used to pass custom data from your webhook to the integration or API caller. Arbitrary JSON objects are supported. When provided, Dialogflow uses this field to populate QueryResult.webhook_payload sent to the integration or API caller. This field is also used by the Google Assistant integration for rich response messages. See the format definition at Google Assistant Dialogflow webhook format

.google.protobuf.Struct payload = 4;

Returns
TypeDescription
boolean

Whether the payload field is set.