ContentFieldDefinition Class
- java.
lang. Object - com.
azure. ai. contentunderstanding. models. ContentFieldDefinition
- com.
Implements
public final class ContentFieldDefinition
implements JsonSerializable<ContentFieldDefinition>
Definition of the field using a JSON Schema like syntax.
Constructor Summary
| Constructor | Description |
|---|---|
| ContentFieldDefinition() |
Creates an instance of Content |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Content |
fromJson(JsonReader jsonReader)
Reads an instance of Content |
| String |
getDescription()
Get the description property: Field description. |
| Map<String,String> |
getEnumDescriptions()
Get the enum |
| List<String> |
getEnumProperty()
Get the enum |
| List<String> |
getExamples()
Get the examples property: Examples of field values. |
|
Content |
getItemDefinition()
Get the item |
|
Generation |
getMethod()
Get the method property: Generation method. |
|
Map<String,Content |
getProperties()
Get the properties property: Named sub-fields, if type is object. |
| String |
getRef()
Get the ref property: Reference to another field definition. |
|
Content |
getType()
Get the type property: Semantic data type of the field value. |
| Boolean |
isEstimateSourceAndConfidence()
Get the estimate |
|
Content |
setDescription(String description)
Set the description property: Field description. |
|
Content |
setEnumDescriptions(Map<String,String> enumDescriptions)
Set the enum |
|
Content |
setEnumProperty(List<String> enumProperty)
Set the enum |
|
Content |
setEstimateSourceAndConfidence(Boolean estimateSourceAndConfidence)
Set the estimate |
|
Content |
setExamples(List<String> examples)
Set the examples property: Examples of field values. |
|
Content |
setItemDefinition(ContentFieldDefinition itemDefinition)
Set the item |
|
Content |
setMethod(GenerationMethod method)
Set the method property: Generation method. |
|
Content |
setProperties(Map<String,ContentFieldDefinition> properties)
Set the properties property: Named sub-fields, if type is object. |
|
Content |
setRef(String ref)
Set the ref property: Reference to another field definition. |
|
Content |
setType(ContentFieldType type)
Set the type property: Semantic data type of the field value. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
ContentFieldDefinition
public ContentFieldDefinition()
Creates an instance of ContentFieldDefinition class.
Method Details
fromJson
public static ContentFieldDefinition fromJson(JsonReader jsonReader)
Reads an instance of ContentFieldDefinition from the JsonReader.
Parameters:
Returns:
Throws:
getDescription
public String getDescription()
Get the description property: Field description.
Returns:
getEnumDescriptions
public Map<String,String> getEnumDescriptions()
Get the enumDescriptions property: Descriptions for each enumeration value.
Returns:
getEnumProperty
public List<String> getEnumProperty()
Get the enumProperty property: Enumeration of possible field values.
Returns:
getExamples
public List<String> getExamples()
Get the examples property: Examples of field values.
Returns:
getItemDefinition
public ContentFieldDefinition getItemDefinition()
Get the itemDefinition property: Field type schema of each array element, if type is array.
Returns:
getMethod
public GenerationMethod getMethod()
Get the method property: Generation method.
Returns:
getProperties
public Map<String,ContentFieldDefinition> getProperties()
Get the properties property: Named sub-fields, if type is object.
Returns:
getRef
public String getRef()
Get the ref property: Reference to another field definition.
Returns:
getType
public ContentFieldType getType()
Get the type property: Semantic data type of the field value.
Returns:
isEstimateSourceAndConfidence
public Boolean isEstimateSourceAndConfidence()
Get the estimateSourceAndConfidence property: Return grounding source and confidence.
Returns:
setDescription
public ContentFieldDefinition setDescription(String description)
Set the description property: Field description.
Parameters:
Returns:
setEnumDescriptions
public ContentFieldDefinition setEnumDescriptions(Map<String,String> enumDescriptions)
Set the enumDescriptions property: Descriptions for each enumeration value.
Parameters:
Returns:
setEnumProperty
public ContentFieldDefinition setEnumProperty(List<String> enumProperty)
Set the enumProperty property: Enumeration of possible field values.
Parameters:
Returns:
setEstimateSourceAndConfidence
public ContentFieldDefinition setEstimateSourceAndConfidence(Boolean estimateSourceAndConfidence)
Set the estimateSourceAndConfidence property: Return grounding source and confidence.
Parameters:
Returns:
setExamples
public ContentFieldDefinition setExamples(List<String> examples)
Set the examples property: Examples of field values.
Parameters:
Returns:
setItemDefinition
public ContentFieldDefinition setItemDefinition(ContentFieldDefinition itemDefinition)
Set the itemDefinition property: Field type schema of each array element, if type is array.
Parameters:
Returns:
setMethod
public ContentFieldDefinition setMethod(GenerationMethod method)
Set the method property: Generation method.
Parameters:
Returns:
setProperties
public ContentFieldDefinition setProperties(Map<String,ContentFieldDefinition> properties)
Set the properties property: Named sub-fields, if type is object.
Parameters:
Returns:
setRef
public ContentFieldDefinition setRef(String ref)
Set the ref property: Reference to another field definition.
Parameters:
Returns:
setType
public ContentFieldDefinition setType(ContentFieldType type)
Set the type property: Semantic data type of the field value.
Parameters:
Returns: