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

com.pulumi.gcp.discoveryengine.kotlin.DataStoreArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.discoveryengine.kotlin

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.discoveryengine.DataStoreArgs.builder
import com.pulumi.gcp.discoveryengine.kotlin.inputs.DataStoreDocumentProcessingConfigArgs
import com.pulumi.gcp.discoveryengine.kotlin.inputs.DataStoreDocumentProcessingConfigArgsBuilder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Data store is a collection of websites and documents used to find answers for
 * end-user's questions in Discovery Engine (a.k.a. Vertex AI Search and
 * Conversation).
 * To get more information about DataStore, see:
 * * [API documentation](https://cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1/projects.locations.collections.dataStores)
 * * How-to Guides
 *     * [Create a search data store](https://cloud.google.com/generative-ai-app-builder/docs/create-data-store-es)
 * ## Example Usage
 * ### Discoveryengine Datastore Basic
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 * const basic = new gcp.discoveryengine.DataStore("basic", {
 *     location: "global",
 *     dataStoreId: "data-store-id",
 *     displayName: "tf-test-structured-datastore",
 *     industryVertical: "GENERIC",
 *     contentConfig: "NO_CONTENT",
 *     solutionTypes: ["SOLUTION_TYPE_SEARCH"],
 *     createAdvancedSiteSearch: false,
 *     skipDefaultSchemaCreation: false,
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_gcp as gcp
 * basic = gcp.discoveryengine.DataStore("basic",
 *     location="global",
 *     data_store_id="data-store-id",
 *     display_name="tf-test-structured-datastore",
 *     industry_vertical="GENERIC",
 *     content_config="NO_CONTENT",
 *     solution_types=["SOLUTION_TYPE_SEARCH"],
 *     create_advanced_site_search=False,
 *     skip_default_schema_creation=False)
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Gcp = Pulumi.Gcp;
 * return await Deployment.RunAsync(() =>
 * {
 *     var basic = new Gcp.DiscoveryEngine.DataStore("basic", new()
 *     {
 *         Location = "global",
 *         DataStoreId = "data-store-id",
 *         DisplayName = "tf-test-structured-datastore",
 *         IndustryVertical = "GENERIC",
 *         ContentConfig = "NO_CONTENT",
 *         SolutionTypes = new[]
 *         {
 *             "SOLUTION_TYPE_SEARCH",
 *         },
 *         CreateAdvancedSiteSearch = false,
 *         SkipDefaultSchemaCreation = false,
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/discoveryengine"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := discoveryengine.NewDataStore(ctx, "basic", &discoveryengine.DataStoreArgs{
 * 			Location:         pulumi.String("global"),
 * 			DataStoreId:      pulumi.String("data-store-id"),
 * 			DisplayName:      pulumi.String("tf-test-structured-datastore"),
 * 			IndustryVertical: pulumi.String("GENERIC"),
 * 			ContentConfig:    pulumi.String("NO_CONTENT"),
 * 			SolutionTypes: pulumi.StringArray{
 * 				pulumi.String("SOLUTION_TYPE_SEARCH"),
 * 			},
 * 			CreateAdvancedSiteSearch:  pulumi.Bool(false),
 * 			SkipDefaultSchemaCreation: pulumi.Bool(false),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.gcp.discoveryengine.DataStore;
 * import com.pulumi.gcp.discoveryengine.DataStoreArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         var basic = new DataStore("basic", DataStoreArgs.builder()
 *             .location("global")
 *             .dataStoreId("data-store-id")
 *             .displayName("tf-test-structured-datastore")
 *             .industryVertical("GENERIC")
 *             .contentConfig("NO_CONTENT")
 *             .solutionTypes("SOLUTION_TYPE_SEARCH")
 *             .createAdvancedSiteSearch(false)
 *             .skipDefaultSchemaCreation(false)
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   basic:
 *     type: gcp:discoveryengine:DataStore
 *     properties:
 *       location: global
 *       dataStoreId: data-store-id
 *       displayName: tf-test-structured-datastore
 *       industryVertical: GENERIC
 *       contentConfig: NO_CONTENT
 *       solutionTypes:
 *         - SOLUTION_TYPE_SEARCH
 *       createAdvancedSiteSearch: false
 *       skipDefaultSchemaCreation: false
 * ```
 * 
 * ### Discoveryengine Datastore Document Processing Config
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 * const documentProcessingConfig = new gcp.discoveryengine.DataStore("document_processing_config", {
 *     location: "global",
 *     dataStoreId: "data-store-id",
 *     displayName: "tf-test-structured-datastore",
 *     industryVertical: "GENERIC",
 *     contentConfig: "NO_CONTENT",
 *     solutionTypes: ["SOLUTION_TYPE_SEARCH"],
 *     createAdvancedSiteSearch: false,
 *     documentProcessingConfig: {
 *         defaultParsingConfig: {
 *             digitalParsingConfig: {},
 *         },
 *         parsingConfigOverrides: [{
 *             fileType: "pdf",
 *             ocrParsingConfig: {
 *                 useNativeText: true,
 *             },
 *         }],
 *     },
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_gcp as gcp
 * document_processing_config = gcp.discoveryengine.DataStore("document_processing_config",
 *     location="global",
 *     data_store_id="data-store-id",
 *     display_name="tf-test-structured-datastore",
 *     industry_vertical="GENERIC",
 *     content_config="NO_CONTENT",
 *     solution_types=["SOLUTION_TYPE_SEARCH"],
 *     create_advanced_site_search=False,
 *     document_processing_config={
 *         "default_parsing_config": {
 *             "digital_parsing_config": {},
 *         },
 *         "parsing_config_overrides": [{
 *             "file_type": "pdf",
 *             "ocr_parsing_config": {
 *                 "use_native_text": True,
 *             },
 *         }],
 *     })
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Gcp = Pulumi.Gcp;
 * return await Deployment.RunAsync(() =>
 * {
 *     var documentProcessingConfig = new Gcp.DiscoveryEngine.DataStore("document_processing_config", new()
 *     {
 *         Location = "global",
 *         DataStoreId = "data-store-id",
 *         DisplayName = "tf-test-structured-datastore",
 *         IndustryVertical = "GENERIC",
 *         ContentConfig = "NO_CONTENT",
 *         SolutionTypes = new[]
 *         {
 *             "SOLUTION_TYPE_SEARCH",
 *         },
 *         CreateAdvancedSiteSearch = false,
 *         DocumentProcessingConfig = new Gcp.DiscoveryEngine.Inputs.DataStoreDocumentProcessingConfigArgs
 *         {
 *             DefaultParsingConfig = new Gcp.DiscoveryEngine.Inputs.DataStoreDocumentProcessingConfigDefaultParsingConfigArgs
 *             {
 *                 DigitalParsingConfig = null,
 *             },
 *             ParsingConfigOverrides = new[]
 *             {
 *                 new Gcp.DiscoveryEngine.Inputs.DataStoreDocumentProcessingConfigParsingConfigOverrideArgs
 *                 {
 *                     FileType = "pdf",
 *                     OcrParsingConfig = new Gcp.DiscoveryEngine.Inputs.DataStoreDocumentProcessingConfigParsingConfigOverrideOcrParsingConfigArgs
 *                     {
 *                         UseNativeText = true,
 *                     },
 *                 },
 *             },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/discoveryengine"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := discoveryengine.NewDataStore(ctx, "document_processing_config", &discoveryengine.DataStoreArgs{
 * 			Location:         pulumi.String("global"),
 * 			DataStoreId:      pulumi.String("data-store-id"),
 * 			DisplayName:      pulumi.String("tf-test-structured-datastore"),
 * 			IndustryVertical: pulumi.String("GENERIC"),
 * 			ContentConfig:    pulumi.String("NO_CONTENT"),
 * 			SolutionTypes: pulumi.StringArray{
 * 				pulumi.String("SOLUTION_TYPE_SEARCH"),
 * 			},
 * 			CreateAdvancedSiteSearch: pulumi.Bool(false),
 * 			DocumentProcessingConfig: &discoveryengine.DataStoreDocumentProcessingConfigArgs{
 * 				DefaultParsingConfig: &discoveryengine.DataStoreDocumentProcessingConfigDefaultParsingConfigArgs{
 * 					DigitalParsingConfig: nil,
 * 				},
 * 				ParsingConfigOverrides: discoveryengine.DataStoreDocumentProcessingConfigParsingConfigOverrideArray{
 * 					&discoveryengine.DataStoreDocumentProcessingConfigParsingConfigOverrideArgs{
 * 						FileType: pulumi.String("pdf"),
 * 						OcrParsingConfig: &discoveryengine.DataStoreDocumentProcessingConfigParsingConfigOverrideOcrParsingConfigArgs{
 * 							UseNativeText: pulumi.Bool(true),
 * 						},
 * 					},
 * 				},
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.gcp.discoveryengine.DataStore;
 * import com.pulumi.gcp.discoveryengine.DataStoreArgs;
 * import com.pulumi.gcp.discoveryengine.inputs.DataStoreDocumentProcessingConfigArgs;
 * import com.pulumi.gcp.discoveryengine.inputs.DataStoreDocumentProcessingConfigDefaultParsingConfigArgs;
 * import com.pulumi.gcp.discoveryengine.inputs.DataStoreDocumentProcessingConfigDefaultParsingConfigDigitalParsingConfigArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         var documentProcessingConfig = new DataStore("documentProcessingConfig", DataStoreArgs.builder()
 *             .location("global")
 *             .dataStoreId("data-store-id")
 *             .displayName("tf-test-structured-datastore")
 *             .industryVertical("GENERIC")
 *             .contentConfig("NO_CONTENT")
 *             .solutionTypes("SOLUTION_TYPE_SEARCH")
 *             .createAdvancedSiteSearch(false)
 *             .documentProcessingConfig(DataStoreDocumentProcessingConfigArgs.builder()
 *                 .defaultParsingConfig(DataStoreDocumentProcessingConfigDefaultParsingConfigArgs.builder()
 *                     .digitalParsingConfig()
 *                     .build())
 *                 .parsingConfigOverrides(DataStoreDocumentProcessingConfigParsingConfigOverrideArgs.builder()
 *                     .fileType("pdf")
 *                     .ocrParsingConfig(DataStoreDocumentProcessingConfigParsingConfigOverrideOcrParsingConfigArgs.builder()
 *                         .useNativeText(true)
 *                         .build())
 *                     .build())
 *                 .build())
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   documentProcessingConfig:
 *     type: gcp:discoveryengine:DataStore
 *     name: document_processing_config
 *     properties:
 *       location: global
 *       dataStoreId: data-store-id
 *       displayName: tf-test-structured-datastore
 *       industryVertical: GENERIC
 *       contentConfig: NO_CONTENT
 *       solutionTypes:
 *         - SOLUTION_TYPE_SEARCH
 *       createAdvancedSiteSearch: false
 *       documentProcessingConfig:
 *         defaultParsingConfig:
 *           digitalParsingConfig: {}
 *         parsingConfigOverrides:
 *           - fileType: pdf
 *             ocrParsingConfig:
 *               useNativeText: true
 * ```
 * 
 * ## Import
 * DataStore can be imported using any of these accepted formats:
 * * `projects/{{project}}/locations/{{location}}/collections/default_collection/dataStores/{{data_store_id}}`
 * * `{{project}}/{{location}}/{{data_store_id}}`
 * * `{{location}}/{{data_store_id}}`
 * When using the `pulumi import` command, DataStore can be imported using one of the formats above. For example:
 * ```sh
 * $ pulumi import gcp:discoveryengine/dataStore:DataStore default projects/{{project}}/locations/{{location}}/collections/default_collection/dataStores/{{data_store_id}}
 * ```
 * ```sh
 * $ pulumi import gcp:discoveryengine/dataStore:DataStore default {{project}}/{{location}}/{{data_store_id}}
 * ```
 * ```sh
 * $ pulumi import gcp:discoveryengine/dataStore:DataStore default {{location}}/{{data_store_id}}
 * ```
 * @property contentConfig The content config of the data store.
 * Possible values are: `NO_CONTENT`, `CONTENT_REQUIRED`, `PUBLIC_WEBSITE`.
 * @property createAdvancedSiteSearch If true, an advanced data store for site search will be created. If the
 * data store is not configured as site search (GENERIC vertical and
 * PUBLIC_WEBSITE contentConfig), this flag will be ignored.
 * @property dataStoreId The unique id of the data store.
 * - - -
 * @property displayName The display name of the data store. This field must be a UTF-8 encoded
 * string with a length limit of 128 characters.
 * @property documentProcessingConfig Configuration for Document understanding and enrichment.
 * Structure is documented below.
 * @property industryVertical The industry vertical that the data store registers.
 * Possible values are: `GENERIC`, `MEDIA`.
 * @property location The geographic location where the data store should reside. The value can
 * only be one of "global", "us" and "eu".
 * @property project The ID of the project in which the resource belongs.
 * If it is not provided, the provider project is used.
 * @property skipDefaultSchemaCreation A boolean flag indicating whether to skip the default schema creation for
 * the data store. Only enable this flag if you are certain that the default
 * schema is incompatible with your use case.
 * If set to true, you must manually create a schema for the data store
 * before any documents can be ingested.
 * This flag cannot be specified if `data_store.starting_schema` is
 * specified.
 * @property solutionTypes The solutions that the data store enrolls.
 * Each value may be one of: `SOLUTION_TYPE_RECOMMENDATION`, `SOLUTION_TYPE_SEARCH`, `SOLUTION_TYPE_CHAT`.
 */
public data class DataStoreArgs(
    public val contentConfig: Output? = null,
    public val createAdvancedSiteSearch: Output? = null,
    public val dataStoreId: Output? = null,
    public val displayName: Output? = null,
    public val documentProcessingConfig: Output? = null,
    public val industryVertical: Output? = null,
    public val location: Output? = null,
    public val project: Output? = null,
    public val skipDefaultSchemaCreation: Output? = null,
    public val solutionTypes: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.discoveryengine.DataStoreArgs =
        com.pulumi.gcp.discoveryengine.DataStoreArgs.builder()
            .contentConfig(contentConfig?.applyValue({ args0 -> args0 }))
            .createAdvancedSiteSearch(createAdvancedSiteSearch?.applyValue({ args0 -> args0 }))
            .dataStoreId(dataStoreId?.applyValue({ args0 -> args0 }))
            .displayName(displayName?.applyValue({ args0 -> args0 }))
            .documentProcessingConfig(
                documentProcessingConfig?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .industryVertical(industryVertical?.applyValue({ args0 -> args0 }))
            .location(location?.applyValue({ args0 -> args0 }))
            .project(project?.applyValue({ args0 -> args0 }))
            .skipDefaultSchemaCreation(skipDefaultSchemaCreation?.applyValue({ args0 -> args0 }))
            .solutionTypes(solutionTypes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [DataStoreArgs].
 */
@PulumiTagMarker
public class DataStoreArgsBuilder internal constructor() {
    private var contentConfig: Output? = null

    private var createAdvancedSiteSearch: Output? = null

    private var dataStoreId: Output? = null

    private var displayName: Output? = null

    private var documentProcessingConfig: Output? = null

    private var industryVertical: Output? = null

    private var location: Output? = null

    private var project: Output? = null

    private var skipDefaultSchemaCreation: Output? = null

    private var solutionTypes: Output>? = null

    /**
     * @param value The content config of the data store.
     * Possible values are: `NO_CONTENT`, `CONTENT_REQUIRED`, `PUBLIC_WEBSITE`.
     */
    @JvmName("lkxlprpyenwnawfi")
    public suspend fun contentConfig(`value`: Output) {
        this.contentConfig = value
    }

    /**
     * @param value If true, an advanced data store for site search will be created. If the
     * data store is not configured as site search (GENERIC vertical and
     * PUBLIC_WEBSITE contentConfig), this flag will be ignored.
     */
    @JvmName("onrrjwmagwdofrma")
    public suspend fun createAdvancedSiteSearch(`value`: Output) {
        this.createAdvancedSiteSearch = value
    }

    /**
     * @param value The unique id of the data store.
     * - - -
     */
    @JvmName("dfnybmbmiwrggeqj")
    public suspend fun dataStoreId(`value`: Output) {
        this.dataStoreId = value
    }

    /**
     * @param value The display name of the data store. This field must be a UTF-8 encoded
     * string with a length limit of 128 characters.
     */
    @JvmName("tqqfwmuclbthuakm")
    public suspend fun displayName(`value`: Output) {
        this.displayName = value
    }

    /**
     * @param value Configuration for Document understanding and enrichment.
     * Structure is documented below.
     */
    @JvmName("stqwieojgpesunwl")
    public suspend fun documentProcessingConfig(`value`: Output) {
        this.documentProcessingConfig = value
    }

    /**
     * @param value The industry vertical that the data store registers.
     * Possible values are: `GENERIC`, `MEDIA`.
     */
    @JvmName("jstxjamfskakuujf")
    public suspend fun industryVertical(`value`: Output) {
        this.industryVertical = value
    }

    /**
     * @param value The geographic location where the data store should reside. The value can
     * only be one of "global", "us" and "eu".
     */
    @JvmName("ugprdubcbieruvav")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value The ID of the project in which the resource belongs.
     * If it is not provided, the provider project is used.
     */
    @JvmName("heughcovycgilciw")
    public suspend fun project(`value`: Output) {
        this.project = value
    }

    /**
     * @param value A boolean flag indicating whether to skip the default schema creation for
     * the data store. Only enable this flag if you are certain that the default
     * schema is incompatible with your use case.
     * If set to true, you must manually create a schema for the data store
     * before any documents can be ingested.
     * This flag cannot be specified if `data_store.starting_schema` is
     * specified.
     */
    @JvmName("oynqxldtyneulokj")
    public suspend fun skipDefaultSchemaCreation(`value`: Output) {
        this.skipDefaultSchemaCreation = value
    }

    /**
     * @param value The solutions that the data store enrolls.
     * Each value may be one of: `SOLUTION_TYPE_RECOMMENDATION`, `SOLUTION_TYPE_SEARCH`, `SOLUTION_TYPE_CHAT`.
     */
    @JvmName("vmwfvugajrellmgm")
    public suspend fun solutionTypes(`value`: Output>) {
        this.solutionTypes = value
    }

    @JvmName("xqgvitqjklfbbqdy")
    public suspend fun solutionTypes(vararg values: Output) {
        this.solutionTypes = Output.all(values.asList())
    }

    /**
     * @param values The solutions that the data store enrolls.
     * Each value may be one of: `SOLUTION_TYPE_RECOMMENDATION`, `SOLUTION_TYPE_SEARCH`, `SOLUTION_TYPE_CHAT`.
     */
    @JvmName("oqqlhnlfbkpwvlft")
    public suspend fun solutionTypes(values: List>) {
        this.solutionTypes = Output.all(values)
    }

    /**
     * @param value The content config of the data store.
     * Possible values are: `NO_CONTENT`, `CONTENT_REQUIRED`, `PUBLIC_WEBSITE`.
     */
    @JvmName("rgujadqhvabdaamu")
    public suspend fun contentConfig(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.contentConfig = mapped
    }

    /**
     * @param value If true, an advanced data store for site search will be created. If the
     * data store is not configured as site search (GENERIC vertical and
     * PUBLIC_WEBSITE contentConfig), this flag will be ignored.
     */
    @JvmName("tokyveqnnjmmcgsn")
    public suspend fun createAdvancedSiteSearch(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.createAdvancedSiteSearch = mapped
    }

    /**
     * @param value The unique id of the data store.
     * - - -
     */
    @JvmName("amykxvswmilyhcjg")
    public suspend fun dataStoreId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dataStoreId = mapped
    }

    /**
     * @param value The display name of the data store. This field must be a UTF-8 encoded
     * string with a length limit of 128 characters.
     */
    @JvmName("kiqwmoahpkopswsn")
    public suspend fun displayName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.displayName = mapped
    }

    /**
     * @param value Configuration for Document understanding and enrichment.
     * Structure is documented below.
     */
    @JvmName("twdnfaajuldsgnbm")
    public suspend fun documentProcessingConfig(`value`: DataStoreDocumentProcessingConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.documentProcessingConfig = mapped
    }

    /**
     * @param argument Configuration for Document understanding and enrichment.
     * Structure is documented below.
     */
    @JvmName("nkgyebnmpjuvrcyh")
    public suspend fun documentProcessingConfig(argument: suspend DataStoreDocumentProcessingConfigArgsBuilder.() -> Unit) {
        val toBeMapped = DataStoreDocumentProcessingConfigArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.documentProcessingConfig = mapped
    }

    /**
     * @param value The industry vertical that the data store registers.
     * Possible values are: `GENERIC`, `MEDIA`.
     */
    @JvmName("biwltarotowdgmnk")
    public suspend fun industryVertical(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.industryVertical = mapped
    }

    /**
     * @param value The geographic location where the data store should reside. The value can
     * only be one of "global", "us" and "eu".
     */
    @JvmName("upwqmfeqdmjhmujf")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value The ID of the project in which the resource belongs.
     * If it is not provided, the provider project is used.
     */
    @JvmName("lktolemltpymmdtd")
    public suspend fun project(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.project = mapped
    }

    /**
     * @param value A boolean flag indicating whether to skip the default schema creation for
     * the data store. Only enable this flag if you are certain that the default
     * schema is incompatible with your use case.
     * If set to true, you must manually create a schema for the data store
     * before any documents can be ingested.
     * This flag cannot be specified if `data_store.starting_schema` is
     * specified.
     */
    @JvmName("sfqepsshjrwcdgju")
    public suspend fun skipDefaultSchemaCreation(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.skipDefaultSchemaCreation = mapped
    }

    /**
     * @param value The solutions that the data store enrolls.
     * Each value may be one of: `SOLUTION_TYPE_RECOMMENDATION`, `SOLUTION_TYPE_SEARCH`, `SOLUTION_TYPE_CHAT`.
     */
    @JvmName("qvhvwjlnuymradft")
    public suspend fun solutionTypes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.solutionTypes = mapped
    }

    /**
     * @param values The solutions that the data store enrolls.
     * Each value may be one of: `SOLUTION_TYPE_RECOMMENDATION`, `SOLUTION_TYPE_SEARCH`, `SOLUTION_TYPE_CHAT`.
     */
    @JvmName("noetavixwhiudgqc")
    public suspend fun solutionTypes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.solutionTypes = mapped
    }

    internal fun build(): DataStoreArgs = DataStoreArgs(
        contentConfig = contentConfig,
        createAdvancedSiteSearch = createAdvancedSiteSearch,
        dataStoreId = dataStoreId,
        displayName = displayName,
        documentProcessingConfig = documentProcessingConfig,
        industryVertical = industryVertical,
        location = location,
        project = project,
        skipDefaultSchemaCreation = skipDefaultSchemaCreation,
        solutionTypes = solutionTypes,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy