Google Cloud Vector Search V1 Client - Class VectorField (0.2.0)

Reference documentation and code samples for the Google Cloud Vector Search V1 Client class VectorField.

Message describing a vector field.

Generated from protobuf message google.cloud.vectorsearch.v1.VectorField

Namespace

Google \ Cloud \ VectorSearch \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ dense_vector
DenseVectorField

Dense vector field.

↳ sparse_vector
SparseVectorField

Sparse vector field.

getDenseVector

Dense vector field.

Returns
Type
Description

hasDenseVector

setDenseVector

Dense vector field.

Parameter
Name
Description
Returns
Type
Description
$this

getSparseVector

Sparse vector field.

Returns
Type
Description

hasSparseVector

setSparseVector

Sparse vector field.

Parameter
Name
Description
Returns
Type
Description
$this

getVectorTypeConfig

Returns
Type
Description
string
Create a Mobile Website
View Site in Mobile | Classic
Share by: