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

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

Message describing a dense vector field.

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

Namespace

Google \ Cloud \ VectorSearch \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ dimensions int

Dimensionality of the vector field.

↳ vertex_embedding_config VertexEmbeddingConfig

Optional. Configuration for generating embeddings for the vector field. If not specified, the embedding field must be populated in the DataObject.

getDimensions

Dimensionality of the vector field.

Returns
Type Description
int

setDimensions

Dimensionality of the vector field.

Parameter
Name Description
var int
Returns
Type Description
$this

getVertexEmbeddingConfig

Optional. Configuration for generating embeddings for the vector field. If not specified, the embedding field must be populated in the DataObject.

Returns
Type Description
VertexEmbeddingConfig|null

hasVertexEmbeddingConfig

clearVertexEmbeddingConfig

setVertexEmbeddingConfig

Optional. Configuration for generating embeddings for the vector field. If not specified, the embedding field must be populated in the DataObject.

Parameter
Name Description
var VertexEmbeddingConfig
Returns
Type Description
$this