public sealed class SparseVector : IMessage<SparseVector>, IEquatable<SparseVector>, IDeepCloneable<SparseVector>, IBufferMessage, IMessageReference documentation and code samples for the Vector Search v1 API class SparseVector.
A sparse vector.
Implements
IMessageSparseVector, IEquatableSparseVector, IDeepCloneableSparseVector, IBufferMessage, IMessageNamespace
Google.Cloud.VectorSearch.V1Assembly
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 |
|