Reference documentation and code samples for the Google Cloud Vision Ai V1 Client class CreateCollectionRequest.
Request message for CreateCollection.
Generated from protobuf message google.cloud.visionai.v1.CreateCollectionRequest
Namespace
Google \ Cloud \ VisionAI \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ parent
string
Required. The parent resource where this collection will be created. Format: projects/{project_number}/locations/{location}/corpora/{corpus}
↳ collection
↳ collection_id
string
Optional. The ID to use for the collection, which will become the final component of the resource name if user choose to specify. Otherwise, collection id will be generated by system. This value should be up to 55 characters, and valid characters are /[a-z][0-9]-/. The first character must be a letter, the last could be a letter or a number.
getParent
Required. The parent resource where this collection will be created.
Format: projects/{project_number}/locations/{location}/corpora/{corpus}
string
setParent
Required. The parent resource where this collection will be created.
Format: projects/{project_number}/locations/{location}/corpora/{corpus}
var
string
$this
getCollection
Required. The collection resource to be created.
hasCollection
clearCollection
setCollection
Required. The collection resource to be created.
$this
getCollectionId
Optional. The ID to use for the collection, which will become the final component of the resource name if user choose to specify. Otherwise, collection id will be generated by system.
This value should be up to 55 characters, and valid characters are /[a-z][0-9]-/. The first character must be a letter, the last could be a letter or a number.
string
hasCollectionId
clearCollectionId
setCollectionId
Optional. The ID to use for the collection, which will become the final component of the resource name if user choose to specify. Otherwise, collection id will be generated by system.
This value should be up to 55 characters, and valid characters are /[a-z][0-9]-/. The first character must be a letter, the last could be a letter or a number.
var
string
$this
static::build
parent
string
Required. The parent resource where this collection will be created.
Format: projects/{project_number}/locations/{location}/corpora/{corpus}
Please see WarehouseClient::corpusName()
for help formatting this field.
collection
collectionId
string
Optional. The ID to use for the collection, which will become the final component of the resource name if user choose to specify. Otherwise, collection id will be generated by system.
This value should be up to 55 characters, and valid characters are /[a-z][0-9]-/. The first character must be a letter, the last could be a letter or a number.

