Interface StructuredQueryOrBuilder (0.21.0)

public interface StructuredQueryOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getBoost()

public abstract float getBoost()

Optional. Optional multiplier applied to this query node's contribution to the final relevance score. Must be non-negative; if unset or 0, defaults to 1.0. Values greater than 1.0 increase its influence on ranking, values between 0.0 and 1.0 decrease it.

float boost = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
float

The boost.

getCombine()

public abstract CombinedQuery getCombine()

Optional. A query that combines multiple sub-queries with a boolean operator.

.google.cloud.vectorsearch.v1beta.CombinedQuery combine = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CombinedQuery

The combine.

getCombineOrBuilder()

public abstract CombinedQueryOrBuilder getCombineOrBuilder()

Optional. A query that combines multiple sub-queries with a boolean operator.

.google.cloud.vectorsearch.v1beta.CombinedQuery combine = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CombinedQueryOrBuilder

getQueryTypeCase()

public abstract StructuredQuery.QueryTypeCase getQueryTypeCase()
Returns
Type Description
StructuredQuery.QueryTypeCase

getText()

public abstract TextQuery getText()

Optional. A leaf-level text query.

.google.cloud.vectorsearch.v1beta.TextQuery text = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TextQuery

The text.

getTextOrBuilder()

public abstract TextQueryOrBuilder getTextOrBuilder()

Optional. A leaf-level text query.

.google.cloud.vectorsearch.v1beta.TextQuery text = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TextQueryOrBuilder

getUnary()

public abstract UnaryQuery getUnary()

Optional. A query that applies a unary operator to a sub-query.

.google.cloud.vectorsearch.v1beta.UnaryQuery unary = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
UnaryQuery

The unary.

getUnaryOrBuilder()

public abstract UnaryQueryOrBuilder getUnaryOrBuilder()

Optional. A query that applies a unary operator to a sub-query.

.google.cloud.vectorsearch.v1beta.UnaryQuery unary = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
UnaryQueryOrBuilder

hasCombine()

public abstract boolean hasCombine()

Optional. A query that combines multiple sub-queries with a boolean operator.

.google.cloud.vectorsearch.v1beta.CombinedQuery combine = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the combine field is set.

hasText()

public abstract boolean hasText()

Optional. A leaf-level text query.

.google.cloud.vectorsearch.v1beta.TextQuery text = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the text field is set.

hasUnary()

public abstract boolean hasUnary()

Optional. A query that applies a unary operator to a sub-query.

.google.cloud.vectorsearch.v1beta.UnaryQuery unary = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the unary field is set.