Service Client: Google::Cloud::Vectorsearch::V1beta::VectorsearchService::VectorSearchServiceClient

Client stub representing the remote VectorSearchService 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::VectorsearchService - Compiled Protocol Buffers messages for google/cloud/vectorsearch/v1beta/vectorsearch_service.proto

SYNOPSIS

use Google::Cloud::Vectorsearch::V1beta::VectorsearchService;

my $msg = Google::Cloud::Vectorsearch::V1beta::VectorsearchService::Collection->new({
    name => $name,
    display_name => $display_name,
    description => $description,
    create_time => $create_time,
});

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

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

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/vectorsearch/v1beta/vectorsearch_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::VectorsearchService::Collection

Message describing Collection object

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Identifier. name of resource

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

    Type: String

    Optional. User-specified display name of the collection

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

    Type: String

    Optional. User-specified description of the collection

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. [Output only] Create time stamp

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. [Output only] Update time stamp

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

    Type: Message (Google::Cloud::Vectorsearch::V1beta::VectorsearchService::Collection::LabelsEntry)

    Optional. Labels as key value pairs.

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

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

    Optional. Deprecated: JSON Schema for data. Please use data_schema instead.

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

    Type: Message (Google::Cloud::Vectorsearch::V1beta::VectorsearchService::Collection::VectorSchemaEntry)

    Optional. Schema for vector fields. Only vector fields in this schema will be searchable. Field names must contain only alphanumeric characters, underscores, and hyphens.

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

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

    Optional. JSON Schema for data. Field names must contain only alphanumeric characters, underscores, and hyphens. The schema must be compliant with [JSON Schema Draft 7](https://json-schema.org/draft-07/schema).

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

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

    Optional. Immutable. Specifies the customer-managed encryption key spec for a Collection. If set, this Collection and all sub-resources of this Collection will be secured by this key.

Google::Cloud::Vectorsearch::V1beta::VectorsearchService::VectorField

Message describing a vector field.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Vectorsearch::V1beta::VectorsearchService::DenseVectorField

Message describing a dense vector field.

Inherits from Protobuf::Message.

Accessors

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

    Type: Int32

    Dimensionality of the vector field.

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

    Type: Message (Google::Cloud::Vectorsearch::V1beta::EmbeddingConfig::VertexEmbeddingConfig)

    Optional. Configuration for generating embeddings for the vector field. If not specified, the embedding field must be populated in the DataObject.

Google::Cloud::Vectorsearch::V1beta::VectorsearchService::SparseVectorField

Message describing a sparse vector field.

Inherits from Protobuf::Message.

Google::Cloud::Vectorsearch::V1beta::VectorsearchService::ListCollectionsRequest

Message for requesting list of Collections

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Parent value for ListCollectionsRequest

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

    Type: Int32

    Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.

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

    Type: String

    Optional. A token identifying a page of results the server should return.

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

    Type: String

    Optional. Filtering results

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

    Type: String

    Optional. Hint for how to order the results

Google::Cloud::Vectorsearch::V1beta::VectorsearchService::ListCollectionsResponse

Message for response to listing Collections

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Vectorsearch::V1beta::VectorsearchService::Collection)

    The list of Collection

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

    Type: String

    A token identifying a page of results the server should return.

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

    Type: String

    Unordered list. Locations that could not be reached.

Google::Cloud::Vectorsearch::V1beta::VectorsearchService::GetCollectionRequest

Message for getting a Collection

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Name of the resource

Google::Cloud::Vectorsearch::V1beta::VectorsearchService::CreateCollectionRequest

Message for creating a Collection

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Value for parent.

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

    Type: String

    Required. ID of the Collection to create. The id must be 1-63 characters long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt). Specifically, it must be 1-63 characters long and match the regular expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?`.

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

    Type: Message (Google::Cloud::Vectorsearch::V1beta::VectorsearchService::Collection)

    Required. The resource being created

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

    Type: String

    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

    For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

    The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Google::Cloud::Vectorsearch::V1beta::VectorsearchService::UpdateCollectionRequest

Message for updating a Collection

Inherits from Protobuf::Message.

Accessors

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

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

    Optional. Field mask is used to specify the fields to be overwritten in the Collection resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields present in the request will be overwritten.

    The following fields support update: `display_name`, `description`, `labels`, `data_schema`, `vector_schema`. For `data_schema` and `vector_schema`, fields can only be added, not deleted, but `vertex_embedding_config` in `vector_schema` can be added or removed. Partial updates for `data_schema` and `vector_schema` are also supported by using sub-field paths in `update_mask`, e.g. `data_schema.properties.foo` or `vector_schema.my_vector_field`.

    If `*` is provided in the update_mask, full replacement will be performed.

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

    Type: Message (Google::Cloud::Vectorsearch::V1beta::VectorsearchService::Collection)

    Required. The resource being updated

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

    Type: String

    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

    For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

    The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Google::Cloud::Vectorsearch::V1beta::VectorsearchService::DeleteCollectionRequest

Message for deleting a Collection

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Name of the resource

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

    Type: String

    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request.

    For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

    The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

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

    Type: Bool

    Optional. If set to true, any Indexes and DataObjects from this Collection will also be deleted. (Otherwise, the request will only work if the Collection has no Indexes and DataObjects.)

Google::Cloud::Vectorsearch::V1beta::VectorsearchService::Index

Message describing Index object

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Vectorsearch::V1beta::VectorsearchService::CreateIndexRequest

Message for creating an Index.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

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

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

    Type: String

    Required. ID of the Index to create. The id must be 1-63 characters long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt). Specifically, it must be 1-63 characters long and match the regular expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?`.

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

    Type: Message (Google::Cloud::Vectorsearch::V1beta::VectorsearchService::Index)

    Required. The resource being created

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

    Type: String

    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

    For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

    The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Google::Cloud::Vectorsearch::V1beta::VectorsearchService::UpdateIndexRequest

