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

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

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ parent
string

Required. Form: projects/{project_number}/locations/{location_id}

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

static::build

Parameters
Name
Description
parent
string

Required. Form: projects/{project_number}/locations/{location_id}

corpus
Corpus

Required. The corpus to be created.

Returns
Type
Description
Create a Mobile Website
View Site in Mobile | Classic
Share by: