NAME

Google::Cloud::Discoveryengine::V1alpha::Completion - Compiled Protocol Buffers messages for google/cloud/discoveryengine/v1alpha/completion.proto

SYNOPSIS

use Google::Cloud::Discoveryengine::V1alpha::Completion;

my $msg = Google::Cloud::Discoveryengine::V1alpha::Completion::SuggestionDenyListEntry->new({
    block_phrase => $block_phrase,
    match_operator => $match_operator,
});

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

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Discoveryengine::V1alpha::Completion::SuggestionDenyListEntry->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/discoveryengine/v1alpha/completion.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::Discoveryengine::V1alpha::Completion::SuggestionDenyListEntry

Suggestion deny list entry identifying the phrase to block from suggestions and the applied operation for the phrase.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Phrase to block from suggestions served. Can be maximum 125 characters.

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

    Type: Enum (Google::Cloud::Discoveryengine::V1alpha::SuggestionDenyListEntry::MatchOperator)

    Required. The match operator to apply for this phrase. Whether to block the exact phrase, or block any suggestions containing this phrase.

Enum: SuggestionDenyListEntry::MatchOperator

  • MATCH_OPERATOR_UNSPECIFIED => 0

  • EXACT_MATCH => 1

  • CONTAINS => 2

Google::Cloud::Discoveryengine::V1alpha::Completion::CompletionSuggestion

Autocomplete suggestions that are imported from Customer.

Inherits from Protobuf::Message.

Accessors

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

    Type: Double

    Global score of this suggestion. Control how this suggestion would be scored / ranked.

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

    Type: Int64

    Frequency of this suggestion. Will be used to rank suggestions when score is not available.

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

    Type: String

    Required. The suggestion text.

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

    Type: String

    BCP-47 language code of this suggestion.

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

    Type: String

    If two suggestions have the same groupId, they will not be returned together. Instead the one ranked higher will be returned. This can be used to deduplicate semantically identical suggestions.

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

    Type: Double

    The score of this suggestion within its group.

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

    Type: String

    Alternative matching phrases for this suggestion.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Discoveryengine::V1alpha::Completion::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.