Service Client: Google::Cloud::Dataqna::V1alpha::AutoSuggestionService::AutoSuggestionServiceClient

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

target

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

credentials

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

NAME

Google::Cloud::Dataqna::V1alpha::AutoSuggestionService - Compiled Protocol Buffers messages for google/cloud/dataqna/v1alpha/auto_suggestion_service.proto

SYNOPSIS

use Google::Cloud::Dataqna::V1alpha::AutoSuggestionService;

my $msg = Google::Cloud::Dataqna::V1alpha::AutoSuggestionService::SuggestQueriesRequest->new({
    parent => $parent,
    scopes => $scopes,
    query => $query,
    suggestion_types => $suggestion_types,
});

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

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Dataqna::V1alpha::AutoSuggestionService::SuggestQueriesRequest->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/dataqna/v1alpha/auto_suggestion_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::Dataqna::V1alpha::AutoSuggestionService::SuggestQueriesRequest

Request for query suggestions.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The parent of the suggestion query is the resource denoting the project and location.

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

    Type: String

    The scopes to which this search is restricted. The only supported scope pattern is `//bigquery.googleapis.com/projects/{GCP-PROJECT-ID}/datasets/{DATASET-ID}/tables/{TABLE-ID}`.

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

    Type: String

    User query for which to generate suggestions. If the query is empty, zero state suggestions are returned. This allows UIs to display suggestions right away, helping the user to get a sense of what a query might look like.

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

    Type: Enum (Google::Cloud::Dataqna::V1alpha::SuggestionType)

    The requested suggestion type. Multiple suggestion types can be requested, but there is no guarantee that the service will return suggestions for each type. Suggestions for a requested type might rank lower than suggestions for other types and the service may decide to cut these suggestions off.

Google::Cloud::Dataqna::V1alpha::AutoSuggestionService::Suggestion

A suggestion for a query with a ranking score.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Dataqna::V1alpha::AutoSuggestionService::SuggestionInfo)

    Detailed information about the suggestion.

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

    Type: Double

    The score of the suggestion. This can be used to define ordering in UI. The score represents confidence in the suggestion where higher is better. All score values must be in the range [0, 1).

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

    Type: Enum (Google::Cloud::Dataqna::V1alpha::SuggestionType)

    The type of the suggestion.

Google::Cloud::Dataqna::V1alpha::AutoSuggestionService::SuggestionInfo

Detailed information about the suggestion.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Dataqna::V1alpha::AutoSuggestionService::SuggestQueriesResponse

Response to SuggestQueries.

Inherits from Protobuf::Message.

Accessors

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Dataqna::V1alpha::AutoSuggestionService::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.