1// +build codegen_generated
2
3// Code generated by codecgen - DO NOT EDIT.
4
5package structs
6
7import (
8	"errors"
9	codec1978 "github.com/hashicorp/go-msgpack/codec"
10	pkg1_stats "github.com/hashicorp/nomad/client/stats"
11	pkg4_structs "github.com/hashicorp/nomad/nomad/structs"
12	pkg2_device "github.com/hashicorp/nomad/plugins/device"
13	pkg3_structs "github.com/hashicorp/nomad/plugins/shared/structs"
14	"runtime"
15	"strconv"
16	"time"
17)
18
19const (
20	// ----- content types ----
21	codecSelferCcUTF8102 = 1
22	codecSelferCcRAW102  = 255
23	// ----- value types used ----
24	codecSelferValueTypeArray102  = 10
25	codecSelferValueTypeMap102    = 9
26	codecSelferValueTypeString102 = 6
27	codecSelferValueTypeInt102    = 2
28	codecSelferValueTypeUint102   = 3
29	codecSelferValueTypeFloat102  = 4
30	codecSelferBitsize102         = uint8(32 << (^uint(0) >> 63))
31)
32
33var (
34	errCodecSelferOnlyMapOrArrayEncodeToStruct102 = errors.New(`only encoded map or array can be decoded into a struct`)
35)
36
37type codecSelfer102 struct{}
38
39func init() {
40	if codec1978.GenVersion != 10 {
41		_, file, _, _ := runtime.Caller(0)
42		panic("codecgen version mismatch: current: 10, need " + strconv.FormatInt(int64(codec1978.GenVersion), 10) + ". Re-generate file: " + file)
43	}
44	if false {
45		var _ byte = 0 // reference the types, but skip this branch at build/run time
46		var v0 pkg1_stats.HostStats
47		var v1 pkg4_structs.QueryMeta
48		var v2 pkg2_device.DeviceGroupStats
49		var v3 pkg3_structs.StatValue
50		var v4 time.Time
51		_, _, _, _, _ = v0, v1, v2, v3, v4
52	}
53}
54
55func (x *RpcError) CodecEncodeSelf(e *codec1978.Encoder) {
56	var h codecSelfer102
57	z, r := codec1978.GenHelperEncoder(e)
58	_, _, _ = h, z, r
59	if x == nil {
60		r.EncodeNil()
61	} else {
62		if false {
63		} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
64			z.EncExtension(x, yyxt1)
65		} else {
66			yysep2 := !z.EncBinary()
67			yy2arr2 := z.EncBasicHandle().StructToArray
68			_, _ = yysep2, yy2arr2
69			const yyr2 bool = false // struct tag has 'toArray'
70			if yyr2 || yy2arr2 {
71				r.WriteArrayStart(2)
72			} else {
73				r.WriteMapStart(2)
74			}
75			if yyr2 || yy2arr2 {
76				r.WriteArrayElem()
77				if false {
78				} else {
79					if z.EncBasicHandle().StringToRaw {
80						r.EncodeStringBytesRaw(z.BytesView(string(x.Message)))
81					} else {
82						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Message))
83					}
84				}
85			} else {
86				r.WriteMapElemKey()
87				if z.IsJSONHandle() {
88					z.WriteStr("\"Message\"")
89				} else {
90					r.EncodeStringEnc(codecSelferCcUTF8102, `Message`)
91				}
92				r.WriteMapElemValue()
93				if false {
94				} else {
95					if z.EncBasicHandle().StringToRaw {
96						r.EncodeStringBytesRaw(z.BytesView(string(x.Message)))
97					} else {
98						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Message))
99					}
100				}
101			}
102			var yyn6 bool
103			if x.Code == nil {
104				yyn6 = true
105				goto LABEL6
106			}
107		LABEL6:
108			if yyr2 || yy2arr2 {
109				if yyn6 {
110					r.WriteArrayElem()
111					r.EncodeNil()
112				} else {
113					r.WriteArrayElem()
114					if x.Code == nil {
115						r.EncodeNil()
116					} else {
117						yy7 := *x.Code
118						if false {
119						} else {
120							r.EncodeInt(int64(yy7))
121						}
122					}
123				}
124			} else {
125				r.WriteMapElemKey()
126				if z.IsJSONHandle() {
127					z.WriteStr("\"Code\"")
128				} else {
129					r.EncodeStringEnc(codecSelferCcUTF8102, `Code`)
130				}
131				r.WriteMapElemValue()
132				if yyn6 {
133					r.EncodeNil()
134				} else {
135					if x.Code == nil {
136						r.EncodeNil()
137					} else {
138						yy9 := *x.Code
139						if false {
140						} else {
141							r.EncodeInt(int64(yy9))
142						}
143					}
144				}
145			}
146			if yyr2 || yy2arr2 {
147				r.WriteArrayEnd()
148			} else {
149				r.WriteMapEnd()
150			}
151		}
152	}
153}
154
155func (x *RpcError) CodecDecodeSelf(d *codec1978.Decoder) {
156	var h codecSelfer102
157	z, r := codec1978.GenHelperDecoder(d)
158	_, _, _ = h, z, r
159	if false {
160	} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
161		z.DecExtension(x, yyxt1)
162	} else {
163		yyct2 := r.ContainerType()
164		if yyct2 == codecSelferValueTypeMap102 {
165			yyl2 := r.ReadMapStart()
166			if yyl2 == 0 {
167				r.ReadMapEnd()
168			} else {
169				x.codecDecodeSelfFromMap(yyl2, d)
170			}
171		} else if yyct2 == codecSelferValueTypeArray102 {
172			yyl2 := r.ReadArrayStart()
173			if yyl2 == 0 {
174				r.ReadArrayEnd()
175			} else {
176				x.codecDecodeSelfFromArray(yyl2, d)
177			}
178		} else {
179			panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102)
180		}
181	}
182}
183
184func (x *RpcError) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
185	var h codecSelfer102
186	z, r := codec1978.GenHelperDecoder(d)
187	_, _, _ = h, z, r
188	var yyhl3 bool = l >= 0
189	for yyj3 := 0; ; yyj3++ {
190		if yyhl3 {
191			if yyj3 >= l {
192				break
193			}
194		} else {
195			if r.CheckBreak() {
196				break
197			}
198		}
199		r.ReadMapElemKey()
200		yys3 := z.StringView(r.DecodeStringAsBytes())
201		r.ReadMapElemValue()
202		switch yys3 {
203		case "Message":
204			if r.TryDecodeAsNil() {
205				x.Message = ""
206			} else {
207				x.Message = (string)(r.DecodeString())
208			}
209		case "Code":
210			if r.TryDecodeAsNil() {
211				if true && x.Code != nil {
212					x.Code = nil
213				}
214			} else {
215				if x.Code == nil {
216					x.Code = new(int64)
217				}
218
219				if false {
220				} else {
221					*x.Code = (int64)(r.DecodeInt64())
222				}
223			}
224		default:
225			z.DecStructFieldNotFound(-1, yys3)
226		} // end switch yys3
227	} // end for yyj3
228	r.ReadMapEnd()
229}
230
231func (x *RpcError) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
232	var h codecSelfer102
233	z, r := codec1978.GenHelperDecoder(d)
234	_, _, _ = h, z, r
235	var yyj7 int
236	var yyb7 bool
237	var yyhl7 bool = l >= 0
238	yyj7++
239	if yyhl7 {
240		yyb7 = yyj7 > l
241	} else {
242		yyb7 = r.CheckBreak()
243	}
244	if yyb7 {
245		r.ReadArrayEnd()
246		return
247	}
248	r.ReadArrayElem()
249	if r.TryDecodeAsNil() {
250		x.Message = ""
251	} else {
252		x.Message = (string)(r.DecodeString())
253	}
254	yyj7++
255	if yyhl7 {
256		yyb7 = yyj7 > l
257	} else {
258		yyb7 = r.CheckBreak()
259	}
260	if yyb7 {
261		r.ReadArrayEnd()
262		return
263	}
264	r.ReadArrayElem()
265	if r.TryDecodeAsNil() {
266		if true && x.Code != nil {
267			x.Code = nil
268		}
269	} else {
270		if x.Code == nil {
271			x.Code = new(int64)
272		}
273
274		if false {
275		} else {
276			*x.Code = (int64)(r.DecodeInt64())
277		}
278	}
279	for {
280		yyj7++
281		if yyhl7 {
282			yyb7 = yyj7 > l
283		} else {
284			yyb7 = r.CheckBreak()
285		}
286		if yyb7 {
287			break
288		}
289		r.ReadArrayElem()
290		z.DecStructFieldNotFound(yyj7-1, "")
291	}
292	r.ReadArrayEnd()
293}
294
295func (x *ClientStatsResponse) CodecEncodeSelf(e *codec1978.Encoder) {
296	var h codecSelfer102
297	z, r := codec1978.GenHelperEncoder(e)
298	_, _, _ = h, z, r
299	if x == nil {
300		r.EncodeNil()
301	} else {
302		if false {
303		} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
304			z.EncExtension(x, yyxt1)
305		} else {
306			yysep2 := !z.EncBinary()
307			yy2arr2 := z.EncBasicHandle().StructToArray
308			_, _ = yysep2, yy2arr2
309			const yyr2 bool = false // struct tag has 'toArray'
310			if yyr2 || yy2arr2 {
311				r.WriteArrayStart(4)
312			} else {
313				r.WriteMapStart(4)
314			}
315			var yyn3 bool
316			if x.HostStats == nil {
317				yyn3 = true
318				goto LABEL3
319			}
320		LABEL3:
321			if yyr2 || yy2arr2 {
322				if yyn3 {
323					r.WriteArrayElem()
324					r.EncodeNil()
325				} else {
326					r.WriteArrayElem()
327					if x.HostStats == nil {
328						r.EncodeNil()
329					} else {
330						if false {
331						} else if yyxt4 := z.Extension(z.I2Rtid(x.HostStats)); yyxt4 != nil {
332							z.EncExtension(x.HostStats, yyxt4)
333						} else {
334							z.EncFallback(x.HostStats)
335						}
336					}
337				}
338			} else {
339				r.WriteMapElemKey()
340				if z.IsJSONHandle() {
341					z.WriteStr("\"HostStats\"")
342				} else {
343					r.EncodeStringEnc(codecSelferCcUTF8102, `HostStats`)
344				}
345				r.WriteMapElemValue()
346				if yyn3 {
347					r.EncodeNil()
348				} else {
349					if x.HostStats == nil {
350						r.EncodeNil()
351					} else {
352						if false {
353						} else if yyxt5 := z.Extension(z.I2Rtid(x.HostStats)); yyxt5 != nil {
354							z.EncExtension(x.HostStats, yyxt5)
355						} else {
356							z.EncFallback(x.HostStats)
357						}
358					}
359				}
360			}
361			if yyr2 || yy2arr2 {
362				r.WriteArrayElem()
363				if false {
364				} else {
365					r.EncodeUint(uint64(x.Index))
366				}
367			} else {
368				r.WriteMapElemKey()
369				if z.IsJSONHandle() {
370					z.WriteStr("\"Index\"")
371				} else {
372					r.EncodeStringEnc(codecSelferCcUTF8102, `Index`)
373				}
374				r.WriteMapElemValue()
375				if false {
376				} else {
377					r.EncodeUint(uint64(x.Index))
378				}
379			}
380			if yyr2 || yy2arr2 {
381				r.WriteArrayElem()
382				if false {
383				} else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil {
384					z.EncExtension(x.LastContact, yyxt10)
385				} else {
386					r.EncodeInt(int64(x.LastContact))
387				}
388			} else {
389				r.WriteMapElemKey()
390				if z.IsJSONHandle() {
391					z.WriteStr("\"LastContact\"")
392				} else {
393					r.EncodeStringEnc(codecSelferCcUTF8102, `LastContact`)
394				}
395				r.WriteMapElemValue()
396				if false {
397				} else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil {
398					z.EncExtension(x.LastContact, yyxt11)
399				} else {
400					r.EncodeInt(int64(x.LastContact))
401				}
402			}
403			if yyr2 || yy2arr2 {
404				r.WriteArrayElem()
405				if false {
406				} else {
407					r.EncodeBool(bool(x.KnownLeader))
408				}
409			} else {
410				r.WriteMapElemKey()
411				if z.IsJSONHandle() {
412					z.WriteStr("\"KnownLeader\"")
413				} else {
414					r.EncodeStringEnc(codecSelferCcUTF8102, `KnownLeader`)
415				}
416				r.WriteMapElemValue()
417				if false {
418				} else {
419					r.EncodeBool(bool(x.KnownLeader))
420				}
421			}
422			if yyr2 || yy2arr2 {
423				r.WriteArrayEnd()
424			} else {
425				r.WriteMapEnd()
426			}
427		}
428	}
429}
430
431func (x *ClientStatsResponse) CodecDecodeSelf(d *codec1978.Decoder) {
432	var h codecSelfer102
433	z, r := codec1978.GenHelperDecoder(d)
434	_, _, _ = h, z, r
435	if false {
436	} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
437		z.DecExtension(x, yyxt1)
438	} else {
439		yyct2 := r.ContainerType()
440		if yyct2 == codecSelferValueTypeMap102 {
441			yyl2 := r.ReadMapStart()
442			if yyl2 == 0 {
443				r.ReadMapEnd()
444			} else {
445				x.codecDecodeSelfFromMap(yyl2, d)
446			}
447		} else if yyct2 == codecSelferValueTypeArray102 {
448			yyl2 := r.ReadArrayStart()
449			if yyl2 == 0 {
450				r.ReadArrayEnd()
451			} else {
452				x.codecDecodeSelfFromArray(yyl2, d)
453			}
454		} else {
455			panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102)
456		}
457	}
458}
459
460func (x *ClientStatsResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
461	var h codecSelfer102
462	z, r := codec1978.GenHelperDecoder(d)
463	_, _, _ = h, z, r
464	var yyhl3 bool = l >= 0
465	for yyj3 := 0; ; yyj3++ {
466		if yyhl3 {
467			if yyj3 >= l {
468				break
469			}
470		} else {
471			if r.CheckBreak() {
472				break
473			}
474		}
475		r.ReadMapElemKey()
476		yys3 := z.StringView(r.DecodeStringAsBytes())
477		r.ReadMapElemValue()
478		switch yys3 {
479		case "HostStats":
480			if r.TryDecodeAsNil() {
481				if true && x.HostStats != nil {
482					x.HostStats = nil
483				}
484			} else {
485				if x.HostStats == nil {
486					x.HostStats = new(pkg1_stats.HostStats)
487				}
488
489				if false {
490				} else if yyxt5 := z.Extension(z.I2Rtid(x.HostStats)); yyxt5 != nil {
491					z.DecExtension(x.HostStats, yyxt5)
492				} else {
493					z.DecFallback(x.HostStats, false)
494				}
495			}
496		case "Index":
497			if r.TryDecodeAsNil() {
498				x.QueryMeta.Index = 0
499			} else {
500				x.Index = (uint64)(r.DecodeUint64())
501			}
502		case "LastContact":
503			if r.TryDecodeAsNil() {
504				x.QueryMeta.LastContact = 0
505			} else {
506				if false {
507				} else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil {
508					z.DecExtension(x.LastContact, yyxt8)
509				} else {
510					x.LastContact = (time.Duration)(r.DecodeInt64())
511				}
512			}
513		case "KnownLeader":
514			if r.TryDecodeAsNil() {
515				x.QueryMeta.KnownLeader = false
516			} else {
517				x.KnownLeader = (bool)(r.DecodeBool())
518			}
519		default:
520			z.DecStructFieldNotFound(-1, yys3)
521		} // end switch yys3
522	} // end for yyj3
523	r.ReadMapEnd()
524}
525
526func (x *ClientStatsResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
527	var h codecSelfer102
528	z, r := codec1978.GenHelperDecoder(d)
529	_, _, _ = h, z, r
530	var yyj10 int
531	var yyb10 bool
532	var yyhl10 bool = l >= 0
533	yyj10++
534	if yyhl10 {
535		yyb10 = yyj10 > l
536	} else {
537		yyb10 = r.CheckBreak()
538	}
539	if yyb10 {
540		r.ReadArrayEnd()
541		return
542	}
543	r.ReadArrayElem()
544	if r.TryDecodeAsNil() {
545		if true && x.HostStats != nil {
546			x.HostStats = nil
547		}
548	} else {
549		if x.HostStats == nil {
550			x.HostStats = new(pkg1_stats.HostStats)
551		}
552
553		if false {
554		} else if yyxt12 := z.Extension(z.I2Rtid(x.HostStats)); yyxt12 != nil {
555			z.DecExtension(x.HostStats, yyxt12)
556		} else {
557			z.DecFallback(x.HostStats, false)
558		}
559	}
560	yyj10++
561	if yyhl10 {
562		yyb10 = yyj10 > l
563	} else {
564		yyb10 = r.CheckBreak()
565	}
566	if yyb10 {
567		r.ReadArrayEnd()
568		return
569	}
570	r.ReadArrayElem()
571	if r.TryDecodeAsNil() {
572		x.QueryMeta.Index = 0
573	} else {
574		x.Index = (uint64)(r.DecodeUint64())
575	}
576	yyj10++
577	if yyhl10 {
578		yyb10 = yyj10 > l
579	} else {
580		yyb10 = r.CheckBreak()
581	}
582	if yyb10 {
583		r.ReadArrayEnd()
584		return
585	}
586	r.ReadArrayElem()
587	if r.TryDecodeAsNil() {
588		x.QueryMeta.LastContact = 0
589	} else {
590		if false {
591		} else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil {
592			z.DecExtension(x.LastContact, yyxt15)
593		} else {
594			x.LastContact = (time.Duration)(r.DecodeInt64())
595		}
596	}
597	yyj10++
598	if yyhl10 {
599		yyb10 = yyj10 > l
600	} else {
601		yyb10 = r.CheckBreak()
602	}
603	if yyb10 {
604		r.ReadArrayEnd()
605		return
606	}
607	r.ReadArrayElem()
608	if r.TryDecodeAsNil() {
609		x.QueryMeta.KnownLeader = false
610	} else {
611		x.KnownLeader = (bool)(r.DecodeBool())
612	}
613	for {
614		yyj10++
615		if yyhl10 {
616			yyb10 = yyj10 > l
617		} else {
618			yyb10 = r.CheckBreak()
619		}
620		if yyb10 {
621			break
622		}
623		r.ReadArrayElem()
624		z.DecStructFieldNotFound(yyj10-1, "")
625	}
626	r.ReadArrayEnd()
627}
628
629func (x *MonitorRequest) CodecEncodeSelf(e *codec1978.Encoder) {
630	var h codecSelfer102
631	z, r := codec1978.GenHelperEncoder(e)
632	_, _, _ = h, z, r
633	if x == nil {
634		r.EncodeNil()
635	} else {
636		if false {
637		} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
638			z.EncExtension(x, yyxt1)
639		} else {
640			yysep2 := !z.EncBinary()
641			yy2arr2 := z.EncBasicHandle().StructToArray
642			_, _ = yysep2, yy2arr2
643			const yyr2 bool = false // struct tag has 'toArray'
644			if yyr2 || yy2arr2 {
645				r.WriteArrayStart(15)
646			} else {
647				r.WriteMapStart(15)
648			}
649			if yyr2 || yy2arr2 {
650				r.WriteArrayElem()
651				if false {
652				} else {
653					if z.EncBasicHandle().StringToRaw {
654						r.EncodeStringBytesRaw(z.BytesView(string(x.LogLevel)))
655					} else {
656						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.LogLevel))
657					}
658				}
659			} else {
660				r.WriteMapElemKey()
661				if z.IsJSONHandle() {
662					z.WriteStr("\"LogLevel\"")
663				} else {
664					r.EncodeStringEnc(codecSelferCcUTF8102, `LogLevel`)
665				}
666				r.WriteMapElemValue()
667				if false {
668				} else {
669					if z.EncBasicHandle().StringToRaw {
670						r.EncodeStringBytesRaw(z.BytesView(string(x.LogLevel)))
671					} else {
672						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.LogLevel))
673					}
674				}
675			}
676			if yyr2 || yy2arr2 {
677				r.WriteArrayElem()
678				if false {
679				} else {
680					r.EncodeBool(bool(x.LogJSON))
681				}
682			} else {
683				r.WriteMapElemKey()
684				if z.IsJSONHandle() {
685					z.WriteStr("\"LogJSON\"")
686				} else {
687					r.EncodeStringEnc(codecSelferCcUTF8102, `LogJSON`)
688				}
689				r.WriteMapElemValue()
690				if false {
691				} else {
692					r.EncodeBool(bool(x.LogJSON))
693				}
694			}
695			if yyr2 || yy2arr2 {
696				r.WriteArrayElem()
697				if false {
698				} else {
699					if z.EncBasicHandle().StringToRaw {
700						r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID)))
701					} else {
702						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.NodeID))
703					}
704				}
705			} else {
706				r.WriteMapElemKey()
707				if z.IsJSONHandle() {
708					z.WriteStr("\"NodeID\"")
709				} else {
710					r.EncodeStringEnc(codecSelferCcUTF8102, `NodeID`)
711				}
712				r.WriteMapElemValue()
713				if false {
714				} else {
715					if z.EncBasicHandle().StringToRaw {
716						r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID)))
717					} else {
718						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.NodeID))
719					}
720				}
721			}
722			if yyr2 || yy2arr2 {
723				r.WriteArrayElem()
724				if false {
725				} else {
726					if z.EncBasicHandle().StringToRaw {
727						r.EncodeStringBytesRaw(z.BytesView(string(x.ServerID)))
728					} else {
729						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.ServerID))
730					}
731				}
732			} else {
733				r.WriteMapElemKey()
734				if z.IsJSONHandle() {
735					z.WriteStr("\"ServerID\"")
736				} else {
737					r.EncodeStringEnc(codecSelferCcUTF8102, `ServerID`)
738				}
739				r.WriteMapElemValue()
740				if false {
741				} else {
742					if z.EncBasicHandle().StringToRaw {
743						r.EncodeStringBytesRaw(z.BytesView(string(x.ServerID)))
744					} else {
745						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.ServerID))
746					}
747				}
748			}
749			if yyr2 || yy2arr2 {
750				r.WriteArrayElem()
751				if false {
752				} else {
753					r.EncodeBool(bool(x.PlainText))
754				}
755			} else {
756				r.WriteMapElemKey()
757				if z.IsJSONHandle() {
758					z.WriteStr("\"PlainText\"")
759				} else {
760					r.EncodeStringEnc(codecSelferCcUTF8102, `PlainText`)
761				}
762				r.WriteMapElemValue()
763				if false {
764				} else {
765					r.EncodeBool(bool(x.PlainText))
766				}
767			}
768			if yyr2 || yy2arr2 {
769				r.WriteArrayElem()
770				if false {
771				} else {
772					if z.EncBasicHandle().StringToRaw {
773						r.EncodeStringBytesRaw(z.BytesView(string(x.Region)))
774					} else {
775						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Region))
776					}
777				}
778			} else {
779				r.WriteMapElemKey()
780				if z.IsJSONHandle() {
781					z.WriteStr("\"Region\"")
782				} else {
783					r.EncodeStringEnc(codecSelferCcUTF8102, `Region`)
784				}
785				r.WriteMapElemValue()
786				if false {
787				} else {
788					if z.EncBasicHandle().StringToRaw {
789						r.EncodeStringBytesRaw(z.BytesView(string(x.Region)))
790					} else {
791						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Region))
792					}
793				}
794			}
795			if yyr2 || yy2arr2 {
796				r.WriteArrayElem()
797				if false {
798				} else {
799					if z.EncBasicHandle().StringToRaw {
800						r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace)))
801					} else {
802						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Namespace))
803					}
804				}
805			} else {
806				r.WriteMapElemKey()
807				if z.IsJSONHandle() {
808					z.WriteStr("\"Namespace\"")
809				} else {
810					r.EncodeStringEnc(codecSelferCcUTF8102, `Namespace`)
811				}
812				r.WriteMapElemValue()
813				if false {
814				} else {
815					if z.EncBasicHandle().StringToRaw {
816						r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace)))
817					} else {
818						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Namespace))
819					}
820				}
821			}
822			if yyr2 || yy2arr2 {
823				r.WriteArrayElem()
824				if false {
825				} else {
826					r.EncodeUint(uint64(x.MinQueryIndex))
827				}
828			} else {
829				r.WriteMapElemKey()
830				if z.IsJSONHandle() {
831					z.WriteStr("\"MinQueryIndex\"")
832				} else {
833					r.EncodeStringEnc(codecSelferCcUTF8102, `MinQueryIndex`)
834				}
835				r.WriteMapElemValue()
836				if false {
837				} else {
838					r.EncodeUint(uint64(x.MinQueryIndex))
839				}
840			}
841			if yyr2 || yy2arr2 {
842				r.WriteArrayElem()
843				if false {
844				} else if yyxt28 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt28 != nil {
845					z.EncExtension(x.MaxQueryTime, yyxt28)
846				} else {
847					r.EncodeInt(int64(x.MaxQueryTime))
848				}
849			} else {
850				r.WriteMapElemKey()
851				if z.IsJSONHandle() {
852					z.WriteStr("\"MaxQueryTime\"")
853				} else {
854					r.EncodeStringEnc(codecSelferCcUTF8102, `MaxQueryTime`)
855				}
856				r.WriteMapElemValue()
857				if false {
858				} else if yyxt29 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt29 != nil {
859					z.EncExtension(x.MaxQueryTime, yyxt29)
860				} else {
861					r.EncodeInt(int64(x.MaxQueryTime))
862				}
863			}
864			if yyr2 || yy2arr2 {
865				r.WriteArrayElem()
866				if false {
867				} else {
868					r.EncodeBool(bool(x.AllowStale))
869				}
870			} else {
871				r.WriteMapElemKey()
872				if z.IsJSONHandle() {
873					z.WriteStr("\"AllowStale\"")
874				} else {
875					r.EncodeStringEnc(codecSelferCcUTF8102, `AllowStale`)
876				}
877				r.WriteMapElemValue()
878				if false {
879				} else {
880					r.EncodeBool(bool(x.AllowStale))
881				}
882			}
883			if yyr2 || yy2arr2 {
884				r.WriteArrayElem()
885				if false {
886				} else {
887					if z.EncBasicHandle().StringToRaw {
888						r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix)))
889					} else {
890						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Prefix))
891					}
892				}
893			} else {
894				r.WriteMapElemKey()
895				if z.IsJSONHandle() {
896					z.WriteStr("\"Prefix\"")
897				} else {
898					r.EncodeStringEnc(codecSelferCcUTF8102, `Prefix`)
899				}
900				r.WriteMapElemValue()
901				if false {
902				} else {
903					if z.EncBasicHandle().StringToRaw {
904						r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix)))
905					} else {
906						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Prefix))
907					}
908				}
909			}
910			if yyr2 || yy2arr2 {
911				r.WriteArrayElem()
912				if false {
913				} else {
914					if z.EncBasicHandle().StringToRaw {
915						r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken)))
916					} else {
917						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AuthToken))
918					}
919				}
920			} else {
921				r.WriteMapElemKey()
922				if z.IsJSONHandle() {
923					z.WriteStr("\"AuthToken\"")
924				} else {
925					r.EncodeStringEnc(codecSelferCcUTF8102, `AuthToken`)
926				}
927				r.WriteMapElemValue()
928				if false {
929				} else {
930					if z.EncBasicHandle().StringToRaw {
931						r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken)))
932					} else {
933						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AuthToken))
934					}
935				}
936			}
937			if yyr2 || yy2arr2 {
938				r.WriteArrayElem()
939				if false {
940				} else {
941					r.EncodeInt(int64(x.PerPage))
942				}
943			} else {
944				r.WriteMapElemKey()
945				if z.IsJSONHandle() {
946					z.WriteStr("\"PerPage\"")
947				} else {
948					r.EncodeStringEnc(codecSelferCcUTF8102, `PerPage`)
949				}
950				r.WriteMapElemValue()
951				if false {
952				} else {
953					r.EncodeInt(int64(x.PerPage))
954				}
955			}
956			if yyr2 || yy2arr2 {
957				r.WriteArrayElem()
958				if false {
959				} else {
960					if z.EncBasicHandle().StringToRaw {
961						r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken)))
962					} else {
963						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.NextToken))
964					}
965				}
966			} else {
967				r.WriteMapElemKey()
968				if z.IsJSONHandle() {
969					z.WriteStr("\"NextToken\"")
970				} else {
971					r.EncodeStringEnc(codecSelferCcUTF8102, `NextToken`)
972				}
973				r.WriteMapElemValue()
974				if false {
975				} else {
976					if z.EncBasicHandle().StringToRaw {
977						r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken)))
978					} else {
979						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.NextToken))
980					}
981				}
982			}
983			if yyr2 || yy2arr2 {
984				r.WriteArrayElem()
985				if false {
986				} else {
987					r.EncodeBool(bool(x.Forwarded))
988				}
989			} else {
990				r.WriteMapElemKey()
991				if z.IsJSONHandle() {
992					z.WriteStr("\"Forwarded\"")
993				} else {
994					r.EncodeStringEnc(codecSelferCcUTF8102, `Forwarded`)
995				}
996				r.WriteMapElemValue()
997				if false {
998				} else {
999					r.EncodeBool(bool(x.Forwarded))
1000				}
1001			}
1002			if yyr2 || yy2arr2 {
1003				r.WriteArrayEnd()
1004			} else {
1005				r.WriteMapEnd()
1006			}
1007		}
1008	}
1009}
1010
1011func (x *MonitorRequest) CodecDecodeSelf(d *codec1978.Decoder) {
1012	var h codecSelfer102
1013	z, r := codec1978.GenHelperDecoder(d)
1014	_, _, _ = h, z, r
1015	if false {
1016	} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
1017		z.DecExtension(x, yyxt1)
1018	} else {
1019		yyct2 := r.ContainerType()
1020		if yyct2 == codecSelferValueTypeMap102 {
1021			yyl2 := r.ReadMapStart()
1022			if yyl2 == 0 {
1023				r.ReadMapEnd()
1024			} else {
1025				x.codecDecodeSelfFromMap(yyl2, d)
1026			}
1027		} else if yyct2 == codecSelferValueTypeArray102 {
1028			yyl2 := r.ReadArrayStart()
1029			if yyl2 == 0 {
1030				r.ReadArrayEnd()
1031			} else {
1032				x.codecDecodeSelfFromArray(yyl2, d)
1033			}
1034		} else {
1035			panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102)
1036		}
1037	}
1038}
1039
1040func (x *MonitorRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
1041	var h codecSelfer102
1042	z, r := codec1978.GenHelperDecoder(d)
1043	_, _, _ = h, z, r
1044	var yyhl3 bool = l >= 0
1045	for yyj3 := 0; ; yyj3++ {
1046		if yyhl3 {
1047			if yyj3 >= l {
1048				break
1049			}
1050		} else {
1051			if r.CheckBreak() {
1052				break
1053			}
1054		}
1055		r.ReadMapElemKey()
1056		yys3 := z.StringView(r.DecodeStringAsBytes())
1057		r.ReadMapElemValue()
1058		switch yys3 {
1059		case "LogLevel":
1060			if r.TryDecodeAsNil() {
1061				x.LogLevel = ""
1062			} else {
1063				x.LogLevel = (string)(r.DecodeString())
1064			}
1065		case "LogJSON":
1066			if r.TryDecodeAsNil() {
1067				x.LogJSON = false
1068			} else {
1069				x.LogJSON = (bool)(r.DecodeBool())
1070			}
1071		case "NodeID":
1072			if r.TryDecodeAsNil() {
1073				x.NodeID = ""
1074			} else {
1075				x.NodeID = (string)(r.DecodeString())
1076			}
1077		case "ServerID":
1078			if r.TryDecodeAsNil() {
1079				x.ServerID = ""
1080			} else {
1081				x.ServerID = (string)(r.DecodeString())
1082			}
1083		case "PlainText":
1084			if r.TryDecodeAsNil() {
1085				x.PlainText = false
1086			} else {
1087				x.PlainText = (bool)(r.DecodeBool())
1088			}
1089		case "Region":
1090			if r.TryDecodeAsNil() {
1091				x.QueryOptions.Region = ""
1092			} else {
1093				x.Region = (string)(r.DecodeString())
1094			}
1095		case "Namespace":
1096			if r.TryDecodeAsNil() {
1097				x.QueryOptions.Namespace = ""
1098			} else {
1099				x.Namespace = (string)(r.DecodeString())
1100			}
1101		case "MinQueryIndex":
1102			if r.TryDecodeAsNil() {
1103				x.QueryOptions.MinQueryIndex = 0
1104			} else {
1105				x.MinQueryIndex = (uint64)(r.DecodeUint64())
1106			}
1107		case "MaxQueryTime":
1108			if r.TryDecodeAsNil() {
1109				x.QueryOptions.MaxQueryTime = 0
1110			} else {
1111				if false {
1112				} else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil {
1113					z.DecExtension(x.MaxQueryTime, yyxt13)
1114				} else {
1115					x.MaxQueryTime = (time.Duration)(r.DecodeInt64())
1116				}
1117			}
1118		case "AllowStale":
1119			if r.TryDecodeAsNil() {
1120				x.QueryOptions.AllowStale = false
1121			} else {
1122				x.AllowStale = (bool)(r.DecodeBool())
1123			}
1124		case "Prefix":
1125			if r.TryDecodeAsNil() {
1126				x.QueryOptions.Prefix = ""
1127			} else {
1128				x.Prefix = (string)(r.DecodeString())
1129			}
1130		case "AuthToken":
1131			if r.TryDecodeAsNil() {
1132				x.QueryOptions.AuthToken = ""
1133			} else {
1134				x.AuthToken = (string)(r.DecodeString())
1135			}
1136		case "PerPage":
1137			if r.TryDecodeAsNil() {
1138				x.QueryOptions.PerPage = 0
1139			} else {
1140				x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32))
1141			}
1142		case "NextToken":
1143			if r.TryDecodeAsNil() {
1144				x.QueryOptions.NextToken = ""
1145			} else {
1146				x.NextToken = (string)(r.DecodeString())
1147			}
1148		case "Forwarded":
1149			if r.TryDecodeAsNil() {
1150				x.QueryOptions.InternalRpcInfo.Forwarded = false
1151			} else {
1152				x.Forwarded = (bool)(r.DecodeBool())
1153			}
1154		default:
1155			z.DecStructFieldNotFound(-1, yys3)
1156		} // end switch yys3
1157	} // end for yyj3
1158	r.ReadMapEnd()
1159}
1160
1161func (x *MonitorRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
1162	var h codecSelfer102
1163	z, r := codec1978.GenHelperDecoder(d)
1164	_, _, _ = h, z, r
1165	var yyj20 int
1166	var yyb20 bool
1167	var yyhl20 bool = l >= 0
1168	yyj20++
1169	if yyhl20 {
1170		yyb20 = yyj20 > l
1171	} else {
1172		yyb20 = r.CheckBreak()
1173	}
1174	if yyb20 {
1175		r.ReadArrayEnd()
1176		return
1177	}
1178	r.ReadArrayElem()
1179	if r.TryDecodeAsNil() {
1180		x.LogLevel = ""
1181	} else {
1182		x.LogLevel = (string)(r.DecodeString())
1183	}
1184	yyj20++
1185	if yyhl20 {
1186		yyb20 = yyj20 > l
1187	} else {
1188		yyb20 = r.CheckBreak()
1189	}
1190	if yyb20 {
1191		r.ReadArrayEnd()
1192		return
1193	}
1194	r.ReadArrayElem()
1195	if r.TryDecodeAsNil() {
1196		x.LogJSON = false
1197	} else {
1198		x.LogJSON = (bool)(r.DecodeBool())
1199	}
1200	yyj20++
1201	if yyhl20 {
1202		yyb20 = yyj20 > l
1203	} else {
1204		yyb20 = r.CheckBreak()
1205	}
1206	if yyb20 {
1207		r.ReadArrayEnd()
1208		return
1209	}
1210	r.ReadArrayElem()
1211	if r.TryDecodeAsNil() {
1212		x.NodeID = ""
1213	} else {
1214		x.NodeID = (string)(r.DecodeString())
1215	}
1216	yyj20++
1217	if yyhl20 {
1218		yyb20 = yyj20 > l
1219	} else {
1220		yyb20 = r.CheckBreak()
1221	}
1222	if yyb20 {
1223		r.ReadArrayEnd()
1224		return
1225	}
1226	r.ReadArrayElem()
1227	if r.TryDecodeAsNil() {
1228		x.ServerID = ""
1229	} else {
1230		x.ServerID = (string)(r.DecodeString())
1231	}
1232	yyj20++
1233	if yyhl20 {
1234		yyb20 = yyj20 > l
1235	} else {
1236		yyb20 = r.CheckBreak()
1237	}
1238	if yyb20 {
1239		r.ReadArrayEnd()
1240		return
1241	}
1242	r.ReadArrayElem()
1243	if r.TryDecodeAsNil() {
1244		x.PlainText = false
1245	} else {
1246		x.PlainText = (bool)(r.DecodeBool())
1247	}
1248	yyj20++
1249	if yyhl20 {
1250		yyb20 = yyj20 > l
1251	} else {
1252		yyb20 = r.CheckBreak()
1253	}
1254	if yyb20 {
1255		r.ReadArrayEnd()
1256		return
1257	}
1258	r.ReadArrayElem()
1259	if r.TryDecodeAsNil() {
1260		x.QueryOptions.Region = ""
1261	} else {
1262		x.Region = (string)(r.DecodeString())
1263	}
1264	yyj20++
1265	if yyhl20 {
1266		yyb20 = yyj20 > l
1267	} else {
1268		yyb20 = r.CheckBreak()
1269	}
1270	if yyb20 {
1271		r.ReadArrayEnd()
1272		return
1273	}
1274	r.ReadArrayElem()
1275	if r.TryDecodeAsNil() {
1276		x.QueryOptions.Namespace = ""
1277	} else {
1278		x.Namespace = (string)(r.DecodeString())
1279	}
1280	yyj20++
1281	if yyhl20 {
1282		yyb20 = yyj20 > l
1283	} else {
1284		yyb20 = r.CheckBreak()
1285	}
1286	if yyb20 {
1287		r.ReadArrayEnd()
1288		return
1289	}
1290	r.ReadArrayElem()
1291	if r.TryDecodeAsNil() {
1292		x.QueryOptions.MinQueryIndex = 0
1293	} else {
1294		x.MinQueryIndex = (uint64)(r.DecodeUint64())
1295	}
1296	yyj20++
1297	if yyhl20 {
1298		yyb20 = yyj20 > l
1299	} else {
1300		yyb20 = r.CheckBreak()
1301	}
1302	if yyb20 {
1303		r.ReadArrayEnd()
1304		return
1305	}
1306	r.ReadArrayElem()
1307	if r.TryDecodeAsNil() {
1308		x.QueryOptions.MaxQueryTime = 0
1309	} else {
1310		if false {
1311		} else if yyxt30 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt30 != nil {
1312			z.DecExtension(x.MaxQueryTime, yyxt30)
1313		} else {
1314			x.MaxQueryTime = (time.Duration)(r.DecodeInt64())
1315		}
1316	}
1317	yyj20++
1318	if yyhl20 {
1319		yyb20 = yyj20 > l
1320	} else {
1321		yyb20 = r.CheckBreak()
1322	}
1323	if yyb20 {
1324		r.ReadArrayEnd()
1325		return
1326	}
1327	r.ReadArrayElem()
1328	if r.TryDecodeAsNil() {
1329		x.QueryOptions.AllowStale = false
1330	} else {
1331		x.AllowStale = (bool)(r.DecodeBool())
1332	}
1333	yyj20++
1334	if yyhl20 {
1335		yyb20 = yyj20 > l
1336	} else {
1337		yyb20 = r.CheckBreak()
1338	}
1339	if yyb20 {
1340		r.ReadArrayEnd()
1341		return
1342	}
1343	r.ReadArrayElem()
1344	if r.TryDecodeAsNil() {
1345		x.QueryOptions.Prefix = ""
1346	} else {
1347		x.Prefix = (string)(r.DecodeString())
1348	}
1349	yyj20++
1350	if yyhl20 {
1351		yyb20 = yyj20 > l
1352	} else {
1353		yyb20 = r.CheckBreak()
1354	}
1355	if yyb20 {
1356		r.ReadArrayEnd()
1357		return
1358	}
1359	r.ReadArrayElem()
1360	if r.TryDecodeAsNil() {
1361		x.QueryOptions.AuthToken = ""
1362	} else {
1363		x.AuthToken = (string)(r.DecodeString())
1364	}
1365	yyj20++
1366	if yyhl20 {
1367		yyb20 = yyj20 > l
1368	} else {
1369		yyb20 = r.CheckBreak()
1370	}
1371	if yyb20 {
1372		r.ReadArrayEnd()
1373		return
1374	}
1375	r.ReadArrayElem()
1376	if r.TryDecodeAsNil() {
1377		x.QueryOptions.PerPage = 0
1378	} else {
1379		x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32))
1380	}
1381	yyj20++
1382	if yyhl20 {
1383		yyb20 = yyj20 > l
1384	} else {
1385		yyb20 = r.CheckBreak()
1386	}
1387	if yyb20 {
1388		r.ReadArrayEnd()
1389		return
1390	}
1391	r.ReadArrayElem()
1392	if r.TryDecodeAsNil() {
1393		x.QueryOptions.NextToken = ""
1394	} else {
1395		x.NextToken = (string)(r.DecodeString())
1396	}
1397	yyj20++
1398	if yyhl20 {
1399		yyb20 = yyj20 > l
1400	} else {
1401		yyb20 = r.CheckBreak()
1402	}
1403	if yyb20 {
1404		r.ReadArrayEnd()
1405		return
1406	}
1407	r.ReadArrayElem()
1408	if r.TryDecodeAsNil() {
1409		x.QueryOptions.InternalRpcInfo.Forwarded = false
1410	} else {
1411		x.Forwarded = (bool)(r.DecodeBool())
1412	}
1413	for {
1414		yyj20++
1415		if yyhl20 {
1416			yyb20 = yyj20 > l
1417		} else {
1418			yyb20 = r.CheckBreak()
1419		}
1420		if yyb20 {
1421			break
1422		}
1423		r.ReadArrayElem()
1424		z.DecStructFieldNotFound(yyj20-1, "")
1425	}
1426	r.ReadArrayEnd()
1427}
1428
1429func (x *AllocFileInfo) CodecEncodeSelf(e *codec1978.Encoder) {
1430	var h codecSelfer102
1431	z, r := codec1978.GenHelperEncoder(e)
1432	_, _, _ = h, z, r
1433	if x == nil {
1434		r.EncodeNil()
1435	} else {
1436		if false {
1437		} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
1438			z.EncExtension(x, yyxt1)
1439		} else {
1440			yysep2 := !z.EncBinary()
1441			yy2arr2 := z.EncBasicHandle().StructToArray
1442			_, _ = yysep2, yy2arr2
1443			const yyr2 bool = false // struct tag has 'toArray'
1444			if yyr2 || yy2arr2 {
1445				r.WriteArrayStart(6)
1446			} else {
1447				r.WriteMapStart(6)
1448			}
1449			if yyr2 || yy2arr2 {
1450				r.WriteArrayElem()
1451				if false {
1452				} else {
1453					if z.EncBasicHandle().StringToRaw {
1454						r.EncodeStringBytesRaw(z.BytesView(string(x.Name)))
1455					} else {
1456						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Name))
1457					}
1458				}
1459			} else {
1460				r.WriteMapElemKey()
1461				if z.IsJSONHandle() {
1462					z.WriteStr("\"Name\"")
1463				} else {
1464					r.EncodeStringEnc(codecSelferCcUTF8102, `Name`)
1465				}
1466				r.WriteMapElemValue()
1467				if false {
1468				} else {
1469					if z.EncBasicHandle().StringToRaw {
1470						r.EncodeStringBytesRaw(z.BytesView(string(x.Name)))
1471					} else {
1472						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Name))
1473					}
1474				}
1475			}
1476			if yyr2 || yy2arr2 {
1477				r.WriteArrayElem()
1478				if false {
1479				} else {
1480					r.EncodeBool(bool(x.IsDir))
1481				}
1482			} else {
1483				r.WriteMapElemKey()
1484				if z.IsJSONHandle() {
1485					z.WriteStr("\"IsDir\"")
1486				} else {
1487					r.EncodeStringEnc(codecSelferCcUTF8102, `IsDir`)
1488				}
1489				r.WriteMapElemValue()
1490				if false {
1491				} else {
1492					r.EncodeBool(bool(x.IsDir))
1493				}
1494			}
1495			if yyr2 || yy2arr2 {
1496				r.WriteArrayElem()
1497				if false {
1498				} else {
1499					r.EncodeInt(int64(x.Size))
1500				}
1501			} else {
1502				r.WriteMapElemKey()
1503				if z.IsJSONHandle() {
1504					z.WriteStr("\"Size\"")
1505				} else {
1506					r.EncodeStringEnc(codecSelferCcUTF8102, `Size`)
1507				}
1508				r.WriteMapElemValue()
1509				if false {
1510				} else {
1511					r.EncodeInt(int64(x.Size))
1512				}
1513			}
1514			if yyr2 || yy2arr2 {
1515				r.WriteArrayElem()
1516				if false {
1517				} else {
1518					if z.EncBasicHandle().StringToRaw {
1519						r.EncodeStringBytesRaw(z.BytesView(string(x.FileMode)))
1520					} else {
1521						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.FileMode))
1522					}
1523				}
1524			} else {
1525				r.WriteMapElemKey()
1526				if z.IsJSONHandle() {
1527					z.WriteStr("\"FileMode\"")
1528				} else {
1529					r.EncodeStringEnc(codecSelferCcUTF8102, `FileMode`)
1530				}
1531				r.WriteMapElemValue()
1532				if false {
1533				} else {
1534					if z.EncBasicHandle().StringToRaw {
1535						r.EncodeStringBytesRaw(z.BytesView(string(x.FileMode)))
1536					} else {
1537						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.FileMode))
1538					}
1539				}
1540			}
1541			if yyr2 || yy2arr2 {
1542				r.WriteArrayElem()
1543				if false {
1544				} else if !z.EncBasicHandle().TimeNotBuiltin {
1545					r.EncodeTime(x.ModTime)
1546				} else if yyxt16 := z.Extension(z.I2Rtid(x.ModTime)); yyxt16 != nil {
1547					z.EncExtension(x.ModTime, yyxt16)
1548				} else if z.EncBinary() {
1549					z.EncBinaryMarshal(x.ModTime)
1550				} else if !z.EncBinary() && z.IsJSONHandle() {
1551					z.EncJSONMarshal(x.ModTime)
1552				} else {
1553					z.EncFallback(x.ModTime)
1554				}
1555			} else {
1556				r.WriteMapElemKey()
1557				if z.IsJSONHandle() {
1558					z.WriteStr("\"ModTime\"")
1559				} else {
1560					r.EncodeStringEnc(codecSelferCcUTF8102, `ModTime`)
1561				}
1562				r.WriteMapElemValue()
1563				if false {
1564				} else if !z.EncBasicHandle().TimeNotBuiltin {
1565					r.EncodeTime(x.ModTime)
1566				} else if yyxt17 := z.Extension(z.I2Rtid(x.ModTime)); yyxt17 != nil {
1567					z.EncExtension(x.ModTime, yyxt17)
1568				} else if z.EncBinary() {
1569					z.EncBinaryMarshal(x.ModTime)
1570				} else if !z.EncBinary() && z.IsJSONHandle() {
1571					z.EncJSONMarshal(x.ModTime)
1572				} else {
1573					z.EncFallback(x.ModTime)
1574				}
1575			}
1576			if yyr2 || yy2arr2 {
1577				r.WriteArrayElem()
1578				if false {
1579				} else {
1580					if z.EncBasicHandle().StringToRaw {
1581						r.EncodeStringBytesRaw(z.BytesView(string(x.ContentType)))
1582					} else {
1583						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.ContentType))
1584					}
1585				}
1586			} else {
1587				r.WriteMapElemKey()
1588				if z.IsJSONHandle() {
1589					z.WriteStr("\"ContentType\"")
1590				} else {
1591					r.EncodeStringEnc(codecSelferCcUTF8102, `ContentType`)
1592				}
1593				r.WriteMapElemValue()
1594				if false {
1595				} else {
1596					if z.EncBasicHandle().StringToRaw {
1597						r.EncodeStringBytesRaw(z.BytesView(string(x.ContentType)))
1598					} else {
1599						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.ContentType))
1600					}
1601				}
1602			}
1603			if yyr2 || yy2arr2 {
1604				r.WriteArrayEnd()
1605			} else {
1606				r.WriteMapEnd()
1607			}
1608		}
1609	}
1610}
1611
1612func (x *AllocFileInfo) CodecDecodeSelf(d *codec1978.Decoder) {
1613	var h codecSelfer102
1614	z, r := codec1978.GenHelperDecoder(d)
1615	_, _, _ = h, z, r
1616	if false {
1617	} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
1618		z.DecExtension(x, yyxt1)
1619	} else {
1620		yyct2 := r.ContainerType()
1621		if yyct2 == codecSelferValueTypeMap102 {
1622			yyl2 := r.ReadMapStart()
1623			if yyl2 == 0 {
1624				r.ReadMapEnd()
1625			} else {
1626				x.codecDecodeSelfFromMap(yyl2, d)
1627			}
1628		} else if yyct2 == codecSelferValueTypeArray102 {
1629			yyl2 := r.ReadArrayStart()
1630			if yyl2 == 0 {
1631				r.ReadArrayEnd()
1632			} else {
1633				x.codecDecodeSelfFromArray(yyl2, d)
1634			}
1635		} else {
1636			panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102)
1637		}
1638	}
1639}
1640
1641func (x *AllocFileInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
1642	var h codecSelfer102
1643	z, r := codec1978.GenHelperDecoder(d)
1644	_, _, _ = h, z, r
1645	var yyhl3 bool = l >= 0
1646	for yyj3 := 0; ; yyj3++ {
1647		if yyhl3 {
1648			if yyj3 >= l {
1649				break
1650			}
1651		} else {
1652			if r.CheckBreak() {
1653				break
1654			}
1655		}
1656		r.ReadMapElemKey()
1657		yys3 := z.StringView(r.DecodeStringAsBytes())
1658		r.ReadMapElemValue()
1659		switch yys3 {
1660		case "Name":
1661			if r.TryDecodeAsNil() {
1662				x.Name = ""
1663			} else {
1664				x.Name = (string)(r.DecodeString())
1665			}
1666		case "IsDir":
1667			if r.TryDecodeAsNil() {
1668				x.IsDir = false
1669			} else {
1670				x.IsDir = (bool)(r.DecodeBool())
1671			}
1672		case "Size":
1673			if r.TryDecodeAsNil() {
1674				x.Size = 0
1675			} else {
1676				x.Size = (int64)(r.DecodeInt64())
1677			}
1678		case "FileMode":
1679			if r.TryDecodeAsNil() {
1680				x.FileMode = ""
1681			} else {
1682				x.FileMode = (string)(r.DecodeString())
1683			}
1684		case "ModTime":
1685			if r.TryDecodeAsNil() {
1686				x.ModTime = time.Time{}
1687			} else {
1688				if false {
1689				} else if !z.DecBasicHandle().TimeNotBuiltin {
1690					x.ModTime = r.DecodeTime()
1691				} else if yyxt9 := z.Extension(z.I2Rtid(x.ModTime)); yyxt9 != nil {
1692					z.DecExtension(x.ModTime, yyxt9)
1693				} else if z.DecBinary() {
1694					z.DecBinaryUnmarshal(&x.ModTime)
1695				} else if !z.DecBinary() && z.IsJSONHandle() {
1696					z.DecJSONUnmarshal(&x.ModTime)
1697				} else {
1698					z.DecFallback(&x.ModTime, false)
1699				}
1700			}
1701		case "ContentType":
1702			if r.TryDecodeAsNil() {
1703				x.ContentType = ""
1704			} else {
1705				x.ContentType = (string)(r.DecodeString())
1706			}
1707		default:
1708			z.DecStructFieldNotFound(-1, yys3)
1709		} // end switch yys3
1710	} // end for yyj3
1711	r.ReadMapEnd()
1712}
1713
1714func (x *AllocFileInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
1715	var h codecSelfer102
1716	z, r := codec1978.GenHelperDecoder(d)
1717	_, _, _ = h, z, r
1718	var yyj11 int
1719	var yyb11 bool
1720	var yyhl11 bool = l >= 0
1721	yyj11++
1722	if yyhl11 {
1723		yyb11 = yyj11 > l
1724	} else {
1725		yyb11 = r.CheckBreak()
1726	}
1727	if yyb11 {
1728		r.ReadArrayEnd()
1729		return
1730	}
1731	r.ReadArrayElem()
1732	if r.TryDecodeAsNil() {
1733		x.Name = ""
1734	} else {
1735		x.Name = (string)(r.DecodeString())
1736	}
1737	yyj11++
1738	if yyhl11 {
1739		yyb11 = yyj11 > l
1740	} else {
1741		yyb11 = r.CheckBreak()
1742	}
1743	if yyb11 {
1744		r.ReadArrayEnd()
1745		return
1746	}
1747	r.ReadArrayElem()
1748	if r.TryDecodeAsNil() {
1749		x.IsDir = false
1750	} else {
1751		x.IsDir = (bool)(r.DecodeBool())
1752	}
1753	yyj11++
1754	if yyhl11 {
1755		yyb11 = yyj11 > l
1756	} else {
1757		yyb11 = r.CheckBreak()
1758	}
1759	if yyb11 {
1760		r.ReadArrayEnd()
1761		return
1762	}
1763	r.ReadArrayElem()
1764	if r.TryDecodeAsNil() {
1765		x.Size = 0
1766	} else {
1767		x.Size = (int64)(r.DecodeInt64())
1768	}
1769	yyj11++
1770	if yyhl11 {
1771		yyb11 = yyj11 > l
1772	} else {
1773		yyb11 = r.CheckBreak()
1774	}
1775	if yyb11 {
1776		r.ReadArrayEnd()
1777		return
1778	}
1779	r.ReadArrayElem()
1780	if r.TryDecodeAsNil() {
1781		x.FileMode = ""
1782	} else {
1783		x.FileMode = (string)(r.DecodeString())
1784	}
1785	yyj11++
1786	if yyhl11 {
1787		yyb11 = yyj11 > l
1788	} else {
1789		yyb11 = r.CheckBreak()
1790	}
1791	if yyb11 {
1792		r.ReadArrayEnd()
1793		return
1794	}
1795	r.ReadArrayElem()
1796	if r.TryDecodeAsNil() {
1797		x.ModTime = time.Time{}
1798	} else {
1799		if false {
1800		} else if !z.DecBasicHandle().TimeNotBuiltin {
1801			x.ModTime = r.DecodeTime()
1802		} else if yyxt17 := z.Extension(z.I2Rtid(x.ModTime)); yyxt17 != nil {
1803			z.DecExtension(x.ModTime, yyxt17)
1804		} else if z.DecBinary() {
1805			z.DecBinaryUnmarshal(&x.ModTime)
1806		} else if !z.DecBinary() && z.IsJSONHandle() {
1807			z.DecJSONUnmarshal(&x.ModTime)
1808		} else {
1809			z.DecFallback(&x.ModTime, false)
1810		}
1811	}
1812	yyj11++
1813	if yyhl11 {
1814		yyb11 = yyj11 > l
1815	} else {
1816		yyb11 = r.CheckBreak()
1817	}
1818	if yyb11 {
1819		r.ReadArrayEnd()
1820		return
1821	}
1822	r.ReadArrayElem()
1823	if r.TryDecodeAsNil() {
1824		x.ContentType = ""
1825	} else {
1826		x.ContentType = (string)(r.DecodeString())
1827	}
1828	for {
1829		yyj11++
1830		if yyhl11 {
1831			yyb11 = yyj11 > l
1832		} else {
1833			yyb11 = r.CheckBreak()
1834		}
1835		if yyb11 {
1836			break
1837		}
1838		r.ReadArrayElem()
1839		z.DecStructFieldNotFound(yyj11-1, "")
1840	}
1841	r.ReadArrayEnd()
1842}
1843
1844func (x *FsListRequest) CodecEncodeSelf(e *codec1978.Encoder) {
1845	var h codecSelfer102
1846	z, r := codec1978.GenHelperEncoder(e)
1847	_, _, _ = h, z, r
1848	if x == nil {
1849		r.EncodeNil()
1850	} else {
1851		if false {
1852		} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
1853			z.EncExtension(x, yyxt1)
1854		} else {
1855			yysep2 := !z.EncBinary()
1856			yy2arr2 := z.EncBasicHandle().StructToArray
1857			_, _ = yysep2, yy2arr2
1858			const yyr2 bool = false // struct tag has 'toArray'
1859			if yyr2 || yy2arr2 {
1860				r.WriteArrayStart(12)
1861			} else {
1862				r.WriteMapStart(12)
1863			}
1864			if yyr2 || yy2arr2 {
1865				r.WriteArrayElem()
1866				if false {
1867				} else {
1868					if z.EncBasicHandle().StringToRaw {
1869						r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID)))
1870					} else {
1871						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AllocID))
1872					}
1873				}
1874			} else {
1875				r.WriteMapElemKey()
1876				if z.IsJSONHandle() {
1877					z.WriteStr("\"AllocID\"")
1878				} else {
1879					r.EncodeStringEnc(codecSelferCcUTF8102, `AllocID`)
1880				}
1881				r.WriteMapElemValue()
1882				if false {
1883				} else {
1884					if z.EncBasicHandle().StringToRaw {
1885						r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID)))
1886					} else {
1887						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AllocID))
1888					}
1889				}
1890			}
1891			if yyr2 || yy2arr2 {
1892				r.WriteArrayElem()
1893				if false {
1894				} else {
1895					if z.EncBasicHandle().StringToRaw {
1896						r.EncodeStringBytesRaw(z.BytesView(string(x.Path)))
1897					} else {
1898						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Path))
1899					}
1900				}
1901			} else {
1902				r.WriteMapElemKey()
1903				if z.IsJSONHandle() {
1904					z.WriteStr("\"Path\"")
1905				} else {
1906					r.EncodeStringEnc(codecSelferCcUTF8102, `Path`)
1907				}
1908				r.WriteMapElemValue()
1909				if false {
1910				} else {
1911					if z.EncBasicHandle().StringToRaw {
1912						r.EncodeStringBytesRaw(z.BytesView(string(x.Path)))
1913					} else {
1914						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Path))
1915					}
1916				}
1917			}
1918			if yyr2 || yy2arr2 {
1919				r.WriteArrayElem()
1920				if false {
1921				} else {
1922					if z.EncBasicHandle().StringToRaw {
1923						r.EncodeStringBytesRaw(z.BytesView(string(x.Region)))
1924					} else {
1925						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Region))
1926					}
1927				}
1928			} else {
1929				r.WriteMapElemKey()
1930				if z.IsJSONHandle() {
1931					z.WriteStr("\"Region\"")
1932				} else {
1933					r.EncodeStringEnc(codecSelferCcUTF8102, `Region`)
1934				}
1935				r.WriteMapElemValue()
1936				if false {
1937				} else {
1938					if z.EncBasicHandle().StringToRaw {
1939						r.EncodeStringBytesRaw(z.BytesView(string(x.Region)))
1940					} else {
1941						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Region))
1942					}
1943				}
1944			}
1945			if yyr2 || yy2arr2 {
1946				r.WriteArrayElem()
1947				if false {
1948				} else {
1949					if z.EncBasicHandle().StringToRaw {
1950						r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace)))
1951					} else {
1952						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Namespace))
1953					}
1954				}
1955			} else {
1956				r.WriteMapElemKey()
1957				if z.IsJSONHandle() {
1958					z.WriteStr("\"Namespace\"")
1959				} else {
1960					r.EncodeStringEnc(codecSelferCcUTF8102, `Namespace`)
1961				}
1962				r.WriteMapElemValue()
1963				if false {
1964				} else {
1965					if z.EncBasicHandle().StringToRaw {
1966						r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace)))
1967					} else {
1968						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Namespace))
1969					}
1970				}
1971			}
1972			if yyr2 || yy2arr2 {
1973				r.WriteArrayElem()
1974				if false {
1975				} else {
1976					r.EncodeUint(uint64(x.MinQueryIndex))
1977				}
1978			} else {
1979				r.WriteMapElemKey()
1980				if z.IsJSONHandle() {
1981					z.WriteStr("\"MinQueryIndex\"")
1982				} else {
1983					r.EncodeStringEnc(codecSelferCcUTF8102, `MinQueryIndex`)
1984				}
1985				r.WriteMapElemValue()
1986				if false {
1987				} else {
1988					r.EncodeUint(uint64(x.MinQueryIndex))
1989				}
1990			}
1991			if yyr2 || yy2arr2 {
1992				r.WriteArrayElem()
1993				if false {
1994				} else if yyxt19 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt19 != nil {
1995					z.EncExtension(x.MaxQueryTime, yyxt19)
1996				} else {
1997					r.EncodeInt(int64(x.MaxQueryTime))
1998				}
1999			} else {
2000				r.WriteMapElemKey()
2001				if z.IsJSONHandle() {
2002					z.WriteStr("\"MaxQueryTime\"")
2003				} else {
2004					r.EncodeStringEnc(codecSelferCcUTF8102, `MaxQueryTime`)
2005				}
2006				r.WriteMapElemValue()
2007				if false {
2008				} else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil {
2009					z.EncExtension(x.MaxQueryTime, yyxt20)
2010				} else {
2011					r.EncodeInt(int64(x.MaxQueryTime))
2012				}
2013			}
2014			if yyr2 || yy2arr2 {
2015				r.WriteArrayElem()
2016				if false {
2017				} else {
2018					r.EncodeBool(bool(x.AllowStale))
2019				}
2020			} else {
2021				r.WriteMapElemKey()
2022				if z.IsJSONHandle() {
2023					z.WriteStr("\"AllowStale\"")
2024				} else {
2025					r.EncodeStringEnc(codecSelferCcUTF8102, `AllowStale`)
2026				}
2027				r.WriteMapElemValue()
2028				if false {
2029				} else {
2030					r.EncodeBool(bool(x.AllowStale))
2031				}
2032			}
2033			if yyr2 || yy2arr2 {
2034				r.WriteArrayElem()
2035				if false {
2036				} else {
2037					if z.EncBasicHandle().StringToRaw {
2038						r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix)))
2039					} else {
2040						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Prefix))
2041					}
2042				}
2043			} else {
2044				r.WriteMapElemKey()
2045				if z.IsJSONHandle() {
2046					z.WriteStr("\"Prefix\"")
2047				} else {
2048					r.EncodeStringEnc(codecSelferCcUTF8102, `Prefix`)
2049				}
2050				r.WriteMapElemValue()
2051				if false {
2052				} else {
2053					if z.EncBasicHandle().StringToRaw {
2054						r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix)))
2055					} else {
2056						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Prefix))
2057					}
2058				}
2059			}
2060			if yyr2 || yy2arr2 {
2061				r.WriteArrayElem()
2062				if false {
2063				} else {
2064					if z.EncBasicHandle().StringToRaw {
2065						r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken)))
2066					} else {
2067						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AuthToken))
2068					}
2069				}
2070			} else {
2071				r.WriteMapElemKey()
2072				if z.IsJSONHandle() {
2073					z.WriteStr("\"AuthToken\"")
2074				} else {
2075					r.EncodeStringEnc(codecSelferCcUTF8102, `AuthToken`)
2076				}
2077				r.WriteMapElemValue()
2078				if false {
2079				} else {
2080					if z.EncBasicHandle().StringToRaw {
2081						r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken)))
2082					} else {
2083						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AuthToken))
2084					}
2085				}
2086			}
2087			if yyr2 || yy2arr2 {
2088				r.WriteArrayElem()
2089				if false {
2090				} else {
2091					r.EncodeInt(int64(x.PerPage))
2092				}
2093			} else {
2094				r.WriteMapElemKey()
2095				if z.IsJSONHandle() {
2096					z.WriteStr("\"PerPage\"")
2097				} else {
2098					r.EncodeStringEnc(codecSelferCcUTF8102, `PerPage`)
2099				}
2100				r.WriteMapElemValue()
2101				if false {
2102				} else {
2103					r.EncodeInt(int64(x.PerPage))
2104				}
2105			}
2106			if yyr2 || yy2arr2 {
2107				r.WriteArrayElem()
2108				if false {
2109				} else {
2110					if z.EncBasicHandle().StringToRaw {
2111						r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken)))
2112					} else {
2113						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.NextToken))
2114					}
2115				}
2116			} else {
2117				r.WriteMapElemKey()
2118				if z.IsJSONHandle() {
2119					z.WriteStr("\"NextToken\"")
2120				} else {
2121					r.EncodeStringEnc(codecSelferCcUTF8102, `NextToken`)
2122				}
2123				r.WriteMapElemValue()
2124				if false {
2125				} else {
2126					if z.EncBasicHandle().StringToRaw {
2127						r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken)))
2128					} else {
2129						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.NextToken))
2130					}
2131				}
2132			}
2133			if yyr2 || yy2arr2 {
2134				r.WriteArrayElem()
2135				if false {
2136				} else {
2137					r.EncodeBool(bool(x.Forwarded))
2138				}
2139			} else {
2140				r.WriteMapElemKey()
2141				if z.IsJSONHandle() {
2142					z.WriteStr("\"Forwarded\"")
2143				} else {
2144					r.EncodeStringEnc(codecSelferCcUTF8102, `Forwarded`)
2145				}
2146				r.WriteMapElemValue()
2147				if false {
2148				} else {
2149					r.EncodeBool(bool(x.Forwarded))
2150				}
2151			}
2152			if yyr2 || yy2arr2 {
2153				r.WriteArrayEnd()
2154			} else {
2155				r.WriteMapEnd()
2156			}
2157		}
2158	}
2159}
2160
2161func (x *FsListRequest) CodecDecodeSelf(d *codec1978.Decoder) {
2162	var h codecSelfer102
2163	z, r := codec1978.GenHelperDecoder(d)
2164	_, _, _ = h, z, r
2165	if false {
2166	} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
2167		z.DecExtension(x, yyxt1)
2168	} else {
2169		yyct2 := r.ContainerType()
2170		if yyct2 == codecSelferValueTypeMap102 {
2171			yyl2 := r.ReadMapStart()
2172			if yyl2 == 0 {
2173				r.ReadMapEnd()
2174			} else {
2175				x.codecDecodeSelfFromMap(yyl2, d)
2176			}
2177		} else if yyct2 == codecSelferValueTypeArray102 {
2178			yyl2 := r.ReadArrayStart()
2179			if yyl2 == 0 {
2180				r.ReadArrayEnd()
2181			} else {
2182				x.codecDecodeSelfFromArray(yyl2, d)
2183			}
2184		} else {
2185			panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102)
2186		}
2187	}
2188}
2189
2190func (x *FsListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
2191	var h codecSelfer102
2192	z, r := codec1978.GenHelperDecoder(d)
2193	_, _, _ = h, z, r
2194	var yyhl3 bool = l >= 0
2195	for yyj3 := 0; ; yyj3++ {
2196		if yyhl3 {
2197			if yyj3 >= l {
2198				break
2199			}
2200		} else {
2201			if r.CheckBreak() {
2202				break
2203			}
2204		}
2205		r.ReadMapElemKey()
2206		yys3 := z.StringView(r.DecodeStringAsBytes())
2207		r.ReadMapElemValue()
2208		switch yys3 {
2209		case "AllocID":
2210			if r.TryDecodeAsNil() {
2211				x.AllocID = ""
2212			} else {
2213				x.AllocID = (string)(r.DecodeString())
2214			}
2215		case "Path":
2216			if r.TryDecodeAsNil() {
2217				x.Path = ""
2218			} else {
2219				x.Path = (string)(r.DecodeString())
2220			}
2221		case "Region":
2222			if r.TryDecodeAsNil() {
2223				x.QueryOptions.Region = ""
2224			} else {
2225				x.Region = (string)(r.DecodeString())
2226			}
2227		case "Namespace":
2228			if r.TryDecodeAsNil() {
2229				x.QueryOptions.Namespace = ""
2230			} else {
2231				x.Namespace = (string)(r.DecodeString())
2232			}
2233		case "MinQueryIndex":
2234			if r.TryDecodeAsNil() {
2235				x.QueryOptions.MinQueryIndex = 0
2236			} else {
2237				x.MinQueryIndex = (uint64)(r.DecodeUint64())
2238			}
2239		case "MaxQueryTime":
2240			if r.TryDecodeAsNil() {
2241				x.QueryOptions.MaxQueryTime = 0
2242			} else {
2243				if false {
2244				} else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil {
2245					z.DecExtension(x.MaxQueryTime, yyxt10)
2246				} else {
2247					x.MaxQueryTime = (time.Duration)(r.DecodeInt64())
2248				}
2249			}
2250		case "AllowStale":
2251			if r.TryDecodeAsNil() {
2252				x.QueryOptions.AllowStale = false
2253			} else {
2254				x.AllowStale = (bool)(r.DecodeBool())
2255			}
2256		case "Prefix":
2257			if r.TryDecodeAsNil() {
2258				x.QueryOptions.Prefix = ""
2259			} else {
2260				x.Prefix = (string)(r.DecodeString())
2261			}
2262		case "AuthToken":
2263			if r.TryDecodeAsNil() {
2264				x.QueryOptions.AuthToken = ""
2265			} else {
2266				x.AuthToken = (string)(r.DecodeString())
2267			}
2268		case "PerPage":
2269			if r.TryDecodeAsNil() {
2270				x.QueryOptions.PerPage = 0
2271			} else {
2272				x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32))
2273			}
2274		case "NextToken":
2275			if r.TryDecodeAsNil() {
2276				x.QueryOptions.NextToken = ""
2277			} else {
2278				x.NextToken = (string)(r.DecodeString())
2279			}
2280		case "Forwarded":
2281			if r.TryDecodeAsNil() {
2282				x.QueryOptions.InternalRpcInfo.Forwarded = false
2283			} else {
2284				x.Forwarded = (bool)(r.DecodeBool())
2285			}
2286		default:
2287			z.DecStructFieldNotFound(-1, yys3)
2288		} // end switch yys3
2289	} // end for yyj3
2290	r.ReadMapEnd()
2291}
2292
2293func (x *FsListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
2294	var h codecSelfer102
2295	z, r := codec1978.GenHelperDecoder(d)
2296	_, _, _ = h, z, r
2297	var yyj17 int
2298	var yyb17 bool
2299	var yyhl17 bool = l >= 0
2300	yyj17++
2301	if yyhl17 {
2302		yyb17 = yyj17 > l
2303	} else {
2304		yyb17 = r.CheckBreak()
2305	}
2306	if yyb17 {
2307		r.ReadArrayEnd()
2308		return
2309	}
2310	r.ReadArrayElem()
2311	if r.TryDecodeAsNil() {
2312		x.AllocID = ""
2313	} else {
2314		x.AllocID = (string)(r.DecodeString())
2315	}
2316	yyj17++
2317	if yyhl17 {
2318		yyb17 = yyj17 > l
2319	} else {
2320		yyb17 = r.CheckBreak()
2321	}
2322	if yyb17 {
2323		r.ReadArrayEnd()
2324		return
2325	}
2326	r.ReadArrayElem()
2327	if r.TryDecodeAsNil() {
2328		x.Path = ""
2329	} else {
2330		x.Path = (string)(r.DecodeString())
2331	}
2332	yyj17++
2333	if yyhl17 {
2334		yyb17 = yyj17 > l
2335	} else {
2336		yyb17 = r.CheckBreak()
2337	}
2338	if yyb17 {
2339		r.ReadArrayEnd()
2340		return
2341	}
2342	r.ReadArrayElem()
2343	if r.TryDecodeAsNil() {
2344		x.QueryOptions.Region = ""
2345	} else {
2346		x.Region = (string)(r.DecodeString())
2347	}
2348	yyj17++
2349	if yyhl17 {
2350		yyb17 = yyj17 > l
2351	} else {
2352		yyb17 = r.CheckBreak()
2353	}
2354	if yyb17 {
2355		r.ReadArrayEnd()
2356		return
2357	}
2358	r.ReadArrayElem()
2359	if r.TryDecodeAsNil() {
2360		x.QueryOptions.Namespace = ""
2361	} else {
2362		x.Namespace = (string)(r.DecodeString())
2363	}
2364	yyj17++
2365	if yyhl17 {
2366		yyb17 = yyj17 > l
2367	} else {
2368		yyb17 = r.CheckBreak()
2369	}
2370	if yyb17 {
2371		r.ReadArrayEnd()
2372		return
2373	}
2374	r.ReadArrayElem()
2375	if r.TryDecodeAsNil() {
2376		x.QueryOptions.MinQueryIndex = 0
2377	} else {
2378		x.MinQueryIndex = (uint64)(r.DecodeUint64())
2379	}
2380	yyj17++
2381	if yyhl17 {
2382		yyb17 = yyj17 > l
2383	} else {
2384		yyb17 = r.CheckBreak()
2385	}
2386	if yyb17 {
2387		r.ReadArrayEnd()
2388		return
2389	}
2390	r.ReadArrayElem()
2391	if r.TryDecodeAsNil() {
2392		x.QueryOptions.MaxQueryTime = 0
2393	} else {
2394		if false {
2395		} else if yyxt24 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt24 != nil {
2396			z.DecExtension(x.MaxQueryTime, yyxt24)
2397		} else {
2398			x.MaxQueryTime = (time.Duration)(r.DecodeInt64())
2399		}
2400	}
2401	yyj17++
2402	if yyhl17 {
2403		yyb17 = yyj17 > l
2404	} else {
2405		yyb17 = r.CheckBreak()
2406	}
2407	if yyb17 {
2408		r.ReadArrayEnd()
2409		return
2410	}
2411	r.ReadArrayElem()
2412	if r.TryDecodeAsNil() {
2413		x.QueryOptions.AllowStale = false
2414	} else {
2415		x.AllowStale = (bool)(r.DecodeBool())
2416	}
2417	yyj17++
2418	if yyhl17 {
2419		yyb17 = yyj17 > l
2420	} else {
2421		yyb17 = r.CheckBreak()
2422	}
2423	if yyb17 {
2424		r.ReadArrayEnd()
2425		return
2426	}
2427	r.ReadArrayElem()
2428	if r.TryDecodeAsNil() {
2429		x.QueryOptions.Prefix = ""
2430	} else {
2431		x.Prefix = (string)(r.DecodeString())
2432	}
2433	yyj17++
2434	if yyhl17 {
2435		yyb17 = yyj17 > l
2436	} else {
2437		yyb17 = r.CheckBreak()
2438	}
2439	if yyb17 {
2440		r.ReadArrayEnd()
2441		return
2442	}
2443	r.ReadArrayElem()
2444	if r.TryDecodeAsNil() {
2445		x.QueryOptions.AuthToken = ""
2446	} else {
2447		x.AuthToken = (string)(r.DecodeString())
2448	}
2449	yyj17++
2450	if yyhl17 {
2451		yyb17 = yyj17 > l
2452	} else {
2453		yyb17 = r.CheckBreak()
2454	}
2455	if yyb17 {
2456		r.ReadArrayEnd()
2457		return
2458	}
2459	r.ReadArrayElem()
2460	if r.TryDecodeAsNil() {
2461		x.QueryOptions.PerPage = 0
2462	} else {
2463		x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32))
2464	}
2465	yyj17++
2466	if yyhl17 {
2467		yyb17 = yyj17 > l
2468	} else {
2469		yyb17 = r.CheckBreak()
2470	}
2471	if yyb17 {
2472		r.ReadArrayEnd()
2473		return
2474	}
2475	r.ReadArrayElem()
2476	if r.TryDecodeAsNil() {
2477		x.QueryOptions.NextToken = ""
2478	} else {
2479		x.NextToken = (string)(r.DecodeString())
2480	}
2481	yyj17++
2482	if yyhl17 {
2483		yyb17 = yyj17 > l
2484	} else {
2485		yyb17 = r.CheckBreak()
2486	}
2487	if yyb17 {
2488		r.ReadArrayEnd()
2489		return
2490	}
2491	r.ReadArrayElem()
2492	if r.TryDecodeAsNil() {
2493		x.QueryOptions.InternalRpcInfo.Forwarded = false
2494	} else {
2495		x.Forwarded = (bool)(r.DecodeBool())
2496	}
2497	for {
2498		yyj17++
2499		if yyhl17 {
2500			yyb17 = yyj17 > l
2501		} else {
2502			yyb17 = r.CheckBreak()
2503		}
2504		if yyb17 {
2505			break
2506		}
2507		r.ReadArrayElem()
2508		z.DecStructFieldNotFound(yyj17-1, "")
2509	}
2510	r.ReadArrayEnd()
2511}
2512
2513func (x *FsListResponse) CodecEncodeSelf(e *codec1978.Encoder) {
2514	var h codecSelfer102
2515	z, r := codec1978.GenHelperEncoder(e)
2516	_, _, _ = h, z, r
2517	if x == nil {
2518		r.EncodeNil()
2519	} else {
2520		if false {
2521		} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
2522			z.EncExtension(x, yyxt1)
2523		} else {
2524			yysep2 := !z.EncBinary()
2525			yy2arr2 := z.EncBasicHandle().StructToArray
2526			_, _ = yysep2, yy2arr2
2527			const yyr2 bool = false // struct tag has 'toArray'
2528			if yyr2 || yy2arr2 {
2529				r.WriteArrayStart(4)
2530			} else {
2531				r.WriteMapStart(4)
2532			}
2533			if yyr2 || yy2arr2 {
2534				r.WriteArrayElem()
2535				if x.Files == nil {
2536					r.EncodeNil()
2537				} else {
2538					if false {
2539					} else {
2540						h.encSlicePtrtoAllocFileInfo(([]*AllocFileInfo)(x.Files), e)
2541					}
2542				}
2543			} else {
2544				r.WriteMapElemKey()
2545				if z.IsJSONHandle() {
2546					z.WriteStr("\"Files\"")
2547				} else {
2548					r.EncodeStringEnc(codecSelferCcUTF8102, `Files`)
2549				}
2550				r.WriteMapElemValue()
2551				if x.Files == nil {
2552					r.EncodeNil()
2553				} else {
2554					if false {
2555					} else {
2556						h.encSlicePtrtoAllocFileInfo(([]*AllocFileInfo)(x.Files), e)
2557					}
2558				}
2559			}
2560			if yyr2 || yy2arr2 {
2561				r.WriteArrayElem()
2562				if false {
2563				} else {
2564					r.EncodeUint(uint64(x.Index))
2565				}
2566			} else {
2567				r.WriteMapElemKey()
2568				if z.IsJSONHandle() {
2569					z.WriteStr("\"Index\"")
2570				} else {
2571					r.EncodeStringEnc(codecSelferCcUTF8102, `Index`)
2572				}
2573				r.WriteMapElemValue()
2574				if false {
2575				} else {
2576					r.EncodeUint(uint64(x.Index))
2577				}
2578			}
2579			if yyr2 || yy2arr2 {
2580				r.WriteArrayElem()
2581				if false {
2582				} else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil {
2583					z.EncExtension(x.LastContact, yyxt10)
2584				} else {
2585					r.EncodeInt(int64(x.LastContact))
2586				}
2587			} else {
2588				r.WriteMapElemKey()
2589				if z.IsJSONHandle() {
2590					z.WriteStr("\"LastContact\"")
2591				} else {
2592					r.EncodeStringEnc(codecSelferCcUTF8102, `LastContact`)
2593				}
2594				r.WriteMapElemValue()
2595				if false {
2596				} else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil {
2597					z.EncExtension(x.LastContact, yyxt11)
2598				} else {
2599					r.EncodeInt(int64(x.LastContact))
2600				}
2601			}
2602			if yyr2 || yy2arr2 {
2603				r.WriteArrayElem()
2604				if false {
2605				} else {
2606					r.EncodeBool(bool(x.KnownLeader))
2607				}
2608			} else {
2609				r.WriteMapElemKey()
2610				if z.IsJSONHandle() {
2611					z.WriteStr("\"KnownLeader\"")
2612				} else {
2613					r.EncodeStringEnc(codecSelferCcUTF8102, `KnownLeader`)
2614				}
2615				r.WriteMapElemValue()
2616				if false {
2617				} else {
2618					r.EncodeBool(bool(x.KnownLeader))
2619				}
2620			}
2621			if yyr2 || yy2arr2 {
2622				r.WriteArrayEnd()
2623			} else {
2624				r.WriteMapEnd()
2625			}
2626		}
2627	}
2628}
2629
2630func (x *FsListResponse) CodecDecodeSelf(d *codec1978.Decoder) {
2631	var h codecSelfer102
2632	z, r := codec1978.GenHelperDecoder(d)
2633	_, _, _ = h, z, r
2634	if false {
2635	} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
2636		z.DecExtension(x, yyxt1)
2637	} else {
2638		yyct2 := r.ContainerType()
2639		if yyct2 == codecSelferValueTypeMap102 {
2640			yyl2 := r.ReadMapStart()
2641			if yyl2 == 0 {
2642				r.ReadMapEnd()
2643			} else {
2644				x.codecDecodeSelfFromMap(yyl2, d)
2645			}
2646		} else if yyct2 == codecSelferValueTypeArray102 {
2647			yyl2 := r.ReadArrayStart()
2648			if yyl2 == 0 {
2649				r.ReadArrayEnd()
2650			} else {
2651				x.codecDecodeSelfFromArray(yyl2, d)
2652			}
2653		} else {
2654			panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102)
2655		}
2656	}
2657}
2658
2659func (x *FsListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
2660	var h codecSelfer102
2661	z, r := codec1978.GenHelperDecoder(d)
2662	_, _, _ = h, z, r
2663	var yyhl3 bool = l >= 0
2664	for yyj3 := 0; ; yyj3++ {
2665		if yyhl3 {
2666			if yyj3 >= l {
2667				break
2668			}
2669		} else {
2670			if r.CheckBreak() {
2671				break
2672			}
2673		}
2674		r.ReadMapElemKey()
2675		yys3 := z.StringView(r.DecodeStringAsBytes())
2676		r.ReadMapElemValue()
2677		switch yys3 {
2678		case "Files":
2679			if r.TryDecodeAsNil() {
2680				x.Files = nil
2681			} else {
2682				if false {
2683				} else {
2684					h.decSlicePtrtoAllocFileInfo((*[]*AllocFileInfo)(&x.Files), d)
2685				}
2686			}
2687		case "Index":
2688			if r.TryDecodeAsNil() {
2689				x.QueryMeta.Index = 0
2690			} else {
2691				x.Index = (uint64)(r.DecodeUint64())
2692			}
2693		case "LastContact":
2694			if r.TryDecodeAsNil() {
2695				x.QueryMeta.LastContact = 0
2696			} else {
2697				if false {
2698				} else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil {
2699					z.DecExtension(x.LastContact, yyxt8)
2700				} else {
2701					x.LastContact = (time.Duration)(r.DecodeInt64())
2702				}
2703			}
2704		case "KnownLeader":
2705			if r.TryDecodeAsNil() {
2706				x.QueryMeta.KnownLeader = false
2707			} else {
2708				x.KnownLeader = (bool)(r.DecodeBool())
2709			}
2710		default:
2711			z.DecStructFieldNotFound(-1, yys3)
2712		} // end switch yys3
2713	} // end for yyj3
2714	r.ReadMapEnd()
2715}
2716
2717func (x *FsListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
2718	var h codecSelfer102
2719	z, r := codec1978.GenHelperDecoder(d)
2720	_, _, _ = h, z, r
2721	var yyj10 int
2722	var yyb10 bool
2723	var yyhl10 bool = l >= 0
2724	yyj10++
2725	if yyhl10 {
2726		yyb10 = yyj10 > l
2727	} else {
2728		yyb10 = r.CheckBreak()
2729	}
2730	if yyb10 {
2731		r.ReadArrayEnd()
2732		return
2733	}
2734	r.ReadArrayElem()
2735	if r.TryDecodeAsNil() {
2736		x.Files = nil
2737	} else {
2738		if false {
2739		} else {
2740			h.decSlicePtrtoAllocFileInfo((*[]*AllocFileInfo)(&x.Files), d)
2741		}
2742	}
2743	yyj10++
2744	if yyhl10 {
2745		yyb10 = yyj10 > l
2746	} else {
2747		yyb10 = r.CheckBreak()
2748	}
2749	if yyb10 {
2750		r.ReadArrayEnd()
2751		return
2752	}
2753	r.ReadArrayElem()
2754	if r.TryDecodeAsNil() {
2755		x.QueryMeta.Index = 0
2756	} else {
2757		x.Index = (uint64)(r.DecodeUint64())
2758	}
2759	yyj10++
2760	if yyhl10 {
2761		yyb10 = yyj10 > l
2762	} else {
2763		yyb10 = r.CheckBreak()
2764	}
2765	if yyb10 {
2766		r.ReadArrayEnd()
2767		return
2768	}
2769	r.ReadArrayElem()
2770	if r.TryDecodeAsNil() {
2771		x.QueryMeta.LastContact = 0
2772	} else {
2773		if false {
2774		} else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil {
2775			z.DecExtension(x.LastContact, yyxt15)
2776		} else {
2777			x.LastContact = (time.Duration)(r.DecodeInt64())
2778		}
2779	}
2780	yyj10++
2781	if yyhl10 {
2782		yyb10 = yyj10 > l
2783	} else {
2784		yyb10 = r.CheckBreak()
2785	}
2786	if yyb10 {
2787		r.ReadArrayEnd()
2788		return
2789	}
2790	r.ReadArrayElem()
2791	if r.TryDecodeAsNil() {
2792		x.QueryMeta.KnownLeader = false
2793	} else {
2794		x.KnownLeader = (bool)(r.DecodeBool())
2795	}
2796	for {
2797		yyj10++
2798		if yyhl10 {
2799			yyb10 = yyj10 > l
2800		} else {
2801			yyb10 = r.CheckBreak()
2802		}
2803		if yyb10 {
2804			break
2805		}
2806		r.ReadArrayElem()
2807		z.DecStructFieldNotFound(yyj10-1, "")
2808	}
2809	r.ReadArrayEnd()
2810}
2811
2812func (x *FsStatRequest) CodecEncodeSelf(e *codec1978.Encoder) {
2813	var h codecSelfer102
2814	z, r := codec1978.GenHelperEncoder(e)
2815	_, _, _ = h, z, r
2816	if x == nil {
2817		r.EncodeNil()
2818	} else {
2819		if false {
2820		} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
2821			z.EncExtension(x, yyxt1)
2822		} else {
2823			yysep2 := !z.EncBinary()
2824			yy2arr2 := z.EncBasicHandle().StructToArray
2825			_, _ = yysep2, yy2arr2
2826			const yyr2 bool = false // struct tag has 'toArray'
2827			if yyr2 || yy2arr2 {
2828				r.WriteArrayStart(12)
2829			} else {
2830				r.WriteMapStart(12)
2831			}
2832			if yyr2 || yy2arr2 {
2833				r.WriteArrayElem()
2834				if false {
2835				} else {
2836					if z.EncBasicHandle().StringToRaw {
2837						r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID)))
2838					} else {
2839						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AllocID))
2840					}
2841				}
2842			} else {
2843				r.WriteMapElemKey()
2844				if z.IsJSONHandle() {
2845					z.WriteStr("\"AllocID\"")
2846				} else {
2847					r.EncodeStringEnc(codecSelferCcUTF8102, `AllocID`)
2848				}
2849				r.WriteMapElemValue()
2850				if false {
2851				} else {
2852					if z.EncBasicHandle().StringToRaw {
2853						r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID)))
2854					} else {
2855						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AllocID))
2856					}
2857				}
2858			}
2859			if yyr2 || yy2arr2 {
2860				r.WriteArrayElem()
2861				if false {
2862				} else {
2863					if z.EncBasicHandle().StringToRaw {
2864						r.EncodeStringBytesRaw(z.BytesView(string(x.Path)))
2865					} else {
2866						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Path))
2867					}
2868				}
2869			} else {
2870				r.WriteMapElemKey()
2871				if z.IsJSONHandle() {
2872					z.WriteStr("\"Path\"")
2873				} else {
2874					r.EncodeStringEnc(codecSelferCcUTF8102, `Path`)
2875				}
2876				r.WriteMapElemValue()
2877				if false {
2878				} else {
2879					if z.EncBasicHandle().StringToRaw {
2880						r.EncodeStringBytesRaw(z.BytesView(string(x.Path)))
2881					} else {
2882						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Path))
2883					}
2884				}
2885			}
2886			if yyr2 || yy2arr2 {
2887				r.WriteArrayElem()
2888				if false {
2889				} else {
2890					if z.EncBasicHandle().StringToRaw {
2891						r.EncodeStringBytesRaw(z.BytesView(string(x.Region)))
2892					} else {
2893						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Region))
2894					}
2895				}
2896			} else {
2897				r.WriteMapElemKey()
2898				if z.IsJSONHandle() {
2899					z.WriteStr("\"Region\"")
2900				} else {
2901					r.EncodeStringEnc(codecSelferCcUTF8102, `Region`)
2902				}
2903				r.WriteMapElemValue()
2904				if false {
2905				} else {
2906					if z.EncBasicHandle().StringToRaw {
2907						r.EncodeStringBytesRaw(z.BytesView(string(x.Region)))
2908					} else {
2909						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Region))
2910					}
2911				}
2912			}
2913			if yyr2 || yy2arr2 {
2914				r.WriteArrayElem()
2915				if false {
2916				} else {
2917					if z.EncBasicHandle().StringToRaw {
2918						r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace)))
2919					} else {
2920						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Namespace))
2921					}
2922				}
2923			} else {
2924				r.WriteMapElemKey()
2925				if z.IsJSONHandle() {
2926					z.WriteStr("\"Namespace\"")
2927				} else {
2928					r.EncodeStringEnc(codecSelferCcUTF8102, `Namespace`)
2929				}
2930				r.WriteMapElemValue()
2931				if false {
2932				} else {
2933					if z.EncBasicHandle().StringToRaw {
2934						r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace)))
2935					} else {
2936						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Namespace))
2937					}
2938				}
2939			}
2940			if yyr2 || yy2arr2 {
2941				r.WriteArrayElem()
2942				if false {
2943				} else {
2944					r.EncodeUint(uint64(x.MinQueryIndex))
2945				}
2946			} else {
2947				r.WriteMapElemKey()
2948				if z.IsJSONHandle() {
2949					z.WriteStr("\"MinQueryIndex\"")
2950				} else {
2951					r.EncodeStringEnc(codecSelferCcUTF8102, `MinQueryIndex`)
2952				}
2953				r.WriteMapElemValue()
2954				if false {
2955				} else {
2956					r.EncodeUint(uint64(x.MinQueryIndex))
2957				}
2958			}
2959			if yyr2 || yy2arr2 {
2960				r.WriteArrayElem()
2961				if false {
2962				} else if yyxt19 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt19 != nil {
2963					z.EncExtension(x.MaxQueryTime, yyxt19)
2964				} else {
2965					r.EncodeInt(int64(x.MaxQueryTime))
2966				}
2967			} else {
2968				r.WriteMapElemKey()
2969				if z.IsJSONHandle() {
2970					z.WriteStr("\"MaxQueryTime\"")
2971				} else {
2972					r.EncodeStringEnc(codecSelferCcUTF8102, `MaxQueryTime`)
2973				}
2974				r.WriteMapElemValue()
2975				if false {
2976				} else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil {
2977					z.EncExtension(x.MaxQueryTime, yyxt20)
2978				} else {
2979					r.EncodeInt(int64(x.MaxQueryTime))
2980				}
2981			}
2982			if yyr2 || yy2arr2 {
2983				r.WriteArrayElem()
2984				if false {
2985				} else {
2986					r.EncodeBool(bool(x.AllowStale))
2987				}
2988			} else {
2989				r.WriteMapElemKey()
2990				if z.IsJSONHandle() {
2991					z.WriteStr("\"AllowStale\"")
2992				} else {
2993					r.EncodeStringEnc(codecSelferCcUTF8102, `AllowStale`)
2994				}
2995				r.WriteMapElemValue()
2996				if false {
2997				} else {
2998					r.EncodeBool(bool(x.AllowStale))
2999				}
3000			}
3001			if yyr2 || yy2arr2 {
3002				r.WriteArrayElem()
3003				if false {
3004				} else {
3005					if z.EncBasicHandle().StringToRaw {
3006						r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix)))
3007					} else {
3008						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Prefix))
3009					}
3010				}
3011			} else {
3012				r.WriteMapElemKey()
3013				if z.IsJSONHandle() {
3014					z.WriteStr("\"Prefix\"")
3015				} else {
3016					r.EncodeStringEnc(codecSelferCcUTF8102, `Prefix`)
3017				}
3018				r.WriteMapElemValue()
3019				if false {
3020				} else {
3021					if z.EncBasicHandle().StringToRaw {
3022						r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix)))
3023					} else {
3024						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Prefix))
3025					}
3026				}
3027			}
3028			if yyr2 || yy2arr2 {
3029				r.WriteArrayElem()
3030				if false {
3031				} else {
3032					if z.EncBasicHandle().StringToRaw {
3033						r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken)))
3034					} else {
3035						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AuthToken))
3036					}
3037				}
3038			} else {
3039				r.WriteMapElemKey()
3040				if z.IsJSONHandle() {
3041					z.WriteStr("\"AuthToken\"")
3042				} else {
3043					r.EncodeStringEnc(codecSelferCcUTF8102, `AuthToken`)
3044				}
3045				r.WriteMapElemValue()
3046				if false {
3047				} else {
3048					if z.EncBasicHandle().StringToRaw {
3049						r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken)))
3050					} else {
3051						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AuthToken))
3052					}
3053				}
3054			}
3055			if yyr2 || yy2arr2 {
3056				r.WriteArrayElem()
3057				if false {
3058				} else {
3059					r.EncodeInt(int64(x.PerPage))
3060				}
3061			} else {
3062				r.WriteMapElemKey()
3063				if z.IsJSONHandle() {
3064					z.WriteStr("\"PerPage\"")
3065				} else {
3066					r.EncodeStringEnc(codecSelferCcUTF8102, `PerPage`)
3067				}
3068				r.WriteMapElemValue()
3069				if false {
3070				} else {
3071					r.EncodeInt(int64(x.PerPage))
3072				}
3073			}
3074			if yyr2 || yy2arr2 {
3075				r.WriteArrayElem()
3076				if false {
3077				} else {
3078					if z.EncBasicHandle().StringToRaw {
3079						r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken)))
3080					} else {
3081						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.NextToken))
3082					}
3083				}
3084			} else {
3085				r.WriteMapElemKey()
3086				if z.IsJSONHandle() {
3087					z.WriteStr("\"NextToken\"")
3088				} else {
3089					r.EncodeStringEnc(codecSelferCcUTF8102, `NextToken`)
3090				}
3091				r.WriteMapElemValue()
3092				if false {
3093				} else {
3094					if z.EncBasicHandle().StringToRaw {
3095						r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken)))
3096					} else {
3097						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.NextToken))
3098					}
3099				}
3100			}
3101			if yyr2 || yy2arr2 {
3102				r.WriteArrayElem()
3103				if false {
3104				} else {
3105					r.EncodeBool(bool(x.Forwarded))
3106				}
3107			} else {
3108				r.WriteMapElemKey()
3109				if z.IsJSONHandle() {
3110					z.WriteStr("\"Forwarded\"")
3111				} else {
3112					r.EncodeStringEnc(codecSelferCcUTF8102, `Forwarded`)
3113				}
3114				r.WriteMapElemValue()
3115				if false {
3116				} else {
3117					r.EncodeBool(bool(x.Forwarded))
3118				}
3119			}
3120			if yyr2 || yy2arr2 {
3121				r.WriteArrayEnd()
3122			} else {
3123				r.WriteMapEnd()
3124			}
3125		}
3126	}
3127}
3128
3129func (x *FsStatRequest) CodecDecodeSelf(d *codec1978.Decoder) {
3130	var h codecSelfer102
3131	z, r := codec1978.GenHelperDecoder(d)
3132	_, _, _ = h, z, r
3133	if false {
3134	} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
3135		z.DecExtension(x, yyxt1)
3136	} else {
3137		yyct2 := r.ContainerType()
3138		if yyct2 == codecSelferValueTypeMap102 {
3139			yyl2 := r.ReadMapStart()
3140			if yyl2 == 0 {
3141				r.ReadMapEnd()
3142			} else {
3143				x.codecDecodeSelfFromMap(yyl2, d)
3144			}
3145		} else if yyct2 == codecSelferValueTypeArray102 {
3146			yyl2 := r.ReadArrayStart()
3147			if yyl2 == 0 {
3148				r.ReadArrayEnd()
3149			} else {
3150				x.codecDecodeSelfFromArray(yyl2, d)
3151			}
3152		} else {
3153			panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102)
3154		}
3155	}
3156}
3157
3158func (x *FsStatRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
3159	var h codecSelfer102
3160	z, r := codec1978.GenHelperDecoder(d)
3161	_, _, _ = h, z, r
3162	var yyhl3 bool = l >= 0
3163	for yyj3 := 0; ; yyj3++ {
3164		if yyhl3 {
3165			if yyj3 >= l {
3166				break
3167			}
3168		} else {
3169			if r.CheckBreak() {
3170				break
3171			}
3172		}
3173		r.ReadMapElemKey()
3174		yys3 := z.StringView(r.DecodeStringAsBytes())
3175		r.ReadMapElemValue()
3176		switch yys3 {
3177		case "AllocID":
3178			if r.TryDecodeAsNil() {
3179				x.AllocID = ""
3180			} else {
3181				x.AllocID = (string)(r.DecodeString())
3182			}
3183		case "Path":
3184			if r.TryDecodeAsNil() {
3185				x.Path = ""
3186			} else {
3187				x.Path = (string)(r.DecodeString())
3188			}
3189		case "Region":
3190			if r.TryDecodeAsNil() {
3191				x.QueryOptions.Region = ""
3192			} else {
3193				x.Region = (string)(r.DecodeString())
3194			}
3195		case "Namespace":
3196			if r.TryDecodeAsNil() {
3197				x.QueryOptions.Namespace = ""
3198			} else {
3199				x.Namespace = (string)(r.DecodeString())
3200			}
3201		case "MinQueryIndex":
3202			if r.TryDecodeAsNil() {
3203				x.QueryOptions.MinQueryIndex = 0
3204			} else {
3205				x.MinQueryIndex = (uint64)(r.DecodeUint64())
3206			}
3207		case "MaxQueryTime":
3208			if r.TryDecodeAsNil() {
3209				x.QueryOptions.MaxQueryTime = 0
3210			} else {
3211				if false {
3212				} else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil {
3213					z.DecExtension(x.MaxQueryTime, yyxt10)
3214				} else {
3215					x.MaxQueryTime = (time.Duration)(r.DecodeInt64())
3216				}
3217			}
3218		case "AllowStale":
3219			if r.TryDecodeAsNil() {
3220				x.QueryOptions.AllowStale = false
3221			} else {
3222				x.AllowStale = (bool)(r.DecodeBool())
3223			}
3224		case "Prefix":
3225			if r.TryDecodeAsNil() {
3226				x.QueryOptions.Prefix = ""
3227			} else {
3228				x.Prefix = (string)(r.DecodeString())
3229			}
3230		case "AuthToken":
3231			if r.TryDecodeAsNil() {
3232				x.QueryOptions.AuthToken = ""
3233			} else {
3234				x.AuthToken = (string)(r.DecodeString())
3235			}
3236		case "PerPage":
3237			if r.TryDecodeAsNil() {
3238				x.QueryOptions.PerPage = 0
3239			} else {
3240				x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32))
3241			}
3242		case "NextToken":
3243			if r.TryDecodeAsNil() {
3244				x.QueryOptions.NextToken = ""
3245			} else {
3246				x.NextToken = (string)(r.DecodeString())
3247			}
3248		case "Forwarded":
3249			if r.TryDecodeAsNil() {
3250				x.QueryOptions.InternalRpcInfo.Forwarded = false
3251			} else {
3252				x.Forwarded = (bool)(r.DecodeBool())
3253			}
3254		default:
3255			z.DecStructFieldNotFound(-1, yys3)
3256		} // end switch yys3
3257	} // end for yyj3
3258	r.ReadMapEnd()
3259}
3260
3261func (x *FsStatRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
3262	var h codecSelfer102
3263	z, r := codec1978.GenHelperDecoder(d)
3264	_, _, _ = h, z, r
3265	var yyj17 int
3266	var yyb17 bool
3267	var yyhl17 bool = l >= 0
3268	yyj17++
3269	if yyhl17 {
3270		yyb17 = yyj17 > l
3271	} else {
3272		yyb17 = r.CheckBreak()
3273	}
3274	if yyb17 {
3275		r.ReadArrayEnd()
3276		return
3277	}
3278	r.ReadArrayElem()
3279	if r.TryDecodeAsNil() {
3280		x.AllocID = ""
3281	} else {
3282		x.AllocID = (string)(r.DecodeString())
3283	}
3284	yyj17++
3285	if yyhl17 {
3286		yyb17 = yyj17 > l
3287	} else {
3288		yyb17 = r.CheckBreak()
3289	}
3290	if yyb17 {
3291		r.ReadArrayEnd()
3292		return
3293	}
3294	r.ReadArrayElem()
3295	if r.TryDecodeAsNil() {
3296		x.Path = ""
3297	} else {
3298		x.Path = (string)(r.DecodeString())
3299	}
3300	yyj17++
3301	if yyhl17 {
3302		yyb17 = yyj17 > l
3303	} else {
3304		yyb17 = r.CheckBreak()
3305	}
3306	if yyb17 {
3307		r.ReadArrayEnd()
3308		return
3309	}
3310	r.ReadArrayElem()
3311	if r.TryDecodeAsNil() {
3312		x.QueryOptions.Region = ""
3313	} else {
3314		x.Region = (string)(r.DecodeString())
3315	}
3316	yyj17++
3317	if yyhl17 {
3318		yyb17 = yyj17 > l
3319	} else {
3320		yyb17 = r.CheckBreak()
3321	}
3322	if yyb17 {
3323		r.ReadArrayEnd()
3324		return
3325	}
3326	r.ReadArrayElem()
3327	if r.TryDecodeAsNil() {
3328		x.QueryOptions.Namespace = ""
3329	} else {
3330		x.Namespace = (string)(r.DecodeString())
3331	}
3332	yyj17++
3333	if yyhl17 {
3334		yyb17 = yyj17 > l
3335	} else {
3336		yyb17 = r.CheckBreak()
3337	}
3338	if yyb17 {
3339		r.ReadArrayEnd()
3340		return
3341	}
3342	r.ReadArrayElem()
3343	if r.TryDecodeAsNil() {
3344		x.QueryOptions.MinQueryIndex = 0
3345	} else {
3346		x.MinQueryIndex = (uint64)(r.DecodeUint64())
3347	}
3348	yyj17++
3349	if yyhl17 {
3350		yyb17 = yyj17 > l
3351	} else {
3352		yyb17 = r.CheckBreak()
3353	}
3354	if yyb17 {
3355		r.ReadArrayEnd()
3356		return
3357	}
3358	r.ReadArrayElem()
3359	if r.TryDecodeAsNil() {
3360		x.QueryOptions.MaxQueryTime = 0
3361	} else {
3362		if false {
3363		} else if yyxt24 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt24 != nil {
3364			z.DecExtension(x.MaxQueryTime, yyxt24)
3365		} else {
3366			x.MaxQueryTime = (time.Duration)(r.DecodeInt64())
3367		}
3368	}
3369	yyj17++
3370	if yyhl17 {
3371		yyb17 = yyj17 > l
3372	} else {
3373		yyb17 = r.CheckBreak()
3374	}
3375	if yyb17 {
3376		r.ReadArrayEnd()
3377		return
3378	}
3379	r.ReadArrayElem()
3380	if r.TryDecodeAsNil() {
3381		x.QueryOptions.AllowStale = false
3382	} else {
3383		x.AllowStale = (bool)(r.DecodeBool())
3384	}
3385	yyj17++
3386	if yyhl17 {
3387		yyb17 = yyj17 > l
3388	} else {
3389		yyb17 = r.CheckBreak()
3390	}
3391	if yyb17 {
3392		r.ReadArrayEnd()
3393		return
3394	}
3395	r.ReadArrayElem()
3396	if r.TryDecodeAsNil() {
3397		x.QueryOptions.Prefix = ""
3398	} else {
3399		x.Prefix = (string)(r.DecodeString())
3400	}
3401	yyj17++
3402	if yyhl17 {
3403		yyb17 = yyj17 > l
3404	} else {
3405		yyb17 = r.CheckBreak()
3406	}
3407	if yyb17 {
3408		r.ReadArrayEnd()
3409		return
3410	}
3411	r.ReadArrayElem()
3412	if r.TryDecodeAsNil() {
3413		x.QueryOptions.AuthToken = ""
3414	} else {
3415		x.AuthToken = (string)(r.DecodeString())
3416	}
3417	yyj17++
3418	if yyhl17 {
3419		yyb17 = yyj17 > l
3420	} else {
3421		yyb17 = r.CheckBreak()
3422	}
3423	if yyb17 {
3424		r.ReadArrayEnd()
3425		return
3426	}
3427	r.ReadArrayElem()
3428	if r.TryDecodeAsNil() {
3429		x.QueryOptions.PerPage = 0
3430	} else {
3431		x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32))
3432	}
3433	yyj17++
3434	if yyhl17 {
3435		yyb17 = yyj17 > l
3436	} else {
3437		yyb17 = r.CheckBreak()
3438	}
3439	if yyb17 {
3440		r.ReadArrayEnd()
3441		return
3442	}
3443	r.ReadArrayElem()
3444	if r.TryDecodeAsNil() {
3445		x.QueryOptions.NextToken = ""
3446	} else {
3447		x.NextToken = (string)(r.DecodeString())
3448	}
3449	yyj17++
3450	if yyhl17 {
3451		yyb17 = yyj17 > l
3452	} else {
3453		yyb17 = r.CheckBreak()
3454	}
3455	if yyb17 {
3456		r.ReadArrayEnd()
3457		return
3458	}
3459	r.ReadArrayElem()
3460	if r.TryDecodeAsNil() {
3461		x.QueryOptions.InternalRpcInfo.Forwarded = false
3462	} else {
3463		x.Forwarded = (bool)(r.DecodeBool())
3464	}
3465	for {
3466		yyj17++
3467		if yyhl17 {
3468			yyb17 = yyj17 > l
3469		} else {
3470			yyb17 = r.CheckBreak()
3471		}
3472		if yyb17 {
3473			break
3474		}
3475		r.ReadArrayElem()
3476		z.DecStructFieldNotFound(yyj17-1, "")
3477	}
3478	r.ReadArrayEnd()
3479}
3480
3481func (x *FsStatResponse) CodecEncodeSelf(e *codec1978.Encoder) {
3482	var h codecSelfer102
3483	z, r := codec1978.GenHelperEncoder(e)
3484	_, _, _ = h, z, r
3485	if x == nil {
3486		r.EncodeNil()
3487	} else {
3488		if false {
3489		} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
3490			z.EncExtension(x, yyxt1)
3491		} else {
3492			yysep2 := !z.EncBinary()
3493			yy2arr2 := z.EncBasicHandle().StructToArray
3494			_, _ = yysep2, yy2arr2
3495			const yyr2 bool = false // struct tag has 'toArray'
3496			if yyr2 || yy2arr2 {
3497				r.WriteArrayStart(4)
3498			} else {
3499				r.WriteMapStart(4)
3500			}
3501			var yyn3 bool
3502			if x.Info == nil {
3503				yyn3 = true
3504				goto LABEL3
3505			}
3506		LABEL3:
3507			if yyr2 || yy2arr2 {
3508				if yyn3 {
3509					r.WriteArrayElem()
3510					r.EncodeNil()
3511				} else {
3512					r.WriteArrayElem()
3513					if x.Info == nil {
3514						r.EncodeNil()
3515					} else {
3516						x.Info.CodecEncodeSelf(e)
3517					}
3518				}
3519			} else {
3520				r.WriteMapElemKey()
3521				if z.IsJSONHandle() {
3522					z.WriteStr("\"Info\"")
3523				} else {
3524					r.EncodeStringEnc(codecSelferCcUTF8102, `Info`)
3525				}
3526				r.WriteMapElemValue()
3527				if yyn3 {
3528					r.EncodeNil()
3529				} else {
3530					if x.Info == nil {
3531						r.EncodeNil()
3532					} else {
3533						x.Info.CodecEncodeSelf(e)
3534					}
3535				}
3536			}
3537			if yyr2 || yy2arr2 {
3538				r.WriteArrayElem()
3539				if false {
3540				} else {
3541					r.EncodeUint(uint64(x.Index))
3542				}
3543			} else {
3544				r.WriteMapElemKey()
3545				if z.IsJSONHandle() {
3546					z.WriteStr("\"Index\"")
3547				} else {
3548					r.EncodeStringEnc(codecSelferCcUTF8102, `Index`)
3549				}
3550				r.WriteMapElemValue()
3551				if false {
3552				} else {
3553					r.EncodeUint(uint64(x.Index))
3554				}
3555			}
3556			if yyr2 || yy2arr2 {
3557				r.WriteArrayElem()
3558				if false {
3559				} else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil {
3560					z.EncExtension(x.LastContact, yyxt10)
3561				} else {
3562					r.EncodeInt(int64(x.LastContact))
3563				}
3564			} else {
3565				r.WriteMapElemKey()
3566				if z.IsJSONHandle() {
3567					z.WriteStr("\"LastContact\"")
3568				} else {
3569					r.EncodeStringEnc(codecSelferCcUTF8102, `LastContact`)
3570				}
3571				r.WriteMapElemValue()
3572				if false {
3573				} else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil {
3574					z.EncExtension(x.LastContact, yyxt11)
3575				} else {
3576					r.EncodeInt(int64(x.LastContact))
3577				}
3578			}
3579			if yyr2 || yy2arr2 {
3580				r.WriteArrayElem()
3581				if false {
3582				} else {
3583					r.EncodeBool(bool(x.KnownLeader))
3584				}
3585			} else {
3586				r.WriteMapElemKey()
3587				if z.IsJSONHandle() {
3588					z.WriteStr("\"KnownLeader\"")
3589				} else {
3590					r.EncodeStringEnc(codecSelferCcUTF8102, `KnownLeader`)
3591				}
3592				r.WriteMapElemValue()
3593				if false {
3594				} else {
3595					r.EncodeBool(bool(x.KnownLeader))
3596				}
3597			}
3598			if yyr2 || yy2arr2 {
3599				r.WriteArrayEnd()
3600			} else {
3601				r.WriteMapEnd()
3602			}
3603		}
3604	}
3605}
3606
3607func (x *FsStatResponse) CodecDecodeSelf(d *codec1978.Decoder) {
3608	var h codecSelfer102
3609	z, r := codec1978.GenHelperDecoder(d)
3610	_, _, _ = h, z, r
3611	if false {
3612	} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
3613		z.DecExtension(x, yyxt1)
3614	} else {
3615		yyct2 := r.ContainerType()
3616		if yyct2 == codecSelferValueTypeMap102 {
3617			yyl2 := r.ReadMapStart()
3618			if yyl2 == 0 {
3619				r.ReadMapEnd()
3620			} else {
3621				x.codecDecodeSelfFromMap(yyl2, d)
3622			}
3623		} else if yyct2 == codecSelferValueTypeArray102 {
3624			yyl2 := r.ReadArrayStart()
3625			if yyl2 == 0 {
3626				r.ReadArrayEnd()
3627			} else {
3628				x.codecDecodeSelfFromArray(yyl2, d)
3629			}
3630		} else {
3631			panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102)
3632		}
3633	}
3634}
3635
3636func (x *FsStatResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
3637	var h codecSelfer102
3638	z, r := codec1978.GenHelperDecoder(d)
3639	_, _, _ = h, z, r
3640	var yyhl3 bool = l >= 0
3641	for yyj3 := 0; ; yyj3++ {
3642		if yyhl3 {
3643			if yyj3 >= l {
3644				break
3645			}
3646		} else {
3647			if r.CheckBreak() {
3648				break
3649			}
3650		}
3651		r.ReadMapElemKey()
3652		yys3 := z.StringView(r.DecodeStringAsBytes())
3653		r.ReadMapElemValue()
3654		switch yys3 {
3655		case "Info":
3656			if r.TryDecodeAsNil() {
3657				if true && x.Info != nil {
3658					x.Info = nil
3659				}
3660			} else {
3661				if x.Info == nil {
3662					x.Info = new(AllocFileInfo)
3663				}
3664
3665				x.Info.CodecDecodeSelf(d)
3666			}
3667		case "Index":
3668			if r.TryDecodeAsNil() {
3669				x.QueryMeta.Index = 0
3670			} else {
3671				x.Index = (uint64)(r.DecodeUint64())
3672			}
3673		case "LastContact":
3674			if r.TryDecodeAsNil() {
3675				x.QueryMeta.LastContact = 0
3676			} else {
3677				if false {
3678				} else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil {
3679					z.DecExtension(x.LastContact, yyxt7)
3680				} else {
3681					x.LastContact = (time.Duration)(r.DecodeInt64())
3682				}
3683			}
3684		case "KnownLeader":
3685			if r.TryDecodeAsNil() {
3686				x.QueryMeta.KnownLeader = false
3687			} else {
3688				x.KnownLeader = (bool)(r.DecodeBool())
3689			}
3690		default:
3691			z.DecStructFieldNotFound(-1, yys3)
3692		} // end switch yys3
3693	} // end for yyj3
3694	r.ReadMapEnd()
3695}
3696
3697func (x *FsStatResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
3698	var h codecSelfer102
3699	z, r := codec1978.GenHelperDecoder(d)
3700	_, _, _ = h, z, r
3701	var yyj9 int
3702	var yyb9 bool
3703	var yyhl9 bool = l >= 0
3704	yyj9++
3705	if yyhl9 {
3706		yyb9 = yyj9 > l
3707	} else {
3708		yyb9 = r.CheckBreak()
3709	}
3710	if yyb9 {
3711		r.ReadArrayEnd()
3712		return
3713	}
3714	r.ReadArrayElem()
3715	if r.TryDecodeAsNil() {
3716		if true && x.Info != nil {
3717			x.Info = nil
3718		}
3719	} else {
3720		if x.Info == nil {
3721			x.Info = new(AllocFileInfo)
3722		}
3723
3724		x.Info.CodecDecodeSelf(d)
3725	}
3726	yyj9++
3727	if yyhl9 {
3728		yyb9 = yyj9 > l
3729	} else {
3730		yyb9 = r.CheckBreak()
3731	}
3732	if yyb9 {
3733		r.ReadArrayEnd()
3734		return
3735	}
3736	r.ReadArrayElem()
3737	if r.TryDecodeAsNil() {
3738		x.QueryMeta.Index = 0
3739	} else {
3740		x.Index = (uint64)(r.DecodeUint64())
3741	}
3742	yyj9++
3743	if yyhl9 {
3744		yyb9 = yyj9 > l
3745	} else {
3746		yyb9 = r.CheckBreak()
3747	}
3748	if yyb9 {
3749		r.ReadArrayEnd()
3750		return
3751	}
3752	r.ReadArrayElem()
3753	if r.TryDecodeAsNil() {
3754		x.QueryMeta.LastContact = 0
3755	} else {
3756		if false {
3757		} else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil {
3758			z.DecExtension(x.LastContact, yyxt13)
3759		} else {
3760			x.LastContact = (time.Duration)(r.DecodeInt64())
3761		}
3762	}
3763	yyj9++
3764	if yyhl9 {
3765		yyb9 = yyj9 > l
3766	} else {
3767		yyb9 = r.CheckBreak()
3768	}
3769	if yyb9 {
3770		r.ReadArrayEnd()
3771		return
3772	}
3773	r.ReadArrayElem()
3774	if r.TryDecodeAsNil() {
3775		x.QueryMeta.KnownLeader = false
3776	} else {
3777		x.KnownLeader = (bool)(r.DecodeBool())
3778	}
3779	for {
3780		yyj9++
3781		if yyhl9 {
3782			yyb9 = yyj9 > l
3783		} else {
3784			yyb9 = r.CheckBreak()
3785		}
3786		if yyb9 {
3787			break
3788		}
3789		r.ReadArrayElem()
3790		z.DecStructFieldNotFound(yyj9-1, "")
3791	}
3792	r.ReadArrayEnd()
3793}
3794
3795func (x *FsStreamRequest) CodecEncodeSelf(e *codec1978.Encoder) {
3796	var h codecSelfer102
3797	z, r := codec1978.GenHelperEncoder(e)
3798	_, _, _ = h, z, r
3799	if x == nil {
3800		r.EncodeNil()
3801	} else {
3802		if false {
3803		} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
3804			z.EncExtension(x, yyxt1)
3805		} else {
3806			yysep2 := !z.EncBinary()
3807			yy2arr2 := z.EncBasicHandle().StructToArray
3808			_, _ = yysep2, yy2arr2
3809			const yyr2 bool = false // struct tag has 'toArray'
3810			if yyr2 || yy2arr2 {
3811				r.WriteArrayStart(17)
3812			} else {
3813				r.WriteMapStart(17)
3814			}
3815			if yyr2 || yy2arr2 {
3816				r.WriteArrayElem()
3817				if false {
3818				} else {
3819					if z.EncBasicHandle().StringToRaw {
3820						r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID)))
3821					} else {
3822						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AllocID))
3823					}
3824				}
3825			} else {
3826				r.WriteMapElemKey()
3827				if z.IsJSONHandle() {
3828					z.WriteStr("\"AllocID\"")
3829				} else {
3830					r.EncodeStringEnc(codecSelferCcUTF8102, `AllocID`)
3831				}
3832				r.WriteMapElemValue()
3833				if false {
3834				} else {
3835					if z.EncBasicHandle().StringToRaw {
3836						r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID)))
3837					} else {
3838						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AllocID))
3839					}
3840				}
3841			}
3842			if yyr2 || yy2arr2 {
3843				r.WriteArrayElem()
3844				if false {
3845				} else {
3846					if z.EncBasicHandle().StringToRaw {
3847						r.EncodeStringBytesRaw(z.BytesView(string(x.Path)))
3848					} else {
3849						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Path))
3850					}
3851				}
3852			} else {
3853				r.WriteMapElemKey()
3854				if z.IsJSONHandle() {
3855					z.WriteStr("\"Path\"")
3856				} else {
3857					r.EncodeStringEnc(codecSelferCcUTF8102, `Path`)
3858				}
3859				r.WriteMapElemValue()
3860				if false {
3861				} else {
3862					if z.EncBasicHandle().StringToRaw {
3863						r.EncodeStringBytesRaw(z.BytesView(string(x.Path)))
3864					} else {
3865						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Path))
3866					}
3867				}
3868			}
3869			if yyr2 || yy2arr2 {
3870				r.WriteArrayElem()
3871				if false {
3872				} else {
3873					r.EncodeInt(int64(x.Offset))
3874				}
3875			} else {
3876				r.WriteMapElemKey()
3877				if z.IsJSONHandle() {
3878					z.WriteStr("\"Offset\"")
3879				} else {
3880					r.EncodeStringEnc(codecSelferCcUTF8102, `Offset`)
3881				}
3882				r.WriteMapElemValue()
3883				if false {
3884				} else {
3885					r.EncodeInt(int64(x.Offset))
3886				}
3887			}
3888			if yyr2 || yy2arr2 {
3889				r.WriteArrayElem()
3890				if false {
3891				} else {
3892					if z.EncBasicHandle().StringToRaw {
3893						r.EncodeStringBytesRaw(z.BytesView(string(x.Origin)))
3894					} else {
3895						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Origin))
3896					}
3897				}
3898			} else {
3899				r.WriteMapElemKey()
3900				if z.IsJSONHandle() {
3901					z.WriteStr("\"Origin\"")
3902				} else {
3903					r.EncodeStringEnc(codecSelferCcUTF8102, `Origin`)
3904				}
3905				r.WriteMapElemValue()
3906				if false {
3907				} else {
3908					if z.EncBasicHandle().StringToRaw {
3909						r.EncodeStringBytesRaw(z.BytesView(string(x.Origin)))
3910					} else {
3911						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Origin))
3912					}
3913				}
3914			}
3915			if yyr2 || yy2arr2 {
3916				r.WriteArrayElem()
3917				if false {
3918				} else {
3919					r.EncodeBool(bool(x.PlainText))
3920				}
3921			} else {
3922				r.WriteMapElemKey()
3923				if z.IsJSONHandle() {
3924					z.WriteStr("\"PlainText\"")
3925				} else {
3926					r.EncodeStringEnc(codecSelferCcUTF8102, `PlainText`)
3927				}
3928				r.WriteMapElemValue()
3929				if false {
3930				} else {
3931					r.EncodeBool(bool(x.PlainText))
3932				}
3933			}
3934			if yyr2 || yy2arr2 {
3935				r.WriteArrayElem()
3936				if false {
3937				} else {
3938					r.EncodeInt(int64(x.Limit))
3939				}
3940			} else {
3941				r.WriteMapElemKey()
3942				if z.IsJSONHandle() {
3943					z.WriteStr("\"Limit\"")
3944				} else {
3945					r.EncodeStringEnc(codecSelferCcUTF8102, `Limit`)
3946				}
3947				r.WriteMapElemValue()
3948				if false {
3949				} else {
3950					r.EncodeInt(int64(x.Limit))
3951				}
3952			}
3953			if yyr2 || yy2arr2 {
3954				r.WriteArrayElem()
3955				if false {
3956				} else {
3957					r.EncodeBool(bool(x.Follow))
3958				}
3959			} else {
3960				r.WriteMapElemKey()
3961				if z.IsJSONHandle() {
3962					z.WriteStr("\"Follow\"")
3963				} else {
3964					r.EncodeStringEnc(codecSelferCcUTF8102, `Follow`)
3965				}
3966				r.WriteMapElemValue()
3967				if false {
3968				} else {
3969					r.EncodeBool(bool(x.Follow))
3970				}
3971			}
3972			if yyr2 || yy2arr2 {
3973				r.WriteArrayElem()
3974				if false {
3975				} else {
3976					if z.EncBasicHandle().StringToRaw {
3977						r.EncodeStringBytesRaw(z.BytesView(string(x.Region)))
3978					} else {
3979						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Region))
3980					}
3981				}
3982			} else {
3983				r.WriteMapElemKey()
3984				if z.IsJSONHandle() {
3985					z.WriteStr("\"Region\"")
3986				} else {
3987					r.EncodeStringEnc(codecSelferCcUTF8102, `Region`)
3988				}
3989				r.WriteMapElemValue()
3990				if false {
3991				} else {
3992					if z.EncBasicHandle().StringToRaw {
3993						r.EncodeStringBytesRaw(z.BytesView(string(x.Region)))
3994					} else {
3995						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Region))
3996					}
3997				}
3998			}
3999			if yyr2 || yy2arr2 {
4000				r.WriteArrayElem()
4001				if false {
4002				} else {
4003					if z.EncBasicHandle().StringToRaw {
4004						r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace)))
4005					} else {
4006						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Namespace))
4007					}
4008				}
4009			} else {
4010				r.WriteMapElemKey()
4011				if z.IsJSONHandle() {
4012					z.WriteStr("\"Namespace\"")
4013				} else {
4014					r.EncodeStringEnc(codecSelferCcUTF8102, `Namespace`)
4015				}
4016				r.WriteMapElemValue()
4017				if false {
4018				} else {
4019					if z.EncBasicHandle().StringToRaw {
4020						r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace)))
4021					} else {
4022						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Namespace))
4023					}
4024				}
4025			}
4026			if yyr2 || yy2arr2 {
4027				r.WriteArrayElem()
4028				if false {
4029				} else {
4030					r.EncodeUint(uint64(x.MinQueryIndex))
4031				}
4032			} else {
4033				r.WriteMapElemKey()
4034				if z.IsJSONHandle() {
4035					z.WriteStr("\"MinQueryIndex\"")
4036				} else {
4037					r.EncodeStringEnc(codecSelferCcUTF8102, `MinQueryIndex`)
4038				}
4039				r.WriteMapElemValue()
4040				if false {
4041				} else {
4042					r.EncodeUint(uint64(x.MinQueryIndex))
4043				}
4044			}
4045			if yyr2 || yy2arr2 {
4046				r.WriteArrayElem()
4047				if false {
4048				} else if yyxt34 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt34 != nil {
4049					z.EncExtension(x.MaxQueryTime, yyxt34)
4050				} else {
4051					r.EncodeInt(int64(x.MaxQueryTime))
4052				}
4053			} else {
4054				r.WriteMapElemKey()
4055				if z.IsJSONHandle() {
4056					z.WriteStr("\"MaxQueryTime\"")
4057				} else {
4058					r.EncodeStringEnc(codecSelferCcUTF8102, `MaxQueryTime`)
4059				}
4060				r.WriteMapElemValue()
4061				if false {
4062				} else if yyxt35 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt35 != nil {
4063					z.EncExtension(x.MaxQueryTime, yyxt35)
4064				} else {
4065					r.EncodeInt(int64(x.MaxQueryTime))
4066				}
4067			}
4068			if yyr2 || yy2arr2 {
4069				r.WriteArrayElem()
4070				if false {
4071				} else {
4072					r.EncodeBool(bool(x.AllowStale))
4073				}
4074			} else {
4075				r.WriteMapElemKey()
4076				if z.IsJSONHandle() {
4077					z.WriteStr("\"AllowStale\"")
4078				} else {
4079					r.EncodeStringEnc(codecSelferCcUTF8102, `AllowStale`)
4080				}
4081				r.WriteMapElemValue()
4082				if false {
4083				} else {
4084					r.EncodeBool(bool(x.AllowStale))
4085				}
4086			}
4087			if yyr2 || yy2arr2 {
4088				r.WriteArrayElem()
4089				if false {
4090				} else {
4091					if z.EncBasicHandle().StringToRaw {
4092						r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix)))
4093					} else {
4094						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Prefix))
4095					}
4096				}
4097			} else {
4098				r.WriteMapElemKey()
4099				if z.IsJSONHandle() {
4100					z.WriteStr("\"Prefix\"")
4101				} else {
4102					r.EncodeStringEnc(codecSelferCcUTF8102, `Prefix`)
4103				}
4104				r.WriteMapElemValue()
4105				if false {
4106				} else {
4107					if z.EncBasicHandle().StringToRaw {
4108						r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix)))
4109					} else {
4110						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Prefix))
4111					}
4112				}
4113			}
4114			if yyr2 || yy2arr2 {
4115				r.WriteArrayElem()
4116				if false {
4117				} else {
4118					if z.EncBasicHandle().StringToRaw {
4119						r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken)))
4120					} else {
4121						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AuthToken))
4122					}
4123				}
4124			} else {
4125				r.WriteMapElemKey()
4126				if z.IsJSONHandle() {
4127					z.WriteStr("\"AuthToken\"")
4128				} else {
4129					r.EncodeStringEnc(codecSelferCcUTF8102, `AuthToken`)
4130				}
4131				r.WriteMapElemValue()
4132				if false {
4133				} else {
4134					if z.EncBasicHandle().StringToRaw {
4135						r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken)))
4136					} else {
4137						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AuthToken))
4138					}
4139				}
4140			}
4141			if yyr2 || yy2arr2 {
4142				r.WriteArrayElem()
4143				if false {
4144				} else {
4145					r.EncodeInt(int64(x.PerPage))
4146				}
4147			} else {
4148				r.WriteMapElemKey()
4149				if z.IsJSONHandle() {
4150					z.WriteStr("\"PerPage\"")
4151				} else {
4152					r.EncodeStringEnc(codecSelferCcUTF8102, `PerPage`)
4153				}
4154				r.WriteMapElemValue()
4155				if false {
4156				} else {
4157					r.EncodeInt(int64(x.PerPage))
4158				}
4159			}
4160			if yyr2 || yy2arr2 {
4161				r.WriteArrayElem()
4162				if false {
4163				} else {
4164					if z.EncBasicHandle().StringToRaw {
4165						r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken)))
4166					} else {
4167						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.NextToken))
4168					}
4169				}
4170			} else {
4171				r.WriteMapElemKey()
4172				if z.IsJSONHandle() {
4173					z.WriteStr("\"NextToken\"")
4174				} else {
4175					r.EncodeStringEnc(codecSelferCcUTF8102, `NextToken`)
4176				}
4177				r.WriteMapElemValue()
4178				if false {
4179				} else {
4180					if z.EncBasicHandle().StringToRaw {
4181						r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken)))
4182					} else {
4183						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.NextToken))
4184					}
4185				}
4186			}
4187			if yyr2 || yy2arr2 {
4188				r.WriteArrayElem()
4189				if false {
4190				} else {
4191					r.EncodeBool(bool(x.Forwarded))
4192				}
4193			} else {
4194				r.WriteMapElemKey()
4195				if z.IsJSONHandle() {
4196					z.WriteStr("\"Forwarded\"")
4197				} else {
4198					r.EncodeStringEnc(codecSelferCcUTF8102, `Forwarded`)
4199				}
4200				r.WriteMapElemValue()
4201				if false {
4202				} else {
4203					r.EncodeBool(bool(x.Forwarded))
4204				}
4205			}
4206			if yyr2 || yy2arr2 {
4207				r.WriteArrayEnd()
4208			} else {
4209				r.WriteMapEnd()
4210			}
4211		}
4212	}
4213}
4214
4215func (x *FsStreamRequest) CodecDecodeSelf(d *codec1978.Decoder) {
4216	var h codecSelfer102
4217	z, r := codec1978.GenHelperDecoder(d)
4218	_, _, _ = h, z, r
4219	if false {
4220	} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
4221		z.DecExtension(x, yyxt1)
4222	} else {
4223		yyct2 := r.ContainerType()
4224		if yyct2 == codecSelferValueTypeMap102 {
4225			yyl2 := r.ReadMapStart()
4226			if yyl2 == 0 {
4227				r.ReadMapEnd()
4228			} else {
4229				x.codecDecodeSelfFromMap(yyl2, d)
4230			}
4231		} else if yyct2 == codecSelferValueTypeArray102 {
4232			yyl2 := r.ReadArrayStart()
4233			if yyl2 == 0 {
4234				r.ReadArrayEnd()
4235			} else {
4236				x.codecDecodeSelfFromArray(yyl2, d)
4237			}
4238		} else {
4239			panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102)
4240		}
4241	}
4242}
4243
4244func (x *FsStreamRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
4245	var h codecSelfer102
4246	z, r := codec1978.GenHelperDecoder(d)
4247	_, _, _ = h, z, r
4248	var yyhl3 bool = l >= 0
4249	for yyj3 := 0; ; yyj3++ {
4250		if yyhl3 {
4251			if yyj3 >= l {
4252				break
4253			}
4254		} else {
4255			if r.CheckBreak() {
4256				break
4257			}
4258		}
4259		r.ReadMapElemKey()
4260		yys3 := z.StringView(r.DecodeStringAsBytes())
4261		r.ReadMapElemValue()
4262		switch yys3 {
4263		case "AllocID":
4264			if r.TryDecodeAsNil() {
4265				x.AllocID = ""
4266			} else {
4267				x.AllocID = (string)(r.DecodeString())
4268			}
4269		case "Path":
4270			if r.TryDecodeAsNil() {
4271				x.Path = ""
4272			} else {
4273				x.Path = (string)(r.DecodeString())
4274			}
4275		case "Offset":
4276			if r.TryDecodeAsNil() {
4277				x.Offset = 0
4278			} else {
4279				x.Offset = (int64)(r.DecodeInt64())
4280			}
4281		case "Origin":
4282			if r.TryDecodeAsNil() {
4283				x.Origin = ""
4284			} else {
4285				x.Origin = (string)(r.DecodeString())
4286			}
4287		case "PlainText":
4288			if r.TryDecodeAsNil() {
4289				x.PlainText = false
4290			} else {
4291				x.PlainText = (bool)(r.DecodeBool())
4292			}
4293		case "Limit":
4294			if r.TryDecodeAsNil() {
4295				x.Limit = 0
4296			} else {
4297				x.Limit = (int64)(r.DecodeInt64())
4298			}
4299		case "Follow":
4300			if r.TryDecodeAsNil() {
4301				x.Follow = false
4302			} else {
4303				x.Follow = (bool)(r.DecodeBool())
4304			}
4305		case "Region":
4306			if r.TryDecodeAsNil() {
4307				x.QueryOptions.Region = ""
4308			} else {
4309				x.Region = (string)(r.DecodeString())
4310			}
4311		case "Namespace":
4312			if r.TryDecodeAsNil() {
4313				x.QueryOptions.Namespace = ""
4314			} else {
4315				x.Namespace = (string)(r.DecodeString())
4316			}
4317		case "MinQueryIndex":
4318			if r.TryDecodeAsNil() {
4319				x.QueryOptions.MinQueryIndex = 0
4320			} else {
4321				x.MinQueryIndex = (uint64)(r.DecodeUint64())
4322			}
4323		case "MaxQueryTime":
4324			if r.TryDecodeAsNil() {
4325				x.QueryOptions.MaxQueryTime = 0
4326			} else {
4327				if false {
4328				} else if yyxt15 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt15 != nil {
4329					z.DecExtension(x.MaxQueryTime, yyxt15)
4330				} else {
4331					x.MaxQueryTime = (time.Duration)(r.DecodeInt64())
4332				}
4333			}
4334		case "AllowStale":
4335			if r.TryDecodeAsNil() {
4336				x.QueryOptions.AllowStale = false
4337			} else {
4338				x.AllowStale = (bool)(r.DecodeBool())
4339			}
4340		case "Prefix":
4341			if r.TryDecodeAsNil() {
4342				x.QueryOptions.Prefix = ""
4343			} else {
4344				x.Prefix = (string)(r.DecodeString())
4345			}
4346		case "AuthToken":
4347			if r.TryDecodeAsNil() {
4348				x.QueryOptions.AuthToken = ""
4349			} else {
4350				x.AuthToken = (string)(r.DecodeString())
4351			}
4352		case "PerPage":
4353			if r.TryDecodeAsNil() {
4354				x.QueryOptions.PerPage = 0
4355			} else {
4356				x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32))
4357			}
4358		case "NextToken":
4359			if r.TryDecodeAsNil() {
4360				x.QueryOptions.NextToken = ""
4361			} else {
4362				x.NextToken = (string)(r.DecodeString())
4363			}
4364		case "Forwarded":
4365			if r.TryDecodeAsNil() {
4366				x.QueryOptions.InternalRpcInfo.Forwarded = false
4367			} else {
4368				x.Forwarded = (bool)(r.DecodeBool())
4369			}
4370		default:
4371			z.DecStructFieldNotFound(-1, yys3)
4372		} // end switch yys3
4373	} // end for yyj3
4374	r.ReadMapEnd()
4375}
4376
4377func (x *FsStreamRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
4378	var h codecSelfer102
4379	z, r := codec1978.GenHelperDecoder(d)
4380	_, _, _ = h, z, r
4381	var yyj22 int
4382	var yyb22 bool
4383	var yyhl22 bool = l >= 0
4384	yyj22++
4385	if yyhl22 {
4386		yyb22 = yyj22 > l
4387	} else {
4388		yyb22 = r.CheckBreak()
4389	}
4390	if yyb22 {
4391		r.ReadArrayEnd()
4392		return
4393	}
4394	r.ReadArrayElem()
4395	if r.TryDecodeAsNil() {
4396		x.AllocID = ""
4397	} else {
4398		x.AllocID = (string)(r.DecodeString())
4399	}
4400	yyj22++
4401	if yyhl22 {
4402		yyb22 = yyj22 > l
4403	} else {
4404		yyb22 = r.CheckBreak()
4405	}
4406	if yyb22 {
4407		r.ReadArrayEnd()
4408		return
4409	}
4410	r.ReadArrayElem()
4411	if r.TryDecodeAsNil() {
4412		x.Path = ""
4413	} else {
4414		x.Path = (string)(r.DecodeString())
4415	}
4416	yyj22++
4417	if yyhl22 {
4418		yyb22 = yyj22 > l
4419	} else {
4420		yyb22 = r.CheckBreak()
4421	}
4422	if yyb22 {
4423		r.ReadArrayEnd()
4424		return
4425	}
4426	r.ReadArrayElem()
4427	if r.TryDecodeAsNil() {
4428		x.Offset = 0
4429	} else {
4430		x.Offset = (int64)(r.DecodeInt64())
4431	}
4432	yyj22++
4433	if yyhl22 {
4434		yyb22 = yyj22 > l
4435	} else {
4436		yyb22 = r.CheckBreak()
4437	}
4438	if yyb22 {
4439		r.ReadArrayEnd()
4440		return
4441	}
4442	r.ReadArrayElem()
4443	if r.TryDecodeAsNil() {
4444		x.Origin = ""
4445	} else {
4446		x.Origin = (string)(r.DecodeString())
4447	}
4448	yyj22++
4449	if yyhl22 {
4450		yyb22 = yyj22 > l
4451	} else {
4452		yyb22 = r.CheckBreak()
4453	}
4454	if yyb22 {
4455		r.ReadArrayEnd()
4456		return
4457	}
4458	r.ReadArrayElem()
4459	if r.TryDecodeAsNil() {
4460		x.PlainText = false
4461	} else {
4462		x.PlainText = (bool)(r.DecodeBool())
4463	}
4464	yyj22++
4465	if yyhl22 {
4466		yyb22 = yyj22 > l
4467	} else {
4468		yyb22 = r.CheckBreak()
4469	}
4470	if yyb22 {
4471		r.ReadArrayEnd()
4472		return
4473	}
4474	r.ReadArrayElem()
4475	if r.TryDecodeAsNil() {
4476		x.Limit = 0
4477	} else {
4478		x.Limit = (int64)(r.DecodeInt64())
4479	}
4480	yyj22++
4481	if yyhl22 {
4482		yyb22 = yyj22 > l
4483	} else {
4484		yyb22 = r.CheckBreak()
4485	}
4486	if yyb22 {
4487		r.ReadArrayEnd()
4488		return
4489	}
4490	r.ReadArrayElem()
4491	if r.TryDecodeAsNil() {
4492		x.Follow = false
4493	} else {
4494		x.Follow = (bool)(r.DecodeBool())
4495	}
4496	yyj22++
4497	if yyhl22 {
4498		yyb22 = yyj22 > l
4499	} else {
4500		yyb22 = r.CheckBreak()
4501	}
4502	if yyb22 {
4503		r.ReadArrayEnd()
4504		return
4505	}
4506	r.ReadArrayElem()
4507	if r.TryDecodeAsNil() {
4508		x.QueryOptions.Region = ""
4509	} else {
4510		x.Region = (string)(r.DecodeString())
4511	}
4512	yyj22++
4513	if yyhl22 {
4514		yyb22 = yyj22 > l
4515	} else {
4516		yyb22 = r.CheckBreak()
4517	}
4518	if yyb22 {
4519		r.ReadArrayEnd()
4520		return
4521	}
4522	r.ReadArrayElem()
4523	if r.TryDecodeAsNil() {
4524		x.QueryOptions.Namespace = ""
4525	} else {
4526		x.Namespace = (string)(r.DecodeString())
4527	}
4528	yyj22++
4529	if yyhl22 {
4530		yyb22 = yyj22 > l
4531	} else {
4532		yyb22 = r.CheckBreak()
4533	}
4534	if yyb22 {
4535		r.ReadArrayEnd()
4536		return
4537	}
4538	r.ReadArrayElem()
4539	if r.TryDecodeAsNil() {
4540		x.QueryOptions.MinQueryIndex = 0
4541	} else {
4542		x.MinQueryIndex = (uint64)(r.DecodeUint64())
4543	}
4544	yyj22++
4545	if yyhl22 {
4546		yyb22 = yyj22 > l
4547	} else {
4548		yyb22 = r.CheckBreak()
4549	}
4550	if yyb22 {
4551		r.ReadArrayEnd()
4552		return
4553	}
4554	r.ReadArrayElem()
4555	if r.TryDecodeAsNil() {
4556		x.QueryOptions.MaxQueryTime = 0
4557	} else {
4558		if false {
4559		} else if yyxt34 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt34 != nil {
4560			z.DecExtension(x.MaxQueryTime, yyxt34)
4561		} else {
4562			x.MaxQueryTime = (time.Duration)(r.DecodeInt64())
4563		}
4564	}
4565	yyj22++
4566	if yyhl22 {
4567		yyb22 = yyj22 > l
4568	} else {
4569		yyb22 = r.CheckBreak()
4570	}
4571	if yyb22 {
4572		r.ReadArrayEnd()
4573		return
4574	}
4575	r.ReadArrayElem()
4576	if r.TryDecodeAsNil() {
4577		x.QueryOptions.AllowStale = false
4578	} else {
4579		x.AllowStale = (bool)(r.DecodeBool())
4580	}
4581	yyj22++
4582	if yyhl22 {
4583		yyb22 = yyj22 > l
4584	} else {
4585		yyb22 = r.CheckBreak()
4586	}
4587	if yyb22 {
4588		r.ReadArrayEnd()
4589		return
4590	}
4591	r.ReadArrayElem()
4592	if r.TryDecodeAsNil() {
4593		x.QueryOptions.Prefix = ""
4594	} else {
4595		x.Prefix = (string)(r.DecodeString())
4596	}
4597	yyj22++
4598	if yyhl22 {
4599		yyb22 = yyj22 > l
4600	} else {
4601		yyb22 = r.CheckBreak()
4602	}
4603	if yyb22 {
4604		r.ReadArrayEnd()
4605		return
4606	}
4607	r.ReadArrayElem()
4608	if r.TryDecodeAsNil() {
4609		x.QueryOptions.AuthToken = ""
4610	} else {
4611		x.AuthToken = (string)(r.DecodeString())
4612	}
4613	yyj22++
4614	if yyhl22 {
4615		yyb22 = yyj22 > l
4616	} else {
4617		yyb22 = r.CheckBreak()
4618	}
4619	if yyb22 {
4620		r.ReadArrayEnd()
4621		return
4622	}
4623	r.ReadArrayElem()
4624	if r.TryDecodeAsNil() {
4625		x.QueryOptions.PerPage = 0
4626	} else {
4627		x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32))
4628	}
4629	yyj22++
4630	if yyhl22 {
4631		yyb22 = yyj22 > l
4632	} else {
4633		yyb22 = r.CheckBreak()
4634	}
4635	if yyb22 {
4636		r.ReadArrayEnd()
4637		return
4638	}
4639	r.ReadArrayElem()
4640	if r.TryDecodeAsNil() {
4641		x.QueryOptions.NextToken = ""
4642	} else {
4643		x.NextToken = (string)(r.DecodeString())
4644	}
4645	yyj22++
4646	if yyhl22 {
4647		yyb22 = yyj22 > l
4648	} else {
4649		yyb22 = r.CheckBreak()
4650	}
4651	if yyb22 {
4652		r.ReadArrayEnd()
4653		return
4654	}
4655	r.ReadArrayElem()
4656	if r.TryDecodeAsNil() {
4657		x.QueryOptions.InternalRpcInfo.Forwarded = false
4658	} else {
4659		x.Forwarded = (bool)(r.DecodeBool())
4660	}
4661	for {
4662		yyj22++
4663		if yyhl22 {
4664			yyb22 = yyj22 > l
4665		} else {
4666			yyb22 = r.CheckBreak()
4667		}
4668		if yyb22 {
4669			break
4670		}
4671		r.ReadArrayElem()
4672		z.DecStructFieldNotFound(yyj22-1, "")
4673	}
4674	r.ReadArrayEnd()
4675}
4676
4677func (x *FsLogsRequest) CodecEncodeSelf(e *codec1978.Encoder) {
4678	var h codecSelfer102
4679	z, r := codec1978.GenHelperEncoder(e)
4680	_, _, _ = h, z, r
4681	if x == nil {
4682		r.EncodeNil()
4683	} else {
4684		if false {
4685		} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
4686			z.EncExtension(x, yyxt1)
4687		} else {
4688			yysep2 := !z.EncBinary()
4689			yy2arr2 := z.EncBasicHandle().StructToArray
4690			_, _ = yysep2, yy2arr2
4691			const yyr2 bool = false // struct tag has 'toArray'
4692			if yyr2 || yy2arr2 {
4693				r.WriteArrayStart(17)
4694			} else {
4695				r.WriteMapStart(17)
4696			}
4697			if yyr2 || yy2arr2 {
4698				r.WriteArrayElem()
4699				if false {
4700				} else {
4701					if z.EncBasicHandle().StringToRaw {
4702						r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID)))
4703					} else {
4704						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AllocID))
4705					}
4706				}
4707			} else {
4708				r.WriteMapElemKey()
4709				if z.IsJSONHandle() {
4710					z.WriteStr("\"AllocID\"")
4711				} else {
4712					r.EncodeStringEnc(codecSelferCcUTF8102, `AllocID`)
4713				}
4714				r.WriteMapElemValue()
4715				if false {
4716				} else {
4717					if z.EncBasicHandle().StringToRaw {
4718						r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID)))
4719					} else {
4720						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AllocID))
4721					}
4722				}
4723			}
4724			if yyr2 || yy2arr2 {
4725				r.WriteArrayElem()
4726				if false {
4727				} else {
4728					if z.EncBasicHandle().StringToRaw {
4729						r.EncodeStringBytesRaw(z.BytesView(string(x.Task)))
4730					} else {
4731						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Task))
4732					}
4733				}
4734			} else {
4735				r.WriteMapElemKey()
4736				if z.IsJSONHandle() {
4737					z.WriteStr("\"Task\"")
4738				} else {
4739					r.EncodeStringEnc(codecSelferCcUTF8102, `Task`)
4740				}
4741				r.WriteMapElemValue()
4742				if false {
4743				} else {
4744					if z.EncBasicHandle().StringToRaw {
4745						r.EncodeStringBytesRaw(z.BytesView(string(x.Task)))
4746					} else {
4747						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Task))
4748					}
4749				}
4750			}
4751			if yyr2 || yy2arr2 {
4752				r.WriteArrayElem()
4753				if false {
4754				} else {
4755					if z.EncBasicHandle().StringToRaw {
4756						r.EncodeStringBytesRaw(z.BytesView(string(x.LogType)))
4757					} else {
4758						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.LogType))
4759					}
4760				}
4761			} else {
4762				r.WriteMapElemKey()
4763				if z.IsJSONHandle() {
4764					z.WriteStr("\"LogType\"")
4765				} else {
4766					r.EncodeStringEnc(codecSelferCcUTF8102, `LogType`)
4767				}
4768				r.WriteMapElemValue()
4769				if false {
4770				} else {
4771					if z.EncBasicHandle().StringToRaw {
4772						r.EncodeStringBytesRaw(z.BytesView(string(x.LogType)))
4773					} else {
4774						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.LogType))
4775					}
4776				}
4777			}
4778			if yyr2 || yy2arr2 {
4779				r.WriteArrayElem()
4780				if false {
4781				} else {
4782					r.EncodeInt(int64(x.Offset))
4783				}
4784			} else {
4785				r.WriteMapElemKey()
4786				if z.IsJSONHandle() {
4787					z.WriteStr("\"Offset\"")
4788				} else {
4789					r.EncodeStringEnc(codecSelferCcUTF8102, `Offset`)
4790				}
4791				r.WriteMapElemValue()
4792				if false {
4793				} else {
4794					r.EncodeInt(int64(x.Offset))
4795				}
4796			}
4797			if yyr2 || yy2arr2 {
4798				r.WriteArrayElem()
4799				if false {
4800				} else {
4801					if z.EncBasicHandle().StringToRaw {
4802						r.EncodeStringBytesRaw(z.BytesView(string(x.Origin)))
4803					} else {
4804						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Origin))
4805					}
4806				}
4807			} else {
4808				r.WriteMapElemKey()
4809				if z.IsJSONHandle() {
4810					z.WriteStr("\"Origin\"")
4811				} else {
4812					r.EncodeStringEnc(codecSelferCcUTF8102, `Origin`)
4813				}
4814				r.WriteMapElemValue()
4815				if false {
4816				} else {
4817					if z.EncBasicHandle().StringToRaw {
4818						r.EncodeStringBytesRaw(z.BytesView(string(x.Origin)))
4819					} else {
4820						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Origin))
4821					}
4822				}
4823			}
4824			if yyr2 || yy2arr2 {
4825				r.WriteArrayElem()
4826				if false {
4827				} else {
4828					r.EncodeBool(bool(x.PlainText))
4829				}
4830			} else {
4831				r.WriteMapElemKey()
4832				if z.IsJSONHandle() {
4833					z.WriteStr("\"PlainText\"")
4834				} else {
4835					r.EncodeStringEnc(codecSelferCcUTF8102, `PlainText`)
4836				}
4837				r.WriteMapElemValue()
4838				if false {
4839				} else {
4840					r.EncodeBool(bool(x.PlainText))
4841				}
4842			}
4843			if yyr2 || yy2arr2 {
4844				r.WriteArrayElem()
4845				if false {
4846				} else {
4847					r.EncodeBool(bool(x.Follow))
4848				}
4849			} else {
4850				r.WriteMapElemKey()
4851				if z.IsJSONHandle() {
4852					z.WriteStr("\"Follow\"")
4853				} else {
4854					r.EncodeStringEnc(codecSelferCcUTF8102, `Follow`)
4855				}
4856				r.WriteMapElemValue()
4857				if false {
4858				} else {
4859					r.EncodeBool(bool(x.Follow))
4860				}
4861			}
4862			if yyr2 || yy2arr2 {
4863				r.WriteArrayElem()
4864				if false {
4865				} else {
4866					if z.EncBasicHandle().StringToRaw {
4867						r.EncodeStringBytesRaw(z.BytesView(string(x.Region)))
4868					} else {
4869						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Region))
4870					}
4871				}
4872			} else {
4873				r.WriteMapElemKey()
4874				if z.IsJSONHandle() {
4875					z.WriteStr("\"Region\"")
4876				} else {
4877					r.EncodeStringEnc(codecSelferCcUTF8102, `Region`)
4878				}
4879				r.WriteMapElemValue()
4880				if false {
4881				} else {
4882					if z.EncBasicHandle().StringToRaw {
4883						r.EncodeStringBytesRaw(z.BytesView(string(x.Region)))
4884					} else {
4885						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Region))
4886					}
4887				}
4888			}
4889			if yyr2 || yy2arr2 {
4890				r.WriteArrayElem()
4891				if false {
4892				} else {
4893					if z.EncBasicHandle().StringToRaw {
4894						r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace)))
4895					} else {
4896						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Namespace))
4897					}
4898				}
4899			} else {
4900				r.WriteMapElemKey()
4901				if z.IsJSONHandle() {
4902					z.WriteStr("\"Namespace\"")
4903				} else {
4904					r.EncodeStringEnc(codecSelferCcUTF8102, `Namespace`)
4905				}
4906				r.WriteMapElemValue()
4907				if false {
4908				} else {
4909					if z.EncBasicHandle().StringToRaw {
4910						r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace)))
4911					} else {
4912						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Namespace))
4913					}
4914				}
4915			}
4916			if yyr2 || yy2arr2 {
4917				r.WriteArrayElem()
4918				if false {
4919				} else {
4920					r.EncodeUint(uint64(x.MinQueryIndex))
4921				}
4922			} else {
4923				r.WriteMapElemKey()
4924				if z.IsJSONHandle() {
4925					z.WriteStr("\"MinQueryIndex\"")
4926				} else {
4927					r.EncodeStringEnc(codecSelferCcUTF8102, `MinQueryIndex`)
4928				}
4929				r.WriteMapElemValue()
4930				if false {
4931				} else {
4932					r.EncodeUint(uint64(x.MinQueryIndex))
4933				}
4934			}
4935			if yyr2 || yy2arr2 {
4936				r.WriteArrayElem()
4937				if false {
4938				} else if yyxt34 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt34 != nil {
4939					z.EncExtension(x.MaxQueryTime, yyxt34)
4940				} else {
4941					r.EncodeInt(int64(x.MaxQueryTime))
4942				}
4943			} else {
4944				r.WriteMapElemKey()
4945				if z.IsJSONHandle() {
4946					z.WriteStr("\"MaxQueryTime\"")
4947				} else {
4948					r.EncodeStringEnc(codecSelferCcUTF8102, `MaxQueryTime`)
4949				}
4950				r.WriteMapElemValue()
4951				if false {
4952				} else if yyxt35 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt35 != nil {
4953					z.EncExtension(x.MaxQueryTime, yyxt35)
4954				} else {
4955					r.EncodeInt(int64(x.MaxQueryTime))
4956				}
4957			}
4958			if yyr2 || yy2arr2 {
4959				r.WriteArrayElem()
4960				if false {
4961				} else {
4962					r.EncodeBool(bool(x.AllowStale))
4963				}
4964			} else {
4965				r.WriteMapElemKey()
4966				if z.IsJSONHandle() {
4967					z.WriteStr("\"AllowStale\"")
4968				} else {
4969					r.EncodeStringEnc(codecSelferCcUTF8102, `AllowStale`)
4970				}
4971				r.WriteMapElemValue()
4972				if false {
4973				} else {
4974					r.EncodeBool(bool(x.AllowStale))
4975				}
4976			}
4977			if yyr2 || yy2arr2 {
4978				r.WriteArrayElem()
4979				if false {
4980				} else {
4981					if z.EncBasicHandle().StringToRaw {
4982						r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix)))
4983					} else {
4984						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Prefix))
4985					}
4986				}
4987			} else {
4988				r.WriteMapElemKey()
4989				if z.IsJSONHandle() {
4990					z.WriteStr("\"Prefix\"")
4991				} else {
4992					r.EncodeStringEnc(codecSelferCcUTF8102, `Prefix`)
4993				}
4994				r.WriteMapElemValue()
4995				if false {
4996				} else {
4997					if z.EncBasicHandle().StringToRaw {
4998						r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix)))
4999					} else {
5000						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Prefix))
5001					}
5002				}
5003			}
5004			if yyr2 || yy2arr2 {
5005				r.WriteArrayElem()
5006				if false {
5007				} else {
5008					if z.EncBasicHandle().StringToRaw {
5009						r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken)))
5010					} else {
5011						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AuthToken))
5012					}
5013				}
5014			} else {
5015				r.WriteMapElemKey()
5016				if z.IsJSONHandle() {
5017					z.WriteStr("\"AuthToken\"")
5018				} else {
5019					r.EncodeStringEnc(codecSelferCcUTF8102, `AuthToken`)
5020				}
5021				r.WriteMapElemValue()
5022				if false {
5023				} else {
5024					if z.EncBasicHandle().StringToRaw {
5025						r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken)))
5026					} else {
5027						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AuthToken))
5028					}
5029				}
5030			}
5031			if yyr2 || yy2arr2 {
5032				r.WriteArrayElem()
5033				if false {
5034				} else {
5035					r.EncodeInt(int64(x.PerPage))
5036				}
5037			} else {
5038				r.WriteMapElemKey()
5039				if z.IsJSONHandle() {
5040					z.WriteStr("\"PerPage\"")
5041				} else {
5042					r.EncodeStringEnc(codecSelferCcUTF8102, `PerPage`)
5043				}
5044				r.WriteMapElemValue()
5045				if false {
5046				} else {
5047					r.EncodeInt(int64(x.PerPage))
5048				}
5049			}
5050			if yyr2 || yy2arr2 {
5051				r.WriteArrayElem()
5052				if false {
5053				} else {
5054					if z.EncBasicHandle().StringToRaw {
5055						r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken)))
5056					} else {
5057						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.NextToken))
5058					}
5059				}
5060			} else {
5061				r.WriteMapElemKey()
5062				if z.IsJSONHandle() {
5063					z.WriteStr("\"NextToken\"")
5064				} else {
5065					r.EncodeStringEnc(codecSelferCcUTF8102, `NextToken`)
5066				}
5067				r.WriteMapElemValue()
5068				if false {
5069				} else {
5070					if z.EncBasicHandle().StringToRaw {
5071						r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken)))
5072					} else {
5073						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.NextToken))
5074					}
5075				}
5076			}
5077			if yyr2 || yy2arr2 {
5078				r.WriteArrayElem()
5079				if false {
5080				} else {
5081					r.EncodeBool(bool(x.Forwarded))
5082				}
5083			} else {
5084				r.WriteMapElemKey()
5085				if z.IsJSONHandle() {
5086					z.WriteStr("\"Forwarded\"")
5087				} else {
5088					r.EncodeStringEnc(codecSelferCcUTF8102, `Forwarded`)
5089				}
5090				r.WriteMapElemValue()
5091				if false {
5092				} else {
5093					r.EncodeBool(bool(x.Forwarded))
5094				}
5095			}
5096			if yyr2 || yy2arr2 {
5097				r.WriteArrayEnd()
5098			} else {
5099				r.WriteMapEnd()
5100			}
5101		}
5102	}
5103}
5104
5105func (x *FsLogsRequest) CodecDecodeSelf(d *codec1978.Decoder) {
5106	var h codecSelfer102
5107	z, r := codec1978.GenHelperDecoder(d)
5108	_, _, _ = h, z, r
5109	if false {
5110	} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
5111		z.DecExtension(x, yyxt1)
5112	} else {
5113		yyct2 := r.ContainerType()
5114		if yyct2 == codecSelferValueTypeMap102 {
5115			yyl2 := r.ReadMapStart()
5116			if yyl2 == 0 {
5117				r.ReadMapEnd()
5118			} else {
5119				x.codecDecodeSelfFromMap(yyl2, d)
5120			}
5121		} else if yyct2 == codecSelferValueTypeArray102 {
5122			yyl2 := r.ReadArrayStart()
5123			if yyl2 == 0 {
5124				r.ReadArrayEnd()
5125			} else {
5126				x.codecDecodeSelfFromArray(yyl2, d)
5127			}
5128		} else {
5129			panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102)
5130		}
5131	}
5132}
5133
5134func (x *FsLogsRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
5135	var h codecSelfer102
5136	z, r := codec1978.GenHelperDecoder(d)
5137	_, _, _ = h, z, r
5138	var yyhl3 bool = l >= 0
5139	for yyj3 := 0; ; yyj3++ {
5140		if yyhl3 {
5141			if yyj3 >= l {
5142				break
5143			}
5144		} else {
5145			if r.CheckBreak() {
5146				break
5147			}
5148		}
5149		r.ReadMapElemKey()
5150		yys3 := z.StringView(r.DecodeStringAsBytes())
5151		r.ReadMapElemValue()
5152		switch yys3 {
5153		case "AllocID":
5154			if r.TryDecodeAsNil() {
5155				x.AllocID = ""
5156			} else {
5157				x.AllocID = (string)(r.DecodeString())
5158			}
5159		case "Task":
5160			if r.TryDecodeAsNil() {
5161				x.Task = ""
5162			} else {
5163				x.Task = (string)(r.DecodeString())
5164			}
5165		case "LogType":
5166			if r.TryDecodeAsNil() {
5167				x.LogType = ""
5168			} else {
5169				x.LogType = (string)(r.DecodeString())
5170			}
5171		case "Offset":
5172			if r.TryDecodeAsNil() {
5173				x.Offset = 0
5174			} else {
5175				x.Offset = (int64)(r.DecodeInt64())
5176			}
5177		case "Origin":
5178			if r.TryDecodeAsNil() {
5179				x.Origin = ""
5180			} else {
5181				x.Origin = (string)(r.DecodeString())
5182			}
5183		case "PlainText":
5184			if r.TryDecodeAsNil() {
5185				x.PlainText = false
5186			} else {
5187				x.PlainText = (bool)(r.DecodeBool())
5188			}
5189		case "Follow":
5190			if r.TryDecodeAsNil() {
5191				x.Follow = false
5192			} else {
5193				x.Follow = (bool)(r.DecodeBool())
5194			}
5195		case "Region":
5196			if r.TryDecodeAsNil() {
5197				x.QueryOptions.Region = ""
5198			} else {
5199				x.Region = (string)(r.DecodeString())
5200			}
5201		case "Namespace":
5202			if r.TryDecodeAsNil() {
5203				x.QueryOptions.Namespace = ""
5204			} else {
5205				x.Namespace = (string)(r.DecodeString())
5206			}
5207		case "MinQueryIndex":
5208			if r.TryDecodeAsNil() {
5209				x.QueryOptions.MinQueryIndex = 0
5210			} else {
5211				x.MinQueryIndex = (uint64)(r.DecodeUint64())
5212			}
5213		case "MaxQueryTime":
5214			if r.TryDecodeAsNil() {
5215				x.QueryOptions.MaxQueryTime = 0
5216			} else {
5217				if false {
5218				} else if yyxt15 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt15 != nil {
5219					z.DecExtension(x.MaxQueryTime, yyxt15)
5220				} else {
5221					x.MaxQueryTime = (time.Duration)(r.DecodeInt64())
5222				}
5223			}
5224		case "AllowStale":
5225			if r.TryDecodeAsNil() {
5226				x.QueryOptions.AllowStale = false
5227			} else {
5228				x.AllowStale = (bool)(r.DecodeBool())
5229			}
5230		case "Prefix":
5231			if r.TryDecodeAsNil() {
5232				x.QueryOptions.Prefix = ""
5233			} else {
5234				x.Prefix = (string)(r.DecodeString())
5235			}
5236		case "AuthToken":
5237			if r.TryDecodeAsNil() {
5238				x.QueryOptions.AuthToken = ""
5239			} else {
5240				x.AuthToken = (string)(r.DecodeString())
5241			}
5242		case "PerPage":
5243			if r.TryDecodeAsNil() {
5244				x.QueryOptions.PerPage = 0
5245			} else {
5246				x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32))
5247			}
5248		case "NextToken":
5249			if r.TryDecodeAsNil() {
5250				x.QueryOptions.NextToken = ""
5251			} else {
5252				x.NextToken = (string)(r.DecodeString())
5253			}
5254		case "Forwarded":
5255			if r.TryDecodeAsNil() {
5256				x.QueryOptions.InternalRpcInfo.Forwarded = false
5257			} else {
5258				x.Forwarded = (bool)(r.DecodeBool())
5259			}
5260		default:
5261			z.DecStructFieldNotFound(-1, yys3)
5262		} // end switch yys3
5263	} // end for yyj3
5264	r.ReadMapEnd()
5265}
5266
5267func (x *FsLogsRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
5268	var h codecSelfer102
5269	z, r := codec1978.GenHelperDecoder(d)
5270	_, _, _ = h, z, r
5271	var yyj22 int
5272	var yyb22 bool
5273	var yyhl22 bool = l >= 0
5274	yyj22++
5275	if yyhl22 {
5276		yyb22 = yyj22 > l
5277	} else {
5278		yyb22 = r.CheckBreak()
5279	}
5280	if yyb22 {
5281		r.ReadArrayEnd()
5282		return
5283	}
5284	r.ReadArrayElem()
5285	if r.TryDecodeAsNil() {
5286		x.AllocID = ""
5287	} else {
5288		x.AllocID = (string)(r.DecodeString())
5289	}
5290	yyj22++
5291	if yyhl22 {
5292		yyb22 = yyj22 > l
5293	} else {
5294		yyb22 = r.CheckBreak()
5295	}
5296	if yyb22 {
5297		r.ReadArrayEnd()
5298		return
5299	}
5300	r.ReadArrayElem()
5301	if r.TryDecodeAsNil() {
5302		x.Task = ""
5303	} else {
5304		x.Task = (string)(r.DecodeString())
5305	}
5306	yyj22++
5307	if yyhl22 {
5308		yyb22 = yyj22 > l
5309	} else {
5310		yyb22 = r.CheckBreak()
5311	}
5312	if yyb22 {
5313		r.ReadArrayEnd()
5314		return
5315	}
5316	r.ReadArrayElem()
5317	if r.TryDecodeAsNil() {
5318		x.LogType = ""
5319	} else {
5320		x.LogType = (string)(r.DecodeString())
5321	}
5322	yyj22++
5323	if yyhl22 {
5324		yyb22 = yyj22 > l
5325	} else {
5326		yyb22 = r.CheckBreak()
5327	}
5328	if yyb22 {
5329		r.ReadArrayEnd()
5330		return
5331	}
5332	r.ReadArrayElem()
5333	if r.TryDecodeAsNil() {
5334		x.Offset = 0
5335	} else {
5336		x.Offset = (int64)(r.DecodeInt64())
5337	}
5338	yyj22++
5339	if yyhl22 {
5340		yyb22 = yyj22 > l
5341	} else {
5342		yyb22 = r.CheckBreak()
5343	}
5344	if yyb22 {
5345		r.ReadArrayEnd()
5346		return
5347	}
5348	r.ReadArrayElem()
5349	if r.TryDecodeAsNil() {
5350		x.Origin = ""
5351	} else {
5352		x.Origin = (string)(r.DecodeString())
5353	}
5354	yyj22++
5355	if yyhl22 {
5356		yyb22 = yyj22 > l
5357	} else {
5358		yyb22 = r.CheckBreak()
5359	}
5360	if yyb22 {
5361		r.ReadArrayEnd()
5362		return
5363	}
5364	r.ReadArrayElem()
5365	if r.TryDecodeAsNil() {
5366		x.PlainText = false
5367	} else {
5368		x.PlainText = (bool)(r.DecodeBool())
5369	}
5370	yyj22++
5371	if yyhl22 {
5372		yyb22 = yyj22 > l
5373	} else {
5374		yyb22 = r.CheckBreak()
5375	}
5376	if yyb22 {
5377		r.ReadArrayEnd()
5378		return
5379	}
5380	r.ReadArrayElem()
5381	if r.TryDecodeAsNil() {
5382		x.Follow = false
5383	} else {
5384		x.Follow = (bool)(r.DecodeBool())
5385	}
5386	yyj22++
5387	if yyhl22 {
5388		yyb22 = yyj22 > l
5389	} else {
5390		yyb22 = r.CheckBreak()
5391	}
5392	if yyb22 {
5393		r.ReadArrayEnd()
5394		return
5395	}
5396	r.ReadArrayElem()
5397	if r.TryDecodeAsNil() {
5398		x.QueryOptions.Region = ""
5399	} else {
5400		x.Region = (string)(r.DecodeString())
5401	}
5402	yyj22++
5403	if yyhl22 {
5404		yyb22 = yyj22 > l
5405	} else {
5406		yyb22 = r.CheckBreak()
5407	}
5408	if yyb22 {
5409		r.ReadArrayEnd()
5410		return
5411	}
5412	r.ReadArrayElem()
5413	if r.TryDecodeAsNil() {
5414		x.QueryOptions.Namespace = ""
5415	} else {
5416		x.Namespace = (string)(r.DecodeString())
5417	}
5418	yyj22++
5419	if yyhl22 {
5420		yyb22 = yyj22 > l
5421	} else {
5422		yyb22 = r.CheckBreak()
5423	}
5424	if yyb22 {
5425		r.ReadArrayEnd()
5426		return
5427	}
5428	r.ReadArrayElem()
5429	if r.TryDecodeAsNil() {
5430		x.QueryOptions.MinQueryIndex = 0
5431	} else {
5432		x.MinQueryIndex = (uint64)(r.DecodeUint64())
5433	}
5434	yyj22++
5435	if yyhl22 {
5436		yyb22 = yyj22 > l
5437	} else {
5438		yyb22 = r.CheckBreak()
5439	}
5440	if yyb22 {
5441		r.ReadArrayEnd()
5442		return
5443	}
5444	r.ReadArrayElem()
5445	if r.TryDecodeAsNil() {
5446		x.QueryOptions.MaxQueryTime = 0
5447	} else {
5448		if false {
5449		} else if yyxt34 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt34 != nil {
5450			z.DecExtension(x.MaxQueryTime, yyxt34)
5451		} else {
5452			x.MaxQueryTime = (time.Duration)(r.DecodeInt64())
5453		}
5454	}
5455	yyj22++
5456	if yyhl22 {
5457		yyb22 = yyj22 > l
5458	} else {
5459		yyb22 = r.CheckBreak()
5460	}
5461	if yyb22 {
5462		r.ReadArrayEnd()
5463		return
5464	}
5465	r.ReadArrayElem()
5466	if r.TryDecodeAsNil() {
5467		x.QueryOptions.AllowStale = false
5468	} else {
5469		x.AllowStale = (bool)(r.DecodeBool())
5470	}
5471	yyj22++
5472	if yyhl22 {
5473		yyb22 = yyj22 > l
5474	} else {
5475		yyb22 = r.CheckBreak()
5476	}
5477	if yyb22 {
5478		r.ReadArrayEnd()
5479		return
5480	}
5481	r.ReadArrayElem()
5482	if r.TryDecodeAsNil() {
5483		x.QueryOptions.Prefix = ""
5484	} else {
5485		x.Prefix = (string)(r.DecodeString())
5486	}
5487	yyj22++
5488	if yyhl22 {
5489		yyb22 = yyj22 > l
5490	} else {
5491		yyb22 = r.CheckBreak()
5492	}
5493	if yyb22 {
5494		r.ReadArrayEnd()
5495		return
5496	}
5497	r.ReadArrayElem()
5498	if r.TryDecodeAsNil() {
5499		x.QueryOptions.AuthToken = ""
5500	} else {
5501		x.AuthToken = (string)(r.DecodeString())
5502	}
5503	yyj22++
5504	if yyhl22 {
5505		yyb22 = yyj22 > l
5506	} else {
5507		yyb22 = r.CheckBreak()
5508	}
5509	if yyb22 {
5510		r.ReadArrayEnd()
5511		return
5512	}
5513	r.ReadArrayElem()
5514	if r.TryDecodeAsNil() {
5515		x.QueryOptions.PerPage = 0
5516	} else {
5517		x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32))
5518	}
5519	yyj22++
5520	if yyhl22 {
5521		yyb22 = yyj22 > l
5522	} else {
5523		yyb22 = r.CheckBreak()
5524	}
5525	if yyb22 {
5526		r.ReadArrayEnd()
5527		return
5528	}
5529	r.ReadArrayElem()
5530	if r.TryDecodeAsNil() {
5531		x.QueryOptions.NextToken = ""
5532	} else {
5533		x.NextToken = (string)(r.DecodeString())
5534	}
5535	yyj22++
5536	if yyhl22 {
5537		yyb22 = yyj22 > l
5538	} else {
5539		yyb22 = r.CheckBreak()
5540	}
5541	if yyb22 {
5542		r.ReadArrayEnd()
5543		return
5544	}
5545	r.ReadArrayElem()
5546	if r.TryDecodeAsNil() {
5547		x.QueryOptions.InternalRpcInfo.Forwarded = false
5548	} else {
5549		x.Forwarded = (bool)(r.DecodeBool())
5550	}
5551	for {
5552		yyj22++
5553		if yyhl22 {
5554			yyb22 = yyj22 > l
5555		} else {
5556			yyb22 = r.CheckBreak()
5557		}
5558		if yyb22 {
5559			break
5560		}
5561		r.ReadArrayElem()
5562		z.DecStructFieldNotFound(yyj22-1, "")
5563	}
5564	r.ReadArrayEnd()
5565}
5566
5567func (x *StreamErrWrapper) CodecEncodeSelf(e *codec1978.Encoder) {
5568	var h codecSelfer102
5569	z, r := codec1978.GenHelperEncoder(e)
5570	_, _, _ = h, z, r
5571	if x == nil {
5572		r.EncodeNil()
5573	} else {
5574		if false {
5575		} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
5576			z.EncExtension(x, yyxt1)
5577		} else {
5578			yysep2 := !z.EncBinary()
5579			yy2arr2 := z.EncBasicHandle().StructToArray
5580			_, _ = yysep2, yy2arr2
5581			const yyr2 bool = false // struct tag has 'toArray'
5582			if yyr2 || yy2arr2 {
5583				r.WriteArrayStart(2)
5584			} else {
5585				r.WriteMapStart(2)
5586			}
5587			var yyn3 bool
5588			if x.Error == nil {
5589				yyn3 = true
5590				goto LABEL3
5591			}
5592		LABEL3:
5593			if yyr2 || yy2arr2 {
5594				if yyn3 {
5595					r.WriteArrayElem()
5596					r.EncodeNil()
5597				} else {
5598					r.WriteArrayElem()
5599					if x.Error == nil {
5600						r.EncodeNil()
5601					} else {
5602						x.Error.CodecEncodeSelf(e)
5603					}
5604				}
5605			} else {
5606				r.WriteMapElemKey()
5607				if z.IsJSONHandle() {
5608					z.WriteStr("\"Error\"")
5609				} else {
5610					r.EncodeStringEnc(codecSelferCcUTF8102, `Error`)
5611				}
5612				r.WriteMapElemValue()
5613				if yyn3 {
5614					r.EncodeNil()
5615				} else {
5616					if x.Error == nil {
5617						r.EncodeNil()
5618					} else {
5619						x.Error.CodecEncodeSelf(e)
5620					}
5621				}
5622			}
5623			if yyr2 || yy2arr2 {
5624				r.WriteArrayElem()
5625				if x.Payload == nil {
5626					r.EncodeNil()
5627				} else {
5628					if false {
5629					} else {
5630						r.EncodeStringBytesRaw([]byte(x.Payload))
5631					}
5632				}
5633			} else {
5634				r.WriteMapElemKey()
5635				if z.IsJSONHandle() {
5636					z.WriteStr("\"Payload\"")
5637				} else {
5638					r.EncodeStringEnc(codecSelferCcUTF8102, `Payload`)
5639				}
5640				r.WriteMapElemValue()
5641				if x.Payload == nil {
5642					r.EncodeNil()
5643				} else {
5644					if false {
5645					} else {
5646						r.EncodeStringBytesRaw([]byte(x.Payload))
5647					}
5648				}
5649			}
5650			if yyr2 || yy2arr2 {
5651				r.WriteArrayEnd()
5652			} else {
5653				r.WriteMapEnd()
5654			}
5655		}
5656	}
5657}
5658
5659func (x *StreamErrWrapper) CodecDecodeSelf(d *codec1978.Decoder) {
5660	var h codecSelfer102
5661	z, r := codec1978.GenHelperDecoder(d)
5662	_, _, _ = h, z, r
5663	if false {
5664	} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
5665		z.DecExtension(x, yyxt1)
5666	} else {
5667		yyct2 := r.ContainerType()
5668		if yyct2 == codecSelferValueTypeMap102 {
5669			yyl2 := r.ReadMapStart()
5670			if yyl2 == 0 {
5671				r.ReadMapEnd()
5672			} else {
5673				x.codecDecodeSelfFromMap(yyl2, d)
5674			}
5675		} else if yyct2 == codecSelferValueTypeArray102 {
5676			yyl2 := r.ReadArrayStart()
5677			if yyl2 == 0 {
5678				r.ReadArrayEnd()
5679			} else {
5680				x.codecDecodeSelfFromArray(yyl2, d)
5681			}
5682		} else {
5683			panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102)
5684		}
5685	}
5686}
5687
5688func (x *StreamErrWrapper) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
5689	var h codecSelfer102
5690	z, r := codec1978.GenHelperDecoder(d)
5691	_, _, _ = h, z, r
5692	var yyhl3 bool = l >= 0
5693	for yyj3 := 0; ; yyj3++ {
5694		if yyhl3 {
5695			if yyj3 >= l {
5696				break
5697			}
5698		} else {
5699			if r.CheckBreak() {
5700				break
5701			}
5702		}
5703		r.ReadMapElemKey()
5704		yys3 := z.StringView(r.DecodeStringAsBytes())
5705		r.ReadMapElemValue()
5706		switch yys3 {
5707		case "Error":
5708			if r.TryDecodeAsNil() {
5709				if true && x.Error != nil {
5710					x.Error = nil
5711				}
5712			} else {
5713				if x.Error == nil {
5714					x.Error = new(RpcError)
5715				}
5716
5717				x.Error.CodecDecodeSelf(d)
5718			}
5719		case "Payload":
5720			if r.TryDecodeAsNil() {
5721				x.Payload = nil
5722			} else {
5723				if false {
5724				} else {
5725					x.Payload = r.DecodeBytes(([]byte)(x.Payload), false)
5726				}
5727			}
5728		default:
5729			z.DecStructFieldNotFound(-1, yys3)
5730		} // end switch yys3
5731	} // end for yyj3
5732	r.ReadMapEnd()
5733}
5734
5735func (x *StreamErrWrapper) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
5736	var h codecSelfer102
5737	z, r := codec1978.GenHelperDecoder(d)
5738	_, _, _ = h, z, r
5739	var yyj7 int
5740	var yyb7 bool
5741	var yyhl7 bool = l >= 0
5742	yyj7++
5743	if yyhl7 {
5744		yyb7 = yyj7 > l
5745	} else {
5746		yyb7 = r.CheckBreak()
5747	}
5748	if yyb7 {
5749		r.ReadArrayEnd()
5750		return
5751	}
5752	r.ReadArrayElem()
5753	if r.TryDecodeAsNil() {
5754		if true && x.Error != nil {
5755			x.Error = nil
5756		}
5757	} else {
5758		if x.Error == nil {
5759			x.Error = new(RpcError)
5760		}
5761
5762		x.Error.CodecDecodeSelf(d)
5763	}
5764	yyj7++
5765	if yyhl7 {
5766		yyb7 = yyj7 > l
5767	} else {
5768		yyb7 = r.CheckBreak()
5769	}
5770	if yyb7 {
5771		r.ReadArrayEnd()
5772		return
5773	}
5774	r.ReadArrayElem()
5775	if r.TryDecodeAsNil() {
5776		x.Payload = nil
5777	} else {
5778		if false {
5779		} else {
5780			x.Payload = r.DecodeBytes(([]byte)(x.Payload), false)
5781		}
5782	}
5783	for {
5784		yyj7++
5785		if yyhl7 {
5786			yyb7 = yyj7 > l
5787		} else {
5788			yyb7 = r.CheckBreak()
5789		}
5790		if yyb7 {
5791			break
5792		}
5793		r.ReadArrayElem()
5794		z.DecStructFieldNotFound(yyj7-1, "")
5795	}
5796	r.ReadArrayEnd()
5797}
5798
5799func (x *AllocExecRequest) CodecEncodeSelf(e *codec1978.Encoder) {
5800	var h codecSelfer102
5801	z, r := codec1978.GenHelperEncoder(e)
5802	_, _, _ = h, z, r
5803	if x == nil {
5804		r.EncodeNil()
5805	} else {
5806		if false {
5807		} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
5808			z.EncExtension(x, yyxt1)
5809		} else {
5810			yysep2 := !z.EncBinary()
5811			yy2arr2 := z.EncBasicHandle().StructToArray
5812			_, _ = yysep2, yy2arr2
5813			const yyr2 bool = false // struct tag has 'toArray'
5814			if yyr2 || yy2arr2 {
5815				r.WriteArrayStart(14)
5816			} else {
5817				r.WriteMapStart(14)
5818			}
5819			if yyr2 || yy2arr2 {
5820				r.WriteArrayElem()
5821				if false {
5822				} else {
5823					if z.EncBasicHandle().StringToRaw {
5824						r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID)))
5825					} else {
5826						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AllocID))
5827					}
5828				}
5829			} else {
5830				r.WriteMapElemKey()
5831				if z.IsJSONHandle() {
5832					z.WriteStr("\"AllocID\"")
5833				} else {
5834					r.EncodeStringEnc(codecSelferCcUTF8102, `AllocID`)
5835				}
5836				r.WriteMapElemValue()
5837				if false {
5838				} else {
5839					if z.EncBasicHandle().StringToRaw {
5840						r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID)))
5841					} else {
5842						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AllocID))
5843					}
5844				}
5845			}
5846			if yyr2 || yy2arr2 {
5847				r.WriteArrayElem()
5848				if false {
5849				} else {
5850					if z.EncBasicHandle().StringToRaw {
5851						r.EncodeStringBytesRaw(z.BytesView(string(x.Task)))
5852					} else {
5853						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Task))
5854					}
5855				}
5856			} else {
5857				r.WriteMapElemKey()
5858				if z.IsJSONHandle() {
5859					z.WriteStr("\"Task\"")
5860				} else {
5861					r.EncodeStringEnc(codecSelferCcUTF8102, `Task`)
5862				}
5863				r.WriteMapElemValue()
5864				if false {
5865				} else {
5866					if z.EncBasicHandle().StringToRaw {
5867						r.EncodeStringBytesRaw(z.BytesView(string(x.Task)))
5868					} else {
5869						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Task))
5870					}
5871				}
5872			}
5873			if yyr2 || yy2arr2 {
5874				r.WriteArrayElem()
5875				if false {
5876				} else {
5877					r.EncodeBool(bool(x.Tty))
5878				}
5879			} else {
5880				r.WriteMapElemKey()
5881				if z.IsJSONHandle() {
5882					z.WriteStr("\"Tty\"")
5883				} else {
5884					r.EncodeStringEnc(codecSelferCcUTF8102, `Tty`)
5885				}
5886				r.WriteMapElemValue()
5887				if false {
5888				} else {
5889					r.EncodeBool(bool(x.Tty))
5890				}
5891			}
5892			if yyr2 || yy2arr2 {
5893				r.WriteArrayElem()
5894				if x.Cmd == nil {
5895					r.EncodeNil()
5896				} else {
5897					if false {
5898					} else {
5899						z.F.EncSliceStringV(x.Cmd, e)
5900					}
5901				}
5902			} else {
5903				r.WriteMapElemKey()
5904				if z.IsJSONHandle() {
5905					z.WriteStr("\"Cmd\"")
5906				} else {
5907					r.EncodeStringEnc(codecSelferCcUTF8102, `Cmd`)
5908				}
5909				r.WriteMapElemValue()
5910				if x.Cmd == nil {
5911					r.EncodeNil()
5912				} else {
5913					if false {
5914					} else {
5915						z.F.EncSliceStringV(x.Cmd, e)
5916					}
5917				}
5918			}
5919			if yyr2 || yy2arr2 {
5920				r.WriteArrayElem()
5921				if false {
5922				} else {
5923					if z.EncBasicHandle().StringToRaw {
5924						r.EncodeStringBytesRaw(z.BytesView(string(x.Region)))
5925					} else {
5926						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Region))
5927					}
5928				}
5929			} else {
5930				r.WriteMapElemKey()
5931				if z.IsJSONHandle() {
5932					z.WriteStr("\"Region\"")
5933				} else {
5934					r.EncodeStringEnc(codecSelferCcUTF8102, `Region`)
5935				}
5936				r.WriteMapElemValue()
5937				if false {
5938				} else {
5939					if z.EncBasicHandle().StringToRaw {
5940						r.EncodeStringBytesRaw(z.BytesView(string(x.Region)))
5941					} else {
5942						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Region))
5943					}
5944				}
5945			}
5946			if yyr2 || yy2arr2 {
5947				r.WriteArrayElem()
5948				if false {
5949				} else {
5950					if z.EncBasicHandle().StringToRaw {
5951						r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace)))
5952					} else {
5953						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Namespace))
5954					}
5955				}
5956			} else {
5957				r.WriteMapElemKey()
5958				if z.IsJSONHandle() {
5959					z.WriteStr("\"Namespace\"")
5960				} else {
5961					r.EncodeStringEnc(codecSelferCcUTF8102, `Namespace`)
5962				}
5963				r.WriteMapElemValue()
5964				if false {
5965				} else {
5966					if z.EncBasicHandle().StringToRaw {
5967						r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace)))
5968					} else {
5969						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Namespace))
5970					}
5971				}
5972			}
5973			if yyr2 || yy2arr2 {
5974				r.WriteArrayElem()
5975				if false {
5976				} else {
5977					r.EncodeUint(uint64(x.MinQueryIndex))
5978				}
5979			} else {
5980				r.WriteMapElemKey()
5981				if z.IsJSONHandle() {
5982					z.WriteStr("\"MinQueryIndex\"")
5983				} else {
5984					r.EncodeStringEnc(codecSelferCcUTF8102, `MinQueryIndex`)
5985				}
5986				r.WriteMapElemValue()
5987				if false {
5988				} else {
5989					r.EncodeUint(uint64(x.MinQueryIndex))
5990				}
5991			}
5992			if yyr2 || yy2arr2 {
5993				r.WriteArrayElem()
5994				if false {
5995				} else if yyxt25 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt25 != nil {
5996					z.EncExtension(x.MaxQueryTime, yyxt25)
5997				} else {
5998					r.EncodeInt(int64(x.MaxQueryTime))
5999				}
6000			} else {
6001				r.WriteMapElemKey()
6002				if z.IsJSONHandle() {
6003					z.WriteStr("\"MaxQueryTime\"")
6004				} else {
6005					r.EncodeStringEnc(codecSelferCcUTF8102, `MaxQueryTime`)
6006				}
6007				r.WriteMapElemValue()
6008				if false {
6009				} else if yyxt26 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt26 != nil {
6010					z.EncExtension(x.MaxQueryTime, yyxt26)
6011				} else {
6012					r.EncodeInt(int64(x.MaxQueryTime))
6013				}
6014			}
6015			if yyr2 || yy2arr2 {
6016				r.WriteArrayElem()
6017				if false {
6018				} else {
6019					r.EncodeBool(bool(x.AllowStale))
6020				}
6021			} else {
6022				r.WriteMapElemKey()
6023				if z.IsJSONHandle() {
6024					z.WriteStr("\"AllowStale\"")
6025				} else {
6026					r.EncodeStringEnc(codecSelferCcUTF8102, `AllowStale`)
6027				}
6028				r.WriteMapElemValue()
6029				if false {
6030				} else {
6031					r.EncodeBool(bool(x.AllowStale))
6032				}
6033			}
6034			if yyr2 || yy2arr2 {
6035				r.WriteArrayElem()
6036				if false {
6037				} else {
6038					if z.EncBasicHandle().StringToRaw {
6039						r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix)))
6040					} else {
6041						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Prefix))
6042					}
6043				}
6044			} else {
6045				r.WriteMapElemKey()
6046				if z.IsJSONHandle() {
6047					z.WriteStr("\"Prefix\"")
6048				} else {
6049					r.EncodeStringEnc(codecSelferCcUTF8102, `Prefix`)
6050				}
6051				r.WriteMapElemValue()
6052				if false {
6053				} else {
6054					if z.EncBasicHandle().StringToRaw {
6055						r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix)))
6056					} else {
6057						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Prefix))
6058					}
6059				}
6060			}
6061			if yyr2 || yy2arr2 {
6062				r.WriteArrayElem()
6063				if false {
6064				} else {
6065					if z.EncBasicHandle().StringToRaw {
6066						r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken)))
6067					} else {
6068						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AuthToken))
6069					}
6070				}
6071			} else {
6072				r.WriteMapElemKey()
6073				if z.IsJSONHandle() {
6074					z.WriteStr("\"AuthToken\"")
6075				} else {
6076					r.EncodeStringEnc(codecSelferCcUTF8102, `AuthToken`)
6077				}
6078				r.WriteMapElemValue()
6079				if false {
6080				} else {
6081					if z.EncBasicHandle().StringToRaw {
6082						r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken)))
6083					} else {
6084						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AuthToken))
6085					}
6086				}
6087			}
6088			if yyr2 || yy2arr2 {
6089				r.WriteArrayElem()
6090				if false {
6091				} else {
6092					r.EncodeInt(int64(x.PerPage))
6093				}
6094			} else {
6095				r.WriteMapElemKey()
6096				if z.IsJSONHandle() {
6097					z.WriteStr("\"PerPage\"")
6098				} else {
6099					r.EncodeStringEnc(codecSelferCcUTF8102, `PerPage`)
6100				}
6101				r.WriteMapElemValue()
6102				if false {
6103				} else {
6104					r.EncodeInt(int64(x.PerPage))
6105				}
6106			}
6107			if yyr2 || yy2arr2 {
6108				r.WriteArrayElem()
6109				if false {
6110				} else {
6111					if z.EncBasicHandle().StringToRaw {
6112						r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken)))
6113					} else {
6114						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.NextToken))
6115					}
6116				}
6117			} else {
6118				r.WriteMapElemKey()
6119				if z.IsJSONHandle() {
6120					z.WriteStr("\"NextToken\"")
6121				} else {
6122					r.EncodeStringEnc(codecSelferCcUTF8102, `NextToken`)
6123				}
6124				r.WriteMapElemValue()
6125				if false {
6126				} else {
6127					if z.EncBasicHandle().StringToRaw {
6128						r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken)))
6129					} else {
6130						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.NextToken))
6131					}
6132				}
6133			}
6134			if yyr2 || yy2arr2 {
6135				r.WriteArrayElem()
6136				if false {
6137				} else {
6138					r.EncodeBool(bool(x.Forwarded))
6139				}
6140			} else {
6141				r.WriteMapElemKey()
6142				if z.IsJSONHandle() {
6143					z.WriteStr("\"Forwarded\"")
6144				} else {
6145					r.EncodeStringEnc(codecSelferCcUTF8102, `Forwarded`)
6146				}
6147				r.WriteMapElemValue()
6148				if false {
6149				} else {
6150					r.EncodeBool(bool(x.Forwarded))
6151				}
6152			}
6153			if yyr2 || yy2arr2 {
6154				r.WriteArrayEnd()
6155			} else {
6156				r.WriteMapEnd()
6157			}
6158		}
6159	}
6160}
6161
6162func (x *AllocExecRequest) CodecDecodeSelf(d *codec1978.Decoder) {
6163	var h codecSelfer102
6164	z, r := codec1978.GenHelperDecoder(d)
6165	_, _, _ = h, z, r
6166	if false {
6167	} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
6168		z.DecExtension(x, yyxt1)
6169	} else {
6170		yyct2 := r.ContainerType()
6171		if yyct2 == codecSelferValueTypeMap102 {
6172			yyl2 := r.ReadMapStart()
6173			if yyl2 == 0 {
6174				r.ReadMapEnd()
6175			} else {
6176				x.codecDecodeSelfFromMap(yyl2, d)
6177			}
6178		} else if yyct2 == codecSelferValueTypeArray102 {
6179			yyl2 := r.ReadArrayStart()
6180			if yyl2 == 0 {
6181				r.ReadArrayEnd()
6182			} else {
6183				x.codecDecodeSelfFromArray(yyl2, d)
6184			}
6185		} else {
6186			panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102)
6187		}
6188	}
6189}
6190
6191func (x *AllocExecRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
6192	var h codecSelfer102
6193	z, r := codec1978.GenHelperDecoder(d)
6194	_, _, _ = h, z, r
6195	var yyhl3 bool = l >= 0
6196	for yyj3 := 0; ; yyj3++ {
6197		if yyhl3 {
6198			if yyj3 >= l {
6199				break
6200			}
6201		} else {
6202			if r.CheckBreak() {
6203				break
6204			}
6205		}
6206		r.ReadMapElemKey()
6207		yys3 := z.StringView(r.DecodeStringAsBytes())
6208		r.ReadMapElemValue()
6209		switch yys3 {
6210		case "AllocID":
6211			if r.TryDecodeAsNil() {
6212				x.AllocID = ""
6213			} else {
6214				x.AllocID = (string)(r.DecodeString())
6215			}
6216		case "Task":
6217			if r.TryDecodeAsNil() {
6218				x.Task = ""
6219			} else {
6220				x.Task = (string)(r.DecodeString())
6221			}
6222		case "Tty":
6223			if r.TryDecodeAsNil() {
6224				x.Tty = false
6225			} else {
6226				x.Tty = (bool)(r.DecodeBool())
6227			}
6228		case "Cmd":
6229			if r.TryDecodeAsNil() {
6230				x.Cmd = nil
6231			} else {
6232				if false {
6233				} else {
6234					z.F.DecSliceStringX(&x.Cmd, d)
6235				}
6236			}
6237		case "Region":
6238			if r.TryDecodeAsNil() {
6239				x.QueryOptions.Region = ""
6240			} else {
6241				x.Region = (string)(r.DecodeString())
6242			}
6243		case "Namespace":
6244			if r.TryDecodeAsNil() {
6245				x.QueryOptions.Namespace = ""
6246			} else {
6247				x.Namespace = (string)(r.DecodeString())
6248			}
6249		case "MinQueryIndex":
6250			if r.TryDecodeAsNil() {
6251				x.QueryOptions.MinQueryIndex = 0
6252			} else {
6253				x.MinQueryIndex = (uint64)(r.DecodeUint64())
6254			}
6255		case "MaxQueryTime":
6256			if r.TryDecodeAsNil() {
6257				x.QueryOptions.MaxQueryTime = 0
6258			} else {
6259				if false {
6260				} else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil {
6261					z.DecExtension(x.MaxQueryTime, yyxt13)
6262				} else {
6263					x.MaxQueryTime = (time.Duration)(r.DecodeInt64())
6264				}
6265			}
6266		case "AllowStale":
6267			if r.TryDecodeAsNil() {
6268				x.QueryOptions.AllowStale = false
6269			} else {
6270				x.AllowStale = (bool)(r.DecodeBool())
6271			}
6272		case "Prefix":
6273			if r.TryDecodeAsNil() {
6274				x.QueryOptions.Prefix = ""
6275			} else {
6276				x.Prefix = (string)(r.DecodeString())
6277			}
6278		case "AuthToken":
6279			if r.TryDecodeAsNil() {
6280				x.QueryOptions.AuthToken = ""
6281			} else {
6282				x.AuthToken = (string)(r.DecodeString())
6283			}
6284		case "PerPage":
6285			if r.TryDecodeAsNil() {
6286				x.QueryOptions.PerPage = 0
6287			} else {
6288				x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32))
6289			}
6290		case "NextToken":
6291			if r.TryDecodeAsNil() {
6292				x.QueryOptions.NextToken = ""
6293			} else {
6294				x.NextToken = (string)(r.DecodeString())
6295			}
6296		case "Forwarded":
6297			if r.TryDecodeAsNil() {
6298				x.QueryOptions.InternalRpcInfo.Forwarded = false
6299			} else {
6300				x.Forwarded = (bool)(r.DecodeBool())
6301			}
6302		default:
6303			z.DecStructFieldNotFound(-1, yys3)
6304		} // end switch yys3
6305	} // end for yyj3
6306	r.ReadMapEnd()
6307}
6308
6309func (x *AllocExecRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
6310	var h codecSelfer102
6311	z, r := codec1978.GenHelperDecoder(d)
6312	_, _, _ = h, z, r
6313	var yyj20 int
6314	var yyb20 bool
6315	var yyhl20 bool = l >= 0
6316	yyj20++
6317	if yyhl20 {
6318		yyb20 = yyj20 > l
6319	} else {
6320		yyb20 = r.CheckBreak()
6321	}
6322	if yyb20 {
6323		r.ReadArrayEnd()
6324		return
6325	}
6326	r.ReadArrayElem()
6327	if r.TryDecodeAsNil() {
6328		x.AllocID = ""
6329	} else {
6330		x.AllocID = (string)(r.DecodeString())
6331	}
6332	yyj20++
6333	if yyhl20 {
6334		yyb20 = yyj20 > l
6335	} else {
6336		yyb20 = r.CheckBreak()
6337	}
6338	if yyb20 {
6339		r.ReadArrayEnd()
6340		return
6341	}
6342	r.ReadArrayElem()
6343	if r.TryDecodeAsNil() {
6344		x.Task = ""
6345	} else {
6346		x.Task = (string)(r.DecodeString())
6347	}
6348	yyj20++
6349	if yyhl20 {
6350		yyb20 = yyj20 > l
6351	} else {
6352		yyb20 = r.CheckBreak()
6353	}
6354	if yyb20 {
6355		r.ReadArrayEnd()
6356		return
6357	}
6358	r.ReadArrayElem()
6359	if r.TryDecodeAsNil() {
6360		x.Tty = false
6361	} else {
6362		x.Tty = (bool)(r.DecodeBool())
6363	}
6364	yyj20++
6365	if yyhl20 {
6366		yyb20 = yyj20 > l
6367	} else {
6368		yyb20 = r.CheckBreak()
6369	}
6370	if yyb20 {
6371		r.ReadArrayEnd()
6372		return
6373	}
6374	r.ReadArrayElem()
6375	if r.TryDecodeAsNil() {
6376		x.Cmd = nil
6377	} else {
6378		if false {
6379		} else {
6380			z.F.DecSliceStringX(&x.Cmd, d)
6381		}
6382	}
6383	yyj20++
6384	if yyhl20 {
6385		yyb20 = yyj20 > l
6386	} else {
6387		yyb20 = r.CheckBreak()
6388	}
6389	if yyb20 {
6390		r.ReadArrayEnd()
6391		return
6392	}
6393	r.ReadArrayElem()
6394	if r.TryDecodeAsNil() {
6395		x.QueryOptions.Region = ""
6396	} else {
6397		x.Region = (string)(r.DecodeString())
6398	}
6399	yyj20++
6400	if yyhl20 {
6401		yyb20 = yyj20 > l
6402	} else {
6403		yyb20 = r.CheckBreak()
6404	}
6405	if yyb20 {
6406		r.ReadArrayEnd()
6407		return
6408	}
6409	r.ReadArrayElem()
6410	if r.TryDecodeAsNil() {
6411		x.QueryOptions.Namespace = ""
6412	} else {
6413		x.Namespace = (string)(r.DecodeString())
6414	}
6415	yyj20++
6416	if yyhl20 {
6417		yyb20 = yyj20 > l
6418	} else {
6419		yyb20 = r.CheckBreak()
6420	}
6421	if yyb20 {
6422		r.ReadArrayEnd()
6423		return
6424	}
6425	r.ReadArrayElem()
6426	if r.TryDecodeAsNil() {
6427		x.QueryOptions.MinQueryIndex = 0
6428	} else {
6429		x.MinQueryIndex = (uint64)(r.DecodeUint64())
6430	}
6431	yyj20++
6432	if yyhl20 {
6433		yyb20 = yyj20 > l
6434	} else {
6435		yyb20 = r.CheckBreak()
6436	}
6437	if yyb20 {
6438		r.ReadArrayEnd()
6439		return
6440	}
6441	r.ReadArrayElem()
6442	if r.TryDecodeAsNil() {
6443		x.QueryOptions.MaxQueryTime = 0
6444	} else {
6445		if false {
6446		} else if yyxt30 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt30 != nil {
6447			z.DecExtension(x.MaxQueryTime, yyxt30)
6448		} else {
6449			x.MaxQueryTime = (time.Duration)(r.DecodeInt64())
6450		}
6451	}
6452	yyj20++
6453	if yyhl20 {
6454		yyb20 = yyj20 > l
6455	} else {
6456		yyb20 = r.CheckBreak()
6457	}
6458	if yyb20 {
6459		r.ReadArrayEnd()
6460		return
6461	}
6462	r.ReadArrayElem()
6463	if r.TryDecodeAsNil() {
6464		x.QueryOptions.AllowStale = false
6465	} else {
6466		x.AllowStale = (bool)(r.DecodeBool())
6467	}
6468	yyj20++
6469	if yyhl20 {
6470		yyb20 = yyj20 > l
6471	} else {
6472		yyb20 = r.CheckBreak()
6473	}
6474	if yyb20 {
6475		r.ReadArrayEnd()
6476		return
6477	}
6478	r.ReadArrayElem()
6479	if r.TryDecodeAsNil() {
6480		x.QueryOptions.Prefix = ""
6481	} else {
6482		x.Prefix = (string)(r.DecodeString())
6483	}
6484	yyj20++
6485	if yyhl20 {
6486		yyb20 = yyj20 > l
6487	} else {
6488		yyb20 = r.CheckBreak()
6489	}
6490	if yyb20 {
6491		r.ReadArrayEnd()
6492		return
6493	}
6494	r.ReadArrayElem()
6495	if r.TryDecodeAsNil() {
6496		x.QueryOptions.AuthToken = ""
6497	} else {
6498		x.AuthToken = (string)(r.DecodeString())
6499	}
6500	yyj20++
6501	if yyhl20 {
6502		yyb20 = yyj20 > l
6503	} else {
6504		yyb20 = r.CheckBreak()
6505	}
6506	if yyb20 {
6507		r.ReadArrayEnd()
6508		return
6509	}
6510	r.ReadArrayElem()
6511	if r.TryDecodeAsNil() {
6512		x.QueryOptions.PerPage = 0
6513	} else {
6514		x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32))
6515	}
6516	yyj20++
6517	if yyhl20 {
6518		yyb20 = yyj20 > l
6519	} else {
6520		yyb20 = r.CheckBreak()
6521	}
6522	if yyb20 {
6523		r.ReadArrayEnd()
6524		return
6525	}
6526	r.ReadArrayElem()
6527	if r.TryDecodeAsNil() {
6528		x.QueryOptions.NextToken = ""
6529	} else {
6530		x.NextToken = (string)(r.DecodeString())
6531	}
6532	yyj20++
6533	if yyhl20 {
6534		yyb20 = yyj20 > l
6535	} else {
6536		yyb20 = r.CheckBreak()
6537	}
6538	if yyb20 {
6539		r.ReadArrayEnd()
6540		return
6541	}
6542	r.ReadArrayElem()
6543	if r.TryDecodeAsNil() {
6544		x.QueryOptions.InternalRpcInfo.Forwarded = false
6545	} else {
6546		x.Forwarded = (bool)(r.DecodeBool())
6547	}
6548	for {
6549		yyj20++
6550		if yyhl20 {
6551			yyb20 = yyj20 > l
6552		} else {
6553			yyb20 = r.CheckBreak()
6554		}
6555		if yyb20 {
6556			break
6557		}
6558		r.ReadArrayElem()
6559		z.DecStructFieldNotFound(yyj20-1, "")
6560	}
6561	r.ReadArrayEnd()
6562}
6563
6564func (x *AllocStatsRequest) CodecEncodeSelf(e *codec1978.Encoder) {
6565	var h codecSelfer102
6566	z, r := codec1978.GenHelperEncoder(e)
6567	_, _, _ = h, z, r
6568	if x == nil {
6569		r.EncodeNil()
6570	} else {
6571		if false {
6572		} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
6573			z.EncExtension(x, yyxt1)
6574		} else {
6575			yysep2 := !z.EncBinary()
6576			yy2arr2 := z.EncBasicHandle().StructToArray
6577			_, _ = yysep2, yy2arr2
6578			const yyr2 bool = false // struct tag has 'toArray'
6579			if yyr2 || yy2arr2 {
6580				r.WriteArrayStart(12)
6581			} else {
6582				r.WriteMapStart(12)
6583			}
6584			if yyr2 || yy2arr2 {
6585				r.WriteArrayElem()
6586				if false {
6587				} else {
6588					if z.EncBasicHandle().StringToRaw {
6589						r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID)))
6590					} else {
6591						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AllocID))
6592					}
6593				}
6594			} else {
6595				r.WriteMapElemKey()
6596				if z.IsJSONHandle() {
6597					z.WriteStr("\"AllocID\"")
6598				} else {
6599					r.EncodeStringEnc(codecSelferCcUTF8102, `AllocID`)
6600				}
6601				r.WriteMapElemValue()
6602				if false {
6603				} else {
6604					if z.EncBasicHandle().StringToRaw {
6605						r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID)))
6606					} else {
6607						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AllocID))
6608					}
6609				}
6610			}
6611			if yyr2 || yy2arr2 {
6612				r.WriteArrayElem()
6613				if false {
6614				} else {
6615					if z.EncBasicHandle().StringToRaw {
6616						r.EncodeStringBytesRaw(z.BytesView(string(x.Task)))
6617					} else {
6618						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Task))
6619					}
6620				}
6621			} else {
6622				r.WriteMapElemKey()
6623				if z.IsJSONHandle() {
6624					z.WriteStr("\"Task\"")
6625				} else {
6626					r.EncodeStringEnc(codecSelferCcUTF8102, `Task`)
6627				}
6628				r.WriteMapElemValue()
6629				if false {
6630				} else {
6631					if z.EncBasicHandle().StringToRaw {
6632						r.EncodeStringBytesRaw(z.BytesView(string(x.Task)))
6633					} else {
6634						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Task))
6635					}
6636				}
6637			}
6638			if yyr2 || yy2arr2 {
6639				r.WriteArrayElem()
6640				if false {
6641				} else {
6642					if z.EncBasicHandle().StringToRaw {
6643						r.EncodeStringBytesRaw(z.BytesView(string(x.Region)))
6644					} else {
6645						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Region))
6646					}
6647				}
6648			} else {
6649				r.WriteMapElemKey()
6650				if z.IsJSONHandle() {
6651					z.WriteStr("\"Region\"")
6652				} else {
6653					r.EncodeStringEnc(codecSelferCcUTF8102, `Region`)
6654				}
6655				r.WriteMapElemValue()
6656				if false {
6657				} else {
6658					if z.EncBasicHandle().StringToRaw {
6659						r.EncodeStringBytesRaw(z.BytesView(string(x.Region)))
6660					} else {
6661						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Region))
6662					}
6663				}
6664			}
6665			if yyr2 || yy2arr2 {
6666				r.WriteArrayElem()
6667				if false {
6668				} else {
6669					if z.EncBasicHandle().StringToRaw {
6670						r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace)))
6671					} else {
6672						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Namespace))
6673					}
6674				}
6675			} else {
6676				r.WriteMapElemKey()
6677				if z.IsJSONHandle() {
6678					z.WriteStr("\"Namespace\"")
6679				} else {
6680					r.EncodeStringEnc(codecSelferCcUTF8102, `Namespace`)
6681				}
6682				r.WriteMapElemValue()
6683				if false {
6684				} else {
6685					if z.EncBasicHandle().StringToRaw {
6686						r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace)))
6687					} else {
6688						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Namespace))
6689					}
6690				}
6691			}
6692			if yyr2 || yy2arr2 {
6693				r.WriteArrayElem()
6694				if false {
6695				} else {
6696					r.EncodeUint(uint64(x.MinQueryIndex))
6697				}
6698			} else {
6699				r.WriteMapElemKey()
6700				if z.IsJSONHandle() {
6701					z.WriteStr("\"MinQueryIndex\"")
6702				} else {
6703					r.EncodeStringEnc(codecSelferCcUTF8102, `MinQueryIndex`)
6704				}
6705				r.WriteMapElemValue()
6706				if false {
6707				} else {
6708					r.EncodeUint(uint64(x.MinQueryIndex))
6709				}
6710			}
6711			if yyr2 || yy2arr2 {
6712				r.WriteArrayElem()
6713				if false {
6714				} else if yyxt19 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt19 != nil {
6715					z.EncExtension(x.MaxQueryTime, yyxt19)
6716				} else {
6717					r.EncodeInt(int64(x.MaxQueryTime))
6718				}
6719			} else {
6720				r.WriteMapElemKey()
6721				if z.IsJSONHandle() {
6722					z.WriteStr("\"MaxQueryTime\"")
6723				} else {
6724					r.EncodeStringEnc(codecSelferCcUTF8102, `MaxQueryTime`)
6725				}
6726				r.WriteMapElemValue()
6727				if false {
6728				} else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil {
6729					z.EncExtension(x.MaxQueryTime, yyxt20)
6730				} else {
6731					r.EncodeInt(int64(x.MaxQueryTime))
6732				}
6733			}
6734			if yyr2 || yy2arr2 {
6735				r.WriteArrayElem()
6736				if false {
6737				} else {
6738					r.EncodeBool(bool(x.AllowStale))
6739				}
6740			} else {
6741				r.WriteMapElemKey()
6742				if z.IsJSONHandle() {
6743					z.WriteStr("\"AllowStale\"")
6744				} else {
6745					r.EncodeStringEnc(codecSelferCcUTF8102, `AllowStale`)
6746				}
6747				r.WriteMapElemValue()
6748				if false {
6749				} else {
6750					r.EncodeBool(bool(x.AllowStale))
6751				}
6752			}
6753			if yyr2 || yy2arr2 {
6754				r.WriteArrayElem()
6755				if false {
6756				} else {
6757					if z.EncBasicHandle().StringToRaw {
6758						r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix)))
6759					} else {
6760						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Prefix))
6761					}
6762				}
6763			} else {
6764				r.WriteMapElemKey()
6765				if z.IsJSONHandle() {
6766					z.WriteStr("\"Prefix\"")
6767				} else {
6768					r.EncodeStringEnc(codecSelferCcUTF8102, `Prefix`)
6769				}
6770				r.WriteMapElemValue()
6771				if false {
6772				} else {
6773					if z.EncBasicHandle().StringToRaw {
6774						r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix)))
6775					} else {
6776						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Prefix))
6777					}
6778				}
6779			}
6780			if yyr2 || yy2arr2 {
6781				r.WriteArrayElem()
6782				if false {
6783				} else {
6784					if z.EncBasicHandle().StringToRaw {
6785						r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken)))
6786					} else {
6787						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AuthToken))
6788					}
6789				}
6790			} else {
6791				r.WriteMapElemKey()
6792				if z.IsJSONHandle() {
6793					z.WriteStr("\"AuthToken\"")
6794				} else {
6795					r.EncodeStringEnc(codecSelferCcUTF8102, `AuthToken`)
6796				}
6797				r.WriteMapElemValue()
6798				if false {
6799				} else {
6800					if z.EncBasicHandle().StringToRaw {
6801						r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken)))
6802					} else {
6803						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AuthToken))
6804					}
6805				}
6806			}
6807			if yyr2 || yy2arr2 {
6808				r.WriteArrayElem()
6809				if false {
6810				} else {
6811					r.EncodeInt(int64(x.PerPage))
6812				}
6813			} else {
6814				r.WriteMapElemKey()
6815				if z.IsJSONHandle() {
6816					z.WriteStr("\"PerPage\"")
6817				} else {
6818					r.EncodeStringEnc(codecSelferCcUTF8102, `PerPage`)
6819				}
6820				r.WriteMapElemValue()
6821				if false {
6822				} else {
6823					r.EncodeInt(int64(x.PerPage))
6824				}
6825			}
6826			if yyr2 || yy2arr2 {
6827				r.WriteArrayElem()
6828				if false {
6829				} else {
6830					if z.EncBasicHandle().StringToRaw {
6831						r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken)))
6832					} else {
6833						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.NextToken))
6834					}
6835				}
6836			} else {
6837				r.WriteMapElemKey()
6838				if z.IsJSONHandle() {
6839					z.WriteStr("\"NextToken\"")
6840				} else {
6841					r.EncodeStringEnc(codecSelferCcUTF8102, `NextToken`)
6842				}
6843				r.WriteMapElemValue()
6844				if false {
6845				} else {
6846					if z.EncBasicHandle().StringToRaw {
6847						r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken)))
6848					} else {
6849						r.EncodeStringEnc(codecSelferCcUTF8102, string(x.NextToken))
6850					}
6851				}
6852			}
6853			if yyr2 || yy2arr2 {
6854				r.WriteArrayElem()
6855				if false {
6856				} else {
6857					r.EncodeBool(bool(x.Forwarded))
6858				}
6859			} else {
6860				r.WriteMapElemKey()
6861				if z.IsJSONHandle() {
6862					z.WriteStr("\"Forwarded\"")
6863				} else {
6864					r.EncodeStringEnc(codecSelferCcUTF8102, `Forwarded`)
6865				}
6866				r.WriteMapElemValue()
6867				if false {
6868				} else {
6869					r.EncodeBool(bool(x.Forwarded))
6870				}
6871			}
6872			if yyr2 || yy2arr2 {
6873				r.WriteArrayEnd()
6874			} else {
6875				r.WriteMapEnd()
6876			}
6877		}
6878	}
6879}
6880
6881func (x *AllocStatsRequest) CodecDecodeSelf(d *codec1978.Decoder) {
6882	var h codecSelfer102
6883	z, r := codec1978.GenHelperDecoder(d)
6884	_, _, _ = h, z, r
6885	if false {
6886	} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
6887		z.DecExtension(x, yyxt1)
6888	} else {
6889		yyct2 := r.ContainerType()
6890		if yyct2 == codecSelferValueTypeMap102 {
6891			yyl2 := r.ReadMapStart()
6892			if yyl2 == 0 {
6893				r.ReadMapEnd()
6894			} else {
6895				x.codecDecodeSelfFromMap(yyl2, d)
6896			}
6897		} else if yyct2 == codecSelferValueTypeArray102 {
6898			yyl2 := r.ReadArrayStart()
6899			if yyl2 == 0 {
6900				r.ReadArrayEnd()
6901			} else {
6902				x.codecDecodeSelfFromArray(yyl2, d)
6903			}
6904		} else {
6905			panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102)
6906		}
6907	}
6908}
6909
6910func (x *AllocStatsRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
6911	var h codecSelfer102
6912	z, r := codec1978.GenHelperDecoder(d)
6913	_, _, _ = h, z, r
6914	var yyhl3 bool = l >= 0
6915	for yyj3 := 0; ; yyj3++ {
6916		if yyhl3 {
6917			if yyj3 >= l {
6918				break
6919			}
6920		} else {
6921			if r.CheckBreak() {
6922				break
6923			}
6924		}
6925		r.ReadMapElemKey()
6926		yys3 := z.StringView(r.DecodeStringAsBytes())
6927		r.ReadMapElemValue()
6928		switch yys3 {
6929		case "AllocID":
6930			if r.TryDecodeAsNil() {
6931				x.AllocID = ""
6932			} else {
6933				x.AllocID = (string)(r.DecodeString())
6934			}
6935		case "Task":
6936			if r.TryDecodeAsNil() {
6937				x.Task = ""
6938			} else {
6939				x.Task = (string)(r.DecodeString())
6940			}
6941		case "Region":
6942			if r.TryDecodeAsNil() {
6943				x.QueryOptions.Region = ""
6944			} else {
6945				x.Region = (string)(r.DecodeString())
6946			}
6947		case "Namespace":
6948			if r.TryDecodeAsNil() {
6949				x.QueryOptions.Namespace = ""
6950			} else {
6951				x.Namespace = (string)(r.DecodeString())
6952			}
6953		case "MinQueryIndex":
6954			if r.TryDecodeAsNil() {
6955				x.QueryOptions.MinQueryIndex = 0
6956			} else {
6957				x.MinQueryIndex = (uint64)(r.DecodeUint64())
6958			}
6959		case "MaxQueryTime":
6960			if r.TryDecodeAsNil() {
6961				x.QueryOptions.MaxQueryTime = 0
6962			} else {
6963				if false {
6964				} else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil {
6965					z.DecExtension(x.MaxQueryTime, yyxt10)
6966				} else {
6967					x.MaxQueryTime = (time.Duration)(r.DecodeInt64())
6968				}
6969			}
6970		case "AllowStale":
6971			if r.TryDecodeAsNil() {
6972				x.QueryOptions.AllowStale = false
6973			} else {
6974				x.AllowStale = (bool)(r.DecodeBool())
6975			}
6976		case "Prefix":
6977			if r.TryDecodeAsNil() {
6978				x.QueryOptions.Prefix = ""
6979			} else {
6980				x.Prefix = (string)(r.DecodeString())
6981			}
6982		case "AuthToken":
6983			if r.TryDecodeAsNil() {
6984				x.QueryOptions.AuthToken = ""
6985			} else {
6986				x.AuthToken = (string)(r.DecodeString())
6987			}
6988		case "PerPage":
6989			if r.TryDecodeAsNil() {
6990				x.QueryOptions.PerPage = 0
6991			} else {
6992				x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32))
6993			}
6994		case "NextToken":
6995			if r.TryDecodeAsNil() {
6996				x.QueryOptions.NextToken = ""
6997			} else {
6998				x.NextToken = (string)(r.DecodeString())
6999			}
7000		case "Forwarded":
7001			if r.TryDecodeAsNil() {
7002				x.QueryOptions.InternalRpcInfo.Forwarded = false
7003			} else {
7004				x.Forwarded = (bool)(r.DecodeBool())
7005			}
7006		default:
7007			z.DecStructFieldNotFound(-1, yys3)
7008		} // end switch yys3
7009	} // end for yyj3
7010	r.ReadMapEnd()
7011}
7012
7013func (x *AllocStatsRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
7014	var h codecSelfer102
7015	z, r := codec1978.GenHelperDecoder(d)
7016	_, _, _ = h, z, r
7017	var yyj17 int
7018	var yyb17 bool
7019	var yyhl17 bool = l >= 0
7020	yyj17++
7021	if yyhl17 {
7022		yyb17 = yyj17 > l
7023	} else {
7024		yyb17 = r.CheckBreak()
7025	}
7026	if yyb17 {
7027		r.ReadArrayEnd()
7028		return
7029	}
7030	r.ReadArrayElem()
7031	if r.TryDecodeAsNil() {
7032		x.AllocID = ""
7033	} else {
7034		x.AllocID = (string)(r.DecodeString())
7035	}
7036	yyj17++
7037	if yyhl17 {
7038		yyb17 = yyj17 > l
7039	} else {
7040		yyb17 = r.CheckBreak()
7041	}
7042	if yyb17 {
7043		r.ReadArrayEnd()
7044		return
7045	}
7046	r.ReadArrayElem()
7047	if r.TryDecodeAsNil() {
7048		x.Task = ""
7049	} else {
7050		x.Task = (string)(r.DecodeString())
7051	}
7052	yyj17++
7053	if yyhl17 {
7054		yyb17 = yyj17 > l
7055	} else {
7056		yyb17 = r.CheckBreak()
7057	}
7058	if yyb17 {
7059		r.ReadArrayEnd()
7060		return
7061	}
7062	r.ReadArrayElem()
7063	if r.TryDecodeAsNil() {
7064		x.QueryOptions.Region = ""
7065	} else {
7066		x.Region = (string)(r.DecodeString())
7067	}
7068	yyj17++
7069	if yyhl17 {
7070		yyb17 = yyj17 > l
7071	} else {
7072		yyb17 = r.CheckBreak()
7073	}
7074	if yyb17 {
7075		r.ReadArrayEnd()
7076		return
7077	}
7078	r.ReadArrayElem()
7079	if r.TryDecodeAsNil() {
7080		x.QueryOptions.Namespace = ""
7081	} else {
7082		x.Namespace = (string)(r.DecodeString())
7083	}
7084	yyj17++
7085	if yyhl17 {
7086		yyb17 = yyj17 > l
7087	} else {
7088		yyb17 = r.CheckBreak()
7089	}
7090	if yyb17 {
7091		r.ReadArrayEnd()
7092		return
7093	}
7094	r.ReadArrayElem()
7095	if r.TryDecodeAsNil() {
7096		x.QueryOptions.MinQueryIndex = 0
7097	} else {
7098		x.MinQueryIndex = (uint64)(r.DecodeUint64())
7099	}
7100	yyj17++
7101	if yyhl17 {
7102		yyb17 = yyj17 > l
7103	} else {
7104		yyb17 = r.CheckBreak()
7105	}
7106	if yyb17 {
7107		r.ReadArrayEnd()
7108		return
7109	}
7110	r.ReadArrayElem()
7111	if r.TryDecodeAsNil() {
7112		x.QueryOptions.MaxQueryTime = 0
7113	} else {
7114		if false {
7115		} else if yyxt24 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt24 != nil {
7116			z.DecExtension(x.MaxQueryTime, yyxt24)
7117		} else {
7118			x.MaxQueryTime = (time.Duration)(r.DecodeInt64())
7119		}
7120	}
7121	yyj17++
7122	if yyhl17 {
7123		yyb17 = yyj17 > l
7124	} else {
7125		yyb17 = r.CheckBreak()
7126	}
7127	if yyb17 {
7128		r.ReadArrayEnd()
7129		return
7130	}
7131	r.ReadArrayElem()
7132	if r.TryDecodeAsNil() {
7133		x.QueryOptions.AllowStale = false
7134	} else {
7135		x.AllowStale = (bool)(r.DecodeBool())
7136	}
7137	yyj17++
7138	if yyhl17 {
7139		yyb17 = yyj17 > l
7140	} else {
7141		yyb17 = r.CheckBreak()
7142	}
7143	if yyb17 {
7144		r.ReadArrayEnd()
7145		return
7146	}
7147	r.ReadArrayElem()
7148	if r.TryDecodeAsNil() {
7149		x.QueryOptions.Prefix = ""
7150	} else {
7151		x.Prefix = (string)(r.DecodeString())
7152	}
7153	yyj17++
7154	if yyhl17 {
7155		yyb17 = yyj17 > l
7156	} else {
7157		yyb17 = r.CheckBreak()
7158	}
7159	if yyb17 {
7160		r.ReadArrayEnd()
7161		return
7162	}
7163	r.ReadArrayElem()
7164	if r.TryDecodeAsNil() {
7165		x.QueryOptions.AuthToken = ""
7166	} else {
7167		x.AuthToken = (string)(r.DecodeString())
7168	}
7169	yyj17++
7170	if yyhl17 {
7171		yyb17 = yyj17 > l
7172	} else {
7173		yyb17 = r.CheckBreak()
7174	}
7175	if yyb17 {
7176		r.ReadArrayEnd()
7177		return
7178	}
7179	r.ReadArrayElem()
7180	if r.TryDecodeAsNil() {
7181		x.QueryOptions.PerPage = 0
7182	} else {
7183		x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32))
7184	}
7185	yyj17++
7186	if yyhl17 {
7187		yyb17 = yyj17 > l
7188	} else {
7189		yyb17 = r.CheckBreak()
7190	}
7191	if yyb17 {
7192		r.ReadArrayEnd()
7193		return
7194	}
7195	r.ReadArrayElem()
7196	if r.TryDecodeAsNil() {
7197		x.QueryOptions.NextToken = ""
7198	} else {
7199		x.NextToken = (string)(r.DecodeString())
7200	}
7201	yyj17++
7202	if yyhl17 {
7203		yyb17 = yyj17 > l
7204	} else {
7205		yyb17 = r.CheckBreak()
7206	}
7207	if yyb17 {
7208		r.ReadArrayEnd()
7209		return
7210	}
7211	r.ReadArrayElem()
7212	if r.TryDecodeAsNil() {
7213		x.QueryOptions.InternalRpcInfo.Forwarded = false
7214	} else {
7215		x.Forwarded = (bool)(r.DecodeBool())
7216	}
7217	for {
7218		yyj17++
7219		if yyhl17 {
7220			yyb17 = yyj17 > l
7221		} else {
7222			yyb17 = r.CheckBreak()
7223		}
7224		if yyb17 {
7225			break
7226		}
7227		r.ReadArrayElem()
7228		z.DecStructFieldNotFound(yyj17-1, "")
7229	}
7230	r.ReadArrayEnd()
7231}
7232
7233func (x *AllocStatsResponse) CodecEncodeSelf(e *codec1978.Encoder) {
7234	var h codecSelfer102
7235	z, r := codec1978.GenHelperEncoder(e)
7236	_, _, _ = h, z, r
7237	if x == nil {
7238		r.EncodeNil()
7239	} else {
7240		if false {
7241		} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
7242			z.EncExtension(x, yyxt1)
7243		} else {
7244			yysep2 := !z.EncBinary()
7245			yy2arr2 := z.EncBasicHandle().StructToArray
7246			_, _ = yysep2, yy2arr2
7247			const yyr2 bool = false // struct tag has 'toArray'
7248			if yyr2 || yy2arr2 {
7249				r.WriteArrayStart(4)
7250			} else {
7251				r.WriteMapStart(4)
7252			}
7253			var yyn3 bool
7254			if x.Stats == nil {
7255				yyn3 = true
7256				goto LABEL3
7257			}
7258		LABEL3:
7259			if yyr2 || yy2arr2 {
7260				if yyn3 {
7261					r.WriteArrayElem()
7262					r.EncodeNil()
7263				} else {
7264					r.WriteArrayElem()
7265					if x.Stats == nil {
7266						r.EncodeNil()
7267					} else {
7268						x.Stats.CodecEncodeSelf(e)
7269					}
7270				}
7271			} else {
7272				r.WriteMapElemKey()
7273				if z.IsJSONHandle() {
7274					z.WriteStr("\"Stats\"")
7275				} else {
7276					r.EncodeStringEnc(codecSelferCcUTF8102, `Stats`)
7277				}
7278				r.WriteMapElemValue()
7279				if yyn3 {
7280					r.EncodeNil()
7281				} else {
7282					if x.Stats == nil {
7283						r.EncodeNil()
7284					} else {
7285						x.Stats.CodecEncodeSelf(e)
7286					}
7287				}
7288			}
7289			if yyr2 || yy2arr2 {
7290				r.WriteArrayElem()
7291				if false {
7292				} else {
7293					r.EncodeUint(uint64(x.Index))
7294				}
7295			} else {
7296				r.WriteMapElemKey()
7297				if z.IsJSONHandle() {
7298					z.WriteStr("\"Index\"")
7299				} else {
7300					r.EncodeStringEnc(codecSelferCcUTF8102, `Index`)
7301				}
7302				r.WriteMapElemValue()
7303				if false {
7304				} else {
7305					r.EncodeUint(uint64(x.Index))
7306				}
7307			}
7308			if yyr2 || yy2arr2 {
7309				r.WriteArrayElem()
7310				if false {
7311				} else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil {
7312					z.EncExtension(x.LastContact, yyxt10)
7313				} else {
7314					r.EncodeInt(int64(x.LastContact))
7315				}
7316			} else {
7317				r.WriteMapElemKey()
7318				if z.IsJSONHandle() {
7319					z.WriteStr("\"LastContact\"")
7320				} else {
7321					r.EncodeStringEnc(codecSelferCcUTF8102, `LastContact`)
7322				}
7323				r.WriteMapElemValue()
7324				if false {
7325				} else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil {
7326					z.EncExtension(x.LastContact, yyxt11)
7327				} else {
7328					r.EncodeInt(int64(x.LastContact))
7329				}
7330			}
7331			if yyr2 || yy2arr2 {
7332				r.WriteArrayElem()
7333				if false {
7334				} else {
7335					r.EncodeBool(bool(x.KnownLeader))
7336				}
7337			} else {
7338				r.WriteMapElemKey()
7339				if z.IsJSONHandle() {
7340					z.WriteStr("\"KnownLeader\"")
7341				} else {
7342					r.EncodeStringEnc(codecSelferCcUTF8102, `KnownLeader`)
7343				}
7344				r.WriteMapElemValue()
7345				if false {
7346				} else {
7347					r.EncodeBool(bool(x.KnownLeader))
7348				}
7349			}
7350			if yyr2 || yy2arr2 {
7351				r.WriteArrayEnd()
7352			} else {
7353				r.WriteMapEnd()
7354			}
7355		}
7356	}
7357}
7358
7359func (x *AllocStatsResponse) CodecDecodeSelf(d *codec1978.Decoder) {
7360	var h codecSelfer102
7361	z, r := codec1978.GenHelperDecoder(d)
7362	_, _, _ = h, z, r
7363	if false {
7364	} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
7365		z.DecExtension(x, yyxt1)
7366	} else {
7367		yyct2 := r.ContainerType()
7368		if yyct2 == codecSelferValueTypeMap102 {
7369			yyl2 := r.ReadMapStart()
7370			if yyl2 == 0 {
7371				r.ReadMapEnd()
7372			} else {
7373				x.codecDecodeSelfFromMap(yyl2, d)
7374			}
7375		} else if yyct2 == codecSelferValueTypeArray102 {
7376			yyl2 := r.ReadArrayStart()
7377			if yyl2 == 0 {
7378				r.ReadArrayEnd()
7379			} else {
7380				x.codecDecodeSelfFromArray(yyl2, d)
7381			}
7382		} else {
7383			panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102)
7384		}
7385	}
7386}
7387
7388func (x *AllocStatsResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
7389	var h codecSelfer102
7390	z, r := codec1978.GenHelperDecoder(d)
7391	_, _, _ = h, z, r
7392	var yyhl3 bool = l >= 0
7393	for yyj3 := 0; ; yyj3++ {
7394		if yyhl3 {
7395			if yyj3 >= l {
7396				break
7397			}
7398		} else {
7399			if r.CheckBreak() {
7400				break
7401			}
7402		}
7403		r.ReadMapElemKey()
7404		yys3 := z.StringView(r.DecodeStringAsBytes())
7405		r.ReadMapElemValue()
7406		switch yys3 {
7407		case "Stats":
7408			if r.TryDecodeAsNil() {
7409				if true && x.Stats != nil {
7410					x.Stats = nil
7411				}
7412			} else {
7413				if x.Stats == nil {
7414					x.Stats = new(AllocResourceUsage)
7415				}
7416
7417				x.Stats.CodecDecodeSelf(d)
7418			}
7419		case "Index":
7420			if r.TryDecodeAsNil() {
7421				x.QueryMeta.Index = 0
7422			} else {
7423				x.Index = (uint64)(r.DecodeUint64())
7424			}
7425		case "LastContact":
7426			if r.TryDecodeAsNil() {
7427				x.QueryMeta.LastContact = 0
7428			} else {
7429				if false {
7430				} else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil {
7431					z.DecExtension(x.LastContact, yyxt7)
7432				} else {
7433					x.LastContact = (time.Duration)(r.DecodeInt64())
7434				}
7435			}
7436		case "KnownLeader":
7437			if r.TryDecodeAsNil() {
7438				x.QueryMeta.KnownLeader = false
7439			} else {
7440				x.KnownLeader = (bool)(r.DecodeBool())
7441			}
7442		default:
7443			z.DecStructFieldNotFound(-1, yys3)
7444		} // end switch yys3
7445	} // end for yyj3
7446	r.ReadMapEnd()
7447}
7448
7449func (x *AllocStatsResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
7450	var h codecSelfer102
7451	z, r := codec1978.GenHelperDecoder(d)
7452	_, _, _ = h, z, r
7453	var yyj9 int
7454	var yyb9 bool
7455	var yyhl9 bool = l >= 0
7456	yyj9++
7457	if yyhl9 {
7458		yyb9 = yyj9 > l
7459	} else {
7460		yyb9 = r.CheckBreak()
7461	}
7462	if yyb9 {
7463		r.ReadArrayEnd()
7464		return
7465	}
7466	r.ReadArrayElem()
7467	if r.TryDecodeAsNil() {
7468		if true && x.Stats != nil {
7469			x.Stats = nil
7470		}
7471	} else {
7472		if x.Stats == nil {
7473			x.Stats = new(AllocResourceUsage)
7474		}
7475
7476		x.Stats.CodecDecodeSelf(d)
7477	}
7478	yyj9++
7479	if yyhl9 {
7480		yyb9 = yyj9 > l
7481	} else {
7482		yyb9 = r.CheckBreak()
7483	}
7484	if yyb9 {
7485		r.ReadArrayEnd()
7486		return
7487	}
7488	r.ReadArrayElem()
7489	if r.TryDecodeAsNil() {
7490		x.QueryMeta.Index = 0
7491	} else {
7492		x.Index = (uint64)(r.DecodeUint64())
7493	}
7494	yyj9++
7495	if yyhl9 {
7496		yyb9 = yyj9 > l
7497	} else {
7498		yyb9 = r.CheckBreak()
7499	}
7500	if yyb9 {
7501		r.ReadArrayEnd()
7502		return
7503	}
7504	r.ReadArrayElem()
7505	if r.TryDecodeAsNil() {
7506		x.QueryMeta.LastContact = 0
7507	} else {
7508		if false {
7509		} else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil {
7510			z.DecExtension(x.LastContact, yyxt13)
7511		} else {
7512			x.LastContact = (time.Duration)(r.DecodeInt64())
7513		}
7514	}
7515	yyj9++
7516	if yyhl9 {
7517		yyb9 = yyj9 > l
7518	} else {
7519		yyb9 = r.CheckBreak()
7520	}
7521	if yyb9 {
7522		r.ReadArrayEnd()
7523		return
7524	}
7525	r.ReadArrayElem()
7526	if r.TryDecodeAsNil() {
7527		x.QueryMeta.KnownLeader = false
7528	} else {
7529		x.KnownLeader = (bool)(r.DecodeBool())
7530	}
7531	for {
7532		yyj9++
7533		if yyhl9 {
7534			yyb9 = yyj9 > l
7535		} else {
7536			yyb9 = r.CheckBreak()
7537		}
7538		if yyb9 {
7539			break
7540		}
7541		r.ReadArrayElem()
7542		z.DecStructFieldNotFound(yyj9-1, "")
7543	}
7544	r.ReadArrayEnd()
7545}
7546
7547func (x *MemoryStats) CodecEncodeSelf(e *codec1978.Encoder) {
7548	var h codecSelfer102
7549	z, r := codec1978.GenHelperEncoder(e)
7550	_, _, _ = h, z, r
7551	if x == nil {
7552		r.EncodeNil()
7553	} else {
7554		if false {
7555		} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
7556			z.EncExtension(x, yyxt1)
7557		} else {
7558			yysep2 := !z.EncBinary()
7559			yy2arr2 := z.EncBasicHandle().StructToArray
7560			_, _ = yysep2, yy2arr2
7561			const yyr2 bool = false // struct tag has 'toArray'
7562			if yyr2 || yy2arr2 {
7563				r.WriteArrayStart(8)
7564			} else {
7565				r.WriteMapStart(8)
7566			}
7567			if yyr2 || yy2arr2 {
7568				r.WriteArrayElem()
7569				if false {
7570				} else {
7571					r.EncodeUint(uint64(x.RSS))
7572				}
7573			} else {
7574				r.WriteMapElemKey()
7575				if z.IsJSONHandle() {
7576					z.WriteStr("\"RSS\"")
7577				} else {
7578					r.EncodeStringEnc(codecSelferCcUTF8102, `RSS`)
7579				}
7580				r.WriteMapElemValue()
7581				if false {
7582				} else {
7583					r.EncodeUint(uint64(x.RSS))
7584				}
7585			}
7586			if yyr2 || yy2arr2 {
7587				r.WriteArrayElem()
7588				if false {
7589				} else {
7590					r.EncodeUint(uint64(x.Cache))
7591				}
7592			} else {
7593				r.WriteMapElemKey()
7594				if z.IsJSONHandle() {
7595					z.WriteStr("\"Cache\"")
7596				} else {
7597					r.EncodeStringEnc(codecSelferCcUTF8102, `Cache`)
7598				}
7599				r.WriteMapElemValue()
7600				if false {
7601				} else {
7602					r.EncodeUint(uint64(x.Cache))
7603				}
7604			}
7605			if yyr2 || yy2arr2 {
7606				r.WriteArrayElem()
7607				if false {
7608				} else {
7609					r.EncodeUint(uint64(x.Swap))
7610				}
7611			} else {
7612				r.WriteMapElemKey()
7613				if z.IsJSONHandle() {
7614					z.WriteStr("\"Swap\"")
7615				} else {
7616					r.EncodeStringEnc(codecSelferCcUTF8102, `Swap`)
7617				}
7618				r.WriteMapElemValue()
7619				if false {
7620				} else {
7621					r.EncodeUint(uint64(x.Swap))
7622				}
7623			}
7624			if yyr2 || yy2arr2 {
7625				r.WriteArrayElem()
7626				if false {
7627				} else {
7628					r.EncodeUint(uint64(x.Usage))
7629				}
7630			} else {
7631				r.WriteMapElemKey()
7632				if z.IsJSONHandle() {
7633					z.WriteStr("\"Usage\"")
7634				} else {
7635					r.EncodeStringEnc(codecSelferCcUTF8102, `Usage`)
7636				}
7637				r.WriteMapElemValue()
7638				if false {
7639				} else {
7640					r.EncodeUint(uint64(x.Usage))
7641				}
7642			}
7643			if yyr2 || yy2arr2 {
7644				r.WriteArrayElem()
7645				if false {
7646				} else {
7647					r.EncodeUint(uint64(x.MaxUsage))
7648				}
7649			} else {
7650				r.WriteMapElemKey()
7651				if z.IsJSONHandle() {
7652					z.WriteStr("\"MaxUsage\"")
7653				} else {
7654					r.EncodeStringEnc(codecSelferCcUTF8102, `MaxUsage`)
7655				}
7656				r.WriteMapElemValue()
7657				if false {
7658				} else {
7659					r.EncodeUint(uint64(x.MaxUsage))
7660				}
7661			}
7662			if yyr2 || yy2arr2 {
7663				r.WriteArrayElem()
7664				if false {
7665				} else {
7666					r.EncodeUint(uint64(x.KernelUsage))
7667				}
7668			} else {
7669				r.WriteMapElemKey()
7670				if z.IsJSONHandle() {
7671					z.WriteStr("\"KernelUsage\"")
7672				} else {
7673					r.EncodeStringEnc(codecSelferCcUTF8102, `KernelUsage`)
7674				}
7675				r.WriteMapElemValue()
7676				if false {
7677				} else {
7678					r.EncodeUint(uint64(x.KernelUsage))
7679				}
7680			}
7681			if yyr2 || yy2arr2 {
7682				r.WriteArrayElem()
7683				if false {
7684				} else {
7685					r.EncodeUint(uint64(x.KernelMaxUsage))
7686				}
7687			} else {
7688				r.WriteMapElemKey()
7689				if z.IsJSONHandle() {
7690					z.WriteStr("\"KernelMaxUsage\"")
7691				} else {
7692					r.EncodeStringEnc(codecSelferCcUTF8102, `KernelMaxUsage`)
7693				}
7694				r.WriteMapElemValue()
7695				if false {
7696				} else {
7697					r.EncodeUint(uint64(x.KernelMaxUsage))
7698				}
7699			}
7700			if yyr2 || yy2arr2 {
7701				r.WriteArrayElem()
7702				if x.Measured == nil {
7703					r.EncodeNil()
7704				} else {
7705					if false {
7706					} else {
7707						z.F.EncSliceStringV(x.Measured, e)
7708					}
7709				}
7710			} else {
7711				r.WriteMapElemKey()
7712				if z.IsJSONHandle() {
7713					z.WriteStr("\"Measured\"")
7714				} else {
7715					r.EncodeStringEnc(codecSelferCcUTF8102, `Measured`)
7716				}
7717				r.WriteMapElemValue()
7718				if x.Measured == nil {
7719					r.EncodeNil()
7720				} else {
7721					if false {
7722					} else {
7723						z.F.EncSliceStringV(x.Measured, e)
7724					}
7725				}
7726			}
7727			if yyr2 || yy2arr2 {
7728				r.WriteArrayEnd()
7729			} else {
7730				r.WriteMapEnd()
7731			}
7732		}
7733	}
7734}
7735
7736func (x *MemoryStats) CodecDecodeSelf(d *codec1978.Decoder) {
7737	var h codecSelfer102
7738	z, r := codec1978.GenHelperDecoder(d)
7739	_, _, _ = h, z, r
7740	if false {
7741	} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
7742		z.DecExtension(x, yyxt1)
7743	} else {
7744		yyct2 := r.ContainerType()
7745		if yyct2 == codecSelferValueTypeMap102 {
7746			yyl2 := r.ReadMapStart()
7747			if yyl2 == 0 {
7748				r.ReadMapEnd()
7749			} else {
7750				x.codecDecodeSelfFromMap(yyl2, d)
7751			}
7752		} else if yyct2 == codecSelferValueTypeArray102 {
7753			yyl2 := r.ReadArrayStart()
7754			if yyl2 == 0 {
7755				r.ReadArrayEnd()
7756			} else {
7757				x.codecDecodeSelfFromArray(yyl2, d)
7758			}
7759		} else {
7760			panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102)
7761		}
7762	}
7763}
7764
7765func (x *MemoryStats) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
7766	var h codecSelfer102
7767	z, r := codec1978.GenHelperDecoder(d)
7768	_, _, _ = h, z, r
7769	var yyhl3 bool = l >= 0
7770	for yyj3 := 0; ; yyj3++ {
7771		if yyhl3 {
7772			if yyj3 >= l {
7773				break
7774			}
7775		} else {
7776			if r.CheckBreak() {
7777				break
7778			}
7779		}
7780		r.ReadMapElemKey()
7781		yys3 := z.StringView(r.DecodeStringAsBytes())
7782		r.ReadMapElemValue()
7783		switch yys3 {
7784		case "RSS":
7785			if r.TryDecodeAsNil() {
7786				x.RSS = 0
7787			} else {
7788				x.RSS = (uint64)(r.DecodeUint64())
7789			}
7790		case "Cache":
7791			if r.TryDecodeAsNil() {
7792				x.Cache = 0
7793			} else {
7794				x.Cache = (uint64)(r.DecodeUint64())
7795			}
7796		case "Swap":
7797			if r.TryDecodeAsNil() {
7798				x.Swap = 0
7799			} else {
7800				x.Swap = (uint64)(r.DecodeUint64())
7801			}
7802		case "Usage":
7803			if r.TryDecodeAsNil() {
7804				x.Usage = 0
7805			} else {
7806				x.Usage = (uint64)(r.DecodeUint64())
7807			}
7808		case "MaxUsage":
7809			if r.TryDecodeAsNil() {
7810				x.MaxUsage = 0
7811			} else {
7812				x.MaxUsage = (uint64)(r.DecodeUint64())
7813			}
7814		case "KernelUsage":
7815			if r.TryDecodeAsNil() {
7816				x.KernelUsage = 0
7817			} else {
7818				x.KernelUsage = (uint64)(r.DecodeUint64())
7819			}
7820		case "KernelMaxUsage":
7821			if r.TryDecodeAsNil() {
7822				x.KernelMaxUsage = 0
7823			} else {
7824				x.KernelMaxUsage = (uint64)(r.DecodeUint64())
7825			}
7826		case "Measured":
7827			if r.TryDecodeAsNil() {
7828				x.Measured = nil
7829			} else {
7830				if false {
7831				} else {
7832					z.F.DecSliceStringX(&x.Measured, d)
7833				}
7834			}
7835		default:
7836			z.DecStructFieldNotFound(-1, yys3)
7837		} // end switch yys3
7838	} // end for yyj3
7839	r.ReadMapEnd()
7840}
7841
7842func (x *MemoryStats) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
7843	var h codecSelfer102
7844	z, r := codec1978.GenHelperDecoder(d)
7845	_, _, _ = h, z, r
7846	var yyj13 int
7847	var yyb13 bool
7848	var yyhl13 bool = l >= 0
7849	yyj13++
7850	if yyhl13 {
7851		yyb13 = yyj13 > l
7852	} else {
7853		yyb13 = r.CheckBreak()
7854	}
7855	if yyb13 {
7856		r.ReadArrayEnd()
7857		return
7858	}
7859	r.ReadArrayElem()
7860	if r.TryDecodeAsNil() {
7861		x.RSS = 0
7862	} else {
7863		x.RSS = (uint64)(r.DecodeUint64())
7864	}
7865	yyj13++
7866	if yyhl13 {
7867		yyb13 = yyj13 > l
7868	} else {
7869		yyb13 = r.CheckBreak()
7870	}
7871	if yyb13 {
7872		r.ReadArrayEnd()
7873		return
7874	}
7875	r.ReadArrayElem()
7876	if r.TryDecodeAsNil() {
7877		x.Cache = 0
7878	} else {
7879		x.Cache = (uint64)(r.DecodeUint64())
7880	}
7881	yyj13++
7882	if yyhl13 {
7883		yyb13 = yyj13 > l
7884	} else {
7885		yyb13 = r.CheckBreak()
7886	}
7887	if yyb13 {
7888		r.ReadArrayEnd()
7889		return
7890	}
7891	r.ReadArrayElem()
7892	if r.TryDecodeAsNil() {
7893		x.Swap = 0
7894	} else {
7895		x.Swap = (uint64)(r.DecodeUint64())
7896	}
7897	yyj13++
7898	if yyhl13 {
7899		yyb13 = yyj13 > l
7900	} else {
7901		yyb13 = r.CheckBreak()
7902	}
7903	if yyb13 {
7904		r.ReadArrayEnd()
7905		return
7906	}
7907	r.ReadArrayElem()
7908	if r.TryDecodeAsNil() {
7909		x.Usage = 0
7910	} else {
7911		x.Usage = (uint64)(r.DecodeUint64())
7912	}
7913	yyj13++
7914	if yyhl13 {
7915		yyb13 = yyj13 > l
7916	} else {
7917		yyb13 = r.CheckBreak()
7918	}
7919	if yyb13 {
7920		r.ReadArrayEnd()
7921		return
7922	}
7923	r.ReadArrayElem()
7924	if r.TryDecodeAsNil() {
7925		x.MaxUsage = 0
7926	} else {
7927		x.MaxUsage = (uint64)(r.DecodeUint64())
7928	}
7929	yyj13++
7930	if yyhl13 {
7931		yyb13 = yyj13 > l
7932	} else {
7933		yyb13 = r.CheckBreak()
7934	}
7935	if yyb13 {
7936		r.ReadArrayEnd()
7937		return
7938	}
7939	r.ReadArrayElem()
7940	if r.TryDecodeAsNil() {
7941		x.KernelUsage = 0
7942	} else {
7943		x.KernelUsage = (uint64)(r.DecodeUint64())
7944	}
7945	yyj13++
7946	if yyhl13 {
7947		yyb13 = yyj13 > l
7948	} else {
7949		yyb13 = r.CheckBreak()
7950	}
7951	if yyb13 {
7952		r.ReadArrayEnd()
7953		return
7954	}
7955	r.ReadArrayElem()
7956	if r.TryDecodeAsNil() {
7957		x.KernelMaxUsage = 0
7958	} else {
7959		x.KernelMaxUsage = (uint64)(r.DecodeUint64())
7960	}
7961	yyj13++
7962	if yyhl13 {
7963		yyb13 = yyj13 > l
7964	} else {
7965		yyb13 = r.CheckBreak()
7966	}
7967	if yyb13 {
7968		r.ReadArrayEnd()
7969		return
7970	}
7971	r.ReadArrayElem()
7972	if r.TryDecodeAsNil() {
7973		x.Measured = nil
7974	} else {
7975		if false {
7976		} else {
7977			z.F.DecSliceStringX(&x.Measured, d)
7978		}
7979	}
7980	for {
7981		yyj13++
7982		if yyhl13 {
7983			yyb13 = yyj13 > l
7984		} else {
7985			yyb13 = r.CheckBreak()
7986		}
7987		if yyb13 {
7988			break
7989		}
7990		r.ReadArrayElem()
7991		z.DecStructFieldNotFound(yyj13-1, "")
7992	}
7993	r.ReadArrayEnd()
7994}
7995
7996func (x *CpuStats) CodecEncodeSelf(e *codec1978.Encoder) {
7997	var h codecSelfer102
7998	z, r := codec1978.GenHelperEncoder(e)
7999	_, _, _ = h, z, r
8000	if x == nil {
8001		r.EncodeNil()
8002	} else {
8003		if false {
8004		} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
8005			z.EncExtension(x, yyxt1)
8006		} else {
8007			yysep2 := !z.EncBinary()
8008			yy2arr2 := z.EncBasicHandle().StructToArray
8009			_, _ = yysep2, yy2arr2
8010			const yyr2 bool = false // struct tag has 'toArray'
8011			if yyr2 || yy2arr2 {
8012				r.WriteArrayStart(7)
8013			} else {
8014				r.WriteMapStart(7)
8015			}
8016			if yyr2 || yy2arr2 {
8017				r.WriteArrayElem()
8018				if false {
8019				} else {
8020					r.EncodeFloat64(float64(x.SystemMode))
8021				}
8022			} else {
8023				r.WriteMapElemKey()
8024				if z.IsJSONHandle() {
8025					z.WriteStr("\"SystemMode\"")
8026				} else {
8027					r.EncodeStringEnc(codecSelferCcUTF8102, `SystemMode`)
8028				}
8029				r.WriteMapElemValue()
8030				if false {
8031				} else {
8032					r.EncodeFloat64(float64(x.SystemMode))
8033				}
8034			}
8035			if yyr2 || yy2arr2 {
8036				r.WriteArrayElem()
8037				if false {
8038				} else {
8039					r.EncodeFloat64(float64(x.UserMode))
8040				}
8041			} else {
8042				r.WriteMapElemKey()
8043				if z.IsJSONHandle() {
8044					z.WriteStr("\"UserMode\"")
8045				} else {
8046					r.EncodeStringEnc(codecSelferCcUTF8102, `UserMode`)
8047				}
8048				r.WriteMapElemValue()
8049				if false {
8050				} else {
8051					r.EncodeFloat64(float64(x.UserMode))
8052				}
8053			}
8054			if yyr2 || yy2arr2 {
8055				r.WriteArrayElem()
8056				if false {
8057				} else {
8058					r.EncodeFloat64(float64(x.TotalTicks))
8059				}
8060			} else {
8061				r.WriteMapElemKey()
8062				if z.IsJSONHandle() {
8063					z.WriteStr("\"TotalTicks\"")
8064				} else {
8065					r.EncodeStringEnc(codecSelferCcUTF8102, `TotalTicks`)
8066				}
8067				r.WriteMapElemValue()
8068				if false {
8069				} else {
8070					r.EncodeFloat64(float64(x.TotalTicks))
8071				}
8072			}
8073			if yyr2 || yy2arr2 {
8074				r.WriteArrayElem()
8075				if false {
8076				} else {
8077					r.EncodeUint(uint64(x.ThrottledPeriods))
8078				}
8079			} else {
8080				r.WriteMapElemKey()
8081				if z.IsJSONHandle() {
8082					z.WriteStr("\"ThrottledPeriods\"")
8083				} else {
8084					r.EncodeStringEnc(codecSelferCcUTF8102, `ThrottledPeriods`)
8085				}
8086				r.WriteMapElemValue()
8087				if false {
8088				} else {
8089					r.EncodeUint(uint64(x.ThrottledPeriods))
8090				}
8091			}
8092			if yyr2 || yy2arr2 {
8093				r.WriteArrayElem()
8094				if false {
8095				} else {
8096					r.EncodeUint(uint64(x.ThrottledTime))
8097				}
8098			} else {
8099				r.WriteMapElemKey()
8100				if z.IsJSONHandle() {
8101					z.WriteStr("\"ThrottledTime\"")
8102				} else {
8103					r.EncodeStringEnc(codecSelferCcUTF8102, `ThrottledTime`)
8104				}
8105				r.WriteMapElemValue()
8106				if false {
8107				} else {
8108					r.EncodeUint(uint64(x.ThrottledTime))
8109				}
8110			}
8111			if yyr2 || yy2arr2 {
8112				r.WriteArrayElem()
8113				if false {
8114				} else {
8115					r.EncodeFloat64(float64(x.Percent))
8116				}
8117			} else {
8118				r.WriteMapElemKey()
8119				if z.IsJSONHandle() {
8120					z.WriteStr("\"Percent\"")
8121				} else {
8122					r.EncodeStringEnc(codecSelferCcUTF8102, `Percent`)
8123				}
8124				r.WriteMapElemValue()
8125				if false {
8126				} else {
8127					r.EncodeFloat64(float64(x.Percent))
8128				}
8129			}
8130			if yyr2 || yy2arr2 {
8131				r.WriteArrayElem()
8132				if x.Measured == nil {
8133					r.EncodeNil()
8134				} else {
8135					if false {
8136					} else {
8137						z.F.EncSliceStringV(x.Measured, e)
8138					}
8139				}
8140			} else {
8141				r.WriteMapElemKey()
8142				if z.IsJSONHandle() {
8143					z.WriteStr("\"Measured\"")
8144				} else {
8145					r.EncodeStringEnc(codecSelferCcUTF8102, `Measured`)
8146				}
8147				r.WriteMapElemValue()
8148				if x.Measured == nil {
8149					r.EncodeNil()
8150				} else {
8151					if false {
8152					} else {
8153						z.F.EncSliceStringV(x.Measured, e)
8154					}
8155				}
8156			}
8157			if yyr2 || yy2arr2 {
8158				r.WriteArrayEnd()
8159			} else {
8160				r.WriteMapEnd()
8161			}
8162		}
8163	}
8164}
8165
8166func (x *CpuStats) CodecDecodeSelf(d *codec1978.Decoder) {
8167	var h codecSelfer102
8168	z, r := codec1978.GenHelperDecoder(d)
8169	_, _, _ = h, z, r
8170	if false {
8171	} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
8172		z.DecExtension(x, yyxt1)
8173	} else {
8174		yyct2 := r.ContainerType()
8175		if yyct2 == codecSelferValueTypeMap102 {
8176			yyl2 := r.ReadMapStart()
8177			if yyl2 == 0 {
8178				r.ReadMapEnd()
8179			} else {
8180				x.codecDecodeSelfFromMap(yyl2, d)
8181			}
8182		} else if yyct2 == codecSelferValueTypeArray102 {
8183			yyl2 := r.ReadArrayStart()
8184			if yyl2 == 0 {
8185				r.ReadArrayEnd()
8186			} else {
8187				x.codecDecodeSelfFromArray(yyl2, d)
8188			}
8189		} else {
8190			panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102)
8191		}
8192	}
8193}
8194
8195func (x *CpuStats) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
8196	var h codecSelfer102
8197	z, r := codec1978.GenHelperDecoder(d)
8198	_, _, _ = h, z, r
8199	var yyhl3 bool = l >= 0
8200	for yyj3 := 0; ; yyj3++ {
8201		if yyhl3 {
8202			if yyj3 >= l {
8203				break
8204			}
8205		} else {
8206			if r.CheckBreak() {
8207				break
8208			}
8209		}
8210		r.ReadMapElemKey()
8211		yys3 := z.StringView(r.DecodeStringAsBytes())
8212		r.ReadMapElemValue()
8213		switch yys3 {
8214		case "SystemMode":
8215			if r.TryDecodeAsNil() {
8216				x.SystemMode = 0
8217			} else {
8218				x.SystemMode = (float64)(r.DecodeFloat64())
8219			}
8220		case "UserMode":
8221			if r.TryDecodeAsNil() {
8222				x.UserMode = 0
8223			} else {
8224				x.UserMode = (float64)(r.DecodeFloat64())
8225			}
8226		case "TotalTicks":
8227			if r.TryDecodeAsNil() {
8228				x.TotalTicks = 0
8229			} else {
8230				x.TotalTicks = (float64)(r.DecodeFloat64())
8231			}
8232		case "ThrottledPeriods":
8233			if r.TryDecodeAsNil() {
8234				x.ThrottledPeriods = 0
8235			} else {
8236				x.ThrottledPeriods = (uint64)(r.DecodeUint64())
8237			}
8238		case "ThrottledTime":
8239			if r.TryDecodeAsNil() {
8240				x.ThrottledTime = 0
8241			} else {
8242				x.ThrottledTime = (uint64)(r.DecodeUint64())
8243			}
8244		case "Percent":
8245			if r.TryDecodeAsNil() {
8246				x.Percent = 0
8247			} else {
8248				x.Percent = (float64)(r.DecodeFloat64())
8249			}
8250		case "Measured":
8251			if r.TryDecodeAsNil() {
8252				x.Measured = nil
8253			} else {
8254				if false {
8255				} else {
8256					z.F.DecSliceStringX(&x.Measured, d)
8257				}
8258			}
8259		default:
8260			z.DecStructFieldNotFound(-1, yys3)
8261		} // end switch yys3
8262	} // end for yyj3
8263	r.ReadMapEnd()
8264}
8265
8266func (x *CpuStats) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
8267	var h codecSelfer102
8268	z, r := codec1978.GenHelperDecoder(d)
8269	_, _, _ = h, z, r
8270	var yyj12 int
8271	var yyb12 bool
8272	var yyhl12 bool = l >= 0
8273	yyj12++
8274	if yyhl12 {
8275		yyb12 = yyj12 > l
8276	} else {
8277		yyb12 = r.CheckBreak()
8278	}
8279	if yyb12 {
8280		r.ReadArrayEnd()
8281		return
8282	}
8283	r.ReadArrayElem()
8284	if r.TryDecodeAsNil() {
8285		x.SystemMode = 0
8286	} else {
8287		x.SystemMode = (float64)(r.DecodeFloat64())
8288	}
8289	yyj12++
8290	if yyhl12 {
8291		yyb12 = yyj12 > l
8292	} else {
8293		yyb12 = r.CheckBreak()
8294	}
8295	if yyb12 {
8296		r.ReadArrayEnd()
8297		return
8298	}
8299	r.ReadArrayElem()
8300	if r.TryDecodeAsNil() {
8301		x.UserMode = 0
8302	} else {
8303		x.UserMode = (float64)(r.DecodeFloat64())
8304	}
8305	yyj12++
8306	if yyhl12 {
8307		yyb12 = yyj12 > l
8308	} else {
8309		yyb12 = r.CheckBreak()
8310	}
8311	if yyb12 {
8312		r.ReadArrayEnd()
8313		return
8314	}
8315	r.ReadArrayElem()
8316	if r.TryDecodeAsNil() {
8317		x.TotalTicks = 0
8318	} else {
8319		x.TotalTicks = (float64)(r.DecodeFloat64())
8320	}
8321	yyj12++
8322	if yyhl12 {
8323		yyb12 = yyj12 > l
8324	} else {
8325		yyb12 = r.CheckBreak()
8326	}
8327	if yyb12 {
8328		r.ReadArrayEnd()
8329		return
8330	}
8331	r.ReadArrayElem()
8332	if r.TryDecodeAsNil() {
8333		x.ThrottledPeriods = 0
8334	} else {
8335		x.ThrottledPeriods = (uint64)(r.DecodeUint64())
8336	}
8337	yyj12++
8338	if yyhl12 {
8339		yyb12 = yyj12 > l
8340	} else {
8341		yyb12 = r.CheckBreak()
8342	}
8343	if yyb12 {
8344		r.ReadArrayEnd()
8345		return
8346	}
8347	r.ReadArrayElem()
8348	if r.TryDecodeAsNil() {
8349		x.ThrottledTime = 0
8350	} else {
8351		x.ThrottledTime = (uint64)(r.DecodeUint64())
8352	}
8353	yyj12++
8354	if yyhl12 {
8355		yyb12 = yyj12 > l
8356	} else {
8357		yyb12 = r.CheckBreak()
8358	}
8359	if yyb12 {
8360		r.ReadArrayEnd()
8361		return
8362	}
8363	r.ReadArrayElem()
8364	if r.TryDecodeAsNil() {
8365		x.Percent = 0
8366	} else {
8367		x.Percent = (float64)(r.DecodeFloat64())
8368	}
8369	yyj12++
8370	if yyhl12 {
8371		yyb12 = yyj12 > l
8372	} else {
8373		yyb12 = r.CheckBreak()
8374	}
8375	if yyb12 {
8376		r.ReadArrayEnd()
8377		return
8378	}
8379	r.ReadArrayElem()
8380	if r.TryDecodeAsNil() {
8381		x.Measured = nil
8382	} else {
8383		if false {
8384		} else {
8385			z.F.DecSliceStringX(&x.Measured, d)
8386		}
8387	}
8388	for {
8389		yyj12++
8390		if yyhl12 {
8391			yyb12 = yyj12 > l
8392		} else {
8393			yyb12 = r.CheckBreak()
8394		}
8395		if yyb12 {
8396			break
8397		}
8398		r.ReadArrayElem()
8399		z.DecStructFieldNotFound(yyj12-1, "")
8400	}
8401	r.ReadArrayEnd()
8402}
8403
8404func (x *ResourceUsage) CodecEncodeSelf(e *codec1978.Encoder) {
8405	var h codecSelfer102
8406	z, r := codec1978.GenHelperEncoder(e)
8407	_, _, _ = h, z, r
8408	if x == nil {
8409		r.EncodeNil()
8410	} else {
8411		if false {
8412		} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
8413			z.EncExtension(x, yyxt1)
8414		} else {
8415			yysep2 := !z.EncBinary()
8416			yy2arr2 := z.EncBasicHandle().StructToArray
8417			_, _ = yysep2, yy2arr2
8418			const yyr2 bool = false // struct tag has 'toArray'
8419			if yyr2 || yy2arr2 {
8420				r.WriteArrayStart(3)
8421			} else {
8422				r.WriteMapStart(3)
8423			}
8424			var yyn3 bool
8425			if x.MemoryStats == nil {
8426				yyn3 = true
8427				goto LABEL3
8428			}
8429		LABEL3:
8430			if yyr2 || yy2arr2 {
8431				if yyn3 {
8432					r.WriteArrayElem()
8433					r.EncodeNil()
8434				} else {
8435					r.WriteArrayElem()
8436					if x.MemoryStats == nil {
8437						r.EncodeNil()
8438					} else {
8439						x.MemoryStats.CodecEncodeSelf(e)
8440					}
8441				}
8442			} else {
8443				r.WriteMapElemKey()
8444				if z.IsJSONHandle() {
8445					z.WriteStr("\"MemoryStats\"")
8446				} else {
8447					r.EncodeStringEnc(codecSelferCcUTF8102, `MemoryStats`)
8448				}
8449				r.WriteMapElemValue()
8450				if yyn3 {
8451					r.EncodeNil()
8452				} else {
8453					if x.MemoryStats == nil {
8454						r.EncodeNil()
8455					} else {
8456						x.MemoryStats.CodecEncodeSelf(e)
8457					}
8458				}
8459			}
8460			var yyn6 bool
8461			if x.CpuStats == nil {
8462				yyn6 = true
8463				goto LABEL6
8464			}
8465		LABEL6:
8466			if yyr2 || yy2arr2 {
8467				if yyn6 {
8468					r.WriteArrayElem()
8469					r.EncodeNil()
8470				} else {
8471					r.WriteArrayElem()
8472					if x.CpuStats == nil {
8473						r.EncodeNil()
8474					} else {
8475						x.CpuStats.CodecEncodeSelf(e)
8476					}
8477				}
8478			} else {
8479				r.WriteMapElemKey()
8480				if z.IsJSONHandle() {
8481					z.WriteStr("\"CpuStats\"")
8482				} else {
8483					r.EncodeStringEnc(codecSelferCcUTF8102, `CpuStats`)
8484				}
8485				r.WriteMapElemValue()
8486				if yyn6 {
8487					r.EncodeNil()
8488				} else {
8489					if x.CpuStats == nil {
8490						r.EncodeNil()
8491					} else {
8492						x.CpuStats.CodecEncodeSelf(e)
8493					}
8494				}
8495			}
8496			if yyr2 || yy2arr2 {
8497				r.WriteArrayElem()
8498				if x.DeviceStats == nil {
8499					r.EncodeNil()
8500				} else {
8501					if false {
8502					} else {
8503						h.encSlicePtrtodevice_DeviceGroupStats(([]*pkg2_device.DeviceGroupStats)(x.DeviceStats), e)
8504					}
8505				}
8506			} else {
8507				r.WriteMapElemKey()
8508				if z.IsJSONHandle() {
8509					z.WriteStr("\"DeviceStats\"")
8510				} else {
8511					r.EncodeStringEnc(codecSelferCcUTF8102, `DeviceStats`)
8512				}
8513				r.WriteMapElemValue()
8514				if x.DeviceStats == nil {
8515					r.EncodeNil()
8516				} else {
8517					if false {
8518					} else {
8519						h.encSlicePtrtodevice_DeviceGroupStats(([]*pkg2_device.DeviceGroupStats)(x.DeviceStats), e)
8520					}
8521				}
8522			}
8523			if yyr2 || yy2arr2 {
8524				r.WriteArrayEnd()
8525			} else {
8526				r.WriteMapEnd()
8527			}
8528		}
8529	}
8530}
8531
8532func (x *ResourceUsage) CodecDecodeSelf(d *codec1978.Decoder) {
8533	var h codecSelfer102
8534	z, r := codec1978.GenHelperDecoder(d)
8535	_, _, _ = h, z, r
8536	if false {
8537	} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
8538		z.DecExtension(x, yyxt1)
8539	} else {
8540		yyct2 := r.ContainerType()
8541		if yyct2 == codecSelferValueTypeMap102 {
8542			yyl2 := r.ReadMapStart()
8543			if yyl2 == 0 {
8544				r.ReadMapEnd()
8545			} else {
8546				x.codecDecodeSelfFromMap(yyl2, d)
8547			}
8548		} else if yyct2 == codecSelferValueTypeArray102 {
8549			yyl2 := r.ReadArrayStart()
8550			if yyl2 == 0 {
8551				r.ReadArrayEnd()
8552			} else {
8553				x.codecDecodeSelfFromArray(yyl2, d)
8554			}
8555		} else {
8556			panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102)
8557		}
8558	}
8559}
8560
8561func (x *ResourceUsage) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
8562	var h codecSelfer102
8563	z, r := codec1978.GenHelperDecoder(d)
8564	_, _, _ = h, z, r
8565	var yyhl3 bool = l >= 0
8566	for yyj3 := 0; ; yyj3++ {
8567		if yyhl3 {
8568			if yyj3 >= l {
8569				break
8570			}
8571		} else {
8572			if r.CheckBreak() {
8573				break
8574			}
8575		}
8576		r.ReadMapElemKey()
8577		yys3 := z.StringView(r.DecodeStringAsBytes())
8578		r.ReadMapElemValue()
8579		switch yys3 {
8580		case "MemoryStats":
8581			if r.TryDecodeAsNil() {
8582				if true && x.MemoryStats != nil {
8583					x.MemoryStats = nil
8584				}
8585			} else {
8586				if x.MemoryStats == nil {
8587					x.MemoryStats = new(MemoryStats)
8588				}
8589
8590				x.MemoryStats.CodecDecodeSelf(d)
8591			}
8592		case "CpuStats":
8593			if r.TryDecodeAsNil() {
8594				if true && x.CpuStats != nil {
8595					x.CpuStats = nil
8596				}
8597			} else {
8598				if x.CpuStats == nil {
8599					x.CpuStats = new(CpuStats)
8600				}
8601
8602				x.CpuStats.CodecDecodeSelf(d)
8603			}
8604		case "DeviceStats":
8605			if r.TryDecodeAsNil() {
8606				x.DeviceStats = nil
8607			} else {
8608				if false {
8609				} else {
8610					h.decSlicePtrtodevice_DeviceGroupStats((*[]*pkg2_device.DeviceGroupStats)(&x.DeviceStats), d)
8611				}
8612			}
8613		default:
8614			z.DecStructFieldNotFound(-1, yys3)
8615		} // end switch yys3
8616	} // end for yyj3
8617	r.ReadMapEnd()
8618}
8619
8620func (x *ResourceUsage) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
8621	var h codecSelfer102
8622	z, r := codec1978.GenHelperDecoder(d)
8623	_, _, _ = h, z, r
8624	var yyj8 int
8625	var yyb8 bool
8626	var yyhl8 bool = l >= 0
8627	yyj8++
8628	if yyhl8 {
8629		yyb8 = yyj8 > l
8630	} else {
8631		yyb8 = r.CheckBreak()
8632	}
8633	if yyb8 {
8634		r.ReadArrayEnd()
8635		return
8636	}
8637	r.ReadArrayElem()
8638	if r.TryDecodeAsNil() {
8639		if true && x.MemoryStats != nil {
8640			x.MemoryStats = nil
8641		}
8642	} else {
8643		if x.MemoryStats == nil {
8644			x.MemoryStats = new(MemoryStats)
8645		}
8646
8647		x.MemoryStats.CodecDecodeSelf(d)
8648	}
8649	yyj8++
8650	if yyhl8 {
8651		yyb8 = yyj8 > l
8652	} else {
8653		yyb8 = r.CheckBreak()
8654	}
8655	if yyb8 {
8656		r.ReadArrayEnd()
8657		return
8658	}
8659	r.ReadArrayElem()
8660	if r.TryDecodeAsNil() {
8661		if true && x.CpuStats != nil {
8662			x.CpuStats = nil
8663		}
8664	} else {
8665		if x.CpuStats == nil {
8666			x.CpuStats = new(CpuStats)
8667		}
8668
8669		x.CpuStats.CodecDecodeSelf(d)
8670	}
8671	yyj8++
8672	if yyhl8 {
8673		yyb8 = yyj8 > l
8674	} else {
8675		yyb8 = r.CheckBreak()
8676	}
8677	if yyb8 {
8678		r.ReadArrayEnd()
8679		return
8680	}
8681	r.ReadArrayElem()
8682	if r.TryDecodeAsNil() {
8683		x.DeviceStats = nil
8684	} else {
8685		if false {
8686		} else {
8687			h.decSlicePtrtodevice_DeviceGroupStats((*[]*pkg2_device.DeviceGroupStats)(&x.DeviceStats), d)
8688		}
8689	}
8690	for {
8691		yyj8++
8692		if yyhl8 {
8693			yyb8 = yyj8 > l
8694		} else {
8695			yyb8 = r.CheckBreak()
8696		}
8697		if yyb8 {
8698			break
8699		}
8700		r.ReadArrayElem()
8701		z.DecStructFieldNotFound(yyj8-1, "")
8702	}
8703	r.ReadArrayEnd()
8704}
8705
8706func (x *TaskResourceUsage) CodecEncodeSelf(e *codec1978.Encoder) {
8707	var h codecSelfer102
8708	z, r := codec1978.GenHelperEncoder(e)
8709	_, _, _ = h, z, r
8710	if x == nil {
8711		r.EncodeNil()
8712	} else {
8713		if false {
8714		} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
8715			z.EncExtension(x, yyxt1)
8716		} else {
8717			yysep2 := !z.EncBinary()
8718			yy2arr2 := z.EncBasicHandle().StructToArray
8719			_, _ = yysep2, yy2arr2
8720			const yyr2 bool = false // struct tag has 'toArray'
8721			if yyr2 || yy2arr2 {
8722				r.WriteArrayStart(3)
8723			} else {
8724				r.WriteMapStart(3)
8725			}
8726			var yyn3 bool
8727			if x.ResourceUsage == nil {
8728				yyn3 = true
8729				goto LABEL3
8730			}
8731		LABEL3:
8732			if yyr2 || yy2arr2 {
8733				if yyn3 {
8734					r.WriteArrayElem()
8735					r.EncodeNil()
8736				} else {
8737					r.WriteArrayElem()
8738					if x.ResourceUsage == nil {
8739						r.EncodeNil()
8740					} else {
8741						x.ResourceUsage.CodecEncodeSelf(e)
8742					}
8743				}
8744			} else {
8745				r.WriteMapElemKey()
8746				if z.IsJSONHandle() {
8747					z.WriteStr("\"ResourceUsage\"")
8748				} else {
8749					r.EncodeStringEnc(codecSelferCcUTF8102, `ResourceUsage`)
8750				}
8751				r.WriteMapElemValue()
8752				if yyn3 {
8753					r.EncodeNil()
8754				} else {
8755					if x.ResourceUsage == nil {
8756						r.EncodeNil()
8757					} else {
8758						x.ResourceUsage.CodecEncodeSelf(e)
8759					}
8760				}
8761			}
8762			if yyr2 || yy2arr2 {
8763				r.WriteArrayElem()
8764				if false {
8765				} else {
8766					r.EncodeInt(int64(x.Timestamp))
8767				}
8768			} else {
8769				r.WriteMapElemKey()
8770				if z.IsJSONHandle() {
8771					z.WriteStr("\"Timestamp\"")
8772				} else {
8773					r.EncodeStringEnc(codecSelferCcUTF8102, `Timestamp`)
8774				}
8775				r.WriteMapElemValue()
8776				if false {
8777				} else {
8778					r.EncodeInt(int64(x.Timestamp))
8779				}
8780			}
8781			if yyr2 || yy2arr2 {
8782				r.WriteArrayElem()
8783				if x.Pids == nil {
8784					r.EncodeNil()
8785				} else {
8786					if false {
8787					} else {
8788						h.encMapstringPtrtoResourceUsage((map[string]*ResourceUsage)(x.Pids), e)
8789					}
8790				}
8791			} else {
8792				r.WriteMapElemKey()
8793				if z.IsJSONHandle() {
8794					z.WriteStr("\"Pids\"")
8795				} else {
8796					r.EncodeStringEnc(codecSelferCcUTF8102, `Pids`)
8797				}
8798				r.WriteMapElemValue()
8799				if x.Pids == nil {
8800					r.EncodeNil()
8801				} else {
8802					if false {
8803					} else {
8804						h.encMapstringPtrtoResourceUsage((map[string]*ResourceUsage)(x.Pids), e)
8805					}
8806				}
8807			}
8808			if yyr2 || yy2arr2 {
8809				r.WriteArrayEnd()
8810			} else {
8811				r.WriteMapEnd()
8812			}
8813		}
8814	}
8815}
8816
8817func (x *TaskResourceUsage) CodecDecodeSelf(d *codec1978.Decoder) {
8818	var h codecSelfer102
8819	z, r := codec1978.GenHelperDecoder(d)
8820	_, _, _ = h, z, r
8821	if false {
8822	} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
8823		z.DecExtension(x, yyxt1)
8824	} else {
8825		yyct2 := r.ContainerType()
8826		if yyct2 == codecSelferValueTypeMap102 {
8827			yyl2 := r.ReadMapStart()
8828			if yyl2 == 0 {
8829				r.ReadMapEnd()
8830			} else {
8831				x.codecDecodeSelfFromMap(yyl2, d)
8832			}
8833		} else if yyct2 == codecSelferValueTypeArray102 {
8834			yyl2 := r.ReadArrayStart()
8835			if yyl2 == 0 {
8836				r.ReadArrayEnd()
8837			} else {
8838				x.codecDecodeSelfFromArray(yyl2, d)
8839			}
8840		} else {
8841			panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102)
8842		}
8843	}
8844}
8845
8846func (x *TaskResourceUsage) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
8847	var h codecSelfer102
8848	z, r := codec1978.GenHelperDecoder(d)
8849	_, _, _ = h, z, r
8850	var yyhl3 bool = l >= 0
8851	for yyj3 := 0; ; yyj3++ {
8852		if yyhl3 {
8853			if yyj3 >= l {
8854				break
8855			}
8856		} else {
8857			if r.CheckBreak() {
8858				break
8859			}
8860		}
8861		r.ReadMapElemKey()
8862		yys3 := z.StringView(r.DecodeStringAsBytes())
8863		r.ReadMapElemValue()
8864		switch yys3 {
8865		case "ResourceUsage":
8866			if r.TryDecodeAsNil() {
8867				if true && x.ResourceUsage != nil {
8868					x.ResourceUsage = nil
8869				}
8870			} else {
8871				if x.ResourceUsage == nil {
8872					x.ResourceUsage = new(ResourceUsage)
8873				}
8874
8875				x.ResourceUsage.CodecDecodeSelf(d)
8876			}
8877		case "Timestamp":
8878			if r.TryDecodeAsNil() {
8879				x.Timestamp = 0
8880			} else {
8881				x.Timestamp = (int64)(r.DecodeInt64())
8882			}
8883		case "Pids":
8884			if r.TryDecodeAsNil() {
8885				x.Pids = nil
8886			} else {
8887				if false {
8888				} else {
8889					h.decMapstringPtrtoResourceUsage((*map[string]*ResourceUsage)(&x.Pids), d)
8890				}
8891			}
8892		default:
8893			z.DecStructFieldNotFound(-1, yys3)
8894		} // end switch yys3
8895	} // end for yyj3
8896	r.ReadMapEnd()
8897}
8898
8899func (x *TaskResourceUsage) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
8900	var h codecSelfer102
8901	z, r := codec1978.GenHelperDecoder(d)
8902	_, _, _ = h, z, r
8903	var yyj8 int
8904	var yyb8 bool
8905	var yyhl8 bool = l >= 0
8906	yyj8++
8907	if yyhl8 {
8908		yyb8 = yyj8 > l
8909	} else {
8910		yyb8 = r.CheckBreak()
8911	}
8912	if yyb8 {
8913		r.ReadArrayEnd()
8914		return
8915	}
8916	r.ReadArrayElem()
8917	if r.TryDecodeAsNil() {
8918		if true && x.ResourceUsage != nil {
8919			x.ResourceUsage = nil
8920		}
8921	} else {
8922		if x.ResourceUsage == nil {
8923			x.ResourceUsage = new(ResourceUsage)
8924		}
8925
8926		x.ResourceUsage.CodecDecodeSelf(d)
8927	}
8928	yyj8++
8929	if yyhl8 {
8930		yyb8 = yyj8 > l
8931	} else {
8932		yyb8 = r.CheckBreak()
8933	}
8934	if yyb8 {
8935		r.ReadArrayEnd()
8936		return
8937	}
8938	r.ReadArrayElem()
8939	if r.TryDecodeAsNil() {
8940		x.Timestamp = 0
8941	} else {
8942		x.Timestamp = (int64)(r.DecodeInt64())
8943	}
8944	yyj8++
8945	if yyhl8 {
8946		yyb8 = yyj8 > l
8947	} else {
8948		yyb8 = r.CheckBreak()
8949	}
8950	if yyb8 {
8951		r.ReadArrayEnd()
8952		return
8953	}
8954	r.ReadArrayElem()
8955	if r.TryDecodeAsNil() {
8956		x.Pids = nil
8957	} else {
8958		if false {
8959		} else {
8960			h.decMapstringPtrtoResourceUsage((*map[string]*ResourceUsage)(&x.Pids), d)
8961		}
8962	}
8963	for {
8964		yyj8++
8965		if yyhl8 {
8966			yyb8 = yyj8 > l
8967		} else {
8968			yyb8 = r.CheckBreak()
8969		}
8970		if yyb8 {
8971			break
8972		}
8973		r.ReadArrayElem()
8974		z.DecStructFieldNotFound(yyj8-1, "")
8975	}
8976	r.ReadArrayEnd()
8977}
8978
8979func (x *AllocResourceUsage) CodecEncodeSelf(e *codec1978.Encoder) {
8980	var h codecSelfer102
8981	z, r := codec1978.GenHelperEncoder(e)
8982	_, _, _ = h, z, r
8983	if x == nil {
8984		r.EncodeNil()
8985	} else {
8986		if false {
8987		} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
8988			z.EncExtension(x, yyxt1)
8989		} else {
8990			yysep2 := !z.EncBinary()
8991			yy2arr2 := z.EncBasicHandle().StructToArray
8992			_, _ = yysep2, yy2arr2
8993			const yyr2 bool = false // struct tag has 'toArray'
8994			if yyr2 || yy2arr2 {
8995				r.WriteArrayStart(3)
8996			} else {
8997				r.WriteMapStart(3)
8998			}
8999			var yyn3 bool
9000			if x.ResourceUsage == nil {
9001				yyn3 = true
9002				goto LABEL3
9003			}
9004		LABEL3:
9005			if yyr2 || yy2arr2 {
9006				if yyn3 {
9007					r.WriteArrayElem()
9008					r.EncodeNil()
9009				} else {
9010					r.WriteArrayElem()
9011					if x.ResourceUsage == nil {
9012						r.EncodeNil()
9013					} else {
9014						x.ResourceUsage.CodecEncodeSelf(e)
9015					}
9016				}
9017			} else {
9018				r.WriteMapElemKey()
9019				if z.IsJSONHandle() {
9020					z.WriteStr("\"ResourceUsage\"")
9021				} else {
9022					r.EncodeStringEnc(codecSelferCcUTF8102, `ResourceUsage`)
9023				}
9024				r.WriteMapElemValue()
9025				if yyn3 {
9026					r.EncodeNil()
9027				} else {
9028					if x.ResourceUsage == nil {
9029						r.EncodeNil()
9030					} else {
9031						x.ResourceUsage.CodecEncodeSelf(e)
9032					}
9033				}
9034			}
9035			if yyr2 || yy2arr2 {
9036				r.WriteArrayElem()
9037				if x.Tasks == nil {
9038					r.EncodeNil()
9039				} else {
9040					if false {
9041					} else {
9042						h.encMapstringPtrtoTaskResourceUsage((map[string]*TaskResourceUsage)(x.Tasks), e)
9043					}
9044				}
9045			} else {
9046				r.WriteMapElemKey()
9047				if z.IsJSONHandle() {
9048					z.WriteStr("\"Tasks\"")
9049				} else {
9050					r.EncodeStringEnc(codecSelferCcUTF8102, `Tasks`)
9051				}
9052				r.WriteMapElemValue()
9053				if x.Tasks == nil {
9054					r.EncodeNil()
9055				} else {
9056					if false {
9057					} else {
9058						h.encMapstringPtrtoTaskResourceUsage((map[string]*TaskResourceUsage)(x.Tasks), e)
9059					}
9060				}
9061			}
9062			if yyr2 || yy2arr2 {
9063				r.WriteArrayElem()
9064				if false {
9065				} else {
9066					r.EncodeInt(int64(x.Timestamp))
9067				}
9068			} else {
9069				r.WriteMapElemKey()
9070				if z.IsJSONHandle() {
9071					z.WriteStr("\"Timestamp\"")
9072				} else {
9073					r.EncodeStringEnc(codecSelferCcUTF8102, `Timestamp`)
9074				}
9075				r.WriteMapElemValue()
9076				if false {
9077				} else {
9078					r.EncodeInt(int64(x.Timestamp))
9079				}
9080			}
9081			if yyr2 || yy2arr2 {
9082				r.WriteArrayEnd()
9083			} else {
9084				r.WriteMapEnd()
9085			}
9086		}
9087	}
9088}
9089
9090func (x *AllocResourceUsage) CodecDecodeSelf(d *codec1978.Decoder) {
9091	var h codecSelfer102
9092	z, r := codec1978.GenHelperDecoder(d)
9093	_, _, _ = h, z, r
9094	if false {
9095	} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
9096		z.DecExtension(x, yyxt1)
9097	} else {
9098		yyct2 := r.ContainerType()
9099		if yyct2 == codecSelferValueTypeMap102 {
9100			yyl2 := r.ReadMapStart()
9101			if yyl2 == 0 {
9102				r.ReadMapEnd()
9103			} else {
9104				x.codecDecodeSelfFromMap(yyl2, d)
9105			}
9106		} else if yyct2 == codecSelferValueTypeArray102 {
9107			yyl2 := r.ReadArrayStart()
9108			if yyl2 == 0 {
9109				r.ReadArrayEnd()
9110			} else {
9111				x.codecDecodeSelfFromArray(yyl2, d)
9112			}
9113		} else {
9114			panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102)
9115		}
9116	}
9117}
9118
9119func (x *AllocResourceUsage) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
9120	var h codecSelfer102
9121	z, r := codec1978.GenHelperDecoder(d)
9122	_, _, _ = h, z, r
9123	var yyhl3 bool = l >= 0
9124	for yyj3 := 0; ; yyj3++ {
9125		if yyhl3 {
9126			if yyj3 >= l {
9127				break
9128			}
9129		} else {
9130			if r.CheckBreak() {
9131				break
9132			}
9133		}
9134		r.ReadMapElemKey()
9135		yys3 := z.StringView(r.DecodeStringAsBytes())
9136		r.ReadMapElemValue()
9137		switch yys3 {
9138		case "ResourceUsage":
9139			if r.TryDecodeAsNil() {
9140				if true && x.ResourceUsage != nil {
9141					x.ResourceUsage = nil
9142				}
9143			} else {
9144				if x.ResourceUsage == nil {
9145					x.ResourceUsage = new(ResourceUsage)
9146				}
9147
9148				x.ResourceUsage.CodecDecodeSelf(d)
9149			}
9150		case "Tasks":
9151			if r.TryDecodeAsNil() {
9152				x.Tasks = nil
9153			} else {
9154				if false {
9155				} else {
9156					h.decMapstringPtrtoTaskResourceUsage((*map[string]*TaskResourceUsage)(&x.Tasks), d)
9157				}
9158			}
9159		case "Timestamp":
9160			if r.TryDecodeAsNil() {
9161				x.Timestamp = 0
9162			} else {
9163				x.Timestamp = (int64)(r.DecodeInt64())
9164			}
9165		default:
9166			z.DecStructFieldNotFound(-1, yys3)
9167		} // end switch yys3
9168	} // end for yyj3
9169	r.ReadMapEnd()
9170}
9171
9172func (x *AllocResourceUsage) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
9173	var h codecSelfer102
9174	z, r := codec1978.GenHelperDecoder(d)
9175	_, _, _ = h, z, r
9176	var yyj8 int
9177	var yyb8 bool
9178	var yyhl8 bool = l >= 0
9179	yyj8++
9180	if yyhl8 {
9181		yyb8 = yyj8 > l
9182	} else {
9183		yyb8 = r.CheckBreak()
9184	}
9185	if yyb8 {
9186		r.ReadArrayEnd()
9187		return
9188	}
9189	r.ReadArrayElem()
9190	if r.TryDecodeAsNil() {
9191		if true && x.ResourceUsage != nil {
9192			x.ResourceUsage = nil
9193		}
9194	} else {
9195		if x.ResourceUsage == nil {
9196			x.ResourceUsage = new(ResourceUsage)
9197		}
9198
9199		x.ResourceUsage.CodecDecodeSelf(d)
9200	}
9201	yyj8++
9202	if yyhl8 {
9203		yyb8 = yyj8 > l
9204	} else {
9205		yyb8 = r.CheckBreak()
9206	}
9207	if yyb8 {
9208		r.ReadArrayEnd()
9209		return
9210	}
9211	r.ReadArrayElem()
9212	if r.TryDecodeAsNil() {
9213		x.Tasks = nil
9214	} else {
9215		if false {
9216		} else {
9217			h.decMapstringPtrtoTaskResourceUsage((*map[string]*TaskResourceUsage)(&x.Tasks), d)
9218		}
9219	}
9220	yyj8++
9221	if yyhl8 {
9222		yyb8 = yyj8 > l
9223	} else {
9224		yyb8 = r.CheckBreak()
9225	}
9226	if yyb8 {
9227		r.ReadArrayEnd()
9228		return
9229	}
9230	r.ReadArrayElem()
9231	if r.TryDecodeAsNil() {
9232		x.Timestamp = 0
9233	} else {
9234		x.Timestamp = (int64)(r.DecodeInt64())
9235	}
9236	for {
9237		yyj8++
9238		if yyhl8 {
9239			yyb8 = yyj8 > l
9240		} else {
9241			yyb8 = r.CheckBreak()
9242		}
9243		if yyb8 {
9244			break
9245		}
9246		r.ReadArrayElem()
9247		z.DecStructFieldNotFound(yyj8-1, "")
9248	}
9249	r.ReadArrayEnd()
9250}
9251
9252func (x *HealthCheckRequest) CodecEncodeSelf(e *codec1978.Encoder) {
9253	var h codecSelfer102
9254	z, r := codec1978.GenHelperEncoder(e)
9255	_, _, _ = h, z, r
9256	if x == nil {
9257		r.EncodeNil()
9258	} else {
9259		if false {
9260		} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
9261			z.EncExtension(x, yyxt1)
9262		} else {
9263			yysep2 := !z.EncBinary()
9264			yy2arr2 := z.EncBasicHandle().StructToArray
9265			_, _ = yysep2, yy2arr2
9266			const yyr2 bool = false // struct tag has 'toArray'
9267			if yyr2 || yy2arr2 {
9268				r.WriteArrayStart(0)
9269			} else {
9270				r.WriteMapStart(0)
9271			}
9272			if yyr2 || yy2arr2 {
9273				r.WriteArrayEnd()
9274			} else {
9275				r.WriteMapEnd()
9276			}
9277		}
9278	}
9279}
9280
9281func (x *HealthCheckRequest) CodecDecodeSelf(d *codec1978.Decoder) {
9282	var h codecSelfer102
9283	z, r := codec1978.GenHelperDecoder(d)
9284	_, _, _ = h, z, r
9285	if false {
9286	} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
9287		z.DecExtension(x, yyxt1)
9288	} else {
9289		yyct2 := r.ContainerType()
9290		if yyct2 == codecSelferValueTypeMap102 {
9291			yyl2 := r.ReadMapStart()
9292			if yyl2 == 0 {
9293				r.ReadMapEnd()
9294			} else {
9295				x.codecDecodeSelfFromMap(yyl2, d)
9296			}
9297		} else if yyct2 == codecSelferValueTypeArray102 {
9298			yyl2 := r.ReadArrayStart()
9299			if yyl2 == 0 {
9300				r.ReadArrayEnd()
9301			} else {
9302				x.codecDecodeSelfFromArray(yyl2, d)
9303			}
9304		} else {
9305			panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102)
9306		}
9307	}
9308}
9309
9310func (x *HealthCheckRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
9311	var h codecSelfer102
9312	z, r := codec1978.GenHelperDecoder(d)
9313	_, _, _ = h, z, r
9314	var yyhl3 bool = l >= 0
9315	for yyj3 := 0; ; yyj3++ {
9316		if yyhl3 {
9317			if yyj3 >= l {
9318				break
9319			}
9320		} else {
9321			if r.CheckBreak() {
9322				break
9323			}
9324		}
9325		r.ReadMapElemKey()
9326		yys3 := z.StringView(r.DecodeStringAsBytes())
9327		r.ReadMapElemValue()
9328		switch yys3 {
9329		default:
9330			z.DecStructFieldNotFound(-1, yys3)
9331		} // end switch yys3
9332	} // end for yyj3
9333	r.ReadMapEnd()
9334}
9335
9336func (x *HealthCheckRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
9337	var h codecSelfer102
9338	z, r := codec1978.GenHelperDecoder(d)
9339	_, _, _ = h, z, r
9340	var yyj4 int
9341	var yyb4 bool
9342	var yyhl4 bool = l >= 0
9343	for {
9344		yyj4++
9345		if yyhl4 {
9346			yyb4 = yyj4 > l
9347		} else {
9348			yyb4 = r.CheckBreak()
9349		}
9350		if yyb4 {
9351			break
9352		}
9353		r.ReadArrayElem()
9354		z.DecStructFieldNotFound(yyj4-1, "")
9355	}
9356	r.ReadArrayEnd()
9357}
9358
9359func (x *HealthCheckResponse) CodecEncodeSelf(e *codec1978.Encoder) {
9360	var h codecSelfer102
9361	z, r := codec1978.GenHelperEncoder(e)
9362	_, _, _ = h, z, r
9363	if x == nil {
9364		r.EncodeNil()
9365	} else {
9366		if false {
9367		} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
9368			z.EncExtension(x, yyxt1)
9369		} else {
9370			yysep2 := !z.EncBinary()
9371			yy2arr2 := z.EncBasicHandle().StructToArray
9372			_, _ = yysep2, yy2arr2
9373			const yyr2 bool = false // struct tag has 'toArray'
9374			if yyr2 || yy2arr2 {
9375				r.WriteArrayStart(1)
9376			} else {
9377				r.WriteMapStart(1)
9378			}
9379			if yyr2 || yy2arr2 {
9380				r.WriteArrayElem()
9381				if x.Drivers == nil {
9382					r.EncodeNil()
9383				} else {
9384					if false {
9385					} else {
9386						h.encMapstringPtrtostructs_DriverInfo((map[string]*pkg4_structs.DriverInfo)(x.Drivers), e)
9387					}
9388				}
9389			} else {
9390				r.WriteMapElemKey()
9391				if z.IsJSONHandle() {
9392					z.WriteStr("\"Drivers\"")
9393				} else {
9394					r.EncodeStringEnc(codecSelferCcUTF8102, `Drivers`)
9395				}
9396				r.WriteMapElemValue()
9397				if x.Drivers == nil {
9398					r.EncodeNil()
9399				} else {
9400					if false {
9401					} else {
9402						h.encMapstringPtrtostructs_DriverInfo((map[string]*pkg4_structs.DriverInfo)(x.Drivers), e)
9403					}
9404				}
9405			}
9406			if yyr2 || yy2arr2 {
9407				r.WriteArrayEnd()
9408			} else {
9409				r.WriteMapEnd()
9410			}
9411		}
9412	}
9413}
9414
9415func (x *HealthCheckResponse) CodecDecodeSelf(d *codec1978.Decoder) {
9416	var h codecSelfer102
9417	z, r := codec1978.GenHelperDecoder(d)
9418	_, _, _ = h, z, r
9419	if false {
9420	} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
9421		z.DecExtension(x, yyxt1)
9422	} else {
9423		yyct2 := r.ContainerType()
9424		if yyct2 == codecSelferValueTypeMap102 {
9425			yyl2 := r.ReadMapStart()
9426			if yyl2 == 0 {
9427				r.ReadMapEnd()
9428			} else {
9429				x.codecDecodeSelfFromMap(yyl2, d)
9430			}
9431		} else if yyct2 == codecSelferValueTypeArray102 {
9432			yyl2 := r.ReadArrayStart()
9433			if yyl2 == 0 {
9434				r.ReadArrayEnd()
9435			} else {
9436				x.codecDecodeSelfFromArray(yyl2, d)
9437			}
9438		} else {
9439			panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102)
9440		}
9441	}
9442}
9443
9444func (x *HealthCheckResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
9445	var h codecSelfer102
9446	z, r := codec1978.GenHelperDecoder(d)
9447	_, _, _ = h, z, r
9448	var yyhl3 bool = l >= 0
9449	for yyj3 := 0; ; yyj3++ {
9450		if yyhl3 {
9451			if yyj3 >= l {
9452				break
9453			}
9454		} else {
9455			if r.CheckBreak() {
9456				break
9457			}
9458		}
9459		r.ReadMapElemKey()
9460		yys3 := z.StringView(r.DecodeStringAsBytes())
9461		r.ReadMapElemValue()
9462		switch yys3 {
9463		case "Drivers":
9464			if r.TryDecodeAsNil() {
9465				x.Drivers = nil
9466			} else {
9467				if false {
9468				} else {
9469					h.decMapstringPtrtostructs_DriverInfo((*map[string]*pkg4_structs.DriverInfo)(&x.Drivers), d)
9470				}
9471			}
9472		default:
9473			z.DecStructFieldNotFound(-1, yys3)
9474		} // end switch yys3
9475	} // end for yyj3
9476	r.ReadMapEnd()
9477}
9478
9479func (x *HealthCheckResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
9480	var h codecSelfer102
9481	z, r := codec1978.GenHelperDecoder(d)
9482	_, _, _ = h, z, r
9483	var yyj6 int
9484	var yyb6 bool
9485	var yyhl6 bool = l >= 0
9486	yyj6++
9487	if yyhl6 {
9488		yyb6 = yyj6 > l
9489	} else {
9490		yyb6 = r.CheckBreak()
9491	}
9492	if yyb6 {
9493		r.ReadArrayEnd()
9494		return
9495	}
9496	r.ReadArrayElem()
9497	if r.TryDecodeAsNil() {
9498		x.Drivers = nil
9499	} else {
9500		if false {
9501		} else {
9502			h.decMapstringPtrtostructs_DriverInfo((*map[string]*pkg4_structs.DriverInfo)(&x.Drivers), d)
9503		}
9504	}
9505	for {
9506		yyj6++
9507		if yyhl6 {
9508			yyb6 = yyj6 > l
9509		} else {
9510			yyb6 = r.CheckBreak()
9511		}
9512		if yyb6 {
9513			break
9514		}
9515		r.ReadArrayElem()
9516		z.DecStructFieldNotFound(yyj6-1, "")
9517	}
9518	r.ReadArrayEnd()
9519}
9520
9521func (x *HealthCheckIntervalRequest) CodecEncodeSelf(e *codec1978.Encoder) {
9522	var h codecSelfer102
9523	z, r := codec1978.GenHelperEncoder(e)
9524	_, _, _ = h, z, r
9525	if x == nil {
9526		r.EncodeNil()
9527	} else {
9528		if false {
9529		} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
9530			z.EncExtension(x, yyxt1)
9531		} else {
9532			yysep2 := !z.EncBinary()
9533			yy2arr2 := z.EncBasicHandle().StructToArray
9534			_, _ = yysep2, yy2arr2
9535			const yyr2 bool = false // struct tag has 'toArray'
9536			if yyr2 || yy2arr2 {
9537				r.WriteArrayStart(0)
9538			} else {
9539				r.WriteMapStart(0)
9540			}
9541			if yyr2 || yy2arr2 {
9542				r.WriteArrayEnd()
9543			} else {
9544				r.WriteMapEnd()
9545			}
9546		}
9547	}
9548}
9549
9550func (x *HealthCheckIntervalRequest) CodecDecodeSelf(d *codec1978.Decoder) {
9551	var h codecSelfer102
9552	z, r := codec1978.GenHelperDecoder(d)
9553	_, _, _ = h, z, r
9554	if false {
9555	} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
9556		z.DecExtension(x, yyxt1)
9557	} else {
9558		yyct2 := r.ContainerType()
9559		if yyct2 == codecSelferValueTypeMap102 {
9560			yyl2 := r.ReadMapStart()
9561			if yyl2 == 0 {
9562				r.ReadMapEnd()
9563			} else {
9564				x.codecDecodeSelfFromMap(yyl2, d)
9565			}
9566		} else if yyct2 == codecSelferValueTypeArray102 {
9567			yyl2 := r.ReadArrayStart()
9568			if yyl2 == 0 {
9569				r.ReadArrayEnd()
9570			} else {
9571				x.codecDecodeSelfFromArray(yyl2, d)
9572			}
9573		} else {
9574			panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102)
9575		}
9576	}
9577}
9578
9579func (x *HealthCheckIntervalRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
9580	var h codecSelfer102
9581	z, r := codec1978.GenHelperDecoder(d)
9582	_, _, _ = h, z, r
9583	var yyhl3 bool = l >= 0
9584	for yyj3 := 0; ; yyj3++ {
9585		if yyhl3 {
9586			if yyj3 >= l {
9587				break
9588			}
9589		} else {
9590			if r.CheckBreak() {
9591				break
9592			}
9593		}
9594		r.ReadMapElemKey()
9595		yys3 := z.StringView(r.DecodeStringAsBytes())
9596		r.ReadMapElemValue()
9597		switch yys3 {
9598		default:
9599			z.DecStructFieldNotFound(-1, yys3)
9600		} // end switch yys3
9601	} // end for yyj3
9602	r.ReadMapEnd()
9603}
9604
9605func (x *HealthCheckIntervalRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
9606	var h codecSelfer102
9607	z, r := codec1978.GenHelperDecoder(d)
9608	_, _, _ = h, z, r
9609	var yyj4 int
9610	var yyb4 bool
9611	var yyhl4 bool = l >= 0
9612	for {
9613		yyj4++
9614		if yyhl4 {
9615			yyb4 = yyj4 > l
9616		} else {
9617			yyb4 = r.CheckBreak()
9618		}
9619		if yyb4 {
9620			break
9621		}
9622		r.ReadArrayElem()
9623		z.DecStructFieldNotFound(yyj4-1, "")
9624	}
9625	r.ReadArrayEnd()
9626}
9627
9628func (x *HealthCheckIntervalResponse) CodecEncodeSelf(e *codec1978.Encoder) {
9629	var h codecSelfer102
9630	z, r := codec1978.GenHelperEncoder(e)
9631	_, _, _ = h, z, r
9632	if x == nil {
9633		r.EncodeNil()
9634	} else {
9635		if false {
9636		} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
9637			z.EncExtension(x, yyxt1)
9638		} else {
9639			yysep2 := !z.EncBinary()
9640			yy2arr2 := z.EncBasicHandle().StructToArray
9641			_, _ = yysep2, yy2arr2
9642			const yyr2 bool = false // struct tag has 'toArray'
9643			if yyr2 || yy2arr2 {
9644				r.WriteArrayStart(2)
9645			} else {
9646				r.WriteMapStart(2)
9647			}
9648			if yyr2 || yy2arr2 {
9649				r.WriteArrayElem()
9650				if false {
9651				} else {
9652					r.EncodeBool(bool(x.Eligible))
9653				}
9654			} else {
9655				r.WriteMapElemKey()
9656				if z.IsJSONHandle() {
9657					z.WriteStr("\"Eligible\"")
9658				} else {
9659					r.EncodeStringEnc(codecSelferCcUTF8102, `Eligible`)
9660				}
9661				r.WriteMapElemValue()
9662				if false {
9663				} else {
9664					r.EncodeBool(bool(x.Eligible))
9665				}
9666			}
9667			if yyr2 || yy2arr2 {
9668				r.WriteArrayElem()
9669				if false {
9670				} else if yyxt7 := z.Extension(z.I2Rtid(x.Period)); yyxt7 != nil {
9671					z.EncExtension(x.Period, yyxt7)
9672				} else {
9673					r.EncodeInt(int64(x.Period))
9674				}
9675			} else {
9676				r.WriteMapElemKey()
9677				if z.IsJSONHandle() {
9678					z.WriteStr("\"Period\"")
9679				} else {
9680					r.EncodeStringEnc(codecSelferCcUTF8102, `Period`)
9681				}
9682				r.WriteMapElemValue()
9683				if false {
9684				} else if yyxt8 := z.Extension(z.I2Rtid(x.Period)); yyxt8 != nil {
9685					z.EncExtension(x.Period, yyxt8)
9686				} else {
9687					r.EncodeInt(int64(x.Period))
9688				}
9689			}
9690			if yyr2 || yy2arr2 {
9691				r.WriteArrayEnd()
9692			} else {
9693				r.WriteMapEnd()
9694			}
9695		}
9696	}
9697}
9698
9699func (x *HealthCheckIntervalResponse) CodecDecodeSelf(d *codec1978.Decoder) {
9700	var h codecSelfer102
9701	z, r := codec1978.GenHelperDecoder(d)
9702	_, _, _ = h, z, r
9703	if false {
9704	} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
9705		z.DecExtension(x, yyxt1)
9706	} else {
9707		yyct2 := r.ContainerType()
9708		if yyct2 == codecSelferValueTypeMap102 {
9709			yyl2 := r.ReadMapStart()
9710			if yyl2 == 0 {
9711				r.ReadMapEnd()
9712			} else {
9713				x.codecDecodeSelfFromMap(yyl2, d)
9714			}
9715		} else if yyct2 == codecSelferValueTypeArray102 {
9716			yyl2 := r.ReadArrayStart()
9717			if yyl2 == 0 {
9718				r.ReadArrayEnd()
9719			} else {
9720				x.codecDecodeSelfFromArray(yyl2, d)
9721			}
9722		} else {
9723			panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102)
9724		}
9725	}
9726}
9727
9728func (x *HealthCheckIntervalResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
9729	var h codecSelfer102
9730	z, r := codec1978.GenHelperDecoder(d)
9731	_, _, _ = h, z, r
9732	var yyhl3 bool = l >= 0
9733	for yyj3 := 0; ; yyj3++ {
9734		if yyhl3 {
9735			if yyj3 >= l {
9736				break
9737			}
9738		} else {
9739			if r.CheckBreak() {
9740				break
9741			}
9742		}
9743		r.ReadMapElemKey()
9744		yys3 := z.StringView(r.DecodeStringAsBytes())
9745		r.ReadMapElemValue()
9746		switch yys3 {
9747		case "Eligible":
9748			if r.TryDecodeAsNil() {
9749				x.Eligible = false
9750			} else {
9751				x.Eligible = (bool)(r.DecodeBool())
9752			}
9753		case "Period":
9754			if r.TryDecodeAsNil() {
9755				x.Period = 0
9756			} else {
9757				if false {
9758				} else if yyxt6 := z.Extension(z.I2Rtid(x.Period)); yyxt6 != nil {
9759					z.DecExtension(x.Period, yyxt6)
9760				} else {
9761					x.Period = (time.Duration)(r.DecodeInt64())
9762				}
9763			}
9764		default:
9765			z.DecStructFieldNotFound(-1, yys3)
9766		} // end switch yys3
9767	} // end for yyj3
9768	r.ReadMapEnd()
9769}
9770
9771func (x *HealthCheckIntervalResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
9772	var h codecSelfer102
9773	z, r := codec1978.GenHelperDecoder(d)
9774	_, _, _ = h, z, r
9775	var yyj7 int
9776	var yyb7 bool
9777	var yyhl7 bool = l >= 0
9778	yyj7++
9779	if yyhl7 {
9780		yyb7 = yyj7 > l
9781	} else {
9782		yyb7 = r.CheckBreak()
9783	}
9784	if yyb7 {
9785		r.ReadArrayEnd()
9786		return
9787	}
9788	r.ReadArrayElem()
9789	if r.TryDecodeAsNil() {
9790		x.Eligible = false
9791	} else {
9792		x.Eligible = (bool)(r.DecodeBool())
9793	}
9794	yyj7++
9795	if yyhl7 {
9796		yyb7 = yyj7 > l
9797	} else {
9798		yyb7 = r.CheckBreak()
9799	}
9800	if yyb7 {
9801		r.ReadArrayEnd()
9802		return
9803	}
9804	r.ReadArrayElem()
9805	if r.TryDecodeAsNil() {
9806		x.Period = 0
9807	} else {
9808		if false {
9809		} else if yyxt10 := z.Extension(z.I2Rtid(x.Period)); yyxt10 != nil {
9810			z.DecExtension(x.Period, yyxt10)
9811		} else {
9812			x.Period = (time.Duration)(r.DecodeInt64())
9813		}
9814	}
9815	for {
9816		yyj7++
9817		if yyhl7 {
9818			yyb7 = yyj7 > l
9819		} else {
9820			yyb7 = r.CheckBreak()
9821		}
9822		if yyb7 {
9823			break
9824		}
9825		r.ReadArrayElem()
9826		z.DecStructFieldNotFound(yyj7-1, "")
9827	}
9828	r.ReadArrayEnd()
9829}
9830
9831func (x codecSelfer102) encSlicePtrtoAllocFileInfo(v []*AllocFileInfo, e *codec1978.Encoder) {
9832	var h codecSelfer102
9833	z, r := codec1978.GenHelperEncoder(e)
9834	_, _, _ = h, z, r
9835	r.WriteArrayStart(len(v))
9836	for _, yyv1 := range v {
9837		r.WriteArrayElem()
9838		if yyv1 == nil {
9839			r.EncodeNil()
9840		} else {
9841			yyv1.CodecEncodeSelf(e)
9842		}
9843	}
9844	r.WriteArrayEnd()
9845}
9846
9847func (x codecSelfer102) decSlicePtrtoAllocFileInfo(v *[]*AllocFileInfo, d *codec1978.Decoder) {
9848	var h codecSelfer102
9849	z, r := codec1978.GenHelperDecoder(d)
9850	_, _, _ = h, z, r
9851
9852	yyv1 := *v
9853	yyh1, yyl1 := z.DecSliceHelperStart()
9854	var yyc1 bool
9855	_ = yyc1
9856	if yyl1 == 0 {
9857		if yyv1 == nil {
9858			yyv1 = []*AllocFileInfo{}
9859			yyc1 = true
9860		} else if len(yyv1) != 0 {
9861			yyv1 = yyv1[:0]
9862			yyc1 = true
9863		}
9864	} else {
9865		yyhl1 := yyl1 > 0
9866		var yyrl1 int
9867		_ = yyrl1
9868		if yyhl1 {
9869			if yyl1 > cap(yyv1) {
9870				yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
9871				if yyrl1 <= cap(yyv1) {
9872					yyv1 = yyv1[:yyrl1]
9873				} else {
9874					yyv1 = make([]*AllocFileInfo, yyrl1)
9875				}
9876				yyc1 = true
9877			} else if yyl1 != len(yyv1) {
9878				yyv1 = yyv1[:yyl1]
9879				yyc1 = true
9880			}
9881		}
9882		var yyj1 int
9883		// var yydn1 bool
9884		for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
9885			if yyj1 == 0 && yyv1 == nil {
9886				if yyhl1 {
9887					yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
9888				} else {
9889					yyrl1 = 8
9890				}
9891				yyv1 = make([]*AllocFileInfo, yyrl1)
9892				yyc1 = true
9893			}
9894			yyh1.ElemContainerState(yyj1)
9895
9896			var yydb1 bool
9897			if yyj1 >= len(yyv1) {
9898				yyv1 = append(yyv1, nil)
9899				yyc1 = true
9900
9901			}
9902			if yydb1 {
9903				z.DecSwallow()
9904			} else {
9905				if r.TryDecodeAsNil() {
9906					yyv1[yyj1] = nil
9907				} else {
9908					if yyv1[yyj1] == nil {
9909						yyv1[yyj1] = new(AllocFileInfo)
9910					}
9911					yyv1[yyj1].CodecDecodeSelf(d)
9912				}
9913
9914			}
9915
9916		}
9917		if yyj1 < len(yyv1) {
9918			yyv1 = yyv1[:yyj1]
9919			yyc1 = true
9920		} else if yyj1 == 0 && yyv1 == nil {
9921			yyv1 = make([]*AllocFileInfo, 0)
9922			yyc1 = true
9923		}
9924	}
9925	yyh1.End()
9926	if yyc1 {
9927		*v = yyv1
9928	}
9929}
9930
9931func (x codecSelfer102) encSlicePtrtodevice_DeviceGroupStats(v []*pkg2_device.DeviceGroupStats, e *codec1978.Encoder) {
9932	var h codecSelfer102
9933	z, r := codec1978.GenHelperEncoder(e)
9934	_, _, _ = h, z, r
9935	r.WriteArrayStart(len(v))
9936	for _, yyv1 := range v {
9937		r.WriteArrayElem()
9938		if yyv1 == nil {
9939			r.EncodeNil()
9940		} else {
9941			if false {
9942			} else if yyxt2 := z.Extension(z.I2Rtid(yyv1)); yyxt2 != nil {
9943				z.EncExtension(yyv1, yyxt2)
9944			} else {
9945				z.EncFallback(yyv1)
9946			}
9947		}
9948	}
9949	r.WriteArrayEnd()
9950}
9951
9952func (x codecSelfer102) decSlicePtrtodevice_DeviceGroupStats(v *[]*pkg2_device.DeviceGroupStats, d *codec1978.Decoder) {
9953	var h codecSelfer102
9954	z, r := codec1978.GenHelperDecoder(d)
9955	_, _, _ = h, z, r
9956
9957	yyv1 := *v
9958	yyh1, yyl1 := z.DecSliceHelperStart()
9959	var yyc1 bool
9960	_ = yyc1
9961	if yyl1 == 0 {
9962		if yyv1 == nil {
9963			yyv1 = []*pkg2_device.DeviceGroupStats{}
9964			yyc1 = true
9965		} else if len(yyv1) != 0 {
9966			yyv1 = yyv1[:0]
9967			yyc1 = true
9968		}
9969	} else {
9970		yyhl1 := yyl1 > 0
9971		var yyrl1 int
9972		_ = yyrl1
9973		if yyhl1 {
9974			if yyl1 > cap(yyv1) {
9975				yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
9976				if yyrl1 <= cap(yyv1) {
9977					yyv1 = yyv1[:yyrl1]
9978				} else {
9979					yyv1 = make([]*pkg2_device.DeviceGroupStats, yyrl1)
9980				}
9981				yyc1 = true
9982			} else if yyl1 != len(yyv1) {
9983				yyv1 = yyv1[:yyl1]
9984				yyc1 = true
9985			}
9986		}
9987		var yyj1 int
9988		// var yydn1 bool
9989		for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
9990			if yyj1 == 0 && yyv1 == nil {
9991				if yyhl1 {
9992					yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
9993				} else {
9994					yyrl1 = 8
9995				}
9996				yyv1 = make([]*pkg2_device.DeviceGroupStats, yyrl1)
9997				yyc1 = true
9998			}
9999			yyh1.ElemContainerState(yyj1)
10000
10001			var yydb1 bool
10002			if yyj1 >= len(yyv1) {
10003				yyv1 = append(yyv1, nil)
10004				yyc1 = true
10005
10006			}
10007			if yydb1 {
10008				z.DecSwallow()
10009			} else {
10010				if r.TryDecodeAsNil() {
10011					yyv1[yyj1] = nil
10012				} else {
10013					if yyv1[yyj1] == nil {
10014						yyv1[yyj1] = new(pkg2_device.DeviceGroupStats)
10015					}
10016					if false {
10017					} else if yyxt3 := z.Extension(z.I2Rtid(yyv1[yyj1])); yyxt3 != nil {
10018						z.DecExtension(yyv1[yyj1], yyxt3)
10019					} else {
10020						z.DecFallback(yyv1[yyj1], false)
10021					}
10022				}
10023
10024			}
10025
10026		}
10027		if yyj1 < len(yyv1) {
10028			yyv1 = yyv1[:yyj1]
10029			yyc1 = true
10030		} else if yyj1 == 0 && yyv1 == nil {
10031			yyv1 = make([]*pkg2_device.DeviceGroupStats, 0)
10032			yyc1 = true
10033		}
10034	}
10035	yyh1.End()
10036	if yyc1 {
10037		*v = yyv1
10038	}
10039}
10040
10041func (x codecSelfer102) encMapstringPtrtoResourceUsage(v map[string]*ResourceUsage, e *codec1978.Encoder) {
10042	var h codecSelfer102
10043	z, r := codec1978.GenHelperEncoder(e)
10044	_, _, _ = h, z, r
10045	r.WriteMapStart(len(v))
10046	for yyk1, yyv1 := range v {
10047		r.WriteMapElemKey()
10048		if false {
10049		} else {
10050			if z.EncBasicHandle().StringToRaw {
10051				r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
10052			} else {
10053				r.EncodeStringEnc(codecSelferCcUTF8102, string(yyk1))
10054			}
10055		}
10056		r.WriteMapElemValue()
10057		if yyv1 == nil {
10058			r.EncodeNil()
10059		} else {
10060			yyv1.CodecEncodeSelf(e)
10061		}
10062	}
10063	r.WriteMapEnd()
10064}
10065
10066func (x codecSelfer102) decMapstringPtrtoResourceUsage(v *map[string]*ResourceUsage, d *codec1978.Decoder) {
10067	var h codecSelfer102
10068	z, r := codec1978.GenHelperDecoder(d)
10069	_, _, _ = h, z, r
10070
10071	yyv1 := *v
10072	yyl1 := r.ReadMapStart()
10073	yybh1 := z.DecBasicHandle()
10074	if yyv1 == nil {
10075		yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24)
10076		yyv1 = make(map[string]*ResourceUsage, yyrl1)
10077		*v = yyv1
10078	}
10079	var yymk1 string
10080	var yymv1 *ResourceUsage
10081	var yymg1, yymdn1, yyms1, yymok1 bool
10082	if yybh1.MapValueReset {
10083		yymg1 = true
10084	}
10085	if yyl1 != 0 {
10086		yyhl1 := yyl1 > 0
10087		for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
10088			r.ReadMapElemKey()
10089			if r.TryDecodeAsNil() {
10090				yymk1 = ""
10091			} else {
10092				yymk1 = (string)(r.DecodeString())
10093			}
10094
10095			yyms1 = true
10096			if yymg1 {
10097				yymv1, yymok1 = yyv1[yymk1]
10098				if yymok1 {
10099					yyms1 = false
10100				}
10101			} else {
10102				yymv1 = nil
10103			}
10104			r.ReadMapElemValue()
10105			yymdn1 = false
10106			if r.TryDecodeAsNil() {
10107				yymdn1 = true
10108			} else {
10109				if yymv1 == nil {
10110					yymv1 = new(ResourceUsage)
10111				}
10112				yymv1.CodecDecodeSelf(d)
10113			}
10114
10115			if yymdn1 {
10116				if yybh1.DeleteOnNilMapValue {
10117					delete(yyv1, yymk1)
10118				} else {
10119					yyv1[yymk1] = nil
10120				}
10121			} else if yyms1 && yyv1 != nil {
10122				yyv1[yymk1] = yymv1
10123			}
10124		}
10125	} // else len==0: TODO: Should we clear map entries?
10126	r.ReadMapEnd()
10127}
10128
10129func (x codecSelfer102) encMapstringPtrtoTaskResourceUsage(v map[string]*TaskResourceUsage, e *codec1978.Encoder) {
10130	var h codecSelfer102
10131	z, r := codec1978.GenHelperEncoder(e)
10132	_, _, _ = h, z, r
10133	r.WriteMapStart(len(v))
10134	for yyk1, yyv1 := range v {
10135		r.WriteMapElemKey()
10136		if false {
10137		} else {
10138			if z.EncBasicHandle().StringToRaw {
10139				r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
10140			} else {
10141				r.EncodeStringEnc(codecSelferCcUTF8102, string(yyk1))
10142			}
10143		}
10144		r.WriteMapElemValue()
10145		if yyv1 == nil {
10146			r.EncodeNil()
10147		} else {
10148			yyv1.CodecEncodeSelf(e)
10149		}
10150	}
10151	r.WriteMapEnd()
10152}
10153
10154func (x codecSelfer102) decMapstringPtrtoTaskResourceUsage(v *map[string]*TaskResourceUsage, d *codec1978.Decoder) {
10155	var h codecSelfer102
10156	z, r := codec1978.GenHelperDecoder(d)
10157	_, _, _ = h, z, r
10158
10159	yyv1 := *v
10160	yyl1 := r.ReadMapStart()
10161	yybh1 := z.DecBasicHandle()
10162	if yyv1 == nil {
10163		yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24)
10164		yyv1 = make(map[string]*TaskResourceUsage, yyrl1)
10165		*v = yyv1
10166	}
10167	var yymk1 string
10168	var yymv1 *TaskResourceUsage
10169	var yymg1, yymdn1, yyms1, yymok1 bool
10170	if yybh1.MapValueReset {
10171		yymg1 = true
10172	}
10173	if yyl1 != 0 {
10174		yyhl1 := yyl1 > 0
10175		for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
10176			r.ReadMapElemKey()
10177			if r.TryDecodeAsNil() {
10178				yymk1 = ""
10179			} else {
10180				yymk1 = (string)(r.DecodeString())
10181			}
10182
10183			yyms1 = true
10184			if yymg1 {
10185				yymv1, yymok1 = yyv1[yymk1]
10186				if yymok1 {
10187					yyms1 = false
10188				}
10189			} else {
10190				yymv1 = nil
10191			}
10192			r.ReadMapElemValue()
10193			yymdn1 = false
10194			if r.TryDecodeAsNil() {
10195				yymdn1 = true
10196			} else {
10197				if yymv1 == nil {
10198					yymv1 = new(TaskResourceUsage)
10199				}
10200				yymv1.CodecDecodeSelf(d)
10201			}
10202
10203			if yymdn1 {
10204				if yybh1.DeleteOnNilMapValue {
10205					delete(yyv1, yymk1)
10206				} else {
10207					yyv1[yymk1] = nil
10208				}
10209			} else if yyms1 && yyv1 != nil {
10210				yyv1[yymk1] = yymv1
10211			}
10212		}
10213	} // else len==0: TODO: Should we clear map entries?
10214	r.ReadMapEnd()
10215}
10216
10217func (x codecSelfer102) encMapstringPtrtostructs_DriverInfo(v map[string]*pkg4_structs.DriverInfo, e *codec1978.Encoder) {
10218	var h codecSelfer102
10219	z, r := codec1978.GenHelperEncoder(e)
10220	_, _, _ = h, z, r
10221	r.WriteMapStart(len(v))
10222	for yyk1, yyv1 := range v {
10223		r.WriteMapElemKey()
10224		if false {
10225		} else {
10226			if z.EncBasicHandle().StringToRaw {
10227				r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
10228			} else {
10229				r.EncodeStringEnc(codecSelferCcUTF8102, string(yyk1))
10230			}
10231		}
10232		r.WriteMapElemValue()
10233		if yyv1 == nil {
10234			r.EncodeNil()
10235		} else {
10236			if false {
10237			} else if yyxt3 := z.Extension(z.I2Rtid(yyv1)); yyxt3 != nil {
10238				z.EncExtension(yyv1, yyxt3)
10239			} else {
10240				z.EncFallback(yyv1)
10241			}
10242		}
10243	}
10244	r.WriteMapEnd()
10245}
10246
10247func (x codecSelfer102) decMapstringPtrtostructs_DriverInfo(v *map[string]*pkg4_structs.DriverInfo, d *codec1978.Decoder) {
10248	var h codecSelfer102
10249	z, r := codec1978.GenHelperDecoder(d)
10250	_, _, _ = h, z, r
10251
10252	yyv1 := *v
10253	yyl1 := r.ReadMapStart()
10254	yybh1 := z.DecBasicHandle()
10255	if yyv1 == nil {
10256		yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24)
10257		yyv1 = make(map[string]*pkg4_structs.DriverInfo, yyrl1)
10258		*v = yyv1
10259	}
10260	var yymk1 string
10261	var yymv1 *pkg4_structs.DriverInfo
10262	var yymg1, yymdn1, yyms1, yymok1 bool
10263	if yybh1.MapValueReset {
10264		yymg1 = true
10265	}
10266	if yyl1 != 0 {
10267		yyhl1 := yyl1 > 0
10268		for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
10269			r.ReadMapElemKey()
10270			if r.TryDecodeAsNil() {
10271				yymk1 = ""
10272			} else {
10273				yymk1 = (string)(r.DecodeString())
10274			}
10275
10276			yyms1 = true
10277			if yymg1 {
10278				yymv1, yymok1 = yyv1[yymk1]
10279				if yymok1 {
10280					yyms1 = false
10281				}
10282			} else {
10283				yymv1 = nil
10284			}
10285			r.ReadMapElemValue()
10286			yymdn1 = false
10287			if r.TryDecodeAsNil() {
10288				yymdn1 = true
10289			} else {
10290				if yymv1 == nil {
10291					yymv1 = new(pkg4_structs.DriverInfo)
10292				}
10293				if false {
10294				} else if yyxt4 := z.Extension(z.I2Rtid(yymv1)); yyxt4 != nil {
10295					z.DecExtension(yymv1, yyxt4)
10296				} else {
10297					z.DecFallback(yymv1, false)
10298				}
10299			}
10300
10301			if yymdn1 {
10302				if yybh1.DeleteOnNilMapValue {
10303					delete(yyv1, yymk1)
10304				} else {
10305					yyv1[yymk1] = nil
10306				}
10307			} else if yyms1 && yyv1 != nil {
10308				yyv1[yymk1] = yymv1
10309			}
10310		}
10311	} // else len==0: TODO: Should we clear map entries?
10312	r.ReadMapEnd()
10313}
10314