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

hasEmbedding

clearEmbedding

setEmbedding

The embedding generated from the input content.

Parameter
Name
Description
Returns
Type
Description
$this

Metadata about the response(s).

Returns
Type
Description

Metadata about the response(s).

Parameter
Name
Description
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
Create a Mobile Website
View Site in Mobile | Classic
Share by: