Class Property
java.lang.Object
org.opensearch.client.opensearch._types.mapping.Property
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,TaggedUnion<Property.Kind,PropertyVariant>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class Property
extends Object
implements TaggedUnion<Property.Kind,PropertyVariant>, PlainJsonSerializable
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal PropertyVariant_get()final Property.Kind_kind()Get the of the kind of variant held by this object.Get theaggregate_metric_doublevariant value.alias()Get thealiasvariant value.binary()Get thebinaryvariant value.boolean_()Get thebooleanvariant value.static Property.Builderbuilder()byte_()Get thebytevariant value.Get thecompletionvariant value.Get theconstant_keywordvariant value.date()Get thedatevariant value.Get thedate_nanosvariant value.Get thedate_rangevariant value.double_()Get thedoublevariant value.Get thedouble_rangevariant value.booleanGet theflat_objectvariant value.float_()Get thefloatvariant value.Get thefloat_rangevariant value.geoPoint()Get thegeo_pointvariant value.geoShape()Get thegeo_shapevariant value.Get thehalf_floatvariant value.inthashCode()Get thehistogramvariant value.Get theicu_collation_keywordvariant value.integer()Get theintegervariant value.Get theinteger_rangevariant value.ip()Get theipvariant value.ipRange()Get theip_rangevariant value.booleanIs this variant instance of kindaggregate_metric_double?booleanisAlias()Is this variant instance of kindalias?booleanisBinary()Is this variant instance of kindbinary?booleanIs this variant instance of kindboolean?booleanisByte()Is this variant instance of kindbyte?booleanIs this variant instance of kindcompletion?booleanIs this variant instance of kindconstant_keyword?booleanisDate()Is this variant instance of kinddate?booleanIs this variant instance of kinddate_nanos?booleanIs this variant instance of kinddate_range?booleanisDouble()Is this variant instance of kinddouble?booleanIs this variant instance of kinddouble_range?booleanIs this variant instance of kindflat_object?booleanisFloat()Is this variant instance of kindfloat?booleanIs this variant instance of kindfloat_range?booleanIs this variant instance of kindgeo_point?booleanIs this variant instance of kindgeo_shape?booleanIs this variant instance of kindhalf_float?booleanIs this variant instance of kindhistogram?booleanIs this variant instance of kindicu_collation_keyword?booleanIs this variant instance of kindinteger?booleanIs this variant instance of kindinteger_range?booleanisIp()Is this variant instance of kindip?booleanIs this variant instance of kindip_range?booleanisJoin()Is this variant instance of kindjoin?booleanIs this variant instance of kindkeyword?booleanIs this variant instance of kindknn_vector?booleanisLong()Is this variant instance of kindlong?booleanIs this variant instance of kindlong_range?booleanIs this variant instance of kindmatch_only_text?booleanIs this variant instance of kindmurmur3?booleanisNested()Is this variant instance of kindnested?booleanisObject()Is this variant instance of kindobject?booleanIs this variant instance of kindpercolator?booleanIs this variant instance of kindrank_feature?booleanIs this variant instance of kindrank_features?booleanIs this variant instance of kindscaled_float?booleanIs this variant instance of kindsearch_as_you_type?booleanisShort()Is this variant instance of kindshort?booleanisText()Is this variant instance of kindtext?booleanIs this variant instance of kindtoken_count?booleanIs this variant instance of kindunsigned_long?booleanIs this variant instance of kindversion?booleanIs this variant instance of kindwildcard?booleanIs this variant instance of kindxy_point?booleanIs this variant instance of kindxy_shape?join()Get thejoinvariant value.keyword()Get thekeywordvariant value.Get theknn_vectorvariant value.long_()Get thelongvariant value.Get thelong_rangevariant value.Get thematch_only_textvariant value.murmur3()Get themurmur3variant value.nested()Get thenestedvariant value.object()Get theobjectvariant value.static PropertyGet thepercolatorvariant value.Get therank_featurevariant value.Get therank_featuresvariant value.Get thescaled_floatvariant value.Get thesearch_as_you_typevariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidshort_()Get theshortvariant value.text()Get thetextvariant value.Get thetoken_countvariant value.Get theunsigned_longvariant value.version()Get theversionvariant value.wildcard()Get thewildcardvariant value.xyPoint()Get thexy_pointvariant value.xyShape()Get thexy_shapevariant 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
-
-
Constructor Details
-
Property
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<Property.Kind,PropertyVariant> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<Property.Kind,PropertyVariant>
-
of
-
isAggregateMetricDouble
public boolean isAggregateMetricDouble()Is this variant instance of kindaggregate_metric_double? -
aggregateMetricDouble
Get theaggregate_metric_doublevariant value.- Throws:
IllegalStateException- if the current variant is not theaggregate_metric_doublekind.
-
isAlias
public boolean isAlias()Is this variant instance of kindalias? -
alias
Get thealiasvariant value.- Throws:
IllegalStateException- if the current variant is not thealiaskind.
-
isBinary
public boolean isBinary()Is this variant instance of kindbinary? -
binary
Get thebinaryvariant value.- Throws:
IllegalStateException- if the current variant is not thebinarykind.
-
isBoolean
public boolean isBoolean()Is this variant instance of kindboolean? -
boolean_
Get thebooleanvariant value.- Throws:
IllegalStateException- if the current variant is not thebooleankind.
-
isByte
public boolean isByte()Is this variant instance of kindbyte? -
byte_
Get thebytevariant value.- Throws:
IllegalStateException- if the current variant is not thebytekind.
-
isCompletion
public boolean isCompletion()Is this variant instance of kindcompletion? -
completion
Get thecompletionvariant value.- Throws:
IllegalStateException- if the current variant is not thecompletionkind.
-
isConstantKeyword
public boolean isConstantKeyword()Is this variant instance of kindconstant_keyword? -
constantKeyword
Get theconstant_keywordvariant value.- Throws:
IllegalStateException- if the current variant is not theconstant_keywordkind.
-
isDate
public boolean isDate()Is this variant instance of kinddate? -
date
Get thedatevariant value.- Throws:
IllegalStateException- if the current variant is not thedatekind.
-
isDateNanos
public boolean isDateNanos()Is this variant instance of kinddate_nanos? -
dateNanos
Get thedate_nanosvariant value.- Throws:
IllegalStateException- if the current variant is not thedate_nanoskind.
-
isDateRange
public boolean isDateRange()Is this variant instance of kinddate_range? -
dateRange
Get thedate_rangevariant value.- Throws:
IllegalStateException- if the current variant is not thedate_rangekind.
-
isDouble
public boolean isDouble()Is this variant instance of kinddouble? -
double_
Get thedoublevariant value.- Throws:
IllegalStateException- if the current variant is not thedoublekind.
-
isDoubleRange
public boolean isDoubleRange()Is this variant instance of kinddouble_range? -
doubleRange
Get thedouble_rangevariant value.- Throws:
IllegalStateException- if the current variant is not thedouble_rangekind.
-
isFlatObject
public boolean isFlatObject()Is this variant instance of kindflat_object? -
flatObject
Get theflat_objectvariant value.- Throws:
IllegalStateException- if the current variant is not theflat_objectkind.
-
isFloat
public boolean isFloat()Is this variant instance of kindfloat? -
float_
Get thefloatvariant value.- Throws:
IllegalStateException- if the current variant is not thefloatkind.
-
isFloatRange
public boolean isFloatRange()Is this variant instance of kindfloat_range? -
floatRange
Get thefloat_rangevariant value.- Throws:
IllegalStateException- if the current variant is not thefloat_rangekind.
-
isGeoPoint
public boolean isGeoPoint()Is this variant instance of kindgeo_point? -
geoPoint
Get thegeo_pointvariant value.- Throws:
IllegalStateException- if the current variant is not thegeo_pointkind.
-
isGeoShape
public boolean isGeoShape()Is this variant instance of kindgeo_shape? -
geoShape
Get thegeo_shapevariant value.- Throws:
IllegalStateException- if the current variant is not thegeo_shapekind.
-
isHalfFloat
public boolean isHalfFloat()Is this variant instance of kindhalf_float? -
halfFloat
Get thehalf_floatvariant value.- Throws:
IllegalStateException- if the current variant is not thehalf_floatkind.
-
isHistogram
public boolean isHistogram()Is this variant instance of kindhistogram? -
histogram
Get thehistogramvariant value.- Throws:
IllegalStateException- if the current variant is not thehistogramkind.
-
isIcuCollationKeyword
public boolean isIcuCollationKeyword()Is this variant instance of kindicu_collation_keyword? -
icuCollationKeyword
Get theicu_collation_keywordvariant value.- Throws:
IllegalStateException- if the current variant is not theicu_collation_keywordkind.
-
isInteger
public boolean isInteger()Is this variant instance of kindinteger? -
integer
Get theintegervariant value.- Throws:
IllegalStateException- if the current variant is not theintegerkind.
-
isIntegerRange
public boolean isIntegerRange()Is this variant instance of kindinteger_range? -
integerRange
Get theinteger_rangevariant value.- Throws:
IllegalStateException- if the current variant is not theinteger_rangekind.
-
isIp
public boolean isIp()Is this variant instance of kindip? -
ip
Get theipvariant value.- Throws:
IllegalStateException- if the current variant is not theipkind.
-
isIpRange
public boolean isIpRange()Is this variant instance of kindip_range? -
ipRange
Get theip_rangevariant value.- Throws:
IllegalStateException- if the current variant is not theip_rangekind.
-
isJoin
public boolean isJoin()Is this variant instance of kindjoin? -
join
Get thejoinvariant value.- Throws:
IllegalStateException- if the current variant is not thejoinkind.
-
isKeyword
public boolean isKeyword()Is this variant instance of kindkeyword? -
keyword
Get thekeywordvariant value.- Throws:
IllegalStateException- if the current variant is not thekeywordkind.
-
isKnnVector
public boolean isKnnVector()Is this variant instance of kindknn_vector? -
knnVector
Get theknn_vectorvariant value.- Throws:
IllegalStateException- if the current variant is not theknn_vectorkind.
-
isLong
public boolean isLong()Is this variant instance of kindlong? -
long_
Get thelongvariant value.- Throws:
IllegalStateException- if the current variant is not thelongkind.
-
isLongRange
public boolean isLongRange()Is this variant instance of kindlong_range? -
longRange
Get thelong_rangevariant value.- Throws:
IllegalStateException- if the current variant is not thelong_rangekind.
-
isMatchOnlyText
public boolean isMatchOnlyText()Is this variant instance of kindmatch_only_text? -
matchOnlyText
Get thematch_only_textvariant value.- Throws:
IllegalStateException- if the current variant is not thematch_only_textkind.
-
isMurmur3
public boolean isMurmur3()Is this variant instance of kindmurmur3? -
murmur3
Get themurmur3variant value.- Throws:
IllegalStateException- if the current variant is not themurmur3kind.
-
isNested
public boolean isNested()Is this variant instance of kindnested? -
nested
Get thenestedvariant value.- Throws:
IllegalStateException- if the current variant is not thenestedkind.
-
isObject
public boolean isObject()Is this variant instance of kindobject? -
object
Get theobjectvariant value.- Throws:
IllegalStateException- if the current variant is not theobjectkind.
-
isPercolator
public boolean isPercolator()Is this variant instance of kindpercolator? -
percolator
Get thepercolatorvariant value.- Throws:
IllegalStateException- if the current variant is not thepercolatorkind.
-
isRankFeature
public boolean isRankFeature()Is this variant instance of kindrank_feature? -
rankFeature
Get therank_featurevariant value.- Throws:
IllegalStateException- if the current variant is not therank_featurekind.
-
isRankFeatures
public boolean isRankFeatures()Is this variant instance of kindrank_features? -
rankFeatures
Get therank_featuresvariant value.- Throws:
IllegalStateException- if the current variant is not therank_featureskind.
-
isScaledFloat
public boolean isScaledFloat()Is this variant instance of kindscaled_float? -
scaledFloat
Get thescaled_floatvariant value.- Throws:
IllegalStateException- if the current variant is not thescaled_floatkind.
-
isSearchAsYouType
public boolean isSearchAsYouType()Is this variant instance of kindsearch_as_you_type? -
searchAsYouType
Get thesearch_as_you_typevariant value.- Throws:
IllegalStateException- if the current variant is not thesearch_as_you_typekind.
-
isShort
public boolean isShort()Is this variant instance of kindshort? -
short_
Get theshortvariant value.- Throws:
IllegalStateException- if the current variant is not theshortkind.
-
isText
public boolean isText()Is this variant instance of kindtext? -
text
Get thetextvariant value.- Throws:
IllegalStateException- if the current variant is not thetextkind.
-
isTokenCount
public boolean isTokenCount()Is this variant instance of kindtoken_count? -
tokenCount
Get thetoken_countvariant value.- Throws:
IllegalStateException- if the current variant is not thetoken_countkind.
-
isUnsignedLong
public boolean isUnsignedLong()Is this variant instance of kindunsigned_long? -
unsignedLong
Get theunsigned_longvariant value.- Throws:
IllegalStateException- if the current variant is not theunsigned_longkind.
-
isVersion
public boolean isVersion()Is this variant instance of kindversion? -
version
Get theversionvariant value.- Throws:
IllegalStateException- if the current variant is not theversionkind.
-
isWildcard
public boolean isWildcard()Is this variant instance of kindwildcard? -
wildcard
Get thewildcardvariant value.- Throws:
IllegalStateException- if the current variant is not thewildcardkind.
-
isXyPoint
public boolean isXyPoint()Is this variant instance of kindxy_point? -
xyPoint
Get thexy_pointvariant value.- Throws:
IllegalStateException- if the current variant is not thexy_pointkind.
-
isXyShape
public boolean isXyShape()Is this variant instance of kindxy_shape? -
xyShape
Get thexy_shapevariant value.- Throws:
IllegalStateException- if the current variant is not thexy_shapekind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toBuilder
-
builder
-
setupPropertyDeserializer
-
hashCode
public int hashCode() -
equals
-