Vertex AI V1 API - Class Google::Cloud::AIPlatform::V1::NearestNeighborQuery::NumericFilter (v1.30.1)

Reference documentation and code samples for the Vertex AI V1 API class Google::Cloud::AIPlatform::V1::NearestNeighborQuery::NumericFilter.

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

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#name

def name() -> ::String
Returns
  • (::String) — Required. Column name in BigQuery that used as filters.

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — Required. Column name in BigQuery that used as filters.
Returns
  • (::String) — Required. Column name in BigQuery that used as filters.

#op

def op() -> ::Google::Cloud::AIPlatform::V1::NearestNeighborQuery::NumericFilter::Operator
Returns

#op=

def op=(value) -> ::Google::Cloud::AIPlatform::V1::NearestNeighborQuery::NumericFilter::Operator
Parameter
Returns

#value_double

def value_double() -> ::Float
Returns
  • (::Float) — double value type.

    Note: The following fields are mutually exclusive: value_double, value_int, value_float. If a field in that set is populated, all other fields in the set will automatically be cleared.

#value_double=

def value_double=(value) -> ::Float
Parameter
  • value (::Float) — double value type.

    Note: The following fields are mutually exclusive: value_double, value_int, value_float. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Float) — double value type.

    Note: The following fields are mutually exclusive: value_double, value_int, value_float. If a field in that set is populated, all other fields in the set will automatically be cleared.

#value_float

def value_float() -> ::Float
Returns
  • (::Float) — float value type.

    Note: The following fields are mutually exclusive: value_float, value_int, value_double. If a field in that set is populated, all other fields in the set will automatically be cleared.

#value_float=

def value_float=(value) -> ::Float
Parameter
  • value (::Float) — float value type.

    Note: The following fields are mutually exclusive: value_float, value_int, value_double. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Float) — float value type.

    Note: The following fields are mutually exclusive: value_float, value_int, value_double. If a field in that set is populated, all other fields in the set will automatically be cleared.

#value_int

def value_int() -> ::Integer
Returns
  • (::Integer) — int value type.

    Note: The following fields are mutually exclusive: value_int, value_float, value_double. If a field in that set is populated, all other fields in the set will automatically be cleared.

#value_int=

def value_int=(value) -> ::Integer
Parameter
  • value (::Integer) — int value type.

    Note: The following fields are mutually exclusive: value_int, value_float, value_double. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Integer) — int value type.

    Note: The following fields are mutually exclusive: value_int, value_float, value_double. If a field in that set is populated, all other fields in the set will automatically be cleared.