Share via


KnowledgeSource Class

  • java.lang.Object
    • com.azure.ai.contentunderstanding.models.KnowledgeSource

Implements

public class KnowledgeSource
implements JsonSerializable<KnowledgeSource>

Knowledge source.

Constructor Summary

Constructor Description
KnowledgeSource()

Creates an instance of KnowledgeSource class.

Method Summary

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

Reads an instance of KnowledgeSource from the JsonReader.

KnowledgeSourceKind getKind()

Get the kind property: The kind of knowledge source.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

KnowledgeSource

public KnowledgeSource()

Creates an instance of KnowledgeSource class.

Method Details

fromJson

public static KnowledgeSource fromJson(JsonReader jsonReader)

Reads an instance of KnowledgeSource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of KnowledgeSource 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 KnowledgeSource.

getKind

public KnowledgeSourceKind getKind()

Get the kind property: The kind of knowledge source.

Returns:

the kind value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to