public final class WebhookResponse extends com.google.protobuf.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.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
END_INTERACTION_FIELD_NUMBER |
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 |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static WebhookResponse |
getDefaultInstance() |
WebhookResponse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
boolean |
getEndInteraction()
Optional.
|
EventInput |
getFollowupEventInput()
Optional.
|
EventInputOrBuilder |
getFollowupEventInputOrBuilder()
Optional.
|
Intent.Message |
getFulfillmentMessages(int index)
Optional.
|
int |
getFulfillmentMessagesCount()
Optional.
|
List<Intent.Message> |
getFulfillmentMessagesList()
Optional.
|
Intent.MessageOrBuilder |
getFulfillmentMessagesOrBuilder(int index)
Optional.
|
List<? extends Intent.MessageOrBuilder> |
getFulfillmentMessagesOrBuilderList()
Optional.
|
String |
getFulfillmentText()
Optional.
|
com.google.protobuf.ByteString |
getFulfillmentTextBytes()
Optional.
|
Context |
getOutputContexts(int index)
Optional.
|
int |
getOutputContextsCount()
Optional.
|
List<Context> |
getOutputContextsList()
Optional.
|
ContextOrBuilder |
getOutputContextsOrBuilder(int index)
Optional.
|
List<? extends ContextOrBuilder> |
getOutputContextsOrBuilderList()
Optional.
|
com.google.protobuf.Parser<WebhookResponse> |
getParserForType() |
com.google.protobuf.Struct |
getPayload()
Optional.
|
com.google.protobuf.StructOrBuilder |
getPayloadOrBuilder()
Optional.
|
int |
getSerializedSize() |
String |
getSource()
Optional.
|
com.google.protobuf.ByteString |
getSourceBytes()
Optional.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasFollowupEventInput()
Optional.
|
int |
hashCode() |
boolean |
hasPayload()
Optional.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static WebhookResponse.Builder |
newBuilder() |
static WebhookResponse.Builder |
newBuilder(WebhookResponse prototype) |
WebhookResponse.Builder |
newBuilderForType() |
protected WebhookResponse.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static WebhookResponse |
parseDelimitedFrom(InputStream input) |
static WebhookResponse |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static WebhookResponse |
parseFrom(byte[] data) |
static WebhookResponse |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static WebhookResponse |
parseFrom(ByteBuffer data) |
static WebhookResponse |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static WebhookResponse |
parseFrom(com.google.protobuf.ByteString data) |
static WebhookResponse |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static WebhookResponse |
parseFrom(com.google.protobuf.CodedInputStream input) |
static WebhookResponse |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static WebhookResponse |
parseFrom(InputStream input) |
static WebhookResponse |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<WebhookResponse> |
parser() |
WebhookResponse.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, 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, waitpublic 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 static final int END_INTERACTION_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 com.google.protobuf.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 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 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 String getSource()
Optional. This value is passed directly to `QueryResult.webhook_source`.
string source = 3;getSource in interface WebhookResponseOrBuilderpublic com.google.protobuf.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 com.google.protobuf.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 com.google.protobuf.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 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 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 boolean getEndInteraction()
Optional. Indicates that this intent ends an interaction. Some integrations (e.g., Actions on Google or Dialogflow phone gateway) use this information to close interaction with an end user. Default is false.
bool end_interaction = 8;getEndInteraction in interface WebhookResponseOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static WebhookResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static WebhookResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static WebhookResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static WebhookResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static WebhookResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static WebhookResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static WebhookResponse parseFrom(InputStream input) throws IOException
IOExceptionpublic static WebhookResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static WebhookResponse parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static WebhookResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static WebhookResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static WebhookResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic WebhookResponse.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static WebhookResponse.Builder newBuilder()
public static WebhookResponse.Builder newBuilder(WebhookResponse prototype)
public WebhookResponse.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected WebhookResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static WebhookResponse getDefaultInstance()
public static com.google.protobuf.Parser<WebhookResponse> parser()
public com.google.protobuf.Parser<WebhookResponse> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public WebhookResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2019 Google LLC. All rights reserved.