public static enum Intent.Message.Platform extends java.lang.Enum<Intent.Message.Platform> implements ProtocolMessageEnum
Represents different platforms that a rich message can be intended for.Protobuf enum
google.cloud.dialogflow.v2beta1.Intent.Message.Platform
Enum Constant and Description |
---|
ACTIONS_ON_GOOGLE
Actions on Google.
|
FACEBOOK
Facebook.
|
KIK
Kik.
|
LINE
Line.
|
PLATFORM_UNSPECIFIED
Not specified.
|
SKYPE
Skype.
|
SLACK
Slack.
|
TELEGRAM
Telegram.
|
UNRECOGNIZED |
VIBER
Viber.
|
Modifier and Type | Field and Description |
---|---|
static int |
ACTIONS_ON_GOOGLE_VALUE
Actions on Google.
|
static int |
FACEBOOK_VALUE
Facebook.
|
static int |
KIK_VALUE
Kik.
|
static int |
LINE_VALUE
Line.
|
static int |
PLATFORM_UNSPECIFIED_VALUE
Not specified.
|
static int |
SKYPE_VALUE
Skype.
|
static int |
SLACK_VALUE
Slack.
|
static int |
TELEGRAM_VALUE
Telegram.
|
static int |
VIBER_VALUE
Viber.
|
Modifier and Type | Method and Description |
---|---|
static Intent.Message.Platform |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<Intent.Message.Platform> |
internalGetValueMap() |
static Intent.Message.Platform |
valueOf(Descriptors.EnumValueDescriptor desc) |
static Intent.Message.Platform |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Intent.Message.Platform |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Intent.Message.Platform[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Intent.Message.Platform PLATFORM_UNSPECIFIED
Not specified.
PLATFORM_UNSPECIFIED = 0;
public static final Intent.Message.Platform FACEBOOK
Facebook.
FACEBOOK = 1;
public static final Intent.Message.Platform SLACK
Slack.
SLACK = 2;
public static final Intent.Message.Platform TELEGRAM
Telegram.
TELEGRAM = 3;
public static final Intent.Message.Platform KIK
Kik.
KIK = 4;
public static final Intent.Message.Platform SKYPE
Skype.
SKYPE = 5;
public static final Intent.Message.Platform LINE
Line.
LINE = 6;
public static final Intent.Message.Platform VIBER
Viber.
VIBER = 7;
public static final Intent.Message.Platform ACTIONS_ON_GOOGLE
Actions on Google. When using Actions on Google, you can choose one of the specific Intent.Message types that mention support for Actions on Google, or you can use the advanced Intent.Message.payload field. The payload field provides access to AoG features not available in the specific message types. If using the Intent.Message.payload field, it should have a structure similar to the JSON message shown here. For more information, see [Actions on Google Webhook Format](https://developers.google.com/actions/dialogflow/webhook) <pre>{ "expectUserResponse": true, "isSsml": false, "noInputPrompts": [], "richResponse": { "items": [ { "simpleResponse": { "displayText": "hi", "textToSpeech": "hello" } } ], "suggestions": [ { "title": "Say this" }, { "title": "or this" } ] }, "systemIntent": { "data": { "@type": "type.googleapis.com/google.actions.v2.OptionValueSpec", "listSelect": { "items": [ { "optionInfo": { "key": "key1", "synonyms": [ "key one" ] }, "title": "must not be empty, but unique" }, { "optionInfo": { "key": "key2", "synonyms": [ "key two" ] }, "title": "must not be empty, but unique" } ] } }, "intent": "actions.intent.OPTION" } }</pre>
ACTIONS_ON_GOOGLE = 8;
public static final Intent.Message.Platform UNRECOGNIZED
public static final int PLATFORM_UNSPECIFIED_VALUE
Not specified.
PLATFORM_UNSPECIFIED = 0;
public static final int FACEBOOK_VALUE
Facebook.
FACEBOOK = 1;
public static final int SLACK_VALUE
Slack.
SLACK = 2;
public static final int TELEGRAM_VALUE
Telegram.
TELEGRAM = 3;
public static final int KIK_VALUE
Kik.
KIK = 4;
public static final int SKYPE_VALUE
Skype.
SKYPE = 5;
public static final int LINE_VALUE
Line.
LINE = 6;
public static final int VIBER_VALUE
Viber.
VIBER = 7;
public static final int ACTIONS_ON_GOOGLE_VALUE
Actions on Google. When using Actions on Google, you can choose one of the specific Intent.Message types that mention support for Actions on Google, or you can use the advanced Intent.Message.payload field. The payload field provides access to AoG features not available in the specific message types. If using the Intent.Message.payload field, it should have a structure similar to the JSON message shown here. For more information, see [Actions on Google Webhook Format](https://developers.google.com/actions/dialogflow/webhook) <pre>{ "expectUserResponse": true, "isSsml": false, "noInputPrompts": [], "richResponse": { "items": [ { "simpleResponse": { "displayText": "hi", "textToSpeech": "hello" } } ], "suggestions": [ { "title": "Say this" }, { "title": "or this" } ] }, "systemIntent": { "data": { "@type": "type.googleapis.com/google.actions.v2.OptionValueSpec", "listSelect": { "items": [ { "optionInfo": { "key": "key1", "synonyms": [ "key one" ] }, "title": "must not be empty, but unique" }, { "optionInfo": { "key": "key2", "synonyms": [ "key two" ] }, "title": "must not be empty, but unique" } ] } }, "intent": "actions.intent.OPTION" } }</pre>
ACTIONS_ON_GOOGLE = 8;
public static Intent.Message.Platform[] values()
for (Intent.Message.Platform c : Intent.Message.Platform.values()) System.out.println(c);
public static Intent.Message.Platform valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static Intent.Message.Platform valueOf(int value)
forNumber(int)
instead.public static Intent.Message.Platform forNumber(int value)
public static Internal.EnumLiteMap<Intent.Message.Platform> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static Intent.Message.Platform valueOf(Descriptors.EnumValueDescriptor desc)