NAME
Google::Cloud::Vectorsearch::V1beta::EmbeddingConfig - Compiled Protocol Buffers messages for google/cloud/vectorsearch/v1beta/embedding_config.proto
SYNOPSIS
use Google::Cloud::Vectorsearch::V1beta::EmbeddingConfig;
my $msg = Google::Cloud::Vectorsearch::V1beta::EmbeddingConfig::VertexEmbeddingConfig->new({
model_id => $model_id,
text_template => $text_template,
task_type => $task_type,
});
# Read or update a field
my $val = $msg->model_id();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Vectorsearch::V1beta::EmbeddingConfig::VertexEmbeddingConfig->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/vectorsearch/v1beta/embedding_config.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Vectorsearch::V1beta::EmbeddingConfig::VertexEmbeddingConfig
Message describing the configuration for generating embeddings for a vector field using Vertex AI embeddings API.
Inherits from Protobuf::Message.
Accessors
$msg->model_id()/$msg->model_id($value)Type:
StringRequired. Required: ID of the embedding model to use. See https://cloud.google.com/vertex-ai/generative-ai/docs/learn/models#embeddings-models for the list of supported models.
$msg->text_template()/$msg->text_template($value)Type:
StringOptional. Text template for the input to the model. The template must contain one or more references to fields in the DataObject, e.g.: "Movie Title: {title} ---- Movie Plot: {plot}".
Required when using the text-only path.
$msg->task_type()/$msg->task_type($value)Type:
Enum(Google::Cloud::Vectorsearch::V1beta::EmbeddingTaskType)Optional. Optional: Task type for the embeddings. Required for text-only embedding models, see https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/embeddings/task-types Not needed for multi modal embedding models, see https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/embeddings/get-multimodal-embeddings#specify-task-instructions
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Vectorsearch::V1beta::EmbeddingConfig::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.