Message for updating an Index.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Vectorsearch::V1beta::VectorsearchService::Index)

    Required. The resource being updated.

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

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

    Optional. Specifies the fields to be overwritten in the Index resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields present in the request with non-empty values will be overwritten.

    The following fields support update: * `display_name` * `description` * `labels` * `dedicated_infrastructure.autoscaling_spec.min_replica_count` * `dedicated_infrastructure.autoscaling_spec.max_replica_count`

    If `*` is provided in the `update_mask`, full replacement of mutable fields will be performed.

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

    Type: String

    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

    For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

    The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Google::Cloud::Vectorsearch::V1beta::VectorsearchService::DeleteIndexRequest

Message for deleting an Index.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The resource name of the Index to delete. Format: `projects/{project}/locations/{location}/collections/{collection}/indexes/{index}`

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

    Type: String

    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

    For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

    The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Google::Cloud::Vectorsearch::V1beta::VectorsearchService::ListIndexesRequest

Message for requesting list of Indexes

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Parent value for ListIndexesRequest

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

    Type: Int32

    Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.

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

    Type: String

    Optional. A token identifying a page of results the server should return.

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

    Type: String

    Optional. Filtering results

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

    Type: String

    Optional. Hint for how to order the results

Google::Cloud::Vectorsearch::V1beta::VectorsearchService::ListIndexesResponse

Message for response to listing Indexes

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Vectorsearch::V1beta::VectorsearchService::GetIndexRequest

Message for getting an Index

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Name of the resource

Google::Cloud::Vectorsearch::V1beta::VectorsearchService::OperationMetadata

Represents the metadata of the long-running operation.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time the operation was created.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time the operation finished running.

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

    Type: String

    Output only. Server-defined resource path for the target of the operation.

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

    Type: String

    Output only. Name of the verb executed by the operation.

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

    Type: String

    Output only. Human-readable status of the operation, if any.

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

    Type: Bool

    Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have [google.longrunning.Operation.error][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of `1`, corresponding to `Code.CANCELLED`.

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

    Type: String

    Output only. API version used to start the operation.

Google::Cloud::Vectorsearch::V1beta::VectorsearchService::ImportDataObjectsRequest

Request message for [VectorSearchService.ImportDataObjects][google.cloud.vectorsearch.v1beta.VectorSearchService.ImportDataObjects].

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Vectorsearch::V1beta::VectorsearchService::ImportDataObjectsMetadata

Metadata for [VectorSearchService.ImportDataObjects][google.cloud.vectorsearch.v1beta.VectorSearchService.ImportDataObjects].

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time the operation was created.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time the operation was last updated.

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

    Type: Int64

    Output only. Number of DataObjects that were processed successfully.

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

    Type: Int64

    Output only. Number of DataObjects that failed during processing.

Google::Cloud::Vectorsearch::V1beta::VectorsearchService::ImportDataObjectsResponse

Response for [VectorSearchService.ImportDataObjects][google.cloud.vectorsearch.v1beta.VectorSearchService.ImportDataObjects].

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Vectorsearch::V1beta::VectorsearchService::ExportDataObjectsRequest

Request message for [VectorSearchService.ExportDataObjects][google.cloud.vectorsearch.v1beta.VectorSearchService.ExportDataObjects].

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Vectorsearch::V1beta::VectorsearchService::ExportDataObjectsRequest::GcsExportDestination)

    The Cloud Storage location where user wants to export Data Objects.

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

    Type: String

    Required. The resource name of the Collection from which we want to export Data Objects. Format: `projects/{project}/locations/{location}/collections/{collection}`.

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

    Type: Message (Google::Cloud::Vectorsearch::V1beta::VectorsearchService::ExportDataObjectsRequest::FieldFilter)

    Optional. Restricts which top-level Data Object fields appear in each exported JSONL record. If unset, every field is exported (the existing behavior). The primary use case is excluding the per-object `etag` so that the exported records can be imported into a Collection in a different region without optimistic-concurrency conflicts.

    Allowed field names are `id`, `data`, `vectors`, `etag`.

Google::Cloud::Vectorsearch::V1beta::VectorsearchService::ExportDataObjectsMetadata

Metadata for the ExportDataObjects LRO.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Vectorsearch::V1beta::VectorsearchService::ExportDataObjectsResponse

Response for the ExportDataObjects LRO.

Inherits from Protobuf::Message.

Google::Cloud::Vectorsearch::V1beta::VectorsearchService::DedicatedInfrastructure

Represents dedicated infrastructure for the index.

Inherits from Protobuf::Message.

Accessors

Enum: DedicatedInfrastructure::Mode

  • MODE_UNSPECIFIED => 0

  • STORAGE_OPTIMIZED => 1

  • PERFORMANCE_OPTIMIZED => 2

Google::Cloud::Vectorsearch::V1beta::VectorsearchService::DenseScannIndex

Dense ScaNN index configuration.

Inherits from Protobuf::Message.

Accessors

Enum: DenseScannIndex::FeatureNormType

  • FEATURE_NORM_TYPE_UNSPECIFIED => 0

  • NONE => 1

  • UNIT_L2_NORM => 2

SEE ALSO

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

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.