Google Cloud Retail V2 Client - Class CreateModelRequest (1.2.1)

Reference documentation and code samples for the Google Cloud Retail V2 Client class CreateModelRequest.

Request for creating a model.

Generated from protobuf message google.cloud.retail.v2.CreateModelRequest

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The parent resource under which to create the model. Format: projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}

↳ model Google\Cloud\Retail\V2\Model

Required. The payload of the Model to create.

↳ dry_run bool

Optional. Whether to run a dry run to validate the request (without actually creating the model).

getParent

Required. The parent resource under which to create the model. Format: projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}

Returns
TypeDescription
string

setParent

Required. The parent resource under which to create the model. Format: projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getModel

Required. The payload of the Model to create.

Returns
TypeDescription
Google\Cloud\Retail\V2\Model|null

hasModel

clearModel

setModel

Required. The payload of the Model to create.

Parameter
NameDescription
var Google\Cloud\Retail\V2\Model
Returns
TypeDescription
$this

getDryRun

Optional. Whether to run a dry run to validate the request (without actually creating the model).

Returns
TypeDescription
bool

setDryRun

Optional. Whether to run a dry run to validate the request (without actually creating the model).

Parameter
NameDescription
var bool
Returns
TypeDescription
$this