Class CompletionResult
java.lang.Object
co.elastic.clients.elasticsearch.inference.CompletionResult
- All Implemented Interfaces:
JsonpSerializable
The completion result object
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<CompletionResult>
Json deserializer forCompletionResult
-
Method Summary
Modifier and TypeMethodDescriptionstatic CompletionResult
final String
result()
Required - API name:result
void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
toString()
-
Field Details
-
_DESERIALIZER
Json deserializer forCompletionResult
-
-
Method Details
-
of
public static CompletionResult of(Function<CompletionResult.Builder, ObjectBuilder<CompletionResult>> fn) -
result
Required - API name:result
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupCompletionResultDeserializer
protected static void setupCompletionResultDeserializer(ObjectDeserializer<CompletionResult.Builder> op)
-