Class Intent.Message (4.7.4)

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

Static Fields

BASIC_CARD_FIELD_NUMBER

public static final int BASIC_CARD_FIELD_NUMBER
Field Value
TypeDescription
int
public static final int BROWSE_CAROUSEL_CARD_FIELD_NUMBER
Field Value
TypeDescription
int

CARD_FIELD_NUMBER

public static final int CARD_FIELD_NUMBER
Field Value
TypeDescription
int
public static final int CAROUSEL_SELECT_FIELD_NUMBER
Field Value
TypeDescription
int

IMAGE_FIELD_NUMBER

public static final int IMAGE_FIELD_NUMBER
Field Value
TypeDescription
int
public static final int LINK_OUT_SUGGESTION_FIELD_NUMBER
Field Value
TypeDescription
int

LIST_SELECT_FIELD_NUMBER

public static final int LIST_SELECT_FIELD_NUMBER
Field Value
TypeDescription
int

MEDIA_CONTENT_FIELD_NUMBER

public static final int MEDIA_CONTENT_FIELD_NUMBER
Field Value
TypeDescription
int

PAYLOAD_FIELD_NUMBER

public static final int PAYLOAD_FIELD_NUMBER
Field Value
TypeDescription
int

PLATFORM_FIELD_NUMBER

public static final int PLATFORM_FIELD_NUMBER
Field Value
TypeDescription
int

QUICK_REPLIES_FIELD_NUMBER

public static final int QUICK_REPLIES_FIELD_NUMBER
Field Value
TypeDescription
int

SIMPLE_RESPONSES_FIELD_NUMBER

public static final int SIMPLE_RESPONSES_FIELD_NUMBER
Field Value
TypeDescription
int

SUGGESTIONS_FIELD_NUMBER

public static final int SUGGESTIONS_FIELD_NUMBER
Field Value
TypeDescription
int

TABLE_CARD_FIELD_NUMBER

public static final int TABLE_CARD_FIELD_NUMBER
Field Value
TypeDescription
int

TEXT_FIELD_NUMBER

public static final int TEXT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Intent.Message getDefaultInstance()
Returns
TypeDescription
Intent.Message

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Intent.Message.Builder newBuilder()
Returns
TypeDescription
Intent.Message.Builder

newBuilder(Intent.Message prototype)

public static Intent.Message.Builder newBuilder(Intent.Message prototype)
Parameter
NameDescription
prototypeIntent.Message
Returns
TypeDescription
Intent.Message.Builder

parseDelimitedFrom(InputStream input)

public static Intent.Message parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Intent.Message
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Intent.Message parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Intent.Message
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Intent.Message parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Intent.Message
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Intent.Message parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Intent.Message
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Intent.Message parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Intent.Message
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Intent.Message parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Intent.Message
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Intent.Message parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Intent.Message
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Intent.Message parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Intent.Message
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Intent.Message parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Intent.Message
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Intent.Message parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Intent.Message
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Intent.Message parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Intent.Message
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Intent.Message parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Intent.Message
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Intent.Message> parser()
Returns
TypeDescription
Parser<Message>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Intent.Message.BrowseCarouselCardOrBuilder

getCard()

public Intent.Message.Card getCard()

The card response.

.google.cloud.dialogflow.v2.Intent.Message.Card card = 4;

Returns
TypeDescription
Intent.Message.Card

The card.

getCardOrBuilder()

public Intent.Message.CardOrBuilder getCardOrBuilder()

The card response.

.google.cloud.dialogflow.v2.Intent.Message.Card card = 4;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Intent.Message.CarouselSelectOrBuilder

getDefaultInstanceForType()

public Intent.Message getDefaultInstanceForType()
Returns
TypeDescription
Intent.Message

getImage()

public Intent.Message.Image getImage()

The image response.

.google.cloud.dialogflow.v2.Intent.Message.Image image = 2;

Returns
TypeDescription
Intent.Message.Image

The image.

getImageOrBuilder()

public Intent.Message.ImageOrBuilder getImageOrBuilder()

The image response.

.google.cloud.dialogflow.v2.Intent.Message.Image image = 2;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Intent.Message.MediaContentOrBuilder

getMessageCase()

public Intent.Message.MessageCase getMessageCase()
Returns
TypeDescription
Intent.Message.MessageCase

getParserForType()

public Parser<Intent.Message> getParserForType()
Returns
TypeDescription
Parser<Message>
Overrides

getPayload()

public Struct getPayload()

A custom platform-specific response.

.google.protobuf.Struct payload = 5;

Returns
TypeDescription
Struct

The payload.

getPayloadOrBuilder()

public StructOrBuilder getPayloadOrBuilder()

A custom platform-specific response.

.google.protobuf.Struct payload = 5;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Intent.Message.QuickRepliesOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Intent.Message.TableCardOrBuilder

getText()

public Intent.Message.Text getText()

The text response.

.google.cloud.dialogflow.v2.Intent.Message.Text text = 1;

Returns
TypeDescription
Intent.Message.Text

The text.

getTextOrBuilder()

public Intent.Message.TextOrBuilder getTextOrBuilder()

The text response.

.google.cloud.dialogflow.v2.Intent.Message.Text text = 1;

Returns
TypeDescription
Intent.Message.TextOrBuilder

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasBasicCard()

public boolean hasBasicCard()

The basic card response for Actions on Google.

.google.cloud.dialogflow.v2.Intent.Message.BasicCard basic_card = 8;

Returns
TypeDescription
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
TypeDescription
boolean

Whether the browseCarouselCard field is set.

hasCard()

public boolean hasCard()

The card response.

.google.cloud.dialogflow.v2.Intent.Message.Card card = 4;

Returns
TypeDescription
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
TypeDescription
boolean

Whether the carouselSelect field is set.

hasImage()

public boolean hasImage()

The image response.

.google.cloud.dialogflow.v2.Intent.Message.Image image = 2;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the mediaContent field is set.

hasPayload()

public boolean hasPayload()

A custom platform-specific response.

.google.protobuf.Struct payload = 5;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the tableCard field is set.

hasText()

public boolean hasText()

The text response.

.google.cloud.dialogflow.v2.Intent.Message.Text text = 1;

Returns
TypeDescription
boolean

Whether the text field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Intent.Message.Builder newBuilderForType()
Returns
TypeDescription
Intent.Message.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Intent.Message.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Intent.Message.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Intent.Message.Builder toBuilder()
Returns
TypeDescription
Intent.Message.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException