public static final class WebhookResponse.Builder extends GeneratedMessageV3.Builder<WebhookResponse.Builder> implements WebhookResponseOrBuilder
The response message for a webhook call.Protobuf type
google.cloud.dialogflow.v2beta1.WebhookResponsegetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<WebhookResponse.Builder>public WebhookResponse.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<WebhookResponse.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<WebhookResponse.Builder>public WebhookResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic WebhookResponse build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic WebhookResponse buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic WebhookResponse.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<WebhookResponse.Builder>public WebhookResponse.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<WebhookResponse.Builder>public WebhookResponse.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<WebhookResponse.Builder>public WebhookResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<WebhookResponse.Builder>public WebhookResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<WebhookResponse.Builder>public WebhookResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<WebhookResponse.Builder>public WebhookResponse.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<WebhookResponse.Builder>public WebhookResponse.Builder mergeFrom(WebhookResponse other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<WebhookResponse.Builder>public WebhookResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<WebhookResponse.Builder>java.io.IOExceptionpublic java.lang.String getFulfillmentText()
Optional. The text to be shown on the screen. This value is passed directly to `QueryResult.fulfillment_text`.
string fulfillment_text = 1;getFulfillmentText in interface WebhookResponseOrBuilderpublic ByteString getFulfillmentTextBytes()
Optional. The text to be shown on the screen. This value is passed directly to `QueryResult.fulfillment_text`.
string fulfillment_text = 1;getFulfillmentTextBytes in interface WebhookResponseOrBuilderpublic WebhookResponse.Builder setFulfillmentText(java.lang.String value)
Optional. The text to be shown on the screen. This value is passed directly to `QueryResult.fulfillment_text`.
string fulfillment_text = 1;public WebhookResponse.Builder clearFulfillmentText()
Optional. The text to be shown on the screen. This value is passed directly to `QueryResult.fulfillment_text`.
string fulfillment_text = 1;public WebhookResponse.Builder setFulfillmentTextBytes(ByteString value)
Optional. The text to be shown on the screen. This value is passed directly to `QueryResult.fulfillment_text`.
string fulfillment_text = 1;public java.util.List<Intent.Message> getFulfillmentMessagesList()
Optional. The collection of rich messages to present to the user. This value is passed directly to `QueryResult.fulfillment_messages`.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 2;getFulfillmentMessagesList in interface WebhookResponseOrBuilderpublic int getFulfillmentMessagesCount()
Optional. The collection of rich messages to present to the user. This value is passed directly to `QueryResult.fulfillment_messages`.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 2;getFulfillmentMessagesCount in interface WebhookResponseOrBuilderpublic Intent.Message getFulfillmentMessages(int index)
Optional. The collection of rich messages to present to the user. This value is passed directly to `QueryResult.fulfillment_messages`.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 2;getFulfillmentMessages in interface WebhookResponseOrBuilderpublic WebhookResponse.Builder setFulfillmentMessages(int index, Intent.Message value)
Optional. The collection of rich messages to present to the user. This value is passed directly to `QueryResult.fulfillment_messages`.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 2;public WebhookResponse.Builder setFulfillmentMessages(int index, Intent.Message.Builder builderForValue)
Optional. The collection of rich messages to present to the user. This value is passed directly to `QueryResult.fulfillment_messages`.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 2;public WebhookResponse.Builder addFulfillmentMessages(Intent.Message value)
Optional. The collection of rich messages to present to the user. This value is passed directly to `QueryResult.fulfillment_messages`.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 2;public WebhookResponse.Builder addFulfillmentMessages(int index, Intent.Message value)
Optional. The collection of rich messages to present to the user. This value is passed directly to `QueryResult.fulfillment_messages`.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 2;public WebhookResponse.Builder addFulfillmentMessages(Intent.Message.Builder builderForValue)
Optional. The collection of rich messages to present to the user. This value is passed directly to `QueryResult.fulfillment_messages`.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 2;public WebhookResponse.Builder addFulfillmentMessages(int index, Intent.Message.Builder builderForValue)
Optional. The collection of rich messages to present to the user. This value is passed directly to `QueryResult.fulfillment_messages`.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 2;public WebhookResponse.Builder addAllFulfillmentMessages(java.lang.Iterable<? extends Intent.Message> values)
Optional. The collection of rich messages to present to the user. This value is passed directly to `QueryResult.fulfillment_messages`.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 2;public WebhookResponse.Builder clearFulfillmentMessages()
Optional. The collection of rich messages to present to the user. This value is passed directly to `QueryResult.fulfillment_messages`.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 2;public WebhookResponse.Builder removeFulfillmentMessages(int index)
Optional. The collection of rich messages to present to the user. This value is passed directly to `QueryResult.fulfillment_messages`.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 2;public Intent.Message.Builder getFulfillmentMessagesBuilder(int index)
Optional. The collection of rich messages to present to the user. This value is passed directly to `QueryResult.fulfillment_messages`.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 2;public Intent.MessageOrBuilder getFulfillmentMessagesOrBuilder(int index)
Optional. The collection of rich messages to present to the user. This value is passed directly to `QueryResult.fulfillment_messages`.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 2;getFulfillmentMessagesOrBuilder in interface WebhookResponseOrBuilderpublic java.util.List<? extends Intent.MessageOrBuilder> getFulfillmentMessagesOrBuilderList()
Optional. The collection of rich messages to present to the user. This value is passed directly to `QueryResult.fulfillment_messages`.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 2;getFulfillmentMessagesOrBuilderList in interface WebhookResponseOrBuilderpublic Intent.Message.Builder addFulfillmentMessagesBuilder()
Optional. The collection of rich messages to present to the user. This value is passed directly to `QueryResult.fulfillment_messages`.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 2;public Intent.Message.Builder addFulfillmentMessagesBuilder(int index)
Optional. The collection of rich messages to present to the user. This value is passed directly to `QueryResult.fulfillment_messages`.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 2;public java.util.List<Intent.Message.Builder> getFulfillmentMessagesBuilderList()
Optional. The collection of rich messages to present to the user. This value is passed directly to `QueryResult.fulfillment_messages`.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 2;public java.lang.String getSource()
Optional. This value is passed directly to `QueryResult.webhook_source`.
string source = 3;getSource in interface WebhookResponseOrBuilderpublic ByteString getSourceBytes()
Optional. This value is passed directly to `QueryResult.webhook_source`.
string source = 3;getSourceBytes in interface WebhookResponseOrBuilderpublic WebhookResponse.Builder setSource(java.lang.String value)
Optional. This value is passed directly to `QueryResult.webhook_source`.
string source = 3;public WebhookResponse.Builder clearSource()
Optional. This value is passed directly to `QueryResult.webhook_source`.
string source = 3;public WebhookResponse.Builder setSourceBytes(ByteString value)
Optional. This value is passed directly to `QueryResult.webhook_source`.
string source = 3;public boolean hasPayload()
Optional. This value is passed directly to `QueryResult.webhook_payload`.
See the related `fulfillment_messages[i].payload field`, which may be used
as an alternative to this field.
This field can be used for Actions on Google responses.
It should have a structure similar to the JSON message shown here. For more
information, see
[Actions on Google Webhook
Format](https://developers.google.com/actions/dialogflow/webhook)
<pre>{
"google": {
"expectUserResponse": true,
"richResponse": {
"items": [
{
"simpleResponse": {
"textToSpeech": "this is a simple response"
}
}
]
}
}
}</pre>
.google.protobuf.Struct payload = 4;hasPayload in interface WebhookResponseOrBuilderpublic Struct getPayload()
Optional. This value is passed directly to `QueryResult.webhook_payload`.
See the related `fulfillment_messages[i].payload field`, which may be used
as an alternative to this field.
This field can be used for Actions on Google responses.
It should have a structure similar to the JSON message shown here. For more
information, see
[Actions on Google Webhook
Format](https://developers.google.com/actions/dialogflow/webhook)
<pre>{
"google": {
"expectUserResponse": true,
"richResponse": {
"items": [
{
"simpleResponse": {
"textToSpeech": "this is a simple response"
}
}
]
}
}
}</pre>
.google.protobuf.Struct payload = 4;getPayload in interface WebhookResponseOrBuilderpublic WebhookResponse.Builder setPayload(Struct value)
Optional. This value is passed directly to `QueryResult.webhook_payload`.
See the related `fulfillment_messages[i].payload field`, which may be used
as an alternative to this field.
This field can be used for Actions on Google responses.
It should have a structure similar to the JSON message shown here. For more
information, see
[Actions on Google Webhook
Format](https://developers.google.com/actions/dialogflow/webhook)
<pre>{
"google": {
"expectUserResponse": true,
"richResponse": {
"items": [
{
"simpleResponse": {
"textToSpeech": "this is a simple response"
}
}
]
}
}
}</pre>
.google.protobuf.Struct payload = 4;public WebhookResponse.Builder setPayload(Struct.Builder builderForValue)
Optional. This value is passed directly to `QueryResult.webhook_payload`.
See the related `fulfillment_messages[i].payload field`, which may be used
as an alternative to this field.
This field can be used for Actions on Google responses.
It should have a structure similar to the JSON message shown here. For more
information, see
[Actions on Google Webhook
Format](https://developers.google.com/actions/dialogflow/webhook)
<pre>{
"google": {
"expectUserResponse": true,
"richResponse": {
"items": [
{
"simpleResponse": {
"textToSpeech": "this is a simple response"
}
}
]
}
}
}</pre>
.google.protobuf.Struct payload = 4;public WebhookResponse.Builder mergePayload(Struct value)
Optional. This value is passed directly to `QueryResult.webhook_payload`.
See the related `fulfillment_messages[i].payload field`, which may be used
as an alternative to this field.
This field can be used for Actions on Google responses.
It should have a structure similar to the JSON message shown here. For more
information, see
[Actions on Google Webhook
Format](https://developers.google.com/actions/dialogflow/webhook)
<pre>{
"google": {
"expectUserResponse": true,
"richResponse": {
"items": [
{
"simpleResponse": {
"textToSpeech": "this is a simple response"
}
}
]
}
}
}</pre>
.google.protobuf.Struct payload = 4;public WebhookResponse.Builder clearPayload()
Optional. This value is passed directly to `QueryResult.webhook_payload`.
See the related `fulfillment_messages[i].payload field`, which may be used
as an alternative to this field.
This field can be used for Actions on Google responses.
It should have a structure similar to the JSON message shown here. For more
information, see
[Actions on Google Webhook
Format](https://developers.google.com/actions/dialogflow/webhook)
<pre>{
"google": {
"expectUserResponse": true,
"richResponse": {
"items": [
{
"simpleResponse": {
"textToSpeech": "this is a simple response"
}
}
]
}
}
}</pre>
.google.protobuf.Struct payload = 4;public Struct.Builder getPayloadBuilder()
Optional. This value is passed directly to `QueryResult.webhook_payload`.
See the related `fulfillment_messages[i].payload field`, which may be used
as an alternative to this field.
This field can be used for Actions on Google responses.
It should have a structure similar to the JSON message shown here. For more
information, see
[Actions on Google Webhook
Format](https://developers.google.com/actions/dialogflow/webhook)
<pre>{
"google": {
"expectUserResponse": true,
"richResponse": {
"items": [
{
"simpleResponse": {
"textToSpeech": "this is a simple response"
}
}
]
}
}
}</pre>
.google.protobuf.Struct payload = 4;public StructOrBuilder getPayloadOrBuilder()
Optional. This value is passed directly to `QueryResult.webhook_payload`.
See the related `fulfillment_messages[i].payload field`, which may be used
as an alternative to this field.
This field can be used for Actions on Google responses.
It should have a structure similar to the JSON message shown here. For more
information, see
[Actions on Google Webhook
Format](https://developers.google.com/actions/dialogflow/webhook)
<pre>{
"google": {
"expectUserResponse": true,
"richResponse": {
"items": [
{
"simpleResponse": {
"textToSpeech": "this is a simple response"
}
}
]
}
}
}</pre>
.google.protobuf.Struct payload = 4;getPayloadOrBuilder in interface WebhookResponseOrBuilderpublic java.util.List<Context> getOutputContextsList()
Optional. The collection of output contexts. This value is passed directly to `QueryResult.output_contexts`.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 5;getOutputContextsList in interface WebhookResponseOrBuilderpublic int getOutputContextsCount()
Optional. The collection of output contexts. This value is passed directly to `QueryResult.output_contexts`.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 5;getOutputContextsCount in interface WebhookResponseOrBuilderpublic Context getOutputContexts(int index)
Optional. The collection of output contexts. This value is passed directly to `QueryResult.output_contexts`.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 5;getOutputContexts in interface WebhookResponseOrBuilderpublic WebhookResponse.Builder setOutputContexts(int index, Context value)
Optional. The collection of output contexts. This value is passed directly to `QueryResult.output_contexts`.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 5;public WebhookResponse.Builder setOutputContexts(int index, Context.Builder builderForValue)
Optional. The collection of output contexts. This value is passed directly to `QueryResult.output_contexts`.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 5;public WebhookResponse.Builder addOutputContexts(Context value)
Optional. The collection of output contexts. This value is passed directly to `QueryResult.output_contexts`.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 5;public WebhookResponse.Builder addOutputContexts(int index, Context value)
Optional. The collection of output contexts. This value is passed directly to `QueryResult.output_contexts`.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 5;public WebhookResponse.Builder addOutputContexts(Context.Builder builderForValue)
Optional. The collection of output contexts. This value is passed directly to `QueryResult.output_contexts`.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 5;public WebhookResponse.Builder addOutputContexts(int index, Context.Builder builderForValue)
Optional. The collection of output contexts. This value is passed directly to `QueryResult.output_contexts`.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 5;public WebhookResponse.Builder addAllOutputContexts(java.lang.Iterable<? extends Context> values)
Optional. The collection of output contexts. This value is passed directly to `QueryResult.output_contexts`.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 5;public WebhookResponse.Builder clearOutputContexts()
Optional. The collection of output contexts. This value is passed directly to `QueryResult.output_contexts`.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 5;public WebhookResponse.Builder removeOutputContexts(int index)
Optional. The collection of output contexts. This value is passed directly to `QueryResult.output_contexts`.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 5;public Context.Builder getOutputContextsBuilder(int index)
Optional. The collection of output contexts. This value is passed directly to `QueryResult.output_contexts`.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 5;public ContextOrBuilder getOutputContextsOrBuilder(int index)
Optional. The collection of output contexts. This value is passed directly to `QueryResult.output_contexts`.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 5;getOutputContextsOrBuilder in interface WebhookResponseOrBuilderpublic java.util.List<? extends ContextOrBuilder> getOutputContextsOrBuilderList()
Optional. The collection of output contexts. This value is passed directly to `QueryResult.output_contexts`.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 5;getOutputContextsOrBuilderList in interface WebhookResponseOrBuilderpublic Context.Builder addOutputContextsBuilder()
Optional. The collection of output contexts. This value is passed directly to `QueryResult.output_contexts`.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 5;public Context.Builder addOutputContextsBuilder(int index)
Optional. The collection of output contexts. This value is passed directly to `QueryResult.output_contexts`.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 5;public java.util.List<Context.Builder> getOutputContextsBuilderList()
Optional. The collection of output contexts. This value is passed directly to `QueryResult.output_contexts`.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 5;public boolean hasFollowupEventInput()
Optional. Makes the platform immediately invoke another `DetectIntent` call internally with the specified event as input.
.google.cloud.dialogflow.v2beta1.EventInput followup_event_input = 6;hasFollowupEventInput in interface WebhookResponseOrBuilderpublic EventInput getFollowupEventInput()
Optional. Makes the platform immediately invoke another `DetectIntent` call internally with the specified event as input.
.google.cloud.dialogflow.v2beta1.EventInput followup_event_input = 6;getFollowupEventInput in interface WebhookResponseOrBuilderpublic WebhookResponse.Builder setFollowupEventInput(EventInput value)
Optional. Makes the platform immediately invoke another `DetectIntent` call internally with the specified event as input.
.google.cloud.dialogflow.v2beta1.EventInput followup_event_input = 6;public WebhookResponse.Builder setFollowupEventInput(EventInput.Builder builderForValue)
Optional. Makes the platform immediately invoke another `DetectIntent` call internally with the specified event as input.
.google.cloud.dialogflow.v2beta1.EventInput followup_event_input = 6;public WebhookResponse.Builder mergeFollowupEventInput(EventInput value)
Optional. Makes the platform immediately invoke another `DetectIntent` call internally with the specified event as input.
.google.cloud.dialogflow.v2beta1.EventInput followup_event_input = 6;public WebhookResponse.Builder clearFollowupEventInput()
Optional. Makes the platform immediately invoke another `DetectIntent` call internally with the specified event as input.
.google.cloud.dialogflow.v2beta1.EventInput followup_event_input = 6;public EventInput.Builder getFollowupEventInputBuilder()
Optional. Makes the platform immediately invoke another `DetectIntent` call internally with the specified event as input.
.google.cloud.dialogflow.v2beta1.EventInput followup_event_input = 6;public EventInputOrBuilder getFollowupEventInputOrBuilder()
Optional. Makes the platform immediately invoke another `DetectIntent` call internally with the specified event as input.
.google.cloud.dialogflow.v2beta1.EventInput followup_event_input = 6;getFollowupEventInputOrBuilder in interface WebhookResponseOrBuilderpublic final WebhookResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<WebhookResponse.Builder>public final WebhookResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<WebhookResponse.Builder>