Retail v2 API - Class CreateModelRequest (2.5.0)

public sealed class CreateModelRequest : IMessage<CreateModelRequest>, IEquatable<CreateModelRequest>, IDeepCloneable<CreateModelRequest>, IBufferMessage, IMessage

Reference documentation and code samples for the Retail v2 API class CreateModelRequest.

Request for creating a model.

Inheritance

object > CreateModelRequest

Namespace

GoogleCloudGoogle.Cloud.RetailV2

Assembly

Google.Cloud.Retail.V2.dll

Constructors

CreateModelRequest()

public CreateModelRequest()

CreateModelRequest(CreateModelRequest)

public CreateModelRequest(CreateModelRequest other)
Parameter
NameDescription
otherCreateModelRequest

Properties

DryRun

public bool DryRun { get; set; }

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

Property Value
TypeDescription
bool

Model

public Model Model { get; set; }

Required. The payload of the [Model][google.cloud.retail.v2.Model] to create.

Property Value
TypeDescription
Model

Parent

public string Parent { get; set; }

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

Property Value
TypeDescription
string

ParentAsCatalogName

public CatalogName ParentAsCatalogName { get; set; }

CatalogName-typed view over the Parent resource name property.

Property Value
TypeDescription
CatalogName