Class NumericRestriction (1.48.0)

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

This field allows restricts to be based on numeric comparisons rather than categorical tokens.

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

NameDescription
value_int int
Represents 64 bit integer. This field is a member of oneof_ Value.
value_float float
Represents 32 bit float. This field is a member of oneof_ Value.
value_double float
Represents 64 bit float. This field is a member of oneof_ Value.
namespace str
The namespace of this restriction. e.g.: cost.
op google.cloud.aiplatform_v1beta1.types.IndexDatapoint.NumericRestriction.Operator
This MUST be specified for queries and must NOT be specified for datapoints.

Classes

Operator

Operator(value)

Which comparison operator to use. Should be specified for queries only; specifying this for a datapoint is an error.

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

Values: OPERATOR_UNSPECIFIED (0): Default value of the enum. LESS (1): Datapoints are eligible iff their value is < the query's. LESS_EQUAL (2): Datapoints are eligible iff their value is <= the query's. EQUAL (3): Datapoints are eligible iff their value is == the query's. GREATER_EQUAL (4): Datapoints are eligible iff their value is >= the query's. GREATER (5): Datapoints are eligible iff their value is > the query's. NOT_EQUAL (6): Datapoints are eligible iff their value is != the query's.

Methods

NumericRestriction

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

This field allows restricts to be based on numeric comparisons rather than categorical tokens.

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