SemanticQueryRewritesResultType Class

public final class SemanticQueryRewritesResultType
extends ExpandableStringEnum<SemanticQueryRewritesResultType>

Type of query rewrite that was used for this request.

Field Summary

Modifier and Type Field and Description
static final SemanticQueryRewritesResultType ORIGINAL_QUERY_ONLY

Query rewrites were not successfully generated for this request.

Constructor Summary

Constructor Description
SemanticQueryRewritesResultType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of SemanticQueryRewritesResultType value.

Method Summary

Modifier and Type Method and Description
static SemanticQueryRewritesResultType fromString(String name)

Creates or finds a SemanticQueryRewritesResultType from its string representation.

static Collection<SemanticQueryRewritesResultType> values()

Gets known SemanticQueryRewritesResultType values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

ORIGINAL_QUERY_ONLY

public static final SemanticQueryRewritesResultType ORIGINAL_QUERY_ONLY

Query rewrites were not successfully generated for this request. Only the original query was used to retrieve the results.

Constructor Details

SemanticQueryRewritesResultType

@Deprecated
public SemanticQueryRewritesResultType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of SemanticQueryRewritesResultType value.

Method Details

fromString

public static SemanticQueryRewritesResultType fromString(String name)

Creates or finds a SemanticQueryRewritesResultType from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding SemanticQueryRewritesResultType.

values

public static Collection<SemanticQueryRewritesResultType> values()

Gets known SemanticQueryRewritesResultType values.

Returns:

known SemanticQueryRewritesResultType values.

Applies to