public static enum Message.Role extends Enum<Message.Role> implements BmcEnum
Indicates who is writing the current chat message.
Enum Constant and Description |
---|
Assistant |
System |
UnknownEnumValue
This value is used if a service returns a value for this enum that is not recognized by
this version of the SDK.
|
User |
Modifier and Type | Method and Description |
---|---|
static Message.Role |
create(String key) |
String |
getValue() |
static Message.Role |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Message.Role[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Message.Role System
public static final Message.Role User
public static final Message.Role Assistant
public static final Message.Role UnknownEnumValue
public static Message.Role[] values()
for (Message.Role c : Message.Role.values()) System.out.println(c);
public static Message.Role valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static Message.Role create(String key)
Copyright © 2016–2024. All rights reserved.