Class NumericFilter (1.66.0)

NumericFilter(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Numeric filter is used to search a subset of the entities by using boolean rules on numeric columns. For example: Database Point 0: {name: “a” value_int: 42} {name: “b” value_float: 1.0} Database Point 1: {name: “a” value_int: 10} {name: “b” value_float: 2.0} Database Point 2: {name: “a” value_int: -1} {name: “b” value_float: 3.0} Query: {name: “a” value_int: 12 operator: LESS} // Matches Point 1, 2 {name: “b” value_float: 2.0 operator: EQUAL} // Matches Point 1

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

Name Description
value_int int
int value type. This field is a member of oneof_ Value.
value_float float
float value type. This field is a member of oneof_ Value.
value_double float
double value type. This field is a member of oneof_ Value.
name str
Required. Column name in BigQuery that used as filters.
op google.cloud.aiplatform_v1.types.NearestNeighborQuery.NumericFilter.Operator
Optional. This MUST be specified for queries and must NOT be specified for database points. This field is a member of oneof_ _op.

Classes

Operator

Operator(value)

Datapoints for which Operator is true relative to the query’s Value field will be allowlisted.

Methods

NumericFilter

NumericFilter(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Numeric filter is used to search a subset of the entities by using boolean rules on numeric columns. For example: Database Point 0: {name: “a” value_int: 42} {name: “b” value_float: 1.0} Database Point 1: {name: “a” value_int: 10} {name: “b” value_float: 2.0} Database Point 2: {name: “a” value_int: -1} {name: “b” value_float: 3.0} Query: {name: “a” value_int: 12 operator: LESS} // Matches Point 1, 2 {name: “b” value_float: 2.0 operator: EQUAL} // Matches Point 1

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields