Service Client: Google::Cloud::Discoveryengine::V1alpha::SampleQueryService::SampleQueryServiceClient

Client stub representing the remote SampleQueryService 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::SampleQueryService - Compiled Protocol Buffers messages for google/cloud/discoveryengine/v1alpha/sample_query_service.proto

SYNOPSIS

use Google::Cloud::Discoveryengine::V1alpha::SampleQueryService;

my $msg = Google::Cloud::Discoveryengine::V1alpha::SampleQueryService::GetSampleQueryRequest->new({
    name => $name,
});

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

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

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/discoveryengine/v1alpha/sample_query_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::SampleQueryService::GetSampleQueryRequest

Request message for [SampleQueryService.GetSampleQuery][google.cloud.discoveryengine.v1alpha.SampleQueryService.GetSampleQuery] method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Full resource name of [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], such as `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.

    If the caller does not have permission to access the [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless of whether or not it exists, a PERMISSION_DENIED error is returned.

    If the requested [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] does not exist, a NOT_FOUND error is returned.

Google::Cloud::Discoveryengine::V1alpha::SampleQueryService::ListSampleQueriesRequest

Request message for [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1alpha.SampleQueryService.ListSampleQueries] method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The parent sample query set resource name, such as `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.

    If the caller does not have permission to list [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s under this sample query set, regardless of whether or not this sample query set exists, a `PERMISSION_DENIED` error is returned.

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

    Type: Int32

    Maximum number of [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s to return. If unspecified, defaults to 100. The maximum allowed value is 1000. Values above 1000 will be coerced to 1000.

    If this field is negative, an `INVALID_ARGUMENT` error is returned.

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

    Type: String

    A page token [ListSampleQueriesResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse.next_page_token], received from a previous [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1alpha.SampleQueryService.ListSampleQueries] call. Provide this to retrieve the subsequent page.

    When paginating, all other parameters provided to [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1alpha.SampleQueryService.ListSampleQueries] must match the call that provided the page token. Otherwise, an `INVALID_ARGUMENT` error is returned.

Google::Cloud::Discoveryengine::V1alpha::SampleQueryService::ListSampleQueriesResponse

Response message for [SampleQueryService.ListSampleQueries][google.cloud.discoveryengine.v1alpha.SampleQueryService.ListSampleQueries] method.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Discoveryengine::V1alpha::SampleQuery::SampleQuery)

    The [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s.

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

    Type: String

    A token that can be sent as [ListSampleQueriesRequest.page_token][google.cloud.discoveryengine.v1alpha.ListSampleQueriesRequest.page_token] to retrieve the next page. If this field is omitted, there are no subsequent pages.

Google::Cloud::Discoveryengine::V1alpha::SampleQueryService::CreateSampleQueryRequest

Request message for [SampleQueryService.CreateSampleQuery][google.cloud.discoveryengine.v1alpha.SampleQueryService.CreateSampleQuery] method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The parent resource name, such as `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.

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

    Type: Message (Google::Cloud::Discoveryengine::V1alpha::SampleQuery::SampleQuery)

    Required. The [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] to create.

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

    Type: String

    Required. The ID to use for the [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], which will become the final component of the [SampleQuery.name][google.cloud.discoveryengine.v1alpha.SampleQuery.name].

    If the caller does not have permission to create the [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless of whether or not it exists, a `PERMISSION_DENIED` error is returned.

    This field must be unique among all [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s with the same [parent][google.cloud.discoveryengine.v1alpha.CreateSampleQueryRequest.parent]. Otherwise, an `ALREADY_EXISTS` error is returned.

    This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length limit of 63 characters. Otherwise, an `INVALID_ARGUMENT` error is returned.

Google::Cloud::Discoveryengine::V1alpha::SampleQueryService::UpdateSampleQueryRequest

Request message for [SampleQueryService.UpdateSampleQuery][google.cloud.discoveryengine.v1alpha.SampleQueryService.UpdateSampleQuery] method.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Discoveryengine::V1alpha::SampleQuery::SampleQuery)

    Required. The simple query to update.

    If the caller does not have permission to update the [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless of whether or not it exists, a `PERMISSION_DENIED` error is returned.

    If the [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] to update does not exist a `NOT_FOUND` error is returned.

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

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    Indicates which fields in the provided imported 'simple query' to update. If not set, will by default update all fields.

Google::Cloud::Discoveryengine::V1alpha::SampleQueryService::DeleteSampleQueryRequest

Request message for [SampleQueryService.DeleteSampleQuery][google.cloud.discoveryengine.v1alpha.SampleQueryService.DeleteSampleQuery] method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Full resource name of [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], such as `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.

    If the caller does not have permission to delete the [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery], regardless of whether or not it exists, a `PERMISSION_DENIED` error is returned.

    If the [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery] to delete does not exist, a `NOT_FOUND` error is returned.

SEE ALSO

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

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.