Class GeoHashLocation
java.lang.Object
org.opensearch.client.opensearch._types.GeoHashLocation
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<GeoHashLocation.Builder,GeoHashLocation>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class GeoHashLocation
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<GeoHashLocation.Builder,GeoHashLocation>
The geographical location specified using a geohash.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<GeoHashLocation> Json deserializer forGeoHashLocation -
Method Summary
Modifier and TypeMethodDescriptionstatic GeoHashLocation.Builderbuilder()booleanfinal Stringgeohash()Required - API name:geohashinthashCode()static GeoHashLocationvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forGeoHashLocation
-
-
Method Details
-
of
public static GeoHashLocation of(Function<GeoHashLocation.Builder, ObjectBuilder<GeoHashLocation>> fn) -
geohash
Required - API name:geohash -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<GeoHashLocation.Builder,GeoHashLocation> - Returns:
- a new builder instance.
-
builder
-
setupGeoHashLocationDeserializer
protected static void setupGeoHashLocationDeserializer(ObjectDeserializer<GeoHashLocation.Builder> op) -
hashCode
public int hashCode() -
equals
-