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 Corpus
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
CreateCorpusRequest

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026年03月30日 UTC.