# Google Cloud Vector Search V1 Client - Class DenseVectorField (0.4.0)

0.4.0 (latest) 0.3.0 0.2.0 0.1.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` | `https://docs.cloud.google.com/php/docs/reference/cloud-vectorsearch/latest/V1.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** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-vectorsearch/latest/V1.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` | `https://docs.cloud.google.com/php/docs/reference/cloud-vectorsearch/latest/V1.VertexEmbeddingConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |