Vector Search V1 API - Class Google::Cloud::VectorSearch::V1::Vector (v0.1.0)

Reference documentation and code samples for the Vector Search V1 API class Google::Cloud::VectorSearch::V1::Vector.

A vector which can be either dense or sparse.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#dense

def dense() -> ::Google::Cloud::VectorSearch::V1::DenseVector
Returns
  • (::Google::Cloud::VectorSearch::V1::DenseVector) — A dense vector.

    Note: The following fields are mutually exclusive: dense, sparse. If a field in that set is populated, all other fields in the set will automatically be cleared.

#dense=

def dense=(value) -> ::Google::Cloud::VectorSearch::V1::DenseVector
Parameter
  • value (::Google::Cloud::VectorSearch::V1::DenseVector) — A dense vector.

    Note: The following fields are mutually exclusive: dense, sparse. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Google::Cloud::VectorSearch::V1::DenseVector) — A dense vector.

    Note: The following fields are mutually exclusive: dense, sparse. If a field in that set is populated, all other fields in the set will automatically be cleared.

#sparse

def sparse() -> ::Google::Cloud::VectorSearch::V1::SparseVector
Returns

#sparse=

def sparse=(value) -> ::Google::Cloud::VectorSearch::V1::SparseVector
Parameter
  • value (::Google::Cloud::VectorSearch::V1::SparseVector) — A sparse vector.

    Note: The following fields are mutually exclusive: sparse, dense. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns