Class KnowledgeBaseMessageContent

java.lang.Object
com.azure.search.documents.knowledgebases.models.KnowledgeBaseMessageContent
All Implemented Interfaces:
com.azure.json.JsonSerializable<KnowledgeBaseMessageContent>
Direct Known Subclasses:
KnowledgeBaseMessageImageContent, KnowledgeBaseMessageTextContent

public class KnowledgeBaseMessageContent extends Object implements com.azure.json.JsonSerializable<KnowledgeBaseMessageContent>
Specifies the type of the message content.
  • Constructor Details

    • KnowledgeBaseMessageContent

      public KnowledgeBaseMessageContent()
      Creates an instance of KnowledgeBaseMessageContent class.
  • Method Details

    • getType

      Get the type property: The type of the message.
      Returns:
      the type value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<KnowledgeBaseMessageContent>
      Throws:
      IOException
    • fromJson

      public static KnowledgeBaseMessageContent fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of KnowledgeBaseMessageContent from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of KnowledgeBaseMessageContent if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the KnowledgeBaseMessageContent.