Service Client: Google::Cloud::Retail::V2::ModelService::ModelServiceClient

Client stub representing the remote ModelService gRPC service. Delegates call dispatching to Google::gRPC::Client.

target

The endpoint target address. Defaults to retail.googleapis.com:443.

credentials

The authentication credentials provider. Defaults to application default credentials via Google::Auth.

NAME

Google::Cloud::Retail::V2::ModelService - Compiled Protocol Buffers messages for google/cloud/retail/v2/model_service.proto

SYNOPSIS

use Google::Cloud::Retail::V2::ModelService;

my $msg = Google::Cloud::Retail::V2::ModelService::CreateModelRequest->new({
    parent => $parent,
    model => $model,
    dry_run => $dry_run,
});

# Read or update a field
my $val = $msg->parent();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Retail::V2::ModelService::CreateModelRequest->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/retail/v2/model_service.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Retail::V2::ModelService::CreateModelRequest

Request for creating a model.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

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

  • $msg->model() / $msg->model($value)

    Type: Message (Google::Cloud::Retail::V2::Model::Model)

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

  • $msg->dry_run() / $msg->dry_run($value)

    Type: Bool

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

Google::Cloud::Retail::V2::ModelService::UpdateModelRequest

Request for updating an existing model.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Retail::V2::ModelService::GetModelRequest

Request for getting a model.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The resource name of the [Model][google.cloud.retail.v2.Model] to get. Format: `projects/{project_number}/locations/{location_id}/catalogs/{catalog}/models/{model_id}`

Google::Cloud::Retail::V2::ModelService::PauseModelRequest

Request for pausing training of a model.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of the model to pause. Format: `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}`

Google::Cloud::Retail::V2::ModelService::ResumeModelRequest

Request for resuming training of a model.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of the model to resume. Format: `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}`

Google::Cloud::Retail::V2::ModelService::ListModelsRequest

Request for listing models associated with a resource.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The parent for which to list models. Format: `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}`

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Optional. Maximum number of results to return. If unspecified, defaults to 50. Max allowed value is 1000.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    Optional. A page token, received from a previous `ListModels` call. Provide this to retrieve the subsequent page.

Google::Cloud::Retail::V2::ModelService::DeleteModelRequest

Request for deleting a model.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The resource name of the [Model][google.cloud.retail.v2.Model] to delete. Format: `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}`

Google::Cloud::Retail::V2::ModelService::ListModelsResponse

Response to a ListModelRequest.

Inherits from Protobuf::Message.

Accessors

  • $msg->models() / $msg->models($value)

    Type: Message (Google::Cloud::Retail::V2::Model::Model)

    List of Models.

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    Pagination token, if not returned indicates the last page.

Google::Cloud::Retail::V2::ModelService::TuneModelRequest

Request to manually start a tuning process now (instead of waiting for the periodically scheduled tuning to happen).

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The resource name of the model to tune. Format: `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}`

Google::Cloud::Retail::V2::ModelService::CreateModelMetadata

Metadata associated with a create operation.

Inherits from Protobuf::Message.

Accessors

  • $msg->model() / $msg->model($value)

    Type: String

    The resource name of the model that this create applies to. Format: `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}`

Google::Cloud::Retail::V2::ModelService::TuneModelMetadata

Metadata associated with a tune operation.

Inherits from Protobuf::Message.

Accessors

  • $msg->model() / $msg->model($value)

    Type: String

    The resource name of the model that this tune applies to. Format: `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}`

Google::Cloud::Retail::V2::ModelService::TuneModelResponse

Response associated with a tune operation.

Inherits from Protobuf::Message.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Retail::V2::ModelService::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.