Google Cloud Ai Platform V1 Client - Class Restriction (1.40.0)

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

Restriction of a datapoint which describe its attributes(tokens) from each of several attribute categories(namespaces).

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

Namespace

Google \ Cloud \ AIPlatform \ V1 \ IndexDatapoint

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ namespace string

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

↳ allow_list array

The attributes to allow in this namespace. e.g.: 'red'

↳ deny_list array

The attributes to deny in this namespace. e.g.: 'blue'

getNamespace

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

Returns
Type Description
string

setNamespace

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

Parameter
Name Description
var string
Returns
Type Description
$this

getAllowList

The attributes to allow in this namespace. e.g.: 'red'

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setAllowList

The attributes to allow in this namespace. e.g.: 'red'

Parameter
Name Description
var string[]
Returns
Type Description
$this

getDenyList

The attributes to deny in this namespace. e.g.: 'blue'

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setDenyList

The attributes to deny in this namespace. e.g.: 'blue'

Parameter
Name Description
var string[]
Returns
Type Description
$this

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月08日 UTC.