Enum PartType

java.lang.Object
java.lang.Enum<PartType>
uno.anahata.ai.swing.render.PartType
All Implemented Interfaces:
Serializable, Comparable<PartType>, java.lang.constant.Constable

public enum PartType extends Enum<PartType>
  • Enum Constant Details

    • TEXT

      public static final PartType TEXT
    • FUNCTION_CALL

      public static final PartType FUNCTION_CALL
    • FUNCTION_RESPONSE

      public static final PartType FUNCTION_RESPONSE
    • BLOB

      public static final PartType BLOB
    • CODE_EXECUTION_RESULT

      public static final PartType CODE_EXECUTION_RESULT
    • EXECUTABLE_CODE

      public static final PartType EXECUTABLE_CODE
    • UNKNOWN

      public static final PartType UNKNOWN
  • Method Details

    • values

      public static PartType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static PartType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • from

      public static PartType from(com.google.genai.types.Part part)