Service Client: Google::Cloud::Discoveryengine::V1alpha::GroundedGenerationService::GroundedGenerationServiceClient

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

target

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

credentials

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

NAME

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

SYNOPSIS

use Google::Cloud::Discoveryengine::V1alpha::GroundedGenerationService;

my $msg = Google::Cloud::Discoveryengine::V1alpha::GroundedGenerationService::CheckGroundingSpec->new({
    citation_threshold => $citation_threshold,
});

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

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

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/discoveryengine/v1alpha/grounded_generation_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::Discoveryengine::V1alpha::GroundedGenerationService::CheckGroundingSpec

Specification for the grounding check.

Inherits from Protobuf::Message.

Accessors

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

    Type: Double

    The threshold (in [0,1]) used for determining whether a fact must be cited for a claim in the answer candidate. Choosing a higher threshold will lead to fewer but very strong citations, while choosing a lower threshold may lead to more but somewhat weaker citations. If unset, the threshold will default to 0.6.

Google::Cloud::Discoveryengine::V1alpha::GroundedGenerationService::CheckGroundingRequest

Request message for [GroundedGenerationService.CheckGrounding][google.cloud.discoveryengine.v1alpha.GroundedGenerationService.CheckGrounding] method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The resource name of the grounding config, such as `projects/*/locations/global/groundingConfigs/default_grounding_config`.

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

    Type: String

    Answer candidate to check. Can have a maximum length of 1024 characters.

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

    Type: Message (Google::Cloud::Discoveryengine::V1alpha::Grounding::GroundingFact)

    List of facts for the grounding check. We support up to 200 facts.

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

    Type: Message (Google::Cloud::Discoveryengine::V1alpha::GroundedGenerationService::CheckGroundingSpec)

    Configuration of the grounding check.

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

    Type: Message (Google::Cloud::Discoveryengine::V1alpha::GroundedGenerationService::CheckGroundingRequest::UserLabelsEntry)

    The user labels applied to a resource must meet the following requirements:

    * Each resource can have multiple labels, up to a maximum of 64. * Each label must be a key-value pair. * Keys have a minimum length of 1 character and a maximum length of 63 characters and cannot be empty. Values can be empty and have a maximum length of 63 characters. * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. All characters must use UTF-8 encoding, and international characters are allowed. * The key portion of a label must be unique. However, you can use the same key with multiple resources. * Keys must start with a lowercase letter or international character.

    See [Google Cloud Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) for more details.

Google::Cloud::Discoveryengine::V1alpha::GroundedGenerationService::CheckGroundingResponse

Response message for the [GroundedGenerationService.CheckGrounding][google.cloud.discoveryengine.v1alpha.GroundedGenerationService.CheckGrounding] method.

Inherits from Protobuf::Message.

Accessors

SEE ALSO

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

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.