Google Cloud Ai Platform V1 Client - Class NumericRestriction (0.29.0)

Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class NumericRestriction.

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

Generated from protobuf message google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction

Namespace

Google \ Cloud \ AIPlatform \ V1 \ IndexDatapoint

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ value_int int|string

Represents 64 bit integer.

↳ value_float float

Represents 32 bit float.

↳ value_double float

Represents 64 bit float.

↳ namespace string

The namespace of this restriction. e.g.: cost.

↳ op int

This MUST be specified for queries and must NOT be specified for datapoints.

getValueInt

Represents 64 bit integer.

Returns
TypeDescription
int|string

hasValueInt

setValueInt

Represents 64 bit integer.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getValueFloat

Represents 32 bit float.

Returns
TypeDescription
float

hasValueFloat

setValueFloat

Represents 32 bit float.

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getValueDouble

Represents 64 bit float.

Returns
TypeDescription
float

hasValueDouble

setValueDouble

Represents 64 bit float.

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getNamespace

The namespace of this restriction. e.g.: cost.

Returns
TypeDescription
string

setNamespace

The namespace of this restriction. e.g.: cost.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getOp

This MUST be specified for queries and must NOT be specified for datapoints.

Returns
TypeDescription
int

setOp

This MUST be specified for queries and must NOT be specified for datapoints.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getValue

Returns
TypeDescription
string