NAME

Google::Cloud::Contentwarehouse::V1::Synonymset - Compiled Protocol Buffers messages for google/cloud/contentwarehouse/v1/synonymset.proto

SYNOPSIS

use Google::Cloud::Contentwarehouse::V1::Synonymset;

my $msg = Google::Cloud::Contentwarehouse::V1::Synonymset::SynonymSet->new({
    name => $name,
    context => $context,
    synonyms => $synonyms,
});

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

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Contentwarehouse::V1::Synonymset::SynonymSet->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/contentwarehouse/v1/synonymset.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::Contentwarehouse::V1::Synonymset::SynonymSet

Represents a list of synonyms for a given context. For example a context "sales" could contain: Synonym 1: sale, invoice, bill, order Synonym 2: money, credit, finance, payment Synonym 3: shipping, freight, transport Each SynonymSets should be disjoint

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The resource name of the SynonymSet This is mandatory for google.api.resource. Format: projects/{project_number}/locations/{location}/synonymSets/{context}.

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

    Type: String

    This is a freeform field. Example contexts can be "sales," "engineering," "real estate," "accounting," etc. The context can be supplied during search requests.

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

    Type: Message (Google::Cloud::Contentwarehouse::V1::Synonymset::SynonymSet::Synonym)

    List of Synonyms for the context.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Contentwarehouse::V1::Synonymset::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.