- 4.59.0 (latest)
- 4.58.0
- 4.57.0
- 4.55.0
- 4.54.0
- 4.53.0
- 4.52.0
- 4.51.0
- 4.50.0
- 4.49.0
- 4.48.0
- 4.47.0
- 4.46.0
- 4.45.0
- 4.43.0
- 4.42.0
- 4.41.0
- 4.40.0
- 4.39.0
- 4.38.0
- 4.37.0
- 4.36.0
- 4.35.0
- 4.34.0
- 4.33.0
- 4.30.0
- 4.29.0
- 4.28.0
- 4.27.0
- 4.26.0
- 4.25.0
- 4.24.0
- 4.23.0
- 4.22.0
- 4.21.0
- 4.20.0
- 4.19.0
- 4.18.0
- 4.17.0
- 4.15.0
- 4.14.0
- 4.13.0
- 4.12.0
- 4.11.0
- 4.10.0
- 4.9.1
- 4.8.6
- 4.7.5
- 4.6.0
- 4.5.11
- 4.4.0
- 4.3.1
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.
Protobuf type google.cloud.dialogflow.v2.Intent.Message
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > Intent.MessageImplements
Intent.MessageOrBuilderStatic Fields
BASIC_CARD_FIELD_NUMBER
public static final int BASIC_CARD_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
BROWSE_CAROUSEL_CARD_FIELD_NUMBER
public static final int BROWSE_CAROUSEL_CARD_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
CARD_FIELD_NUMBER
public static final int CARD_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
CAROUSEL_SELECT_FIELD_NUMBER
public static final int CAROUSEL_SELECT_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
IMAGE_FIELD_NUMBER
public static final int IMAGE_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
LINK_OUT_SUGGESTION_FIELD_NUMBER
public static final int LINK_OUT_SUGGESTION_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
LIST_SELECT_FIELD_NUMBER
public static final int LIST_SELECT_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
MEDIA_CONTENT_FIELD_NUMBER
public static final int MEDIA_CONTENT_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
PAYLOAD_FIELD_NUMBER
public static final int PAYLOAD_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
PLATFORM_FIELD_NUMBER
public static final int PLATFORM_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
QUICK_REPLIES_FIELD_NUMBER
public static final int QUICK_REPLIES_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
SIMPLE_RESPONSES_FIELD_NUMBER
public static final int SIMPLE_RESPONSES_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
SUGGESTIONS_FIELD_NUMBER
public static final int SUGGESTIONS_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
TABLE_CARD_FIELD_NUMBER
public static final int TABLE_CARD_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
TEXT_FIELD_NUMBER
public static final int TEXT_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
Static Methods
getDefaultInstance()
public static Intent.Message getDefaultInstance()
Returns | |
---|---|
Type | Description |
Intent.Message |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
newBuilder()
public static Intent.Message.Builder newBuilder()
Returns | |
---|---|
Type | Description |
Intent.Message.Builder |
newBuilder(Intent.Message prototype)
public static Intent.Message.Builder newBuilder(Intent.Message prototype)
Parameter | |
---|---|
Name | Description |
prototype |
Intent.Message |
Returns | |
---|---|
Type | Description |
Intent.Message.Builder |
parseDelimitedFrom(InputStream input)
public static Intent.Message parseDelimitedFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
Intent.Message |
Exceptions | |
---|---|
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Intent.Message parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Intent.Message |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(byte[] data)
public static Intent.Message parseFrom(byte[] data)
Parameter | |
---|---|
Name | Description |
data |
byte[] |
Returns | |
---|---|
Type | Description |
Intent.Message |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Intent.Message parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Intent.Message |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static Intent.Message parseFrom(ByteString data)
Parameter | |
---|---|
Name | Description |
data |
ByteString |
Returns | |
---|---|
Type | Description |
Intent.Message |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Intent.Message parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Intent.Message |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static Intent.Message parseFrom(CodedInputStream input)
Parameter | |
---|---|
Name | Description |
input |
CodedInputStream |
Returns | |
---|---|
Type | Description |
Intent.Message |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Intent.Message parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Intent.Message |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input)
public static Intent.Message parseFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
Intent.Message |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Intent.Message parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Intent.Message |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static Intent.Message parseFrom(ByteBuffer data)
Parameter | |
---|---|
Name | Description |
data |
ByteBuffer |
Returns | |
---|---|
Type | Description |
Intent.Message |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Intent.Message parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Intent.Message |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<Intent.Message> parser()
Returns | |
---|---|
Type | Description |
Parser<Message> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter | |
---|---|
Name | Description |
obj |
Object |
Returns | |
---|---|
Type | Description |
boolean |
getBasicCard()
public Intent.Message.BasicCard getBasicCard()
The basic card response for Actions on Google.
.google.cloud.dialogflow.v2.Intent.Message.BasicCard basic_card = 8;
Returns | |
---|---|
Type | Description |
Intent.Message.BasicCard |
The basicCard. |
getBasicCardOrBuilder()
public Intent.Message.BasicCardOrBuilder getBasicCardOrBuilder()
The basic card response for Actions on Google.
.google.cloud.dialogflow.v2.Intent.Message.BasicCard basic_card = 8;
Returns | |
---|---|
Type | Description |
Intent.Message.BasicCardOrBuilder |
getBrowseCarouselCard()
public Intent.Message.BrowseCarouselCard getBrowseCarouselCard()
Browse carousel card for Actions on Google.
.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard browse_carousel_card = 22;
Returns | |
---|---|
Type | Description |
Intent.Message.BrowseCarouselCard |
The browseCarouselCard. |
getBrowseCarouselCardOrBuilder()
public Intent.Message.BrowseCarouselCardOrBuilder getBrowseCarouselCardOrBuilder()
Browse carousel card for Actions on Google.
.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard browse_carousel_card = 22;
Returns | |
---|---|
Type | Description |
Intent.Message.BrowseCarouselCardOrBuilder |
getCard()
public Intent.Message.Card getCard()
The card response.
.google.cloud.dialogflow.v2.Intent.Message.Card card = 4;
Returns | |
---|---|
Type | Description |
Intent.Message.Card |
The card. |
getCardOrBuilder()
public Intent.Message.CardOrBuilder getCardOrBuilder()
The card response.
.google.cloud.dialogflow.v2.Intent.Message.Card card = 4;
Returns | |
---|---|
Type | Description |
Intent.Message.CardOrBuilder |
getCarouselSelect()
public Intent.Message.CarouselSelect getCarouselSelect()
The carousel card response for Actions on Google.
.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect carousel_select = 12;
Returns | |
---|---|
Type | Description |
Intent.Message.CarouselSelect |
The carouselSelect. |
getCarouselSelectOrBuilder()
public Intent.Message.CarouselSelectOrBuilder getCarouselSelectOrBuilder()
The carousel card response for Actions on Google.
.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect carousel_select = 12;
Returns | |
---|---|
Type | Description |
Intent.Message.CarouselSelectOrBuilder |
getDefaultInstanceForType()
public Intent.Message getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
Intent.Message |
getImage()
public Intent.Message.Image getImage()
The image response.
.google.cloud.dialogflow.v2.Intent.Message.Image image = 2;
Returns | |
---|---|
Type | Description |
Intent.Message.Image |
The image. |
getImageOrBuilder()
public Intent.Message.ImageOrBuilder getImageOrBuilder()
The image response.
.google.cloud.dialogflow.v2.Intent.Message.Image image = 2;
Returns | |
---|---|
Type | Description |
Intent.Message.ImageOrBuilder |
getLinkOutSuggestion()
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;
Returns | |
---|---|
Type | Description |
Intent.Message.LinkOutSuggestion |
The linkOutSuggestion. |
getLinkOutSuggestionOrBuilder()
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;
Returns | |
---|---|
Type | Description |
Intent.Message.LinkOutSuggestionOrBuilder |
getListSelect()
public Intent.Message.ListSelect getListSelect()
The list card response for Actions on Google.
.google.cloud.dialogflow.v2.Intent.Message.ListSelect list_select = 11;
Returns | |
---|---|
Type | Description |
Intent.Message.ListSelect |
The listSelect. |
getListSelectOrBuilder()
public Intent.Message.ListSelectOrBuilder getListSelectOrBuilder()
The list card response for Actions on Google.
.google.cloud.dialogflow.v2.Intent.Message.ListSelect list_select = 11;
Returns | |
---|---|
Type | Description |
Intent.Message.ListSelectOrBuilder |
getMediaContent()
public Intent.Message.MediaContent getMediaContent()
The media content card for Actions on Google.
.google.cloud.dialogflow.v2.Intent.Message.MediaContent media_content = 24;
Returns | |
---|---|
Type | Description |
Intent.Message.MediaContent |
The mediaContent. |
getMediaContentOrBuilder()
public Intent.Message.MediaContentOrBuilder getMediaContentOrBuilder()
The media content card for Actions on Google.
.google.cloud.dialogflow.v2.Intent.Message.MediaContent media_content = 24;
Returns | |
---|---|
Type | Description |
Intent.Message.MediaContentOrBuilder |
getMessageCase()
public Intent.Message.MessageCase getMessageCase()
Returns | |
---|---|
Type | Description |
Intent.Message.MessageCase |
getParserForType()
public Parser<Intent.Message> getParserForType()
Returns | |
---|---|
Type | Description |
Parser<Message> |
getPayload()
public Struct getPayload()
A custom platform-specific response.
.google.protobuf.Struct payload = 5;
Returns | |
---|---|
Type | Description |
Struct |
The payload. |
getPayloadOrBuilder()
public StructOrBuilder getPayloadOrBuilder()
A custom platform-specific response.
.google.protobuf.Struct payload = 5;
Returns | |
---|---|
Type | Description |
StructOrBuilder |
getPlatform()
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];
Returns | |
---|---|
Type | Description |
Intent.Message.Platform |
The platform. |
getPlatformValue()
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];
Returns | |
---|---|
Type | Description |
int |
The enum numeric value on the wire for platform. |
getQuickReplies()
public Intent.Message.QuickReplies getQuickReplies()
The quick replies response.
.google.cloud.dialogflow.v2.Intent.Message.QuickReplies quick_replies = 3;
Returns | |
---|---|
Type | Description |
Intent.Message.QuickReplies |
The quickReplies. |
getQuickRepliesOrBuilder()
public Intent.Message.QuickRepliesOrBuilder getQuickRepliesOrBuilder()
The quick replies response.
.google.cloud.dialogflow.v2.Intent.Message.QuickReplies quick_replies = 3;
Returns | |
---|---|
Type | Description |
Intent.Message.QuickRepliesOrBuilder |
getSerializedSize()
public int getSerializedSize()
Returns | |
---|---|
Type | Description |
int |
getSimpleResponses()
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;
Returns | |
---|---|
Type | Description |
Intent.Message.SimpleResponses |
The simpleResponses. |
getSimpleResponsesOrBuilder()
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;
Returns | |
---|---|
Type | Description |
Intent.Message.SimpleResponsesOrBuilder |
getSuggestions()
public Intent.Message.Suggestions getSuggestions()
The suggestion chips for Actions on Google.
.google.cloud.dialogflow.v2.Intent.Message.Suggestions suggestions = 9;
Returns | |
---|---|
Type | Description |
Intent.Message.Suggestions |
The suggestions. |
getSuggestionsOrBuilder()
public Intent.Message.SuggestionsOrBuilder getSuggestionsOrBuilder()
The suggestion chips for Actions on Google.
.google.cloud.dialogflow.v2.Intent.Message.Suggestions suggestions = 9;
Returns | |
---|---|
Type | Description |
Intent.Message.SuggestionsOrBuilder |
getTableCard()
public Intent.Message.TableCard getTableCard()
Table card for Actions on Google.
.google.cloud.dialogflow.v2.Intent.Message.TableCard table_card = 23;
Returns | |
---|---|
Type | Description |
Intent.Message.TableCard |
The tableCard. |
getTableCardOrBuilder()
public Intent.Message.TableCardOrBuilder getTableCardOrBuilder()
Table card for Actions on Google.
.google.cloud.dialogflow.v2.Intent.Message.TableCard table_card = 23;
Returns | |
---|---|
Type | Description |
Intent.Message.TableCardOrBuilder |
getText()
public Intent.Message.Text getText()
The text response.
.google.cloud.dialogflow.v2.Intent.Message.Text text = 1;
Returns | |
---|---|
Type | Description |
Intent.Message.Text |
The text. |
getTextOrBuilder()
public Intent.Message.TextOrBuilder getTextOrBuilder()
The text response.
.google.cloud.dialogflow.v2.Intent.Message.Text text = 1;
Returns | |
---|---|
Type | Description |
Intent.Message.TextOrBuilder |
hasBasicCard()
public boolean hasBasicCard()
The basic card response for Actions on Google.
.google.cloud.dialogflow.v2.Intent.Message.BasicCard basic_card = 8;
Returns | |
---|---|
Type | Description |
boolean |
Whether the basicCard field is set. |
hasBrowseCarouselCard()
public boolean hasBrowseCarouselCard()
Browse carousel card for Actions on Google.
.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard browse_carousel_card = 22;
Returns | |
---|---|
Type | Description |
boolean |
Whether the browseCarouselCard field is set. |
hasCard()
public boolean hasCard()
The card response.
.google.cloud.dialogflow.v2.Intent.Message.Card card = 4;
Returns | |
---|---|
Type | Description |
boolean |
Whether the card field is set. |
hasCarouselSelect()
public boolean hasCarouselSelect()
The carousel card response for Actions on Google.
.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect carousel_select = 12;
Returns | |
---|---|
Type | Description |
boolean |
Whether the carouselSelect field is set. |
hasImage()
public boolean hasImage()
The image response.
.google.cloud.dialogflow.v2.Intent.Message.Image image = 2;
Returns | |
---|---|
Type | Description |
boolean |
Whether the image field is set. |
hasLinkOutSuggestion()
public boolean hasLinkOutSuggestion()
The link out suggestion chip for Actions on Google.
.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion link_out_suggestion = 10;
Returns | |
---|---|
Type | Description |
boolean |
Whether the linkOutSuggestion field is set. |
hasListSelect()
public boolean hasListSelect()
The list card response for Actions on Google.
.google.cloud.dialogflow.v2.Intent.Message.ListSelect list_select = 11;
Returns | |
---|---|
Type | Description |
boolean |
Whether the listSelect field is set. |
hasMediaContent()
public boolean hasMediaContent()
The media content card for Actions on Google.
.google.cloud.dialogflow.v2.Intent.Message.MediaContent media_content = 24;
Returns | |
---|---|
Type | Description |
boolean |
Whether the mediaContent field is set. |
hasPayload()
public boolean hasPayload()
A custom platform-specific response.
.google.protobuf.Struct payload = 5;
Returns | |
---|---|
Type | Description |
boolean |
Whether the payload field is set. |
hasQuickReplies()
public boolean hasQuickReplies()
The quick replies response.
.google.cloud.dialogflow.v2.Intent.Message.QuickReplies quick_replies = 3;
Returns | |
---|---|
Type | Description |
boolean |
Whether the quickReplies field is set. |
hasSimpleResponses()
public boolean hasSimpleResponses()
The voice and text-only responses for Actions on Google.
.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses simple_responses = 7;
Returns | |
---|---|
Type | Description |
boolean |
Whether the simpleResponses field is set. |
hasSuggestions()
public boolean hasSuggestions()
The suggestion chips for Actions on Google.
.google.cloud.dialogflow.v2.Intent.Message.Suggestions suggestions = 9;
Returns | |
---|---|
Type | Description |
boolean |
Whether the suggestions field is set. |
hasTableCard()
public boolean hasTableCard()
Table card for Actions on Google.
.google.cloud.dialogflow.v2.Intent.Message.TableCard table_card = 23;
Returns | |
---|---|
Type | Description |
boolean |
Whether the tableCard field is set. |
hasText()
public boolean hasText()
The text response.
.google.cloud.dialogflow.v2.Intent.Message.Text text = 1;
Returns | |
---|---|
Type | Description |
boolean |
Whether the text field is set. |
hashCode()
public int hashCode()
Returns | |
---|---|
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
newBuilderForType()
public Intent.Message.Builder newBuilderForType()
Returns | |
---|---|
Type | Description |
Intent.Message.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Intent.Message.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter | |
---|---|
Name | Description |
parent |
BuilderParent |
Returns | |
---|---|
Type | Description |
Intent.Message.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter | |
---|---|
Name | Description |
unused |
UnusedPrivateParameter |
Returns | |
---|---|
Type | Description |
Object |
toBuilder()
public Intent.Message.Builder toBuilder()
Returns | |
---|---|
Type | Description |
Intent.Message.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter | |
---|---|
Name | Description |
output |
CodedOutputStream |
Exceptions | |
---|---|
Type | Description |
IOException |