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
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ namespace |
string
The namespace of this restriction. eg: color. |
↳ allow_list |
array
The attributes to allow in this namespace. eg: 'red' |
↳ deny_list |
array
The attributes to deny in this namespace. eg: 'blue' |
getNamespace
The namespace of this restriction. eg: color.
Generated from protobuf field string namespace = 1;
Returns | |
---|---|
Type | Description |
string |
setNamespace
The namespace of this restriction. eg: color.
Generated from protobuf field string namespace = 1;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getAllowList
The attributes to allow in this namespace. eg: 'red'
Generated from protobuf field repeated string allow_list = 2;
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setAllowList
The attributes to allow in this namespace. eg: 'red'
Generated from protobuf field repeated string allow_list = 2;
Parameter | |
---|---|
Name | Description |
var |
string[]
|
Returns | |
---|---|
Type | Description |
$this |
getDenyList
The attributes to deny in this namespace. eg: 'blue'
Generated from protobuf field repeated string deny_list = 3;
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setDenyList
The attributes to deny in this namespace. eg: 'blue'
Generated from protobuf field repeated string deny_list = 3;
Parameter | |
---|---|
Name | Description |
var |
string[]
|
Returns | |
---|---|
Type | Description |
$this |