AnalyzeActionsResult.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.ai.textanalytics.models;
import com.azure.ai.textanalytics.implementation.AnalyzeActionsResultPropertiesHelper;
import com.azure.core.annotation.Immutable;
import com.azure.core.util.IterableStream;
/**
* The {@link AnalyzeActionsResult} model.
*/
@Immutable
public final class AnalyzeActionsResult {
private IterableStream<RecognizeEntitiesActionResult> recognizeEntitiesResults;
private IterableStream<RecognizeLinkedEntitiesActionResult> recognizeLinkedEntitiesResults;
private IterableStream<RecognizePiiEntitiesActionResult> recognizePiiEntitiesResults;
private IterableStream<ExtractKeyPhrasesActionResult> extractKeyPhrasesResults;
private IterableStream<AnalyzeSentimentActionResult> analyzeSentimentResults;
private IterableStream<ExtractSummaryActionResult> extractSummaryResults;
private IterableStream<RecognizeCustomEntitiesActionResult> recognizeCustomEntitiesResults;
private IterableStream<SingleCategoryClassifyActionResult> singleCategoryClassifyResults;
private IterableStream<MultiCategoryClassifyActionResult> multiCategoryClassifyResults;
static {
AnalyzeActionsResultPropertiesHelper.setAccessor(
new AnalyzeActionsResultPropertiesHelper.AnalyzeActionsResultAccessor() {
@Override
public void setRecognizeEntitiesResults(AnalyzeActionsResult analyzeActionsResult,
IterableStream<RecognizeEntitiesActionResult> recognizeEntitiesResults) {
analyzeActionsResult.setRecognizeEntitiesResults(recognizeEntitiesResults);
}
@Override
public void setRecognizeLinkedEntitiesResults(AnalyzeActionsResult analyzeActionsResult,
IterableStream<RecognizeLinkedEntitiesActionResult> recognizeLinkedEntitiesResults) {
analyzeActionsResult.setRecognizeLinkedEntitiesResults(
recognizeLinkedEntitiesResults);
}
@Override
public void setRecognizePiiEntitiesResults(AnalyzeActionsResult analyzeActionsResult,
IterableStream<RecognizePiiEntitiesActionResult> recognizePiiEntitiesResults) {
analyzeActionsResult.setRecognizePiiEntitiesResults(recognizePiiEntitiesResults);
}
@Override
public void setExtractKeyPhrasesResults(AnalyzeActionsResult analyzeActionsResult,
IterableStream<ExtractKeyPhrasesActionResult> extractKeyPhrasesResults) {
analyzeActionsResult.setExtractKeyPhrasesResults(extractKeyPhrasesResults);
}
@Override
public void setAnalyzeSentimentResults(AnalyzeActionsResult analyzeActionsResult,
IterableStream<AnalyzeSentimentActionResult> analyzeSentimentResults) {
analyzeActionsResult.setAnalyzeSentimentResults(analyzeSentimentResults);
}
@Override
public void setExtractSummaryResults(AnalyzeActionsResult analyzeActionsResult,
IterableStream<ExtractSummaryActionResult> extractSummaryResult) {
analyzeActionsResult.setExtractSummaryResults(extractSummaryResult);
}
@Override
public void setRecognizeCustomEntitiesResults(AnalyzeActionsResult analyzeActionsResult,
IterableStream<RecognizeCustomEntitiesActionResult> recognizeCustomEntitiesResults) {
analyzeActionsResult.setRecognizeCustomEntitiesResults(recognizeCustomEntitiesResults);
}
@Override
public void setSingleCategoryClassifyResults(AnalyzeActionsResult analyzeActionsResult,
IterableStream<SingleCategoryClassifyActionResult> singleCategoryClassifyResults) {
analyzeActionsResult.setSingleCategoryClassifyResults(singleCategoryClassifyResults);
}
@Override
public void setMultiCategoryClassifyResults(AnalyzeActionsResult analyzeActionsResult,
IterableStream<MultiCategoryClassifyActionResult> multiCategoryClassifyResults) {
analyzeActionsResult.setMultiCategoryClassifyResults(multiCategoryClassifyResults);
}
});
}
/**
* Gets the {@code recognizeEntitiesResults} property: The categorized entities recognition action results
* property.
*
* @return The recognizeEntitiesResults value.
*/
public IterableStream<RecognizeEntitiesActionResult> getRecognizeEntitiesResults() {
return this.recognizeEntitiesResults;
}
/**
* Gets the {@code recognizeLinkedEntitiesResults} property: The linked entities recognition action results
* property.
*
* @return The recognizeLinkedEntitiesResults value.
*/
public IterableStream<RecognizeLinkedEntitiesActionResult> getRecognizeLinkedEntitiesResults() {
return this.recognizeLinkedEntitiesResults;
}
/**
* Gets the {@code recognizePiiEntitiesResults} property: The PII entities recognition actions results
* property.
*
* @return The recognizePiiEntitiesResults value.
*/
public IterableStream<RecognizePiiEntitiesActionResult> getRecognizePiiEntitiesResults() {
return this.recognizePiiEntitiesResults;
}
/**
* Gets the {@code extractKeyPhrasesResults} property: The key phrases extraction actions results property.
*
* @return The extractKeyPhrasesResults value.
*/
public IterableStream<ExtractKeyPhrasesActionResult> getExtractKeyPhrasesResults() {
return this.extractKeyPhrasesResults;
}
/**
* Gets the {@code analyzeSentimentResults} property: The sentiment analysis actions results property.
*
* @return The analyzeSentimentResults value.
*/
public IterableStream<AnalyzeSentimentActionResult> getAnalyzeSentimentResults() {
return this.analyzeSentimentResults;
}
/**
* Gets the {@code extractSummaryResults} property: the extractive summarization actions results property.
*
* @return the extractSummaryResults value.
*/
public IterableStream<ExtractSummaryActionResult> getExtractSummaryResults() {
return extractSummaryResults;
}
/**
* Gets the {@code recognizeCustomEntitiesResults} property: the custom recognize entities actions results property.
*
* @return the recognizeCustomEntitiesResults value.
*/
public IterableStream<RecognizeCustomEntitiesActionResult> getRecognizeCustomEntitiesResults() {
return recognizeCustomEntitiesResults;
}
/**
* Gets the {@code singleCategoryClassifyResults} property: the custom classify document
* single category actions results property.
*
* @return the singleCategoryClassifyResults value.
*/
public IterableStream<SingleCategoryClassifyActionResult> getSingleCategoryClassifyResults() {
return singleCategoryClassifyResults;
}
/**
* Gets the {@code multiCategoryClassifyResults} property: the custom classify document
* multiple categories actions results property.
*
* @return the multiCategoryClassifyResults value.
*/
public IterableStream<MultiCategoryClassifyActionResult> getMultiCategoryClassifyResults() {
return multiCategoryClassifyResults;
}
private void setRecognizeEntitiesResults(
IterableStream<RecognizeEntitiesActionResult> recognizeEntitiesResults) {
this.recognizeEntitiesResults = recognizeEntitiesResults;
}
private void setRecognizeLinkedEntitiesResults(
IterableStream<RecognizeLinkedEntitiesActionResult> recognizeLinkedEntitiesResults) {
this.recognizeLinkedEntitiesResults = recognizeLinkedEntitiesResults;
}
private void setRecognizePiiEntitiesResults(
IterableStream<RecognizePiiEntitiesActionResult> recognizePiiEntitiesResults) {
this.recognizePiiEntitiesResults = recognizePiiEntitiesResults;
}
private void setExtractKeyPhrasesResults(IterableStream<ExtractKeyPhrasesActionResult> extractKeyPhrasesResults) {
this.extractKeyPhrasesResults = extractKeyPhrasesResults;
}
private void setAnalyzeSentimentResults(IterableStream<AnalyzeSentimentActionResult> analyzeSentimentResults) {
this.analyzeSentimentResults = analyzeSentimentResults;
}
private void setExtractSummaryResults(IterableStream<ExtractSummaryActionResult> extractSummaryResults) {
this.extractSummaryResults = extractSummaryResults;
}
private void setRecognizeCustomEntitiesResults(
IterableStream<RecognizeCustomEntitiesActionResult> recognizeCustomEntitiesResults) {
this.recognizeCustomEntitiesResults = recognizeCustomEntitiesResults;
}
private void setSingleCategoryClassifyResults(
IterableStream<SingleCategoryClassifyActionResult> singleCategoryClassifyResults) {
this.singleCategoryClassifyResults = singleCategoryClassifyResults;
}
private void setMultiCategoryClassifyResults(
IterableStream<MultiCategoryClassifyActionResult> multiCategoryClassifyResults) {
this.multiCategoryClassifyResults = multiCategoryClassifyResults;
}
}