Class Like
java.lang.Object
org.opensearch.client.opensearch._types.query_dsl.Like
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,TaggedUnion<Like.Kind,Object>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class Like
extends Object
implements TaggedUnion<Like.Kind,Object>, PlainJsonSerializable
Text that we want similar documents for or a lookup to a document's field for the text.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()final Like.Kind_kind()Get the of the kind of variant held by this object.static Like.Builderbuilder()document()Get thedocumentvariant value.booleaninthashCode()booleanIs this variant instance of kinddocument?booleanisText()Is this variant instance of kindtext?static Likeof(Function<Like.Builder, ObjectBuilder<Like>> fn) voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) text()Get thetextvariant value.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonString
-
Field Details
-
_DESERIALIZER
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<Like.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<Like.Kind,Object>
-
of
-
isDocument
public boolean isDocument()Is this variant instance of kinddocument? -
document
Get thedocumentvariant value.- Throws:
IllegalStateException- if the current variant is not thedocumentkind.
-
isText
public boolean isText()Is this variant instance of kindtext? -
text
Get thetextvariant value.- Throws:
IllegalStateException- if the current variant is not thetextkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toBuilder
-
builder
-
hashCode
public int hashCode() -
equals
-