Google Cloud Discovery Engine V1beta Client - Class EmbeddingVector (0.11.3)

Reference documentation and code samples for the Google Cloud Discovery Engine V1beta Client class EmbeddingVector.

Embedding vector.

Generated from protobuf message google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector

Namespace

Google \ Cloud \ DiscoveryEngine \ V1beta \ SearchRequest \ EmbeddingSpec

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ field_path string

Embedding field path in schema.

↳ vector array

Query embedding vector.

getFieldPath

Embedding field path in schema.

Returns
Type Description
string

setFieldPath

Embedding field path in schema.

Parameter
Name Description
var string
Returns
Type Description
$this

getVector

Query embedding vector.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setVector

Query embedding vector.

Parameter
Name Description
var float[]
Returns
Type Description
$this