LuisRuntimeAPI Interface
public interface LuisRuntimeAPI
The interface for LuisRuntimeAPI class.
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
acceptLanguage()
Gets Gets or sets the preferred language for the response.. |
String |
endpoint()
Gets Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus.api.cognitive.microsoft.com).. |
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.. |
AzureClient |
getAzureClient()
Gets the AzureClient used for long running operations. |
int |
longRunningOperationRetryTimeout()
Gets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.. |
Predictions |
predictions()
Gets the Predictions object to access its operations. |
RestClient |
restClient()
Gets the REST client. |
String |
userAgent()
Gets the User-Agent header for the client. |
Luis |
withAcceptLanguage(String acceptLanguage)
Sets Gets or sets the preferred language for the response.. |
Luis |
withEndpoint(String endpoint)
Sets Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus.api.cognitive.microsoft.com).. |
Luis |
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.. |
Luis |
withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout)
Sets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.. |
Method Details
acceptLanguage
public String acceptLanguage()
Gets Gets or sets the preferred language for the response..
Returns:
endpoint
public String endpoint()
Gets Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus.api.cognitive.microsoft.com)..
Returns:
generateClientRequestId
public 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:
getAzureClient
public AzureClient getAzureClient()
Gets the AzureClient used for long running operations.
Returns:
longRunningOperationRetryTimeout
public int longRunningOperationRetryTimeout()
Gets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30..
Returns:
predictions
public Predictions predictions()
Gets the Predictions object to access its operations.
Returns:
restClient
public RestClient restClient()
Gets the REST client.
Returns:
userAgent
public String userAgent()
Gets the User-Agent header for the client.
Returns:
withAcceptLanguage
public LuisRuntimeAPI withAcceptLanguage(String acceptLanguage)
Sets Gets or sets the preferred language for the response..
Parameters:
Returns:
withEndpoint
public LuisRuntimeAPI withEndpoint(String endpoint)
Sets Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus.api.cognitive.microsoft.com)..
Parameters:
Returns:
withGenerateClientRequestId
public LuisRuntimeAPI 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:
Returns:
withLongRunningOperationRetryTimeout
public LuisRuntimeAPI withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout)
Sets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30..
Parameters:
Returns:
Applies to
Azure SDK for Java