Interface QnAMakerClient
-
- All Known Implementing Classes:
QnAMakerClientImpl
public interface QnAMakerClientThe interface for QnAMakerClient class.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringacceptLanguage()Gets Gets or sets the preferred language for the response..Alterationsalterations()Gets the Alterations object to access its operations.Stringendpoint()Gets Supported Cognitive Services endpoint (e.g., https://< qnamaker-resource-name >.api.cognitiveservices.azure.com)..EndpointKeysendpointKeys()Gets the EndpointKeys object to access its operations.EndpointSettingsendpointSettings()Gets the EndpointSettings object to access its operations.booleangenerateClientRequestId()Gets When set to true a unique x-ms-client-request-id value is generated and included in each request.com.microsoft.azure.AzureClientgetAzureClient()Gets theAzureClientused for long running operations.Knowledgebasesknowledgebases()Gets the Knowledgebases object to access its operations.intlongRunningOperationRetryTimeout()Gets Gets or sets the retry timeout in seconds for Long Running Operations.Operationsoperations()Gets the Operations object to access its operations.com.microsoft.rest.RestClientrestClient()Gets the REST client.StringuserAgent()Gets the User-Agent header for the client.QnAMakerClientwithAcceptLanguage(String acceptLanguage)Sets Gets or sets the preferred language for the response..QnAMakerClientwithEndpoint(String endpoint)Sets Supported Cognitive Services endpoint (e.g., https://< qnamaker-resource-name >.api.cognitiveservices.azure.com)..QnAMakerClientwithGenerateClientRequestId(boolean generateClientRequestId)Sets When set to true a unique x-ms-client-request-id value is generated and included in each request.QnAMakerClientwithLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout)Sets Gets or sets the retry timeout in seconds for Long Running Operations.
-
-
-
Method Detail
-
restClient
com.microsoft.rest.RestClient restClient()
Gets the REST client.- Returns:
- the
RestClientobject.
-
getAzureClient
com.microsoft.azure.AzureClient getAzureClient()
Gets theAzureClientused for long running operations.- Returns:
- the azure client;
-
userAgent
String userAgent()
Gets the User-Agent header for the client.- Returns:
- the user agent string.
-
endpoint
String endpoint()
Gets Supported Cognitive Services endpoint (e.g., https://< qnamaker-resource-name >.api.cognitiveservices.azure.com)..- Returns:
- the endpoint value.
-
withEndpoint
QnAMakerClient withEndpoint(String endpoint)
Sets Supported Cognitive Services endpoint (e.g., https://< qnamaker-resource-name >.api.cognitiveservices.azure.com)..- Parameters:
endpoint- the endpoint value.- Returns:
- the service client itself
-
acceptLanguage
String acceptLanguage()
Gets Gets or sets the preferred language for the response..- Returns:
- the acceptLanguage value.
-
withAcceptLanguage
QnAMakerClient withAcceptLanguage(String acceptLanguage)
Sets Gets or sets the preferred language for the response..- Parameters:
acceptLanguage- the acceptLanguage value.- Returns:
- the service client itself
-
longRunningOperationRetryTimeout
int longRunningOperationRetryTimeout()
Gets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30..- Returns:
- the longRunningOperationRetryTimeout value.
-
withLongRunningOperationRetryTimeout
QnAMakerClient withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout)
Sets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30..- Parameters:
longRunningOperationRetryTimeout- the longRunningOperationRetryTimeout value.- Returns:
- the service client itself
-
generateClientRequestId
boolean generateClientRequestId()
Gets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true..- Returns:
- the generateClientRequestId value.
-
withGenerateClientRequestId
QnAMakerClient withGenerateClientRequestId(boolean generateClientRequestId)
Sets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true..- Parameters:
generateClientRequestId- the generateClientRequestId value.- Returns:
- the service client itself
-
endpointSettings
EndpointSettings endpointSettings()
Gets the EndpointSettings object to access its operations.- Returns:
- the EndpointSettings object.
-
endpointKeys
EndpointKeys endpointKeys()
Gets the EndpointKeys object to access its operations.- Returns:
- the EndpointKeys object.
-
alterations
Alterations alterations()
Gets the Alterations object to access its operations.- Returns:
- the Alterations object.
-
knowledgebases
Knowledgebases knowledgebases()
Gets the Knowledgebases object to access its operations.- Returns:
- the Knowledgebases object.
-
operations
Operations operations()
Gets the Operations object to access its operations.- Returns:
- the Operations object.
-
-