Reference documentation and code samples for the Google Cloud Vision Ai V1 Client class CreateCorpusRequest.
Request message of CreateCorpus API.
Generated from protobuf message google.cloud.visionai.v1.CreateCorpusRequest
Namespace
Google \ Cloud \ VisionAI \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ parent |
string
Required. Form: |
↳ corpus |
Corpus
Required. The corpus to be created. |
getParent
Required. Form: projects/{project_number}/locations/{location_id}
| Returns | |
|---|---|
| Type | Description |
string |
|
setParent
Required. Form: projects/{project_number}/locations/{location_id}
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCorpus
Required. The corpus to be created.
| Returns | |
|---|---|
| Type | Description |
Corpus|null |
|
hasCorpus
clearCorpus
setCorpus
Required. The corpus to be created.
| Parameter | |
|---|---|
| Name | Description |
var |
Corpus
|
| Returns | |
|---|---|
| Type | Description |
$this |
|