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
Namespace
Google \ Cloud \ Retail \ V2Methods
__construct
Constructor.
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
↳ 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}
string
setParent
Required. The parent resource under which to create the model. Format: projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}
var
string
$this
getModel
Required. The payload of the Model to create.
hasModel
clearModel
setModel
Required. The payload of the Model to create.
$this
getDryRun
Optional. Whether to run a dry run to validate the request (without actually creating the model).
bool
setDryRun
Optional. Whether to run a dry run to validate the request (without actually creating the model).
var
bool
$this
static::build
parent
string
Required. The parent resource under which to create the model. Format: projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}
Please see Google\Cloud\Retail\V2\ModelServiceClient::catalogName()
for help formatting this field.
model