Class ChatMessageProxy


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               date="2024-03-29T12:34:27.506198300-05:00[America/Chicago]",
               comments="Generator version: 7.4.0")
    public class ChatMessageProxy
    extends Object
    ChatMessageProxy
    • Constructor Detail

      • ChatMessageProxy

        public ChatMessageProxy()
    • Method Detail

      • getContent

        @Nonnull
        @NotNull
        public @NotNull String getContent()
        Get content
        Returns:
        content
      • setContent

        public void setContent​(String content)
      • getRole

        @Nonnull
        @NotNull
        public @NotNull String getRole()
        Get role
        Returns:
        role
      • setRole

        public void setRole​(String role)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonElement

        public static void validateJsonElement​(com.google.gson.JsonElement jsonElement)
                                        throws IOException
        Validates the JSON Element and throws an exception if issues found
        Parameters:
        jsonElement - JSON Element
        Throws:
        IOException - if the JSON Element is invalid with respect to ChatMessageProxy
      • fromJson

        public static ChatMessageProxy fromJson​(String jsonString)
                                         throws IOException
        Create an instance of ChatMessageProxy given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of ChatMessageProxy
        Throws:
        IOException - if the JSON string is invalid with respect to ChatMessageProxy
      • toJson

        public String toJson()
        Convert an instance of ChatMessageProxy to an JSON string
        Returns:
        JSON string