Reference documentation and code samples for the Vertex AI V1 API class Google::Cloud::AIPlatform::V1::EmbedContentResponse.
Response message for PredictionService.EmbedContent.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#embedding
def embedding() -> ::Google::Cloud::AIPlatform::V1::EmbedContentResponse::Embedding
Returns
- (::Google::Cloud::AIPlatform::V1::EmbedContentResponse::Embedding) — The embedding generated from the input content.
#embedding=
def embedding=(value) -> ::Google::Cloud::AIPlatform::V1::EmbedContentResponse::Embedding
Parameter
- value (::Google::Cloud::AIPlatform::V1::EmbedContentResponse::Embedding) — The embedding generated from the input content.
Returns
- (::Google::Cloud::AIPlatform::V1::EmbedContentResponse::Embedding) — The embedding generated from the input content.
#truncated
def truncated() -> ::Boolean
Returns
- (::Boolean) — Whether the input content was truncated before generating the embedding.
#truncated=
def truncated=(value) -> ::Boolean
Parameter
- value (::Boolean) — Whether the input content was truncated before generating the embedding.
Returns
- (::Boolean) — Whether the input content was truncated before generating the embedding.
#usage_metadata
def usage_metadata() -> ::Google::Cloud::AIPlatform::V1::UsageMetadata
Returns
- (::Google::Cloud::AIPlatform::V1::UsageMetadata) — Usage metadata about the response(s).
#usage_metadata=
def usage_metadata=(value) -> ::Google::Cloud::AIPlatform::V1::UsageMetadata
Parameter
- value (::Google::Cloud::AIPlatform::V1::UsageMetadata) — Usage metadata about the response(s).
Returns
- (::Google::Cloud::AIPlatform::V1::UsageMetadata) — Usage metadata about the response(s).