Class KnowledgeBaseWebReference
java.lang.Object
com.azure.search.documents.knowledgebases.models.KnowledgeBaseReference
com.azure.search.documents.knowledgebases.models.KnowledgeBaseWebReference
- All Implemented Interfaces:
com.azure.json.JsonSerializable<KnowledgeBaseReference>
Represents a web document reference.
-
Constructor Summary
ConstructorsConstructorDescriptionKnowledgeBaseWebReference(String id, int activitySource) Creates an instance of KnowledgeBaseWebReference class. -
Method Summary
Modifier and TypeMethodDescriptionstatic KnowledgeBaseWebReferencefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of KnowledgeBaseWebReference from the JsonReader.getTitle()Get the title property: The title of the web document.getType()Get the type property: The type of the reference.getUrl()Get the url property: The url the reference data originated from.setRerankerScore(Float rerankerScore) Set the rerankerScore property: The reranker score for the document reference.setSourceData(Map<String, Object> sourceData) Set the sourceData property: Dictionary of <any>.Set the title property: The title of the web document.Set the url property: The url the reference data originated from.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class KnowledgeBaseReference
getActivitySource, getId, getRerankerScore, getSourceDataMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
KnowledgeBaseWebReference
Creates an instance of KnowledgeBaseWebReference class.- Parameters:
id- the id value to set.activitySource- the activitySource value to set.
-
-
Method Details
-
getType
Get the type property: The type of the reference.- Overrides:
getTypein classKnowledgeBaseReference- Returns:
- the type value.
-
getUrl
Get the url property: The url the reference data originated from.- Returns:
- the url value.
-
setUrl
Set the url property: The url the reference data originated from.- Parameters:
url- the url value to set.- Returns:
- the KnowledgeBaseWebReference object itself.
-
getTitle
Get the title property: The title of the web document.- Returns:
- the title value.
-
setTitle
Set the title property: The title of the web document.- Parameters:
title- the title value to set.- Returns:
- the KnowledgeBaseWebReference object itself.
-
setSourceData
Set the sourceData property: Dictionary of <any>.- Overrides:
setSourceDatain classKnowledgeBaseReference- Parameters:
sourceData- the sourceData value to set.- Returns:
- the KnowledgeBaseReference object itself.
-
setRerankerScore
Set the rerankerScore property: The reranker score for the document reference.- Overrides:
setRerankerScorein classKnowledgeBaseReference- Parameters:
rerankerScore- the rerankerScore value to set.- Returns:
- the KnowledgeBaseReference object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<KnowledgeBaseReference>- Overrides:
toJsonin classKnowledgeBaseReference- Throws:
IOException
-
fromJson
public static KnowledgeBaseWebReference fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of KnowledgeBaseWebReference from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of KnowledgeBaseWebReference if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the KnowledgeBaseWebReference.
-