// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.ai.textanalytics.implementation.models;

import com.azure.core.annotation.Immutable;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/** The AnalyzeTextTaskResult model. */
@JsonTypeInfo(
        use = JsonTypeInfo.Id.NAME,
        include = JsonTypeInfo.As.PROPERTY,
        property = "kind",
        defaultImpl = AnalyzeTextTaskResult.class)
@JsonTypeName("AnalyzeTextTaskResult")
@JsonSubTypes({
    @JsonSubTypes.Type(name = "SentimentAnalysisResults", value = SentimentTaskResult.class),
    @JsonSubTypes.Type(name = "EntityRecognitionResults", value = EntitiesTaskResult.class),
    @JsonSubTypes.Type(name = "EntityLinkingResults", value = EntityLinkingTaskResult.class),
    @JsonSubTypes.Type(name = "PiiEntityRecognitionResults", value = PiiTaskResult.class),
    @JsonSubTypes.Type(name = "KeyPhraseExtractionResults", value = KeyPhraseTaskResult.class),
    @JsonSubTypes.Type(name = "LanguageDetectionResults", value = LanguageDetectionTaskResult.class)
})
@Immutable
public class AnalyzeTextTaskResult {
    /** Creates an instance of AnalyzeTextTaskResult class. */
    public AnalyzeTextTaskResult() {}
}
