public static final class Intent.Message extends GeneratedMessageV3 implements Intent.MessageOrBuilder
Corresponds to the `Response` field in the Dialogflow console.Protobuf type
google.cloud.dialogflow.v2beta1.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.Builder
Corresponds to the `Response` field in the Dialogflow console.
|
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.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.MessageCase |
static class |
Intent.Message.Platform
Represents different platforms that a rich message can be intended for.
|
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.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| Modifier and Type | Field and Description |
|---|---|
static int |
BASIC_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 |
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 |
TEXT_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCode| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
Intent.Message.BasicCard |
getBasicCard()
Displays a basic card for Actions on Google.
|
Intent.Message.BasicCardOrBuilder |
getBasicCardOrBuilder()
Displays a basic card for Actions on Google.
|
Intent.Message.Card |
getCard()
Displays a card.
|
Intent.Message.CardOrBuilder |
getCardOrBuilder()
Displays a card.
|
Intent.Message.CarouselSelect |
getCarouselSelect()
Displays a carousel card for Actions on Google.
|
Intent.Message.CarouselSelectOrBuilder |
getCarouselSelectOrBuilder()
Displays a carousel card for Actions on Google.
|
static Intent.Message |
getDefaultInstance() |
Intent.Message |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Intent.Message.Image |
getImage()
Displays an image.
|
Intent.Message.ImageOrBuilder |
getImageOrBuilder()
Displays an image.
|
Intent.Message.LinkOutSuggestion |
getLinkOutSuggestion()
Displays a link out suggestion chip for Actions on Google.
|
Intent.Message.LinkOutSuggestionOrBuilder |
getLinkOutSuggestionOrBuilder()
Displays a link out suggestion chip for Actions on Google.
|
Intent.Message.ListSelect |
getListSelect()
Displays a list card for Actions on Google.
|
Intent.Message.ListSelectOrBuilder |
getListSelectOrBuilder()
Displays a list card for Actions on Google.
|
Intent.Message.MessageCase |
getMessageCase() |
Parser<Intent.Message> |
getParserForType() |
Struct |
getPayload()
Returns a response containing a custom, platform-specific payload.
|
StructOrBuilder |
getPayloadOrBuilder()
Returns a response containing a custom, platform-specific payload.
|
Intent.Message.Platform |
getPlatform()
Optional.
|
int |
getPlatformValue()
Optional.
|
Intent.Message.QuickReplies |
getQuickReplies()
Displays quick replies.
|
Intent.Message.QuickRepliesOrBuilder |
getQuickRepliesOrBuilder()
Displays quick replies.
|
int |
getSerializedSize() |
Intent.Message.SimpleResponses |
getSimpleResponses()
Returns a voice or text-only response for Actions on Google.
|
Intent.Message.SimpleResponsesOrBuilder |
getSimpleResponsesOrBuilder()
Returns a voice or text-only response for Actions on Google.
|
Intent.Message.Suggestions |
getSuggestions()
Displays suggestion chips for Actions on Google.
|
Intent.Message.SuggestionsOrBuilder |
getSuggestionsOrBuilder()
Displays suggestion chips for Actions on Google.
|
Intent.Message.Text |
getText()
Returns a text response.
|
Intent.Message.TextOrBuilder |
getTextOrBuilder()
Returns a text response.
|
UnknownFieldSet |
getUnknownFields() |
boolean |
hasBasicCard()
Displays a basic card for Actions on Google.
|
boolean |
hasCard()
Displays a card.
|
boolean |
hasCarouselSelect()
Displays a carousel card for Actions on Google.
|
int |
hashCode() |
boolean |
hasImage()
Displays an image.
|
boolean |
hasLinkOutSuggestion()
Displays a link out suggestion chip for Actions on Google.
|
boolean |
hasListSelect()
Displays a list card for Actions on Google.
|
boolean |
hasPayload()
Returns a response containing a custom, platform-specific payload.
|
boolean |
hasQuickReplies()
Displays quick replies.
|
boolean |
hasSimpleResponses()
Returns a voice or text-only response for Actions on Google.
|
boolean |
hasSuggestions()
Displays suggestion chips for Actions on Google.
|
boolean |
hasText()
Returns a text response.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Intent.Message.Builder |
newBuilder() |
static Intent.Message.Builder |
newBuilder(Intent.Message prototype) |
Intent.Message.Builder |
newBuilderForType() |
protected Intent.Message.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
static Intent.Message |
parseDelimitedFrom(java.io.InputStream input) |
static Intent.Message |
parseDelimitedFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Intent.Message |
parseFrom(byte[] data) |
static Intent.Message |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static Intent.Message |
parseFrom(java.nio.ByteBuffer data) |
static Intent.Message |
parseFrom(java.nio.ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static Intent.Message |
parseFrom(ByteString data) |
static Intent.Message |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static Intent.Message |
parseFrom(CodedInputStream input) |
static Intent.Message |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static Intent.Message |
parseFrom(java.io.InputStream input) |
static Intent.Message |
parseFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<Intent.Message> |
parser() |
Intent.Message.Builder |
toBuilder() |
void |
writeTo(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, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic 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 PLATFORM_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 Intent.Message.MessageCase getMessageCase()
getMessageCase in interface Intent.MessageOrBuilderpublic boolean hasText()
Returns a text response.
.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;hasText in interface Intent.MessageOrBuilderpublic Intent.Message.Text getText()
Returns a text response.
.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;getText in interface Intent.MessageOrBuilderpublic Intent.Message.TextOrBuilder getTextOrBuilder()
Returns a text response.
.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;getTextOrBuilder in interface Intent.MessageOrBuilderpublic boolean hasImage()
Displays an image.
.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;hasImage in interface Intent.MessageOrBuilderpublic Intent.Message.Image getImage()
Displays an image.
.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;getImage in interface Intent.MessageOrBuilderpublic Intent.Message.ImageOrBuilder getImageOrBuilder()
Displays an image.
.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;getImageOrBuilder in interface Intent.MessageOrBuilderpublic boolean hasQuickReplies()
Displays quick replies.
.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;hasQuickReplies in interface Intent.MessageOrBuilderpublic Intent.Message.QuickReplies getQuickReplies()
Displays quick replies.
.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;getQuickReplies in interface Intent.MessageOrBuilderpublic Intent.Message.QuickRepliesOrBuilder getQuickRepliesOrBuilder()
Displays quick replies.
.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;getQuickRepliesOrBuilder in interface Intent.MessageOrBuilderpublic boolean hasCard()
Displays a card.
.google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;hasCard in interface Intent.MessageOrBuilderpublic Intent.Message.Card getCard()
Displays a card.
.google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;getCard in interface Intent.MessageOrBuilderpublic Intent.Message.CardOrBuilder getCardOrBuilder()
Displays a card.
.google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;getCardOrBuilder in interface Intent.MessageOrBuilderpublic boolean hasPayload()
Returns a response containing a custom, platform-specific payload. See the Intent.Message.Platform type for a description of the structure that may be required for your platform.
.google.protobuf.Struct payload = 5;hasPayload in interface Intent.MessageOrBuilderpublic Struct getPayload()
Returns a response containing a custom, platform-specific payload. See the Intent.Message.Platform type for a description of the structure that may be required for your platform.
.google.protobuf.Struct payload = 5;getPayload in interface Intent.MessageOrBuilderpublic StructOrBuilder getPayloadOrBuilder()
Returns a response containing a custom, platform-specific payload. See the Intent.Message.Platform type for a description of the structure that may be required for your platform.
.google.protobuf.Struct payload = 5;getPayloadOrBuilder in interface Intent.MessageOrBuilderpublic boolean hasSimpleResponses()
Returns a voice or text-only response for Actions on Google.
.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;hasSimpleResponses in interface Intent.MessageOrBuilderpublic Intent.Message.SimpleResponses getSimpleResponses()
Returns a voice or text-only response for Actions on Google.
.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;getSimpleResponses in interface Intent.MessageOrBuilderpublic Intent.Message.SimpleResponsesOrBuilder getSimpleResponsesOrBuilder()
Returns a voice or text-only response for Actions on Google.
.google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponses simple_responses = 7;getSimpleResponsesOrBuilder in interface Intent.MessageOrBuilderpublic boolean hasBasicCard()
Displays a basic card for Actions on Google.
.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;hasBasicCard in interface Intent.MessageOrBuilderpublic Intent.Message.BasicCard getBasicCard()
Displays a basic card for Actions on Google.
.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;getBasicCard in interface Intent.MessageOrBuilderpublic Intent.Message.BasicCardOrBuilder getBasicCardOrBuilder()
Displays a basic card for Actions on Google.
.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;getBasicCardOrBuilder in interface Intent.MessageOrBuilderpublic boolean hasSuggestions()
Displays suggestion chips for Actions on Google.
.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;hasSuggestions in interface Intent.MessageOrBuilderpublic Intent.Message.Suggestions getSuggestions()
Displays suggestion chips for Actions on Google.
.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;getSuggestions in interface Intent.MessageOrBuilderpublic Intent.Message.SuggestionsOrBuilder getSuggestionsOrBuilder()
Displays suggestion chips for Actions on Google.
.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;getSuggestionsOrBuilder in interface Intent.MessageOrBuilderpublic boolean hasLinkOutSuggestion()
Displays a link out suggestion chip for Actions on Google.
.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;hasLinkOutSuggestion in interface Intent.MessageOrBuilderpublic Intent.Message.LinkOutSuggestion getLinkOutSuggestion()
Displays a link out suggestion chip for Actions on Google.
.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;getLinkOutSuggestion in interface Intent.MessageOrBuilderpublic Intent.Message.LinkOutSuggestionOrBuilder getLinkOutSuggestionOrBuilder()
Displays a link out suggestion chip for Actions on Google.
.google.cloud.dialogflow.v2beta1.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;getLinkOutSuggestionOrBuilder in interface Intent.MessageOrBuilderpublic boolean hasListSelect()
Displays a list card for Actions on Google.
.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;hasListSelect in interface Intent.MessageOrBuilderpublic Intent.Message.ListSelect getListSelect()
Displays a list card for Actions on Google.
.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;getListSelect in interface Intent.MessageOrBuilderpublic Intent.Message.ListSelectOrBuilder getListSelectOrBuilder()
Displays a list card for Actions on Google.
.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;getListSelectOrBuilder in interface Intent.MessageOrBuilderpublic boolean hasCarouselSelect()
Displays a carousel card for Actions on Google.
.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;hasCarouselSelect in interface Intent.MessageOrBuilderpublic Intent.Message.CarouselSelect getCarouselSelect()
Displays a carousel card for Actions on Google.
.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;getCarouselSelect in interface Intent.MessageOrBuilderpublic Intent.Message.CarouselSelectOrBuilder getCarouselSelectOrBuilder()
Displays a carousel card for Actions on Google.
.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;getCarouselSelectOrBuilder in interface Intent.MessageOrBuilderpublic int getPlatformValue()
Optional. The platform that this message is intended for.
.google.cloud.dialogflow.v2beta1.Intent.Message.Platform platform = 6;getPlatformValue in interface Intent.MessageOrBuilderpublic Intent.Message.Platform getPlatform()
Optional. The platform that this message is intended for.
.google.cloud.dialogflow.v2beta1.Intent.Message.Platform platform = 6;getPlatform in interface Intent.MessageOrBuilderpublic 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 Intent.Message parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Intent.Message parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Intent.Message parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Intent.Message parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Intent.Message parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Intent.Message parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Intent.Message parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Intent.Message parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Intent.Message parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Intent.Message parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Intent.Message parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Intent.Message parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic Intent.Message.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static Intent.Message.Builder newBuilder()
public static Intent.Message.Builder newBuilder(Intent.Message prototype)
public Intent.Message.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected Intent.Message.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static Intent.Message getDefaultInstance()
public static Parser<Intent.Message> parser()
public Parser<Intent.Message> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public Intent.Message getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder