audioTrackExtraction = $audioTrackExtraction; } /** * @return bool */ public function getAudioTrackExtraction() { return $this->audioTrackExtraction; } /** * Optional. Whether to silently truncate the input content if it's longer * than the maximum sequence length. Only applicable to text-only embedding * models. * * @param bool $autoTruncate */ public function setAutoTruncate($autoTruncate) { $this->autoTruncate = $autoTruncate; } /** * @return bool */ public function getAutoTruncate() { return $this->autoTruncate; } /** * Optional. Whether to enable OCR for document content. * * @param bool $documentOcr */ public function setDocumentOcr($documentOcr) { $this->documentOcr = $documentOcr; } /** * @return bool */ public function getDocumentOcr() { return $this->documentOcr; } /** * Optional. Reduced dimension for the output embedding. If set, excessive * values in the output embedding are truncated from the end. * * @param int $outputDimensionality */ public function setOutputDimensionality($outputDimensionality) { $this->outputDimensionality = $outputDimensionality; } /** * @return int */ public function getOutputDimensionality() { return $this->outputDimensionality; } /** * Optional. The task type of the embedding. Only applicable to text-only * embedding models. * * Accepted values: UNSPECIFIED, RETRIEVAL_QUERY, RETRIEVAL_DOCUMENT, * SEMANTIC_SIMILARITY, CLASSIFICATION, CLUSTERING, QUESTION_ANSWERING, * FACT_VERIFICATION, CODE_RETRIEVAL_QUERY * * @param self::TASK_TYPE_* $taskType */ public function setTaskType($taskType) { $this->taskType = $taskType; } /** * @return self::TASK_TYPE_* */ public function getTaskType() { return $this->taskType; } /** * Optional. The title for the text. Only applicable to text-only embedding * models. * * @param string $title */ public function setTitle($title) { $this->title = $title; } /** * @return string */ public function getTitle() { return $this->title; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(GoogleCloudAiplatformV1EmbedContentRequestEmbedContentConfig::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1EmbedContentRequestEmbedContentConfig');