public final class WebhookResponse extends GeneratedMessageV3 implements WebhookResponseOrBuilder
The response message for a webhook call.Protobuf type
google.cloud.dialogflow.v2beta1.WebhookResponse| Modifier and Type | Class and Description |
|---|---|
static class |
WebhookResponse.Builder
The response message for a webhook call.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
FOLLOWUP_EVENT_INPUT_FIELD_NUMBER |
static int |
FULFILLMENT_MESSAGES_FIELD_NUMBER |
static int |
FULFILLMENT_TEXT_FIELD_NUMBER |
static int |
OUTPUT_CONTEXTS_FIELD_NUMBER |
static int |
PAYLOAD_FIELD_NUMBER |
static int |
SOURCE_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCodecanUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int FULFILLMENT_TEXT_FIELD_NUMBER
public static final int FULFILLMENT_MESSAGES_FIELD_NUMBER
public static final int SOURCE_FIELD_NUMBER
public static final int PAYLOAD_FIELD_NUMBER
public static final int OUTPUT_CONTEXTS_FIELD_NUMBER
public static final int FOLLOWUP_EVENT_INPUT_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public 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 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 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 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 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.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 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 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 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 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 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 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 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 boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static WebhookResponse parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static WebhookResponse parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static WebhookResponse parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static WebhookResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static WebhookResponse parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static WebhookResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static WebhookResponse parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static WebhookResponse parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static WebhookResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static WebhookResponse parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static WebhookResponse parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static WebhookResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic WebhookResponse.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static WebhookResponse.Builder newBuilder()
public static WebhookResponse.Builder newBuilder(WebhookResponse prototype)
public WebhookResponse.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected WebhookResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static WebhookResponse getDefaultInstance()
public static Parser<WebhookResponse> parser()
public Parser<WebhookResponse> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public WebhookResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder