Service Client: Google::Cloud::Discoveryengine::V1::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::V1::GroundedGenerationService - Compiled Protocol Buffers messages for google/cloud/discoveryengine/v1/grounded_generation_service.proto

SYNOPSIS

use Google::Cloud::Discoveryengine::V1::GroundedGenerationService;

my $msg = Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GroundedGenerationContent->new({
    role => $role,
    parts => $parts,
});

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

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

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/discoveryengine/v1/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::V1::GroundedGenerationService::GroundedGenerationContent

Base structured datatype containing multi-part content of a message.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentRequest

Top-level message sent by the client for the `GenerateGroundedContent` method.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Discoveryengine::V1::GroundedGenerationService::GenerateGroundedContentResponse

Response for the `GenerateGroundedContent` method.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Discoveryengine::V1::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.

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

    Type: Bool

    The control flag that enables claim-level grounding score in the response.

Google::Cloud::Discoveryengine::V1::GroundedGenerationService::CheckGroundingRequest

Request message for [GroundedGenerationService.CheckGrounding][google.cloud.discoveryengine.v1.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. It can have a maximum length of 4096 tokens.

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

    Type: Message (Google::Cloud::Discoveryengine::V1::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::V1::GroundedGenerationService::CheckGroundingSpec)

    Configuration of the grounding check.

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

    Type: Message (Google::Cloud::Discoveryengine::V1::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::V1::GroundedGenerationService::CheckGroundingResponse

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

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Discoveryengine::V1::GroundedGenerationService::CitationMetadata

A collection of source attributions for a piece of content.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Discoveryengine::V1::GroundedGenerationService::Citation

Source attributions for content.

Inherits from Protobuf::Message.

Accessors

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

    Type: Int32

    Output only. Start index into the content.

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

    Type: Int32

    Output only. End index into the content.

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

    Type: String

    Output only. Url reference of the attribution.

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

    Type: String

    Output only. Title of the attribution.

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

    Type: String

    Output only. License of the attribution.

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

    Type: Message (Google::Type::Date::Date)

    Output only. Publication date of the attribution.

Enum: Citation::PhishBlockThreshold

  • PHISH_BLOCK_THRESHOLD_UNSPECIFIED => 0

  • BLOCK_LOW_AND_ABOVE => 30

  • BLOCK_MEDIUM_AND_ABOVE => 40

  • BLOCK_HIGH_AND_ABOVE => 50

  • BLOCK_HIGHER_AND_ABOVE => 55

  • BLOCK_VERY_HIGH_AND_ABOVE => 60

  • BLOCK_ONLY_EXTREMELY_HIGH => 100

SEE ALSO

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

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.