你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ContentModeratorClient Interface
public interface ContentModeratorClient
The interface for ContentModeratorClient class.
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
acceptLanguage()
Gets Gets or sets the preferred language for the response.. |
Azure |
baseUrl()
Gets Supported Azure regions for Content Moderator endpoints. Possible values include: 'westus.api.cognitive.microsoft.com', 'westus2.api.cognitive.microsoft.com', 'eastus.api.cognitive.microsoft.com', 'eastus2.api.cognitive.microsoft.com', 'westcentralus.api.cognitive.microsoft.com', 'southcentralus.api.cognitive.microsoft.com', 'westeurope.api.cognitive.microsoft.com', 'northeurope.api.cognitive.microsoft.com', 'southeastasia.api.cognitive.microsoft.com', 'eastasia.api.cognitive.microsoft.com', 'australiaeast.api.cognitive.microsoft.com', 'brazilsouth.api.cognitive.microsoft.com', 'contentmoderatortest.azure-api.net'. |
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. |
Image |
imageModerations()
Gets the ImageModerations object to access its operations. |
List |
listManagementImageLists()
Gets the ListManagementImageLists object to access its operations. |
List |
listManagementImages()
Gets the ListManagementImages object to access its operations. |
List |
listManagementTermLists()
Gets the ListManagementTermLists object to access its operations. |
List |
listManagementTerms()
Gets the ListManagementTerms object to access its operations. |
int |
longRunningOperationRetryTimeout()
Gets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.. |
RestClient |
restClient()
Gets the REST client. |
Reviews |
reviews()
Gets the Reviews object to access its operations. |
Text |
textModerations()
Gets the TextModerations object to access its operations. |
String |
userAgent()
Gets the User-Agent header for the client. |
Content |
withAcceptLanguage(String acceptLanguage)
Sets Gets or sets the preferred language for the response.. |
Content |
withBaseUrl(AzureRegionBaseUrl baseUrl)
Sets Supported Azure regions for Content Moderator endpoints. Possible values include: 'westus.api.cognitive.microsoft.com', 'westus2.api.cognitive.microsoft.com', 'eastus.api.cognitive.microsoft.com', 'eastus2.api.cognitive.microsoft.com', 'westcentralus.api.cognitive.microsoft.com', 'southcentralus.api.cognitive.microsoft.com', 'westeurope.api.cognitive.microsoft.com', 'northeurope.api.cognitive.microsoft.com', 'southeastasia.api.cognitive.microsoft.com', 'eastasia.api.cognitive.microsoft.com', 'australiaeast.api.cognitive.microsoft.com', 'brazilsouth.api.cognitive.microsoft.com', 'contentmoderatortest.azure-api.net'. |
Content |
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.. |
Content |
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:
baseUrl
public AzureRegionBaseUrl baseUrl()
Gets Supported Azure regions for Content Moderator endpoints. Possible values include: 'westus.api.cognitive.microsoft.com', 'westus2.api.cognitive.microsoft.com', 'eastus.api.cognitive.microsoft.com', 'eastus2.api.cognitive.microsoft.com', 'westcentralus.api.cognitive.microsoft.com', 'southcentralus.api.cognitive.microsoft.com', 'westeurope.api.cognitive.microsoft.com', 'northeurope.api.cognitive.microsoft.com', 'southeastasia.api.cognitive.microsoft.com', 'eastasia.api.cognitive.microsoft.com', 'australiaeast.api.cognitive.microsoft.com', 'brazilsouth.api.cognitive.microsoft.com', 'contentmoderatortest.azure-api.net'.
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:
imageModerations
public ImageModerations imageModerations()
Gets the ImageModerations object to access its operations.
Returns:
listManagementImageLists
public ListManagementImageLists listManagementImageLists()
Gets the ListManagementImageLists object to access its operations.
Returns:
listManagementImages
public ListManagementImages listManagementImages()
Gets the ListManagementImages object to access its operations.
Returns:
listManagementTermLists
public ListManagementTermLists listManagementTermLists()
Gets the ListManagementTermLists object to access its operations.
Returns:
listManagementTerms
public ListManagementTerms listManagementTerms()
Gets the ListManagementTerms object to access its operations.
Returns:
longRunningOperationRetryTimeout
public int longRunningOperationRetryTimeout()
Gets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30..
Returns:
restClient
public RestClient restClient()
Gets the REST client.
Returns:
reviews
public Reviews reviews()
Gets the Reviews object to access its operations.
Returns:
textModerations
public TextModerations textModerations()
Gets the TextModerations object to access its operations.
Returns:
userAgent
public String userAgent()
Gets the User-Agent header for the client.
Returns:
withAcceptLanguage
public ContentModeratorClient withAcceptLanguage(String acceptLanguage)
Sets Gets or sets the preferred language for the response..
Parameters:
Returns:
withBaseUrl
public ContentModeratorClient withBaseUrl(AzureRegionBaseUrl baseUrl)
Sets Supported Azure regions for Content Moderator endpoints. Possible values include: 'westus.api.cognitive.microsoft.com', 'westus2.api.cognitive.microsoft.com', 'eastus.api.cognitive.microsoft.com', 'eastus2.api.cognitive.microsoft.com', 'westcentralus.api.cognitive.microsoft.com', 'southcentralus.api.cognitive.microsoft.com', 'westeurope.api.cognitive.microsoft.com', 'northeurope.api.cognitive.microsoft.com', 'southeastasia.api.cognitive.microsoft.com', 'eastasia.api.cognitive.microsoft.com', 'australiaeast.api.cognitive.microsoft.com', 'brazilsouth.api.cognitive.microsoft.com', 'contentmoderatortest.azure-api.net'.
Parameters:
Returns:
withGenerateClientRequestId
public ContentModeratorClient 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 ContentModeratorClient withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout)
Sets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30..
Parameters:
Returns: