Service Client: Google::Cloud::Retail::V2::ServingConfigService::ServingConfigServiceClient

Client stub representing the remote ServingConfigService 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::ServingConfigService - Compiled Protocol Buffers messages for google/cloud/retail/v2/serving_config_service.proto

SYNOPSIS

use Google::Cloud::Retail::V2::ServingConfigService;

my $msg = Google::Cloud::Retail::V2::ServingConfigService::CreateServingConfigRequest->new({
    parent => $parent,
    serving_config => $serving_config,
    serving_config_id => $serving_config_id,
});

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

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

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/retail/v2/serving_config_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::ServingConfigService::CreateServingConfigRequest

Request for CreateServingConfig method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Full resource name of parent. Format: `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}`

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

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

    Required. The ServingConfig to create.

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

    Type: String

    Required. The ID to use for the ServingConfig, which will become the final component of the ServingConfig's resource name.

    This value should be 4-63 characters, and valid characters are /[a-z][0-9]-_/.

Google::Cloud::Retail::V2::ServingConfigService::UpdateServingConfigRequest

Request for UpdateServingConfig method.

Inherits from Protobuf::Message.

Accessors

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

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

    Required. The ServingConfig to update.

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

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    Indicates which fields in the provided [ServingConfig][google.cloud.retail.v2.ServingConfig] to update. The following are NOT supported:

    * [ServingConfig.name][google.cloud.retail.v2.ServingConfig.name]

    If not set, all supported fields are updated.

Google::Cloud::Retail::V2::ServingConfigService::DeleteServingConfigRequest

Request for DeleteServingConfig method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The resource name of the ServingConfig to delete. Format: `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/servingConfigs/{serving_config_id}`

Google::Cloud::Retail::V2::ServingConfigService::GetServingConfigRequest

Request for GetServingConfig method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The resource name of the ServingConfig to get. Format: `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/servingConfigs/{serving_config_id}`

Google::Cloud::Retail::V2::ServingConfigService::ListServingConfigsRequest

Request for ListServingConfigs method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The catalog resource name. 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 100. If a value greater than 100 is provided, at most 100 results are returned.

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

    Type: String

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

Google::Cloud::Retail::V2::ServingConfigService::ListServingConfigsResponse

Response for ListServingConfigs method.

Inherits from Protobuf::Message.

Accessors

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

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

    All the ServingConfigs for a given catalog.

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

    Type: String

    Pagination token, if not returned indicates the last page.

Google::Cloud::Retail::V2::ServingConfigService::AddControlRequest

Request for AddControl method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The source ServingConfig resource name . Format: `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/servingConfigs/{serving_config_id}`

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

    Type: String

    Required. The id of the control to apply. Assumed to be in the same catalog as the serving config - if id is not found a NOT_FOUND error is returned.

Google::Cloud::Retail::V2::ServingConfigService::RemoveControlRequest

Request for RemoveControl method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The source ServingConfig resource name . Format: `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/servingConfigs/{serving_config_id}`

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

    Type: String

    Required. The id of the control to apply. Assumed to be in the same catalog as the serving config.

SEE ALSO

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

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.