Google Cloud Vision Ai V1 Client - Class CollectionItem (0.3.0)

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 \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
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}

Returns
Type
Description
string

setCollection

Required. The collection name that this item belongs to. Format: projects/{project_number}/locations/{location}/corpora/{corpus}/collections/{collection}

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getType

Required. The type of item.

Returns
Type
Description
int
Enum of type Type .

setType

Required. The type of item.

Parameter
Name
Description
var
int

Enum of type Type .

Returns
Type
Description
$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}

Returns
Type
Description
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}

Parameter
Name
Description
var
string
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: