autoTruncate = $autoTruncate; } /** * @deprecated * @return bool */ public function getAutoTruncate() { return $this->autoTruncate; } /** * Required. The content to be embedded. * * @param GoogleCloudAiplatformV1Content $content */ public function setContent(GoogleCloudAiplatformV1Content $content) { $this->content = $content; } /** * @return GoogleCloudAiplatformV1Content */ public function getContent() { return $this->content; } /** * Optional. Configuration for the EmbedContent request. * * @param GoogleCloudAiplatformV1EmbedContentRequestEmbedContentConfig $embedContentConfig */ public function setEmbedContentConfig(GoogleCloudAiplatformV1EmbedContentRequestEmbedContentConfig $embedContentConfig) { $this->embedContentConfig = $embedContentConfig; } /** * @return GoogleCloudAiplatformV1EmbedContentRequestEmbedContentConfig */ public function getEmbedContentConfig() { return $this->embedContentConfig; } /** * 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. * * @deprecated * @param int $outputDimensionality */ public function setOutputDimensionality($outputDimensionality) { $this->outputDimensionality = $outputDimensionality; } /** * @deprecated * @return int */ public function getOutputDimensionality() { return $this->outputDimensionality; } /** * Optional. Deprecated: Please use EmbedContentConfig.task_type instead. The * task type of the embedding. * * Accepted values: UNSPECIFIED, RETRIEVAL_QUERY, RETRIEVAL_DOCUMENT, * SEMANTIC_SIMILARITY, CLASSIFICATION, CLUSTERING, QUESTION_ANSWERING, * FACT_VERIFICATION, CODE_RETRIEVAL_QUERY * * @deprecated * @param self::TASK_TYPE_* $taskType */ public function setTaskType($taskType) { $this->taskType = $taskType; } /** * @deprecated * @return self::TASK_TYPE_* */ public function getTaskType() { return $this->taskType; } /** * Optional. Deprecated: Please use EmbedContentConfig.title instead. The * title for the text. * * @deprecated * @param string $title */ public function setTitle($title) { $this->title = $title; } /** * @deprecated * @return string */ public function getTitle() { return $this->title; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(GoogleCloudAiplatformV1EmbedContentRequest::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1EmbedContentRequest');