Class GeoBounds
java.lang.Object
org.opensearch.client.opensearch._types.GeoBounds
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,TaggedUnion<GeoBounds.Kind,Object>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class GeoBounds
extends Object
implements TaggedUnion<GeoBounds.Kind,Object>, PlainJsonSerializable
A geo-bounding box. It can be represented in the following ways:
- As 4 top/bottom/left/right coordinates.
- As 2 top_left/bottom_right points.
- As 2 top_right/bottom_left points.
- As a Well Known Text (WKT) bounding box.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()final GeoBounds.Kind_kind()Get the of the kind of variant held by this object.static GeoBounds.Builderbuilder()coords()Get thecoordsvariant value.booleaninthashCode()booleanisCoords()Is this variant instance of kindcoords?booleanisTlbr()Is this variant instance of kindtlbr?booleanisTrbl()Is this variant instance of kindtrbl?booleanisWkt()Is this variant instance of kindwkt?static GeoBoundsvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) tlbr()Get thetlbrvariant value.trbl()Get thetrblvariant value.wkt()Get thewktvariant 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<GeoBounds.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<GeoBounds.Kind,Object>
-
of
-
isCoords
public boolean isCoords()Is this variant instance of kindcoords? -
coords
Get thecoordsvariant value.- Throws:
IllegalStateException- if the current variant is not thecoordskind.
-
isTlbr
public boolean isTlbr()Is this variant instance of kindtlbr? -
tlbr
Get thetlbrvariant value.- Throws:
IllegalStateException- if the current variant is not thetlbrkind.
-
isTrbl
public boolean isTrbl()Is this variant instance of kindtrbl? -
trbl
Get thetrblvariant value.- Throws:
IllegalStateException- if the current variant is not thetrblkind.
-
isWkt
public boolean isWkt()Is this variant instance of kindwkt? -
wkt
Get thewktvariant value.- Throws:
IllegalStateException- if the current variant is not thewktkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toBuilder
-
builder
-
hashCode
public int hashCode() -
equals
-