Vector Search v1 API - Class SparseVector (1.0.0-beta01)

public sealed class SparseVector : IMessage<SparseVector>, IEquatable<SparseVector>, IDeepCloneable<SparseVector>, IBufferMessage, IMessage

Reference documentation and code samples for the Vector Search v1 API class SparseVector.

A sparse vector.

Inheritance

object > SparseVector

Namespace

Google.Cloud.VectorSearch.V1

Assembly

Google.Cloud.VectorSearch.V1.dll

Constructors

SparseVector()

public SparseVector()

SparseVector(SparseVector)

public SparseVector(SparseVector other)
Parameter
Name Description
other SparseVector

Properties

Indices

public RepeatedField<int> Indices { get; }

Required. The corresponding indices for the values.

Property Value
Type Description
RepeatedFieldint

Values

public RepeatedField<float> Values { get; }

Required. The values of the vector.

Property Value
Type Description
RepeatedFieldSystem.Single