EntityTypeArgs

data class EntityTypeArgs(val displayName: Output<String>? = null, val enableFuzzyExtraction: Output<Boolean>? = null, val entities: Output<List<EntityTypeEntityArgs>>? = null, val kind: Output<String>? = null, val project: Output<String>? = null) : ConvertibleToJava<EntityTypeArgs>

Represents an entity type. Entity types serve as a tool for extracting parameter values from natural language queries. To get more information about EntityType, see:

Example Usage

Dialogflow Entity Type Basic

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.diagflow.Agent;
import com.pulumi.gcp.diagflow.AgentArgs;
import com.pulumi.gcp.diagflow.EntityType;
import com.pulumi.gcp.diagflow.EntityTypeArgs;
import com.pulumi.gcp.diagflow.inputs.EntityTypeEntityArgs;
import com.pulumi.resources.CustomResourceOptions;
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 basicAgent = new Agent("basicAgent", AgentArgs.builder()
.displayName("example_agent")
.defaultLanguageCode("en")
.timeZone("America/New_York")
.build());
var basicEntityType = new EntityType("basicEntityType", EntityTypeArgs.builder()
.displayName("")
.kind("KIND_MAP")
.entities(
EntityTypeEntityArgs.builder()
.value("value1")
.synonyms(
"synonym1",
"synonym2")
.build(),
EntityTypeEntityArgs.builder()
.value("value2")
.synonyms(
"synonym3",
"synonym4")
.build())
.build(), CustomResourceOptions.builder()
.dependsOn(basicAgent)
.build());
}
}

Import

EntityType can be imported using any of these accepted formats:

$ pulumi import gcp:diagflow/entityType:EntityType default {{name}}

Constructors

Link copied to clipboard
constructor(displayName: Output<String>? = null, enableFuzzyExtraction: Output<Boolean>? = null, entities: Output<List<EntityTypeEntityArgs>>? = null, kind: Output<String>? = null, project: Output<String>? = null)

Properties

Link copied to clipboard
val displayName: Output<String>? = null

The name of this entity type to be displayed on the console.

Link copied to clipboard
val enableFuzzyExtraction: Output<Boolean>? = null

Enables fuzzy entity extraction during classification.

Link copied to clipboard
val entities: Output<List<EntityTypeEntityArgs>>? = null

The collection of entity entries associated with the entity type. Structure is documented below.

Link copied to clipboard
val kind: Output<String>? = null

Indicates the kind of entity type.

Link copied to clipboard
val project: Output<String>? = null

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Functions

Link copied to clipboard
open override fun toJava(): EntityTypeArgs