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, unknownFields
memoizedSize
memoizedHashCode
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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public 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 MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public 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 WebhookResponseOrBuilder
public 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 WebhookResponseOrBuilder
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 WebhookResponseOrBuilder
public 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 WebhookResponseOrBuilder
public 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 WebhookResponseOrBuilder
public 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 WebhookResponseOrBuilder
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 WebhookResponseOrBuilder
public java.lang.String getSource()
Optional. This value is passed directly to `QueryResult.webhook_source`.
string source = 3;
getSource
in interface WebhookResponseOrBuilder
public ByteString getSourceBytes()
Optional. This value is passed directly to `QueryResult.webhook_source`.
string source = 3;
getSourceBytes
in interface WebhookResponseOrBuilder
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 WebhookResponseOrBuilder
public 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 WebhookResponseOrBuilder
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 WebhookResponseOrBuilder
public 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 WebhookResponseOrBuilder
public 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 WebhookResponseOrBuilder
public 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 WebhookResponseOrBuilder
public 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 WebhookResponseOrBuilder
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 WebhookResponseOrBuilder
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 WebhookResponseOrBuilder
public 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 WebhookResponseOrBuilder
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 WebhookResponseOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static WebhookResponse parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static WebhookResponse parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static WebhookResponse parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static WebhookResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static WebhookResponse parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static WebhookResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static WebhookResponse parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static WebhookResponse parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static WebhookResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static WebhookResponse parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static WebhookResponse parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static WebhookResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public WebhookResponse.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static WebhookResponse.Builder newBuilder()
public static WebhookResponse.Builder newBuilder(WebhookResponse prototype)
public WebhookResponse.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected WebhookResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static WebhookResponse getDefaultInstance()
public static Parser<WebhookResponse> parser()
public Parser<WebhookResponse> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public WebhookResponse getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder