All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.vertex.kotlin.inputs.AiIndexMetadataConfigAlgorithmConfigTreeAhConfigArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.vertex.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.vertex.inputs.AiIndexMetadataConfigAlgorithmConfigTreeAhConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property leafNodeEmbeddingCount Number of embeddings on each leaf node. The default value is 1000 if not set.
 * @property leafNodesToSearchPercent The default percentage of leaf nodes that any query may be searched. Must be in
 * range 1-100, inclusive. The default value is 10 (means 10%) if not set.
 */
public data class AiIndexMetadataConfigAlgorithmConfigTreeAhConfigArgs(
    public val leafNodeEmbeddingCount: Output? = null,
    public val leafNodesToSearchPercent: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.vertex.inputs.AiIndexMetadataConfigAlgorithmConfigTreeAhConfigArgs =
        com.pulumi.gcp.vertex.inputs.AiIndexMetadataConfigAlgorithmConfigTreeAhConfigArgs.builder()
            .leafNodeEmbeddingCount(leafNodeEmbeddingCount?.applyValue({ args0 -> args0 }))
            .leafNodesToSearchPercent(leafNodesToSearchPercent?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AiIndexMetadataConfigAlgorithmConfigTreeAhConfigArgs].
 */
@PulumiTagMarker
public class AiIndexMetadataConfigAlgorithmConfigTreeAhConfigArgsBuilder internal constructor() {
    private var leafNodeEmbeddingCount: Output? = null

    private var leafNodesToSearchPercent: Output? = null

    /**
     * @param value Number of embeddings on each leaf node. The default value is 1000 if not set.
     */
    @JvmName("pcifjeobaghcplua")
    public suspend fun leafNodeEmbeddingCount(`value`: Output) {
        this.leafNodeEmbeddingCount = value
    }

    /**
     * @param value The default percentage of leaf nodes that any query may be searched. Must be in
     * range 1-100, inclusive. The default value is 10 (means 10%) if not set.
     */
    @JvmName("rvqerfxqfirwbdfj")
    public suspend fun leafNodesToSearchPercent(`value`: Output) {
        this.leafNodesToSearchPercent = value
    }

    /**
     * @param value Number of embeddings on each leaf node. The default value is 1000 if not set.
     */
    @JvmName("adaunmwqelbmelxf")
    public suspend fun leafNodeEmbeddingCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.leafNodeEmbeddingCount = mapped
    }

    /**
     * @param value The default percentage of leaf nodes that any query may be searched. Must be in
     * range 1-100, inclusive. The default value is 10 (means 10%) if not set.
     */
    @JvmName("vclranqwivbhliwx")
    public suspend fun leafNodesToSearchPercent(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.leafNodesToSearchPercent = mapped
    }

    internal fun build(): AiIndexMetadataConfigAlgorithmConfigTreeAhConfigArgs =
        AiIndexMetadataConfigAlgorithmConfigTreeAhConfigArgs(
            leafNodeEmbeddingCount = leafNodeEmbeddingCount,
            leafNodesToSearchPercent = leafNodesToSearchPercent,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy