Package com.google.cloud.dialogflow.v2
Class WebhookResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<WebhookResponse.Builder>
com.google.cloud.dialogflow.v2.WebhookResponse.Builder
- All Implemented Interfaces:
WebhookResponseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- WebhookResponse
public static final class WebhookResponse.Builder
extends com.google.protobuf.GeneratedMessage.Builder<WebhookResponse.Builder>
implements WebhookResponseOrBuilder
The response message for a webhook call.
This response is validated by the Dialogflow server. If validation fails,
an error will be returned in the
[QueryResult.diagnostic_info][google.cloud.dialogflow.v2.QueryResult.diagnostic_info]
field. Setting JSON fields to an empty value with the wrong type is a common
error. To avoid this error:
- Use `""` for empty strings
- Use `{}` or `null` for empty objects
- Use `[]` or `null` for empty arrays
For more information, see the
[Protocol Buffers Language
Guide](https://developers.google.com/protocol-buffers/docs/proto3#json).
Protobuf type google.cloud.dialogflow.v2.WebhookResponse-
Method Summary
Modifier and TypeMethodDescriptionaddAllFulfillmentMessages(Iterable<? extends Intent.Message> values) Optional.addAllOutputContexts(Iterable<? extends Context> values) Optional.addAllSessionEntityTypes(Iterable<? extends SessionEntityType> values) Optional.addFulfillmentMessages(int index, Intent.Message value) Optional.addFulfillmentMessages(int index, Intent.Message.Builder builderForValue) Optional.Optional.addFulfillmentMessages(Intent.Message.Builder builderForValue) Optional.Optional.addFulfillmentMessagesBuilder(int index) Optional.addOutputContexts(int index, Context value) Optional.addOutputContexts(int index, Context.Builder builderForValue) Optional.addOutputContexts(Context value) Optional.addOutputContexts(Context.Builder builderForValue) Optional.Optional.addOutputContextsBuilder(int index) Optional.addSessionEntityTypes(int index, SessionEntityType value) Optional.addSessionEntityTypes(int index, SessionEntityType.Builder builderForValue) Optional.Optional.addSessionEntityTypes(SessionEntityType.Builder builderForValue) Optional.Optional.addSessionEntityTypesBuilder(int index) Optional.build()clear()Optional.Optional.Optional.Optional.Optional.Optional.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.Optional.Optional.getFulfillmentMessages(int index) Optional.getFulfillmentMessagesBuilder(int index) Optional.Optional.intOptional.Optional.getFulfillmentMessagesOrBuilder(int index) Optional.List<? extends Intent.MessageOrBuilder>Optional.Optional.com.google.protobuf.ByteStringOptional.getOutputContexts(int index) Optional.getOutputContextsBuilder(int index) Optional.Optional.intOptional.Optional.getOutputContextsOrBuilder(int index) Optional.List<? extends ContextOrBuilder>Optional.com.google.protobuf.StructOptional.com.google.protobuf.Struct.BuilderOptional.com.google.protobuf.StructOrBuilderOptional.getSessionEntityTypes(int index) Optional.getSessionEntityTypesBuilder(int index) Optional.Optional.intOptional.Optional.getSessionEntityTypesOrBuilder(int index) Optional.List<? extends SessionEntityTypeOrBuilder>Optional.Optional.com.google.protobuf.ByteStringOptional.booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanOptional.mergeFrom(WebhookResponse other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergePayload(com.google.protobuf.Struct value) Optional.removeFulfillmentMessages(int index) Optional.removeOutputContexts(int index) Optional.removeSessionEntityTypes(int index) Optional.setFollowupEventInput(EventInput value) Optional.setFollowupEventInput(EventInput.Builder builderForValue) Optional.setFulfillmentMessages(int index, Intent.Message value) Optional.setFulfillmentMessages(int index, Intent.Message.Builder builderForValue) Optional.setFulfillmentText(String value) Optional.setFulfillmentTextBytes(com.google.protobuf.ByteString value) Optional.setOutputContexts(int index, Context value) Optional.setOutputContexts(int index, Context.Builder builderForValue) Optional.setPayload(com.google.protobuf.Struct value) Optional.setPayload(com.google.protobuf.Struct.Builder builderForValue) Optional.setSessionEntityTypes(int index, SessionEntityType value) Optional.setSessionEntityTypes(int index, SessionEntityType.Builder builderForValue) Optional.Optional.setSourceBytes(com.google.protobuf.ByteString value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<WebhookResponse.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<WebhookResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<WebhookResponse.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<WebhookResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<WebhookResponse.Builder>
-
mergeFrom
public WebhookResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<WebhookResponse.Builder>- Throws:
IOException
-
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][google.cloud.dialogflow.v2.QueryResult.fulfillment_text] sent to the integration or API caller.
string fulfillment_text = 1;- Specified by:
getFulfillmentTextin interfaceWebhookResponseOrBuilder- Returns:
- The fulfillmentText.
-
getFulfillmentTextBytes
public com.google.protobuf.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][google.cloud.dialogflow.v2.QueryResult.fulfillment_text] sent to the integration or API caller.
string fulfillment_text = 1;- Specified by:
getFulfillmentTextBytesin interfaceWebhookResponseOrBuilder- Returns:
- The bytes for fulfillmentText.
-
setFulfillmentText
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][google.cloud.dialogflow.v2.QueryResult.fulfillment_text] sent to the integration or API caller.
string fulfillment_text = 1;- Parameters:
value- The fulfillmentText to set.- Returns:
- This builder for chaining.
-
clearFulfillmentText
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][google.cloud.dialogflow.v2.QueryResult.fulfillment_text] sent to the integration or API caller.
string fulfillment_text = 1;- Returns:
- This builder for chaining.
-
setFulfillmentTextBytes
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][google.cloud.dialogflow.v2.QueryResult.fulfillment_text] sent to the integration or API caller.
string fulfillment_text = 1;- Parameters:
value- The bytes for fulfillmentText to set.- Returns:
- This builder for chaining.
-
getFulfillmentMessagesList
Optional. The rich response messages intended for the end-user. When provided, Dialogflow uses this field to populate [QueryResult.fulfillment_messages][google.cloud.dialogflow.v2.QueryResult.fulfillment_messages] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2.Intent.Message fulfillment_messages = 2;- Specified by:
getFulfillmentMessagesListin interfaceWebhookResponseOrBuilder
-
getFulfillmentMessagesCount
public int getFulfillmentMessagesCount()Optional. The rich response messages intended for the end-user. When provided, Dialogflow uses this field to populate [QueryResult.fulfillment_messages][google.cloud.dialogflow.v2.QueryResult.fulfillment_messages] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2.Intent.Message fulfillment_messages = 2;- Specified by:
getFulfillmentMessagesCountin interfaceWebhookResponseOrBuilder
-
getFulfillmentMessages
Optional. The rich response messages intended for the end-user. When provided, Dialogflow uses this field to populate [QueryResult.fulfillment_messages][google.cloud.dialogflow.v2.QueryResult.fulfillment_messages] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2.Intent.Message fulfillment_messages = 2;- Specified by:
getFulfillmentMessagesin interfaceWebhookResponseOrBuilder
-
setFulfillmentMessages
Optional. The rich response messages intended for the end-user. When provided, Dialogflow uses this field to populate [QueryResult.fulfillment_messages][google.cloud.dialogflow.v2.QueryResult.fulfillment_messages] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2.Intent.Message fulfillment_messages = 2; -
setFulfillmentMessages
public WebhookResponse.Builder setFulfillmentMessages(int index, Intent.Message.Builder builderForValue) Optional. The rich response messages intended for the end-user. When provided, Dialogflow uses this field to populate [QueryResult.fulfillment_messages][google.cloud.dialogflow.v2.QueryResult.fulfillment_messages] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2.Intent.Message fulfillment_messages = 2; -
addFulfillmentMessages
Optional. The rich response messages intended for the end-user. When provided, Dialogflow uses this field to populate [QueryResult.fulfillment_messages][google.cloud.dialogflow.v2.QueryResult.fulfillment_messages] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2.Intent.Message fulfillment_messages = 2; -
addFulfillmentMessages
Optional. The rich response messages intended for the end-user. When provided, Dialogflow uses this field to populate [QueryResult.fulfillment_messages][google.cloud.dialogflow.v2.QueryResult.fulfillment_messages] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2.Intent.Message fulfillment_messages = 2; -
addFulfillmentMessages
Optional. The rich response messages intended for the end-user. When provided, Dialogflow uses this field to populate [QueryResult.fulfillment_messages][google.cloud.dialogflow.v2.QueryResult.fulfillment_messages] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2.Intent.Message fulfillment_messages = 2; -
addFulfillmentMessages
public WebhookResponse.Builder addFulfillmentMessages(int index, Intent.Message.Builder builderForValue) Optional. The rich response messages intended for the end-user. When provided, Dialogflow uses this field to populate [QueryResult.fulfillment_messages][google.cloud.dialogflow.v2.QueryResult.fulfillment_messages] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2.Intent.Message fulfillment_messages = 2; -
addAllFulfillmentMessages
Optional. The rich response messages intended for the end-user. When provided, Dialogflow uses this field to populate [QueryResult.fulfillment_messages][google.cloud.dialogflow.v2.QueryResult.fulfillment_messages] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2.Intent.Message fulfillment_messages = 2; -
clearFulfillmentMessages
Optional. The rich response messages intended for the end-user. When provided, Dialogflow uses this field to populate [QueryResult.fulfillment_messages][google.cloud.dialogflow.v2.QueryResult.fulfillment_messages] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2.Intent.Message fulfillment_messages = 2; -
removeFulfillmentMessages
Optional. The rich response messages intended for the end-user. When provided, Dialogflow uses this field to populate [QueryResult.fulfillment_messages][google.cloud.dialogflow.v2.QueryResult.fulfillment_messages] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2.Intent.Message fulfillment_messages = 2; -
getFulfillmentMessagesBuilder
Optional. The rich response messages intended for the end-user. When provided, Dialogflow uses this field to populate [QueryResult.fulfillment_messages][google.cloud.dialogflow.v2.QueryResult.fulfillment_messages] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2.Intent.Message fulfillment_messages = 2; -
getFulfillmentMessagesOrBuilder
Optional. The rich response messages intended for the end-user. When provided, Dialogflow uses this field to populate [QueryResult.fulfillment_messages][google.cloud.dialogflow.v2.QueryResult.fulfillment_messages] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2.Intent.Message fulfillment_messages = 2;- Specified by:
getFulfillmentMessagesOrBuilderin interfaceWebhookResponseOrBuilder
-
getFulfillmentMessagesOrBuilderList
Optional. The rich response messages intended for the end-user. When provided, Dialogflow uses this field to populate [QueryResult.fulfillment_messages][google.cloud.dialogflow.v2.QueryResult.fulfillment_messages] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2.Intent.Message fulfillment_messages = 2;- Specified by:
getFulfillmentMessagesOrBuilderListin interfaceWebhookResponseOrBuilder
-
addFulfillmentMessagesBuilder
Optional. The rich response messages intended for the end-user. When provided, Dialogflow uses this field to populate [QueryResult.fulfillment_messages][google.cloud.dialogflow.v2.QueryResult.fulfillment_messages] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2.Intent.Message fulfillment_messages = 2; -
addFulfillmentMessagesBuilder
Optional. The rich response messages intended for the end-user. When provided, Dialogflow uses this field to populate [QueryResult.fulfillment_messages][google.cloud.dialogflow.v2.QueryResult.fulfillment_messages] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2.Intent.Message fulfillment_messages = 2; -
getFulfillmentMessagesBuilderList
Optional. The rich response messages intended for the end-user. When provided, Dialogflow uses this field to populate [QueryResult.fulfillment_messages][google.cloud.dialogflow.v2.QueryResult.fulfillment_messages] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2.Intent.Message fulfillment_messages = 2; -
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][google.cloud.dialogflow.v2.QueryResult.webhook_source] sent to the integration or API caller.
string source = 3;- Specified by:
getSourcein interfaceWebhookResponseOrBuilder- Returns:
- The source.
-
getSourceBytes
public com.google.protobuf.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][google.cloud.dialogflow.v2.QueryResult.webhook_source] sent to the integration or API caller.
string source = 3;- Specified by:
getSourceBytesin interfaceWebhookResponseOrBuilder- Returns:
- The bytes for source.
-
setSource
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][google.cloud.dialogflow.v2.QueryResult.webhook_source] sent to the integration or API caller.
string source = 3;- Parameters:
value- The source to set.- Returns:
- This builder for chaining.
-
clearSource
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][google.cloud.dialogflow.v2.QueryResult.webhook_source] sent to the integration or API caller.
string source = 3;- Returns:
- This builder for chaining.
-
setSourceBytes
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][google.cloud.dialogflow.v2.QueryResult.webhook_source] sent to the integration or API caller.
string source = 3;- Parameters:
value- The bytes for source to set.- Returns:
- This builder for chaining.
-
hasPayload
public 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][google.cloud.dialogflow.v2.QueryResult.webhook_payload] sent to the integration or API caller. This field is also used by the [Google Assistant integration](https://cloud.google.com/dialogflow/docs/integrations/aog) for rich response messages. See the format definition at [Google Assistant Dialogflow webhook format](https://developers.google.com/assistant/actions/build/json/dialogflow-webhook-json)
.google.protobuf.Struct payload = 4;- Specified by:
hasPayloadin interfaceWebhookResponseOrBuilder- Returns:
- Whether the payload field is set.
-
getPayload
public com.google.protobuf.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][google.cloud.dialogflow.v2.QueryResult.webhook_payload] sent to the integration or API caller. This field is also used by the [Google Assistant integration](https://cloud.google.com/dialogflow/docs/integrations/aog) for rich response messages. See the format definition at [Google Assistant Dialogflow webhook format](https://developers.google.com/assistant/actions/build/json/dialogflow-webhook-json)
.google.protobuf.Struct payload = 4;- Specified by:
getPayloadin interfaceWebhookResponseOrBuilder- Returns:
- The payload.
-
setPayload
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][google.cloud.dialogflow.v2.QueryResult.webhook_payload] sent to the integration or API caller. This field is also used by the [Google Assistant integration](https://cloud.google.com/dialogflow/docs/integrations/aog) for rich response messages. See the format definition at [Google Assistant Dialogflow webhook format](https://developers.google.com/assistant/actions/build/json/dialogflow-webhook-json)
.google.protobuf.Struct payload = 4; -
setPayload
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][google.cloud.dialogflow.v2.QueryResult.webhook_payload] sent to the integration or API caller. This field is also used by the [Google Assistant integration](https://cloud.google.com/dialogflow/docs/integrations/aog) for rich response messages. See the format definition at [Google Assistant Dialogflow webhook format](https://developers.google.com/assistant/actions/build/json/dialogflow-webhook-json)
.google.protobuf.Struct payload = 4; -
mergePayload
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][google.cloud.dialogflow.v2.QueryResult.webhook_payload] sent to the integration or API caller. This field is also used by the [Google Assistant integration](https://cloud.google.com/dialogflow/docs/integrations/aog) for rich response messages. See the format definition at [Google Assistant Dialogflow webhook format](https://developers.google.com/assistant/actions/build/json/dialogflow-webhook-json)
.google.protobuf.Struct payload = 4; -
clearPayload
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][google.cloud.dialogflow.v2.QueryResult.webhook_payload] sent to the integration or API caller. This field is also used by the [Google Assistant integration](https://cloud.google.com/dialogflow/docs/integrations/aog) for rich response messages. See the format definition at [Google Assistant Dialogflow webhook format](https://developers.google.com/assistant/actions/build/json/dialogflow-webhook-json)
.google.protobuf.Struct payload = 4; -
getPayloadBuilder
public com.google.protobuf.Struct.Builder getPayloadBuilder()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][google.cloud.dialogflow.v2.QueryResult.webhook_payload] sent to the integration or API caller. This field is also used by the [Google Assistant integration](https://cloud.google.com/dialogflow/docs/integrations/aog) for rich response messages. See the format definition at [Google Assistant Dialogflow webhook format](https://developers.google.com/assistant/actions/build/json/dialogflow-webhook-json)
.google.protobuf.Struct payload = 4; -
getPayloadOrBuilder
public com.google.protobuf.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][google.cloud.dialogflow.v2.QueryResult.webhook_payload] sent to the integration or API caller. This field is also used by the [Google Assistant integration](https://cloud.google.com/dialogflow/docs/integrations/aog) for rich response messages. See the format definition at [Google Assistant Dialogflow webhook format](https://developers.google.com/assistant/actions/build/json/dialogflow-webhook-json)
.google.protobuf.Struct payload = 4;- Specified by:
getPayloadOrBuilderin interfaceWebhookResponseOrBuilder
-
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][google.cloud.dialogflow.v2.QueryResult.output_contexts] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2.Context output_contexts = 5;- Specified by:
getOutputContextsListin interfaceWebhookResponseOrBuilder
-
getOutputContextsCount
public 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][google.cloud.dialogflow.v2.QueryResult.output_contexts] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2.Context output_contexts = 5;- Specified by:
getOutputContextsCountin interfaceWebhookResponseOrBuilder
-
getOutputContexts
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][google.cloud.dialogflow.v2.QueryResult.output_contexts] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2.Context output_contexts = 5;- Specified by:
getOutputContextsin interfaceWebhookResponseOrBuilder
-
setOutputContexts
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][google.cloud.dialogflow.v2.QueryResult.output_contexts] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2.Context output_contexts = 5; -
setOutputContexts
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][google.cloud.dialogflow.v2.QueryResult.output_contexts] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2.Context output_contexts = 5; -
addOutputContexts
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][google.cloud.dialogflow.v2.QueryResult.output_contexts] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2.Context output_contexts = 5; -
addOutputContexts
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][google.cloud.dialogflow.v2.QueryResult.output_contexts] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2.Context output_contexts = 5; -
addOutputContexts
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][google.cloud.dialogflow.v2.QueryResult.output_contexts] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2.Context output_contexts = 5; -
addOutputContexts
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][google.cloud.dialogflow.v2.QueryResult.output_contexts] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2.Context output_contexts = 5; -
addAllOutputContexts
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][google.cloud.dialogflow.v2.QueryResult.output_contexts] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2.Context output_contexts = 5; -
clearOutputContexts
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][google.cloud.dialogflow.v2.QueryResult.output_contexts] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2.Context output_contexts = 5; -
removeOutputContexts
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][google.cloud.dialogflow.v2.QueryResult.output_contexts] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2.Context output_contexts = 5; -
getOutputContextsBuilder
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][google.cloud.dialogflow.v2.QueryResult.output_contexts] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2.Context output_contexts = 5; -
getOutputContextsOrBuilder
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][google.cloud.dialogflow.v2.QueryResult.output_contexts] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2.Context output_contexts = 5;- Specified by:
getOutputContextsOrBuilderin interfaceWebhookResponseOrBuilder
-
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][google.cloud.dialogflow.v2.QueryResult.output_contexts] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2.Context output_contexts = 5;- Specified by:
getOutputContextsOrBuilderListin interfaceWebhookResponseOrBuilder
-
addOutputContextsBuilder
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][google.cloud.dialogflow.v2.QueryResult.output_contexts] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2.Context output_contexts = 5; -
addOutputContextsBuilder
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][google.cloud.dialogflow.v2.QueryResult.output_contexts] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2.Context output_contexts = 5; -
getOutputContextsBuilderList
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][google.cloud.dialogflow.v2.QueryResult.output_contexts] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2.Context output_contexts = 5; -
hasFollowupEventInput
public 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;- Specified by:
hasFollowupEventInputin interfaceWebhookResponseOrBuilder- Returns:
- Whether the followupEventInput field is set.
-
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;- Specified by:
getFollowupEventInputin interfaceWebhookResponseOrBuilder- Returns:
- The followupEventInput.
-
setFollowupEventInput
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; -
setFollowupEventInput
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; -
mergeFollowupEventInput
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; -
clearFollowupEventInput
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; -
getFollowupEventInputBuilder
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; -
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;- Specified by:
getFollowupEventInputOrBuilderin interfaceWebhookResponseOrBuilder
-
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][google.cloud.dialogflow.v2.SessionEntityType] management methods.
repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10;- Specified by:
getSessionEntityTypesListin interfaceWebhookResponseOrBuilder
-
getSessionEntityTypesCount
public 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][google.cloud.dialogflow.v2.SessionEntityType] management methods.
repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10;- Specified by:
getSessionEntityTypesCountin interfaceWebhookResponseOrBuilder
-
getSessionEntityTypes
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][google.cloud.dialogflow.v2.SessionEntityType] management methods.
repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10;- Specified by:
getSessionEntityTypesin interfaceWebhookResponseOrBuilder
-
setSessionEntityTypes
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][google.cloud.dialogflow.v2.SessionEntityType] management methods.
repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10; -
setSessionEntityTypes
public WebhookResponse.Builder setSessionEntityTypes(int index, SessionEntityType.Builder builderForValue) 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][google.cloud.dialogflow.v2.SessionEntityType] management methods.
repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10; -
addSessionEntityTypes
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][google.cloud.dialogflow.v2.SessionEntityType] management methods.
repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10; -
addSessionEntityTypes
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][google.cloud.dialogflow.v2.SessionEntityType] management methods.
repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10; -
addSessionEntityTypes
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][google.cloud.dialogflow.v2.SessionEntityType] management methods.
repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10; -
addSessionEntityTypes
public WebhookResponse.Builder addSessionEntityTypes(int index, SessionEntityType.Builder builderForValue) 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][google.cloud.dialogflow.v2.SessionEntityType] management methods.
repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10; -
addAllSessionEntityTypes
public WebhookResponse.Builder addAllSessionEntityTypes(Iterable<? extends SessionEntityType> values) 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][google.cloud.dialogflow.v2.SessionEntityType] management methods.
repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10; -
clearSessionEntityTypes
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][google.cloud.dialogflow.v2.SessionEntityType] management methods.
repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10; -
removeSessionEntityTypes
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][google.cloud.dialogflow.v2.SessionEntityType] management methods.
repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10; -
getSessionEntityTypesBuilder
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][google.cloud.dialogflow.v2.SessionEntityType] management methods.
repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10; -
getSessionEntityTypesOrBuilder
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][google.cloud.dialogflow.v2.SessionEntityType] management methods.
repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10;- Specified by:
getSessionEntityTypesOrBuilderin interfaceWebhookResponseOrBuilder
-
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][google.cloud.dialogflow.v2.SessionEntityType] management methods.
repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10;- Specified by:
getSessionEntityTypesOrBuilderListin interfaceWebhookResponseOrBuilder
-
addSessionEntityTypesBuilder
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][google.cloud.dialogflow.v2.SessionEntityType] management methods.
repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10; -
addSessionEntityTypesBuilder
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][google.cloud.dialogflow.v2.SessionEntityType] management methods.
repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10; -
getSessionEntityTypesBuilderList
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][google.cloud.dialogflow.v2.SessionEntityType] management methods.
repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10;
-