Interface CreateModelRequestOrBuilder (2.44.0)

public interface CreateModelRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getDryRun()

public abstract boolean getDryRun()

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

bool dry_run = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The dryRun.

getModel()

public abstract Model getModel()

Required. The payload of the Model to create.

.google.cloud.retail.v2alpha.Model model = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Model

The model.

getModelOrBuilder()

public abstract ModelOrBuilder getModelOrBuilder()

Required. The payload of the Model to create.

.google.cloud.retail.v2alpha.Model model = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ModelOrBuilder

getParent()

public abstract String getParent()

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

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public abstract ByteString getParentBytes()

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

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

hasModel()

public abstract boolean hasModel()

Required. The payload of the Model to create.

.google.cloud.retail.v2alpha.Model model = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the model field is set.