public sealed class NearestNeighborQuery.Types.NumericFilter : IMessage<NearestNeighborQuery.Types.NumericFilter>, IEquatable<NearestNeighborQuery.Types.NumericFilter>, IDeepCloneable<NearestNeighborQuery.Types.NumericFilter>, IBufferMessage, IMessageReference documentation and code samples for the Vertex AI v1beta1 API class NearestNeighborQuery.Types.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
Implements
IMessageNearestNeighborQueryTypesNumericFilter, IEquatableNearestNeighborQueryTypesNumericFilter, IDeepCloneableNearestNeighborQueryTypesNumericFilter, IBufferMessage, IMessageNamespace
Google.Cloud.AIPlatform.V1Beta1Assembly
Google.Cloud.AIPlatform.V1Beta1.dll
Constructors
NumericFilter()
public NumericFilter()NumericFilter(NumericFilter)
public NumericFilter(NearestNeighborQuery.Types.NumericFilter other)| Parameter | |
|---|---|
| Name | Description |
other |
NearestNeighborQueryTypesNumericFilter |
Properties
HasOp
public bool HasOp { get; }Gets whether the "op" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasValueDouble
public bool HasValueDouble { get; }Gets whether the "value_double" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasValueFloat
public bool HasValueFloat { get; }Gets whether the "value_float" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasValueInt
public bool HasValueInt { get; }Gets whether the "value_int" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
Name
public string Name { get; set; }Required. Column name in BigQuery that used as filters.
| Property Value | |
|---|---|
| Type | Description |
string |
|
Op
public NearestNeighborQuery.Types.NumericFilter.Types.Operator Op { get; set; }Optional. This MUST be specified for queries and must NOT be specified for database points.
| Property Value | |
|---|---|
| Type | Description |
NearestNeighborQueryTypesNumericFilterTypesOperator |
|
ValueCase
public NearestNeighborQuery.Types.NumericFilter.ValueOneofCase ValueCase { get; }| Property Value | |
|---|---|
| Type | Description |
NearestNeighborQueryTypesNumericFilterValueOneofCase |
|
ValueDouble
public double ValueDouble { get; set; }double value type.
| Property Value | |
|---|---|
| Type | Description |
double |
|
ValueFloat
public float ValueFloat { get; set; }float value type.
| Property Value | |
|---|---|
| Type | Description |
float |
|
ValueInt
public long ValueInt { get; set; }int value type.
| Property Value | |
|---|---|
| Type | Description |
long |
|