Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.cognitiveservices.textanalytics;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

/**
* Defines values for AzureRegions.
*/
public enum AzureRegions {
/** Enum value westus. */
WESTUS("westus"),

/** Enum value westeurope. */
WESTEUROPE("westeurope"),

/** Enum value southeastasia. */
SOUTHEASTASIA("southeastasia"),

/** Enum value eastus2. */
EASTUS2("eastus2"),

/** Enum value westcentralus. */
WESTCENTRALUS("westcentralus"),

/** Enum value westus2. */
WESTUS2("westus2"),

/** Enum value eastus. */
EASTUS("eastus"),

/** Enum value southcentralus. */
SOUTHCENTRALUS("southcentralus"),

/** Enum value northeurope. */
NORTHEUROPE("northeurope"),

/** Enum value eastasia. */
EASTASIA("eastasia"),

/** Enum value australiaeast. */
AUSTRALIAEAST("australiaeast"),

/** Enum value brazilsouth. */
BRAZILSOUTH("brazilsouth");

/** The actual serialized value for a AzureRegions instance. */
private String value;

AzureRegions(String value) {
this.value = value;
}

/**
* Parses a serialized value to a AzureRegions instance.
*
* @param value the serialized value to parse.
* @return the parsed AzureRegions object, or null if unable to parse.
*/
@JsonCreator
public static AzureRegions fromString(String value) {
AzureRegions[] items = AzureRegions.values();
for (AzureRegions item : items) {
if (item.toString().equalsIgnoreCase(value)) {
return item;
}
}
return null;
}

@JsonValue
@Override
public String toString() {
return this.value;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.cognitiveservices.textanalytics;

import java.util.List;
import com.microsoft.azure.cognitiveservices.textanalytics.implementation.InputInner;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* The BatchInput model.
*/
public class BatchInput {
/**
* The documents property.
*/
@JsonProperty(value = "documents")
private List<InputInner> documents;

/**
* Get the documents value.
*
* @return the documents value
*/
public List<InputInner> documents() {
return this.documents;
}

/**
* Set the documents value.
*
* @param documents the documents value to set
* @return the BatchInput object itself.
*/
public BatchInput withDocuments(List<InputInner> documents) {
this.documents = documents;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.cognitiveservices.textanalytics;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* The DetectedLanguage model.
*/
public class DetectedLanguage {
/**
* Long name of a detected language (e.g. English, French).
*/
@JsonProperty(value = "name")
private String name;

/**
* A two letter representation of the detected language according to the
* ISO 639-1 standard (e.g. en, fr).
*/
@JsonProperty(value = "iso6391Name")
private String iso6391Name;

/**
* A confidence score between 0 and 1. Scores close to 1 indicate 100%
* certainty that the identified language is true.
*/
@JsonProperty(value = "score")
private Double score;

/**
* Get the name value.
*
* @return the name value
*/
public String name() {
return this.name;
}

/**
* Set the name value.
*
* @param name the name value to set
* @return the DetectedLanguage object itself.
*/
public DetectedLanguage withName(String name) {
this.name = name;
return this;
}

/**
* Get the iso6391Name value.
*
* @return the iso6391Name value
*/
public String iso6391Name() {
return this.iso6391Name;
}

/**
* Set the iso6391Name value.
*
* @param iso6391Name the iso6391Name value to set
* @return the DetectedLanguage object itself.
*/
public DetectedLanguage withIso6391Name(String iso6391Name) {
this.iso6391Name = iso6391Name;
return this;
}

/**
* Get the score value.
*
* @return the score value
*/
public Double score() {
return this.score;
}

/**
* Set the score value.
*
* @param score the score value to set
* @return the DetectedLanguage object itself.
*/
public DetectedLanguage withScore(Double score) {
this.score = score;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.cognitiveservices.textanalytics;

import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* The EntitiesBatchResultItem model.
*/
public class EntitiesBatchResultItem {
/**
* Unique document identifier.
*/
@JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
private String id;

/**
* Recognized entities in the document.
*/
@JsonProperty(value = "entities", access = JsonProperty.Access.WRITE_ONLY)
private List<EntityRecord> entities;

/**
* Get the id value.
*
* @return the id value
*/
public String id() {
return this.id;
}

/**
* Get the entities value.
*
* @return the entities value
*/
public List<EntityRecord> entities() {
return this.entities;
}

}
Loading