@Generated(value="jsonschema2pojo") public static enum Message.ChatRole extends Enum<Message.ChatRole>
An enumeration.
| Modifier and Type | Method and Description |
|---|---|
static Message.ChatRole |
fromValue(String value) |
String |
toString() |
String |
value() |
static Message.ChatRole |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Message.ChatRole[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Message.ChatRole SYSTEM
public static final Message.ChatRole ASSISTANT
public static final Message.ChatRole USER
public static final Message.ChatRole FUNCTION
public static Message.ChatRole[] values()
for (Message.ChatRole c : Message.ChatRole.values()) System.out.println(c);
public static Message.ChatRole 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 String toString()
toString in class Enum<Message.ChatRole>public String value()
public static Message.ChatRole fromValue(String value)
Copyright © 2025. All rights reserved.