CustomVisionPredictionClient Interface

public interface CustomVisionPredictionClient

The interface for CustomVisionPredictionClient class.

Method Summary

Modifier and Type Method and Description
String acceptLanguage()

Gets Gets or sets the preferred language for the response..

String apiKey()

Gets API key..

String endpoint()

Gets Supported Cognitive Services endpoints..

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.

CustomVisionPredictionClient withAcceptLanguage(String acceptLanguage)

Sets Gets or sets the preferred language for the response..

CustomVisionPredictionClient withApiKey(String apiKey)

Sets API key..

CustomVisionPredictionClient withEndpoint(String endpoint)

Sets Supported Cognitive Services endpoints..

CustomVisionPredictionClient 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..

CustomVisionPredictionClient 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:

the acceptLanguage value.

apiKey

public String apiKey()

Gets API key..

Returns:

the apiKey value.

endpoint

public String endpoint()

Gets Supported Cognitive Services endpoints..

Returns:

the endpoint value.

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:

the generateClientRequestId value.

getAzureClient

public AzureClient getAzureClient()

Gets the AzureClient used for long running operations.

Returns:

the azure client;

longRunningOperationRetryTimeout

public int longRunningOperationRetryTimeout()

Gets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30..

Returns:

the longRunningOperationRetryTimeout value.

predictions

public Predictions predictions()

Gets the Predictions object to access its operations.

Returns:

the Predictions object.

restClient

public RestClient restClient()

Gets the REST client.

Returns:

the RestClient object.

userAgent

public String userAgent()

Gets the User-Agent header for the client.

Returns:

the user agent string.

withAcceptLanguage

public CustomVisionPredictionClient withAcceptLanguage(String acceptLanguage)

Sets Gets or sets the preferred language for the response..

Parameters:

acceptLanguage - the acceptLanguage value.

Returns:

the service client itself

withApiKey

public CustomVisionPredictionClient withApiKey(String apiKey)

Sets API key..

Parameters:

apiKey - the apiKey value.

Returns:

the service client itself

withEndpoint

public CustomVisionPredictionClient withEndpoint(String endpoint)

Sets Supported Cognitive Services endpoints..

Parameters:

endpoint - the endpoint value.

Returns:

the service client itself

withGenerateClientRequestId

public CustomVisionPredictionClient 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

withLongRunningOperationRetryTimeout

public CustomVisionPredictionClient 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

Applies to