Module org.elasticsearch.server
Class ContentObject.ContentObjectText
java.lang.Object
org.elasticsearch.inference.completion.ContentObject
org.elasticsearch.inference.completion.ContentObject.ContentObjectText
- All Implemented Interfaces:
NamedWriteable,Writeable,ToXContent
- Enclosing class:
ContentObject
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.inference.completion.ContentObject
ContentObject.ContentObjectFile, ContentObject.ContentObjectImage, ContentObject.ContentObjectText, ContentObject.ContentObjectTypeNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the name of the writeable objectinthashCode()text()toString()toXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class org.elasticsearch.inference.completion.ContentObject
fromMap, typeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContent
isFragment
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
ContentObjectText
-
ContentObjectText
- Throws:
IOException
-
-
Method Details
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Throws:
IOException
-
toString
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Throws:
IOException
-
text
-
equals
-
hashCode
public int hashCode() -
getWriteableName
Description copied from interface:NamedWriteableReturns the name of the writeable object
-