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:
StringIdentifier. name of resource
$msg->display_name()/$msg->display_name($value)Type:
StringOptional. User-specified display name of the collection
$msg->description()/$msg->description($value)Type:
StringOptional. 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
$msg->dense_vector()/$msg->dense_vector($value)Type:
Message(Google::Cloud::Vectorsearch::V1beta::VectorsearchService::DenseVectorField)Dense vector field.
$msg->sparse_vector()/$msg->sparse_vector($value)Type:
Message(Google::Cloud::Vectorsearch::V1beta::VectorsearchService::SparseVectorField)Sparse vector field.
Google::Cloud::Vectorsearch::V1beta::VectorsearchService::DenseVectorField
Message describing a dense vector field.
Inherits from Protobuf::Message.
Accessors
$msg->dimensions()/$msg->dimensions($value)Type:
Int32Dimensionality 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:
StringRequired. Parent value for ListCollectionsRequest
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. 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:
StringOptional. A token identifying a page of results the server should return.
$msg->filter()/$msg->filter($value)Type:
StringOptional. Filtering results
$msg->order_by()/$msg->order_by($value)Type:
StringOptional. 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:
StringA token identifying a page of results the server should return.
$msg->unreachable()/$msg->unreachable($value)Type:
StringUnordered 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:
StringRequired. 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:
StringRequired. Value for parent.
$msg->collection_id()/$msg->collection_id($value)Type:
StringRequired. 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:
StringOptional. 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:
StringOptional. 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:
StringRequired. Name of the resource
$msg->request_id()/$msg->request_id($value)Type:
StringOptional. 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:
BoolOptional. 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
$msg->dedicated_infrastructure()/$msg->dedicated_infrastructure($value)Type:
Message(Google::Cloud::Vectorsearch::V1beta::VectorsearchService::DedicatedInfrastructure)Optional. Dedicated infrastructure for the index.
$msg->dense_scann()/$msg->dense_scann($value)Type:
Message(Google::Cloud::Vectorsearch::V1beta::VectorsearchService::DenseScannIndex)Optional. Dense ScaNN index.
$msg->name()/$msg->name($value)Type:
StringIdentifier. name of resource
$msg->display_name()/$msg->display_name($value)Type:
StringOptional. User-specified display name of the index
$msg->description()/$msg->description($value)Type:
StringOptional. User-specified description of the index
$msg->labels()/$msg->labels($value)Type:
Message(Google::Cloud::Vectorsearch::V1beta::VectorsearchService::Index::LabelsEntry)Optional. Labels as key value pairs.
$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->distance_metric()/$msg->distance_metric($value)Type:
Enum(Google::Cloud::Vectorsearch::V1beta::DistanceMetric)Optional. Distance metric used for indexing. If not specified, will default to DOT_PRODUCT.
$msg->index_field()/$msg->index_field($value)Type:
StringRequired. The collection schema field to index.
$msg->filter_fields()/$msg->filter_fields($value)Type:
StringOptional. The fields to push into the index to enable fast ANN inline filtering.
$msg->store_fields()/$msg->store_fields($value)Type:
StringOptional. The fields to push into the index to enable inline data retrieval.
Google::Cloud::Vectorsearch::V1beta::VectorsearchService::CreateIndexRequest
Message for creating an Index.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. 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:
StringRequired. 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:
StringOptional. 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:
StringOptional. 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:
StringRequired. 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:
StringOptional. 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:
StringRequired. Parent value for ListIndexesRequest
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. 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:
StringOptional. A token identifying a page of results the server should return.
$msg->filter()/$msg->filter($value)Type:
StringOptional. Filtering results
$msg->order_by()/$msg->order_by($value)Type:
StringOptional. Hint for how to order the results
Google::Cloud::Vectorsearch::V1beta::VectorsearchService::ListIndexesResponse
Message for response to listing Indexes
Inherits from Protobuf::Message.
Accessors
$msg->indexes()/$msg->indexes($value)Type:
Message(Google::Cloud::Vectorsearch::V1beta::VectorsearchService::Index)The list of Index
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token identifying a page of results the server should return.
Google::Cloud::Vectorsearch::V1beta::VectorsearchService::GetIndexRequest
Message for getting an Index
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. 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:
StringOutput only. Server-defined resource path for the target of the operation.
$msg->verb()/$msg->verb($value)Type:
StringOutput only. Name of the verb executed by the operation.
$msg->status_message()/$msg->status_message($value)Type:
StringOutput only. Human-readable status of the operation, if any.
$msg->requested_cancellation()/$msg->requested_cancellation($value)Type:
BoolOutput 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:
StringOutput 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
$msg->gcs_import()/$msg->gcs_import($value)Type:
Message(Google::Cloud::Vectorsearch::V1beta::VectorsearchService::ImportDataObjectsRequest::GcsImportConfig)The Cloud Storage location of the input content.
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of the Collection to import DataObjects into. Format: `projects/{project}/locations/{location}/collections/{collection}`.
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:
Int64Output only. Number of DataObjects that were processed successfully.
$msg->failure_count()/$msg->failure_count($value)Type:
Int64Output 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
$msg->status()/$msg->status($value)Type:
Message(Google::Rpc::Status::Status)Status of the LRO
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:
StringRequired. 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
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time the operation was created.
$msg->finish_time()/$msg->finish_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time the operation finished.
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
$msg->mode()/$msg->mode($value)Type:
Enum(Google::Cloud::Vectorsearch::V1beta::DedicatedInfrastructure::Mode)Optional. Mode of the dedicated infrastructure.
$msg->autoscaling_spec()/$msg->autoscaling_spec($value)Type:
Message(Google::Cloud::Vectorsearch::V1beta::VectorsearchService::DedicatedInfrastructure::AutoscalingSpec)Optional. Autoscaling specification.
Enum: DedicatedInfrastructure::Mode
MODE_UNSPECIFIED=>0STORAGE_OPTIMIZED=>1PERFORMANCE_OPTIMIZED=>2
Google::Cloud::Vectorsearch::V1beta::VectorsearchService::DenseScannIndex
Dense ScaNN index configuration.
Inherits from Protobuf::Message.
Accessors
$msg->feature_norm_type()/$msg->feature_norm_type($value)Type:
Enum(Google::Cloud::Vectorsearch::V1beta::DenseScannIndex::FeatureNormType)Optional. Feature norm type.
Enum: DenseScannIndex::FeatureNormType
FEATURE_NORM_TYPE_UNSPECIFIED=>0NONE=>1UNIT_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.