Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class EmbedContentRequest.
Request message for PredictionService.EmbedContent .
Generated from protobuf message google.cloud.aiplatform.v1.EmbedContentRequest
Namespace
Google \ Cloud \ AIPlatform \ V1Methods
__construct
Constructor.
data
mixed
getModel
Required. The name of the publisher model requested to serve the
prediction. Format: projects/{project}/locations/{location}/publishers/*/models/*
string
hasModel
clearModel
setModel
Required. The name of the publisher model requested to serve the
prediction. Format: projects/{project}/locations/{location}/publishers/*/models/*
var
string
$this
getContent
Required. Input content to be embedded.
hasContent
clearContent
setContent
Required. Input content to be embedded.
$this
getTitle
Optional. Deprecated: Please use EmbedContentConfig.title instead.
The title for the text.
string
hasTitle
clearTitle
setTitle
Optional. Deprecated: Please use EmbedContentConfig.title instead.
The title for the text.
var
string
$this
getTaskType
Optional. Deprecated: Please use EmbedContentConfig.task_type instead.
The task type of the embedding.
int
hasTaskType
clearTaskType
setTaskType
Optional. Deprecated: Please use EmbedContentConfig.task_type instead.
The task type of the embedding.
var
int
$this
getOutputDimensionality
Optional. Deprecated: Please use EmbedContentConfig.output_dimensionality instead. Reduced dimension for the output embedding. If set, excessive values in the output embedding are truncated from the end.
int
hasOutputDimensionality
clearOutputDimensionality
setOutputDimensionality
Optional. Deprecated: Please use EmbedContentConfig.output_dimensionality instead. Reduced dimension for the output embedding. If set, excessive values in the output embedding are truncated from the end.
var
int
$this
getAutoTruncate
Optional. Deprecated: Please use EmbedContentConfig.auto_truncate instead.
Whether to silently truncate the input content if it's longer than the maximum sequence length.
bool
hasAutoTruncate
clearAutoTruncate
setAutoTruncate
Optional. Deprecated: Please use EmbedContentConfig.auto_truncate instead.
Whether to silently truncate the input content if it's longer than the maximum sequence length.
var
bool
$this
getEmbedContentConfig
Optional. Configuration for the EmbedContent request.
hasEmbedContentConfig
clearEmbedContentConfig
setEmbedContentConfig
Optional. Configuration for the EmbedContent request.
$this
static::build
model
string
Required. The name of the publisher model requested to serve the
prediction. Format: projects/{project}/locations/{location}/publishers/*/models/*
content

