Google Cloud Ai Platform V1 Client - Class DataItemView (0.16.0)

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

A container for a single DataItem and Annotations on it.

Generated from protobuf message google.cloud.aiplatform.v1.DataItemView

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ data_item Google\Cloud\AIPlatform\V1\DataItem

The DataItem.

↳ annotations array<Google\Cloud\AIPlatform\V1\Annotation>

The Annotations on the DataItem. If too many Annotations should be returned for the DataItem, this field will be truncated per annotations_limit in request. If it was, then the has_truncated_annotations will be set to true.

↳ has_truncated_annotations bool

True if and only if the Annotations field has been truncated. It happens if more Annotations for this DataItem met the request's annotation_filter than are allowed to be returned by annotations_limit. Note that if Annotations field is not being returned due to field mask, then this field will not be set to true no matter how many Annotations are there.

getDataItem

The DataItem.

Returns
TypeDescription
Google\Cloud\AIPlatform\V1\DataItem|null

hasDataItem

clearDataItem

setDataItem

The DataItem.

Parameter
NameDescription
var Google\Cloud\AIPlatform\V1\DataItem
Returns
TypeDescription
$this

getAnnotations

The Annotations on the DataItem. If too many Annotations should be returned for the DataItem, this field will be truncated per annotations_limit in request. If it was, then the has_truncated_annotations will be set to true.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setAnnotations

The Annotations on the DataItem. If too many Annotations should be returned for the DataItem, this field will be truncated per annotations_limit in request. If it was, then the has_truncated_annotations will be set to true.

Parameter
NameDescription
var array<Google\Cloud\AIPlatform\V1\Annotation>
Returns
TypeDescription
$this

getHasTruncatedAnnotations

True if and only if the Annotations field has been truncated. It happens if more Annotations for this DataItem met the request's annotation_filter than are allowed to be returned by annotations_limit.

Note that if Annotations field is not being returned due to field mask, then this field will not be set to true no matter how many Annotations are there.

Returns
TypeDescription
bool

setHasTruncatedAnnotations

True if and only if the Annotations field has been truncated. It happens if more Annotations for this DataItem met the request's annotation_filter than are allowed to be returned by annotations_limit.

Note that if Annotations field is not being returned due to field mask, then this field will not be set to true no matter how many Annotations are there.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this