View Javadoc
1   /*
2    * Copyright 2012-2025 CodeLibs Project and the Others.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *     http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13   * either express or implied. See the License for the specific language
14   * governing permissions and limitations under the License.
15   */
16  package org.codelibs.fess.opensearch.config.cbean.ca.bs;
17  
18  import org.codelibs.fess.opensearch.config.allcommon.EsAbstractConditionAggregation;
19  import org.codelibs.fess.opensearch.config.allcommon.EsAbstractConditionQuery;
20  import org.codelibs.fess.opensearch.config.cbean.ca.CrawlingInfoParamCA;
21  import org.codelibs.fess.opensearch.config.cbean.cq.CrawlingInfoParamCQ;
22  import org.codelibs.fess.opensearch.config.cbean.cq.bs.BsCrawlingInfoParamCQ;
23  import org.opensearch.search.aggregations.bucket.filter.FilterAggregationBuilder;
24  import org.opensearch.search.aggregations.bucket.global.GlobalAggregationBuilder;
25  import org.opensearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder;
26  import org.opensearch.search.aggregations.bucket.missing.MissingAggregationBuilder;
27  import org.opensearch.search.aggregations.bucket.range.IpRangeAggregationBuilder;
28  import org.opensearch.search.aggregations.bucket.range.RangeAggregationBuilder;
29  import org.opensearch.search.aggregations.bucket.sampler.SamplerAggregationBuilder;
30  import org.opensearch.search.aggregations.bucket.terms.SignificantTermsAggregationBuilder;
31  import org.opensearch.search.aggregations.bucket.terms.TermsAggregationBuilder;
32  import org.opensearch.search.aggregations.metrics.AvgAggregationBuilder;
33  import org.opensearch.search.aggregations.metrics.CardinalityAggregationBuilder;
34  import org.opensearch.search.aggregations.metrics.ExtendedStatsAggregationBuilder;
35  import org.opensearch.search.aggregations.metrics.MaxAggregationBuilder;
36  import org.opensearch.search.aggregations.metrics.MinAggregationBuilder;
37  import org.opensearch.search.aggregations.metrics.PercentileRanksAggregationBuilder;
38  import org.opensearch.search.aggregations.metrics.PercentilesAggregationBuilder;
39  import org.opensearch.search.aggregations.metrics.ScriptedMetricAggregationBuilder;
40  import org.opensearch.search.aggregations.metrics.StatsAggregationBuilder;
41  import org.opensearch.search.aggregations.metrics.SumAggregationBuilder;
42  import org.opensearch.search.aggregations.metrics.TopHitsAggregationBuilder;
43  import org.opensearch.search.aggregations.metrics.ValueCountAggregationBuilder;
44  
45  /**
46   * @author ESFlute (using FreeGen)
47   */
48  public abstract class BsCrawlingInfoParamCA extends EsAbstractConditionAggregation {
49  
50      // ===================================================================================
51      //                                                                     Aggregation Set
52      //                                                                           =========
53  
54      public void filter(String name, EsAbstractConditionQuery.OperatorCall<BsCrawlingInfoParamCQ> queryLambda,
55              ConditionOptionCall<FilterAggregationBuilder> opLambda, OperatorCall<BsCrawlingInfoParamCA> aggsLambda) {
56          CrawlingInfoParamCQ cq = new CrawlingInfoParamCQ();
57          if (queryLambda != null) {
58              queryLambda.callback(cq);
59          }
60          FilterAggregationBuilder builder = regFilterA(name, cq.getQuery());
61          if (opLambda != null) {
62              opLambda.callback(builder);
63          }
64          if (aggsLambda != null) {
65              CrawlingInfoParamCA ca = new CrawlingInfoParamCA();
66              aggsLambda.callback(ca);
67              ca.getAggregationBuilderList().forEach(builder::subAggregation);
68          }
69      }
70  
71      public void global(String name, ConditionOptionCall<GlobalAggregationBuilder> opLambda,
72              OperatorCall<BsCrawlingInfoParamCA> aggsLambda) {
73          GlobalAggregationBuilder builder = regGlobalA(name);
74          if (opLambda != null) {
75              opLambda.callback(builder);
76          }
77          if (aggsLambda != null) {
78              CrawlingInfoParamCA ca = new CrawlingInfoParamCA();
79              aggsLambda.callback(ca);
80              ca.getAggregationBuilderList().forEach(builder::subAggregation);
81          }
82      }
83  
84      public void sampler(String name, ConditionOptionCall<SamplerAggregationBuilder> opLambda,
85              OperatorCall<BsCrawlingInfoParamCA> aggsLambda) {
86          SamplerAggregationBuilder builder = regSamplerA(name);
87          if (opLambda != null) {
88              opLambda.callback(builder);
89          }
90          if (aggsLambda != null) {
91              CrawlingInfoParamCA ca = new CrawlingInfoParamCA();
92              aggsLambda.callback(ca);
93              ca.getAggregationBuilderList().forEach(builder::subAggregation);
94          }
95      }
96  
97      public void scriptedMetric(String name, ConditionOptionCall<ScriptedMetricAggregationBuilder> opLambda) {
98          ScriptedMetricAggregationBuilder builder = regScriptedMetricA(name);
99          if (opLambda != null) {
100             opLambda.callback(builder);
101         }
102     }
103 
104     public void topHits(String name, ConditionOptionCall<TopHitsAggregationBuilder> opLambda) {
105         TopHitsAggregationBuilder builder = regTopHitsA(name);
106         if (opLambda != null) {
107             opLambda.callback(builder);
108         }
109     }
110 
111     public void setCrawlingInfoId_Terms() {
112         setCrawlingInfoId_Terms(null);
113     }
114 
115     public void setCrawlingInfoId_Terms(ConditionOptionCall<TermsAggregationBuilder> opLambda) {
116         setCrawlingInfoId_Terms("crawlingInfoId", opLambda, null);
117     }
118 
119     public void setCrawlingInfoId_Terms(ConditionOptionCall<TermsAggregationBuilder> opLambda,
120             OperatorCall<BsCrawlingInfoParamCA> aggsLambda) {
121         setCrawlingInfoId_Terms("crawlingInfoId", opLambda, aggsLambda);
122     }
123 
124     public void setCrawlingInfoId_Terms(String name, ConditionOptionCall<TermsAggregationBuilder> opLambda,
125             OperatorCall<BsCrawlingInfoParamCA> aggsLambda) {
126         TermsAggregationBuilder builder = regTermsA(name, "crawlingInfoId");
127         if (opLambda != null) {
128             opLambda.callback(builder);
129         }
130         if (aggsLambda != null) {
131             CrawlingInfoParamCA ca = new CrawlingInfoParamCA();
132             aggsLambda.callback(ca);
133             ca.getAggregationBuilderList().forEach(builder::subAggregation);
134         }
135     }
136 
137     public void setCrawlingInfoId_SignificantTerms() {
138         setCrawlingInfoId_SignificantTerms(null);
139     }
140 
141     public void setCrawlingInfoId_SignificantTerms(ConditionOptionCall<SignificantTermsAggregationBuilder> opLambda) {
142         setCrawlingInfoId_SignificantTerms("crawlingInfoId", opLambda, null);
143     }
144 
145     public void setCrawlingInfoId_SignificantTerms(ConditionOptionCall<SignificantTermsAggregationBuilder> opLambda,
146             OperatorCall<BsCrawlingInfoParamCA> aggsLambda) {
147         setCrawlingInfoId_SignificantTerms("crawlingInfoId", opLambda, aggsLambda);
148     }
149 
150     public void setCrawlingInfoId_SignificantTerms(String name, ConditionOptionCall<SignificantTermsAggregationBuilder> opLambda,
151             OperatorCall<BsCrawlingInfoParamCA> aggsLambda) {
152         SignificantTermsAggregationBuilder builder = regSignificantTermsA(name, "crawlingInfoId");
153         if (opLambda != null) {
154             opLambda.callback(builder);
155         }
156         if (aggsLambda != null) {
157             CrawlingInfoParamCA ca = new CrawlingInfoParamCA();
158             aggsLambda.callback(ca);
159             ca.getAggregationBuilderList().forEach(builder::subAggregation);
160         }
161     }
162 
163     public void setCrawlingInfoId_IpRange() {
164         setCrawlingInfoId_IpRange(null);
165     }
166 
167     public void setCrawlingInfoId_IpRange(ConditionOptionCall<IpRangeAggregationBuilder> opLambda) {
168         setCrawlingInfoId_IpRange("crawlingInfoId", opLambda, null);
169     }
170 
171     public void setCrawlingInfoId_IpRange(ConditionOptionCall<IpRangeAggregationBuilder> opLambda,
172             OperatorCall<BsCrawlingInfoParamCA> aggsLambda) {
173         setCrawlingInfoId_IpRange("crawlingInfoId", opLambda, aggsLambda);
174     }
175 
176     public void setCrawlingInfoId_IpRange(String name, ConditionOptionCall<IpRangeAggregationBuilder> opLambda,
177             OperatorCall<BsCrawlingInfoParamCA> aggsLambda) {
178         IpRangeAggregationBuilder builder = regIpRangeA(name, "crawlingInfoId");
179         if (opLambda != null) {
180             opLambda.callback(builder);
181         }
182         if (aggsLambda != null) {
183             CrawlingInfoParamCA ca = new CrawlingInfoParamCA();
184             aggsLambda.callback(ca);
185             ca.getAggregationBuilderList().forEach(builder::subAggregation);
186         }
187     }
188 
189     public void setCrawlingInfoId_Count() {
190         setCrawlingInfoId_Count(null);
191     }
192 
193     public void setCrawlingInfoId_Count(ConditionOptionCall<ValueCountAggregationBuilder> opLambda) {
194         setCrawlingInfoId_Count("crawlingInfoId", opLambda);
195     }
196 
197     public void setCrawlingInfoId_Count(String name, ConditionOptionCall<ValueCountAggregationBuilder> opLambda) {
198         ValueCountAggregationBuilder builder = regCountA(name, "crawlingInfoId");
199         if (opLambda != null) {
200             opLambda.callback(builder);
201         }
202     }
203 
204     public void setCrawlingInfoId_Cardinality() {
205         setCrawlingInfoId_Cardinality(null);
206     }
207 
208     public void setCrawlingInfoId_Cardinality(ConditionOptionCall<CardinalityAggregationBuilder> opLambda) {
209         setCrawlingInfoId_Cardinality("crawlingInfoId", opLambda);
210     }
211 
212     public void setCrawlingInfoId_Cardinality(String name, ConditionOptionCall<CardinalityAggregationBuilder> opLambda) {
213         CardinalityAggregationBuilder builder = regCardinalityA(name, "crawlingInfoId");
214         if (opLambda != null) {
215             opLambda.callback(builder);
216         }
217     }
218 
219     public void setCrawlingInfoId_Missing() {
220         setCrawlingInfoId_Missing(null);
221     }
222 
223     public void setCrawlingInfoId_Missing(ConditionOptionCall<MissingAggregationBuilder> opLambda) {
224         setCrawlingInfoId_Missing("crawlingInfoId", opLambda, null);
225     }
226 
227     public void setCrawlingInfoId_Missing(ConditionOptionCall<MissingAggregationBuilder> opLambda,
228             OperatorCall<BsCrawlingInfoParamCA> aggsLambda) {
229         setCrawlingInfoId_Missing("crawlingInfoId", opLambda, aggsLambda);
230     }
231 
232     public void setCrawlingInfoId_Missing(String name, ConditionOptionCall<MissingAggregationBuilder> opLambda,
233             OperatorCall<BsCrawlingInfoParamCA> aggsLambda) {
234         MissingAggregationBuilder builder = regMissingA(name, "crawlingInfoId");
235         if (opLambda != null) {
236             opLambda.callback(builder);
237         }
238         if (aggsLambda != null) {
239             CrawlingInfoParamCA ca = new CrawlingInfoParamCA();
240             aggsLambda.callback(ca);
241             ca.getAggregationBuilderList().forEach(builder::subAggregation);
242         }
243     }
244 
245     public void setCreatedTime_Avg() {
246         setCreatedTime_Avg(null);
247     }
248 
249     public void setCreatedTime_Avg(ConditionOptionCall<AvgAggregationBuilder> opLambda) {
250         setCreatedTime_Avg("createdTime", opLambda);
251     }
252 
253     public void setCreatedTime_Avg(String name, ConditionOptionCall<AvgAggregationBuilder> opLambda) {
254         AvgAggregationBuilder builder = regAvgA(name, "createdTime");
255         if (opLambda != null) {
256             opLambda.callback(builder);
257         }
258     }
259 
260     public void setCreatedTime_Max() {
261         setCreatedTime_Max(null);
262     }
263 
264     public void setCreatedTime_Max(ConditionOptionCall<MaxAggregationBuilder> opLambda) {
265         setCreatedTime_Max("createdTime", opLambda);
266     }
267 
268     public void setCreatedTime_Max(String name, ConditionOptionCall<MaxAggregationBuilder> opLambda) {
269         MaxAggregationBuilder builder = regMaxA(name, "createdTime");
270         if (opLambda != null) {
271             opLambda.callback(builder);
272         }
273     }
274 
275     public void setCreatedTime_Min() {
276         setCreatedTime_Min(null);
277     }
278 
279     public void setCreatedTime_Min(ConditionOptionCall<MinAggregationBuilder> opLambda) {
280         setCreatedTime_Min("createdTime", opLambda);
281     }
282 
283     public void setCreatedTime_Min(String name, ConditionOptionCall<MinAggregationBuilder> opLambda) {
284         MinAggregationBuilder builder = regMinA(name, "createdTime");
285         if (opLambda != null) {
286             opLambda.callback(builder);
287         }
288     }
289 
290     public void setCreatedTime_Sum() {
291         setCreatedTime_Sum(null);
292     }
293 
294     public void setCreatedTime_Sum(ConditionOptionCall<SumAggregationBuilder> opLambda) {
295         setCreatedTime_Sum("createdTime", opLambda);
296     }
297 
298     public void setCreatedTime_Sum(String name, ConditionOptionCall<SumAggregationBuilder> opLambda) {
299         SumAggregationBuilder builder = regSumA(name, "createdTime");
300         if (opLambda != null) {
301             opLambda.callback(builder);
302         }
303     }
304 
305     public void setCreatedTime_ExtendedStats() {
306         setCreatedTime_ExtendedStats(null);
307     }
308 
309     public void setCreatedTime_ExtendedStats(ConditionOptionCall<ExtendedStatsAggregationBuilder> opLambda) {
310         setCreatedTime_ExtendedStats("createdTime", opLambda);
311     }
312 
313     public void setCreatedTime_ExtendedStats(String name, ConditionOptionCall<ExtendedStatsAggregationBuilder> opLambda) {
314         ExtendedStatsAggregationBuilder builder = regExtendedStatsA(name, "createdTime");
315         if (opLambda != null) {
316             opLambda.callback(builder);
317         }
318     }
319 
320     public void setCreatedTime_Stats() {
321         setCreatedTime_Stats(null);
322     }
323 
324     public void setCreatedTime_Stats(ConditionOptionCall<StatsAggregationBuilder> opLambda) {
325         setCreatedTime_Stats("createdTime", opLambda);
326     }
327 
328     public void setCreatedTime_Stats(String name, ConditionOptionCall<StatsAggregationBuilder> opLambda) {
329         StatsAggregationBuilder builder = regStatsA(name, "createdTime");
330         if (opLambda != null) {
331             opLambda.callback(builder);
332         }
333     }
334 
335     public void setCreatedTime_Percentiles() {
336         setCreatedTime_Percentiles(null);
337     }
338 
339     public void setCreatedTime_Percentiles(ConditionOptionCall<PercentilesAggregationBuilder> opLambda) {
340         setCreatedTime_Percentiles("createdTime", opLambda);
341     }
342 
343     public void setCreatedTime_Percentiles(String name, ConditionOptionCall<PercentilesAggregationBuilder> opLambda) {
344         PercentilesAggregationBuilder builder = regPercentilesA(name, "createdTime");
345         if (opLambda != null) {
346             opLambda.callback(builder);
347         }
348     }
349 
350     public void setCreatedTime_PercentileRanks(double[] values) {
351         setCreatedTime_PercentileRanks(values, null);
352     }
353 
354     public void setCreatedTime_PercentileRanks(double[] values, ConditionOptionCall<PercentileRanksAggregationBuilder> opLambda) {
355         setCreatedTime_PercentileRanks("createdTime", values, opLambda);
356     }
357 
358     public void setCreatedTime_PercentileRanks(String name, double[] values,
359             ConditionOptionCall<PercentileRanksAggregationBuilder> opLambda) {
360         PercentileRanksAggregationBuilder builder = regPercentileRanksA(name, "createdTime", values);
361         if (opLambda != null) {
362             opLambda.callback(builder);
363         }
364     }
365 
366     public void setCreatedTime_Histogram() {
367         setCreatedTime_Histogram(null);
368     }
369 
370     public void setCreatedTime_Histogram(ConditionOptionCall<HistogramAggregationBuilder> opLambda) {
371         setCreatedTime_Histogram("createdTime", opLambda, null);
372     }
373 
374     public void setCreatedTime_Histogram(ConditionOptionCall<HistogramAggregationBuilder> opLambda,
375             OperatorCall<BsCrawlingInfoParamCA> aggsLambda) {
376         setCreatedTime_Histogram("createdTime", opLambda, aggsLambda);
377     }
378 
379     public void setCreatedTime_Histogram(String name, ConditionOptionCall<HistogramAggregationBuilder> opLambda,
380             OperatorCall<BsCrawlingInfoParamCA> aggsLambda) {
381         HistogramAggregationBuilder builder = regHistogramA(name, "createdTime");
382         if (opLambda != null) {
383             opLambda.callback(builder);
384         }
385         if (aggsLambda != null) {
386             CrawlingInfoParamCA ca = new CrawlingInfoParamCA();
387             aggsLambda.callback(ca);
388             ca.getAggregationBuilderList().forEach(builder::subAggregation);
389         }
390     }
391 
392     public void setCreatedTime_Range() {
393         setCreatedTime_Range(null);
394     }
395 
396     public void setCreatedTime_Range(ConditionOptionCall<RangeAggregationBuilder> opLambda) {
397         setCreatedTime_Range("createdTime", opLambda, null);
398     }
399 
400     public void setCreatedTime_Range(ConditionOptionCall<RangeAggregationBuilder> opLambda,
401             OperatorCall<BsCrawlingInfoParamCA> aggsLambda) {
402         setCreatedTime_Range("createdTime", opLambda, aggsLambda);
403     }
404 
405     public void setCreatedTime_Range(String name, ConditionOptionCall<RangeAggregationBuilder> opLambda,
406             OperatorCall<BsCrawlingInfoParamCA> aggsLambda) {
407         RangeAggregationBuilder builder = regRangeA(name, "createdTime");
408         if (opLambda != null) {
409             opLambda.callback(builder);
410         }
411         if (aggsLambda != null) {
412             CrawlingInfoParamCA ca = new CrawlingInfoParamCA();
413             aggsLambda.callback(ca);
414             ca.getAggregationBuilderList().forEach(builder::subAggregation);
415         }
416     }
417 
418     public void setCreatedTime_Count() {
419         setCreatedTime_Count(null);
420     }
421 
422     public void setCreatedTime_Count(ConditionOptionCall<ValueCountAggregationBuilder> opLambda) {
423         setCreatedTime_Count("createdTime", opLambda);
424     }
425 
426     public void setCreatedTime_Count(String name, ConditionOptionCall<ValueCountAggregationBuilder> opLambda) {
427         ValueCountAggregationBuilder builder = regCountA(name, "createdTime");
428         if (opLambda != null) {
429             opLambda.callback(builder);
430         }
431     }
432 
433     public void setCreatedTime_Cardinality() {
434         setCreatedTime_Cardinality(null);
435     }
436 
437     public void setCreatedTime_Cardinality(ConditionOptionCall<CardinalityAggregationBuilder> opLambda) {
438         setCreatedTime_Cardinality("createdTime", opLambda);
439     }
440 
441     public void setCreatedTime_Cardinality(String name, ConditionOptionCall<CardinalityAggregationBuilder> opLambda) {
442         CardinalityAggregationBuilder builder = regCardinalityA(name, "createdTime");
443         if (opLambda != null) {
444             opLambda.callback(builder);
445         }
446     }
447 
448     public void setCreatedTime_Missing() {
449         setCreatedTime_Missing(null);
450     }
451 
452     public void setCreatedTime_Missing(ConditionOptionCall<MissingAggregationBuilder> opLambda) {
453         setCreatedTime_Missing("createdTime", opLambda, null);
454     }
455 
456     public void setCreatedTime_Missing(ConditionOptionCall<MissingAggregationBuilder> opLambda,
457             OperatorCall<BsCrawlingInfoParamCA> aggsLambda) {
458         setCreatedTime_Missing("createdTime", opLambda, aggsLambda);
459     }
460 
461     public void setCreatedTime_Missing(String name, ConditionOptionCall<MissingAggregationBuilder> opLambda,
462             OperatorCall<BsCrawlingInfoParamCA> aggsLambda) {
463         MissingAggregationBuilder builder = regMissingA(name, "createdTime");
464         if (opLambda != null) {
465             opLambda.callback(builder);
466         }
467         if (aggsLambda != null) {
468             CrawlingInfoParamCA ca = new CrawlingInfoParamCA();
469             aggsLambda.callback(ca);
470             ca.getAggregationBuilderList().forEach(builder::subAggregation);
471         }
472     }
473 
474     public void setKey_Terms() {
475         setKey_Terms(null);
476     }
477 
478     public void setKey_Terms(ConditionOptionCall<TermsAggregationBuilder> opLambda) {
479         setKey_Terms("key", opLambda, null);
480     }
481 
482     public void setKey_Terms(ConditionOptionCall<TermsAggregationBuilder> opLambda, OperatorCall<BsCrawlingInfoParamCA> aggsLambda) {
483         setKey_Terms("key", opLambda, aggsLambda);
484     }
485 
486     public void setKey_Terms(String name, ConditionOptionCall<TermsAggregationBuilder> opLambda,
487             OperatorCall<BsCrawlingInfoParamCA> aggsLambda) {
488         TermsAggregationBuilder builder = regTermsA(name, "key");
489         if (opLambda != null) {
490             opLambda.callback(builder);
491         }
492         if (aggsLambda != null) {
493             CrawlingInfoParamCA ca = new CrawlingInfoParamCA();
494             aggsLambda.callback(ca);
495             ca.getAggregationBuilderList().forEach(builder::subAggregation);
496         }
497     }
498 
499     public void setKey_SignificantTerms() {
500         setKey_SignificantTerms(null);
501     }
502 
503     public void setKey_SignificantTerms(ConditionOptionCall<SignificantTermsAggregationBuilder> opLambda) {
504         setKey_SignificantTerms("key", opLambda, null);
505     }
506 
507     public void setKey_SignificantTerms(ConditionOptionCall<SignificantTermsAggregationBuilder> opLambda,
508             OperatorCall<BsCrawlingInfoParamCA> aggsLambda) {
509         setKey_SignificantTerms("key", opLambda, aggsLambda);
510     }
511 
512     public void setKey_SignificantTerms(String name, ConditionOptionCall<SignificantTermsAggregationBuilder> opLambda,
513             OperatorCall<BsCrawlingInfoParamCA> aggsLambda) {
514         SignificantTermsAggregationBuilder builder = regSignificantTermsA(name, "key");
515         if (opLambda != null) {
516             opLambda.callback(builder);
517         }
518         if (aggsLambda != null) {
519             CrawlingInfoParamCA ca = new CrawlingInfoParamCA();
520             aggsLambda.callback(ca);
521             ca.getAggregationBuilderList().forEach(builder::subAggregation);
522         }
523     }
524 
525     public void setKey_IpRange() {
526         setKey_IpRange(null);
527     }
528 
529     public void setKey_IpRange(ConditionOptionCall<IpRangeAggregationBuilder> opLambda) {
530         setKey_IpRange("key", opLambda, null);
531     }
532 
533     public void setKey_IpRange(ConditionOptionCall<IpRangeAggregationBuilder> opLambda, OperatorCall<BsCrawlingInfoParamCA> aggsLambda) {
534         setKey_IpRange("key", opLambda, aggsLambda);
535     }
536 
537     public void setKey_IpRange(String name, ConditionOptionCall<IpRangeAggregationBuilder> opLambda,
538             OperatorCall<BsCrawlingInfoParamCA> aggsLambda) {
539         IpRangeAggregationBuilder builder = regIpRangeA(name, "key");
540         if (opLambda != null) {
541             opLambda.callback(builder);
542         }
543         if (aggsLambda != null) {
544             CrawlingInfoParamCA ca = new CrawlingInfoParamCA();
545             aggsLambda.callback(ca);
546             ca.getAggregationBuilderList().forEach(builder::subAggregation);
547         }
548     }
549 
550     public void setKey_Count() {
551         setKey_Count(null);
552     }
553 
554     public void setKey_Count(ConditionOptionCall<ValueCountAggregationBuilder> opLambda) {
555         setKey_Count("key", opLambda);
556     }
557 
558     public void setKey_Count(String name, ConditionOptionCall<ValueCountAggregationBuilder> opLambda) {
559         ValueCountAggregationBuilder builder = regCountA(name, "key");
560         if (opLambda != null) {
561             opLambda.callback(builder);
562         }
563     }
564 
565     public void setKey_Cardinality() {
566         setKey_Cardinality(null);
567     }
568 
569     public void setKey_Cardinality(ConditionOptionCall<CardinalityAggregationBuilder> opLambda) {
570         setKey_Cardinality("key", opLambda);
571     }
572 
573     public void setKey_Cardinality(String name, ConditionOptionCall<CardinalityAggregationBuilder> opLambda) {
574         CardinalityAggregationBuilder builder = regCardinalityA(name, "key");
575         if (opLambda != null) {
576             opLambda.callback(builder);
577         }
578     }
579 
580     public void setKey_Missing() {
581         setKey_Missing(null);
582     }
583 
584     public void setKey_Missing(ConditionOptionCall<MissingAggregationBuilder> opLambda) {
585         setKey_Missing("key", opLambda, null);
586     }
587 
588     public void setKey_Missing(ConditionOptionCall<MissingAggregationBuilder> opLambda, OperatorCall<BsCrawlingInfoParamCA> aggsLambda) {
589         setKey_Missing("key", opLambda, aggsLambda);
590     }
591 
592     public void setKey_Missing(String name, ConditionOptionCall<MissingAggregationBuilder> opLambda,
593             OperatorCall<BsCrawlingInfoParamCA> aggsLambda) {
594         MissingAggregationBuilder builder = regMissingA(name, "key");
595         if (opLambda != null) {
596             opLambda.callback(builder);
597         }
598         if (aggsLambda != null) {
599             CrawlingInfoParamCA ca = new CrawlingInfoParamCA();
600             aggsLambda.callback(ca);
601             ca.getAggregationBuilderList().forEach(builder::subAggregation);
602         }
603     }
604 
605     public void setValue_Terms() {
606         setValue_Terms(null);
607     }
608 
609     public void setValue_Terms(ConditionOptionCall<TermsAggregationBuilder> opLambda) {
610         setValue_Terms("value", opLambda, null);
611     }
612 
613     public void setValue_Terms(ConditionOptionCall<TermsAggregationBuilder> opLambda, OperatorCall<BsCrawlingInfoParamCA> aggsLambda) {
614         setValue_Terms("value", opLambda, aggsLambda);
615     }
616 
617     public void setValue_Terms(String name, ConditionOptionCall<TermsAggregationBuilder> opLambda,
618             OperatorCall<BsCrawlingInfoParamCA> aggsLambda) {
619         TermsAggregationBuilder builder = regTermsA(name, "value");
620         if (opLambda != null) {
621             opLambda.callback(builder);
622         }
623         if (aggsLambda != null) {
624             CrawlingInfoParamCA ca = new CrawlingInfoParamCA();
625             aggsLambda.callback(ca);
626             ca.getAggregationBuilderList().forEach(builder::subAggregation);
627         }
628     }
629 
630     public void setValue_SignificantTerms() {
631         setValue_SignificantTerms(null);
632     }
633 
634     public void setValue_SignificantTerms(ConditionOptionCall<SignificantTermsAggregationBuilder> opLambda) {
635         setValue_SignificantTerms("value", opLambda, null);
636     }
637 
638     public void setValue_SignificantTerms(ConditionOptionCall<SignificantTermsAggregationBuilder> opLambda,
639             OperatorCall<BsCrawlingInfoParamCA> aggsLambda) {
640         setValue_SignificantTerms("value", opLambda, aggsLambda);
641     }
642 
643     public void setValue_SignificantTerms(String name, ConditionOptionCall<SignificantTermsAggregationBuilder> opLambda,
644             OperatorCall<BsCrawlingInfoParamCA> aggsLambda) {
645         SignificantTermsAggregationBuilder builder = regSignificantTermsA(name, "value");
646         if (opLambda != null) {
647             opLambda.callback(builder);
648         }
649         if (aggsLambda != null) {
650             CrawlingInfoParamCA ca = new CrawlingInfoParamCA();
651             aggsLambda.callback(ca);
652             ca.getAggregationBuilderList().forEach(builder::subAggregation);
653         }
654     }
655 
656     public void setValue_IpRange() {
657         setValue_IpRange(null);
658     }
659 
660     public void setValue_IpRange(ConditionOptionCall<IpRangeAggregationBuilder> opLambda) {
661         setValue_IpRange("value", opLambda, null);
662     }
663 
664     public void setValue_IpRange(ConditionOptionCall<IpRangeAggregationBuilder> opLambda, OperatorCall<BsCrawlingInfoParamCA> aggsLambda) {
665         setValue_IpRange("value", opLambda, aggsLambda);
666     }
667 
668     public void setValue_IpRange(String name, ConditionOptionCall<IpRangeAggregationBuilder> opLambda,
669             OperatorCall<BsCrawlingInfoParamCA> aggsLambda) {
670         IpRangeAggregationBuilder builder = regIpRangeA(name, "value");
671         if (opLambda != null) {
672             opLambda.callback(builder);
673         }
674         if (aggsLambda != null) {
675             CrawlingInfoParamCA ca = new CrawlingInfoParamCA();
676             aggsLambda.callback(ca);
677             ca.getAggregationBuilderList().forEach(builder::subAggregation);
678         }
679     }
680 
681     public void setValue_Count() {
682         setValue_Count(null);
683     }
684 
685     public void setValue_Count(ConditionOptionCall<ValueCountAggregationBuilder> opLambda) {
686         setValue_Count("value", opLambda);
687     }
688 
689     public void setValue_Count(String name, ConditionOptionCall<ValueCountAggregationBuilder> opLambda) {
690         ValueCountAggregationBuilder builder = regCountA(name, "value");
691         if (opLambda != null) {
692             opLambda.callback(builder);
693         }
694     }
695 
696     public void setValue_Cardinality() {
697         setValue_Cardinality(null);
698     }
699 
700     public void setValue_Cardinality(ConditionOptionCall<CardinalityAggregationBuilder> opLambda) {
701         setValue_Cardinality("value", opLambda);
702     }
703 
704     public void setValue_Cardinality(String name, ConditionOptionCall<CardinalityAggregationBuilder> opLambda) {
705         CardinalityAggregationBuilder builder = regCardinalityA(name, "value");
706         if (opLambda != null) {
707             opLambda.callback(builder);
708         }
709     }
710 
711     public void setValue_Missing() {
712         setValue_Missing(null);
713     }
714 
715     public void setValue_Missing(ConditionOptionCall<MissingAggregationBuilder> opLambda) {
716         setValue_Missing("value", opLambda, null);
717     }
718 
719     public void setValue_Missing(ConditionOptionCall<MissingAggregationBuilder> opLambda, OperatorCall<BsCrawlingInfoParamCA> aggsLambda) {
720         setValue_Missing("value", opLambda, aggsLambda);
721     }
722 
723     public void setValue_Missing(String name, ConditionOptionCall<MissingAggregationBuilder> opLambda,
724             OperatorCall<BsCrawlingInfoParamCA> aggsLambda) {
725         MissingAggregationBuilder builder = regMissingA(name, "value");
726         if (opLambda != null) {
727             opLambda.callback(builder);
728         }
729         if (aggsLambda != null) {
730             CrawlingInfoParamCA ca = new CrawlingInfoParamCA();
731             aggsLambda.callback(ca);
732             ca.getAggregationBuilderList().forEach(builder::subAggregation);
733         }
734     }
735 
736 }