googleapis/google/cloud/vectorsearch/v1/common.proto
Google APIs 27ffde22e7 feat: Vector Search: Release v1 client libraries
PiperOrigin-RevId: 871250899
2026-02-17 04:45:04 -08:00

37 lines
1.3 KiB
Protocol Buffer

// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
syntax = "proto3";
package google.cloud.vectorsearch.v1;
option csharp_namespace = "Google.Cloud.VectorSearch.V1";
option go_package = "cloud.google.com/go/vectorsearch/apiv1/vectorsearchpb;vectorsearchpb";
option java_multiple_files = true;
option java_outer_classname = "CommonProto";
option java_package = "com.google.cloud.vectorsearch.v1";
option php_namespace = "Google\\Cloud\\VectorSearch\\V1";
option ruby_package = "Google::Cloud::VectorSearch::V1";
// Distance metric for vector search.
enum DistanceMetric {
// Default value, distance metric is not specified.
DISTANCE_METRIC_UNSPECIFIED = 0;
// Dot product distance metric.
DOT_PRODUCT = 1;
// Cosine distance metric.
COSINE_DISTANCE = 2;
}