Freigeben über


ScenarioType Class

  • java.lang.Object
    • com.microsoft.rest.ExpandableStringEnum<ScenarioType>
      • com.microsoft.azure.cognitiveservices.search.autosuggest.models.ScenarioType

public class ScenarioType

Defines values for ScenarioType.

Field Summary

Modifier and Type Field and Description
final ScenarioType CUSTOM

Static value Custom for ScenarioType.

final ScenarioType PERSONAL_SEARCH_DOCUMENTS

Static value PersonalSearchDocuments for ScenarioType.

final ScenarioType PERSONAL_SEARCH_TAGS

Static value PersonalSearchTags for ScenarioType.

final ScenarioType SEARCH_HISTORY

Static value SearchHistory for ScenarioType.

final ScenarioType STORE_APPS

Static value StoreApps for ScenarioType.

final ScenarioType UNKNOWN

Static value Unknown for ScenarioType.

final ScenarioType WEB

Static value Web for ScenarioType.

Method Summary

Modifier and Type Method and Description
ScenarioType fromString(String name)

Creates or finds a ScenarioType from its string representation.

Collection<ScenarioType> values()

Field Details

CUSTOM

public static final ScenarioType CUSTOM= fromString("Custom")

Static value Custom for ScenarioType.

PERSONAL_SEARCH_DOCUMENTS

public static final ScenarioType PERSONAL_SEARCH_DOCUMENTS= fromString("PersonalSearchDocuments")

Static value PersonalSearchDocuments for ScenarioType.

PERSONAL_SEARCH_TAGS

public static final ScenarioType PERSONAL_SEARCH_TAGS= fromString("PersonalSearchTags")

Static value PersonalSearchTags for ScenarioType.

SEARCH_HISTORY

public static final ScenarioType SEARCH_HISTORY= fromString("SearchHistory")

Static value SearchHistory for ScenarioType.

STORE_APPS

public static final ScenarioType STORE_APPS= fromString("StoreApps")

Static value StoreApps for ScenarioType.

UNKNOWN

public static final ScenarioType UNKNOWN= fromString("Unknown")

Static value Unknown for ScenarioType.

WEB

public static final ScenarioType WEB= fromString("Web")

Static value Web for ScenarioType.

Method Details

fromString

public static ScenarioType fromString(String name)

Creates or finds a ScenarioType from its string representation.

Parameters:

name - a name to look for

Returns:

the corresponding ScenarioType

values

public static Collection values()

Returns:

known ScenarioType values

Applies to