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

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

Message describing a vector field.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#dense_vector

def dense_vector() -> ::Google::Cloud::VectorSearch::V1::DenseVectorField
Returns
  • (::Google::Cloud::VectorSearch::V1::DenseVectorField) — Dense vector field.

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

#dense_vector=

def dense_vector=(value) -> ::Google::Cloud::VectorSearch::V1::DenseVectorField
Parameter
  • value (::Google::Cloud::VectorSearch::V1::DenseVectorField) — Dense vector field.

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

Returns
  • (::Google::Cloud::VectorSearch::V1::DenseVectorField) — Dense vector field.

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

#sparse_vector

def sparse_vector() -> ::Google::Cloud::VectorSearch::V1::SparseVectorField
Returns

#sparse_vector=

def sparse_vector=(value) -> ::Google::Cloud::VectorSearch::V1::SparseVectorField
Parameter
  • value (::Google::Cloud::VectorSearch::V1::SparseVectorField) — Sparse vector field.

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

Returns