Google Cloud Ai Platform V1 Client - Class NumericRestriction (1.2.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
Name Description
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
Type Description
int|string

hasValueInt

setValueInt

Represents 64 bit integer.

Parameter
Name Description
var int|string
Returns
Type Description
$this

getValueFloat

Represents 32 bit float.

Returns
Type Description
float

hasValueFloat

setValueFloat

Represents 32 bit float.

Parameter
Name Description
var float
Returns
Type Description
$this

getValueDouble

Represents 64 bit float.

Returns
Type Description
float

hasValueDouble

setValueDouble

Represents 64 bit float.

Parameter
Name Description
var float
Returns
Type Description
$this

getNamespace

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

Returns
Type Description
string

setNamespace

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

Parameter
Name Description
var string
Returns
Type Description
$this

getOp

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

Returns
Type Description
int

setOp

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

Parameter
Name Description
var int
Returns
Type Description
$this

getValue

Returns
Type Description
string