diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/TextAnalyticsClientImplBuilder.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/TextAnalyticsClientImplBuilder.java index 743a7580787cb..51b94d6a03f29 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/TextAnalyticsClientImplBuilder.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/TextAnalyticsClientImplBuilder.java @@ -192,7 +192,7 @@ public TextAnalyticsClientImplBuilder addPolicy(HttpPipelinePolicy customPolicy) */ public TextAnalyticsClientImpl buildClient() { if (apiVersion == null) { - this.apiVersion = "v3.2-preview.1"; + this.apiVersion = "v3.2-preview.2"; } if (pipeline == null) { this.pipeline = createHttpPipeline(); diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/ClassificationResult.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/ClassificationResult.java new file mode 100644 index 0000000000000..f5e34c0a826dd --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/ClassificationResult.java @@ -0,0 +1,64 @@ +// 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.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The ClassificationResult model. */ +@Fluent +public final class ClassificationResult { + /* + * Classification type. + */ + @JsonProperty(value = "category", required = true) + private String category; + + /* + * Confidence score between 0 and 1 of the recognized classification. + */ + @JsonProperty(value = "confidenceScore", required = true) + private double confidenceScore; + + /** + * Get the category property: Classification type. + * + * @return the category value. + */ + public String getCategory() { + return this.category; + } + + /** + * Set the category property: Classification type. + * + * @param category the category value to set. + * @return the ClassificationResult object itself. + */ + public ClassificationResult setCategory(String category) { + this.category = category; + return this; + } + + /** + * Get the confidenceScore property: Confidence score between 0 and 1 of the recognized classification. + * + * @return the confidenceScore value. + */ + public double getConfidenceScore() { + return this.confidenceScore; + } + + /** + * Set the confidenceScore property: Confidence score between 0 and 1 of the recognized classification. + * + * @param confidenceScore the confidenceScore value to set. + * @return the ClassificationResult object itself. + */ + public ClassificationResult setConfidenceScore(double confidenceScore) { + this.confidenceScore = confidenceScore; + return this; + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/CustomEntitiesResult.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/CustomEntitiesResult.java new file mode 100644 index 0000000000000..708e17c6b539d --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/CustomEntitiesResult.java @@ -0,0 +1,146 @@ +// 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.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** The CustomEntitiesResult model. */ +@Fluent +public final class CustomEntitiesResult { + /* + * Response by document + */ + @JsonProperty(value = "documents", required = true) + private List documents; + + /* + * Errors by document id. + */ + @JsonProperty(value = "errors", required = true) + private List errors; + + /* + * if showStats=true was specified in the request this field will contain + * information about the request payload. + */ + @JsonProperty(value = "statistics") + private RequestStatistics statistics; + + /* + * This field indicates the project name for the model. + */ + @JsonProperty(value = "projectName", required = true) + private String projectName; + + /* + * This field indicates the deployment name for the model. + */ + @JsonProperty(value = "deploymentName", required = true) + private String deploymentName; + + /** + * Get the documents property: Response by document. + * + * @return the documents value. + */ + public List getDocuments() { + return this.documents; + } + + /** + * Set the documents property: Response by document. + * + * @param documents the documents value to set. + * @return the CustomEntitiesResult object itself. + */ + public CustomEntitiesResult setDocuments(List documents) { + this.documents = documents; + return this; + } + + /** + * Get the errors property: Errors by document id. + * + * @return the errors value. + */ + public List getErrors() { + return this.errors; + } + + /** + * Set the errors property: Errors by document id. + * + * @param errors the errors value to set. + * @return the CustomEntitiesResult object itself. + */ + public CustomEntitiesResult setErrors(List errors) { + this.errors = errors; + return this; + } + + /** + * Get the statistics property: if showStats=true was specified in the request this field will contain information + * about the request payload. + * + * @return the statistics value. + */ + public RequestStatistics getStatistics() { + return this.statistics; + } + + /** + * Set the statistics property: if showStats=true was specified in the request this field will contain information + * about the request payload. + * + * @param statistics the statistics value to set. + * @return the CustomEntitiesResult object itself. + */ + public CustomEntitiesResult setStatistics(RequestStatistics statistics) { + this.statistics = statistics; + return this; + } + + /** + * Get the projectName property: This field indicates the project name for the model. + * + * @return the projectName value. + */ + public String getProjectName() { + return this.projectName; + } + + /** + * Set the projectName property: This field indicates the project name for the model. + * + * @param projectName the projectName value to set. + * @return the CustomEntitiesResult object itself. + */ + public CustomEntitiesResult setProjectName(String projectName) { + this.projectName = projectName; + return this; + } + + /** + * Get the deploymentName property: This field indicates the deployment name for the model. + * + * @return the deploymentName value. + */ + public String getDeploymentName() { + return this.deploymentName; + } + + /** + * Set the deploymentName property: This field indicates the deployment name for the model. + * + * @param deploymentName the deploymentName value to set. + * @return the CustomEntitiesResult object itself. + */ + public CustomEntitiesResult setDeploymentName(String deploymentName) { + this.deploymentName = deploymentName; + return this; + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/CustomEntitiesTask.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/CustomEntitiesTask.java new file mode 100644 index 0000000000000..9c79307cab56a --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/CustomEntitiesTask.java @@ -0,0 +1,64 @@ +// 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.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The CustomEntitiesTask model. */ +@Fluent +public final class CustomEntitiesTask { + /* + * The parameters property. + */ + @JsonProperty(value = "parameters") + private CustomEntitiesTaskParameters parameters; + + /* + * The taskName property. + */ + @JsonProperty(value = "taskName") + private String taskName; + + /** + * Get the parameters property: The parameters property. + * + * @return the parameters value. + */ + public CustomEntitiesTaskParameters getParameters() { + return this.parameters; + } + + /** + * Set the parameters property: The parameters property. + * + * @param parameters the parameters value to set. + * @return the CustomEntitiesTask object itself. + */ + public CustomEntitiesTask setParameters(CustomEntitiesTaskParameters parameters) { + this.parameters = parameters; + return this; + } + + /** + * Get the taskName property: The taskName property. + * + * @return the taskName value. + */ + public String getTaskName() { + return this.taskName; + } + + /** + * Set the taskName property: The taskName property. + * + * @param taskName the taskName value to set. + * @return the CustomEntitiesTask object itself. + */ + public CustomEntitiesTask setTaskName(String taskName) { + this.taskName = taskName; + return this; + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/CustomEntitiesTaskParameters.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/CustomEntitiesTaskParameters.java new file mode 100644 index 0000000000000..9e4fc49431a5f --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/CustomEntitiesTaskParameters.java @@ -0,0 +1,116 @@ +// 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.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The CustomEntitiesTaskParameters model. */ +@Fluent +public final class CustomEntitiesTaskParameters { + /* + * The projectName property. + */ + @JsonProperty(value = "projectName") + private String projectName; + + /* + * The deploymentName property. + */ + @JsonProperty(value = "deploymentName") + private String deploymentName; + + /* + * The loggingOptOut property. + */ + @JsonProperty(value = "loggingOptOut") + private Boolean loggingOptOut; + + /* + * The stringIndexType property. + */ + @JsonProperty(value = "stringIndexType") + private StringIndexType stringIndexType; + + /** + * Get the projectName property: The projectName property. + * + * @return the projectName value. + */ + public String getProjectName() { + return this.projectName; + } + + /** + * Set the projectName property: The projectName property. + * + * @param projectName the projectName value to set. + * @return the CustomEntitiesTaskParameters object itself. + */ + public CustomEntitiesTaskParameters setProjectName(String projectName) { + this.projectName = projectName; + return this; + } + + /** + * Get the deploymentName property: The deploymentName property. + * + * @return the deploymentName value. + */ + public String getDeploymentName() { + return this.deploymentName; + } + + /** + * Set the deploymentName property: The deploymentName property. + * + * @param deploymentName the deploymentName value to set. + * @return the CustomEntitiesTaskParameters object itself. + */ + public CustomEntitiesTaskParameters setDeploymentName(String deploymentName) { + this.deploymentName = deploymentName; + return this; + } + + /** + * Get the loggingOptOut property: The loggingOptOut property. + * + * @return the loggingOptOut value. + */ + public Boolean isLoggingOptOut() { + return this.loggingOptOut; + } + + /** + * Set the loggingOptOut property: The loggingOptOut property. + * + * @param loggingOptOut the loggingOptOut value to set. + * @return the CustomEntitiesTaskParameters object itself. + */ + public CustomEntitiesTaskParameters setLoggingOptOut(Boolean loggingOptOut) { + this.loggingOptOut = loggingOptOut; + return this; + } + + /** + * Get the stringIndexType property: The stringIndexType property. + * + * @return the stringIndexType value. + */ + public StringIndexType getStringIndexType() { + return this.stringIndexType; + } + + /** + * Set the stringIndexType property: The stringIndexType property. + * + * @param stringIndexType the stringIndexType value to set. + * @return the CustomEntitiesTaskParameters object itself. + */ + public CustomEntitiesTaskParameters setStringIndexType(StringIndexType stringIndexType) { + this.stringIndexType = stringIndexType; + return this; + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/CustomEntitiesTaskResult.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/CustomEntitiesTaskResult.java new file mode 100644 index 0000000000000..94e37fabd1145 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/CustomEntitiesTaskResult.java @@ -0,0 +1,38 @@ +// 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.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The CustomEntitiesTaskResult model. */ +@Fluent +public class CustomEntitiesTaskResult { + /* + * The results property. + */ + @JsonProperty(value = "results") + private CustomEntitiesResult results; + + /** + * Get the results property: The results property. + * + * @return the results value. + */ + public CustomEntitiesResult getResults() { + return this.results; + } + + /** + * Set the results property: The results property. + * + * @param results the results value to set. + * @return the CustomEntitiesTaskResult object itself. + */ + public CustomEntitiesTaskResult setResults(CustomEntitiesResult results) { + this.results = results; + return this; + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/CustomMultiClassificationResult.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/CustomMultiClassificationResult.java new file mode 100644 index 0000000000000..afefc364989dd --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/CustomMultiClassificationResult.java @@ -0,0 +1,146 @@ +// 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.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** The CustomMultiClassificationResult model. */ +@Fluent +public final class CustomMultiClassificationResult { + /* + * Response by document + */ + @JsonProperty(value = "documents", required = true) + private List documents; + + /* + * Errors by document id. + */ + @JsonProperty(value = "errors", required = true) + private List errors; + + /* + * if showStats=true was specified in the request this field will contain + * information about the request payload. + */ + @JsonProperty(value = "statistics") + private RequestStatistics statistics; + + /* + * This field indicates the project name for the model. + */ + @JsonProperty(value = "projectName", required = true) + private String projectName; + + /* + * This field indicates the deployment name for the model. + */ + @JsonProperty(value = "deploymentName", required = true) + private String deploymentName; + + /** + * Get the documents property: Response by document. + * + * @return the documents value. + */ + public List getDocuments() { + return this.documents; + } + + /** + * Set the documents property: Response by document. + * + * @param documents the documents value to set. + * @return the CustomMultiClassificationResult object itself. + */ + public CustomMultiClassificationResult setDocuments(List documents) { + this.documents = documents; + return this; + } + + /** + * Get the errors property: Errors by document id. + * + * @return the errors value. + */ + public List getErrors() { + return this.errors; + } + + /** + * Set the errors property: Errors by document id. + * + * @param errors the errors value to set. + * @return the CustomMultiClassificationResult object itself. + */ + public CustomMultiClassificationResult setErrors(List errors) { + this.errors = errors; + return this; + } + + /** + * Get the statistics property: if showStats=true was specified in the request this field will contain information + * about the request payload. + * + * @return the statistics value. + */ + public RequestStatistics getStatistics() { + return this.statistics; + } + + /** + * Set the statistics property: if showStats=true was specified in the request this field will contain information + * about the request payload. + * + * @param statistics the statistics value to set. + * @return the CustomMultiClassificationResult object itself. + */ + public CustomMultiClassificationResult setStatistics(RequestStatistics statistics) { + this.statistics = statistics; + return this; + } + + /** + * Get the projectName property: This field indicates the project name for the model. + * + * @return the projectName value. + */ + public String getProjectName() { + return this.projectName; + } + + /** + * Set the projectName property: This field indicates the project name for the model. + * + * @param projectName the projectName value to set. + * @return the CustomMultiClassificationResult object itself. + */ + public CustomMultiClassificationResult setProjectName(String projectName) { + this.projectName = projectName; + return this; + } + + /** + * Get the deploymentName property: This field indicates the deployment name for the model. + * + * @return the deploymentName value. + */ + public String getDeploymentName() { + return this.deploymentName; + } + + /** + * Set the deploymentName property: This field indicates the deployment name for the model. + * + * @param deploymentName the deploymentName value to set. + * @return the CustomMultiClassificationResult object itself. + */ + public CustomMultiClassificationResult setDeploymentName(String deploymentName) { + this.deploymentName = deploymentName; + return this; + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/CustomMultiClassificationTask.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/CustomMultiClassificationTask.java new file mode 100644 index 0000000000000..4a465a76c59f9 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/CustomMultiClassificationTask.java @@ -0,0 +1,64 @@ +// 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.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The CustomMultiClassificationTask model. */ +@Fluent +public final class CustomMultiClassificationTask { + /* + * The parameters property. + */ + @JsonProperty(value = "parameters") + private CustomMultiClassificationTaskParameters parameters; + + /* + * The taskName property. + */ + @JsonProperty(value = "taskName") + private String taskName; + + /** + * Get the parameters property: The parameters property. + * + * @return the parameters value. + */ + public CustomMultiClassificationTaskParameters getParameters() { + return this.parameters; + } + + /** + * Set the parameters property: The parameters property. + * + * @param parameters the parameters value to set. + * @return the CustomMultiClassificationTask object itself. + */ + public CustomMultiClassificationTask setParameters(CustomMultiClassificationTaskParameters parameters) { + this.parameters = parameters; + return this; + } + + /** + * Get the taskName property: The taskName property. + * + * @return the taskName value. + */ + public String getTaskName() { + return this.taskName; + } + + /** + * Set the taskName property: The taskName property. + * + * @param taskName the taskName value to set. + * @return the CustomMultiClassificationTask object itself. + */ + public CustomMultiClassificationTask setTaskName(String taskName) { + this.taskName = taskName; + return this; + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/CustomMultiClassificationTaskParameters.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/CustomMultiClassificationTaskParameters.java new file mode 100644 index 0000000000000..a9d7a9f7840c7 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/CustomMultiClassificationTaskParameters.java @@ -0,0 +1,90 @@ +// 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.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The CustomMultiClassificationTaskParameters model. */ +@Fluent +public final class CustomMultiClassificationTaskParameters { + /* + * The projectName property. + */ + @JsonProperty(value = "projectName") + private String projectName; + + /* + * The deploymentName property. + */ + @JsonProperty(value = "deploymentName") + private String deploymentName; + + /* + * The loggingOptOut property. + */ + @JsonProperty(value = "loggingOptOut") + private Boolean loggingOptOut; + + /** + * Get the projectName property: The projectName property. + * + * @return the projectName value. + */ + public String getProjectName() { + return this.projectName; + } + + /** + * Set the projectName property: The projectName property. + * + * @param projectName the projectName value to set. + * @return the CustomMultiClassificationTaskParameters object itself. + */ + public CustomMultiClassificationTaskParameters setProjectName(String projectName) { + this.projectName = projectName; + return this; + } + + /** + * Get the deploymentName property: The deploymentName property. + * + * @return the deploymentName value. + */ + public String getDeploymentName() { + return this.deploymentName; + } + + /** + * Set the deploymentName property: The deploymentName property. + * + * @param deploymentName the deploymentName value to set. + * @return the CustomMultiClassificationTaskParameters object itself. + */ + public CustomMultiClassificationTaskParameters setDeploymentName(String deploymentName) { + this.deploymentName = deploymentName; + return this; + } + + /** + * Get the loggingOptOut property: The loggingOptOut property. + * + * @return the loggingOptOut value. + */ + public Boolean isLoggingOptOut() { + return this.loggingOptOut; + } + + /** + * Set the loggingOptOut property: The loggingOptOut property. + * + * @param loggingOptOut the loggingOptOut value to set. + * @return the CustomMultiClassificationTaskParameters object itself. + */ + public CustomMultiClassificationTaskParameters setLoggingOptOut(Boolean loggingOptOut) { + this.loggingOptOut = loggingOptOut; + return this; + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/CustomMultiClassificationTaskResult.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/CustomMultiClassificationTaskResult.java new file mode 100644 index 0000000000000..45d1d0d164855 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/CustomMultiClassificationTaskResult.java @@ -0,0 +1,38 @@ +// 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.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The CustomMultiClassificationTaskResult model. */ +@Fluent +public class CustomMultiClassificationTaskResult { + /* + * The results property. + */ + @JsonProperty(value = "results") + private CustomMultiClassificationResult results; + + /** + * Get the results property: The results property. + * + * @return the results value. + */ + public CustomMultiClassificationResult getResults() { + return this.results; + } + + /** + * Set the results property: The results property. + * + * @param results the results value to set. + * @return the CustomMultiClassificationTaskResult object itself. + */ + public CustomMultiClassificationTaskResult setResults(CustomMultiClassificationResult results) { + this.results = results; + return this; + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/CustomSingleClassificationResult.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/CustomSingleClassificationResult.java new file mode 100644 index 0000000000000..a52a581eab339 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/CustomSingleClassificationResult.java @@ -0,0 +1,146 @@ +// 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.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** The CustomSingleClassificationResult model. */ +@Fluent +public final class CustomSingleClassificationResult { + /* + * Response by document + */ + @JsonProperty(value = "documents", required = true) + private List documents; + + /* + * Errors by document id. + */ + @JsonProperty(value = "errors", required = true) + private List errors; + + /* + * if showStats=true was specified in the request this field will contain + * information about the request payload. + */ + @JsonProperty(value = "statistics") + private RequestStatistics statistics; + + /* + * This field indicates the project name for the model. + */ + @JsonProperty(value = "projectName", required = true) + private String projectName; + + /* + * This field indicates the deployment name for the model. + */ + @JsonProperty(value = "deploymentName", required = true) + private String deploymentName; + + /** + * Get the documents property: Response by document. + * + * @return the documents value. + */ + public List getDocuments() { + return this.documents; + } + + /** + * Set the documents property: Response by document. + * + * @param documents the documents value to set. + * @return the CustomSingleClassificationResult object itself. + */ + public CustomSingleClassificationResult setDocuments(List documents) { + this.documents = documents; + return this; + } + + /** + * Get the errors property: Errors by document id. + * + * @return the errors value. + */ + public List getErrors() { + return this.errors; + } + + /** + * Set the errors property: Errors by document id. + * + * @param errors the errors value to set. + * @return the CustomSingleClassificationResult object itself. + */ + public CustomSingleClassificationResult setErrors(List errors) { + this.errors = errors; + return this; + } + + /** + * Get the statistics property: if showStats=true was specified in the request this field will contain information + * about the request payload. + * + * @return the statistics value. + */ + public RequestStatistics getStatistics() { + return this.statistics; + } + + /** + * Set the statistics property: if showStats=true was specified in the request this field will contain information + * about the request payload. + * + * @param statistics the statistics value to set. + * @return the CustomSingleClassificationResult object itself. + */ + public CustomSingleClassificationResult setStatistics(RequestStatistics statistics) { + this.statistics = statistics; + return this; + } + + /** + * Get the projectName property: This field indicates the project name for the model. + * + * @return the projectName value. + */ + public String getProjectName() { + return this.projectName; + } + + /** + * Set the projectName property: This field indicates the project name for the model. + * + * @param projectName the projectName value to set. + * @return the CustomSingleClassificationResult object itself. + */ + public CustomSingleClassificationResult setProjectName(String projectName) { + this.projectName = projectName; + return this; + } + + /** + * Get the deploymentName property: This field indicates the deployment name for the model. + * + * @return the deploymentName value. + */ + public String getDeploymentName() { + return this.deploymentName; + } + + /** + * Set the deploymentName property: This field indicates the deployment name for the model. + * + * @param deploymentName the deploymentName value to set. + * @return the CustomSingleClassificationResult object itself. + */ + public CustomSingleClassificationResult setDeploymentName(String deploymentName) { + this.deploymentName = deploymentName; + return this; + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/CustomSingleClassificationTask.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/CustomSingleClassificationTask.java new file mode 100644 index 0000000000000..6d43b9a475f94 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/CustomSingleClassificationTask.java @@ -0,0 +1,64 @@ +// 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.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The CustomSingleClassificationTask model. */ +@Fluent +public final class CustomSingleClassificationTask { + /* + * The parameters property. + */ + @JsonProperty(value = "parameters") + private CustomSingleClassificationTaskParameters parameters; + + /* + * The taskName property. + */ + @JsonProperty(value = "taskName") + private String taskName; + + /** + * Get the parameters property: The parameters property. + * + * @return the parameters value. + */ + public CustomSingleClassificationTaskParameters getParameters() { + return this.parameters; + } + + /** + * Set the parameters property: The parameters property. + * + * @param parameters the parameters value to set. + * @return the CustomSingleClassificationTask object itself. + */ + public CustomSingleClassificationTask setParameters(CustomSingleClassificationTaskParameters parameters) { + this.parameters = parameters; + return this; + } + + /** + * Get the taskName property: The taskName property. + * + * @return the taskName value. + */ + public String getTaskName() { + return this.taskName; + } + + /** + * Set the taskName property: The taskName property. + * + * @param taskName the taskName value to set. + * @return the CustomSingleClassificationTask object itself. + */ + public CustomSingleClassificationTask setTaskName(String taskName) { + this.taskName = taskName; + return this; + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/CustomSingleClassificationTaskParameters.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/CustomSingleClassificationTaskParameters.java new file mode 100644 index 0000000000000..f3f79d3e0d7f0 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/CustomSingleClassificationTaskParameters.java @@ -0,0 +1,90 @@ +// 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.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The CustomSingleClassificationTaskParameters model. */ +@Fluent +public final class CustomSingleClassificationTaskParameters { + /* + * The projectName property. + */ + @JsonProperty(value = "projectName") + private String projectName; + + /* + * The deploymentName property. + */ + @JsonProperty(value = "deploymentName") + private String deploymentName; + + /* + * The loggingOptOut property. + */ + @JsonProperty(value = "loggingOptOut") + private Boolean loggingOptOut; + + /** + * Get the projectName property: The projectName property. + * + * @return the projectName value. + */ + public String getProjectName() { + return this.projectName; + } + + /** + * Set the projectName property: The projectName property. + * + * @param projectName the projectName value to set. + * @return the CustomSingleClassificationTaskParameters object itself. + */ + public CustomSingleClassificationTaskParameters setProjectName(String projectName) { + this.projectName = projectName; + return this; + } + + /** + * Get the deploymentName property: The deploymentName property. + * + * @return the deploymentName value. + */ + public String getDeploymentName() { + return this.deploymentName; + } + + /** + * Set the deploymentName property: The deploymentName property. + * + * @param deploymentName the deploymentName value to set. + * @return the CustomSingleClassificationTaskParameters object itself. + */ + public CustomSingleClassificationTaskParameters setDeploymentName(String deploymentName) { + this.deploymentName = deploymentName; + return this; + } + + /** + * Get the loggingOptOut property: The loggingOptOut property. + * + * @return the loggingOptOut value. + */ + public Boolean isLoggingOptOut() { + return this.loggingOptOut; + } + + /** + * Set the loggingOptOut property: The loggingOptOut property. + * + * @param loggingOptOut the loggingOptOut value to set. + * @return the CustomSingleClassificationTaskParameters object itself. + */ + public CustomSingleClassificationTaskParameters setLoggingOptOut(Boolean loggingOptOut) { + this.loggingOptOut = loggingOptOut; + return this; + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/CustomSingleClassificationTaskResult.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/CustomSingleClassificationTaskResult.java new file mode 100644 index 0000000000000..42f14e4cdc66b --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/CustomSingleClassificationTaskResult.java @@ -0,0 +1,38 @@ +// 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.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The CustomSingleClassificationTaskResult model. */ +@Fluent +public class CustomSingleClassificationTaskResult { + /* + * The results property. + */ + @JsonProperty(value = "results") + private CustomSingleClassificationResult results; + + /** + * Get the results property: The results property. + * + * @return the results value. + */ + public CustomSingleClassificationResult getResults() { + return this.results; + } + + /** + * Set the results property: The results property. + * + * @param results the results value to set. + * @return the CustomSingleClassificationTaskResult object itself. + */ + public CustomSingleClassificationTaskResult setResults(CustomSingleClassificationResult results) { + this.results = results; + return this; + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/JobManifestTasks.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/JobManifestTasks.java index 1bdc82de8e3dd..78a5c4032135c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/JobManifestTasks.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/JobManifestTasks.java @@ -47,6 +47,24 @@ public final class JobManifestTasks { @JsonProperty(value = "extractiveSummarizationTasks") private List extractiveSummarizationTasks; + /* + * The customEntityRecognitionTasks property. + */ + @JsonProperty(value = "customEntityRecognitionTasks") + private List customEntityRecognitionTasks; + + /* + * The customSingleClassificationTasks property. + */ + @JsonProperty(value = "customSingleClassificationTasks") + private List customSingleClassificationTasks; + + /* + * The customMultiClassificationTasks property. + */ + @JsonProperty(value = "customMultiClassificationTasks") + private List customMultiClassificationTasks; + /** * Get the entityRecognitionTasks property: The entityRecognitionTasks property. * @@ -167,4 +185,66 @@ public JobManifestTasks setExtractiveSummarizationTasks( this.extractiveSummarizationTasks = extractiveSummarizationTasks; return this; } + + /** + * Get the customEntityRecognitionTasks property: The customEntityRecognitionTasks property. + * + * @return the customEntityRecognitionTasks value. + */ + public List getCustomEntityRecognitionTasks() { + return this.customEntityRecognitionTasks; + } + + /** + * Set the customEntityRecognitionTasks property: The customEntityRecognitionTasks property. + * + * @param customEntityRecognitionTasks the customEntityRecognitionTasks value to set. + * @return the JobManifestTasks object itself. + */ + public JobManifestTasks setCustomEntityRecognitionTasks(List customEntityRecognitionTasks) { + this.customEntityRecognitionTasks = customEntityRecognitionTasks; + return this; + } + + /** + * Get the customSingleClassificationTasks property: The customSingleClassificationTasks property. + * + * @return the customSingleClassificationTasks value. + */ + public List getCustomSingleClassificationTasks() { + return this.customSingleClassificationTasks; + } + + /** + * Set the customSingleClassificationTasks property: The customSingleClassificationTasks property. + * + * @param customSingleClassificationTasks the customSingleClassificationTasks value to set. + * @return the JobManifestTasks object itself. + */ + public JobManifestTasks setCustomSingleClassificationTasks( + List customSingleClassificationTasks) { + this.customSingleClassificationTasks = customSingleClassificationTasks; + return this; + } + + /** + * Get the customMultiClassificationTasks property: The customMultiClassificationTasks property. + * + * @return the customMultiClassificationTasks value. + */ + public List getCustomMultiClassificationTasks() { + return this.customMultiClassificationTasks; + } + + /** + * Set the customMultiClassificationTasks property: The customMultiClassificationTasks property. + * + * @param customMultiClassificationTasks the customMultiClassificationTasks value to set. + * @return the JobManifestTasks object itself. + */ + public JobManifestTasks setCustomMultiClassificationTasks( + List customMultiClassificationTasks) { + this.customMultiClassificationTasks = customMultiClassificationTasks; + return this; + } } diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/MultiClassificationDocument.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/MultiClassificationDocument.java new file mode 100644 index 0000000000000..5d527615a3acd --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/MultiClassificationDocument.java @@ -0,0 +1,120 @@ +// 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.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** The MultiClassificationDocument model. */ +@Fluent +public final class MultiClassificationDocument { + /* + * Unique, non-empty document identifier. + */ + @JsonProperty(value = "id", required = true) + private String id; + + /* + * Recognized classification results in the document. + */ + @JsonProperty(value = "classifications", required = true) + private List classifications; + + /* + * Warnings encountered while processing document. + */ + @JsonProperty(value = "warnings", required = true) + private List warnings; + + /* + * if showStats=true was specified in the request this field will contain + * information about the document payload. + */ + @JsonProperty(value = "statistics") + private DocumentStatistics statistics; + + /** + * Get the id property: Unique, non-empty document identifier. + * + * @return the id value. + */ + public String getId() { + return this.id; + } + + /** + * Set the id property: Unique, non-empty document identifier. + * + * @param id the id value to set. + * @return the MultiClassificationDocument object itself. + */ + public MultiClassificationDocument setId(String id) { + this.id = id; + return this; + } + + /** + * Get the classifications property: Recognized classification results in the document. + * + * @return the classifications value. + */ + public List getClassifications() { + return this.classifications; + } + + /** + * Set the classifications property: Recognized classification results in the document. + * + * @param classifications the classifications value to set. + * @return the MultiClassificationDocument object itself. + */ + public MultiClassificationDocument setClassifications(List classifications) { + this.classifications = classifications; + return this; + } + + /** + * Get the warnings property: Warnings encountered while processing document. + * + * @return the warnings value. + */ + public List getWarnings() { + return this.warnings; + } + + /** + * Set the warnings property: Warnings encountered while processing document. + * + * @param warnings the warnings value to set. + * @return the MultiClassificationDocument object itself. + */ + public MultiClassificationDocument setWarnings(List warnings) { + this.warnings = warnings; + return this; + } + + /** + * Get the statistics property: if showStats=true was specified in the request this field will contain information + * about the document payload. + * + * @return the statistics value. + */ + public DocumentStatistics getStatistics() { + return this.statistics; + } + + /** + * Set the statistics property: if showStats=true was specified in the request this field will contain information + * about the document payload. + * + * @param statistics the statistics value to set. + * @return the MultiClassificationDocument object itself. + */ + public MultiClassificationDocument setStatistics(DocumentStatistics statistics) { + this.statistics = statistics; + return this; + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/SingleClassificationDocument.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/SingleClassificationDocument.java new file mode 100644 index 0000000000000..0a9dcc87c44f7 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/SingleClassificationDocument.java @@ -0,0 +1,120 @@ +// 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.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** The SingleClassificationDocument model. */ +@Fluent +public final class SingleClassificationDocument { + /* + * Unique, non-empty document identifier. + */ + @JsonProperty(value = "id", required = true) + private String id; + + /* + * The classification property. + */ + @JsonProperty(value = "classification", required = true) + private ClassificationResult classification; + + /* + * Warnings encountered while processing document. + */ + @JsonProperty(value = "warnings", required = true) + private List warnings; + + /* + * if showStats=true was specified in the request this field will contain + * information about the document payload. + */ + @JsonProperty(value = "statistics") + private DocumentStatistics statistics; + + /** + * Get the id property: Unique, non-empty document identifier. + * + * @return the id value. + */ + public String getId() { + return this.id; + } + + /** + * Set the id property: Unique, non-empty document identifier. + * + * @param id the id value to set. + * @return the SingleClassificationDocument object itself. + */ + public SingleClassificationDocument setId(String id) { + this.id = id; + return this; + } + + /** + * Get the classification property: The classification property. + * + * @return the classification value. + */ + public ClassificationResult getClassification() { + return this.classification; + } + + /** + * Set the classification property: The classification property. + * + * @param classification the classification value to set. + * @return the SingleClassificationDocument object itself. + */ + public SingleClassificationDocument setClassification(ClassificationResult classification) { + this.classification = classification; + return this; + } + + /** + * Get the warnings property: Warnings encountered while processing document. + * + * @return the warnings value. + */ + public List getWarnings() { + return this.warnings; + } + + /** + * Set the warnings property: Warnings encountered while processing document. + * + * @param warnings the warnings value to set. + * @return the SingleClassificationDocument object itself. + */ + public SingleClassificationDocument setWarnings(List warnings) { + this.warnings = warnings; + return this; + } + + /** + * Get the statistics property: if showStats=true was specified in the request this field will contain information + * about the document payload. + * + * @return the statistics value. + */ + public DocumentStatistics getStatistics() { + return this.statistics; + } + + /** + * Set the statistics property: if showStats=true was specified in the request this field will contain information + * about the document payload. + * + * @param statistics the statistics value to set. + * @return the SingleClassificationDocument object itself. + */ + public SingleClassificationDocument setStatistics(DocumentStatistics statistics) { + this.statistics = statistics; + return this; + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/TasksStateTasks.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/TasksStateTasks.java index f6b8508d69ed6..e61c80d6755d9 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/TasksStateTasks.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/TasksStateTasks.java @@ -71,6 +71,24 @@ public final class TasksStateTasks { @JsonProperty(value = "extractiveSummarizationTasks") private List extractiveSummarizationTasks; + /* + * The customEntityRecognitionTasks property. + */ + @JsonProperty(value = "customEntityRecognitionTasks") + private List customEntityRecognitionTasks; + + /* + * The customSingleClassificationTasks property. + */ + @JsonProperty(value = "customSingleClassificationTasks") + private List customSingleClassificationTasks; + + /* + * The customMultiClassificationTasks property. + */ + @JsonProperty(value = "customMultiClassificationTasks") + private List customMultiClassificationTasks; + /** * Get the completed property: The completed property. * @@ -275,4 +293,67 @@ public TasksStateTasks setExtractiveSummarizationTasks( this.extractiveSummarizationTasks = extractiveSummarizationTasks; return this; } + + /** + * Get the customEntityRecognitionTasks property: The customEntityRecognitionTasks property. + * + * @return the customEntityRecognitionTasks value. + */ + public List getCustomEntityRecognitionTasks() { + return this.customEntityRecognitionTasks; + } + + /** + * Set the customEntityRecognitionTasks property: The customEntityRecognitionTasks property. + * + * @param customEntityRecognitionTasks the customEntityRecognitionTasks value to set. + * @return the TasksStateTasks object itself. + */ + public TasksStateTasks setCustomEntityRecognitionTasks( + List customEntityRecognitionTasks) { + this.customEntityRecognitionTasks = customEntityRecognitionTasks; + return this; + } + + /** + * Get the customSingleClassificationTasks property: The customSingleClassificationTasks property. + * + * @return the customSingleClassificationTasks value. + */ + public List getCustomSingleClassificationTasks() { + return this.customSingleClassificationTasks; + } + + /** + * Set the customSingleClassificationTasks property: The customSingleClassificationTasks property. + * + * @param customSingleClassificationTasks the customSingleClassificationTasks value to set. + * @return the TasksStateTasks object itself. + */ + public TasksStateTasks setCustomSingleClassificationTasks( + List customSingleClassificationTasks) { + this.customSingleClassificationTasks = customSingleClassificationTasks; + return this; + } + + /** + * Get the customMultiClassificationTasks property: The customMultiClassificationTasks property. + * + * @return the customMultiClassificationTasks value. + */ + public List getCustomMultiClassificationTasks() { + return this.customMultiClassificationTasks; + } + + /** + * Set the customMultiClassificationTasks property: The customMultiClassificationTasks property. + * + * @param customMultiClassificationTasks the customMultiClassificationTasks value to set. + * @return the TasksStateTasks object itself. + */ + public TasksStateTasks setCustomMultiClassificationTasks( + List customMultiClassificationTasks) { + this.customMultiClassificationTasks = customMultiClassificationTasks; + return this; + } } diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/TasksStateTasksCustomEntityRecognitionTasksItem.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/TasksStateTasksCustomEntityRecognitionTasksItem.java new file mode 100644 index 0000000000000..7ecf3615d53c7 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/TasksStateTasksCustomEntityRecognitionTasksItem.java @@ -0,0 +1,38 @@ +// 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.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The TasksStateTasksCustomEntityRecognitionTasksItem model. */ +@Fluent +public final class TasksStateTasksCustomEntityRecognitionTasksItem extends TaskState { + /* + * The results property. + */ + @JsonProperty(value = "results") + private CustomEntitiesResult results; + + /** + * Get the results property: The results property. + * + * @return the results value. + */ + public CustomEntitiesResult getResults() { + return this.results; + } + + /** + * Set the results property: The results property. + * + * @param results the results value to set. + * @return the TasksStateTasksCustomEntityRecognitionTasksItem object itself. + */ + public TasksStateTasksCustomEntityRecognitionTasksItem setResults(CustomEntitiesResult results) { + this.results = results; + return this; + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/TasksStateTasksCustomMultiClassificationTasksItem.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/TasksStateTasksCustomMultiClassificationTasksItem.java new file mode 100644 index 0000000000000..2114e3867ac7c --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/TasksStateTasksCustomMultiClassificationTasksItem.java @@ -0,0 +1,38 @@ +// 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.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The TasksStateTasksCustomMultiClassificationTasksItem model. */ +@Fluent +public final class TasksStateTasksCustomMultiClassificationTasksItem extends TaskState { + /* + * The results property. + */ + @JsonProperty(value = "results") + private CustomMultiClassificationResult results; + + /** + * Get the results property: The results property. + * + * @return the results value. + */ + public CustomMultiClassificationResult getResults() { + return this.results; + } + + /** + * Set the results property: The results property. + * + * @param results the results value to set. + * @return the TasksStateTasksCustomMultiClassificationTasksItem object itself. + */ + public TasksStateTasksCustomMultiClassificationTasksItem setResults(CustomMultiClassificationResult results) { + this.results = results; + return this; + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/TasksStateTasksCustomSingleClassificationTasksItem.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/TasksStateTasksCustomSingleClassificationTasksItem.java new file mode 100644 index 0000000000000..3857a33163766 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/TasksStateTasksCustomSingleClassificationTasksItem.java @@ -0,0 +1,38 @@ +// 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.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The TasksStateTasksCustomSingleClassificationTasksItem model. */ +@Fluent +public final class TasksStateTasksCustomSingleClassificationTasksItem extends TaskState { + /* + * The results property. + */ + @JsonProperty(value = "results") + private CustomSingleClassificationResult results; + + /** + * Get the results property: The results property. + * + * @return the results value. + */ + public CustomSingleClassificationResult getResults() { + return this.results; + } + + /** + * Set the results property: The results property. + * + * @param results the results value to set. + * @return the TasksStateTasksCustomSingleClassificationTasksItem object itself. + */ + public TasksStateTasksCustomSingleClassificationTasksItem setResults(CustomSingleClassificationResult results) { + this.results = results; + return this; + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/swagger/README.md b/sdk/textanalytics/azure-ai-textanalytics/swagger/README.md index da290b9e6432d..c53b5b6951356 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/swagger/README.md +++ b/sdk/textanalytics/azure-ai-textanalytics/swagger/README.md @@ -20,7 +20,7 @@ autorest --java --use=C:/work/autorest.java ### Code generation settings ``` yaml -input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/cognitiveservices/data-plane/TextAnalytics/preview/v3.2-preview.1/TextAnalytics.json +input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/5efb2eca2fc3d94f27015f5d3176786c7497f946/specification/cognitiveservices/data-plane/TextAnalytics/preview/v3.2-preview.2/TextAnalytics.json java: true output-folder: ..\ generate-client-as-impl: true