KnowledgeBaseRetrievalResponse Class
- java.
lang. Object - com.
azure. search. documents. knowledgebases. models. KnowledgeBaseRetrievalResponse
- com.
Implements
public final class KnowledgeBaseRetrievalResponse
implements JsonSerializable<KnowledgeBaseRetrievalResponse>
The output contract for the retrieval response.
Constructor Summary
| Constructor | Description |
|---|---|
| KnowledgeBaseRetrievalResponse() |
Creates an instance of Knowledge |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Knowledge |
fromJson(JsonReader jsonReader)
Reads an instance of Knowledge |
|
List<Knowledge |
getActivity()
Get the activity property: The activity records for tracking progress and billing implications. |
|
List<Knowledge |
getReferences()
Get the references property: The references for the retrieval data used in the response. |
|
List<Knowledge |
getResponse()
Get the response property: The response property. |
|
Knowledge |
setActivity(List<KnowledgeBaseActivityRecord> activity)
Set the activity property: The activity records for tracking progress and billing implications. |
|
Knowledge |
setReferences(List<KnowledgeBaseReference> references)
Set the references property: The references for the retrieval data used in the response. |
|
Knowledge |
setResponse(List<KnowledgeBaseMessage> response)
Set the response property: The response property. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
KnowledgeBaseRetrievalResponse
public KnowledgeBaseRetrievalResponse()
Creates an instance of KnowledgeBaseRetrievalResponse class.
Method Details
fromJson
public static KnowledgeBaseRetrievalResponse fromJson(JsonReader jsonReader)
Reads an instance of KnowledgeBaseRetrievalResponse from the JsonReader.
Parameters:
Returns:
Throws:
getActivity
public List<KnowledgeBaseActivityRecord> getActivity()
Get the activity property: The activity records for tracking progress and billing implications.
Returns:
getReferences
public List<KnowledgeBaseReference> getReferences()
Get the references property: The references for the retrieval data used in the response.
Returns:
getResponse
public List<KnowledgeBaseMessage> getResponse()
Get the response property: The response property.
Returns:
setActivity
public KnowledgeBaseRetrievalResponse setActivity(List<KnowledgeBaseActivityRecord> activity)
Set the activity property: The activity records for tracking progress and billing implications.
Parameters:
Returns:
setReferences
public KnowledgeBaseRetrievalResponse setReferences(List<KnowledgeBaseReference> references)
Set the references property: The references for the retrieval data used in the response.
Parameters:
Returns:
setResponse
public KnowledgeBaseRetrievalResponse setResponse(List<KnowledgeBaseMessage> response)
Set the response property: The response property.
Parameters:
Returns: