NAME
Google::Cloud::Retail::V2::Promotion - Compiled Protocol Buffers messages for google/cloud/retail/v2/promotion.proto
SYNOPSIS
use Google::Cloud::Retail::V2::Promotion;
my $msg = Google::Cloud::Retail::V2::Promotion::Promotion->new({
promotion_id => $promotion_id,
});
# Read or update a field
my $val = $msg->promotion_id();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Retail::V2::Promotion::Promotion->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/retail/v2/promotion.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::Promotion::Promotion
Promotion information.
Inherits from Protobuf::Message.
Accessors
$msg->promotion_id()/$msg->promotion_id($value)Type:
StringID of the promotion. For example, "free gift".
The value must be a UTF-8 encoded string with a length limit of 128 characters, and match the pattern: `[a-zA-Z][a-zA-Z0-9_]*`. For example, id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT error is returned.
Corresponds to Google Merchant Center property [promotion_id](https://support.google.com/merchants/answer/7050148).
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Retail::V2::Promotion::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.