Google Cloud Ai Platform V1 Client - Class EmbedContentResponse (1.43.0)

Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class EmbedContentResponse.

Response message for PredictionService.EmbedContent.

Generated from protobuf message google.cloud.aiplatform.v1.EmbedContentResponse

Namespace

Google \ Cloud \ AIPlatform \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ embedding EmbedContentResponse\Embedding

The embedding generated from the input content.

↳ usage_metadata UsageMetadata

Metadata about the response(s).

↳ truncated bool

Whether the input content was truncated before generating the embedding.

getEmbedding

The embedding generated from the input content.

Returns
Type Description
EmbedContentResponse\Embedding|null

hasEmbedding

clearEmbedding

setEmbedding

The embedding generated from the input content.

Parameter
Name Description
var EmbedContentResponse\Embedding
Returns
Type Description
$this

getUsageMetadata

Metadata about the response(s).

Returns
Type Description
UsageMetadata|null

hasUsageMetadata

clearUsageMetadata

setUsageMetadata

Metadata about the response(s).

Parameter
Name Description
var UsageMetadata
Returns
Type Description
$this

getTruncated

Whether the input content was truncated before generating the embedding.

Returns
Type Description
bool

setTruncated

Whether the input content was truncated before generating the embedding.

Parameter
Name Description
var bool
Returns
Type Description
$this