Class TrainedModelEntities
java.lang.Object
co.elastic.clients.elasticsearch.ml.TrainedModelEntities
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class TrainedModelEntities extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTrainedModelEntities.BuilderBuilder forTrainedModelEntities. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<TrainedModelEntities>_DESERIALIZERJson deserializer forTrainedModelEntities -
Method Summary
Modifier and Type Method Description java.lang.StringclassName()Required - API name:class_namedoubleclassProbability()Required - API name:class_probabilityintendPos()Required - API name:end_posjava.lang.Stringentity()Required - API name:entitystatic TrainedModelEntitiesof(java.util.function.Function<TrainedModelEntities.Builder,ObjectBuilder<TrainedModelEntities>> fn)voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupTrainedModelEntitiesDeserializer(ObjectDeserializer<TrainedModelEntities.Builder> op)intstartPos()Required - API name:start_posMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forTrainedModelEntities
-
-
Method Details
-
of
public static TrainedModelEntities of(java.util.function.Function<TrainedModelEntities.Builder,ObjectBuilder<TrainedModelEntities>> fn) -
className
public final java.lang.String className()Required - API name:class_name -
classProbability
public final double classProbability()Required - API name:class_probability -
entity
public final java.lang.String entity()Required - API name:entity -
startPos
public final int startPos()Required - API name:start_pos -
endPos
public final int endPos()Required - API name:end_pos -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupTrainedModelEntitiesDeserializer
protected static void setupTrainedModelEntitiesDeserializer(ObjectDeserializer<TrainedModelEntities.Builder> op)
-