public static final class Intent.Message extends GeneratedMessageV3 implements Intent.MessageOrBuilder
A rich response message. Corresponds to the intent `Response` field in the Dialogflow console. For more information, see [Rich response messages](https://cloud.google.com/dialogflow/docs/intents-rich-messages).Protobuf type
google.cloud.dialogflow.v2.Intent.Message
Modifier and Type | Class and Description |
---|---|
static class |
Intent.Message.BasicCard
The basic card message.
|
static interface |
Intent.Message.BasicCardOrBuilder |
static class |
Intent.Message.BrowseCarouselCard
Browse Carousel Card for Actions on Google.
|
static interface |
Intent.Message.BrowseCarouselCardOrBuilder |
static class |
Intent.Message.Builder
A rich response message.
|
static class |
Intent.Message.Card
The card response message.
|
static interface |
Intent.Message.CardOrBuilder |
static class |
Intent.Message.CarouselSelect
The card for presenting a carousel of options to select from.
|
static interface |
Intent.Message.CarouselSelectOrBuilder |
static class |
Intent.Message.ColumnProperties
Column properties for [TableCard][google.cloud.dialogflow.v2.Intent.Message.TableCard].
|
static interface |
Intent.Message.ColumnPropertiesOrBuilder |
static class |
Intent.Message.Image
The image response message.
|
static interface |
Intent.Message.ImageOrBuilder |
static class |
Intent.Message.LinkOutSuggestion
The suggestion chip message that allows the user to jump out to the app
or website associated with this agent.
|
static interface |
Intent.Message.LinkOutSuggestionOrBuilder |
static class |
Intent.Message.ListSelect
The card for presenting a list of options to select from.
|
static interface |
Intent.Message.ListSelectOrBuilder |
static class |
Intent.Message.MediaContent
The media content card for Actions on Google.
|
static interface |
Intent.Message.MediaContentOrBuilder |
static class |
Intent.Message.MessageCase |
static class |
Intent.Message.Platform
The rich response message integration platform.
|
static class |
Intent.Message.QuickReplies
The quick replies response message.
|
static interface |
Intent.Message.QuickRepliesOrBuilder |
static class |
Intent.Message.SelectItemInfo
Additional info about the select item for when it is triggered in a
dialog.
|
static interface |
Intent.Message.SelectItemInfoOrBuilder |
static class |
Intent.Message.SimpleResponse
The simple response message containing speech or text.
|
static interface |
Intent.Message.SimpleResponseOrBuilder |
static class |
Intent.Message.SimpleResponses
The collection of simple response candidates.
|
static interface |
Intent.Message.SimpleResponsesOrBuilder |
static class |
Intent.Message.Suggestion
The suggestion chip message that the user can tap to quickly post a reply
to the conversation.
|
static interface |
Intent.Message.SuggestionOrBuilder |
static class |
Intent.Message.Suggestions
The collection of suggestions.
|
static interface |
Intent.Message.SuggestionsOrBuilder |
static class |
Intent.Message.TableCard
Table card for Actions on Google.
|
static class |
Intent.Message.TableCardCell
Cell of [TableCardRow][google.cloud.dialogflow.v2.Intent.Message.TableCardRow].
|
static interface |
Intent.Message.TableCardCellOrBuilder |
static interface |
Intent.Message.TableCardOrBuilder |
static class |
Intent.Message.TableCardRow
Row of [TableCard][google.cloud.dialogflow.v2.Intent.Message.TableCard].
|
static interface |
Intent.Message.TableCardRowOrBuilder |
static class |
Intent.Message.Text
The text response message.
|
static interface |
Intent.Message.TextOrBuilder |
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, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
Modifier and Type | Field and Description |
---|---|
static int |
BASIC_CARD_FIELD_NUMBER |
static int |
BROWSE_CAROUSEL_CARD_FIELD_NUMBER |
static int |
CARD_FIELD_NUMBER |
static int |
CAROUSEL_SELECT_FIELD_NUMBER |
static int |
IMAGE_FIELD_NUMBER |
static int |
LINK_OUT_SUGGESTION_FIELD_NUMBER |
static int |
LIST_SELECT_FIELD_NUMBER |
static int |
MEDIA_CONTENT_FIELD_NUMBER |
static int |
PAYLOAD_FIELD_NUMBER |
static int |
PLATFORM_FIELD_NUMBER |
static int |
QUICK_REPLIES_FIELD_NUMBER |
static int |
SIMPLE_RESPONSES_FIELD_NUMBER |
static int |
SUGGESTIONS_FIELD_NUMBER |
static int |
TABLE_CARD_FIELD_NUMBER |
static int |
TEXT_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, 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
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 TEXT_FIELD_NUMBER
public static final int IMAGE_FIELD_NUMBER
public static final int QUICK_REPLIES_FIELD_NUMBER
public static final int CARD_FIELD_NUMBER
public static final int PAYLOAD_FIELD_NUMBER
public static final int SIMPLE_RESPONSES_FIELD_NUMBER
public static final int BASIC_CARD_FIELD_NUMBER
public static final int SUGGESTIONS_FIELD_NUMBER
public static final int LINK_OUT_SUGGESTION_FIELD_NUMBER
public static final int LIST_SELECT_FIELD_NUMBER
public static final int CAROUSEL_SELECT_FIELD_NUMBER
public static final int BROWSE_CAROUSEL_CARD_FIELD_NUMBER
public static final int TABLE_CARD_FIELD_NUMBER
public static final int MEDIA_CONTENT_FIELD_NUMBER
public static final int PLATFORM_FIELD_NUMBER
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class GeneratedMessageV3
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 Intent.Message.MessageCase getMessageCase()
getMessageCase
in interface Intent.MessageOrBuilder
public boolean hasText()
The text response.
.google.cloud.dialogflow.v2.Intent.Message.Text text = 1;
hasText
in interface Intent.MessageOrBuilder
public Intent.Message.Text getText()
The text response.
.google.cloud.dialogflow.v2.Intent.Message.Text text = 1;
getText
in interface Intent.MessageOrBuilder
public Intent.Message.TextOrBuilder getTextOrBuilder()
The text response.
.google.cloud.dialogflow.v2.Intent.Message.Text text = 1;
getTextOrBuilder
in interface Intent.MessageOrBuilder
public boolean hasImage()
The image response.
.google.cloud.dialogflow.v2.Intent.Message.Image image = 2;
hasImage
in interface Intent.MessageOrBuilder
public Intent.Message.Image getImage()
The image response.
.google.cloud.dialogflow.v2.Intent.Message.Image image = 2;
getImage
in interface Intent.MessageOrBuilder
public Intent.Message.ImageOrBuilder getImageOrBuilder()
The image response.
.google.cloud.dialogflow.v2.Intent.Message.Image image = 2;
getImageOrBuilder
in interface Intent.MessageOrBuilder
public boolean hasQuickReplies()
The quick replies response.
.google.cloud.dialogflow.v2.Intent.Message.QuickReplies quick_replies = 3;
hasQuickReplies
in interface Intent.MessageOrBuilder
public Intent.Message.QuickReplies getQuickReplies()
The quick replies response.
.google.cloud.dialogflow.v2.Intent.Message.QuickReplies quick_replies = 3;
getQuickReplies
in interface Intent.MessageOrBuilder
public Intent.Message.QuickRepliesOrBuilder getQuickRepliesOrBuilder()
The quick replies response.
.google.cloud.dialogflow.v2.Intent.Message.QuickReplies quick_replies = 3;
getQuickRepliesOrBuilder
in interface Intent.MessageOrBuilder
public boolean hasCard()
The card response.
.google.cloud.dialogflow.v2.Intent.Message.Card card = 4;
hasCard
in interface Intent.MessageOrBuilder
public Intent.Message.Card getCard()
The card response.
.google.cloud.dialogflow.v2.Intent.Message.Card card = 4;
getCard
in interface Intent.MessageOrBuilder
public Intent.Message.CardOrBuilder getCardOrBuilder()
The card response.
.google.cloud.dialogflow.v2.Intent.Message.Card card = 4;
getCardOrBuilder
in interface Intent.MessageOrBuilder
public boolean hasPayload()
A custom platform-specific response.
.google.protobuf.Struct payload = 5;
hasPayload
in interface Intent.MessageOrBuilder
public Struct getPayload()
A custom platform-specific response.
.google.protobuf.Struct payload = 5;
getPayload
in interface Intent.MessageOrBuilder
public StructOrBuilder getPayloadOrBuilder()
A custom platform-specific response.
.google.protobuf.Struct payload = 5;
getPayloadOrBuilder
in interface Intent.MessageOrBuilder
public boolean hasSimpleResponses()
The voice and text-only responses for Actions on Google.
.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses simple_responses = 7;
hasSimpleResponses
in interface Intent.MessageOrBuilder
public Intent.Message.SimpleResponses getSimpleResponses()
The voice and text-only responses for Actions on Google.
.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses simple_responses = 7;
getSimpleResponses
in interface Intent.MessageOrBuilder
public Intent.Message.SimpleResponsesOrBuilder getSimpleResponsesOrBuilder()
The voice and text-only responses for Actions on Google.
.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses simple_responses = 7;
getSimpleResponsesOrBuilder
in interface Intent.MessageOrBuilder
public boolean hasBasicCard()
The basic card response for Actions on Google.
.google.cloud.dialogflow.v2.Intent.Message.BasicCard basic_card = 8;
hasBasicCard
in interface Intent.MessageOrBuilder
public Intent.Message.BasicCard getBasicCard()
The basic card response for Actions on Google.
.google.cloud.dialogflow.v2.Intent.Message.BasicCard basic_card = 8;
getBasicCard
in interface Intent.MessageOrBuilder
public Intent.Message.BasicCardOrBuilder getBasicCardOrBuilder()
The basic card response for Actions on Google.
.google.cloud.dialogflow.v2.Intent.Message.BasicCard basic_card = 8;
getBasicCardOrBuilder
in interface Intent.MessageOrBuilder
public boolean hasSuggestions()
The suggestion chips for Actions on Google.
.google.cloud.dialogflow.v2.Intent.Message.Suggestions suggestions = 9;
hasSuggestions
in interface Intent.MessageOrBuilder
public Intent.Message.Suggestions getSuggestions()
The suggestion chips for Actions on Google.
.google.cloud.dialogflow.v2.Intent.Message.Suggestions suggestions = 9;
getSuggestions
in interface Intent.MessageOrBuilder
public Intent.Message.SuggestionsOrBuilder getSuggestionsOrBuilder()
The suggestion chips for Actions on Google.
.google.cloud.dialogflow.v2.Intent.Message.Suggestions suggestions = 9;
getSuggestionsOrBuilder
in interface Intent.MessageOrBuilder
public boolean hasLinkOutSuggestion()
The link out suggestion chip for Actions on Google.
.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
hasLinkOutSuggestion
in interface Intent.MessageOrBuilder
public Intent.Message.LinkOutSuggestion getLinkOutSuggestion()
The link out suggestion chip for Actions on Google.
.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
getLinkOutSuggestion
in interface Intent.MessageOrBuilder
public Intent.Message.LinkOutSuggestionOrBuilder getLinkOutSuggestionOrBuilder()
The link out suggestion chip for Actions on Google.
.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
getLinkOutSuggestionOrBuilder
in interface Intent.MessageOrBuilder
public boolean hasListSelect()
The list card response for Actions on Google.
.google.cloud.dialogflow.v2.Intent.Message.ListSelect list_select = 11;
hasListSelect
in interface Intent.MessageOrBuilder
public Intent.Message.ListSelect getListSelect()
The list card response for Actions on Google.
.google.cloud.dialogflow.v2.Intent.Message.ListSelect list_select = 11;
getListSelect
in interface Intent.MessageOrBuilder
public Intent.Message.ListSelectOrBuilder getListSelectOrBuilder()
The list card response for Actions on Google.
.google.cloud.dialogflow.v2.Intent.Message.ListSelect list_select = 11;
getListSelectOrBuilder
in interface Intent.MessageOrBuilder
public boolean hasCarouselSelect()
The carousel card response for Actions on Google.
.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect carousel_select = 12;
hasCarouselSelect
in interface Intent.MessageOrBuilder
public Intent.Message.CarouselSelect getCarouselSelect()
The carousel card response for Actions on Google.
.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect carousel_select = 12;
getCarouselSelect
in interface Intent.MessageOrBuilder
public Intent.Message.CarouselSelectOrBuilder getCarouselSelectOrBuilder()
The carousel card response for Actions on Google.
.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect carousel_select = 12;
getCarouselSelectOrBuilder
in interface Intent.MessageOrBuilder
public boolean hasBrowseCarouselCard()
Browse carousel card for Actions on Google.
.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard browse_carousel_card = 22;
hasBrowseCarouselCard
in interface Intent.MessageOrBuilder
public Intent.Message.BrowseCarouselCard getBrowseCarouselCard()
Browse carousel card for Actions on Google.
.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard browse_carousel_card = 22;
getBrowseCarouselCard
in interface Intent.MessageOrBuilder
public Intent.Message.BrowseCarouselCardOrBuilder getBrowseCarouselCardOrBuilder()
Browse carousel card for Actions on Google.
.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard browse_carousel_card = 22;
getBrowseCarouselCardOrBuilder
in interface Intent.MessageOrBuilder
public boolean hasTableCard()
Table card for Actions on Google.
.google.cloud.dialogflow.v2.Intent.Message.TableCard table_card = 23;
hasTableCard
in interface Intent.MessageOrBuilder
public Intent.Message.TableCard getTableCard()
Table card for Actions on Google.
.google.cloud.dialogflow.v2.Intent.Message.TableCard table_card = 23;
getTableCard
in interface Intent.MessageOrBuilder
public Intent.Message.TableCardOrBuilder getTableCardOrBuilder()
Table card for Actions on Google.
.google.cloud.dialogflow.v2.Intent.Message.TableCard table_card = 23;
getTableCardOrBuilder
in interface Intent.MessageOrBuilder
public boolean hasMediaContent()
The media content card for Actions on Google.
.google.cloud.dialogflow.v2.Intent.Message.MediaContent media_content = 24;
hasMediaContent
in interface Intent.MessageOrBuilder
public Intent.Message.MediaContent getMediaContent()
The media content card for Actions on Google.
.google.cloud.dialogflow.v2.Intent.Message.MediaContent media_content = 24;
getMediaContent
in interface Intent.MessageOrBuilder
public Intent.Message.MediaContentOrBuilder getMediaContentOrBuilder()
The media content card for Actions on Google.
.google.cloud.dialogflow.v2.Intent.Message.MediaContent media_content = 24;
getMediaContentOrBuilder
in interface Intent.MessageOrBuilder
public int getPlatformValue()
Optional. The platform that this message is intended for.
.google.cloud.dialogflow.v2.Intent.Message.Platform platform = 6 [(.google.api.field_behavior) = OPTIONAL];
getPlatformValue
in interface Intent.MessageOrBuilder
public Intent.Message.Platform getPlatform()
Optional. The platform that this message is intended for.
.google.cloud.dialogflow.v2.Intent.Message.Platform platform = 6 [(.google.api.field_behavior) = OPTIONAL];
getPlatform
in interface Intent.MessageOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static Intent.Message parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Intent.Message parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Intent.Message parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Intent.Message parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Intent.Message parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Intent.Message parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Intent.Message parseFrom(InputStream input) throws IOException
IOException
public static Intent.Message parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Intent.Message parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Intent.Message parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Intent.Message parseFrom(CodedInputStream input) throws IOException
IOException
public static Intent.Message parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public Intent.Message.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static Intent.Message.Builder newBuilder()
public static Intent.Message.Builder newBuilder(Intent.Message prototype)
public Intent.Message.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected Intent.Message.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static Intent.Message getDefaultInstance()
public static Parser<Intent.Message> parser()
public Parser<Intent.Message> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public Intent.Message getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2022 Google LLC. All rights reserved.