Reference documentation and code samples for the Google Cloud Vision Ai V1 Client class Collection.
A collection is a resource in a corpus. It serves as a container of references to original resources.
Generated from protobuf message google.cloud.visionai.v1.Collection
Namespace
Google \ Cloud \ VisionAI \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
Output only. Resource name of the collection. Format: |
↳ display_name |
string
Optional. The collection name for displaying. The name can be up to 256 characters long. |
↳ description |
string
Optional. Description of the collection. Can be up to 25000 characters long. |
getName
Output only. Resource name of the collection. Format:
projects/{project_number}/locations/{location}/corpora/{corpus}/collections/{collection}
| Returns | |
|---|---|
| Type | Description |
string |
|
setName
Output only. Resource name of the collection. Format:
projects/{project_number}/locations/{location}/corpora/{corpus}/collections/{collection}
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDisplayName
Optional. The collection name for displaying.
The name can be up to 256 characters long.
| Returns | |
|---|---|
| Type | Description |
string |
|
setDisplayName
Optional. The collection name for displaying.
The name can be up to 256 characters long.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDescription
Optional. Description of the collection. Can be up to 25000 characters long.
| Returns | |
|---|---|
| Type | Description |
string |
|
setDescription
Optional. Description of the collection. Can be up to 25000 characters long.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|