in src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AggregateDictionary.g.cs [141:359]
internal static void WriteItem(System.Text.Json.Utf8JsonWriter writer, System.Text.Json.JsonSerializerOptions options, string name, Elastic.Clients.Elasticsearch.Aggregations.IAggregate value)
{
var key = value.Type + '#' + name;
switch (value)
{
case Elastic.Clients.Elasticsearch.Aggregations.AdjacencyMatrixAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.AutoDateHistogramAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.AverageAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.BoxplotAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.BucketMetricValueAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.CardinalityAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.ChildrenAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.CompositeAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.DateHistogramAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.DateRangeAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.DerivativeAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.DoubleTermsAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.ExtendedStatsAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.ExtendedStatsBucketAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.FilterAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.FiltersAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.FrequentItemSetsAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.GeoBoundsAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.GeoCentroidAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.GeoDistanceAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.GeoLineAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.GeohashGridAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.GeohexGridAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.GeotileGridAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.GlobalAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.HdrPercentileRanksAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.HdrPercentilesAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.HistogramAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.InferenceAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.IpPrefixAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.IpRangeAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.LongRareTermsAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.LongTermsAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.MatrixStatsAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.MaxAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.MedianAbsoluteDeviationAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.MinAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.MissingAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.MultiTermsAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.NestedAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.ParentAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.PercentilesBucketAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.RangeAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.RateAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.ReverseNestedAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.SamplerAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.ScriptedMetricAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.SignificantLongTermsAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.SignificantStringTermsAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.CumulativeCardinalityAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.SimpleValueAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.StringRareTermsAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.StatsAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.StatsBucketAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.StringTermsAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.StringStatsAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.SumAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.TTestAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.TDigestPercentileRanksAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.TDigestPercentilesAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.TimeSeriesAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.TopHitsAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.TopMetricsAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.UnmappedRareTermsAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.UnmappedSignificantTermsAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.UnmappedTermsAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.UnmappedSamplerAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.ValueCountAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.VariableWidthHistogramAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
case Elastic.Clients.Elasticsearch.Aggregations.WeightedAverageAggregate v:
writer.WriteProperty(options, key, v, null, null);
break;
default:
throw new System.Text.Json.JsonException($"Variant '{0}' is not supported for type '{nameof(Elastic.Clients.Elasticsearch.Aggregations.IAggregate)}'.");
}
}