ContentFieldSchema Class
- java.
lang. Object - com.
azure. ai. contentunderstanding. models. ContentFieldSchema
- com.
Implements
public final class ContentFieldSchema
implements JsonSerializable<ContentFieldSchema>
Schema of fields to be extracted from documents.
Constructor Summary
| Constructor | Description |
|---|---|
| ContentFieldSchema() |
Creates an instance of Content |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Content |
fromJson(JsonReader jsonReader)
Reads an instance of Content |
|
Map<String,Content |
getDefinitions()
Get the definitions property: Additional definitions referenced by the fields in the schema. |
| String |
getDescription()
Get the description property: A description of the field schema. |
|
Map<String,Content |
getFields()
Get the fields property: The fields defined in the schema. |
| String |
getName()
Get the name property: The name of the field schema. |
|
Content |
setDefinitions(Map<String,ContentFieldDefinition> definitions)
Set the definitions property: Additional definitions referenced by the fields in the schema. |
|
Content |
setDescription(String description)
Set the description property: A description of the field schema. |
|
Content |
setFields(Map<String,ContentFieldDefinition> fields)
Set the fields property: The fields defined in the schema. |
|
Content |
setName(String name)
Set the name property: The name of the field schema. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
ContentFieldSchema
public ContentFieldSchema()
Creates an instance of ContentFieldSchema class.
Method Details
fromJson
public static ContentFieldSchema fromJson(JsonReader jsonReader)
Reads an instance of ContentFieldSchema from the JsonReader.
Parameters:
Returns:
Throws:
getDefinitions
public Map<String,ContentFieldDefinition> getDefinitions()
Get the definitions property: Additional definitions referenced by the fields in the schema.
Returns:
getDescription
public String getDescription()
Get the description property: A description of the field schema.
Returns:
getFields
public Map<String,ContentFieldDefinition> getFields()
Get the fields property: The fields defined in the schema.
Returns:
getName
public String getName()
Get the name property: The name of the field schema.
Returns:
setDefinitions
public ContentFieldSchema setDefinitions(Map<String,ContentFieldDefinition> definitions)
Set the definitions property: Additional definitions referenced by the fields in the schema.
Parameters:
Returns:
setDescription
public ContentFieldSchema setDescription(String description)
Set the description property: A description of the field schema.
Parameters:
Returns:
setFields
public ContentFieldSchema setFields(Map<String,ContentFieldDefinition> fields)
Set the fields property: The fields defined in the schema.
Required when create the resource.
Parameters:
Returns:
setName
public ContentFieldSchema setName(String name)
Set the name property: The name of the field schema.
Parameters:
Returns: