你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

SearchOptionalParameter 类

  • java.lang.Object
    • com.microsoft.azure.cognitiveservices.search.websearch.models.SearchOptionalParameter

public class SearchOptionalParameter

SearchOptionalParameter 模型。

方法摘要

修饰符和类型 方法和描述
String acceptLanguage()

获取 acceptLanguage 值。

Integer answerCount()

获取 answerCount 值。

String clientId()

获取 clientId 值。

String clientIp()

获取 clientIp 值。

Integer count()

获取计数值。

String countryCode()

获取 countryCode 值。

Freshness freshness()

获取新鲜度值。

String location()

获取位置值。

String market()

获取市场价值。

Integer offset()

获取偏移量值。

String pragma()

获取杂注值。

List<AnswerType> promote()

获取提升值。

List<AnswerType> responseFilter()

获取 responseFilter 值。

SafeSearch safeSearch()

获取 safeSearch 值。

String setLang()

获取 setLang 值。

Boolean textDecorations()

获取 textDecorations 值。

TextFormat textFormat()

获取 textFormat 值。

String userAgent()

获取 userAgent 值。

SearchOptionalParameter withAcceptLanguage(String acceptLanguage)

设置 acceptLanguage 值。

SearchOptionalParameter withAnswerCount(Integer answerCount)

设置 answerCount 值。

SearchOptionalParameter withClientId(String clientId)

设置 clientId 值。

SearchOptionalParameter withClientIp(String clientIp)

设置 clientIp 值。

SearchOptionalParameter withCount(Integer count)

设置计数值。

SearchOptionalParameter withCountryCode(String countryCode)

设置 countryCode 值。

SearchOptionalParameter withFreshness(Freshness freshness)

设置新鲜度值。

SearchOptionalParameter withLocation(String location)

设置位置值。

SearchOptionalParameter withMarket(String market)

设置市场值。

SearchOptionalParameter withOffset(Integer offset)

设置偏移值。

SearchOptionalParameter withPragma(String pragma)

设置杂注值。

SearchOptionalParameter withPromote(List<AnswerType> promote)

设置升级值。

SearchOptionalParameter withResponseFilter(List<AnswerType> responseFilter)

设置 responseFilter 值。

SearchOptionalParameter withSafeSearch(SafeSearch safeSearch)

设置 safeSearch 值。

SearchOptionalParameter withSetLang(String setLang)

设置 setLang 值。

SearchOptionalParameter withTextDecorations(Boolean textDecorations)

设置 textDecorations 值。

SearchOptionalParameter withTextFormat(TextFormat textFormat)

设置 textFormat 值。

SearchOptionalParameter withUserAgent(String userAgent)

设置 userAgent 值。

方法详细信息

acceptLanguage

public String acceptLanguage()

获取 acceptLanguage 值。

Returns:

acceptLanguage 值

answerCount

public Integer answerCount()

获取 answerCount 值。

Returns:

answerCount 值

clientId

public String clientId()

获取 clientId 值。

Returns:

clientId 值

clientIp

public String clientIp()

获取 clientIp 值。

Returns:

clientIp 值

count

public Integer count()

获取计数值。

Returns:

计数值

countryCode

public String countryCode()

获取 countryCode 值。

Returns:

countryCode 值

freshness

public Freshness freshness()

获取新鲜度值。

Returns:

新鲜度值

location

public String location()

获取位置值。

Returns:

位置值

market

public String market()

获取市场价值。

Returns:

市场价值

offset

public Integer offset()

获取偏移量值。

Returns:

偏移值

pragma

public String pragma()

获取杂注值。

Returns:

杂注值

promote

public List promote()

获取提升值。

Returns:

提升值

responseFilter

public List responseFilter()

获取 responseFilter 值。

Returns:

responseFilter 值

safeSearch

public SafeSearch safeSearch()

获取 safeSearch 值。

Returns:

safeSearch 值

setLang

public String setLang()

获取 setLang 值。

Returns:

setLang 值

textDecorations

public Boolean textDecorations()

获取 textDecorations 值。

Returns:

textDecorations 值

textFormat

public TextFormat textFormat()

获取 textFormat 值。

Returns:

textFormat 值

userAgent

public String userAgent()

获取 userAgent 值。

Returns:

userAgent 值

withAcceptLanguage

public SearchOptionalParameter withAcceptLanguage(String acceptLanguage)

设置 acceptLanguage 值。

Parameters:

acceptLanguage - 要设置的 acceptLanguage 值

Returns:

SearchOptionalParameter 对象本身。

withAnswerCount

public SearchOptionalParameter withAnswerCount(Integer answerCount)

设置 answerCount 值。

Parameters:

answerCount - 要设置的 answerCount 值

Returns:

SearchOptionalParameter 对象本身。

withClientId

public SearchOptionalParameter withClientId(String clientId)

设置 clientId 值。

Parameters:

clientId - 要设置的 clientId 值

Returns:

SearchOptionalParameter 对象本身。

withClientIp

public SearchOptionalParameter withClientIp(String clientIp)

设置 clientIp 值。

Parameters:

clientIp - 要设置的 clientIp 值

Returns:

SearchOptionalParameter 对象本身。

withCount

public SearchOptionalParameter withCount(Integer count)

设置计数值。

Parameters:

count - 要设置的计数值

Returns:

SearchOptionalParameter 对象本身。

withCountryCode

public SearchOptionalParameter withCountryCode(String countryCode)

设置 countryCode 值。

Parameters:

countryCode - 要设置的 countryCode 值

Returns:

SearchOptionalParameter 对象本身。

withFreshness

public SearchOptionalParameter withFreshness(Freshness freshness)

设置新鲜度值。

Parameters:

freshness - 要设置的新鲜度值

Returns:

SearchOptionalParameter 对象本身。

withLocation

public SearchOptionalParameter withLocation(String location)

设置位置值。

Parameters:

location - 要设置的位置值

Returns:

SearchOptionalParameter 对象本身。

withMarket

public SearchOptionalParameter withMarket(String market)

设置市场值。

Parameters:

market - 要设置的市场值

Returns:

SearchOptionalParameter 对象本身。

withOffset

public SearchOptionalParameter withOffset(Integer offset)

设置偏移值。

Parameters:

offset - 要设置的偏移值

Returns:

SearchOptionalParameter 对象本身。

withPragma

public SearchOptionalParameter withPragma(String pragma)

设置杂注值。

Parameters:

pragma - 要设置的杂注值

Returns:

SearchOptionalParameter 对象本身。

withPromote

public SearchOptionalParameter withPromote(List promote)

设置升级值。

Parameters:

promote - 要设置的提升值

Returns:

SearchOptionalParameter 对象本身。

withResponseFilter

public SearchOptionalParameter withResponseFilter(List responseFilter)

设置 responseFilter 值。

Parameters:

responseFilter - 要设置的 responseFilter 值

Returns:

SearchOptionalParameter 对象本身。

withSafeSearch

public SearchOptionalParameter withSafeSearch(SafeSearch safeSearch)

设置 safeSearch 值。

Parameters:

safeSearch - 要设置的 safeSearch 值

Returns:

SearchOptionalParameter 对象本身。

withSetLang

public SearchOptionalParameter withSetLang(String setLang)

设置 setLang 值。

Parameters:

setLang - 要设置的 setLang 值

Returns:

SearchOptionalParameter 对象本身。

withTextDecorations

public SearchOptionalParameter withTextDecorations(Boolean textDecorations)

设置 textDecorations 值。

Parameters:

textDecorations - 要设置的 textDecorations 值

Returns:

SearchOptionalParameter 对象本身。

withTextFormat

public SearchOptionalParameter withTextFormat(TextFormat textFormat)

设置 textFormat 值。

Parameters:

textFormat - 要设置的 textFormat 值

Returns:

SearchOptionalParameter 对象本身。

withUserAgent

public SearchOptionalParameter withUserAgent(String userAgent)

设置 userAgent 值。

Parameters:

userAgent - 要设置的 userAgent 值

Returns:

SearchOptionalParameter 对象本身。

适用于