java.lang.Object
co.elastic.clients.elasticsearch._types.mapping.Property
All Implemented Interfaces:
JsonpSerializable, TaggedUnion<JsonpSerializable>

@JsonpDeserializable
public class Property
extends java.lang.Object
implements TaggedUnion<JsonpSerializable>, JsonpSerializable
  • Field Details

  • Constructor Details

  • Method Details

    • _type

      public java.lang.String _type()
      Description copied from interface: TaggedUnion
      Get the of the type of the variant held by this union object.
      Specified by:
      _type in interface TaggedUnion<JsonpSerializable>
      Returns:
      the variant type
    • _get

      public JsonpSerializable _get()
      Specified by:
      _get in interface TaggedUnion<JsonpSerializable>
    • aggregateMetricDouble

      public AggregateMetricDoubleProperty aggregateMetricDouble()
      Get the aggregate_metric_double variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the aggregate_metric_double kind.
    • binary

      public BinaryProperty binary()
      Get the binary variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the binary kind.
    • boolean_

      public BooleanProperty boolean_()
      Get the boolean variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the boolean kind.
    • completion

      public CompletionProperty completion()
      Get the completion variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the completion kind.
    • constantKeyword

      public ConstantKeywordProperty constantKeyword()
      Get the constant_keyword variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the constant_keyword kind.
    • dateNanos

      public DateNanosProperty dateNanos()
      Get the date_nanos variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the date_nanos kind.
    • date

      public DateProperty date()
      Get the date variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the date kind.
    • dateRange

      public DateRangeProperty dateRange()
      Get the date_range variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the date_range kind.
    • denseVector

      public DenseVectorProperty denseVector()
      Get the dense_vector variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the dense_vector kind.
    • doubleRange

      public DoubleRangeProperty doubleRange()
      Get the double_range variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the double_range kind.
    • alias

      public FieldAliasProperty alias()
      Get the alias variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the alias kind.
    • flattened

      public FlattenedProperty flattened()
      Get the flattened variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the flattened kind.
    • floatRange

      public FloatRangeProperty floatRange()
      Get the float_range variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the float_range kind.
    • geoPoint

      public GeoPointProperty geoPoint()
      Get the geo_point variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the geo_point kind.
    • geoShape

      public GeoShapeProperty geoShape()
      Get the geo_shape variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the geo_shape kind.
    • histogram

      public HistogramProperty histogram()
      Get the histogram variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the histogram kind.
    • integerRange

      public IntegerRangeProperty integerRange()
      Get the integer_range variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the integer_range kind.
    • ip

      public IpProperty ip()
      Get the ip variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the ip kind.
    • ipRange

      public IpRangeProperty ipRange()
      Get the ip_range variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the ip_range kind.
    • join

      public JoinProperty join()
      Get the join variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the join kind.
    • keyword

      public KeywordProperty keyword()
      Get the keyword variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the keyword kind.
    • longRange

      public LongRangeProperty longRange()
      Get the long_range variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the long_range kind.
    • murmur3

      public Murmur3HashProperty murmur3()
      Get the murmur3 variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the murmur3 kind.
    • nested

      public NestedProperty nested()
      Get the nested variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the nested kind.
    • float_

      public NumberProperty float_()
      Get the float variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the float kind.
    • object

      public ObjectProperty object()
      Get the object variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the object kind.
    • percolator

      public PercolatorProperty percolator()
      Get the percolator variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the percolator kind.
    • point

      public PointProperty point()
      Get the point variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the point kind.
    • rankFeature

      public RankFeatureProperty rankFeature()
      Get the rank_feature variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the rank_feature kind.
    • rankFeatures

      public RankFeaturesProperty rankFeatures()
      Get the rank_features variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the rank_features kind.
    • searchAsYouType

      public SearchAsYouTypeProperty searchAsYouType()
      Get the search_as_you_type variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the search_as_you_type kind.
    • shape

      public ShapeProperty shape()
      Get the shape variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the shape kind.
    • text

      public TextProperty text()
      Get the text variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the text kind.
    • tokenCount

      public TokenCountProperty tokenCount()
      Get the token_count variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the token_count kind.
    • version

      public VersionProperty version()
      Get the version variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the version kind.
    • wildcard

      public WildcardProperty wildcard()
      Get the wildcard variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the wildcard kind.
    • serialize

      public void serialize​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Specified by:
      serialize in interface JsonpSerializable
    • setupPropertyDeserializer

      protected static void setupPropertyDeserializer​(DelegatingDeserializer<Property.Builder> op)