Share via


KnowledgeBaseMessageContent Class

  • java.lang.Object
    • com.azure.search.documents.knowledgebases.models.KnowledgeBaseMessageContent

Implements

public class KnowledgeBaseMessageContent
implements JsonSerializable<KnowledgeBaseMessageContent>

Specifies the type of the message content.

Constructor Summary

Constructor Description
KnowledgeBaseMessageContent()

Creates an instance of KnowledgeBaseMessageContent class.

Method Summary

Modifier and Type Method and Description
static KnowledgeBaseMessageContent fromJson(JsonReader jsonReader)

Reads an instance of KnowledgeBaseMessageContent from the JsonReader.

KnowledgeBaseMessageContentType getType()

Get the type property: The type of the message.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

KnowledgeBaseMessageContent

public KnowledgeBaseMessageContent()

Creates an instance of KnowledgeBaseMessageContent class.

Method Details

fromJson

public static KnowledgeBaseMessageContent fromJson(JsonReader jsonReader)

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.

getType

public KnowledgeBaseMessageContentType getType()

Get the type property: The type of the message.

Returns:

the type value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to