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.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.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, 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 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 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()
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.MessageOrBuilder
public 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.MessageOrBuilder
public 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.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 int getPlatformValue()
Optional. The platform that this message is intended for.
.google.cloud.dialogflow.v2.Intent.Message.Platform platform = 6;
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;
getPlatform
in interface Intent.MessageOrBuilder
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 Intent.Message parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Intent.Message parseFrom(java.nio.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(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Intent.Message parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Intent.Message parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Intent.Message parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Intent.Message parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static Intent.Message parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.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