@@ -187,4 +187,126 @@ internal MultisearchHeader(Elastic.Clients.Elasticsearch.Serialization.JsonConst
187187 public bool ? RequestCache { get ; set ; }
188188 public Elastic . Clients . Elasticsearch . Routing ? Routing { get ; set ; }
189189 public Elastic . Clients . Elasticsearch . SearchType ? SearchType { get ; set ; }
190+ }
191+
192+ /// <summary>
193+ /// <para>
194+ /// Contains parameters used to limit or change the subsequent search body request.
195+ /// </para>
196+ /// </summary>
197+ public readonly partial struct MultisearchHeaderDescriptor
198+ {
199+ internal Elastic . Clients . Elasticsearch . Core . MSearch . MultisearchHeader Instance { get ; init ; }
200+
201+ [ System . Diagnostics . CodeAnalysis . SetsRequiredMembers ]
202+ public MultisearchHeaderDescriptor ( Elastic . Clients . Elasticsearch . Core . MSearch . MultisearchHeader instance )
203+ {
204+ Instance = instance ;
205+ }
206+
207+ [ System . Diagnostics . CodeAnalysis . SetsRequiredMembers ]
208+ public MultisearchHeaderDescriptor ( )
209+ {
210+ Instance = new Elastic . Clients . Elasticsearch . Core . MSearch . MultisearchHeader ( Elastic . Clients . Elasticsearch . Serialization . JsonConstructorSentinel . Instance ) ;
211+ }
212+
213+ public static explicit operator Elastic . Clients . Elasticsearch . Core . MSearch . MultisearchHeaderDescriptor ( Elastic . Clients . Elasticsearch . Core . MSearch . MultisearchHeader instance ) => new Elastic . Clients . Elasticsearch . Core . MSearch . MultisearchHeaderDescriptor ( instance ) ;
214+ public static implicit operator Elastic . Clients . Elasticsearch . Core . MSearch . MultisearchHeader ( Elastic . Clients . Elasticsearch . Core . MSearch . MultisearchHeaderDescriptor descriptor ) => descriptor . Instance ;
215+
216+ public Elastic . Clients . Elasticsearch . Core . MSearch . MultisearchHeaderDescriptor AllowNoIndices ( bool ? value = true )
217+ {
218+ Instance . AllowNoIndices = value ;
219+ return this ;
220+ }
221+
222+ public Elastic . Clients . Elasticsearch . Core . MSearch . MultisearchHeaderDescriptor AllowPartialSearchResults ( bool ? value = true )
223+ {
224+ Instance . AllowPartialSearchResults = value ;
225+ return this ;
226+ }
227+
228+ public Elastic . Clients . Elasticsearch . Core . MSearch . MultisearchHeaderDescriptor CcsMinimizeRoundtrips ( bool ? value = true )
229+ {
230+ Instance . CcsMinimizeRoundtrips = value ;
231+ return this ;
232+ }
233+
234+ public Elastic . Clients . Elasticsearch . Core . MSearch . MultisearchHeaderDescriptor ExpandWildcards ( System . Collections . Generic . ICollection < Elastic . Clients . Elasticsearch . ExpandWildcard > ? value )
235+ {
236+ Instance . ExpandWildcards = value ;
237+ return this ;
238+ }
239+
240+ public Elastic . Clients . Elasticsearch . Core . MSearch . MultisearchHeaderDescriptor ExpandWildcards ( )
241+ {
242+ Instance . ExpandWildcards = Elastic . Clients . Elasticsearch . Fluent . FluentICollectionOfExpandWildcard . Build ( null ) ;
243+ return this ;
244+ }
245+
246+ public Elastic . Clients . Elasticsearch . Core . MSearch . MultisearchHeaderDescriptor ExpandWildcards ( System . Action < Elastic . Clients . Elasticsearch . Fluent . FluentICollectionOfExpandWildcard > ? action )
247+ {
248+ Instance . ExpandWildcards = Elastic . Clients . Elasticsearch . Fluent . FluentICollectionOfExpandWildcard . Build ( action ) ;
249+ return this ;
250+ }
251+
252+ public Elastic . Clients . Elasticsearch . Core . MSearch . MultisearchHeaderDescriptor ExpandWildcards ( params Elastic . Clients . Elasticsearch . ExpandWildcard [ ] values )
253+ {
254+ Instance . ExpandWildcards = [ .. values ] ;
255+ return this ;
256+ }
257+
258+ public Elastic . Clients . Elasticsearch . Core . MSearch . MultisearchHeaderDescriptor IgnoreThrottled ( bool ? value = true )
259+ {
260+ Instance . IgnoreThrottled = value ;
261+ return this ;
262+ }
263+
264+ public Elastic . Clients . Elasticsearch . Core . MSearch . MultisearchHeaderDescriptor IgnoreUnavailable ( bool ? value = true )
265+ {
266+ Instance . IgnoreUnavailable = value ;
267+ return this ;
268+ }
269+
270+ public Elastic . Clients . Elasticsearch . Core . MSearch . MultisearchHeaderDescriptor Indices ( Elastic . Clients . Elasticsearch . Indices ? value )
271+ {
272+ Instance . Indices = value ;
273+ return this ;
274+ }
275+
276+ public Elastic . Clients . Elasticsearch . Core . MSearch . MultisearchHeaderDescriptor Preference ( string ? value )
277+ {
278+ Instance . Preference = value ;
279+ return this ;
280+ }
281+
282+ public Elastic . Clients . Elasticsearch . Core . MSearch . MultisearchHeaderDescriptor RequestCache ( bool ? value = true )
283+ {
284+ Instance . RequestCache = value ;
285+ return this ;
286+ }
287+
288+ public Elastic . Clients . Elasticsearch . Core . MSearch . MultisearchHeaderDescriptor Routing ( Elastic . Clients . Elasticsearch . Routing ? value )
289+ {
290+ Instance . Routing = value ;
291+ return this ;
292+ }
293+
294+ public Elastic . Clients . Elasticsearch . Core . MSearch . MultisearchHeaderDescriptor SearchType ( Elastic . Clients . Elasticsearch . SearchType ? value )
295+ {
296+ Instance . SearchType = value ;
297+ return this ;
298+ }
299+
300+ [ System . Runtime . CompilerServices . MethodImpl ( System . Runtime . CompilerServices . MethodImplOptions . AggressiveInlining ) ]
301+ internal static Elastic . Clients . Elasticsearch . Core . MSearch . MultisearchHeader Build ( System . Action < Elastic . Clients . Elasticsearch . Core . MSearch . MultisearchHeaderDescriptor > ? action )
302+ {
303+ if ( action is null )
304+ {
305+ return new Elastic . Clients . Elasticsearch . Core . MSearch . MultisearchHeader ( Elastic . Clients . Elasticsearch . Serialization . JsonConstructorSentinel . Instance ) ;
306+ }
307+
308+ var builder = new Elastic . Clients . Elasticsearch . Core . MSearch . MultisearchHeaderDescriptor ( new Elastic . Clients . Elasticsearch . Core . MSearch . MultisearchHeader ( Elastic . Clients . Elasticsearch . Serialization . JsonConstructorSentinel . Instance ) ) ;
309+ action . Invoke ( builder ) ;
310+ return builder . Instance ;
311+ }
190312}
0 commit comments