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, unknownFields
memoizedSize
memoizedHashCode
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, 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()
Returns a text response.
.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;
hasText
in interface Intent.MessageOrBuilder
public Intent.Message.Text getText()
Returns a text response.
.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;
getText
in interface Intent.MessageOrBuilder
public Intent.Message.TextOrBuilder getTextOrBuilder()
Returns a text response.
.google.cloud.dialogflow.v2beta1.Intent.Message.Text text = 1;
getTextOrBuilder
in interface Intent.MessageOrBuilder
public boolean hasImage()
Displays an image.
.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;
hasImage
in interface Intent.MessageOrBuilder
public Intent.Message.Image getImage()
Displays an image.
.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;
getImage
in interface Intent.MessageOrBuilder
public Intent.Message.ImageOrBuilder getImageOrBuilder()
Displays an image.
.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 2;
getImageOrBuilder
in interface Intent.MessageOrBuilder
public boolean hasQuickReplies()
Displays quick replies.
.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
hasQuickReplies
in interface Intent.MessageOrBuilder
public Intent.Message.QuickReplies getQuickReplies()
Displays quick replies.
.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
getQuickReplies
in interface Intent.MessageOrBuilder
public Intent.Message.QuickRepliesOrBuilder getQuickRepliesOrBuilder()
Displays quick replies.
.google.cloud.dialogflow.v2beta1.Intent.Message.QuickReplies quick_replies = 3;
getQuickRepliesOrBuilder
in interface Intent.MessageOrBuilder
public boolean hasCard()
Displays a card.
.google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;
hasCard
in interface Intent.MessageOrBuilder
public Intent.Message.Card getCard()
Displays a card.
.google.cloud.dialogflow.v2beta1.Intent.Message.Card card = 4;
getCard
in interface Intent.MessageOrBuilder
public Intent.Message.CardOrBuilder getCardOrBuilder()
Displays a card.
.google.cloud.dialogflow.v2beta1.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()
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.MessageOrBuilder
public 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.MessageOrBuilder
public 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.MessageOrBuilder
public boolean hasBasicCard()
Displays a basic card for Actions on Google.
.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard basic_card = 8;
hasBasicCard
in interface Intent.MessageOrBuilder
public 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.MessageOrBuilder
public 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.MessageOrBuilder
public boolean hasSuggestions()
Displays suggestion chips for Actions on Google.
.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;
hasSuggestions
in interface Intent.MessageOrBuilder
public Intent.Message.Suggestions getSuggestions()
Displays suggestion chips for Actions on Google.
.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;
getSuggestions
in interface Intent.MessageOrBuilder
public Intent.Message.SuggestionsOrBuilder getSuggestionsOrBuilder()
Displays suggestion chips for Actions on Google.
.google.cloud.dialogflow.v2beta1.Intent.Message.Suggestions suggestions = 9;
getSuggestionsOrBuilder
in interface Intent.MessageOrBuilder
public 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.MessageOrBuilder
public 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.MessageOrBuilder
public 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.MessageOrBuilder
public boolean hasListSelect()
Displays a list card for Actions on Google.
.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect list_select = 11;
hasListSelect
in interface Intent.MessageOrBuilder
public 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.MessageOrBuilder
public 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.MessageOrBuilder
public boolean hasCarouselSelect()
Displays a carousel card for Actions on Google.
.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect carousel_select = 12;
hasCarouselSelect
in interface Intent.MessageOrBuilder
public 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.MessageOrBuilder
public 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.MessageOrBuilder
public int getPlatformValue()
Optional. The platform that this message is intended for.
.google.cloud.dialogflow.v2beta1.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.v2beta1.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