QnAMakerEndpoint Class
- java.
lang. Object - com.
microsoft. bot. ai. qna. QnAMakerEndpoint
- com.
public class QnAMakerEndpoint
Defines an endpoint used to connect to a QnA Maker Knowledge base.
Constructor Summary
| Constructor | Description |
|---|---|
| QnAMakerEndpoint() |
Initializes a new instance of the QnAMakerEndpoint class. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| java.lang.String |
getEndpointKey()
Gets the endpoint key for the knowledge base. |
| java.lang.String |
getHost()
Gets the host path. |
| java.lang.String |
getKnowledgeBaseId()
Gets the knowledge base ID. |
| void |
setEndpointKey(String withEndpointKey)
Sets the endpoint key for the knowledge base. |
| void |
setHost(String withHost)
Sets the host path. |
| void |
setKnowledgeBaseId(String withKnowledgeBaseId)
Sets the knowledge base ID. |
Methods inherited from java.lang.Object
Constructor Details
QnAMakerEndpoint
public QnAMakerEndpoint()
Initializes a new instance of the QnAMakerEndpoint class.
Method Details
getEndpointKey
public String getEndpointKey()
Gets the endpoint key for the knowledge base.
Returns:
getHost
public String getHost()
Gets the host path. For example "https://westus.api.cognitive.microsoft.com/qnamaker/v2.0".
Returns:
getKnowledgeBaseId
public String getKnowledgeBaseId()
Gets the knowledge base ID.
Returns:
setEndpointKey
public void setEndpointKey(String withEndpointKey)
Sets the endpoint key for the knowledge base.
Parameters:
setHost
public void setHost(String withHost)
Sets the host path. For example "https://westus.api.cognitive.microsoft.com/qnamaker/v2.0".
Parameters:
setKnowledgeBaseId
public void setKnowledgeBaseId(String withKnowledgeBaseId)
Sets the knowledge base ID.
Parameters: