Sdílet prostřednictvím


AnswerType Class

  • java.lang.Object
    • com.microsoft.rest.ExpandableStringEnum<AnswerType>
      • com.microsoft.azure.cognitiveservices.search.websearch.models.AnswerType

public class AnswerType

Defines values for AnswerType.

Field Summary

Modifier and Type Field and Description
final AnswerType COMPUTATION

Static value Computation for AnswerType.

final AnswerType IMAGES

Static value Images for AnswerType.

final AnswerType NEWS

Static value News for AnswerType.

final AnswerType RELATED_SEARCHES

Static value RelatedSearches for AnswerType.

final AnswerType SPELL_SUGGESTIONS

Static value SpellSuggestions for AnswerType.

final AnswerType TIME_ZONE

Static value TimeZone for AnswerType.

final AnswerType VIDEOS

Static value Videos for AnswerType.

final AnswerType WEB_PAGES

Static value WebPages for AnswerType.

Method Summary

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

Creates or finds a AnswerType from its string representation.

Collection<AnswerType> values()

Field Details

COMPUTATION

public static final AnswerType COMPUTATION= fromString("Computation")

Static value Computation for AnswerType.

IMAGES

public static final AnswerType IMAGES= fromString("Images")

Static value Images for AnswerType.

NEWS

public static final AnswerType NEWS= fromString("News")

Static value News for AnswerType.

public static final AnswerType RELATED_SEARCHES= fromString("RelatedSearches")

Static value RelatedSearches for AnswerType.

SPELL_SUGGESTIONS

public static final AnswerType SPELL_SUGGESTIONS= fromString("SpellSuggestions")

Static value SpellSuggestions for AnswerType.

TIME_ZONE

public static final AnswerType TIME_ZONE= fromString("TimeZone")

Static value TimeZone for AnswerType.

VIDEOS

public static final AnswerType VIDEOS= fromString("Videos")

Static value Videos for AnswerType.

WEB_PAGES

public static final AnswerType WEB_PAGES= fromString("WebPages")

Static value WebPages for AnswerType.

Method Details

fromString

public static AnswerType fromString(String name)

Creates or finds a AnswerType from its string representation.

Parameters:

name - a name to look for

Returns:

the corresponding AnswerType

values

public static Collection values()

Returns:

known AnswerType values

Applies to