Service Client: Google::Cloud::Vectorsearch::V1beta::DataObjectSearchService::DataObjectSearchServiceClient

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

target

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

credentials

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

NAME

Google::Cloud::Vectorsearch::V1beta::DataObjectSearchService - Compiled Protocol Buffers messages for google/cloud/vectorsearch/v1beta/data_object_search_service.proto

SYNOPSIS

use Google::Cloud::Vectorsearch::V1beta::DataObjectSearchService;

my $msg = Google::Cloud::Vectorsearch::V1beta::DataObjectSearchService::OutputFields->new({
    data_fields => $data_fields,
    vector_fields => $vector_fields,
    metadata_fields => $metadata_fields,
});

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

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Vectorsearch::V1beta::DataObjectSearchService::OutputFields->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/vectorsearch/v1beta/data_object_search_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::Vectorsearch::V1beta::DataObjectSearchService::OutputFields

Defines a output fields struct for data in DataObject.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Optional. The fields from the data fields to include in the output.

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

    Type: String

    Optional. The fields from the vector fields to include in the output.

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

    Type: String

    Optional. The fields from the DataObject metadata to include in the output.

Google::Cloud::Vectorsearch::V1beta::DataObjectSearchService::SearchHint

Represents a hint to the search index engine.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Vectorsearch::V1beta::DataObjectSearchService::Search

A single search request within a batch operation.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Vectorsearch::V1beta::DataObjectSearchService::VectorSearch

Defines a search operation using a query vector.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Vectorsearch::V1beta::DataObjectSearchService::SemanticSearch

Defines a semantic search operation.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Optional. The query text, which is used to generate an embedding according to the embedding model specified in the collection config.

    Required when using the text search mode.

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

    Type: String

    Required. The vector field to search.

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

    Type: Enum (Google::Cloud::Vectorsearch::V1beta::EmbeddingTaskType)

    Optional. The task type of the query embedding. Must be specified for text-only embedding models, see <https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/embeddings/task-types> Not needed for multi modal embedding models, see <https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/embeddings/get-multimodal-embeddings#specify-task-instructions>

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

    Type: Message (Google::Cloud::Vectorsearch::V1beta::DataObjectSearchService::OutputFields)

    Optional. The fields to return in the search results.

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

    Type: Message (Google::Protobuf::Struct::Struct)

    Optional. A JSON filter expression, e.g. {"genre": {"$eq": "sci-fi"}}, represented as a google.protobuf.Struct.

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

    Type: Int32

    Optional. The number of data objects to return.

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

    Type: Message (Google::Cloud::Vectorsearch::V1beta::DataObjectSearchService::SearchHint)

    Optional. Sets the search hint. If no strategy is specified, the service will use an index if one is available, and fall back to KNN search otherwise.

Google::Cloud::Vectorsearch::V1beta::DataObjectSearchService::TextSearch

Defines a text search operation.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Optional. The query text. Required when using the default text search mode.

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

    Type: String

    Optional. The data field names to search. Required when using the default text search mode.

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

    Type: Message (Google::Cloud::Vectorsearch::V1beta::DataObjectSearchService::OutputFields)

    Optional. The fields to return in the search results.

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

    Type: Int32

    Optional. The number of results to return.

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

    Type: Message (Google::Protobuf::Struct::Struct)

    Optional. A JSON filter expression, e.g. `{"genre": {"$eq": "sci-fi"}}`, represented as a `google.protobuf.Struct`.

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

    Type: Message (Google::Cloud::Vectorsearch::V1beta::DataObjectSearchService::StructuredQuery)

    Optional. Structured query definition. When set, `search_text` and `data_field_names` must be left empty; otherwise the request will be rejected with an `INVALID_ARGUMENT` error. Conversely, when `structured_query` is unset, both `search_text` and `data_field_names` are required.

Google::Cloud::Vectorsearch::V1beta::DataObjectSearchService::StructuredQuery

A structured query for text search. Allows expressing field-targeted text queries combined via boolean operators, with optional per-node boosting.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Vectorsearch::V1beta::DataObjectSearchService::TextQuery

A leaf-level text query targeting one or more data fields. When multiple fields are specified, this is equivalent to combining per-field matches with an OR operator (i.e. the query matches if the text is found in any of the listed fields).

Inherits from Protobuf::Message.

Accessors

Enum: TextQuery::MatchType

  • MATCH_TYPE_UNSPECIFIED => 0

  • TEXT => 1

  • EXACT => 2

Google::Cloud::Vectorsearch::V1beta::DataObjectSearchService::QueryEnhancement

Query enhancement settings. When enabled, expands the search terms with stemming, synonyms, and spelling corrections, and removes stop words.

Inherits from Protobuf::Message.

Accessors

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

    Type: Bool

    Optional. Whether query enhancement is enabled.

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

    Type: String

    Optional. The IETF BCP 47 language tag, such as "en-US", for query enhancement. If unset, the language is detected automatically. See <https://en.wikipedia.org/wiki/IETF_language_tag>.

Google::Cloud::Vectorsearch::V1beta::DataObjectSearchService::UnaryQuery

A query that applies a unary operator to a sub-query.

Inherits from Protobuf::Message.

Accessors

Enum: UnaryQuery::Operator

  • OPERATOR_UNSPECIFIED => 0

  • NOT => 1

Google::Cloud::Vectorsearch::V1beta::DataObjectSearchService::CombinedQuery

A query that combines multiple sub-queries with a boolean operator.

Inherits from Protobuf::Message.

Accessors

Enum: CombinedQuery::Operator

  • OPERATOR_UNSPECIFIED => 0

  • AND => 1

  • OR => 2

Google::Cloud::Vectorsearch::V1beta::DataObjectSearchService::SearchDataObjectsRequest

Request for performing a single search.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Vectorsearch::V1beta::DataObjectSearchService::VectorSearch)

    A vector search operation.

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

    Type: Message (Google::Cloud::Vectorsearch::V1beta::DataObjectSearchService::SemanticSearch)

    A semantic search operation.

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

    Type: Message (Google::Cloud::Vectorsearch::V1beta::DataObjectSearchService::TextSearch)

    Optional. A text search operation.

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

    Type: String

    Required. The resource name of the Collection for which to search. Format: `projects/{project}/locations/{location}/collections/{collection}`

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

    Type: Int32

    Optional. The standard list page size. Only supported for KNN. If not set, up to search_type.top_k results will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.

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

    Type: String

    Optional. The standard list page token. Typically obtained via [SearchDataObjectsResponse.next_page_token][google.cloud.vectorsearch.v1beta.SearchDataObjectsResponse.next_page_token] of the previous [DataObjectSearchService.SearchDataObjects][google.cloud.vectorsearch.v1beta.DataObjectSearchService.SearchDataObjects] call.

Google::Cloud::Vectorsearch::V1beta::DataObjectSearchService::SearchResult

A single search result.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Vectorsearch::V1beta::DataObjectSearchService::SearchResponseMetadata

Metadata about the search execution.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Vectorsearch::V1beta::DataObjectSearchService::SearchDataObjectsResponse

Response for a search request.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Vectorsearch::V1beta::DataObjectSearchService::AggregateDataObjectsRequest

Request message for [DataObjectSearchService.AggregateDataObjects][google.cloud.vectorsearch.v1beta.DataObjectSearchService.AggregateDataObjects].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The resource name of the Collection for which to query. Format: `projects/{project}/locations/{location}/collections/{collection}`

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

    Type: Message (Google::Protobuf::Struct::Struct)

    Optional. A JSON filter expression, e.g. {"genre": {"$eq": "sci-fi"}}, represented as a google.protobuf.Struct.

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

    Type: Enum (Google::Cloud::Vectorsearch::V1beta::AggregationMethod)

    Required. The aggregation method to apply to the query.

Google::Cloud::Vectorsearch::V1beta::DataObjectSearchService::AggregateDataObjectsResponse

Response message for [DataObjectSearchService.AggregateDataObjects][google.cloud.vectorsearch.v1beta.DataObjectSearchService.AggregateDataObjects].

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Protobuf::Struct::Struct)

    Output only. The aggregated results of the query.

Google::Cloud::Vectorsearch::V1beta::DataObjectSearchService::QueryDataObjectsRequest

Request message for [DataObjectSearchService.QueryDataObjects][google.cloud.vectorsearch.v1beta.DataObjectSearchService.QueryDataObjects].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The resource name of the Collection for which to query. Format: `projects/{project}/locations/{location}/collections/{collection}`

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

    Type: Message (Google::Protobuf::Struct::Struct)

    Optional. A JSON filter expression, e.g. {"genre": {"$eq": "sci-fi"}}, represented as a google.protobuf.Struct.

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

    Type: Message (Google::Cloud::Vectorsearch::V1beta::DataObjectSearchService::OutputFields)

    Optional. Mask specifying which fields to return.

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

    Type: Int32

    Optional. The standard list page size. Default is 100. The maximum value is 1000; values above 1000 will be coerced to 1000.

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

    Type: String

    Optional. The standard list page token. Typically obtained via [QueryDataObjectsResponse.next_page_token][google.cloud.vectorsearch.v1beta.QueryDataObjectsResponse.next_page_token] of the previous [DataObjectSearchService.QueryDataObjects][google.cloud.vectorsearch.v1beta.DataObjectSearchService.QueryDataObjects] call.

Google::Cloud::Vectorsearch::V1beta::DataObjectSearchService::QueryDataObjectsResponse

Response message for [DataObjectSearchService.QueryDataObjects][google.cloud.vectorsearch.v1beta.DataObjectSearchService.QueryDataObjects].

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Vectorsearch::V1beta::DataObject::DataObject)

    Output only. The list of dataObjects that match the query.

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

    Type: String

    Output only. A token to retrieve next page of results. Pass to [DataObjectSearchService.QueryDataObjectsRequest.page_token][] to obtain that page.

Google::Cloud::Vectorsearch::V1beta::DataObjectSearchService::BatchSearchDataObjectsRequest

A request to perform a batch of search operations.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Vectorsearch::V1beta::DataObjectSearchService::Ranker

Defines a ranker to combine results from multiple searches.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Vectorsearch::V1beta::DataObjectSearchService::ReciprocalRankFusion

Defines the Reciprocal Rank Fusion (RRF) algorithm for result ranking.

Inherits from Protobuf::Message.

Accessors

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

    Type: Double

    Required. The weights to apply to each search result set during fusion.

Google::Cloud::Vectorsearch::V1beta::DataObjectSearchService::VertexRanker

Defines a ranker using the Vertex AI ranking service. See <https://cloud.google.com/generative-ai-app-builder/docs/ranking> for details.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Vectorsearch::V1beta::DataObjectSearchService::VertexRanker::TextRecordSpec)

    The record spec for text search.

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

    Type: String

    Required. The model used for ranking documents. The list of available models is described in <https://docs.cloud.google.com/generative-ai-app-builder/docs/ranking#models>. Currently, only `semantic-ranker-fast@latest` is supported.

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

    Type: Int32

    Required. The number of documents to be processed for ranking.

Google::Cloud::Vectorsearch::V1beta::DataObjectSearchService::BatchSearchDataObjectsResponse

A response from a batch search operation.

Inherits from Protobuf::Message.

Accessors

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Vectorsearch::V1beta::DataObjectSearchService::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.