Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Farr <[email protected]>
  • Loading branch information
Xtansia committed Jan 20, 2025
1 parent d808949 commit 39adfd5
Show file tree
Hide file tree
Showing 15 changed files with 1,121 additions and 1,023 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,10 @@ public enum Kind implements JsonEnum {
Avg("avg"),
AvgBucket("avg_bucket"),
Boxplot("boxplot"),
BucketCorrelation("bucket_correlation"),
BucketCountKsTest("bucket_count_ks_test"),
BucketScript("bucket_script"),
BucketSelector("bucket_selector"),
BucketSort("bucket_sort"),
Cardinality("cardinality"),
CategorizeText("categorize_text"),
Children("children"),
Composite("composite"),
CumulativeCardinality("cumulative_cardinality"),
Expand All @@ -92,18 +89,15 @@ public enum Kind implements JsonEnum {
ExtendedStatsBucket("extended_stats_bucket"),
Filter("filter"),
Filters("filters"),
FrequentItemSets("frequent_item_sets"),
GeoBounds("geo_bounds"),
GeoCentroid("geo_centroid"),
GeoDistance("geo_distance"),
GeoLine("geo_line"),
GeohashGrid("geohash_grid"),
GeohexGrid("geohex_grid"),
GeotileGrid("geotile_grid"),
Global("global"),
Histogram("histogram"),
Inference("inference"),
IpPrefix("ip_prefix"),
IpRange("ip_range"),
Line("line"),
MatrixStats("matrix_stats"),
Expand Down Expand Up @@ -293,38 +287,6 @@ public BoxplotAggregation boxplot() {
return TaggedUnionUtils.get(this, Kind.Boxplot);
}

/**
* Is this variant instance of kind {@code bucket_correlation}?
*/
public boolean isBucketCorrelation() {
return _kind == Kind.BucketCorrelation;
}

/**
* Get the {@code bucket_correlation} variant value.
*
* @throws IllegalStateException if the current variant is not the {@code bucket_correlation} kind.
*/
public BucketCorrelationAggregation bucketCorrelation() {
return TaggedUnionUtils.get(this, Kind.BucketCorrelation);
}

/**
* Is this variant instance of kind {@code bucket_count_ks_test}?
*/
public boolean isBucketCountKsTest() {
return _kind == Kind.BucketCountKsTest;
}

/**
* Get the {@code bucket_count_ks_test} variant value.
*
* @throws IllegalStateException if the current variant is not the {@code bucket_count_ks_test} kind.
*/
public BucketKsAggregation bucketCountKsTest() {
return TaggedUnionUtils.get(this, Kind.BucketCountKsTest);
}

/**
* Is this variant instance of kind {@code bucket_script}?
*/
Expand Down Expand Up @@ -389,22 +351,6 @@ public CardinalityAggregation cardinality() {
return TaggedUnionUtils.get(this, Kind.Cardinality);
}

/**
* Is this variant instance of kind {@code categorize_text}?
*/
public boolean isCategorizeText() {
return _kind == Kind.CategorizeText;
}

/**
* Get the {@code categorize_text} variant value.
*
* @throws IllegalStateException if the current variant is not the {@code categorize_text} kind.
*/
public CategorizeTextAggregation categorizeText() {
return TaggedUnionUtils.get(this, Kind.CategorizeText);
}

/**
* Is this variant instance of kind {@code children}?
*/
Expand Down Expand Up @@ -597,22 +543,6 @@ public FiltersAggregation filters() {
return TaggedUnionUtils.get(this, Kind.Filters);
}

/**
* Is this variant instance of kind {@code frequent_item_sets}?
*/
public boolean isFrequentItemSets() {
return _kind == Kind.FrequentItemSets;
}

/**
* Get the {@code frequent_item_sets} variant value.
*
* @throws IllegalStateException if the current variant is not the {@code frequent_item_sets} kind.
*/
public FrequentItemSetsAggregation frequentItemSets() {
return TaggedUnionUtils.get(this, Kind.FrequentItemSets);
}

/**
* Is this variant instance of kind {@code geo_bounds}?
*/
Expand Down Expand Up @@ -693,22 +623,6 @@ public GeoHashGridAggregation geohashGrid() {
return TaggedUnionUtils.get(this, Kind.GeohashGrid);
}

/**
* Is this variant instance of kind {@code geohex_grid}?
*/
public boolean isGeohexGrid() {
return _kind == Kind.GeohexGrid;
}

/**
* Get the {@code geohex_grid} variant value.
*
* @throws IllegalStateException if the current variant is not the {@code geohex_grid} kind.
*/
public GeohexGridAggregation geohexGrid() {
return TaggedUnionUtils.get(this, Kind.GeohexGrid);
}

/**
* Is this variant instance of kind {@code geotile_grid}?
*/
Expand Down Expand Up @@ -773,22 +687,6 @@ public InferenceAggregation inference() {
return TaggedUnionUtils.get(this, Kind.Inference);
}

/**
* Is this variant instance of kind {@code ip_prefix}?
*/
public boolean isIpPrefix() {
return _kind == Kind.IpPrefix;
}

/**
* Get the {@code ip_prefix} variant value.
*
* @throws IllegalStateException if the current variant is not the {@code ip_prefix} kind.
*/
public IpPrefixAggregation ipPrefix() {
return TaggedUnionUtils.get(this, Kind.IpPrefix);
}

/**
* Is this variant instance of kind {@code ip_range}?
*/
Expand Down Expand Up @@ -1612,28 +1510,6 @@ public ContainerBuilder boxplot(Function<BoxplotAggregation.Builder, ObjectBuild
return this.boxplot(fn.apply(new BoxplotAggregation.Builder()).build());
}

public ContainerBuilder bucketCorrelation(BucketCorrelationAggregation v) {
this._kind = Kind.BucketCorrelation;
this._value = v;
return new ContainerBuilder();
}

public ContainerBuilder bucketCorrelation(
Function<BucketCorrelationAggregation.Builder, ObjectBuilder<BucketCorrelationAggregation>> fn
) {
return this.bucketCorrelation(fn.apply(new BucketCorrelationAggregation.Builder()).build());
}

public ContainerBuilder bucketCountKsTest(BucketKsAggregation v) {
this._kind = Kind.BucketCountKsTest;
this._value = v;
return new ContainerBuilder();
}

public ContainerBuilder bucketCountKsTest(Function<BucketKsAggregation.Builder, ObjectBuilder<BucketKsAggregation>> fn) {
return this.bucketCountKsTest(fn.apply(new BucketKsAggregation.Builder()).build());
}

public ContainerBuilder bucketScript(BucketScriptAggregation v) {
this._kind = Kind.BucketScript;
this._value = v;
Expand Down Expand Up @@ -1674,16 +1550,6 @@ public ContainerBuilder cardinality(Function<CardinalityAggregation.Builder, Obj
return this.cardinality(fn.apply(new CardinalityAggregation.Builder()).build());
}

public ContainerBuilder categorizeText(CategorizeTextAggregation v) {
this._kind = Kind.CategorizeText;
this._value = v;
return new ContainerBuilder();
}

public ContainerBuilder categorizeText(Function<CategorizeTextAggregation.Builder, ObjectBuilder<CategorizeTextAggregation>> fn) {
return this.categorizeText(fn.apply(new CategorizeTextAggregation.Builder()).build());
}

public ContainerBuilder children(ChildrenAggregation v) {
this._kind = Kind.Children;
this._value = v;
Expand Down Expand Up @@ -1810,18 +1676,6 @@ public ContainerBuilder filters(Function<FiltersAggregation.Builder, ObjectBuild
return this.filters(fn.apply(new FiltersAggregation.Builder()).build());
}

public ContainerBuilder frequentItemSets(FrequentItemSetsAggregation v) {
this._kind = Kind.FrequentItemSets;
this._value = v;
return new ContainerBuilder();
}

public ContainerBuilder frequentItemSets(
Function<FrequentItemSetsAggregation.Builder, ObjectBuilder<FrequentItemSetsAggregation>> fn
) {
return this.frequentItemSets(fn.apply(new FrequentItemSetsAggregation.Builder()).build());
}

public ContainerBuilder geoBounds(GeoBoundsAggregation v) {
this._kind = Kind.GeoBounds;
this._value = v;
Expand Down Expand Up @@ -1872,16 +1726,6 @@ public ContainerBuilder geohashGrid(Function<GeoHashGridAggregation.Builder, Obj
return this.geohashGrid(fn.apply(new GeoHashGridAggregation.Builder()).build());
}

public ContainerBuilder geohexGrid(GeohexGridAggregation v) {
this._kind = Kind.GeohexGrid;
this._value = v;
return new ContainerBuilder();
}

public ContainerBuilder geohexGrid(Function<GeohexGridAggregation.Builder, ObjectBuilder<GeohexGridAggregation>> fn) {
return this.geohexGrid(fn.apply(new GeohexGridAggregation.Builder()).build());
}

public ContainerBuilder geotileGrid(GeoTileGridAggregation v) {
this._kind = Kind.GeotileGrid;
this._value = v;
Expand Down Expand Up @@ -1922,16 +1766,6 @@ public ContainerBuilder inference(Function<InferenceAggregation.Builder, ObjectB
return this.inference(fn.apply(new InferenceAggregation.Builder()).build());
}

public ContainerBuilder ipPrefix(IpPrefixAggregation v) {
this._kind = Kind.IpPrefix;
this._value = v;
return new ContainerBuilder();
}

public ContainerBuilder ipPrefix(Function<IpPrefixAggregation.Builder, ObjectBuilder<IpPrefixAggregation>> fn) {
return this.ipPrefix(fn.apply(new IpPrefixAggregation.Builder()).build());
}

public ContainerBuilder ipRange(IpRangeAggregation v) {
this._kind = Kind.IpRange;
this._value = v;
Expand Down Expand Up @@ -2444,13 +2278,10 @@ protected static void setupAggregationDeserializer(ObjectDeserializer<Builder> o
op.add(Builder::avg, AverageAggregation._DESERIALIZER, "avg");
op.add(Builder::avgBucket, AverageBucketAggregation._DESERIALIZER, "avg_bucket");
op.add(Builder::boxplot, BoxplotAggregation._DESERIALIZER, "boxplot");
op.add(Builder::bucketCorrelation, BucketCorrelationAggregation._DESERIALIZER, "bucket_correlation");
op.add(Builder::bucketCountKsTest, BucketKsAggregation._DESERIALIZER, "bucket_count_ks_test");
op.add(Builder::bucketScript, BucketScriptAggregation._DESERIALIZER, "bucket_script");
op.add(Builder::bucketSelector, BucketSelectorAggregation._DESERIALIZER, "bucket_selector");
op.add(Builder::bucketSort, BucketSortAggregation._DESERIALIZER, "bucket_sort");
op.add(Builder::cardinality, CardinalityAggregation._DESERIALIZER, "cardinality");
op.add(Builder::categorizeText, CategorizeTextAggregation._DESERIALIZER, "categorize_text");
op.add(Builder::children, ChildrenAggregation._DESERIALIZER, "children");
op.add(Builder::composite, CompositeAggregation._DESERIALIZER, "composite");
op.add(Builder::cumulativeCardinality, CumulativeCardinalityAggregation._DESERIALIZER, "cumulative_cardinality");
Expand All @@ -2463,18 +2294,15 @@ protected static void setupAggregationDeserializer(ObjectDeserializer<Builder> o
op.add(Builder::extendedStatsBucket, ExtendedStatsBucketAggregation._DESERIALIZER, "extended_stats_bucket");
op.add(Builder::filter, Query._DESERIALIZER, "filter");
op.add(Builder::filters, FiltersAggregation._DESERIALIZER, "filters");
op.add(Builder::frequentItemSets, FrequentItemSetsAggregation._DESERIALIZER, "frequent_item_sets");
op.add(Builder::geoBounds, GeoBoundsAggregation._DESERIALIZER, "geo_bounds");
op.add(Builder::geoCentroid, GeoCentroidAggregation._DESERIALIZER, "geo_centroid");
op.add(Builder::geoDistance, GeoDistanceAggregation._DESERIALIZER, "geo_distance");
op.add(Builder::geoLine, GeoLineAggregation._DESERIALIZER, "geo_line");
op.add(Builder::geohashGrid, GeoHashGridAggregation._DESERIALIZER, "geohash_grid");
op.add(Builder::geohexGrid, GeohexGridAggregation._DESERIALIZER, "geohex_grid");
op.add(Builder::geotileGrid, GeoTileGridAggregation._DESERIALIZER, "geotile_grid");
op.add(Builder::global, GlobalAggregation._DESERIALIZER, "global");
op.add(Builder::histogram, HistogramAggregation._DESERIALIZER, "histogram");
op.add(Builder::inference, InferenceAggregation._DESERIALIZER, "inference");
op.add(Builder::ipPrefix, IpPrefixAggregation._DESERIALIZER, "ip_prefix");
op.add(Builder::ipRange, IpRangeAggregation._DESERIALIZER, "ip_range");
op.add(Builder::line, GeoLineAggregation._DESERIALIZER, "line");
op.add(Builder::matrixStats, MatrixStatsAggregation._DESERIALIZER, "matrix_stats");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,20 +81,6 @@ public static BoxplotAggregation.Builder boxplot() {
return new BoxplotAggregation.Builder();
}

/**
* Creates a builder for the {@link BucketCorrelationAggregation bucket_correlation} {@code Aggregation} variant.
*/
public static BucketCorrelationAggregation.Builder bucketCorrelation() {
return new BucketCorrelationAggregation.Builder();
}

/**
* Creates a builder for the {@link BucketKsAggregation bucket_count_ks_test} {@code Aggregation} variant.
*/
public static BucketKsAggregation.Builder bucketCountKsTest() {
return new BucketKsAggregation.Builder();
}

/**
* Creates a builder for the {@link BucketScriptAggregation bucket_script} {@code Aggregation} variant.
*/
Expand Down Expand Up @@ -123,13 +109,6 @@ public static CardinalityAggregation.Builder cardinality() {
return new CardinalityAggregation.Builder();
}

/**
* Creates a builder for the {@link CategorizeTextAggregation categorize_text} {@code Aggregation} variant.
*/
public static CategorizeTextAggregation.Builder categorizeText() {
return new CategorizeTextAggregation.Builder();
}

/**
* Creates a builder for the {@link ChildrenAggregation children} {@code Aggregation} variant.
*/
Expand Down Expand Up @@ -214,13 +193,6 @@ public static FiltersAggregation.Builder filters() {
return new FiltersAggregation.Builder();
}

/**
* Creates a builder for the {@link FrequentItemSetsAggregation frequent_item_sets} {@code Aggregation} variant.
*/
public static FrequentItemSetsAggregation.Builder frequentItemSets() {
return new FrequentItemSetsAggregation.Builder();
}

/**
* Creates a builder for the {@link GeoBoundsAggregation geo_bounds} {@code Aggregation} variant.
*/
Expand Down Expand Up @@ -256,13 +228,6 @@ public static GeoHashGridAggregation.Builder geohashGrid() {
return new GeoHashGridAggregation.Builder();
}

/**
* Creates a builder for the {@link GeohexGridAggregation geohex_grid} {@code Aggregation} variant.
*/
public static GeohexGridAggregation.Builder geohexGrid() {
return new GeohexGridAggregation.Builder();
}

/**
* Creates a builder for the {@link GeoTileGridAggregation geotile_grid} {@code Aggregation} variant.
*/
Expand Down Expand Up @@ -291,13 +256,6 @@ public static InferenceAggregation.Builder inference() {
return new InferenceAggregation.Builder();
}

/**
* Creates a builder for the {@link IpPrefixAggregation ip_prefix} {@code Aggregation} variant.
*/
public static IpPrefixAggregation.Builder ipPrefix() {
return new IpPrefixAggregation.Builder();
}

/**
* Creates a builder for the {@link IpRangeAggregation ip_range} {@code Aggregation} variant.
*/
Expand Down
Loading

0 comments on commit 39adfd5

Please sign in to comment.