public static final class WebhookResponse.Builder extends GeneratedMessageV3.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
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<WebhookResponse.Builder>
public WebhookResponse.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<WebhookResponse.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<WebhookResponse.Builder>
public WebhookResponse getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public WebhookResponse build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public WebhookResponse buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public WebhookResponse.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<WebhookResponse.Builder>
public WebhookResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<WebhookResponse.Builder>
public WebhookResponse.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<WebhookResponse.Builder>
public WebhookResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<WebhookResponse.Builder>
public WebhookResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<WebhookResponse.Builder>
public WebhookResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<WebhookResponse.Builder>
public WebhookResponse.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<WebhookResponse.Builder>
public WebhookResponse.Builder mergeFrom(WebhookResponse other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<WebhookResponse.Builder>
public WebhookResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<WebhookResponse.Builder>
IOException
public 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][google.cloud.dialogflow.v2.QueryResult.fulfillment_text] sent to the integration or API caller.
string fulfillment_text = 1;
getFulfillmentText
in interface WebhookResponseOrBuilder
public 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;
getFulfillmentTextBytes
in interface WebhookResponseOrBuilder
public WebhookResponse.Builder setFulfillmentText(String value)
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;
value
- The fulfillmentText to set.public WebhookResponse.Builder 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;
public WebhookResponse.Builder setFulfillmentTextBytes(ByteString value)
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;
value
- The bytes for fulfillmentText to set.public 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][google.cloud.dialogflow.v2.QueryResult.fulfillment_messages] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2.Intent.Message fulfillment_messages = 2;
getFulfillmentMessagesList
in interface WebhookResponseOrBuilder
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;
getFulfillmentMessagesCount
in interface WebhookResponseOrBuilder
public 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][google.cloud.dialogflow.v2.QueryResult.fulfillment_messages] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2.Intent.Message fulfillment_messages = 2;
getFulfillmentMessages
in interface WebhookResponseOrBuilder
public WebhookResponse.Builder setFulfillmentMessages(int index, Intent.Message value)
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;
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;
public WebhookResponse.Builder addFulfillmentMessages(Intent.Message value)
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;
public WebhookResponse.Builder addFulfillmentMessages(int index, Intent.Message value)
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;
public WebhookResponse.Builder addFulfillmentMessages(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;
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;
public WebhookResponse.Builder addAllFulfillmentMessages(Iterable<? extends Intent.Message> values)
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;
public WebhookResponse.Builder 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;
public WebhookResponse.Builder removeFulfillmentMessages(int index)
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;
public Intent.Message.Builder getFulfillmentMessagesBuilder(int index)
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;
public 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][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
in interface WebhookResponseOrBuilder
public 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][google.cloud.dialogflow.v2.QueryResult.fulfillment_messages] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2.Intent.Message fulfillment_messages = 2;
getFulfillmentMessagesOrBuilderList
in interface WebhookResponseOrBuilder
public Intent.Message.Builder 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;
public Intent.Message.Builder addFulfillmentMessagesBuilder(int index)
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;
public List<Intent.Message.Builder> 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;
public 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][google.cloud.dialogflow.v2.QueryResult.webhook_source] sent to the integration or API caller.
string source = 3;
getSource
in interface WebhookResponseOrBuilder
public 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;
getSourceBytes
in interface WebhookResponseOrBuilder
public WebhookResponse.Builder setSource(String value)
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;
value
- The source to set.public WebhookResponse.Builder 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;
public WebhookResponse.Builder setSourceBytes(ByteString value)
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;
value
- The bytes for source to set.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;
hasPayload
in interface WebhookResponseOrBuilder
public 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;
getPayload
in interface WebhookResponseOrBuilder
public WebhookResponse.Builder setPayload(Struct value)
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;
public WebhookResponse.Builder setPayload(Struct.Builder builderForValue)
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;
public WebhookResponse.Builder mergePayload(Struct value)
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;
public WebhookResponse.Builder 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;
public 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;
public 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;
getPayloadOrBuilder
in interface WebhookResponseOrBuilder
public 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][google.cloud.dialogflow.v2.QueryResult.output_contexts] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2.Context output_contexts = 5;
getOutputContextsList
in interface WebhookResponseOrBuilder
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;
getOutputContextsCount
in interface WebhookResponseOrBuilder
public 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][google.cloud.dialogflow.v2.QueryResult.output_contexts] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2.Context output_contexts = 5;
getOutputContexts
in interface WebhookResponseOrBuilder
public WebhookResponse.Builder setOutputContexts(int index, Context value)
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;
public WebhookResponse.Builder setOutputContexts(int index, Context.Builder builderForValue)
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;
public WebhookResponse.Builder addOutputContexts(Context value)
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;
public WebhookResponse.Builder addOutputContexts(int index, Context value)
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;
public WebhookResponse.Builder addOutputContexts(Context.Builder builderForValue)
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;
public WebhookResponse.Builder addOutputContexts(int index, Context.Builder builderForValue)
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;
public WebhookResponse.Builder addAllOutputContexts(Iterable<? extends Context> values)
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;
public WebhookResponse.Builder 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;
public WebhookResponse.Builder removeOutputContexts(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][google.cloud.dialogflow.v2.QueryResult.output_contexts] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2.Context output_contexts = 5;
public Context.Builder getOutputContextsBuilder(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][google.cloud.dialogflow.v2.QueryResult.output_contexts] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2.Context output_contexts = 5;
public 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][google.cloud.dialogflow.v2.QueryResult.output_contexts] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2.Context output_contexts = 5;
getOutputContextsOrBuilder
in interface WebhookResponseOrBuilder
public 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][google.cloud.dialogflow.v2.QueryResult.output_contexts] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2.Context output_contexts = 5;
getOutputContextsOrBuilderList
in interface WebhookResponseOrBuilder
public Context.Builder 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;
public Context.Builder addOutputContextsBuilder(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][google.cloud.dialogflow.v2.QueryResult.output_contexts] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2.Context output_contexts = 5;
public List<Context.Builder> 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;
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;
hasFollowupEventInput
in interface WebhookResponseOrBuilder
public 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;
getFollowupEventInput
in interface WebhookResponseOrBuilder
public WebhookResponse.Builder setFollowupEventInput(EventInput value)
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;
public WebhookResponse.Builder setFollowupEventInput(EventInput.Builder builderForValue)
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;
public WebhookResponse.Builder mergeFollowupEventInput(EventInput value)
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;
public WebhookResponse.Builder 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;
public EventInput.Builder 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;
public 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;
getFollowupEventInputOrBuilder
in interface WebhookResponseOrBuilder
public 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][google.cloud.dialogflow.v2.SessionEntityType] management methods.
repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10;
getSessionEntityTypesList
in interface WebhookResponseOrBuilder
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;
getSessionEntityTypesCount
in interface WebhookResponseOrBuilder
public 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][google.cloud.dialogflow.v2.SessionEntityType] management methods.
repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10;
getSessionEntityTypes
in interface WebhookResponseOrBuilder
public WebhookResponse.Builder setSessionEntityTypes(int index, SessionEntityType value)
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;
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;
public WebhookResponse.Builder addSessionEntityTypes(SessionEntityType value)
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;
public WebhookResponse.Builder addSessionEntityTypes(int index, SessionEntityType value)
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;
public WebhookResponse.Builder addSessionEntityTypes(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;
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;
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;
public WebhookResponse.Builder 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;
public WebhookResponse.Builder removeSessionEntityTypes(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][google.cloud.dialogflow.v2.SessionEntityType] management methods.
repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10;
public SessionEntityType.Builder getSessionEntityTypesBuilder(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][google.cloud.dialogflow.v2.SessionEntityType] management methods.
repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10;
public 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][google.cloud.dialogflow.v2.SessionEntityType] management methods.
repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10;
getSessionEntityTypesOrBuilder
in interface WebhookResponseOrBuilder
public 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][google.cloud.dialogflow.v2.SessionEntityType] management methods.
repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10;
getSessionEntityTypesOrBuilderList
in interface WebhookResponseOrBuilder
public SessionEntityType.Builder 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;
public SessionEntityType.Builder addSessionEntityTypesBuilder(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][google.cloud.dialogflow.v2.SessionEntityType] management methods.
repeated .google.cloud.dialogflow.v2.SessionEntityType session_entity_types = 10;
public List<SessionEntityType.Builder> 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;
public final WebhookResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<WebhookResponse.Builder>
public final WebhookResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<WebhookResponse.Builder>
Copyright © 2022 Google LLC. All rights reserved.