Reference documentation and code samples for the Google Cloud Vision Ai V1 Client class CollectionItem.
A CollectionItem is an item in a collection.
Each item is a reference to the original resource in a collection.
Generated from protobuf message google.cloud.visionai.v1.CollectionItem
Namespace
Google \ Cloud \ VisionAI \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ collection
string
Required. The collection name that this item belongs to. Format: projects/{project_number}/locations/{location}/corpora/{corpus}/collections/{collection}
↳ type
int
Required. The type of item.
↳ item_resource
string
Required. The name of the CollectionItem. Its format depends on the type
above. For ASSET: projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}
getCollection
Required. The collection name that this item belongs to. Format: projects/{project_number}/locations/{location}/corpora/{corpus}/collections/{collection}
string
setCollection
Required. The collection name that this item belongs to. Format: projects/{project_number}/locations/{location}/corpora/{corpus}/collections/{collection}
var
string
$this
getType
Required. The type of item.
setType
Required. The type of item.
$this
getItemResource
Required. The name of the CollectionItem. Its format depends on the type
above. For ASSET: projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}
string
setItemResource
Required. The name of the CollectionItem. Its format depends on the type
above. For ASSET: projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}
var
string
$this

