Class WebhookResponse
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.dialogflow.v2beta1.WebhookResponse
-
- All Implemented Interfaces:
WebhookResponseOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class WebhookResponse extends com.google.protobuf.GeneratedMessageV3 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.v2beta1.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 typegoogle.cloud.dialogflow.v2beta1.WebhookResponse
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WebhookResponse.Builder
The response message for a webhook call.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field 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
LIVE_AGENT_HANDOFF_FIELD_NUMBER
static int
OUTPUT_CONTEXTS_FIELD_NUMBER
static int
PAYLOAD_FIELD_NUMBER
static int
SESSION_ENTITY_TYPES_FIELD_NUMBER
static int
SOURCE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.boolean
getLiveAgentHandoff()
Indicates that a live agent should be brought in to handle the interaction with the user.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()
SessionEntityType
getSessionEntityTypes(int index)
Optional.int
getSessionEntityTypesCount()
Optional.List<SessionEntityType>
getSessionEntityTypesList()
Optional.SessionEntityTypeOrBuilder
getSessionEntityTypesOrBuilder(int index)
Optional.List<? extends SessionEntityTypeOrBuilder>
getSessionEntityTypesOrBuilderList()
Optional.String
getSource()
Optional.com.google.protobuf.ByteString
getSourceBytes()
Optional.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)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
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(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 WebhookResponse
parseFrom(ByteBuffer data)
static WebhookResponse
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<WebhookResponse>
parser()
WebhookResponse.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
FULFILLMENT_TEXT_FIELD_NUMBER
public static final int FULFILLMENT_TEXT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FULFILLMENT_MESSAGES_FIELD_NUMBER
public static final int FULFILLMENT_MESSAGES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SOURCE_FIELD_NUMBER
public static final int SOURCE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PAYLOAD_FIELD_NUMBER
public static final int PAYLOAD_FIELD_NUMBER
- See Also:
- Constant Field Values
-
OUTPUT_CONTEXTS_FIELD_NUMBER
public static final int OUTPUT_CONTEXTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FOLLOWUP_EVENT_INPUT_FIELD_NUMBER
public static final int FOLLOWUP_EVENT_INPUT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LIVE_AGENT_HANDOFF_FIELD_NUMBER
public static final int LIVE_AGENT_HANDOFF_FIELD_NUMBER
- See Also:
- Constant Field Values
-
END_INTERACTION_FIELD_NUMBER
public static final int END_INTERACTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SESSION_ENTITY_TYPES_FIELD_NUMBER
public static final int SESSION_ENTITY_TYPES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getFulfillmentText
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.v2beta1.QueryResult.fulfillment_text] sent to the integration or API caller.
string fulfillment_text = 1;
- Specified by:
getFulfillmentText
in interfaceWebhookResponseOrBuilder
- Returns:
- The fulfillmentText.
-
getFulfillmentTextBytes
public com.google.protobuf.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.v2beta1.QueryResult.fulfillment_text] sent to the integration or API caller.
string fulfillment_text = 1;
- Specified by:
getFulfillmentTextBytes
in interfaceWebhookResponseOrBuilder
- Returns:
- The bytes for fulfillmentText.
-
getFulfillmentMessagesList
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.v2beta1.QueryResult.fulfillment_messages] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 2;
- Specified by:
getFulfillmentMessagesList
in interfaceWebhookResponseOrBuilder
-
getFulfillmentMessagesOrBuilderList
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.v2beta1.QueryResult.fulfillment_messages] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 2;
- Specified by:
getFulfillmentMessagesOrBuilderList
in interfaceWebhookResponseOrBuilder
-
getFulfillmentMessagesCount
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.v2beta1.QueryResult.fulfillment_messages] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 2;
- Specified by:
getFulfillmentMessagesCount
in interfaceWebhookResponseOrBuilder
-
getFulfillmentMessages
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.v2beta1.QueryResult.fulfillment_messages] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 2;
- Specified by:
getFulfillmentMessages
in interfaceWebhookResponseOrBuilder
-
getFulfillmentMessagesOrBuilder
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.v2beta1.QueryResult.fulfillment_messages] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 2;
- Specified by:
getFulfillmentMessagesOrBuilder
in interfaceWebhookResponseOrBuilder
-
getSource
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.v2beta1.QueryResult.webhook_source] sent to the integration or API caller.
string source = 3;
- Specified by:
getSource
in interfaceWebhookResponseOrBuilder
- Returns:
- The source.
-
getSourceBytes
public com.google.protobuf.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.v2beta1.QueryResult.webhook_source] sent to the integration or API caller.
string source = 3;
- Specified by:
getSourceBytes
in interfaceWebhookResponseOrBuilder
- Returns:
- The bytes for source.
-
hasPayload
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.v2beta1.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;
- Specified by:
hasPayload
in interfaceWebhookResponseOrBuilder
- Returns:
- Whether the payload field is set.
-
getPayload
public com.google.protobuf.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.v2beta1.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;
- Specified by:
getPayload
in interfaceWebhookResponseOrBuilder
- Returns:
- The payload.
-
getPayloadOrBuilder
public com.google.protobuf.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.v2beta1.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;
- Specified by:
getPayloadOrBuilder
in interfaceWebhookResponseOrBuilder
-
getOutputContextsList
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.v2beta1.QueryResult.output_contexts] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 5;
- Specified by:
getOutputContextsList
in interfaceWebhookResponseOrBuilder
-
getOutputContextsOrBuilderList
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.v2beta1.QueryResult.output_contexts] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 5;
- Specified by:
getOutputContextsOrBuilderList
in interfaceWebhookResponseOrBuilder
-
getOutputContextsCount
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.v2beta1.QueryResult.output_contexts] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 5;
- Specified by:
getOutputContextsCount
in interfaceWebhookResponseOrBuilder
-
getOutputContexts
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.v2beta1.QueryResult.output_contexts] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 5;
- Specified by:
getOutputContexts
in interfaceWebhookResponseOrBuilder
-
getOutputContextsOrBuilder
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.v2beta1.QueryResult.output_contexts] sent to the integration or API caller.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 5;
- Specified by:
getOutputContextsOrBuilder
in interfaceWebhookResponseOrBuilder
-
hasFollowupEventInput
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.v2beta1.EventInput followup_event_input = 6;
- Specified by:
hasFollowupEventInput
in interfaceWebhookResponseOrBuilder
- Returns:
- Whether the followupEventInput field is set.
-
getFollowupEventInput
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.v2beta1.EventInput followup_event_input = 6;
- Specified by:
getFollowupEventInput
in interfaceWebhookResponseOrBuilder
- Returns:
- The followupEventInput.
-
getFollowupEventInputOrBuilder
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.v2beta1.EventInput followup_event_input = 6;
- Specified by:
getFollowupEventInputOrBuilder
in interfaceWebhookResponseOrBuilder
-
getLiveAgentHandoff
public boolean getLiveAgentHandoff()
Indicates that a live agent should be brought in to handle the interaction with the user. In most cases, when you set this flag to true, you would also want to set end_interaction to true as well. Default is false.
bool live_agent_handoff = 7;
- Specified by:
getLiveAgentHandoff
in interfaceWebhookResponseOrBuilder
- Returns:
- The liveAgentHandoff.
-
getEndInteraction
public 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;
- Specified by:
getEndInteraction
in interfaceWebhookResponseOrBuilder
- Returns:
- The endInteraction.
-
getSessionEntityTypesList
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.v2beta1.SessionEntityType] management methods.
repeated .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_types = 10;
- Specified by:
getSessionEntityTypesList
in interfaceWebhookResponseOrBuilder
-
getSessionEntityTypesOrBuilderList
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.v2beta1.SessionEntityType] management methods.
repeated .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_types = 10;
- Specified by:
getSessionEntityTypesOrBuilderList
in interfaceWebhookResponseOrBuilder
-
getSessionEntityTypesCount
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.v2beta1.SessionEntityType] management methods.
repeated .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_types = 10;
- Specified by:
getSessionEntityTypesCount
in interfaceWebhookResponseOrBuilder
-
getSessionEntityTypes
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.v2beta1.SessionEntityType] management methods.
repeated .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_types = 10;
- Specified by:
getSessionEntityTypes
in interfaceWebhookResponseOrBuilder
-
getSessionEntityTypesOrBuilder
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.v2beta1.SessionEntityType] management methods.
repeated .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_types = 10;
- Specified by:
getSessionEntityTypesOrBuilder
in interfaceWebhookResponseOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static WebhookResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WebhookResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WebhookResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WebhookResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WebhookResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WebhookResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WebhookResponse parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static WebhookResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static WebhookResponse parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static WebhookResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static WebhookResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static WebhookResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public WebhookResponse.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static WebhookResponse.Builder newBuilder()
-
newBuilder
public static WebhookResponse.Builder newBuilder(WebhookResponse prototype)
-
toBuilder
public WebhookResponse.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected WebhookResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static WebhookResponse getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<WebhookResponse> parser()
-
getParserForType
public com.google.protobuf.Parser<WebhookResponse> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public WebhookResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-